code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public void visitTopLevel(JCCompilationUnit tree) {
tree.pid = translate(tree.pid);
tree.defs = translate(tree.defs);
result = tree;
} | class class_name[name] begin[{]
method[visitTopLevel, return_type[void], modifier[public], parameter[tree]] begin[{]
assign[member[tree.pid], call[.translate, parameter[member[tree.pid]]]]
assign[member[tree.defs], call[.translate, parameter[member[tree.defs]]]]
... | Keyword[public] Keyword[void] identifier[visitTopLevel] operator[SEP] identifier[JCCompilationUnit] identifier[tree] operator[SEP] {
identifier[tree] operator[SEP] identifier[pid] operator[=] identifier[translate] operator[SEP] identifier[tree] operator[SEP] identifier[pid] operator[SEP] operator[SEP] identifier... |
@Override
@Nullable
public Constant getConstant(int column) throws OntopResultConversionException {
final MainTypeLangValues cell = row.get(column - 1);
if (cell.getMainValue() == null) {
return null;
} else {
return constantRetriever.getConstantFromJDBC(cell);
... | class class_name[name] begin[{]
method[getConstant, return_type[type[Constant]], modifier[public], parameter[column]] begin[{]
local_variable[type[MainTypeLangValues], cell]
if[binary_operation[call[cell.getMainValue, parameter[]], ==, literal[null]]] begin[{]
return[literal... | annotation[@] identifier[Override] annotation[@] identifier[Nullable] Keyword[public] identifier[Constant] identifier[getConstant] operator[SEP] Keyword[int] identifier[column] operator[SEP] Keyword[throws] identifier[OntopResultConversionException] {
Keyword[final] identifier[MainTypeLangValues] identifier[cell... |
public int setInitialValueFilter(final String initialFilterString) {
final Filter filter = buildFilter(initialFilterString, getFilteringMode());
if (filter != null) {
final LazyQueryContainer container = (LazyQueryContainer) getContainerDataSource();
try {
contai... | class class_name[name] begin[{]
method[setInitialValueFilter, return_type[type[int]], modifier[public], parameter[initialFilterString]] begin[{]
local_variable[type[Filter], filter]
if[binary_operation[member[.filter], !=, literal[null]]] begin[{]
local_variable[type[LazyQue... | Keyword[public] Keyword[int] identifier[setInitialValueFilter] operator[SEP] Keyword[final] identifier[String] identifier[initialFilterString] operator[SEP] {
Keyword[final] identifier[Filter] identifier[filter] operator[=] identifier[buildFilter] operator[SEP] identifier[initialFilterString] , identifier[getFi... |
public void marshall(ListIncomingTypedLinksRequest listIncomingTypedLinksRequest, ProtocolMarshaller protocolMarshaller) {
if (listIncomingTypedLinksRequest == 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[listIncomingTypedLinksRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.listIncomingTypedLinksRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreato... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListIncomingTypedLinksRequest] identifier[listIncomingTypedLinksRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[listIncomingTypedLinksRequest] operator[==] Ot... |
protected Object getPreAuthenticatedPrincipal(HttpServletRequest httpRequest) {
Object principal = wasHelper.getCurrentUserName();
if (logger.isDebugEnabled()) {
logger.debug("PreAuthenticated WebSphere principal: " + principal);
}
return principal;
} | class class_name[name] begin[{]
method[getPreAuthenticatedPrincipal, return_type[type[Object]], modifier[protected], parameter[httpRequest]] begin[{]
local_variable[type[Object], principal]
if[call[logger.isDebugEnabled, parameter[]]] begin[{]
call[logger.debug, ... | Keyword[protected] identifier[Object] identifier[getPreAuthenticatedPrincipal] operator[SEP] identifier[HttpServletRequest] identifier[httpRequest] operator[SEP] {
identifier[Object] identifier[principal] operator[=] identifier[wasHelper] operator[SEP] identifier[getCurrentUserName] operator[SEP] operator[SEP] o... |
public static String getSimpleClassName(String className) {
// get the last part of the class name
String[] parts = className.split("\\.");
if (parts.length <= 1) {
return className;
} else {
return parts[parts.length - 1];
}
} | class class_name[name] begin[{]
method[getSimpleClassName, return_type[type[String]], modifier[public static], parameter[className]] begin[{]
local_variable[type[String], parts]
if[binary_operation[member[parts.length], <=, literal[1]]] begin[{]
return[member[.className]]
... | Keyword[public] Keyword[static] identifier[String] identifier[getSimpleClassName] operator[SEP] identifier[String] identifier[className] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[parts] operator[=] identifier[className] operator[SEP] identifier[split] operator[SEP] literal[String]... |
public static BufferedImage rotate(Image image, int degree) {
return Img.from(image).rotate(degree).getImg();
} | class class_name[name] begin[{]
method[rotate, return_type[type[BufferedImage]], modifier[public static], parameter[image, degree]] begin[{]
return[call[Img.from, parameter[member[.image]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[BufferedImage] identifier[rotate] operator[SEP] identifier[Image] identifier[image] , Keyword[int] identifier[degree] operator[SEP] {
Keyword[return] identifier[Img] operator[SEP] identifier[from] operator[SEP] identifier[image] operator[SEP] operator[SEP] identifier[r... |
public static String getResult(Process process, Charset charset) {
InputStream in = null;
try {
in = process.getInputStream();
return IoUtil.read(in, charset);
} finally {
IoUtil.close(in);
destroy(process);
}
} | class class_name[name] begin[{]
method[getResult, return_type[type[String]], modifier[public static], parameter[process, charset]] begin[{]
local_variable[type[InputStream], in]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=in, postfix_operator... | Keyword[public] Keyword[static] identifier[String] identifier[getResult] operator[SEP] identifier[Process] identifier[process] , identifier[Charset] identifier[charset] operator[SEP] {
identifier[InputStream] identifier[in] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[in] operator[... |
private void fireEvent(int eventType, Object eventObject) {
AgentRosterListener[] listeners;
synchronized (this.listeners) {
listeners = new AgentRosterListener[this.listeners.size()];
this.listeners.toArray(listeners);
}
for (int i = 0; i < listeners.length; i++)... | class class_name[name] begin[{]
method[fireEvent, return_type[void], modifier[private], parameter[eventType, eventObject]] begin[{]
local_variable[type[AgentRosterListener], listeners]
SYNCHRONIZED[THIS[member[None.listeners]]] BEGIN[{]
assign[member[.listeners],... | Keyword[private] Keyword[void] identifier[fireEvent] operator[SEP] Keyword[int] identifier[eventType] , identifier[Object] identifier[eventObject] operator[SEP] {
identifier[AgentRosterListener] operator[SEP] operator[SEP] identifier[listeners] operator[SEP] Keyword[synchronized] operator[SEP] Keyword[this] ope... |
public static float[] dashFromString( String dashPattern ) {
if (dashPattern.trim().length() > 0) {
String[] split = dashPattern.split(",");
if (split.length > 1) {
float[] dash = new float[split.length];
for( int i = 0; i < split.length; i++ ) {
... | class class_name[name] begin[{]
method[dashFromString, return_type[type[float]], modifier[public static], parameter[dashPattern]] begin[{]
if[binary_operation[call[dashPattern.trim, parameter[]], >, literal[0]]] begin[{]
local_variable[type[String], split]
if... | Keyword[public] Keyword[static] Keyword[float] operator[SEP] operator[SEP] identifier[dashFromString] operator[SEP] identifier[String] identifier[dashPattern] operator[SEP] {
Keyword[if] operator[SEP] identifier[dashPattern] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[leng... |
protected boolean isCappedCollection(TableInfo tableInfo)
{
return MongoDBPropertyReader.msmd != null ? MongoDBPropertyReader.msmd.isCappedCollection(databaseName,
tableInfo.getTableName()) : false;
} | class class_name[name] begin[{]
method[isCappedCollection, return_type[type[boolean]], modifier[protected], parameter[tableInfo]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=msmd, postfix_operators=[], prefix_operators=[], qualifier=MongoDBPropertyReader,... | Keyword[protected] Keyword[boolean] identifier[isCappedCollection] operator[SEP] identifier[TableInfo] identifier[tableInfo] operator[SEP] {
Keyword[return] identifier[MongoDBPropertyReader] operator[SEP] identifier[msmd] operator[!=] Other[null] operator[?] identifier[MongoDBPropertyReader] operator[SEP] identi... |
public static Tag getParentTag(Tag tag) {
Statement p = tag.getParent();
if (p == null) return null;
p = p.getParent();
if (p instanceof Tag) return (Tag) p;
return null;
} | class class_name[name] begin[{]
method[getParentTag, return_type[type[Tag]], modifier[public static], parameter[tag]] begin[{]
local_variable[type[Statement], p]
if[binary_operation[member[.p], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] identifier[Tag] identifier[getParentTag] operator[SEP] identifier[Tag] identifier[tag] operator[SEP] {
identifier[Statement] identifier[p] operator[=] identifier[tag] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier... |
protected Runnable getPollingRunnable(final PolledConfigurationSource source, final Configuration config) {
return new Runnable() {
public void run() {
log.debug("Polling started");
PollResult result = null;
try {
result = source.po... | class class_name[name] begin[{]
method[getPollingRunnable, return_type[type[Runnable]], modifier[protected], parameter[source, config]] begin[{]
return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_ope... | Keyword[protected] identifier[Runnable] identifier[getPollingRunnable] operator[SEP] Keyword[final] identifier[PolledConfigurationSource] identifier[source] , Keyword[final] identifier[Configuration] identifier[config] operator[SEP] {
Keyword[return] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP]... |
public ApiSuccessResponse deleteMediaUserData(String mediatype, String id, UserData1 userData) throws ApiException {
ApiResponse<ApiSuccessResponse> resp = deleteMediaUserDataWithHttpInfo(mediatype, id, userData);
return resp.getData();
} | class class_name[name] begin[{]
method[deleteMediaUserData, return_type[type[ApiSuccessResponse]], modifier[public], parameter[mediatype, id, userData]] begin[{]
local_variable[type[ApiResponse], resp]
return[call[resp.getData, parameter[]]]
end[}]
END[}] | Keyword[public] identifier[ApiSuccessResponse] identifier[deleteMediaUserData] operator[SEP] identifier[String] identifier[mediatype] , identifier[String] identifier[id] , identifier[UserData1] identifier[userData] operator[SEP] Keyword[throws] identifier[ApiException] {
identifier[ApiResponse] operator[<] ide... |
public CmsUUID publishProject(CmsObject cms, I_CmsReport report, CmsPublishList publishList) throws CmsException {
return m_securityManager.publishProject(cms, publishList, report);
} | class class_name[name] begin[{]
method[publishProject, return_type[type[CmsUUID]], modifier[public], parameter[cms, report, publishList]] begin[{]
return[call[m_securityManager.publishProject, parameter[member[.cms], member[.publishList], member[.report]]]]
end[}]
END[}] | Keyword[public] identifier[CmsUUID] identifier[publishProject] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[I_CmsReport] identifier[report] , identifier[CmsPublishList] identifier[publishList] operator[SEP] Keyword[throws] identifier[CmsException] {
Keyword[return] identifier[m_securityMana... |
public void resumeJob (final JobKey jobKey) throws SchedulerException
{
validateState ();
m_aResources.getJobStore ().resumeJob (jobKey);
notifySchedulerThread (0L);
notifySchedulerListenersResumedJob (jobKey);
} | class class_name[name] begin[{]
method[resumeJob, return_type[void], modifier[public], parameter[jobKey]] begin[{]
call[.validateState, parameter[]]
call[m_aResources.getJobStore, parameter[]]
call[.notifySchedulerThread, parameter[literal[0L]]]
c... | Keyword[public] Keyword[void] identifier[resumeJob] operator[SEP] Keyword[final] identifier[JobKey] identifier[jobKey] operator[SEP] Keyword[throws] identifier[SchedulerException] {
identifier[validateState] operator[SEP] operator[SEP] operator[SEP] identifier[m_aResources] operator[SEP] identifier[getJobStore] ... |
public void failedToMoveTo (int placeId, String reason)
{
if (_moveListener != null) {
_moveListener.requestFailed(new MoveFailedException(reason));
_moveListener = null;
}
// clear out our last request time
_lastRequestTime = 0;
// let our observers... | class class_name[name] begin[{]
method[failedToMoveTo, return_type[void], modifier[public], parameter[placeId, reason]] begin[{]
if[binary_operation[member[._moveListener], !=, literal[null]]] begin[{]
call[_moveListener.requestFailed, parameter[ClassCreator(arguments=[M... | Keyword[public] Keyword[void] identifier[failedToMoveTo] operator[SEP] Keyword[int] identifier[placeId] , identifier[String] identifier[reason] operator[SEP] {
Keyword[if] operator[SEP] identifier[_moveListener] operator[!=] Other[null] operator[SEP] {
identifier[_moveListener] operator[SEP] identifi... |
protected void signOrRenameJars()
throws MojoExecutionException
{
if ( sign != null )
{
try
{
ClassLoader loader = getCompileClassLoader();
sign.init( getWorkDirectory(), getLog().isDebugEnabled(), signTool, securityDispatcher, loa... | class class_name[name] begin[{]
method[signOrRenameJars, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[member[.sign], !=, literal[null]]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensi... | Keyword[protected] Keyword[void] identifier[signOrRenameJars] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] {
Keyword[if] operator[SEP] identifier[sign] operator[!=] Other[null] operator[SEP] {
Keyword[try] {
identifier[ClassLoader] identifier[loader] op... |
@Override
public List<T> findByNamedQueryAndNamedParams(String queryName, Map<String, ?> params) {
return getPersistenceProvider().findByNamedQueryAndNamedParams(persistenceClass, queryName, params);
} | class class_name[name] begin[{]
method[findByNamedQueryAndNamedParams, return_type[type[List]], modifier[public], parameter[queryName, params]] begin[{]
return[call[.getPersistenceProvider, parameter[]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[findByNamedQueryAndNamedParams] operator[SEP] identifier[String] identifier[queryName] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[params] operator[SEP] {
... |
private static BufferedImage scale(BufferedImage imageToScale, int dWidth, int dHeight, double fWidth, double fHeight) {
BufferedImage dbi = null;
// Needed to create a new BufferedImage object
int imageType = imageToScale.getType();
if (imageToScale != null) {
dbi = new Buff... | class class_name[name] begin[{]
method[scale, return_type[type[BufferedImage]], modifier[private static], parameter[imageToScale, dWidth, dHeight, fWidth, fHeight]] begin[{]
local_variable[type[BufferedImage], dbi]
local_variable[type[int], imageType]
if[binary_operation[member[... | Keyword[private] Keyword[static] identifier[BufferedImage] identifier[scale] operator[SEP] identifier[BufferedImage] identifier[imageToScale] , Keyword[int] identifier[dWidth] , Keyword[int] identifier[dHeight] , Keyword[double] identifier[fWidth] , Keyword[double] identifier[fHeight] operator[SEP] {
identif... |
public static String getCookieValue(Object value) {
String strVal = ObjectUtils.toString(value);
try {
strVal = URLEncoder.encode(strVal, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return strVal;
} | class class_name[name] begin[{]
method[getCookieValue, return_type[type[String]], modifier[public static], parameter[value]] begin[{]
local_variable[type[String], strVal]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=strVal, postfix_operators=[... | Keyword[public] Keyword[static] identifier[String] identifier[getCookieValue] operator[SEP] identifier[Object] identifier[value] operator[SEP] {
identifier[String] identifier[strVal] operator[=] identifier[ObjectUtils] operator[SEP] identifier[toString] operator[SEP] identifier[value] operator[SEP] operator[SEP]... |
private static String checkFolder(String directory) {
File dir = new File(directory);
if (dir.isFile()) {
directory = dir.getParent();
}
createFolder(directory);
return directory;
} | class class_name[name] begin[{]
method[checkFolder, return_type[type[String]], modifier[private static], parameter[directory]] begin[{]
local_variable[type[File], dir]
if[call[dir.isFile, parameter[]]] begin[{]
assign[member[.directory], call[dir.getParent, param... | Keyword[private] Keyword[static] identifier[String] identifier[checkFolder] operator[SEP] identifier[String] identifier[directory] operator[SEP] {
identifier[File] identifier[dir] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[directory] operator[SEP] operator[SEP] Keyword[if] operator[SEP] i... |
public static SerializableDocument create(String id, int expiry, Serializable content, long cas) {
return new SerializableDocument(id, expiry, content, cas, null);
} | class class_name[name] begin[{]
method[create, return_type[type[SerializableDocument]], modifier[public static], parameter[id, expiry, content, cas]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(... | Keyword[public] Keyword[static] identifier[SerializableDocument] identifier[create] operator[SEP] identifier[String] identifier[id] , Keyword[int] identifier[expiry] , identifier[Serializable] identifier[content] , Keyword[long] identifier[cas] operator[SEP] {
Keyword[return] Keyword[new] identifier[Serializa... |
private void printInconsistentProperties(
Map<Scope, List<InconsistentProperty>> inconsistentProperties) {
for (List<InconsistentProperty> list : inconsistentProperties.values()) {
for (InconsistentProperty prop : list) {
mPrintStream.println("key: " + prop.getName());
for (Map.Entry<Opt... | class class_name[name] begin[{]
method[printInconsistentProperties, return_type[void], modifier[private], parameter[inconsistentProperties]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodIn... | Keyword[private] Keyword[void] identifier[printInconsistentProperties] operator[SEP] identifier[Map] operator[<] identifier[Scope] , identifier[List] operator[<] identifier[InconsistentProperty] operator[>] operator[>] identifier[inconsistentProperties] operator[SEP] {
Keyword[for] operator[SEP] identifier[List... |
@Override
public CommerceAddress fetchByG_C_C_DB_First(long groupId,
long classNameId, long classPK, boolean defaultBilling,
OrderByComparator<CommerceAddress> orderByComparator) {
List<CommerceAddress> list = findByG_C_C_DB(groupId, classNameId,
classPK, defaultBilling, 0, 1, orderByComparator);
if (!lis... | class class_name[name] begin[{]
method[fetchByG_C_C_DB_First, return_type[type[CommerceAddress]], modifier[public], parameter[groupId, classNameId, classPK, defaultBilling, orderByComparator]] begin[{]
local_variable[type[List], list]
if[call[list.isEmpty, parameter[]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] identifier[CommerceAddress] identifier[fetchByG_C_C_DB_First] operator[SEP] Keyword[long] identifier[groupId] , Keyword[long] identifier[classNameId] , Keyword[long] identifier[classPK] , Keyword[boolean] identifier[defaultBilling] , identifier[OrderByComparator] o... |
private void sendNextSketchBlock() {
byte[] rawBlock = sketchBlocksToSend.get(currSketchBlockNum);
Buffer block = new Buffer();
block.write(rawBlock);
sendMessage(BeanMessageID.BL_FW_BLOCK, block);
resetSketchBlockSendTimeout();
int blocksSent = currSketchBlockNum + 1;
... | class class_name[name] begin[{]
method[sendNextSketchBlock, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[byte], rawBlock]
local_variable[type[Buffer], block]
call[block.write, parameter[member[.rawBlock]]]
call[.sendMessage, par... | Keyword[private] Keyword[void] identifier[sendNextSketchBlock] operator[SEP] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[rawBlock] operator[=] identifier[sketchBlocksToSend] operator[SEP] identifier[get] operator[SEP] identifier[currSketchBlockNum] operator[SEP] operator[SEP] identifier[... |
public Tuple add( VarBindingDef binding)
{
if( binding != null)
{
VarDef var = binding.getVarDef();
if( var == null)
{
throw new IllegalArgumentException( "Invalid binding=" + binding + ": variable undefined");
}
VarValueDef value = binding.getValueDef();
i... | class class_name[name] begin[{]
method[add, return_type[type[Tuple]], modifier[public], parameter[binding]] begin[{]
if[binary_operation[member[.binding], !=, literal[null]]] begin[{]
local_variable[type[VarDef], var]
if[binary_operation[member[.var], ==, lit... | Keyword[public] identifier[Tuple] identifier[add] operator[SEP] identifier[VarBindingDef] identifier[binding] operator[SEP] {
Keyword[if] operator[SEP] identifier[binding] operator[!=] Other[null] operator[SEP] {
identifier[VarDef] identifier[var] operator[=] identifier[binding] operator[SEP] identifi... |
public static String getHumanName(String methodName) {
char[] name = methodName.toCharArray();
StringBuilder humanName = new StringBuilder();
boolean digit = false;
boolean upper = true;
int upCount = 0;
for (int i = 0; i < name.length; i++) {
if (i == 0) {... | class class_name[name] begin[{]
method[getHumanName, return_type[type[String]], modifier[public static], parameter[methodName]] begin[{]
local_variable[type[char], name]
local_variable[type[StringBuilder], humanName]
local_variable[type[boolean], digit]
local_variable[type[boole... | Keyword[public] Keyword[static] identifier[String] identifier[getHumanName] operator[SEP] identifier[String] identifier[methodName] operator[SEP] {
Keyword[char] operator[SEP] operator[SEP] identifier[name] operator[=] identifier[methodName] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] opera... |
protected void handleUndefinedMode(CliOptionContainer option) {
CliStyle style = this.cliState.getCliStyle();
CliStyleHandling handling = style.modeUndefined();
if (handling != CliStyleHandling.OK) {
ObjectNotFoundException exception = new ObjectNotFoundException(CliMode.class, option.getOption().mod... | class class_name[name] begin[{]
method[handleUndefinedMode, return_type[void], modifier[protected], parameter[option]] begin[{]
local_variable[type[CliStyle], style]
local_variable[type[CliStyleHandling], handling]
if[binary_operation[member[.handling], !=, member[CliStyleHandli... | Keyword[protected] Keyword[void] identifier[handleUndefinedMode] operator[SEP] identifier[CliOptionContainer] identifier[option] operator[SEP] {
identifier[CliStyle] identifier[style] operator[=] Keyword[this] operator[SEP] identifier[cliState] operator[SEP] identifier[getCliStyle] operator[SEP] operator[SEP] op... |
@Implementation(minSdk = P)
protected static int nativeAssetRead(long asset_ptr, byte[] java_buffer, int offset, int len)
throws IOException {
return ShadowArscAssetManager9.nativeAssetRead(asset_ptr, java_buffer, offset, len);
} | class class_name[name] begin[{]
method[nativeAssetRead, return_type[type[int]], modifier[static protected], parameter[asset_ptr, java_buffer, offset, len]] begin[{]
return[call[ShadowArscAssetManager9.nativeAssetRead, parameter[member[.asset_ptr], member[.java_buffer], member[.offset], member[.len]]]]
... | annotation[@] identifier[Implementation] operator[SEP] identifier[minSdk] operator[=] identifier[P] operator[SEP] Keyword[protected] Keyword[static] Keyword[int] identifier[nativeAssetRead] operator[SEP] Keyword[long] identifier[asset_ptr] , Keyword[byte] operator[SEP] operator[SEP] identifier[java_buffer] , Keyword[... |
public SSOConfig autoConfigureUrls(String baseUrl) {
if(baseUrl.endsWith("/")) {
baseUrl = baseUrl.substring(0, baseUrl.length() - 1);
}
//todo :
this.setPublicKeyEndpointUrl(baseUrl + "/oauth2/publickey");
this.setTokenEndpointUrl(baseUrl + "/oauth2/token");
... | class class_name[name] begin[{]
method[autoConfigureUrls, return_type[type[SSOConfig]], modifier[public], parameter[baseUrl]] begin[{]
if[call[baseUrl.endsWith, parameter[literal["/"]]]] begin[{]
assign[member[.baseUrl], call[baseUrl.substring, parameter[literal[0], bina... | Keyword[public] identifier[SSOConfig] identifier[autoConfigureUrls] operator[SEP] identifier[String] identifier[baseUrl] operator[SEP] {
Keyword[if] operator[SEP] identifier[baseUrl] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] {
identifier[baseUrl] oper... |
private void ensureCapacity(int wordsRequired)
{
if (words.length >= wordsRequired) {
return;
}
int newLength = Math.max(words.length << 1, wordsRequired);
words = Arrays.copyOf(words, newLength);
} | class class_name[name] begin[{]
method[ensureCapacity, return_type[void], modifier[private], parameter[wordsRequired]] begin[{]
if[binary_operation[member[words.length], >=, member[.wordsRequired]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variab... | Keyword[private] Keyword[void] identifier[ensureCapacity] operator[SEP] Keyword[int] identifier[wordsRequired] operator[SEP] {
Keyword[if] operator[SEP] identifier[words] operator[SEP] identifier[length] operator[>=] identifier[wordsRequired] operator[SEP] {
Keyword[return] operator[SEP]
}
... |
@Override
public int owner(int hash)
{
NodePodAmp delegate = delegate();
if (delegate != null) {
return delegate().owner(hash);
}
else {
return 0;
}
} | class class_name[name] begin[{]
method[owner, return_type[type[int]], modifier[public], parameter[hash]] begin[{]
local_variable[type[NodePodAmp], delegate]
if[binary_operation[member[.delegate], !=, literal[null]]] begin[{]
return[call[.delegate, parameter[]]]
else ... | annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[owner] operator[SEP] Keyword[int] identifier[hash] operator[SEP] {
identifier[NodePodAmp] identifier[delegate] operator[=] identifier[delegate] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[delegate] opera... |
@InterfaceAudience.Private
public static LogicalTypeAnnotation fromOriginalType(OriginalType originalType, DecimalMetadata decimalMetadata) {
if (originalType == null) {
return null;
}
switch (originalType) {
case UTF8:
return stringType();
case MAP:
return mapType();
... | class class_name[name] begin[{]
method[fromOriginalType, return_type[type[LogicalTypeAnnotation]], modifier[public static], parameter[originalType, decimalMetadata]] begin[{]
if[binary_operation[member[.originalType], ==, literal[null]]] begin[{]
return[literal[null]]
else b... | annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Private] Keyword[public] Keyword[static] identifier[LogicalTypeAnnotation] identifier[fromOriginalType] operator[SEP] identifier[OriginalType] identifier[originalType] , identifier[DecimalMetadata] identifier[decimalMetadata] operator[SEP] {
K... |
private void updateDefault(final Instance _inst,
final String _value)
{
try {
final Update update = new Update(_inst);
update.add("Default", _value);
update.execute();
} catch (final EFapsException e) {
DBPropertiesUpdate... | class class_name[name] begin[{]
method[updateDefault, return_type[void], modifier[private], parameter[_inst, _value]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=_inst, po... | Keyword[private] Keyword[void] identifier[updateDefault] operator[SEP] Keyword[final] identifier[Instance] identifier[_inst] , Keyword[final] identifier[String] identifier[_value] operator[SEP] {
Keyword[try] {
Keyword[final] identifier[Update] identifier[update] operator[=] Keyword[new] identifier[U... |
protected boolean constantZero(List<V> column, Adapter adapter) {
for(int i = 0, s = adapter.size(column); i < s; i++) {
if(adapter.get(column, i) != 0.) {
return false;
}
}
return true;
} | class class_name[name] begin[{]
method[constantZero, return_type[type[boolean]], modifier[protected], parameter[column, adapter]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=column, p... | Keyword[protected] Keyword[boolean] identifier[constantZero] operator[SEP] identifier[List] operator[<] identifier[V] operator[>] identifier[column] , identifier[Adapter] identifier[adapter] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[s] operator[=] i... |
private void error(ScheduleExpressionParserException.Error error) // F743-506
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos);
throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin... | class class_name[name] begin[{]
method[error, return_type[void], modifier[private], parameter[error]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{]
call[Tr.debug, parameter[member[.tc], binary_... | Keyword[private] Keyword[void] identifier[error] operator[SEP] identifier[ScheduleExpressionParserException] operator[SEP] identifier[Error] identifier[error] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&... |
public String getString(String str, String tokenSecret, String consumerSecret)
throws InvalidKeyException, NoSuchAlgorithmException {
return getString(str, OAuthParams.HMAC_SHA1, tokenSecret, consumerSecret);
} | class class_name[name] begin[{]
method[getString, return_type[type[String]], modifier[public], parameter[str, tokenSecret, consumerSecret]] begin[{]
return[call[.getString, parameter[member[.str], member[OAuthParams.HMAC_SHA1], member[.tokenSecret], member[.consumerSecret]]]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[getString] operator[SEP] identifier[String] identifier[str] , identifier[String] identifier[tokenSecret] , identifier[String] identifier[consumerSecret] operator[SEP] Keyword[throws] identifier[InvalidKeyException] , identifier[NoSuchAlgorithmException] {
Keyword[... |
@Override
public Response addInstance( String applicationName, String parentInstancePath, Instance instance ) {
if( parentInstancePath == null )
this.logger.fine( "Request: add root instance " + instance.getName() + " in " + applicationName + "." );
else
this.logger.fine( "Request: add instance " + instance... | class class_name[name] begin[{]
method[addInstance, return_type[type[Response]], modifier[public], parameter[applicationName, parentInstancePath, instance]] begin[{]
if[binary_operation[member[.parentInstancePath], ==, literal[null]]] begin[{]
THIS[member[None.logger]call[None.fine,... | annotation[@] identifier[Override] Keyword[public] identifier[Response] identifier[addInstance] operator[SEP] identifier[String] identifier[applicationName] , identifier[String] identifier[parentInstancePath] , identifier[Instance] identifier[instance] operator[SEP] {
Keyword[if] operator[SEP] identifier[paren... |
public static AppDescriptor of(String appName, Class<?> entryClass) {
System.setProperty("osgl.version.suppress-var-found-warning", "true");
return of(appName, entryClass, Version.of(entryClass));
} | class class_name[name] begin[{]
method[of, return_type[type[AppDescriptor]], modifier[public static], parameter[appName, entryClass]] begin[{]
call[System.setProperty, parameter[literal["osgl.version.suppress-var-found-warning"], literal["true"]]]
return[call[.of, parameter[member[.appN... | Keyword[public] Keyword[static] identifier[AppDescriptor] identifier[of] operator[SEP] identifier[String] identifier[appName] , identifier[Class] operator[<] operator[?] operator[>] identifier[entryClass] operator[SEP] {
identifier[System] operator[SEP] identifier[setProperty] operator[SEP] literal[String] , l... |
private void checkBeginSelection(Cursor cursor, SelectorModel model)
{
final boolean canClick = !model.getClickableArea().contains(cursor.getScreenX(), cursor.getScreenY());
if (!model.isSelecting() && !canClick)
{
model.setSelecting(true);
startX = cursor.getX();
... | class class_name[name] begin[{]
method[checkBeginSelection, return_type[void], modifier[private], parameter[cursor, model]] begin[{]
local_variable[type[boolean], canClick]
if[binary_operation[call[model.isSelecting, parameter[]], &&, member[.canClick]]] begin[{]
... | Keyword[private] Keyword[void] identifier[checkBeginSelection] operator[SEP] identifier[Cursor] identifier[cursor] , identifier[SelectorModel] identifier[model] operator[SEP] {
Keyword[final] Keyword[boolean] identifier[canClick] operator[=] operator[!] identifier[model] operator[SEP] identifier[getClickableAre... |
public synchronized void writeToCheckpoint(OutputStream output)
throws IOException, InterruptedException {
LOG.info("Creating rocksdb checkpoint at {}", mDbCheckpointPath);
long startNano = System.nanoTime();
CheckpointOutputStream out = new CheckpointOutputStream(output, CheckpointType.ROCKS);
t... | class class_name[name] begin[{]
method[writeToCheckpoint, return_type[void], modifier[synchronized public], parameter[output]] begin[{]
call[LOG.info, parameter[literal["Creating rocksdb checkpoint at {}"], member[.mDbCheckpointPath]]]
local_variable[type[long], startNano]
local... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[writeToCheckpoint] operator[SEP] identifier[OutputStream] identifier[output] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] {
identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] , i... |
@VisibleForTesting
static Map<String, String> encodeMetadata(Map<String, byte[]> metadata) {
return Maps.transformValues(metadata, ENCODE_METADATA_VALUES);
} | class class_name[name] begin[{]
method[encodeMetadata, return_type[type[Map]], modifier[static], parameter[metadata]] begin[{]
return[call[Maps.transformValues, parameter[member[.metadata], member[.ENCODE_METADATA_VALUES]]]]
end[}]
END[}] | annotation[@] identifier[VisibleForTesting] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[encodeMetadata] operator[SEP] identifier[Map] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[metadata] operator[SEP]... |
protected AstNode unary(boolean required) throws ScanException, ParseException {
AstNode v = null;
switch (token.getSymbol()) {
case NOT:
consumeToken();
v = createAstUnary(unary(true), AstUnary.NOT);
break;
case MINUS:
consumeToken();
v = createAstUnary(unary(true), AstUnary.NEG);
bre... | class class_name[name] begin[{]
method[unary, return_type[type[AstNode]], modifier[protected], parameter[required]] begin[{]
local_variable[type[AstNode], v]
SwitchStatement(cases=[SwitchStatementCase(case=['NOT'], statements=[StatementExpression(expression=MethodInvocation(arguments=[], member... | Keyword[protected] identifier[AstNode] identifier[unary] operator[SEP] Keyword[boolean] identifier[required] operator[SEP] Keyword[throws] identifier[ScanException] , identifier[ParseException] {
identifier[AstNode] identifier[v] operator[=] Other[null] operator[SEP] Keyword[switch] operator[SEP] identifier[tok... |
@Override
public Long append(final String key, final String value) {
return this.d_append(key, value).getResult();
} | class class_name[name] begin[{]
method[append, return_type[type[Long]], modifier[public], parameter[key, value]] begin[{]
return[THIS[call[None.d_append, parameter[member[.key], member[.value]]]call[None.getResult, parameter[]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[Long] identifier[append] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[value] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP] identifier[d_append] operator[SEP] identifier[k... |
public static SecureProperties encryptPropertiesFile(File clearProperties,
String keyPath, String keyPass, String keyEntry,
boolean retainCrytoConfigProperties) throws FileNotFoundException,
IOException, KeyStoreException {
// Save filename/Path
String propertiesFilePath = clearProperties.getPath();
//... | class class_name[name] begin[{]
method[encryptPropertiesFile, return_type[type[SecureProperties]], modifier[public static], parameter[clearProperties, keyPath, keyPass, keyEntry, retainCrytoConfigProperties]] begin[{]
local_variable[type[String], propertiesFilePath]
local_variable[type[SecurePr... | Keyword[public] Keyword[static] identifier[SecureProperties] identifier[encryptPropertiesFile] operator[SEP] identifier[File] identifier[clearProperties] , identifier[String] identifier[keyPath] , identifier[String] identifier[keyPass] , identifier[String] identifier[keyEntry] , Keyword[boolean] identifier[retainCr... |
public static Attachment fromBase64( String base64encodedContent, MediaType mediaType ) {
if( !mediaType.isBinary() ) {
throw new IllegalArgumentException( "MediaType must be binary" );
}
return new Attachment( base64encodedContent, mediaType );
} | class class_name[name] begin[{]
method[fromBase64, return_type[type[Attachment]], modifier[public static], parameter[base64encodedContent, mediaType]] begin[{]
if[call[mediaType.isBinary, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat... | Keyword[public] Keyword[static] identifier[Attachment] identifier[fromBase64] operator[SEP] identifier[String] identifier[base64encodedContent] , identifier[MediaType] identifier[mediaType] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[mediaType] operator[SEP] identifier[isBinary] operator[SE... |
public void setObjectValues(Object... values) {
mValueType = values[0].getClass();
mKeyframeSet = KeyframeSet.ofObject(values);
} | class class_name[name] begin[{]
method[setObjectValues, return_type[void], modifier[public], parameter[values]] begin[{]
assign[member[.mValueType], member[.values]]
assign[member[.mKeyframeSet], call[KeyframeSet.ofObject, parameter[member[.values]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setObjectValues] operator[SEP] identifier[Object] operator[...] identifier[values] operator[SEP] {
identifier[mValueType] operator[=] identifier[values] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] ident... |
protected void appendXMLContent(StringBuffer msg) {
// append header from xmlcontent
msg.append(
CmsMacroResolver.resolveMacros(m_mailContent.getStringValue(m_cms, "Header", m_locale), m_macroResolver));
// append body
msg.append("\n<br/><br/>\n");
msg.append(genera... | class class_name[name] begin[{]
method[appendXMLContent, return_type[void], modifier[protected], parameter[msg]] begin[{]
call[msg.append, parameter[call[CmsMacroResolver.resolveMacros, parameter[call[m_mailContent.getStringValue, parameter[member[.m_cms], literal["Header"], member[.m_locale]]]... | Keyword[protected] Keyword[void] identifier[appendXMLContent] operator[SEP] identifier[StringBuffer] identifier[msg] operator[SEP] {
identifier[msg] operator[SEP] identifier[append] operator[SEP] identifier[CmsMacroResolver] operator[SEP] identifier[resolveMacros] operator[SEP] identifier[m_mailContent] operator... |
public String getName(String format, Map<String, String> oidMap) {
if (oidMap == null) {
throw new NullPointerException
(sun.security.util.ResourcesMgr.getString
("provided.null.OID.map"));
}
if (format != null) {
if (format.equalsIgnoreCas... | class class_name[name] begin[{]
method[getName, return_type[type[String]], modifier[public], parameter[format, oidMap]] begin[{]
if[binary_operation[member[.oidMap], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(po... | Keyword[public] identifier[String] identifier[getName] operator[SEP] identifier[String] identifier[format] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[oidMap] operator[SEP] {
Keyword[if] operator[SEP] identifier[oidMap] operator[==] Other[null] operator[SEP] {
... |
LineMessagingService buildRetrofitIface() {
if (okHttpClientBuilder == null) {
okHttpClientBuilder = new OkHttpClient.Builder();
}
// Add interceptors.
if (addAuthenticationHeader) {
okHttpClientBuilder.addInterceptor(buildAuthenticationInterceptor(channelTokenSu... | class class_name[name] begin[{]
method[buildRetrofitIface, return_type[type[LineMessagingService]], modifier[default], parameter[]] begin[{]
if[binary_operation[member[.okHttpClientBuilder], ==, literal[null]]] begin[{]
assign[member[.okHttpClientBuilder], ClassCreator(a... | identifier[LineMessagingService] identifier[buildRetrofitIface] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[okHttpClientBuilder] operator[==] Other[null] operator[SEP] {
identifier[okHttpClientBuilder] operator[=] Keyword[new] identifier[OkHttpClient] operator[SEP] identifier[Bu... |
public static String escapeHtml4(final String text) {
return escapeHtml(text, HtmlEscapeType.HTML4_NAMED_REFERENCES_DEFAULT_TO_DECIMAL,
HtmlEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT);
} | class class_name[name] begin[{]
method[escapeHtml4, return_type[type[String]], modifier[public static], parameter[text]] begin[{]
return[call[.escapeHtml, parameter[member[.text], member[HtmlEscapeType.HTML4_NAMED_REFERENCES_DEFAULT_TO_DECIMAL], member[HtmlEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_... | Keyword[public] Keyword[static] identifier[String] identifier[escapeHtml4] operator[SEP] Keyword[final] identifier[String] identifier[text] operator[SEP] {
Keyword[return] identifier[escapeHtml] operator[SEP] identifier[text] , identifier[HtmlEscapeType] operator[SEP] identifier[HTML4_NAMED_REFERENCES_DEFAULT_T... |
public static Optional<MethodUsage> getFunctionalMethod(ResolvedType type) {
if (type.isReferenceType() && type.asReferenceType().getTypeDeclaration().isInterface()) {
return getFunctionalMethod(type.asReferenceType().getTypeDeclaration());
} else {
return Optional.empty();
... | class class_name[name] begin[{]
method[getFunctionalMethod, return_type[type[Optional]], modifier[public static], parameter[type]] begin[{]
if[binary_operation[call[type.isReferenceType, parameter[]], &&, call[type.asReferenceType, parameter[]]]] begin[{]
return[call[.getFunctionalM... | Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[MethodUsage] operator[>] identifier[getFunctionalMethod] operator[SEP] identifier[ResolvedType] identifier[type] operator[SEP] {
Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[isReferenceType] operator[SEP] operator[... |
public static BigRational valueOf(int integer, int fractionNumerator, int fractionDenominator) {
if (fractionNumerator < 0 || fractionDenominator < 0) {
throw new ArithmeticException("Negative value");
}
BigRational integerPart = valueOf(integer);
BigRational fractionPart = valueOf(fractionNumerator... | class class_name[name] begin[{]
method[valueOf, return_type[type[BigRational]], modifier[public static], parameter[integer, fractionNumerator, fractionDenominator]] begin[{]
if[binary_operation[binary_operation[member[.fractionNumerator], <, literal[0]], ||, binary_operation[member[.fractionDen... | Keyword[public] Keyword[static] identifier[BigRational] identifier[valueOf] operator[SEP] Keyword[int] identifier[integer] , Keyword[int] identifier[fractionNumerator] , Keyword[int] identifier[fractionDenominator] operator[SEP] {
Keyword[if] operator[SEP] identifier[fractionNumerator] operator[<] Other[0] ope... |
@POST
@RolesAllowed("administrators")
@Path("/remove-workspace/{repositoryName}/{workspaceName}/{forseSessionClose}/")
public Response removeWorkspace(@Context UriInfo uriInfo, @PathParam("repositoryName") String repositoryName,
@PathParam("workspaceName") String workspaceName, @PathParam("forseSessionCl... | class class_name[name] begin[{]
method[removeWorkspace, return_type[type[Response]], modifier[public], parameter[uriInfo, repositoryName, workspaceName, forseSessionClose]] begin[{]
local_variable[type[String], errorMessage]
local_variable[type[Status], status]
TryStatement(block=[Local... | annotation[@] identifier[POST] annotation[@] identifier[RolesAllowed] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Response] identifier[removeWorkspace] operator[SEP] annotation[@] identifier[Context] identifier[UriInfo... |
@Deprecated
public static void debug(String message, Throwable error) {
logger.debug(message, error);
} | class class_name[name] begin[{]
method[debug, return_type[void], modifier[public static], parameter[message, error]] begin[{]
call[logger.debug, parameter[member[.message], member[.error]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[void] identifier[debug] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[error] operator[SEP] {
identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[message] , identifier[e... |
public long get(String name, long defaultValue) throws IllegalArgumentException {
ObjectSlot slot = findMandatorySlot(name, long.class);
return slot.defaulted ? defaultValue : ((Long) slot.fieldValue).longValue();
} | class class_name[name] begin[{]
method[get, return_type[type[long]], modifier[public], parameter[name, defaultValue]] begin[{]
local_variable[type[ObjectSlot], slot]
return[TernaryExpression(condition=MemberReference(member=defaulted, postfix_operators=[], prefix_operators=[], qualifier=slot, s... | Keyword[public] Keyword[long] identifier[get] operator[SEP] identifier[String] identifier[name] , Keyword[long] identifier[defaultValue] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
identifier[ObjectSlot] identifier[slot] operator[=] identifier[findMandatorySlot] operator[SEP] identifier... |
protected void openPublishDailog(CmsProject project, List<CmsResource> directPublishResources) {
CmsPublishData publishData = getPublishData(project, directPublishResources);
String data = getSerializedPublishData(publishData);
getRpcProxy(I_CmsGwtDialogClientRpc.class).openPublishDialog(data);... | class class_name[name] begin[{]
method[openPublishDailog, return_type[void], modifier[protected], parameter[project, directPublishResources]] begin[{]
local_variable[type[CmsPublishData], publishData]
local_variable[type[String], data]
call[.getRpcProxy, parameter[ClassReference... | Keyword[protected] Keyword[void] identifier[openPublishDailog] operator[SEP] identifier[CmsProject] identifier[project] , identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[directPublishResources] operator[SEP] {
identifier[CmsPublishData] identifier[publishData] operator[=] identifier[... |
@Override
public void assignValue(XAttribute attribute, Double value) {
XCostExtension.instance().assignAmount(attribute, value);
} | class class_name[name] begin[{]
method[assignValue, return_type[void], modifier[public], parameter[attribute, value]] begin[{]
call[XCostExtension.instance, parameter[]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[assignValue] operator[SEP] identifier[XAttribute] identifier[attribute] , identifier[Double] identifier[value] operator[SEP] {
identifier[XCostExtension] operator[SEP] identifier[instance] operator[SEP] operator[SEP] operator[SEP] ident... |
protected void checkOutput()
{
if (_out==_realOut)
{
if (_bufferedOut==null)
{
_bufferedOut=new ChunkingOutputStream(_realOut,
_bufferSize,
_headerReser... | class class_name[name] begin[{]
method[checkOutput, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[member[._out], ==, member[._realOut]]] begin[{]
if[binary_operation[member[._bufferedOut], ==, literal[null]]] begin[{]
... | Keyword[protected] Keyword[void] identifier[checkOutput] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[_out] operator[==] identifier[_realOut] operator[SEP] {
Keyword[if] operator[SEP] identifier[_bufferedOut] operator[==] Other[null] operator[SEP] {
identifier[_buf... |
private void appendValue(Object value) {
if (value == null) {
append("null");
} else if (value instanceof MwsObject) {
append("{");
needComma = false;
((MwsObject) value).writeFragmentTo(this);
append("}");
} else if (value instanceof B... | class class_name[name] begin[{]
method[appendValue, return_type[void], modifier[private], parameter[value]] begin[{]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
call[.append, parameter[literal["null"]]]
else begin[{]
if[binary_ope... | Keyword[private] Keyword[void] identifier[appendValue] operator[SEP] identifier[Object] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] {
identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP]
}
Ke... |
@Override
HijrahDate plusYears(long years) {
if (years == 0) {
return this;
}
int newYear = Jdk8Methods.safeAdd(this.yearOfEra, (int)years);
return HijrahDate.of(this.era, newYear, this.monthOfYear, this.dayOfMonth);
} | class class_name[name] begin[{]
method[plusYears, return_type[type[HijrahDate]], modifier[default], parameter[years]] begin[{]
if[binary_operation[member[.years], ==, literal[0]]] begin[{]
return[THIS[]]
else begin[{]
None
end[}]
local_variable[type[int], new... | annotation[@] identifier[Override] identifier[HijrahDate] identifier[plusYears] operator[SEP] Keyword[long] identifier[years] operator[SEP] {
Keyword[if] operator[SEP] identifier[years] operator[==] Other[0] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP]
}
Keyword[int] ident... |
@Override
public void onRegisterStatus(Context context, com.meizu.cloud.pushsdk.platform.message.RegisterStatus registerStatus) {
//调用新版订阅PushManager.register(context,appId,appKey)回调
if (null == context || null == registerStatus) {
return;
}
LOGGER.d("register successed, pushId=" + registerStatu... | class class_name[name] begin[{]
method[onRegisterStatus, return_type[void], modifier[public], parameter[context, registerStatus]] begin[{]
if[binary_operation[binary_operation[literal[null], ==, member[.context]], ||, binary_operation[literal[null], ==, member[.registerStatus]]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onRegisterStatus] operator[SEP] identifier[Context] identifier[context] , identifier[com] operator[SEP] identifier[meizu] operator[SEP] identifier[cloud] operator[SEP] identifier[pushsdk] operator[SEP] identifier[platform] operator[SEP] identi... |
public static byte[] sha256(final byte[] dataParam) {
if (dataParam == null || dataParam.length == 0) {
return new byte[] {};
}
try {
final MessageDigest digest = MessageDigest.getInstance("SHA-256");
return digest.digest(dataParam);
}
//
... | class class_name[name] begin[{]
method[sha256, return_type[type[byte]], modifier[public static], parameter[dataParam]] begin[{]
if[binary_operation[binary_operation[member[.dataParam], ==, literal[null]], ||, binary_operation[member[dataParam.length], ==, literal[0]]]] begin[{]
retu... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[sha256] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[dataParam] operator[SEP] {
Keyword[if] operator[SEP] identifier[dataParam] operator[==] Other[null] operator[||] identifier[dataParam] ope... |
protected int findMember( String name)
{
int memberCount = name==null? 0 : members_.size();
int i;
for( i = 0; i < memberCount && !name.equals( members_.get(i).getName()); i++);
return i < memberCount? i : -1;
} | class class_name[name] begin[{]
method[findMember, return_type[type[int]], modifier[protected], parameter[name]] begin[{]
local_variable[type[int], memberCount]
local_variable[type[int], i]
ForStatement(body=Statement(label=None), control=ForControl(condition=BinaryOperation(operandl=Bi... | Keyword[protected] Keyword[int] identifier[findMember] operator[SEP] identifier[String] identifier[name] operator[SEP] {
Keyword[int] identifier[memberCount] operator[=] identifier[name] operator[==] Other[null] operator[?] Other[0] operator[:] identifier[members_] operator[SEP] identifier[size] operator[SEP] o... |
public void marshall(DescribeCopyProductStatusRequest describeCopyProductStatusRequest, ProtocolMarshaller protocolMarshaller) {
if (describeCopyProductStatusRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[describeCopyProductStatusRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.describeCopyProductStatusRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=Class... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeCopyProductStatusRequest] identifier[describeCopyProductStatusRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[describeCopyProductStatusRequest] operat... |
protected ProcessDefinitionEntity loadProcessDefinition(String processDefinitionId) {
ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
DeploymentCache deploymentCache = configuration.getDeploymentCache();
ProcessDefinitionEntity processDefinition = deploymentCache.fin... | class class_name[name] begin[{]
method[loadProcessDefinition, return_type[type[ProcessDefinitionEntity]], modifier[protected], parameter[processDefinitionId]] begin[{]
local_variable[type[ProcessEngineConfigurationImpl], configuration]
local_variable[type[DeploymentCache], deploymentCache]
... | Keyword[protected] identifier[ProcessDefinitionEntity] identifier[loadProcessDefinition] operator[SEP] identifier[String] identifier[processDefinitionId] operator[SEP] {
identifier[ProcessEngineConfigurationImpl] identifier[configuration] operator[=] identifier[Context] operator[SEP] identifier[getProcessEngineC... |
@Override
List<String> getRequestParts() {
if (hasSingleAttribute()) {
List<String> ret = super.getRequestParts();
ret.add(getAttribute());
addPath(ret,path);
return ret;
} else if (hasAllAttributes() && path == null) {
return super.getRequ... | class class_name[name] begin[{]
method[getRequestParts, return_type[type[List]], modifier[default], parameter[]] begin[{]
if[call[.hasSingleAttribute, parameter[]]] begin[{]
local_variable[type[List], ret]
call[ret.add, parameter[call[.getAttribute, parameter... | annotation[@] identifier[Override] identifier[List] operator[<] identifier[String] operator[>] identifier[getRequestParts] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[hasSingleAttribute] operator[SEP] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[String] ... |
protected void deleteDestination()
throws SIConnectionLostException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteDestination");
// If the producer session hasn't been closed, close it now
synchronized(this)
{
... | class class_name[name] begin[{]
method[deleteDestination, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[member[.... | Keyword[protected] Keyword[void] identifier[deleteDestination] operator[SEP] operator[SEP] Keyword[throws] identifier[SIConnectionLostException] , identifier[SIResourceException] , identifier[SIErrorException] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] ... |
@Override
public Object parse(FhirContext theContext, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException {
return myParamBinder.parse(theContext, getName(), theString);
} | class class_name[name] begin[{]
method[parse, return_type[type[Object]], modifier[public], parameter[theContext, theString]] begin[{]
return[call[myParamBinder.parse, parameter[member[.theContext], call[.getName, parameter[]], member[.theString]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[parse] operator[SEP] identifier[FhirContext] identifier[theContext] , identifier[List] operator[<] identifier[QualifiedParamList] operator[>] identifier[theString] operator[SEP] Keyword[throws] identifier[InternalErrorException] , identi... |
private String[] checkRealNames(final String[] names) {
if (names.length == 1) {
if (names[0].equals(Tango_AllAttr)) {
final String[] real_names = new String[dev_attr.get_attr_nb()];
for (int i = 0; i < dev_attr.get_attr_nb(); i++) {
real_names[i] = dev_attr.get_attr_by_ind(i).get_name();
}
return r... | class class_name[name] begin[{]
method[checkRealNames, return_type[type[String]], modifier[private], parameter[names]] begin[{]
if[binary_operation[member[names.length], ==, literal[1]]] begin[{]
if[member[.names]] begin[{]
local_variable[type[String], re... | Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[checkRealNames] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[names] operator[SEP] {
Keyword[if] operator[SEP] identifier[names] operator[SEP] identifier[length] operator[==] Other[1] operator[SEP]... |
private static int unsignedBytesToInt(byte b0, byte b1, byte b2, byte b3) {
return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8))
+ (unsignedByteToInt(b2) << 16) + (unsignedByteToInt(b3) << 24);
} | class class_name[name] begin[{]
method[unsignedBytesToInt, return_type[type[int]], modifier[private static], parameter[b0, b1, b2, b3]] begin[{]
return[binary_operation[binary_operation[binary_operation[call[.unsignedByteToInt, parameter[member[.b0]]], +, binary_operation[call[.unsignedByteToInt, param... | Keyword[private] Keyword[static] Keyword[int] identifier[unsignedBytesToInt] operator[SEP] Keyword[byte] identifier[b0] , Keyword[byte] identifier[b1] , Keyword[byte] identifier[b2] , Keyword[byte] identifier[b3] operator[SEP] {
Keyword[return] operator[SEP] identifier[unsignedByteToInt] operator[SEP] identif... |
public static String getUsageMBeanProperties(String subsystemName) {
if (subsystemName == null) throw new NullPointerException("subsystemName is null");
return SUBSYSTEM_NAME_KEY + '=' + ObjectName.quote(subsystemName);
} | class class_name[name] begin[{]
method[getUsageMBeanProperties, return_type[type[String]], modifier[public static], parameter[subsystemName]] begin[{]
if[binary_operation[member[.subsystemName], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera... | Keyword[public] Keyword[static] identifier[String] identifier[getUsageMBeanProperties] operator[SEP] identifier[String] identifier[subsystemName] operator[SEP] {
Keyword[if] operator[SEP] identifier[subsystemName] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[NullPointerException]... |
static InetAddress bytes2IP(byte[] addr){
String s = bytes2IPV4(addr,0);
try{
return InetAddress.getByName(s);
}catch(UnknownHostException uh_ex){
return null;
}
} | class class_name[name] begin[{]
method[bytes2IP, return_type[type[InetAddress]], modifier[static], parameter[addr]] begin[{]
local_variable[type[String], s]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operator... | Keyword[static] identifier[InetAddress] identifier[bytes2IP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[addr] operator[SEP] {
identifier[String] identifier[s] operator[=] identifier[bytes2IPV4] operator[SEP] identifier[addr] , Other[0] operator[SEP] operator[SEP] Keyword[try] {
... |
public ILocationData getMergedAssociatedLocation() {
List<ILocationData> allData = getAssociatedLocations();
if (allData.isEmpty()) {
return null;
}
if (allData.size() == 1) {
return allData.get(0);
}
boolean allNull = true;
SourceRelativeURI path = null;
ITextRegionWithLineInformation region = IT... | class class_name[name] begin[{]
method[getMergedAssociatedLocation, return_type[type[ILocationData]], modifier[public], parameter[]] begin[{]
local_variable[type[List], allData]
if[call[allData.isEmpty, parameter[]]] begin[{]
return[literal[null]]
else begin[{]
None
... | Keyword[public] identifier[ILocationData] identifier[getMergedAssociatedLocation] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[ILocationData] operator[>] identifier[allData] operator[=] identifier[getAssociatedLocations] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP]... |
public BeanQuery<Map<String,Object>> nested(){
if(!(this.selector instanceof KeyValueMapSelector)){
throw new IllegalStateException("This is only for BeanQueries which has a KeyValueMapSelector selector. The current selector is a "+this.selector);
}
BeanQuery<Map<String,Object>> result= new BeanQuery<... | class class_name[name] begin[{]
method[nested, return_type[type[BeanQuery]], modifier[public], parameter[]] begin[{]
if[binary_operation[THIS[member[None.selector]], instanceof, type[KeyValueMapSelector]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(op... | Keyword[public] identifier[BeanQuery] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[nested] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] operator[SEP] Keyword[this] operator[SEP] identifier[selector] Keyword[instanceof] ... |
private void overrideLocalCanalConfig(String content) {
try (OutputStreamWriter writer = new OutputStreamWriter(
new FileOutputStream(CommonUtils.getConfPath() + "application.yml"),
StandardCharsets.UTF_8)) {
writer.write(content);
writer.flush();
... | class class_name[name] begin[{]
method[overrideLocalCanalConfig, return_type[void], modifier[private], parameter[content]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=content, postfix_operators=[], prefix_operators=[], qualifier=, selec... | Keyword[private] Keyword[void] identifier[overrideLocalCanalConfig] operator[SEP] identifier[String] identifier[content] operator[SEP] {
Keyword[try] operator[SEP] identifier[OutputStreamWriter] identifier[writer] operator[=] Keyword[new] identifier[OutputStreamWriter] operator[SEP] Keyword[new] identifier[FileO... |
private void showKeyspace(PrintStream output, KsDef ksDef)
{
output.append("create keyspace ").append(CliUtils.maybeEscapeName(ksDef.name));
writeAttr(output, true, "placement_strategy", normaliseType(ksDef.strategy_class, "org.apache.cassandra.locator"));
if (ksDef.strategy_options != nul... | class class_name[name] begin[{]
method[showKeyspace, return_type[void], modifier[private], parameter[output, ksDef]] begin[{]
call[output.append, parameter[literal["create keyspace "]]]
call[.writeAttr, parameter[member[.output], literal[true], literal["placement_strategy"], cal... | Keyword[private] Keyword[void] identifier[showKeyspace] operator[SEP] identifier[PrintStream] identifier[output] , identifier[KsDef] identifier[ksDef] operator[SEP] {
identifier[output] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] id... |
public void marshall(GeoLocation geoLocation, ProtocolMarshaller protocolMarshaller) {
if (geoLocation == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(geoLocation.getLat(), LAT_BINDING);
... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[geoLocation, protocolMarshaller]] begin[{]
if[binary_operation[member[.geoLocation], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operato... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GeoLocation] identifier[geoLocation] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[geoLocation] operator[==] Other[null] operator[SEP] {
Keyword[throw] Ke... |
private boolean matchesExpectedKey(int position, Page page)
{
for (int i = 0; i < indexKeyTypes.size(); i++) {
if (!indexKeyTypes.get(i).equalTo(page.getBlock(i), position, indexKeyTuple.getBlock(i), 0)) {
return false;
}
}
return true;
} | class class_name[name] begin[{]
method[matchesExpectedKey, return_type[type[boolean]], modifier[private], parameter[position, page]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix... | Keyword[private] Keyword[boolean] identifier[matchesExpectedKey] operator[SEP] Keyword[int] identifier[position] , identifier[Page] identifier[page] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[indexKeyTypes] operat... |
private void addInstalledExtension(DefaultInstalledExtension installedExtension, String namespace)
{
addCachedExtension(installedExtension);
boolean isValid = installedExtension.isValid(namespace);
// Register the extension in the installed extensions for the provided namespace
add... | class class_name[name] begin[{]
method[addInstalledExtension, return_type[void], modifier[private], parameter[installedExtension, namespace]] begin[{]
call[.addCachedExtension, parameter[member[.installedExtension]]]
local_variable[type[boolean], isValid]
call[.addInstal... | Keyword[private] Keyword[void] identifier[addInstalledExtension] operator[SEP] identifier[DefaultInstalledExtension] identifier[installedExtension] , identifier[String] identifier[namespace] operator[SEP] {
identifier[addCachedExtension] operator[SEP] identifier[installedExtension] operator[SEP] operator[SEP] K... |
public NextResponse delete2(final String url, final Map<String, String> forms,
final Map<String, String> headers)
throws IOException {
return request(HttpMethod.DELETE, url, null, forms, headers);
} | class class_name[name] begin[{]
method[delete2, return_type[type[NextResponse]], modifier[public], parameter[url, forms, headers]] begin[{]
return[call[.request, parameter[member[HttpMethod.DELETE], member[.url], literal[null], member[.forms], member[.headers]]]]
end[}]
END[}] | Keyword[public] identifier[NextResponse] identifier[delete2] operator[SEP] Keyword[final] identifier[String] identifier[url] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[forms] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier... |
public Set<ViewDescription> getComponentsForViewName(final String viewType, final VirtualFile deploymentRoot) {
final List<ViewInformation> info = componentsByViewName.get(viewType);
if (info == null) {
return Collections.<ViewDescription>emptySet();
}
final Set<ViewDescript... | class class_name[name] begin[{]
method[getComponentsForViewName, return_type[type[Set]], modifier[public], parameter[viewType, deploymentRoot]] begin[{]
local_variable[type[List], info]
if[binary_operation[member[.info], ==, literal[null]]] begin[{]
return[call[.Collections,... | Keyword[public] identifier[Set] operator[<] identifier[ViewDescription] operator[>] identifier[getComponentsForViewName] operator[SEP] Keyword[final] identifier[String] identifier[viewType] , Keyword[final] identifier[VirtualFile] identifier[deploymentRoot] operator[SEP] {
Keyword[final] identifier[List] operat... |
public static SecondaryIndex createInstance(ColumnFamilyStore baseCfs, ColumnDefinition cdef) throws ConfigurationException
{
SecondaryIndex index;
switch (cdef.getIndexType())
{
case KEYS:
index = new KeysIndex();
break;
case COMPOSITES:
... | class class_name[name] begin[{]
method[createInstance, return_type[type[SecondaryIndex]], modifier[public static], parameter[baseCfs, cdef]] begin[{]
local_variable[type[SecondaryIndex], index]
SwitchStatement(cases=[SwitchStatementCase(case=['KEYS'], statements=[StatementExpression(expression=... | Keyword[public] Keyword[static] identifier[SecondaryIndex] identifier[createInstance] operator[SEP] identifier[ColumnFamilyStore] identifier[baseCfs] , identifier[ColumnDefinition] identifier[cdef] operator[SEP] Keyword[throws] identifier[ConfigurationException] {
identifier[SecondaryIndex] identifier[index] op... |
public static void size(Collection<?> parameter, int size, String name) throws IllegalArgumentException {
if (parameter.size() != size) {
throw new IllegalArgumentException(String.format("%s size is not %d.", name, size));
}
} | class class_name[name] begin[{]
method[size, return_type[void], modifier[public static], parameter[parameter, size, name]] begin[{]
if[binary_operation[call[parameter.size, parameter[]], !=, member[.size]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(... | Keyword[public] Keyword[static] Keyword[void] identifier[size] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[parameter] , Keyword[int] identifier[size] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
Keyword[if] op... |
private PatternPathRouterWithGroups.RoutableDestination<HttpResourceModel>
getMatchedDestination(List<PatternPathRouterWithGroups.RoutableDestination<HttpResourceModel>> routableDestinations,
HttpMethod targetHttpMethod, String requestUri) {
LOG.trace("Routable destinations for request {}... | class class_name[name] begin[{]
method[getMatchedDestination, return_type[type[PatternPathRouterWithGroups]], modifier[private], parameter[routableDestinations, targetHttpMethod, requestUri]] begin[{]
call[LOG.trace, parameter[literal["Routable destinations for request {}: {}"], member[.request... | Keyword[private] identifier[PatternPathRouterWithGroups] operator[SEP] identifier[RoutableDestination] operator[<] identifier[HttpResourceModel] operator[>] identifier[getMatchedDestination] operator[SEP] identifier[List] operator[<] identifier[PatternPathRouterWithGroups] operator[SEP] identifier[RoutableDestination] ... |
public EpollServerSocketChannelConfig setFreeBind(boolean freeBind) {
try {
((EpollServerSocketChannel) channel).socket.setIpFreeBind(freeBind);
return this;
} catch (IOException e) {
throw new ChannelException(e);
}
} | class class_name[name] begin[{]
method[setFreeBind, return_type[type[EpollServerSocketChannelConfig]], modifier[public], parameter[freeBind]] begin[{]
TryStatement(block=[StatementExpression(expression=Cast(expression=MemberReference(member=channel, postfix_operators=[], prefix_operators=[], qualifier=... | Keyword[public] identifier[EpollServerSocketChannelConfig] identifier[setFreeBind] operator[SEP] Keyword[boolean] identifier[freeBind] operator[SEP] {
Keyword[try] {
operator[SEP] operator[SEP] identifier[EpollServerSocketChannel] operator[SEP] identifier[channel] operator[SEP] operator[SEP] identifie... |
public ZealotKhala equal(String field, Object value) {
return this.doNormal(ZealotConst.ONE_SPACE, field, value, ZealotConst.EQUAL_SUFFIX,true);
} | class class_name[name] begin[{]
method[equal, return_type[type[ZealotKhala]], modifier[public], parameter[field, value]] begin[{]
return[THIS[call[None.doNormal, parameter[member[ZealotConst.ONE_SPACE], member[.field], member[.value], member[ZealotConst.EQUAL_SUFFIX], literal[true]]]]]
end[}]
END[}... | Keyword[public] identifier[ZealotKhala] identifier[equal] operator[SEP] identifier[String] identifier[field] , identifier[Object] identifier[value] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP] identifier[doNormal] operator[SEP] identifier[ZealotConst] operator[SEP] identifier[ONE_SPACE] , identi... |
private static void visitSelectTable(SchemaItem schemaItem, SQLTableSource sqlTableSource,
List<TableItem> tableItems, TableItem tableItemTmp) {
if (sqlTableSource instanceof SQLExprTableSource) {
SQLExprTableSource sqlExprTableSource = (SQLExprTableSource) s... | class class_name[name] begin[{]
method[visitSelectTable, return_type[void], modifier[private static], parameter[schemaItem, sqlTableSource, tableItems, tableItemTmp]] begin[{]
if[binary_operation[member[.sqlTableSource], instanceof, type[SQLExprTableSource]]] begin[{]
local_variable... | Keyword[private] Keyword[static] Keyword[void] identifier[visitSelectTable] operator[SEP] identifier[SchemaItem] identifier[schemaItem] , identifier[SQLTableSource] identifier[sqlTableSource] , identifier[List] operator[<] identifier[TableItem] operator[>] identifier[tableItems] , identifier[TableItem] identifier[ta... |
public static byte[] s2n(String string) {
if (string == null) {
return null;
}
byte[] stringBytes = string.getBytes(UTF8);
byte[] allBytes = new byte[stringBytes.length + 1];
System.arraycopy(stringBytes, 0, allBytes, 0, stringBytes.length);
return allBytes;
... | class class_name[name] begin[{]
method[s2n, return_type[type[byte]], modifier[public static], parameter[string]] begin[{]
if[binary_operation[member[.string], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[byt... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[s2n] operator[SEP] identifier[String] identifier[string] operator[SEP] {
Keyword[if] operator[SEP] identifier[string] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
... |
public boolean containsFlowState(final Flow flow, final String stateId) {
if (flow == null) {
LOGGER.error("Flow is not configured correctly and cannot be null.");
return false;
}
return flow.containsState(stateId);
} | class class_name[name] begin[{]
method[containsFlowState, return_type[type[boolean]], modifier[public], parameter[flow, stateId]] begin[{]
if[binary_operation[member[.flow], ==, literal[null]]] begin[{]
call[LOGGER.error, parameter[literal["Flow is not configured correct... | Keyword[public] Keyword[boolean] identifier[containsFlowState] operator[SEP] Keyword[final] identifier[Flow] identifier[flow] , Keyword[final] identifier[String] identifier[stateId] operator[SEP] {
Keyword[if] operator[SEP] identifier[flow] operator[==] Other[null] operator[SEP] {
identifier[LOGGER] ... |
private boolean isDialogOpen(){
final Activity activity = activityUtils.getCurrentActivity(false);
final View[] views = viewFetcher.getWindowDecorViews();
View view = viewFetcher.getRecentDecorView(views);
if(!isDialog(activity, view)){
for(View v : views){
if(isDialog(activity, v)){
return true... | class class_name[name] begin[{]
method[isDialogOpen, return_type[type[boolean]], modifier[private], parameter[]] begin[{]
local_variable[type[Activity], activity]
local_variable[type[View], views]
local_variable[type[View], view]
if[call[.isDialog, parameter[member[.acti... | Keyword[private] Keyword[boolean] identifier[isDialogOpen] operator[SEP] operator[SEP] {
Keyword[final] identifier[Activity] identifier[activity] operator[=] identifier[activityUtils] operator[SEP] identifier[getCurrentActivity] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[final] identifier... |
public String fromByteArray(byte[] bytes) {
java.util.Objects.requireNonNull(bytes, "bytes");
return fromByteArray(bytes, 0, bytes.length);
} | class class_name[name] begin[{]
method[fromByteArray, return_type[type[String]], modifier[public], parameter[bytes]] begin[{]
call[java.util.Objects.requireNonNull, parameter[member[.bytes], literal["bytes"]]]
return[call[.fromByteArray, parameter[member[.bytes], literal[0], member[byte... | Keyword[public] identifier[String] identifier[fromByteArray] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] {
identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[bytes] , lite... |
boolean rule6(final IFactory factory, final Inclusion[] gcis) {
boolean result = false;
if (rhs instanceof Existential) {
Existential existential = (Existential) rhs;
final AbstractConcept cHat = existential.getConcept();
if (!(cHat instanceof Concept)) {
... | class class_name[name] begin[{]
method[rule6, return_type[type[boolean]], modifier[default], parameter[factory, gcis]] begin[{]
local_variable[type[boolean], result]
if[binary_operation[member[.rhs], instanceof, type[Existential]]] begin[{]
local_variable[type[Existential], ... | Keyword[boolean] identifier[rule6] operator[SEP] Keyword[final] identifier[IFactory] identifier[factory] , Keyword[final] identifier[Inclusion] operator[SEP] operator[SEP] identifier[gcis] operator[SEP] {
Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] id... |
private void beforeValue() throws JSONException {
if (stack.isEmpty()) {
return;
}
Scope context = peek();
if (context == Scope.EMPTY_ARRAY) { // first in array
replaceTop(Scope.NONEMPTY_ARRAY);
newline();
} else if (context == Scope.NONEMPTY_... | class class_name[name] begin[{]
method[beforeValue, return_type[void], modifier[private], parameter[]] begin[{]
if[call[stack.isEmpty, parameter[]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[Scope], context]
if[binary... | Keyword[private] Keyword[void] identifier[beforeValue] operator[SEP] operator[SEP] Keyword[throws] identifier[JSONException] {
Keyword[if] operator[SEP] identifier[stack] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] operator[SEP]
}
identif... |
public DynamicLongProperty getLongProperty(String propName, long defaultValue, final Runnable propertyChangeCallback) {
checkAndWarn(propName);
DynamicLongProperty property = new DynamicLongProperty(propName, defaultValue);
addCallback(propertyChangeCallback, property);
return property;
... | class class_name[name] begin[{]
method[getLongProperty, return_type[type[DynamicLongProperty]], modifier[public], parameter[propName, defaultValue, propertyChangeCallback]] begin[{]
call[.checkAndWarn, parameter[member[.propName]]]
local_variable[type[DynamicLongProperty], property]
... | Keyword[public] identifier[DynamicLongProperty] identifier[getLongProperty] operator[SEP] identifier[String] identifier[propName] , Keyword[long] identifier[defaultValue] , Keyword[final] identifier[Runnable] identifier[propertyChangeCallback] operator[SEP] {
identifier[checkAndWarn] operator[SEP] identifier[p... |
private boolean processBlockSignature(ReadBuffer readBuffer) {
if (this.mapFileHeader.getMapFileInfo().debugFile) {
// get and check the block signature
String signatureBlock = readBuffer.readUTF8EncodedString(SIGNATURE_LENGTH_BLOCK);
if (!signatureBlock.startsWith("###TileSt... | class class_name[name] begin[{]
method[processBlockSignature, return_type[type[boolean]], modifier[private], parameter[readBuffer]] begin[{]
if[THIS[member[None.mapFileHeader]call[None.getMapFileInfo, parameter[]]member[None.debugFile]]] begin[{]
local_variable[type[String], signatu... | Keyword[private] Keyword[boolean] identifier[processBlockSignature] operator[SEP] identifier[ReadBuffer] identifier[readBuffer] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mapFileHeader] operator[SEP] identifier[getMapFileInfo] operator[SEP] operator[SEP] operator[SEP] identi... |
public String getEffectiveUrl() {
StringBuilder url = new StringBuilder(this.getUrlPrefix());
url.append(this.getRepositoryPath());
char propertyDelim = getPropertyDelimiter();
for (String propertyName : getProperties().stringPropertyNames()) {
String value = getProperties().... | class class_name[name] begin[{]
method[getEffectiveUrl, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[StringBuilder], url]
call[url.append, parameter[THIS[call[None.getRepositoryPath, parameter[]]]]]
local_variable[type[char], propertyDel... | Keyword[public] identifier[String] identifier[getEffectiveUrl] operator[SEP] operator[SEP] {
identifier[StringBuilder] identifier[url] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Keyword[this] operator[SEP] identifier[getUrlPrefix] operator[SEP] operator[SEP] operator[SEP] operator[SEP] iden... |
public static String toJvmRepresentation(String primitiveTypeName) {
if (primitiveTypeName.equals("int"))
return "I";
if (primitiveTypeName.equals("boolean"))
return "Z";
if (primitiveTypeName.equals("byte"))
return "B";
if (primitiveTypeName.equals("char"))
return "C";
if (primitiveTypeN... | class class_name[name] begin[{]
method[toJvmRepresentation, return_type[type[String]], modifier[public static], parameter[primitiveTypeName]] begin[{]
if[call[primitiveTypeName.equals, parameter[literal["int"]]]] begin[{]
return[literal["I"]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] identifier[String] identifier[toJvmRepresentation] operator[SEP] identifier[String] identifier[primitiveTypeName] operator[SEP] {
Keyword[if] operator[SEP] identifier[primitiveTypeName] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyw... |
public void reset() {
unused.addAll(templateNegative);
unused.addAll(templatePositive);
templateNegative.clear();
templatePositive.clear();
} | class class_name[name] begin[{]
method[reset, return_type[void], modifier[public], parameter[]] begin[{]
call[unused.addAll, parameter[member[.templateNegative]]]
call[unused.addAll, parameter[member[.templatePositive]]]
call[templateNegative.clear, parameter[]]
... | Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] {
identifier[unused] operator[SEP] identifier[addAll] operator[SEP] identifier[templateNegative] operator[SEP] operator[SEP] identifier[unused] operator[SEP] identifier[addAll] operator[SEP] identifier[templatePositive] operator[SEP] ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.