code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public static MethodNode findMethod(ClassNode clazz, String name)
{
for (MethodNode method : clazz.methods)
{
if (method.name.equals(name))
{
return method;
}
}
return null;
} | class class_name[name] begin[{]
method[findMethod, return_type[type[MethodNode]], modifier[public static], parameter[clazz, name]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefi... | Keyword[public] Keyword[static] identifier[MethodNode] identifier[findMethod] operator[SEP] identifier[ClassNode] identifier[clazz] , identifier[String] identifier[name] operator[SEP] {
Keyword[for] operator[SEP] identifier[MethodNode] identifier[method] operator[:] identifier[clazz] operator[SEP] identifier[m... |
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
sc_stats[] resources = new sc_stats[1];
sc_response result = (sc_response) service.get_payload_formatter().string_to_resource(sc_response.class, response);
if(result.errorcode != 0) {
if (result.errorcode ==... | class class_name[name] begin[{]
method[get_nitro_response, return_type[type[base_resource]], modifier[protected], parameter[service, response]] begin[{]
local_variable[type[sc_stats], resources]
local_variable[type[sc_response], result]
if[binary_operation[member[result.errorcod... | Keyword[protected] identifier[base_resource] operator[SEP] operator[SEP] identifier[get_nitro_response] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[response] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[sc_stats] operator[SEP] operator[SEP] ide... |
public void marshall(RegisterInstanceRequest registerInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (registerInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(registerIn... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[registerInstanceRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.registerInstanceRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[RegisterInstanceRequest] identifier[registerInstanceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[registerInstanceRequest] operator[==] Other[null] operator... |
public static InboundMessageContext header(String name, Object value) {
return getRequest().header(name, value);
} | class class_name[name] begin[{]
method[header, return_type[type[InboundMessageContext]], modifier[public static], parameter[name, value]] begin[{]
return[call[.getRequest, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[InboundMessageContext] identifier[header] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] {
Keyword[return] identifier[getRequest] operator[SEP] operator[SEP] operator[SEP] identifier[header] operator[SEP] identifi... |
private boolean isMinimalQuery(QueryPlanningInfo info) {
return info.projectionAfterOrderBy == null && info.globalLetClause == null && info.perRecordLetClause == null
&& info.whereClause == null && info.flattenedWhereClause == null && info.groupBy == null && info.orderBy == null
&& info.unwind == nu... | class class_name[name] begin[{]
method[isMinimalQuery, return_type[type[boolean]], modifier[private], parameter[info]] begin[{]
return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[info.pro... | Keyword[private] Keyword[boolean] identifier[isMinimalQuery] operator[SEP] identifier[QueryPlanningInfo] identifier[info] operator[SEP] {
Keyword[return] identifier[info] operator[SEP] identifier[projectionAfterOrderBy] operator[==] Other[null] operator[&&] identifier[info] operator[SEP] identifier[globalLetClau... |
public static CommandResult execCommand(List<String> commands, boolean isRoot, boolean isNeedResultMsg) {
return execCommand(commands == null ? null : commands.toArray(new String[]{}), isRoot, isNeedResultMsg);
} | class class_name[name] begin[{]
method[execCommand, return_type[type[CommandResult]], modifier[public static], parameter[commands, isRoot, isNeedResultMsg]] begin[{]
return[call[.execCommand, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=commands, postfix_operato... | Keyword[public] Keyword[static] identifier[CommandResult] identifier[execCommand] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[commands] , Keyword[boolean] identifier[isRoot] , Keyword[boolean] identifier[isNeedResultMsg] operator[SEP] {
Keyword[return] identifier[execCo... |
public XMLElement parse(String name, InputStream in) throws SlickXMLException {
try {
if (factory == null) {
factory = DocumentBuilderFactory.newInstance();
}
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(in);
return new XMLElement(doc.getDocumentE... | class class_name[name] begin[{]
method[parse, return_type[type[XMLElement]], modifier[public], parameter[name, in]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=factory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=... | Keyword[public] identifier[XMLElement] identifier[parse] operator[SEP] identifier[String] identifier[name] , identifier[InputStream] identifier[in] operator[SEP] Keyword[throws] identifier[SlickXMLException] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[factory] operator[==] Other[null] opera... |
@XmlElementDecl(namespace = "http://schema.intuit.com/finance/v3", name = "TimeActivity", substitutionHeadNamespace = "http://schema.intuit.com/finance/v3", substitutionHeadName = "IntuitObject")
public JAXBElement<TimeActivity> createTimeActivity(TimeActivity value) {
return new JAXBElement<TimeActivity>(_... | class class_name[name] begin[{]
method[createTimeActivity, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_TimeActivity_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden... |
public Surface clear (float red, float green, float blue, float alpha) {
batch.gl.glClearColor(red, green, blue, alpha);
batch.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
return this;
} | class class_name[name] begin[{]
method[clear, return_type[type[Surface]], modifier[public], parameter[red, green, blue, alpha]] begin[{]
call[batch.gl.glClearColor, parameter[member[.red], member[.green], member[.blue], member[.alpha]]]
call[batch.gl.glClear, parameter[member[GL... | Keyword[public] identifier[Surface] identifier[clear] operator[SEP] Keyword[float] identifier[red] , Keyword[float] identifier[green] , Keyword[float] identifier[blue] , Keyword[float] identifier[alpha] operator[SEP] {
identifier[batch] operator[SEP] identifier[gl] operator[SEP] identifier[glClearColor] opera... |
public Path withFile(final String file) {
final Path result = new Path(this);
result.setFile(file);
return result;
} | class class_name[name] begin[{]
method[withFile, return_type[type[Path]], modifier[public], parameter[file]] begin[{]
local_variable[type[Path], result]
call[result.setFile, parameter[member[.file]]]
return[member[.result]]
end[}]
END[}] | Keyword[public] identifier[Path] identifier[withFile] operator[SEP] Keyword[final] identifier[String] identifier[file] operator[SEP] {
Keyword[final] identifier[Path] identifier[result] operator[=] Keyword[new] identifier[Path] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[result] operator[S... |
private static MimeBodyPart createBodyPart(byte[] data, String type, String filename) throws MessagingException {
final MimeBodyPart attachmentPart = new MimeBodyPart();
attachmentPart.setFileName(filename);
ByteArrayDataSource source = new ByteArrayDataSource(data, type);
attachmentPart... | class class_name[name] begin[{]
method[createBodyPart, return_type[type[MimeBodyPart]], modifier[private static], parameter[data, type, filename]] begin[{]
local_variable[type[MimeBodyPart], attachmentPart]
call[attachmentPart.setFileName, parameter[member[.filename]]]
local_var... | Keyword[private] Keyword[static] identifier[MimeBodyPart] identifier[createBodyPart] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , identifier[String] identifier[type] , identifier[String] identifier[filename] operator[SEP] Keyword[throws] identifier[MessagingException] {
Keyword[fi... |
public void marshall(TagResourceRequest tagResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (tagResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tagResourceRequest.getKey... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[tagResourceRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.tagResourceRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(p... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[TagResourceRequest] identifier[tagResourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[tagResourceRequest] operator[==] Other[null] operator[SEP] {
... |
public static void saveMD5File(File dataFile, MD5Hash digest)
throws IOException {
File md5File = getDigestFileForFile(dataFile);
String digestString = StringUtils.byteToHexString(
digest.getDigest());
String md5Line = digestString + " *" + dataFile.getName() + "\n";
AtomicFileOutputS... | class class_name[name] begin[{]
method[saveMD5File, return_type[void], modifier[public static], parameter[dataFile, digest]] begin[{]
local_variable[type[File], md5File]
local_variable[type[String], digestString]
local_variable[type[String], md5Line]
local_variable[type[AtomicFi... | Keyword[public] Keyword[static] Keyword[void] identifier[saveMD5File] operator[SEP] identifier[File] identifier[dataFile] , identifier[MD5Hash] identifier[digest] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[File] identifier[md5File] operator[=] identifier[getDigestFileForFile] operator[SE... |
public static void configureDB(JobConf job, String driverClass, String dbUrl
, String userName, String passwd) {
job.set(DRIVER_CLASS_PROPERTY, driverClass);
job.set(URL_PROPERTY, dbUrl);
if(userName != null)
job.set(USERNAME_PROPERTY, userName);
if(passwd != null)
job.set(PASSWORD_PR... | class class_name[name] begin[{]
method[configureDB, return_type[void], modifier[public static], parameter[job, driverClass, dbUrl, userName, passwd]] begin[{]
call[job.set, parameter[member[.DRIVER_CLASS_PROPERTY], member[.driverClass]]]
call[job.set, parameter[member[.URL_PROPE... | Keyword[public] Keyword[static] Keyword[void] identifier[configureDB] operator[SEP] identifier[JobConf] identifier[job] , identifier[String] identifier[driverClass] , identifier[String] identifier[dbUrl] , identifier[String] identifier[userName] , identifier[String] identifier[passwd] operator[SEP] {
identif... |
public boolean needsGui() {
BeanContextChild bcc = getPeer();
if (bcc != this && bcc instanceof Visibility) {
return ((Visibility) bcc).needsGui();
}
// check children
for (Object o : _children.keySet()) {
if (o instanceof Visibility) {
if... | class class_name[name] begin[{]
method[needsGui, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
local_variable[type[BeanContextChild], bcc]
if[binary_operation[binary_operation[member[.bcc], !=, THIS[]], &&, binary_operation[member[.bcc], instanceof, type[Visibility... | Keyword[public] Keyword[boolean] identifier[needsGui] operator[SEP] operator[SEP] {
identifier[BeanContextChild] identifier[bcc] operator[=] identifier[getPeer] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bcc] operator[!=] Keyword[this] operator[&&] identifier[bcc] Keyword[inst... |
public Properties getOptionProperties(String opt)
{
Properties props = new Properties();
for (Option option : options)
{
if (opt.equals(option.getOpt()) || opt.equals(option.getLongOpt()))
{
List<String> values = option.getValuesList();
... | class class_name[name] begin[{]
method[getOptionProperties, return_type[type[Properties]], modifier[public], parameter[opt]] begin[{]
local_variable[type[Properties], props]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(... | Keyword[public] identifier[Properties] identifier[getOptionProperties] operator[SEP] identifier[String] identifier[opt] operator[SEP] {
identifier[Properties] identifier[props] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Option] ... |
public static appfwprofile get(nitro_service service, String name) throws Exception{
appfwprofile obj = new appfwprofile();
obj.set_name(name);
appfwprofile response = (appfwprofile) obj.get_resource(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[appfwprofile]], modifier[public static], parameter[service, name]] begin[{]
local_variable[type[appfwprofile], obj]
call[obj.set_name, parameter[member[.name]]]
local_variable[type[appfwprofile], response]
retu... | Keyword[public] Keyword[static] identifier[appfwprofile] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[appfwprofile] identifier[obj] operator[=] Keyword[new] identifier[appfwprofi... |
@Override
public CreateNamedQueryResult createNamedQuery(CreateNamedQueryRequest request) {
request = beforeClientExecution(request);
return executeCreateNamedQuery(request);
} | class class_name[name] begin[{]
method[createNamedQuery, return_type[type[CreateNamedQueryResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeCreateNamedQuery, parameter[member[.... | annotation[@] identifier[Override] Keyword[public] identifier[CreateNamedQueryResult] identifier[createNamedQuery] operator[SEP] identifier[CreateNamedQueryRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP... |
private static String escapeDoubleQuotes(String s, int beginIndex, int endIndex) {
if (s == null || s.length() == 0 || s.indexOf('"') == -1) {
return s;
}
StringBuilder b = new StringBuilder();
for (int i = beginIndex; i < endIndex; i++) {
char c = s.charAt(i);
... | class class_name[name] begin[{]
method[escapeDoubleQuotes, return_type[type[String]], modifier[private static], parameter[s, beginIndex, endIndex]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.s], ==, literal[null]], ||, binary_operation[call[s.length, parameter[]], ==... | Keyword[private] Keyword[static] identifier[String] identifier[escapeDoubleQuotes] operator[SEP] identifier[String] identifier[s] , Keyword[int] identifier[beginIndex] , Keyword[int] identifier[endIndex] operator[SEP] {
Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[||] identifier[s]... |
@Override
public void setDecimal(int ordinal, Decimal value, int precision) {
assertIndexIsValid(ordinal);
if (precision <= Decimal.MAX_LONG_DIGITS()) {
// compact format
if (value == null) {
setNullAt(ordinal);
} else {
setLong(ordinal, value.toUnscaledLong());
}
}... | class class_name[name] begin[{]
method[setDecimal, return_type[void], modifier[public], parameter[ordinal, value, precision]] begin[{]
call[.assertIndexIsValid, parameter[member[.ordinal]]]
if[binary_operation[member[.precision], <=, call[Decimal.MAX_LONG_DIGITS, parameter[]]]] ... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setDecimal] operator[SEP] Keyword[int] identifier[ordinal] , identifier[Decimal] identifier[value] , Keyword[int] identifier[precision] operator[SEP] {
identifier[assertIndexIsValid] operator[SEP] identifier[ordinal] operator[SEP] oper... |
public static int computeCapacity(double percentage, String mapName) {
return computeCapacity(Runtime.getRuntime().maxMemory(), percentage, mapName);
} | class class_name[name] begin[{]
method[computeCapacity, return_type[type[int]], modifier[public static], parameter[percentage, mapName]] begin[{]
return[call[.computeCapacity, parameter[call[Runtime.getRuntime, parameter[]], member[.percentage], member[.mapName]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[int] identifier[computeCapacity] operator[SEP] Keyword[double] identifier[percentage] , identifier[String] identifier[mapName] operator[SEP] {
Keyword[return] identifier[computeCapacity] operator[SEP] identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] ... |
public static BasicStroke toStroke(final String style) {
BasicStroke result = null;
if (style != null) {
float lineWidth = STROKE_DEFAULT_LINE_WIDTH;
float[] dash = { STROKE_DEFAULT_DASH_WIDTH };
float[] dot = { lineWidth };
if (style.equalsIgnor... | class class_name[name] begin[{]
method[toStroke, return_type[type[BasicStroke]], modifier[public static], parameter[style]] begin[{]
local_variable[type[BasicStroke], result]
if[binary_operation[member[.style], !=, literal[null]]] begin[{]
local_variable[type[float], lineWid... | Keyword[public] Keyword[static] identifier[BasicStroke] identifier[toStroke] operator[SEP] Keyword[final] identifier[String] identifier[style] operator[SEP] {
identifier[BasicStroke] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[style] operator[!=] Other[null] oper... |
private ZipFile createZipFile(List<Path.Entry<?>> files) throws IOException {
// The set of known paths
HashSet<Path.ID> paths = new HashSet<>();
// The zip file we're creating
ZipFile zf = new ZipFile();
// Add each file to zip file
for (int i = 0; i != files.size(); ++i) {
Path.Entry<?> file = files.ge... | class class_name[name] begin[{]
method[createZipFile, return_type[type[ZipFile]], modifier[private], parameter[files]] begin[{]
local_variable[type[HashSet], paths]
local_variable[type[ZipFile], zf]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annota... | Keyword[private] identifier[ZipFile] identifier[createZipFile] operator[SEP] identifier[List] operator[<] identifier[Path] operator[SEP] identifier[Entry] operator[<] operator[?] operator[>] operator[>] identifier[files] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[HashSet] operator[<] iden... |
public void setFailed(java.util.Collection<BatchResultErrorEntry> failed) {
if (failed == null) {
this.failed = null;
return;
}
this.failed = new com.amazonaws.internal.SdkInternalList<BatchResultErrorEntry>(failed);
} | class class_name[name] begin[{]
method[setFailed, return_type[void], modifier[public], parameter[failed]] begin[{]
if[binary_operation[member[.failed], ==, literal[null]]] begin[{]
assign[THIS[member[None.failed]], literal[null]]
return[None]
else beg... | Keyword[public] Keyword[void] identifier[setFailed] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[BatchResultErrorEntry] operator[>] identifier[failed] operator[SEP] {
Keyword[if] operator[SEP] identifier[failed] operator[==] Other[null]... |
public boolean updateLastIndexed(String geoPackage, String tableName, long lastIndexed) {
return updateLastIndexed(getGeoPackageId(geoPackage), tableName, lastIndexed);
} | class class_name[name] begin[{]
method[updateLastIndexed, return_type[type[boolean]], modifier[public], parameter[geoPackage, tableName, lastIndexed]] begin[{]
return[call[.updateLastIndexed, parameter[call[.getGeoPackageId, parameter[member[.geoPackage]]], member[.tableName], member[.lastIndexed]]]]
... | Keyword[public] Keyword[boolean] identifier[updateLastIndexed] operator[SEP] identifier[String] identifier[geoPackage] , identifier[String] identifier[tableName] , Keyword[long] identifier[lastIndexed] operator[SEP] {
Keyword[return] identifier[updateLastIndexed] operator[SEP] identifier[getGeoPackageId] opera... |
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public void defaultHeaders_serverHandler(Blackhole bh) {
serverHandler(bh, new DefaultHttp2Headers(true, 9));
} | class class_name[name] begin[{]
method[defaultHeaders_serverHandler, return_type[void], modifier[public], parameter[bh]] begin[{]
call[.serverHandler, parameter[member[.bh], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), Lit... | annotation[@] identifier[Benchmark] annotation[@] identifier[BenchmarkMode] operator[SEP] identifier[Mode] operator[SEP] identifier[AverageTime] operator[SEP] annotation[@] identifier[OutputTimeUnit] operator[SEP] identifier[TimeUnit] operator[SEP] identifier[NANOSECONDS] operator[SEP] Keyword[public] Keyword[void] ide... |
protected static boolean compareAttributes(Part left, Part right) {
if (left == right) {
return true;
} else if (left == Part.ANY) {
return true;
}
return false;
} | class class_name[name] begin[{]
method[compareAttributes, return_type[type[boolean]], modifier[static protected], parameter[left, right]] begin[{]
if[binary_operation[member[.left], ==, member[.right]]] begin[{]
return[literal[true]]
else begin[{]
if[binary_opera... | Keyword[protected] Keyword[static] Keyword[boolean] identifier[compareAttributes] operator[SEP] identifier[Part] identifier[left] , identifier[Part] identifier[right] operator[SEP] {
Keyword[if] operator[SEP] identifier[left] operator[==] identifier[right] operator[SEP] {
Keyword[return] literal[bool... |
private static int findPairBracketPosition(final String str, final int startPos) {
int bracketNum = 0;
for (int i = startPos; i < str.length(); i++)
{
char current = str.charAt(i);
if (current == TieConstants.EL_START_BRACKET)
{
bracketNum++;
... | class class_name[name] begin[{]
method[findPairBracketPosition, return_type[type[int]], modifier[private static], parameter[str, startPos]] begin[{]
local_variable[type[int], bracketNum]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarator... | Keyword[private] Keyword[static] Keyword[int] identifier[findPairBracketPosition] operator[SEP] Keyword[final] identifier[String] identifier[str] , Keyword[final] Keyword[int] identifier[startPos] operator[SEP] {
Keyword[int] identifier[bracketNum] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] K... |
@Override
public GetHostedZoneResult getHostedZone(GetHostedZoneRequest request) {
request = beforeClientExecution(request);
return executeGetHostedZone(request);
} | class class_name[name] begin[{]
method[getHostedZone, return_type[type[GetHostedZoneResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeGetHostedZone, parameter[member[.request]]... | annotation[@] identifier[Override] Keyword[public] identifier[GetHostedZoneResult] identifier[getHostedZone] operator[SEP] identifier[GetHostedZoneRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato... |
public static List<Method> getPublicMethods(Class<?> clazz, String... excludeMethodNames) {
return getPublicMethods(clazz, excludeMethodNames);
} | class class_name[name] begin[{]
method[getPublicMethods, return_type[type[List]], modifier[public static], parameter[clazz, excludeMethodNames]] begin[{]
return[call[.getPublicMethods, parameter[member[.clazz], member[.excludeMethodNames]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Method] operator[>] identifier[getPublicMethods] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] operator[...] identifier[excludeMethodNames] operator[SEP] {
Keyword[return] identif... |
public JavadocLink javadocMethodLink(String memberName, Type... types) {
return new JavadocLink("%s#%s(%s)",
getQualifiedName(),
memberName,
(Excerpt) code -> {
String separator = "";
for (Type type : types) {
code.add("%s%s", separator, type.getQualifiedName(... | class class_name[name] begin[{]
method[javadocMethodLink, return_type[type[JavadocLink]], modifier[public], parameter[memberName, types]] begin[{]
return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="%s#%s(%s)"), MethodInvocation(argumen... | Keyword[public] identifier[JavadocLink] identifier[javadocMethodLink] operator[SEP] identifier[String] identifier[memberName] , identifier[Type] operator[...] identifier[types] operator[SEP] {
Keyword[return] Keyword[new] identifier[JavadocLink] operator[SEP] literal[String] , identifier[getQualifiedName] oper... |
public final void startServer(){
logger.info("Starting Ebeans Module.");
// /////////////////////////////////////////////////////////////////////
// Setup basic parameters
// /////////////////////////////////////////////////////////////////////
boolean ebeanDdlGenerate = ninjaPr... | class class_name[name] begin[{]
method[startServer, return_type[void], modifier[final public], parameter[]] begin[{]
call[logger.info, parameter[literal["Starting Ebeans Module."]]]
local_variable[type[boolean], ebeanDdlGenerate]
local_variable[type[boolean], ebeanDdlRun]
... | Keyword[public] Keyword[final] Keyword[void] identifier[startServer] operator[SEP] operator[SEP] {
identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[boolean] identifier[ebeanDdlGenerate] operator[=] identifier[ninjaProperties] operator[SEP] identi... |
public static cmppolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_csvserver_binding obj = new cmppolicy_csvserver_binding();
obj.set_name(name);
cmppolicy_csvserver_binding response[] = (cmppolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[cmppolicy_csvserver_binding]], modifier[public static], parameter[service, name]] begin[{]
local_variable[type[cmppolicy_csvserver_binding], obj]
call[obj.set_name, parameter[member[.name]]]
local_variable[type[cmppoli... | Keyword[public] Keyword[static] identifier[cmppolicy_csvserver_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[cmppolicy_csvserver_binding] iden... |
@Override
public Set<String> getFileExtension(String fileTypeExtension) throws OSException {
fileTypeExtension = sanitizeFileExtension(fileTypeExtension);
if (!LinuxMIMEDatabase.instance().getExtensionMimeMap().containsKey(fileTypeExtension)) {
throw new OSException("File type extension... | class class_name[name] begin[{]
method[getFileExtension, return_type[type[Set]], modifier[public], parameter[fileTypeExtension]] begin[{]
assign[member[.fileTypeExtension], call[.sanitizeFileExtension, parameter[member[.fileTypeExtension]]]]
if[call[LinuxMIMEDatabase.instance, p... | annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getFileExtension] operator[SEP] identifier[String] identifier[fileTypeExtension] operator[SEP] Keyword[throws] identifier[OSException] {
identifier[fileTypeExtension] operator[=] identifier[sa... |
public final void mGREATER() throws RecognitionException {
try {
int _type = GREATER;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:226:5: ( '>' )
// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:226:7: '>'
{
match('>'); if (state.failed) ... | class class_name[name] begin[{]
method[mGREATER, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=GREATER, postfix_operators=[], prefix_operator... | Keyword[public] Keyword[final] Keyword[void] identifier[mGREATER] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
Keyword[int] identifier[_type] operator[=] identifier[GREATER] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_... |
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties)
{
ScreenComponent screenField = null;
if (converter.getMaxLength() <= ScreenConstants.MAX_SINGLE_LINE_CHARS)
screenField ... | class class_name[name] begin[{]
method[setupDefaultView, return_type[type[ScreenComponent]], modifier[public], parameter[itsLocation, targetScreen, converter, iDisplayFieldDesc, properties]] begin[{]
local_variable[type[ScreenComponent], screenField]
if[binary_operation[call[converter.g... | Keyword[public] identifier[ScreenComponent] identifier[setupDefaultView] operator[SEP] identifier[ScreenLoc] identifier[itsLocation] , identifier[ComponentParent] identifier[targetScreen] , identifier[Convert] identifier[converter] , Keyword[int] identifier[iDisplayFieldDesc] , identifier[Map] operator[<] identifie... |
public IfcPileConstructionEnum createIfcPileConstructionEnumFromString(EDataType eDataType, String initialValue) {
IfcPileConstructionEnum result = IfcPileConstructionEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerat... | class class_name[name] begin[{]
method[createIfcPileConstructionEnumFromString, return_type[type[IfcPileConstructionEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{]
local_variable[type[IfcPileConstructionEnum], result]
if[binary_operation[member[.result], ==, liter... | Keyword[public] identifier[IfcPileConstructionEnum] identifier[createIfcPileConstructionEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] {
identifier[IfcPileConstructionEnum] identifier[result] operator[=] identifier[IfcPileCon... |
ProtectionDomain getProtectionDomainForProxy(ProtectionDomain domain) {
if (domain.getCodeSource() == null) {
// no codesource to cache on
return create(domain);
}
ProtectionDomain proxyProtectionDomain = proxyProtectionDomains.get(domain.getCodeSource());
if (pro... | class class_name[name] begin[{]
method[getProtectionDomainForProxy, return_type[type[ProtectionDomain]], modifier[default], parameter[domain]] begin[{]
if[binary_operation[call[domain.getCodeSource, parameter[]], ==, literal[null]]] begin[{]
return[call[.create, parameter[member[.do... | identifier[ProtectionDomain] identifier[getProtectionDomainForProxy] operator[SEP] identifier[ProtectionDomain] identifier[domain] operator[SEP] {
Keyword[if] operator[SEP] identifier[domain] operator[SEP] identifier[getCodeSource] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] {
K... |
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.STO__IORNTION:
return IORNTION_EDEFAULT == null ? iorntion != null : !IORNTION_EDEFAULT.equals(iorntion);
case AfplibPackage.STO__BORNTION:
return BORNTION_EDEFAULT == null ? borntion != null : !BORNTION_EDEFAULT.e... | class class_name[name] begin[{]
method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=STO__IORNTION, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statemen... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[STO__IORNTION] op... |
public static String joinNamespace(final List<String> namespace) {
for (final String element : namespace) {
checkArgument(!element.startsWith(DELIM),
"Namespace element may not begin with a period: " + element);
checkArgument(!element.endsWith(DELIM),
"Namespace element may not end w... | class class_name[name] begin[{]
method[joinNamespace, return_type[type[String]], modifier[public static], parameter[namespace]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member... | Keyword[public] Keyword[static] identifier[String] identifier[joinNamespace] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[namespace] operator[SEP] {
Keyword[for] operator[SEP] Keyword[final] identifier[String] identifier[element] operator[:] identifier[name... |
public boolean recordDefineType(JSTypeExpression type) {
if (type != null &&
!currentInfo.isConstant() &&
!currentInfo.isDefine() &&
recordType(type)) {
currentInfo.setDefine(true);
populated = true;
return true;
} else {
return false;
}
} | class class_name[name] begin[{]
method[recordDefineType, return_type[type[boolean]], modifier[public], parameter[type]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[member[.type], !=, literal[null]], &&, call[currentInfo.isConstant, parameter[]]], &&, call[cur... | Keyword[public] Keyword[boolean] identifier[recordDefineType] operator[SEP] identifier[JSTypeExpression] identifier[type] operator[SEP] {
Keyword[if] operator[SEP] identifier[type] operator[!=] Other[null] operator[&&] operator[!] identifier[currentInfo] operator[SEP] identifier[isConstant] operator[SEP] operato... |
public void setContentAction(Action.OnActionListener listener) {
setContentAction(listener, null, null, null, null);
} | class class_name[name] begin[{]
method[setContentAction, return_type[void], modifier[public], parameter[listener]] begin[{]
call[.setContentAction, parameter[member[.listener], literal[null], literal[null], literal[null], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setContentAction] operator[SEP] identifier[Action] operator[SEP] identifier[OnActionListener] identifier[listener] operator[SEP] {
identifier[setContentAction] operator[SEP] identifier[listener] , Other[null] , Other[null] , Other[null] , Other[null] operator[SEP] ope... |
public static NumberData negative(SoyValue node) {
if (node instanceof IntegerData) {
return IntegerData.forValue(-node.longValue());
} else {
return FloatData.forValue(-node.floatValue());
}
} | class class_name[name] begin[{]
method[negative, return_type[type[NumberData]], modifier[public static], parameter[node]] begin[{]
if[binary_operation[member[.node], instanceof, type[IntegerData]]] begin[{]
return[call[IntegerData.forValue, parameter[call[node.longValue, parameter[]... | Keyword[public] Keyword[static] identifier[NumberData] identifier[negative] operator[SEP] identifier[SoyValue] identifier[node] operator[SEP] {
Keyword[if] operator[SEP] identifier[node] Keyword[instanceof] identifier[IntegerData] operator[SEP] {
Keyword[return] identifier[IntegerData] operator[SEP] i... |
public static LineString fromLngLats(@NonNull List<Point> points) {
return new LineString(TYPE, null, points);
} | class class_name[name] begin[{]
method[fromLngLats, return_type[type[LineString]], modifier[public static], parameter[points]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=TYPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_... | Keyword[public] Keyword[static] identifier[LineString] identifier[fromLngLats] operator[SEP] annotation[@] identifier[NonNull] identifier[List] operator[<] identifier[Point] operator[>] identifier[points] operator[SEP] {
Keyword[return] Keyword[new] identifier[LineString] operator[SEP] identifier[TYPE] , Other[... |
public void delete_attribute_property(String attname, String propname) throws DevFailed {
database.delete_device_attribute_property(deviceName, attname, propname);
} | class class_name[name] begin[{]
method[delete_attribute_property, return_type[void], modifier[public], parameter[attname, propname]] begin[{]
call[database.delete_device_attribute_property, parameter[member[.deviceName], member[.attname], member[.propname]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[delete_attribute_property] operator[SEP] identifier[String] identifier[attname] , identifier[String] identifier[propname] operator[SEP] Keyword[throws] identifier[DevFailed] {
identifier[database] operator[SEP] identifier[delete_device_attribute_property] operator[SEP] i... |
static Method findPrivateMethod(Class<?> cl, String methodName,
Class<?>[] param) {
try {
Method method = cl.getDeclaredMethod(methodName, param);
if (Modifier.isPrivate(method.getModifiers()) && method.getReturnType() == void.class) {
method.setAccessible(tru... | class class_name[name] begin[{]
method[findPrivateMethod, return_type[type[Method]], modifier[static], parameter[cl, methodName, param]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRef... | Keyword[static] identifier[Method] identifier[findPrivateMethod] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cl] , identifier[String] identifier[methodName] , identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[param] operator[SEP] {
K... |
public static <T> List<T> toposort(final Set<T> inputSet, T root, final Deps<T> deps, boolean isFullCut) {
// Check that inputs set is a valid set of leaves for the given output module.
checkAreDescendentsOf(inputSet, root, deps);
if (isFullCut) {
checkIsFullCut(inputSet, root, deps)... | class class_name[name] begin[{]
method[toposort, return_type[type[List]], modifier[public static], parameter[inputSet, root, deps, isFullCut]] begin[{]
call[.checkAreDescendentsOf, parameter[member[.inputSet], member[.root], member[.deps]]]
if[member[.isFullCut]] begin[{]
... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[toposort] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[T] operator[>] identifier[inputSet] , identifier[T] identifier[root] , Keyword[final] identifier[Deps] o... |
public List<ResourceRefType<MessageDrivenBeanType<T>>> getAllResourceRef()
{
List<ResourceRefType<MessageDrivenBeanType<T>>> list = new ArrayList<ResourceRefType<MessageDrivenBeanType<T>>>();
List<Node> nodeList = childNode.get("resource-ref");
for(Node node: nodeList)
{
ResourceRefT... | class class_name[name] begin[{]
method[getAllResourceRef, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], list]
local_variable[type[List], nodeList]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=... | Keyword[public] identifier[List] operator[<] identifier[ResourceRefType] operator[<] identifier[MessageDrivenBeanType] operator[<] identifier[T] operator[>] operator[>] operator[>] identifier[getAllResourceRef] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[ResourceRefType] operator[<] ide... |
public String getNumericName(int i )
{
if(i < getNumNumericalVars() && i >= 0)
return numericalVariableNames.getOrDefault(i, "Numeric Feature " + i);
else
throw new IndexOutOfBoundsException("Can not acces variable for invalid index " + i );
} | class class_name[name] begin[{]
method[getNumericName, return_type[type[String]], modifier[public], parameter[i]] begin[{]
if[binary_operation[binary_operation[member[.i], <, call[.getNumNumericalVars, parameter[]]], &&, binary_operation[member[.i], >=, literal[0]]]] begin[{]
return[call[numeri... | Keyword[public] identifier[String] identifier[getNumericName] operator[SEP] Keyword[int] identifier[i] operator[SEP] {
Keyword[if] operator[SEP] identifier[i] operator[<] identifier[getNumNumericalVars] operator[SEP] operator[SEP] operator[&&] identifier[i] operator[>=] Other[0] operator[SEP] Keyword[return] ide... |
public Vector<Object> runReference(Vector<Object> referenceParams, String locale)
{
return serviceDelegator.runReference(referenceParams, locale);
} | class class_name[name] begin[{]
method[runReference, return_type[type[Vector]], modifier[public], parameter[referenceParams, locale]] begin[{]
return[call[serviceDelegator.runReference, parameter[member[.referenceParams], member[.locale]]]]
end[}]
END[}] | Keyword[public] identifier[Vector] operator[<] identifier[Object] operator[>] identifier[runReference] operator[SEP] identifier[Vector] operator[<] identifier[Object] operator[>] identifier[referenceParams] , identifier[String] identifier[locale] operator[SEP] {
Keyword[return] identifier[serviceDelegator] oper... |
@SuppressWarnings("deprecation")
public Date toDate() {
int dom = getDayOfMonth();
Date date = new Date(getYear() - 1900, getMonthOfYear() - 1, dom,
getHourOfDay(), getMinuteOfHour(), getSecondOfMinute());
date.setTime(date.getTime() + getMillisOfSecond());
re... | class class_name[name] begin[{]
method[toDate, return_type[type[Date]], modifier[public], parameter[]] begin[{]
local_variable[type[int], dom]
local_variable[type[Date], date]
call[date.setTime, parameter[binary_operation[call[date.getTime, parameter[]], +, call[.getMillisOfSeco... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Date] identifier[toDate] operator[SEP] operator[SEP] {
Keyword[int] identifier[dom] operator[=] identifier[getDayOfMonth] operator[SEP] operator[SEP] operator[SEP] identifier[Date] identifier[date] o... |
@Benchmark
@BenchmarkMode(Mode.Throughput)
public void discard(final LifeCycle lifeCycle) {
lifeCycle.logger.log(java.util.logging.Level.CONFIG, "Hello {}!", MAGIC_NUMBER);
} | class class_name[name] begin[{]
method[discard, return_type[void], modifier[public], parameter[lifeCycle]] begin[{]
call[lifeCycle.logger.log, parameter[member[java.util.logging.Level.CONFIG], literal["Hello {}!"], member[.MAGIC_NUMBER]]]
end[}]
END[}] | annotation[@] identifier[Benchmark] annotation[@] identifier[BenchmarkMode] operator[SEP] identifier[Mode] operator[SEP] identifier[Throughput] operator[SEP] Keyword[public] Keyword[void] identifier[discard] operator[SEP] Keyword[final] identifier[LifeCycle] identifier[lifeCycle] operator[SEP] {
identifier[lifeC... |
@Override
public <B> IdentityT<M, B> flatMap(Function<? super A, ? extends Monad<B, MonadT<M, Identity<?>, ?>>> f) {
return identityT(mia.flatMap(identityA -> f.apply(identityA.runIdentity()).<IdentityT<M, B>>coerce().run()));
} | class class_name[name] begin[{]
method[flatMap, return_type[type[IdentityT]], modifier[public], parameter[f]] begin[{]
return[call[.identityT, parameter[call[mia.flatMap, parameter[LambdaExpression(body=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=runIdentity, postfix_operators=[],... | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[B] operator[>] identifier[IdentityT] operator[<] identifier[M] , identifier[B] operator[>] identifier[flatMap] operator[SEP] identifier[Function] operator[<] operator[?] Keyword[super] identifier[A] , operator[?] Keyword[extends] identifier[Mon... |
public boolean execute() {
try {
coroutine.run(continuation);
continuation.successExecutionCycle();
} catch (Exception e) {
continuation.failedExecutionCycle();
throw new CoroutineException("Exception thrown during execution", e);
}
... | class class_name[name] begin[{]
method[execute, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=continuation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], ... | Keyword[public] Keyword[boolean] identifier[execute] operator[SEP] operator[SEP] {
Keyword[try] {
identifier[coroutine] operator[SEP] identifier[run] operator[SEP] identifier[continuation] operator[SEP] operator[SEP] identifier[continuation] operator[SEP] identifier[successExecutionCycle] operator[SEP... |
public final <U3> Tuple3<T1, T2, U3> map3(Function<? super T3, ? extends U3> function) {
return Tuple.tuple(v1, v2, function.apply(v3));
} | class class_name[name] begin[{]
method[map3, return_type[type[Tuple3]], modifier[final public], parameter[function]] begin[{]
return[call[Tuple.tuple, parameter[member[.v1], member[.v2], call[function.apply, parameter[member[.v3]]]]]]
end[}]
END[}] | Keyword[public] Keyword[final] operator[<] identifier[U3] operator[>] identifier[Tuple3] operator[<] identifier[T1] , identifier[T2] , identifier[U3] operator[>] identifier[map3] operator[SEP] identifier[Function] operator[<] operator[?] Keyword[super] identifier[T3] , operator[?] Keyword[extends] identifier[U3] ope... |
public static String orderRefundQuery(boolean isSandbox, Map<String, String> params) {
if (isSandbox)
return doPost(REFUNDQUERY_SANDBOXNEW_URL, params);
return doPost(REFUNDQUERY_URL, params);
} | class class_name[name] begin[{]
method[orderRefundQuery, return_type[type[String]], modifier[public static], parameter[isSandbox, params]] begin[{]
if[member[.isSandbox]] begin[{]
return[call[.doPost, parameter[member[.REFUNDQUERY_SANDBOXNEW_URL], member[.params]]]]
else begin[{]
None
... | Keyword[public] Keyword[static] identifier[String] identifier[orderRefundQuery] operator[SEP] Keyword[boolean] identifier[isSandbox] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[params] operator[SEP] {
Keyword[if] operator[SEP] identifier[isSandbox] operator[SEP]... |
public final void push(String s)
{
if ((m_firstFree + 1) >= m_mapSize)
{
m_mapSize += m_blocksize;
String newMap[] = new String[m_mapSize];
System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);
m_map = newMap;
}
m_map[m_firstFree] = s;
m_firstFree++;
} | class class_name[name] begin[{]
method[push, return_type[void], modifier[final public], parameter[s]] begin[{]
if[binary_operation[binary_operation[member[.m_firstFree], +, literal[1]], >=, member[.m_mapSize]]] begin[{]
assign[member[.m_mapSize], member[.m_blocksize]]
... | Keyword[public] Keyword[final] Keyword[void] identifier[push] operator[SEP] identifier[String] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[m_firstFree] operator[+] Other[1] operator[SEP] operator[>=] identifier[m_mapSize] operator[SEP] {
identifier[m_mapSize] opera... |
public static BeanId create(final String instanceId, final String schemaName) {
if (instanceId == null || "".equals(instanceId)) {
throw CFG107_MISSING_ID();
}
return new BeanId(instanceId, schemaName);
} | class class_name[name] begin[{]
method[create, return_type[type[BeanId]], modifier[public static], parameter[instanceId, schemaName]] begin[{]
if[binary_operation[binary_operation[member[.instanceId], ==, literal[null]], ||, literal[""]]] begin[{]
ThrowStatement(expression=MethodInv... | Keyword[public] Keyword[static] identifier[BeanId] identifier[create] operator[SEP] Keyword[final] identifier[String] identifier[instanceId] , Keyword[final] identifier[String] identifier[schemaName] operator[SEP] {
Keyword[if] operator[SEP] identifier[instanceId] operator[==] Other[null] operator[||] literal[S... |
@Override
public boolean verify(byte[] data, Key key) throws AuditSigningException {
if (signature != null) {
try {
signature.initVerify((PublicKey) key);
signature.update(data);
if (tc.isEntryEnabled())
Tr.exit(tc, "verify");
... | class class_name[name] begin[{]
method[verify, return_type[type[boolean]], modifier[public], parameter[data, key]] begin[{]
if[binary_operation[member[.signature], !=, literal[null]]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Cast(expres... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[verify] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , identifier[Key] identifier[key] operator[SEP] Keyword[throws] identifier[AuditSigningException] {
Keyword[if] operator[SEP] identifier[signature] oper... |
private E unlinkFirst(Node<E> f) {
// assert f == first && f != null;
final E element = f.item;
final Node<E> next = f.next;
f.item = null;
f.next = null; // help GC
first = next;
if (next == null)
last = null;
else
next.prev = null... | class class_name[name] begin[{]
method[unlinkFirst, return_type[type[E]], modifier[private], parameter[f]] begin[{]
local_variable[type[E], element]
local_variable[type[Node], next]
assign[member[f.item], literal[null]]
assign[member[f.next], literal[null]]
... | Keyword[private] identifier[E] identifier[unlinkFirst] operator[SEP] identifier[Node] operator[<] identifier[E] operator[>] identifier[f] operator[SEP] {
Keyword[final] identifier[E] identifier[element] operator[=] identifier[f] operator[SEP] identifier[item] operator[SEP] Keyword[final] identifier[Node] operato... |
public static int getContentLength(HttpMessage message, int defaultValue) {
return (int) Math.min(Integer.MAX_VALUE, getContentLength(message, (long) defaultValue));
} | class class_name[name] begin[{]
method[getContentLength, return_type[type[int]], modifier[public static], parameter[message, defaultValue]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=MAX_VALUE, postfix_operators=[], prefix_operators=[], qualifier=Integer, selecto... | Keyword[public] Keyword[static] Keyword[int] identifier[getContentLength] operator[SEP] identifier[HttpMessage] identifier[message] , Keyword[int] identifier[defaultValue] operator[SEP] {
Keyword[return] operator[SEP] Keyword[int] operator[SEP] identifier[Math] operator[SEP] identifier[min] operator[SEP] identi... |
protected <N extends Page & Externalizable> PageFile<N> makePageFile(Class<N> cls) {
@SuppressWarnings("unchecked")
final PageFileFactory<N> castFactory = (PageFileFactory<N>) pageFileFactory;
return castFactory.newPageFile(cls);
} | class class_name[name] begin[{]
method[makePageFile, return_type[type[PageFile]], modifier[protected], parameter[cls]] begin[{]
local_variable[type[PageFileFactory], castFactory]
return[call[castFactory.newPageFile, parameter[member[.cls]]]]
end[}]
END[}] | Keyword[protected] operator[<] identifier[N] Keyword[extends] identifier[Page] operator[&] identifier[Externalizable] operator[>] identifier[PageFile] operator[<] identifier[N] operator[>] identifier[makePageFile] operator[SEP] identifier[Class] operator[<] identifier[N] operator[>] identifier[cls] operator[SEP] {
... |
public String get(Property<String> property) throws ConfigurationException {
return tryGet(property, s -> s);
} | class class_name[name] begin[{]
method[get, return_type[type[String]], modifier[public], parameter[property]] begin[{]
return[call[.tryGet, parameter[member[.property], LambdaExpression(body=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), parameters=[Memb... | Keyword[public] identifier[String] identifier[get] operator[SEP] identifier[Property] operator[<] identifier[String] operator[>] identifier[property] operator[SEP] Keyword[throws] identifier[ConfigurationException] {
Keyword[return] identifier[tryGet] operator[SEP] identifier[property] , identifier[s] operator[... |
public Coordinate[] getCoordinates() {
if (isEmpty()) {
return null;
}
Coordinate[] coordinates = new Coordinate[getNumPoints()];
int count = 0;
for (LineString lineString : lineStrings) {
for (int j = 0; j < lineString.getNumPoints(); j++) {
coordinates[count++] = lineString.getCoordinateN(j);
}... | class class_name[name] begin[{]
method[getCoordinates, return_type[type[Coordinate]], modifier[public], parameter[]] begin[{]
if[call[.isEmpty, parameter[]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[Coordinate], coordinates... | Keyword[public] identifier[Coordinate] operator[SEP] operator[SEP] identifier[getCoordinates] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
identifier[Coordinate] operato... |
public Observable<UserInner> createOrUpdateAsync(String resourceGroupName, String labAccountName, String labName, String userName, UserInner user) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, labAccountName, labName, userName, user).map(new Func1<ServiceResponse<UserInner>, UserInner>() {
... | class class_name[name] begin[{]
method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, labAccountName, labName, userName, user]] begin[{]
return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.labAccountName]... | Keyword[public] identifier[Observable] operator[<] identifier[UserInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[labAccountName] , identifier[String] identifier[labName] , identifier[String] identifier[userName] , ide... |
private static void addFileFunction(CtClass clazz, String property)
throws NotFoundException, CannotCompileException {
String wrapperName = property + "wrapper";
String funcName = "set";
funcName = funcName + Character.toUpperCase(wrapperName.charAt(0));
funcName = funcName + wra... | class class_name[name] begin[{]
method[addFileFunction, return_type[void], modifier[private static], parameter[clazz, property]] begin[{]
local_variable[type[String], wrapperName]
local_variable[type[String], funcName]
assign[member[.funcName], binary_operation[member[.funcName]... | Keyword[private] Keyword[static] Keyword[void] identifier[addFileFunction] operator[SEP] identifier[CtClass] identifier[clazz] , identifier[String] identifier[property] operator[SEP] Keyword[throws] identifier[NotFoundException] , identifier[CannotCompileException] {
identifier[String] identifier[wrapperName] ... |
public double[] getMoneynessAsOffsets() {
DoubleStream moneyness = getGridNodesPerMoneyness().keySet().stream().mapToDouble(Integer::doubleValue);
if(quotingConvention == QuotingConvention.PAYERVOLATILITYLOGNORMAL) {
moneyness = moneyness.map(new DoubleUnaryOperator() {
@Override
public double apply... | class class_name[name] begin[{]
method[getMoneynessAsOffsets, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[DoubleStream], moneyness]
if[binary_operation[member[.quotingConvention], ==, member[QuotingConvention.PAYERVOLATILITYLOGNORMAL]]] begin[{... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getMoneynessAsOffsets] operator[SEP] operator[SEP] {
identifier[DoubleStream] identifier[moneyness] operator[=] identifier[getGridNodesPerMoneyness] operator[SEP] operator[SEP] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] oper... |
public Criteria subsetof(Collection<?> c) {
notNull(c, "collection can not be null");
this.criteriaType = RelationalOperator.SUBSETOF;
this.right = new ValueListNode(c);
return this;
} | class class_name[name] begin[{]
method[subsetof, return_type[type[Criteria]], modifier[public], parameter[c]] begin[{]
call[.notNull, parameter[member[.c], literal["collection can not be null"]]]
assign[THIS[member[None.criteriaType]], member[RelationalOperator.SUBSETOF]]
... | Keyword[public] identifier[Criteria] identifier[subsetof] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[c] operator[SEP] {
identifier[notNull] operator[SEP] identifier[c] , literal[String] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[criteriaType] oper... |
public ServiceFuture<List<HubVirtualNetworkConnectionInner>> listAsync(final String resourceGroupName, final String virtualHubName, final ListOperationCallback<HubVirtualNetworkConnectionInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listSinglePageAsync(resourceGroupName, virt... | class class_name[name] begin[{]
method[listAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, virtualHubName, serviceCallback]] begin[{]
return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listSinglePageAsync, parameter[member[.resourceGroupName], membe... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[HubVirtualNetworkConnectionInner] operator[>] operator[>] identifier[listAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[virtualHubName] , K... |
public OutputStream asOutputStream() {
OutputStream out = new OutputStream() {
@Override
public final void write(int b) {
sendData(new byte[] { (byte) b });
}
@Override
public final void write(byte[] b) {
write(b, 0, b.length);
}
@Override
public final void write(byte[... | class class_name[name] begin[{]
method[asOutputStream, return_type[type[OutputStream]], modifier[public], parameter[]] begin[{]
local_variable[type[OutputStream], out]
if[binary_operation[member[.packetSize], <, literal[2]]] begin[{]
return[member[.out]]
else begin[{... | Keyword[public] identifier[OutputStream] identifier[asOutputStream] operator[SEP] operator[SEP] {
identifier[OutputStream] identifier[out] operator[=] Keyword[new] identifier[OutputStream] operator[SEP] operator[SEP] {
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] ide... |
private List<Segment> getCompactableSegments(SegmentManager manager) {
List<Segment> segments = new ArrayList<>(manager.segments().size());
Iterator<Segment> iterator = manager.segments().iterator();
Segment segment = iterator.next();
while (iterator.hasNext()) {
Segment nextSegment = iterator.nex... | class class_name[name] begin[{]
method[getCompactableSegments, return_type[type[List]], modifier[private], parameter[manager]] begin[{]
local_variable[type[List], segments]
local_variable[type[Iterator], iterator]
local_variable[type[Segment], segment]
while[call[iterato... | Keyword[private] identifier[List] operator[<] identifier[Segment] operator[>] identifier[getCompactableSegments] operator[SEP] identifier[SegmentManager] identifier[manager] operator[SEP] {
identifier[List] operator[<] identifier[Segment] operator[>] identifier[segments] operator[=] Keyword[new] identifier[Array... |
public synchronized boolean markFailed(int id) {
boolean isSuccessful = false;
SQLiteDatabase db = null;
Cursor cursor = null;
try {
db = getWritableDatabase();
// Get number of times this record has already failed to process.
cursor = db.query(Share... | class class_name[name] begin[{]
method[markFailed, return_type[type[boolean]], modifier[synchronized public], parameter[id]] begin[{]
local_variable[type[boolean], isSuccessful]
local_variable[type[SQLiteDatabase], db]
local_variable[type[Cursor], cursor]
TryStatement(block=[Sta... | Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[markFailed] operator[SEP] Keyword[int] identifier[id] operator[SEP] {
Keyword[boolean] identifier[isSuccessful] operator[=] literal[boolean] operator[SEP] identifier[SQLiteDatabase] identifier[db] operator[=] Other[null] operator[SEP] identifier[C... |
public Interval getInterval(String aName, int aLength) {
Interval interval = intervalsByName.get(aName);
if (interval == null)
interval = createInterval(aName, aLength);
return interval;
} | class class_name[name] begin[{]
method[getInterval, return_type[type[Interval]], modifier[public], parameter[aName, aLength]] begin[{]
local_variable[type[Interval], interval]
if[binary_operation[member[.interval], ==, literal[null]]] begin[{]
assign[member[.interval], call[... | Keyword[public] identifier[Interval] identifier[getInterval] operator[SEP] identifier[String] identifier[aName] , Keyword[int] identifier[aLength] operator[SEP] {
identifier[Interval] identifier[interval] operator[=] identifier[intervalsByName] operator[SEP] identifier[get] operator[SEP] identifier[aName] opera... |
private static boolean annotationEquals(
Class<? extends Annotation> type, Map<String, Object> members, Object other)
throws Exception {
if (!type.isInstance(other)) {
return false;
}
for (Method method : type.getDeclaredMethods()) {
String name = method.getName();
if (!Arrays.... | class class_name[name] begin[{]
method[annotationEquals, return_type[type[boolean]], modifier[private static], parameter[type, members, other]] begin[{]
if[call[type.isInstance, parameter[member[.other]]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
... | Keyword[private] Keyword[static] Keyword[boolean] identifier[annotationEquals] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Annotation] operator[>] identifier[type] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[members] , identifie... |
public void actionUnlockUser() throws Exception {
CmsUUID userId = new CmsUUID(m_paramUserId);
CmsObject cms = getCms();
CmsUser user = cms.readUser(userId);
OpenCms.getLoginManager().unlockUser(getCms(), user);
actionCloseDialog();
} | class class_name[name] begin[{]
method[actionUnlockUser, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[CmsUUID], userId]
local_variable[type[CmsObject], cms]
local_variable[type[CmsUser], user]
call[OpenCms.getLoginManager, parameter[]]
... | Keyword[public] Keyword[void] identifier[actionUnlockUser] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[CmsUUID] identifier[userId] operator[=] Keyword[new] identifier[CmsUUID] operator[SEP] identifier[m_paramUserId] operator[SEP] operator[SEP] identifier[CmsObject] identifier[c... |
public static void createAnalysisContext(Project project, List<ClassDescriptor> appClassList,
@CheckForNull String sourceInfoFileName) throws IOException {
AnalysisContext analysisContext = new AnalysisContext(project);
// Make this the current analysis context
AnalysisContext.setC... | class class_name[name] begin[{]
method[createAnalysisContext, return_type[void], modifier[public static], parameter[project, appClassList, sourceInfoFileName]] begin[{]
local_variable[type[AnalysisContext], analysisContext]
call[AnalysisContext.setCurrentAnalysisContext, parameter[membe... | Keyword[public] Keyword[static] Keyword[void] identifier[createAnalysisContext] operator[SEP] identifier[Project] identifier[project] , identifier[List] operator[<] identifier[ClassDescriptor] operator[>] identifier[appClassList] , annotation[@] identifier[CheckForNull] identifier[String] identifier[sourceInfoFileNam... |
public void autoGenerateStyleMapFile(AnalysisEngineMetaData aMetaData,
File aStyleMapFile) throws IOException {
String xmlStr = autoGenerateStyleMap(aMetaData);
FileWriter out = null;
try {
out = new FileWriter(aStyleMapFile);
out.write(xmlStr);
} finally {
if (out != null)
out.close();
}
... | class class_name[name] begin[{]
method[autoGenerateStyleMapFile, return_type[void], modifier[public], parameter[aMetaData, aStyleMapFile]] begin[{]
local_variable[type[String], xmlStr]
local_variable[type[FileWriter], out]
TryStatement(block=[StatementExpression(expression=Assignment(ex... | Keyword[public] Keyword[void] identifier[autoGenerateStyleMapFile] operator[SEP] identifier[AnalysisEngineMetaData] identifier[aMetaData] , identifier[File] identifier[aStyleMapFile] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[xmlStr] operator[=] identifier[autoGenerate... |
protected int getValueForInput(FacesContext context, UIInput component, String itemValue, Map<String, Object> valueArray,
Converter converter) {
try {
int retInt = 0;
if (itemValue == null || valueArray == null) {
return retInt;
}
... | class class_name[name] begin[{]
method[getValueForInput, return_type[type[int]], modifier[protected], parameter[context, component, itemValue, valueArray, converter]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal... | Keyword[protected] Keyword[int] identifier[getValueForInput] operator[SEP] identifier[FacesContext] identifier[context] , identifier[UIInput] identifier[component] , identifier[String] identifier[itemValue] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[valueArray] , i... |
public boolean isEOFRecord(byte[] record) {
for (int i = 0, sz = this.getRecordSize(); i < sz; ++i) {
if (record[i] != 0) {
return false;
}
}
return true;
} | class class_name[name] begin[{]
method[isEOFRecord, return_type[type[boolean]], modifier[public], parameter[record]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=record, postfix_operators=[], prefix_operators=[],... | Keyword[public] Keyword[boolean] identifier[isEOFRecord] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[record] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[sz] operator[=] Keyword[this] operator[SEP] identifier[getRecordSize] operat... |
private static Object newInstance(String className,
ClassLoader classLoader)
throws SOAPException
{
try {
Class spiClass;
if (classLoader == null) {
spiClass = Class.forName(className);
} else {
... | class class_name[name] begin[{]
method[newInstance, return_type[type[Object]], modifier[private static], parameter[className, classLoader]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=spiClass)], modifiers=s... | Keyword[private] Keyword[static] identifier[Object] identifier[newInstance] operator[SEP] identifier[String] identifier[className] , identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[SOAPException] {
Keyword[try] {
identifier[Class] identifier[spiClass] operator... |
@SuppressWarnings("unchecked")
public static <T> BeanMap<T> filterRequestFields(T src) {
return (BeanMap<T>) FilteringBeanMap.from(src, parsePathProperties());
} | class class_name[name] begin[{]
method[filterRequestFields, return_type[type[BeanMap]], modifier[public static], parameter[src]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[BeanMap] operator[<] identifier[T] operator[>] identifier[filterRequestFields] operator[SEP] identifier[T] identifier[src] operator[SEP] {
Keywor... |
boolean isWiredTo(final ExecutionGroupVertex groupVertex) {
final Iterator<ExecutionGroupEdge> it = this.forwardLinks.iterator();
while (it.hasNext()) {
final ExecutionGroupEdge edge = it.next();
if (edge.getTargetVertex() == groupVertex) {
return true;
}
}
return false;
} | class class_name[name] begin[{]
method[isWiredTo, return_type[type[boolean]], modifier[default], parameter[groupVertex]] begin[{]
local_variable[type[Iterator], it]
while[call[it.hasNext, parameter[]]] begin[{]
local_variable[type[ExecutionGroupEdge], edge]
... | Keyword[boolean] identifier[isWiredTo] operator[SEP] Keyword[final] identifier[ExecutionGroupVertex] identifier[groupVertex] operator[SEP] {
Keyword[final] identifier[Iterator] operator[<] identifier[ExecutionGroupEdge] operator[>] identifier[it] operator[=] Keyword[this] operator[SEP] identifier[forwardLinks] o... |
private static Integer checkQuietly(final String name, final Integer value)
{
Integer val = 50;
try
{
val = Args.withinRange(0, 100, value, name);
}
catch (final IllegalArgumentException e)
{
LOGGER.error(String.format(
"Given argument '%s' must have a value within [%s,%s], but was %s. ... | class class_name[name] begin[{]
method[checkQuietly, return_type[type[Integer]], modifier[private static], parameter[name, value]] begin[{]
local_variable[type[Integer], val]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=val, postfix_operators=... | Keyword[private] Keyword[static] identifier[Integer] identifier[checkQuietly] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Integer] identifier[value] operator[SEP] {
identifier[Integer] identifier[val] operator[=] Other[50] operator[SEP] Keyword[try] {
... |
public static StyledLayerDescriptor readStyle( File file ) throws IOException {
SLDParser stylereader = new SLDParser(sf, file);
StyledLayerDescriptor sld = stylereader.parseSLD();
return sld;
} | class class_name[name] begin[{]
method[readStyle, return_type[type[StyledLayerDescriptor]], modifier[public static], parameter[file]] begin[{]
local_variable[type[SLDParser], stylereader]
local_variable[type[StyledLayerDescriptor], sld]
return[member[.sld]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[StyledLayerDescriptor] identifier[readStyle] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[SLDParser] identifier[stylereader] operator[=] Keyword[new] identifier[SLDParser] operator[SEP] identifier[sf]... |
public List<File> files() throws ParseException, IOException
{
final List<File> files1 = files(new File(startingPath));
logger.trace("wildfile counts: dir({}) files({}) matched({})",
scanDirCount, scanFileCount, files1.size());
return files1;
} | class class_name[name] begin[{]
method[files, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], files1]
call[logger.trace, parameter[literal["wildfile counts: dir({}) files({}) matched({})"], member[.scanDirCount], member[.scanFileCount], call[f... | Keyword[public] identifier[List] operator[<] identifier[File] operator[>] identifier[files] operator[SEP] operator[SEP] Keyword[throws] identifier[ParseException] , identifier[IOException] {
Keyword[final] identifier[List] operator[<] identifier[File] operator[>] identifier[files1] operator[=] identifier[files]... |
void release(RichByteBufferImpl handler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "release", handler);
byteBufferWrapperPool.add(handler);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "release");
} | class class_name[name] begin[{]
method[release, return_type[void], modifier[default], parameter[handler]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[THIS[], membe... | Keyword[void] identifier[release] operator[SEP] identifier[RichByteBufferImpl] identifier[handler] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] op... |
public ArrayList<OvhPccStockProfile> location_pccZone_stock_pcc_GET(String pccZone) throws IOException {
String qPath = "/dedicatedCloud/location/{pccZone}/stock/pcc";
StringBuilder sb = path(qPath, pccZone);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
} | class class_name[name] begin[{]
method[location_pccZone_stock_pcc_GET, return_type[type[ArrayList]], modifier[public], parameter[pccZone]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
local_variable[type[String], resp]
return[call[.convert... | Keyword[public] identifier[ArrayList] operator[<] identifier[OvhPccStockProfile] operator[>] identifier[location_pccZone_stock_pcc_GET] operator[SEP] identifier[String] identifier[pccZone] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[qPath] operator[=] literal[String] ope... |
public synchronized Set<String> getNames() {
if (map == null) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(map.keySet());
} | class class_name[name] begin[{]
method[getNames, return_type[type[Set]], modifier[synchronized public], parameter[]] begin[{]
if[binary_operation[member[.map], ==, literal[null]]] begin[{]
return[call[Collections.emptySet, parameter[]]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[synchronized] identifier[Set] operator[<] identifier[String] operator[>] identifier[getNames] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[map] operator[==] Other[null] operator[SEP] {
Keyword[return] identifier[Collections] operator[SEP] identifier[emptyS... |
public JSONWriter object() {
if (this.mode == INIT) {
this.mode = OBJECT;
}
if (this.mode == OBJECT || this.mode == ARRAY) {
this.append("{");
this.push(KEY);
this.comma = false;
return this;
}
throw new JSONException("M... | class class_name[name] begin[{]
method[object, return_type[type[JSONWriter]], modifier[public], parameter[]] begin[{]
if[binary_operation[THIS[member[None.mode]], ==, member[.INIT]]] begin[{]
assign[THIS[member[None.mode]], member[.OBJECT]]
else begin[{]
None
... | Keyword[public] identifier[JSONWriter] identifier[object] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mode] operator[==] identifier[INIT] operator[SEP] {
Keyword[this] operator[SEP] identifier[mode] operator[=] identifier[OBJECT] operator[SEP]
... |
protected CrossVMState handleNeighborConcurrent(ReadableJobState me, LocalDateTime activationTime) {
final NeighborConcurrentJobStopper stopper = createNeighborConcurrentJobStopper(me.getNeighborConcurrentGroupList());
return stopper.stopIfNeeds(me, neighbor -> buildNeighborJobStateDisp(me, neighbor, ac... | class class_name[name] begin[{]
method[handleNeighborConcurrent, return_type[type[CrossVMState]], modifier[protected], parameter[me, activationTime]] begin[{]
local_variable[type[NeighborConcurrentJobStopper], stopper]
return[call[stopper.stopIfNeeds, parameter[member[.me], LambdaExpression(bod... | Keyword[protected] identifier[CrossVMState] identifier[handleNeighborConcurrent] operator[SEP] identifier[ReadableJobState] identifier[me] , identifier[LocalDateTime] identifier[activationTime] operator[SEP] {
Keyword[final] identifier[NeighborConcurrentJobStopper] identifier[stopper] operator[=] identifier[cre... |
public ListBuildsForProjectResult withIds(String... ids) {
if (this.ids == null) {
setIds(new java.util.ArrayList<String>(ids.length));
}
for (String ele : ids) {
this.ids.add(ele);
}
return this;
} | class class_name[name] begin[{]
method[withIds, return_type[type[ListBuildsForProjectResult]], modifier[public], parameter[ids]] begin[{]
if[binary_operation[THIS[member[None.ids]], ==, literal[null]]] begin[{]
call[.setIds, parameter[ClassCreator(arguments=[MemberRefere... | Keyword[public] identifier[ListBuildsForProjectResult] identifier[withIds] operator[SEP] identifier[String] operator[...] identifier[ids] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[ids] operator[==] Other[null] operator[SEP] {
identifier[setIds] operator[SEP] Keyw... |
public static <A, B> boolean equalsAny(A object, B... objects) {
for (B o : objects) {
if (bothNullOrEqual(o, object)) {
return true;
}
}
return false;
} | class class_name[name] begin[{]
method[equalsAny, return_type[type[boolean]], modifier[public static], parameter[object, objects]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=o, postfix_operators=[], prefix_o... | Keyword[public] Keyword[static] operator[<] identifier[A] , identifier[B] operator[>] Keyword[boolean] identifier[equalsAny] operator[SEP] identifier[A] identifier[object] , identifier[B] operator[...] identifier[objects] operator[SEP] {
Keyword[for] operator[SEP] identifier[B] identifier[o] operator[:] ident... |
public void addOutgoingFor(SDVariable[] variables, DifferentialFunction function) {
String[] varNames = new String[variables.length];
for (int i = 0; i < varNames.length; i++) {
varNames[i] = variables[i].getVarName();
}
addOutgoingFor(varNames, function);
} | class class_name[name] begin[{]
method[addOutgoingFor, return_type[void], modifier[public], parameter[variables, function]] begin[{]
local_variable[type[String], varNames]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefere... | Keyword[public] Keyword[void] identifier[addOutgoingFor] operator[SEP] identifier[SDVariable] operator[SEP] operator[SEP] identifier[variables] , identifier[DifferentialFunction] identifier[function] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[varNames] operator[=] Keyword[new] ide... |
public void reacquire() throws IOException {
try {
areaReader.af = new AreaFile(location);
} catch (Throwable e) {
throw new IOException(e);
}
} | class class_name[name] begin[{]
method[reacquire, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=af, postfix_operators=[], prefix_operators=[], qualifier=areaReader, selectors=[]), type==, value... | Keyword[public] Keyword[void] identifier[reacquire] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[try] {
identifier[areaReader] operator[SEP] identifier[af] operator[=] Keyword[new] identifier[AreaFile] operator[SEP] identifier[location] operator[SEP] operator[SEP]
... |
private void addPostParams(final Request request) {
if (defaultActivitySid != null) {
request.addPostParam("DefaultActivitySid", defaultActivitySid);
}
if (eventCallbackUrl != null) {
request.addPostParam("EventCallbackUrl", eventCallbackUrl.toString());
}
... | class class_name[name] begin[{]
method[addPostParams, return_type[void], modifier[private], parameter[request]] begin[{]
if[binary_operation[member[.defaultActivitySid], !=, literal[null]]] begin[{]
call[request.addPostParam, parameter[literal["DefaultActivitySid"], memb... | Keyword[private] Keyword[void] identifier[addPostParams] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] {
Keyword[if] operator[SEP] identifier[defaultActivitySid] operator[!=] Other[null] operator[SEP] {
identifier[request] operator[SEP] identifier[addPostParam] ope... |
public UpdateElasticsearchDomainConfigRequest withLogPublishingOptions(java.util.Map<String, LogPublishingOption> logPublishingOptions) {
setLogPublishingOptions(logPublishingOptions);
return this;
} | class class_name[name] begin[{]
method[withLogPublishingOptions, return_type[type[UpdateElasticsearchDomainConfigRequest]], modifier[public], parameter[logPublishingOptions]] begin[{]
call[.setLogPublishingOptions, parameter[member[.logPublishingOptions]]]
return[THIS[]]
end[}]
END[... | Keyword[public] identifier[UpdateElasticsearchDomainConfigRequest] identifier[withLogPublishingOptions] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[LogPublishingOption] operator[>] identifier[logPublishingOptions] operator[SEP]... |
@Deprecated
public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings) {
return UnaryCallSettings.newUnaryCallSettingsBuilder().setRetrySettings(retrySettings);
} | class class_name[name] begin[{]
method[getApiCallSettings, return_type[type[UnaryCallSettings]], modifier[public], parameter[retrySettings]] begin[{]
return[call[UnaryCallSettings.newUnaryCallSettingsBuilder, parameter[]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] identifier[UnaryCallSettings] operator[SEP] identifier[Builder] identifier[getApiCallSettings] operator[SEP] identifier[RetrySettings] identifier[retrySettings] operator[SEP] {
Keyword[return] identifier[UnaryCallSettings] operator[SEP] identifier[newUnaryCall... |
@Nonnull
public static Matcher getMatcher (@Nonnull @RegEx final String sRegEx, @Nonnull final String sValue)
{
ValueEnforcer.notNull (sValue, "Value");
return RegExCache.getPattern (sRegEx).matcher (sValue);
} | class class_name[name] begin[{]
method[getMatcher, return_type[type[Matcher]], modifier[public static], parameter[sRegEx, sValue]] begin[{]
call[ValueEnforcer.notNull, parameter[member[.sValue], literal["Value"]]]
return[call[RegExCache.getPattern, parameter[member[.sRegEx]]]]
end[}... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[Matcher] identifier[getMatcher] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[RegEx] Keyword[final] identifier[String] identifier[sRegEx] , annotation[@] identifier[Nonnull] Keyword[final] identifier[String] identif... |
@Override
public SetVaultAccessPolicyResult setVaultAccessPolicy(SetVaultAccessPolicyRequest request) {
request = beforeClientExecution(request);
return executeSetVaultAccessPolicy(request);
} | class class_name[name] begin[{]
method[setVaultAccessPolicy, return_type[type[SetVaultAccessPolicyResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeSetVaultAccessPolicy, parame... | annotation[@] identifier[Override] Keyword[public] identifier[SetVaultAccessPolicyResult] identifier[setVaultAccessPolicy] operator[SEP] identifier[SetVaultAccessPolicyRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ... |
public Integer getSelectedLastRow() {
final Object result = getStateHelper().eval(PropertyKeys.selectedLastRow);
if (result == null) {
return null;
}
return Integer.valueOf(result.toString());
} | class class_name[name] begin[{]
method[getSelectedLastRow, return_type[type[Integer]], modifier[public], parameter[]] begin[{]
local_variable[type[Object], result]
if[binary_operation[member[.result], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
N... | Keyword[public] identifier[Integer] identifier[getSelectedLastRow] operator[SEP] operator[SEP] {
Keyword[final] identifier[Object] identifier[result] operator[=] identifier[getStateHelper] operator[SEP] operator[SEP] operator[SEP] identifier[eval] operator[SEP] identifier[PropertyKeys] operator[SEP] identifier[s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.