code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
protected static boolean match(Object ref, Object test) {
if(ref == null) {
return false;
}
// Cheap and fast, may hold for class labels!
if(ref == test) {
return true;
}
if(ref instanceof LabelList && test instanceof LabelList) {
final LabelList lref = (LabelList) ref;
f... | class class_name[name] begin[{]
method[match, return_type[type[boolean]], modifier[static protected], parameter[ref, test]] begin[{]
if[binary_operation[member[.ref], ==, literal[null]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
if[bin... | Keyword[protected] Keyword[static] Keyword[boolean] identifier[match] operator[SEP] identifier[Object] identifier[ref] , identifier[Object] identifier[test] operator[SEP] {
Keyword[if] operator[SEP] identifier[ref] operator[==] Other[null] operator[SEP] {
Keyword[return] literal[boolean] operator[SEP... |
protected String getVisibilityFlag() {
CmsModule module = OpenCms.getModuleManager().getModule(this.getClass().getPackage().getName());
if (module == null) {
return VISIBILITY_ALL;
}
return module.getParameter(PARAM_VISIBILITY_FLAG, VISIBILITY_ALL);
} | class class_name[name] begin[{]
method[getVisibilityFlag, return_type[type[String]], modifier[protected], parameter[]] begin[{]
local_variable[type[CmsModule], module]
if[binary_operation[member[.module], ==, literal[null]]] begin[{]
return[member[.VISIBILITY_ALL]]
e... | Keyword[protected] identifier[String] identifier[getVisibilityFlag] operator[SEP] operator[SEP] {
identifier[CmsModule] identifier[module] operator[=] identifier[OpenCms] operator[SEP] identifier[getModuleManager] operator[SEP] operator[SEP] operator[SEP] identifier[getModule] operator[SEP] Keyword[this] operato... |
@Override
public PutComplianceItemsResult putComplianceItems(PutComplianceItemsRequest request) {
request = beforeClientExecution(request);
return executePutComplianceItems(request);
} | class class_name[name] begin[{]
method[putComplianceItems, return_type[type[PutComplianceItemsResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executePutComplianceItems, parameter[me... | annotation[@] identifier[Override] Keyword[public] identifier[PutComplianceItemsResult] identifier[putComplianceItems] operator[SEP] identifier[PutComplianceItemsRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat... |
@SuppressWarnings({"unchecked", "rawtypes"})
public static Map<String, String> convertToMap(final Properties properties) {
final Map<String, String> map = new HashMap(properties);
return map;
} | class class_name[name] begin[{]
method[convertToMap, return_type[type[Map]], modifier[public static], parameter[properties]] begin[{]
local_variable[type[Map], map]
return[member[.map]]
end[}]
END[}] | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String] , literal[String]
} operator[SEP] Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[convertToMap] operator[SEP] Keyword[final] identifier[Properties] identifier... |
public static void featureOf(Feature feature, String type, String name) {
if (name == null || name.length() == 0) {
throw new TurfException(".featureOf() requires a name");
}
if (feature == null || !feature.type().equals("Feature") || feature.geometry() == null) {
throw new TurfException(String.... | class class_name[name] begin[{]
method[featureOf, return_type[void], modifier[public static], parameter[feature, type, name]] begin[{]
if[binary_operation[binary_operation[member[.name], ==, literal[null]], ||, binary_operation[call[name.length, parameter[]], ==, literal[0]]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[void] identifier[featureOf] operator[SEP] identifier[Feature] identifier[feature] , identifier[String] identifier[type] , identifier[String] identifier[name] operator[SEP] {
Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[||] identifier[name]... |
public static Field convertToJavaBeansField(IntrospectedColumn introspectedColumn) {
FullyQualifiedJavaType fqjt = introspectedColumn.getFullyQualifiedJavaType();
String property = introspectedColumn.getJavaProperty();
Field field = new Field();
field.setVisibility(JavaVisibility.PRIVATE... | class class_name[name] begin[{]
method[convertToJavaBeansField, return_type[type[Field]], modifier[public static], parameter[introspectedColumn]] begin[{]
local_variable[type[FullyQualifiedJavaType], fqjt]
local_variable[type[String], property]
local_variable[type[Field], field]
... | Keyword[public] Keyword[static] identifier[Field] identifier[convertToJavaBeansField] operator[SEP] identifier[IntrospectedColumn] identifier[introspectedColumn] operator[SEP] {
identifier[FullyQualifiedJavaType] identifier[fqjt] operator[=] identifier[introspectedColumn] operator[SEP] identifier[getFullyQualifi... |
public void start(GVRAccessibilitySpeechListener speechListener) {
mTts.setSpeechListener(speechListener);
mTts.getSpeechRecognizer().startListening(mTts.getSpeechRecognizerIntent());
} | class class_name[name] begin[{]
method[start, return_type[void], modifier[public], parameter[speechListener]] begin[{]
call[mTts.setSpeechListener, parameter[member[.speechListener]]]
call[mTts.getSpeechRecognizer, parameter[]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[GVRAccessibilitySpeechListener] identifier[speechListener] operator[SEP] {
identifier[mTts] operator[SEP] identifier[setSpeechListener] operator[SEP] identifier[speechListener] operator[SEP] operator[SEP] identifier[mTts] operator[SEP] iden... |
public boolean follows(@NotNull final DayOfTheWeek other) {
Contract.requireArgNotNull("other", other);
if (this == PH || other == PH) {
return false;
}
return this.id == (other.id + 1);
} | class class_name[name] begin[{]
method[follows, return_type[type[boolean]], modifier[public], parameter[other]] begin[{]
call[Contract.requireArgNotNull, parameter[literal["other"], member[.other]]]
if[binary_operation[binary_operation[THIS[], ==, member[.PH]], ||, binary_operat... | Keyword[public] Keyword[boolean] identifier[follows] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[DayOfTheWeek] identifier[other] operator[SEP] {
identifier[Contract] operator[SEP] identifier[requireArgNotNull] operator[SEP] literal[String] , identifier[other] operator[SEP] operator... |
public WyalFile.Name convert(QualifiedName id, String suffix, SyntacticItem context) {
return convert(id.getUnit(), id.getName().get().concat(suffix), context);
} | class class_name[name] begin[{]
method[convert, return_type[type[WyalFile]], modifier[public], parameter[id, suffix, context]] begin[{]
return[call[.convert, parameter[call[id.getUnit, parameter[]], call[id.getName, parameter[]], member[.context]]]]
end[}]
END[}] | Keyword[public] identifier[WyalFile] operator[SEP] identifier[Name] identifier[convert] operator[SEP] identifier[QualifiedName] identifier[id] , identifier[String] identifier[suffix] , identifier[SyntacticItem] identifier[context] operator[SEP] {
Keyword[return] identifier[convert] operator[SEP] identifier[id]... |
private void setOnPojo(final Object pojo, final P value, final LoadContext ctx, final Path path) {
if (log.isTraceEnabled())
log.trace(LogUtils.msg(path, "Setting property " + property.getName() + " to " + value));
property.set(pojo, value);
} | class class_name[name] begin[{]
method[setOnPojo, return_type[void], modifier[private], parameter[pojo, value, ctx, path]] begin[{]
if[call[log.isTraceEnabled, parameter[]]] begin[{]
call[log.trace, parameter[call[LogUtils.msg, parameter[member[.path], binary_operation[binary_operat... | Keyword[private] Keyword[void] identifier[setOnPojo] operator[SEP] Keyword[final] identifier[Object] identifier[pojo] , Keyword[final] identifier[P] identifier[value] , Keyword[final] identifier[LoadContext] identifier[ctx] , Keyword[final] identifier[Path] identifier[path] operator[SEP] {
Keyword[if] operato... |
private void showErrorPage(HttpServletResponse resp, String message) throws IOException {
resp.setStatus(HttpServletResponse.SC_OK);
resp.setContentType(GUIServletStub.CONTENT_TYPE_HTML);
PrintWriter writer = resp.getWriter();
writer
.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transition... | class class_name[name] begin[{]
method[showErrorPage, return_type[void], modifier[private], parameter[resp, message]] begin[{]
call[resp.setStatus, parameter[member[HttpServletResponse.SC_OK]]]
call[resp.setContentType, parameter[member[GUIServletStub.CONTENT_TYPE_HTML]]]
... | Keyword[private] Keyword[void] identifier[showErrorPage] operator[SEP] identifier[HttpServletResponse] identifier[resp] , identifier[String] identifier[message] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[resp] operator[SEP] identifier[setStatus] operator[SEP] identifier[HttpServletRespon... |
private int countNonNewline(char[] cbuf, int off, int len) {
for(int cnt = 0; cnt < len; cnt++) {
final int pos = off + cnt;
if(cbuf[pos] == UNIX_NEWLINE) {
return cnt;
}
if(cbuf[pos] == CARRIAGE_RETURN) {
return cnt;
}
}
return len;
} | class class_name[name] begin[{]
method[countNonNewline, return_type[type[int]], modifier[private], parameter[cbuf, off, len]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOpera... | Keyword[private] Keyword[int] identifier[countNonNewline] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[cbuf] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[cnt] operator[=] Other[0] operator[SEP] identifier[... |
public void marshall(UpdateAdmChannelRequest updateAdmChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (updateAdmChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(updateAdmC... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[updateAdmChannelRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.updateAdmChannelRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateAdmChannelRequest] identifier[updateAdmChannelRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[updateAdmChannelRequest] operator[==] Other[null] operator... |
public int changeDirectory(String strPath) throws IOException
{
int iLastSlash = strPath.lastIndexOf('/');
if (iLastSlash != -1)
strPath = strPath.substring(0, iLastSlash);
else
strPath = "";
String strFTPPath = "";
if (m_strRootFTPDirectory.length() > 0)
{
if (!strFTPPath.startsWith(File.separato... | class class_name[name] begin[{]
method[changeDirectory, return_type[type[int]], modifier[public], parameter[strPath]] begin[{]
local_variable[type[int], iLastSlash]
if[binary_operation[member[.iLastSlash], !=, literal[1]]] begin[{]
assign[member[.strPath], call[strPath.subst... | Keyword[public] Keyword[int] identifier[changeDirectory] operator[SEP] identifier[String] identifier[strPath] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[int] identifier[iLastSlash] operator[=] identifier[strPath] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operator[SE... |
private static Process openURLinWindowsOS(final String url) throws IOException
{
String cmd = null;
cmd = WINDOWS_PATH + " " + WINDOWS_FLAG + " ";
return Runtime.getRuntime().exec(cmd + url);
} | class class_name[name] begin[{]
method[openURLinWindowsOS, return_type[type[Process]], modifier[private static], parameter[url]] begin[{]
local_variable[type[String], cmd]
assign[member[.cmd], binary_operation[binary_operation[binary_operation[member[.WINDOWS_PATH], +, literal[" "]], +,... | Keyword[private] Keyword[static] identifier[Process] identifier[openURLinWindowsOS] operator[SEP] Keyword[final] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[cmd] operator[=] Other[null] operator[SEP] identifier[cmd] operator[=] identifi... |
public void setCognitoIdentityProviders(java.util.Collection<CognitoIdentityProvider> cognitoIdentityProviders) {
if (cognitoIdentityProviders == null) {
this.cognitoIdentityProviders = null;
return;
}
this.cognitoIdentityProviders = new java.util.ArrayList<CognitoIdenti... | class class_name[name] begin[{]
method[setCognitoIdentityProviders, return_type[void], modifier[public], parameter[cognitoIdentityProviders]] begin[{]
if[binary_operation[member[.cognitoIdentityProviders], ==, literal[null]]] begin[{]
assign[THIS[member[None.cognitoIdent... | Keyword[public] Keyword[void] identifier[setCognitoIdentityProviders] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[CognitoIdentityProvider] operator[>] identifier[cognitoIdentityProviders] operator[SEP] {
Keyword[if] operator[SEP] ident... |
public static void appendBitStrings(BitVector bv, String[] bs){
for(String s : bs){
if(s.length() != 8) throw new RuntimeException(
"The length of bit string must be 8 while " + s.length());
for(char c : s.toCharArray()){
if(c == '0') bv.append0();
else if(c == '1') bv.append1();
else throw ne... | class class_name[name] begin[{]
method[appendBitStrings, return_type[void], modifier[public static], parameter[bv, bs]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], pr... | Keyword[public] Keyword[static] Keyword[void] identifier[appendBitStrings] operator[SEP] identifier[BitVector] identifier[bv] , identifier[String] operator[SEP] operator[SEP] identifier[bs] operator[SEP] {
Keyword[for] operator[SEP] identifier[String] identifier[s] operator[:] identifier[bs] operator[SEP] {
... |
public static GroupTemplate createFileGroupTemplate(String dir, Charset charset) {
return createGroupTemplate(new FileResourceLoader(dir, charset.name()));
} | class class_name[name] begin[{]
method[createFileGroupTemplate, return_type[type[GroupTemplate]], modifier[public static], parameter[dir, charset]] begin[{]
return[call[.createGroupTemplate, parameter[ClassCreator(arguments=[MemberReference(member=dir, postfix_operators=[], prefix_operators=[], qualifi... | Keyword[public] Keyword[static] identifier[GroupTemplate] identifier[createFileGroupTemplate] operator[SEP] identifier[String] identifier[dir] , identifier[Charset] identifier[charset] operator[SEP] {
Keyword[return] identifier[createGroupTemplate] operator[SEP] Keyword[new] identifier[FileResourceLoader] opera... |
@Override
public void setValue(int attributeIndex, double d) {
int index = locateIndex(attributeIndex);
if (index(index) == attributeIndex) {
this.attributeValues[index] = d;
} else {
// We need to add the value
}
} | class class_name[name] begin[{]
method[setValue, return_type[void], modifier[public], parameter[attributeIndex, d]] begin[{]
local_variable[type[int], index]
if[binary_operation[call[.index, parameter[member[.index]]], ==, member[.attributeIndex]]] begin[{]
assig... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setValue] operator[SEP] Keyword[int] identifier[attributeIndex] , Keyword[double] identifier[d] operator[SEP] {
Keyword[int] identifier[index] operator[=] identifier[locateIndex] operator[SEP] identifier[attributeIndex] operator[SEP] op... |
public int getMaximumParallelism() {
int maxParallelism = -1;
for (JobVertex vertex : taskVertices.values()) {
maxParallelism = Math.max(vertex.getParallelism(), maxParallelism);
}
return maxParallelism;
} | class class_name[name] begin[{]
method[getMaximumParallelism, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[int], maxParallelism]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(... | Keyword[public] Keyword[int] identifier[getMaximumParallelism] operator[SEP] operator[SEP] {
Keyword[int] identifier[maxParallelism] operator[=] operator[-] Other[1] operator[SEP] Keyword[for] operator[SEP] identifier[JobVertex] identifier[vertex] operator[:] identifier[taskVertices] operator[SEP] identifier[va... |
public static HttpResponseInfo getHttpResponseInfo(HttpRequest httpRequest, HttpHeaders resHeaders, ProxyConfig proxyConfig, NioEventLoopGroup loopGroup)
throws Exception {
HttpResponse httpResponse = null;
if (resHeaders == null) {
httpResponse = getResponse(httpRequest, proxyConfig, loopGroup);
... | class class_name[name] begin[{]
method[getHttpResponseInfo, return_type[type[HttpResponseInfo]], modifier[public static], parameter[httpRequest, resHeaders, proxyConfig, loopGroup]] begin[{]
local_variable[type[HttpResponse], httpResponse]
if[binary_operation[member[.resHeaders], ==, li... | Keyword[public] Keyword[static] identifier[HttpResponseInfo] identifier[getHttpResponseInfo] operator[SEP] identifier[HttpRequest] identifier[httpRequest] , identifier[HttpHeaders] identifier[resHeaders] , identifier[ProxyConfig] identifier[proxyConfig] , identifier[NioEventLoopGroup] identifier[loopGroup] operator[... |
public static boolean checkSubtract(INDArray first, INDArray second, double maxRelativeDifference,
double minAbsDifference) {
RealMatrix rmFirst = convertToApacheMatrix(first);
RealMatrix rmSecond = convertToApacheMatrix(second);
INDArray result = first.sub(second);
... | class class_name[name] begin[{]
method[checkSubtract, return_type[type[boolean]], modifier[public static], parameter[first, second, maxRelativeDifference, minAbsDifference]] begin[{]
local_variable[type[RealMatrix], rmFirst]
local_variable[type[RealMatrix], rmSecond]
local_variable[type... | Keyword[public] Keyword[static] Keyword[boolean] identifier[checkSubtract] operator[SEP] identifier[INDArray] identifier[first] , identifier[INDArray] identifier[second] , Keyword[double] identifier[maxRelativeDifference] , Keyword[double] identifier[minAbsDifference] operator[SEP] {
identifier[RealMatrix] id... |
@SuppressWarnings("unchecked")
public void initializeSerializers() {
this.numChannels = this.outputGate.getNumChannels();
this.serializers = new RecordSerializer[numChannels];
for (int i = 0; i < this.numChannels; i++) {
this.serializers[i] = new SpanningRecordSerializer<T>();
}
} | class class_name[name] begin[{]
method[initializeSerializers, return_type[void], modifier[public], parameter[]] begin[{]
assign[THIS[member[None.numChannels]], THIS[member[None.outputGate]call[None.getNumChannels, parameter[]]]]
assign[THIS[member[None.serializers]], ArrayCreato... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[initializeSerializers] operator[SEP] operator[SEP] {
Keyword[this] operator[SEP] identifier[numChannels] operator[=] Keyword[this] operator[SEP] identifier[outputGate] operator[SEP] ide... |
public static Header of(String name, String value) {
return new Header(requireNonNull(name), requireNonNull(value));
} | class class_name[name] begin[{]
method[of, return_type[type[Header]], modifier[public static], parameter[name, value]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=requireNo... | Keyword[public] Keyword[static] identifier[Header] identifier[of] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] {
Keyword[return] Keyword[new] identifier[Header] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[name] operator[SEP] , iden... |
public String encode(long... numbers){
String retval = "";
if(numbers.length == 0) {
return retval;
}
return this._encode(numbers);
} | class class_name[name] begin[{]
method[encode, return_type[type[String]], modifier[public], parameter[numbers]] begin[{]
local_variable[type[String], retval]
if[binary_operation[member[numbers.length], ==, literal[0]]] begin[{]
return[member[.retval]]
else begin[{]
N... | Keyword[public] identifier[String] identifier[encode] operator[SEP] Keyword[long] operator[...] identifier[numbers] operator[SEP] {
identifier[String] identifier[retval] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[numbers] operator[SEP] identifier[length] operator[==] Other[0] ... |
public static boolean isStringSet(PrefsProperty property) {
boolean isStringSet = false;
TypeName typeName;
if (property.hasTypeAdapter()) {
typeName = TypeUtility.typeName(property.typeAdapter.dataType);
} else {
typeName = TypeUtility.typeName(property.getElement().asType());
}
// it is parameteri... | class class_name[name] begin[{]
method[isStringSet, return_type[type[boolean]], modifier[public static], parameter[property]] begin[{]
local_variable[type[boolean], isStringSet]
local_variable[type[TypeName], typeName]
if[call[property.hasTypeAdapter, parameter[]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isStringSet] operator[SEP] identifier[PrefsProperty] identifier[property] operator[SEP] {
Keyword[boolean] identifier[isStringSet] operator[=] literal[boolean] operator[SEP] identifier[TypeName] identifier[typeName] operator[SEP] Keyword[if] operator[SE... |
public static ApacheHttpTransport createApacheHttpTransport(
@Nullable URI proxyUri, @Nullable Credentials proxyCredentials)
throws IOException, GeneralSecurityException {
checkArgument(
proxyUri != null || proxyCredentials == null,
"if proxyUri is null than proxyCredentials should be nu... | class class_name[name] begin[{]
method[createApacheHttpTransport, return_type[type[ApacheHttpTransport]], modifier[public static], parameter[proxyUri, proxyCredentials]] begin[{]
call[.checkArgument, parameter[binary_operation[binary_operation[member[.proxyUri], !=, literal[null]], ||, binary_o... | Keyword[public] Keyword[static] identifier[ApacheHttpTransport] identifier[createApacheHttpTransport] operator[SEP] annotation[@] identifier[Nullable] identifier[URI] identifier[proxyUri] , annotation[@] identifier[Nullable] identifier[Credentials] identifier[proxyCredentials] operator[SEP] Keyword[throws] identifier[... |
public ServiceFuture<DscConfigurationInner> getAsync(String resourceGroupName, String automationAccountName, String configurationName, final ServiceCallback<DscConfigurationInner> serviceCallback) {
return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, automationAccountName, configura... | class class_name[name] begin[{]
method[getAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, automationAccountName, configurationName, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.getWithServiceResponseAsync, parameter[member[.r... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[DscConfigurationInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[automationAccountName] , identifier[String] identifier[configurationName] , Keyword[final] identifier... |
@Override
protected File writeFileContent( String fileContent ) throws IOException {
// Load the template
ByteArrayOutputStream out = new ByteArrayOutputStream();
InputStream in = getClass().getResourceAsStream( "/html.tpl" );
Utils.copyStreamSafely( in, out );
// Create the target directory
File targetF... | class class_name[name] begin[{]
method[writeFileContent, return_type[type[File]], modifier[protected], parameter[fileContent]] begin[{]
local_variable[type[ByteArrayOutputStream], out]
local_variable[type[InputStream], in]
call[Utils.copyStreamSafely, parameter[member[.in], memb... | annotation[@] identifier[Override] Keyword[protected] identifier[File] identifier[writeFileContent] operator[SEP] identifier[String] identifier[fileContent] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[ByteArrayOutputStream] identifier[out] operator[=] Keyword[new] identifier[ByteArrayOutpu... |
public static double elementMinAbs( DMatrix2x2 a ) {
double min = Math.abs(a.a11);
double tmp = Math.abs(a.a12); if( tmp < min ) min = tmp;
tmp = Math.abs(a.a21); if( tmp < min ) min = tmp;
tmp = Math.abs(a.a22); if( tmp < min ) min = tmp;
return min;
} | class class_name[name] begin[{]
method[elementMinAbs, return_type[type[double]], modifier[public static], parameter[a]] begin[{]
local_variable[type[double], min]
local_variable[type[double], tmp]
if[binary_operation[member[.tmp], <, member[.min]]] begin[{]
assign[me... | Keyword[public] Keyword[static] Keyword[double] identifier[elementMinAbs] operator[SEP] identifier[DMatrix2x2] identifier[a] operator[SEP] {
Keyword[double] identifier[min] operator[=] identifier[Math] operator[SEP] identifier[abs] operator[SEP] identifier[a] operator[SEP] identifier[a11] operator[SEP] operator[... |
public void init(BaseField field, boolean bChangeDataOnRefresh)
{
super.init(field);
m_objOriginalData = null;
m_bAlwaysEnabled = false;
m_bChangeDataOnRefresh = bChangeDataOnRefresh;
this.setRespondsToMode(DBConstants.SCREEN_MOVE, false);
} | class class_name[name] begin[{]
method[init, return_type[void], modifier[public], parameter[field, bChangeDataOnRefresh]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators... | Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[BaseField] identifier[field] , Keyword[boolean] identifier[bChangeDataOnRefresh] operator[SEP] {
Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[field] operator[SEP] operator[SEP] identifier[m_objOriginalData] operato... |
public static String getClassPathElement(final URL anURL, final String encoding) throws IllegalArgumentException {
// Check sanity
Validate.notNull(anURL, "anURL");
final String protocol = anURL.getProtocol();
String toReturn = null;
if (FILE.supports(protocol)) {
... | class class_name[name] begin[{]
method[getClassPathElement, return_type[type[String]], modifier[public static], parameter[anURL, encoding]] begin[{]
call[Validate.notNull, parameter[member[.anURL], literal["anURL"]]]
local_variable[type[String], protocol]
local_variable[type[Str... | Keyword[public] Keyword[static] identifier[String] identifier[getClassPathElement] operator[SEP] Keyword[final] identifier[URL] identifier[anURL] , Keyword[final] identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
identifier[Validate] operator[SEP] ident... |
private void parseQueryAndVerify(final StorageUri completeUri, final StorageCredentials credentials)
throws StorageException {
Utility.assertNotNull("completeUri", completeUri);
if (!completeUri.isAbsolute()) {
throw new IllegalArgumentException(String.format(SR.RELATIVE_ADDRES... | class class_name[name] begin[{]
method[parseQueryAndVerify, return_type[void], modifier[private], parameter[completeUri, credentials]] begin[{]
call[Utility.assertNotNull, parameter[literal["completeUri"], member[.completeUri]]]
if[call[completeUri.isAbsolute, parameter[]]] begi... | Keyword[private] Keyword[void] identifier[parseQueryAndVerify] operator[SEP] Keyword[final] identifier[StorageUri] identifier[completeUri] , Keyword[final] identifier[StorageCredentials] identifier[credentials] operator[SEP] Keyword[throws] identifier[StorageException] {
identifier[Utility] operator[SEP] identi... |
public Number getCurrency(int field) throws MPXJException
{
Number result;
if ((field < m_fields.length) && (m_fields[field].length() != 0))
{
try
{
result = m_formats.getCurrencyFormat().parse(m_fields[field]);
}
catch (ParseException ex)
... | class class_name[name] begin[{]
method[getCurrency, return_type[type[Number]], modifier[public], parameter[field]] begin[{]
local_variable[type[Number], result]
if[binary_operation[binary_operation[member[.field], <, member[m_fields.length]], &&, binary_operation[member[.m_fields], !=, ... | Keyword[public] identifier[Number] identifier[getCurrency] operator[SEP] Keyword[int] identifier[field] operator[SEP] Keyword[throws] identifier[MPXJException] {
identifier[Number] identifier[result] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[field] operator[<] identifier[m_fields] operator... |
@Nonnull
public static Path walkFileTree (@Nonnull final Path aStart,
@Nonnull final Set <FileVisitOption> aOptions,
@Nonnegative final int nMaxDepth,
@Nonnull final FileVisitor <? super Path> aVisitor)
{
tr... | class class_name[name] begin[{]
method[walkFileTree, return_type[type[Path]], modifier[public static], parameter[aStart, aOptions, nMaxDepth, aVisitor]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=aStart, postfix_operators=[], prefix_operat... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[Path] identifier[walkFileTree] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Path] identifier[aStart] , annotation[@] identifier[Nonnull] Keyword[final] identifier[Set] operator[<] identifier[FileVisitOption] opera... |
public static TypeAnnotationPosition
methodRefTypeArg(final List<TypePathEntry> location,
final JCLambda onLambda,
final int type_index,
final int pos) {
return new TypeAnnotationPosition(TargetType.METHOD_REFERENCE_TYPE_ARGUMENT... | class class_name[name] begin[{]
method[methodRefTypeArg, return_type[type[TypeAnnotationPosition]], modifier[public static], parameter[location, onLambda, type_index, pos]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=METHOD_REFERENCE_TYPE_ARGUMENT, postfix_operators=[], prefix_operat... | Keyword[public] Keyword[static] identifier[TypeAnnotationPosition] identifier[methodRefTypeArg] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[TypePathEntry] operator[>] identifier[location] , Keyword[final] identifier[JCLambda] identifier[onLambda] , Keyword[final] Keyword[int] identifier[type_... |
public Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes) {
return toPolygon(latLngs, holes, false, false);
} | class class_name[name] begin[{]
method[toPolygon, return_type[type[Polygon]], modifier[public], parameter[latLngs, holes]] begin[{]
return[call[.toPolygon, parameter[member[.latLngs], member[.holes], literal[false], literal[false]]]]
end[}]
END[}] | Keyword[public] identifier[Polygon] identifier[toPolygon] operator[SEP] identifier[List] operator[<] identifier[LatLng] operator[>] identifier[latLngs] , identifier[List] operator[<] identifier[List] operator[<] identifier[LatLng] operator[>] operator[>] identifier[holes] operator[SEP] {
Keyword[return] identif... |
@Override
public long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection) {
return cpSpecificationOptionPersistence.countWithDynamicQuery(dynamicQuery,
projection);
} | class class_name[name] begin[{]
method[dynamicQueryCount, return_type[type[long]], modifier[public], parameter[dynamicQuery, projection]] begin[{]
return[call[cpSpecificationOptionPersistence.countWithDynamicQuery, parameter[member[.dynamicQuery], member[.projection]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[dynamicQueryCount] operator[SEP] identifier[DynamicQuery] identifier[dynamicQuery] , identifier[Projection] identifier[projection] operator[SEP] {
Keyword[return] identifier[cpSpecificationOptionPersistence] operator[SEP] identifier[cou... |
protected boolean exists(MessageJobDeclaration msgJobdecl, String procDefKey, String activityId) {
boolean exist = false;
List<JobDeclaration<?, ?>> declarations = jobDeclarations.get(procDefKey);
if (declarations != null) {
for (int i = 0; i < declarations.size() && !exist; i++) {
JobDeclarat... | class class_name[name] begin[{]
method[exists, return_type[type[boolean]], modifier[protected], parameter[msgJobdecl, procDefKey, activityId]] begin[{]
local_variable[type[boolean], exist]
local_variable[type[List], declarations]
if[binary_operation[member[.declarations], !=, li... | Keyword[protected] Keyword[boolean] identifier[exists] operator[SEP] identifier[MessageJobDeclaration] identifier[msgJobdecl] , identifier[String] identifier[procDefKey] , identifier[String] identifier[activityId] operator[SEP] {
Keyword[boolean] identifier[exist] operator[=] literal[boolean] operator[SEP] ide... |
public static Flowable<BigInteger> range(
final BigInteger startValue, final BigInteger endValue, final boolean ascending) {
if (startValue.compareTo(BigInteger.ZERO) == -1) {
throw new IllegalArgumentException("Negative start index cannot be used");
} else if (startValue.compare... | class class_name[name] begin[{]
method[range, return_type[type[Flowable]], modifier[public static], parameter[startValue, endValue, ascending]] begin[{]
if[binary_operation[call[startValue.compareTo, parameter[member[BigInteger.ZERO]]], ==, literal[1]]] begin[{]
ThrowStatement(expre... | Keyword[public] Keyword[static] identifier[Flowable] operator[<] identifier[BigInteger] operator[>] identifier[range] operator[SEP] Keyword[final] identifier[BigInteger] identifier[startValue] , Keyword[final] identifier[BigInteger] identifier[endValue] , Keyword[final] Keyword[boolean] identifier[ascending] operator... |
public String getGroupId() {
if (group == null ) {
return null;
} else {
return group.id == null ? group.nsid : group.id;
}
} | class class_name[name] begin[{]
method[getGroupId, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.group], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
return[TernaryExpression(condition=BinaryOpe... | Keyword[public] identifier[String] identifier[getGroupId] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[group] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
Keyword[else] {
Keyword[return] identifier[group] operator[S... |
public PubsubFuture<List<ReceivedMessage>> pull(final String canonicalSubscriptionName,
final boolean returnImmediately) {
return pull(canonicalSubscriptionName, returnImmediately, DEFAULT_PULL_MAX_MESSAGES);
} | class class_name[name] begin[{]
method[pull, return_type[type[PubsubFuture]], modifier[public], parameter[canonicalSubscriptionName, returnImmediately]] begin[{]
return[call[.pull, parameter[member[.canonicalSubscriptionName], member[.returnImmediately], member[.DEFAULT_PULL_MAX_MESSAGES]]]]
end[}]... | Keyword[public] identifier[PubsubFuture] operator[<] identifier[List] operator[<] identifier[ReceivedMessage] operator[>] operator[>] identifier[pull] operator[SEP] Keyword[final] identifier[String] identifier[canonicalSubscriptionName] , Keyword[final] Keyword[boolean] identifier[returnImmediately] operator[SEP] {
... |
@Override public Object transform(Object value) {
if (value == null) {
return value;
} else if (value instanceof Boolean) {
return value;
} else if (value instanceof String) {
return value;
} else if (value instanceof Number) {
return Inter... | class class_name[name] begin[{]
method[transform, return_type[type[Object]], modifier[public], parameter[value]] begin[{]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
return[member[.value]]
else begin[{]
if[binary_operation[member[.value], ins... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[transform] operator[SEP] identifier[Object] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] {
Keyword[return] identifier[value] operator[SEP]
}
... |
public static final CThreadContext getInstance() {
SoftReference ref = (SoftReference)CThreadContext.contextLocal
.get(Thread.currentThread());
CThreadContext context = null;
if ((ref == null) || (ref.get() == null)) {
context = new CThreadContext();
ref = new SoftReference(context);
CThreadContext.c... | class class_name[name] begin[{]
method[getInstance, return_type[type[CThreadContext]], modifier[final public static], parameter[]] begin[{]
local_variable[type[SoftReference], ref]
local_variable[type[CThreadContext], context]
if[binary_operation[binary_operation[member[.ref], =... | Keyword[public] Keyword[static] Keyword[final] identifier[CThreadContext] identifier[getInstance] operator[SEP] operator[SEP] {
identifier[SoftReference] identifier[ref] operator[=] operator[SEP] identifier[SoftReference] operator[SEP] identifier[CThreadContext] operator[SEP] identifier[contextLocal] operator[SE... |
public IfcRoleEnum createIfcRoleEnumFromString(EDataType eDataType, String initialValue) {
IfcRoleEnum result = IfcRoleEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return... | class class_name[name] begin[{]
method[createIfcRoleEnumFromString, return_type[type[IfcRoleEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{]
local_variable[type[IfcRoleEnum], result]
if[binary_operation[member[.result], ==, literal[null]]] begin[{]
ThrowStatement(e... | Keyword[public] identifier[IfcRoleEnum] identifier[createIfcRoleEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] {
identifier[IfcRoleEnum] identifier[result] operator[=] identifier[IfcRoleEnum] operator[SEP] identifier[get] ope... |
public final static boolean canThrowException(byte opcode) {
switch (opcode) {
default:
return false;
case IALOAD:
case LALOAD:
case FALOAD:
case DALOAD:
case AALOAD:
case BALOAD:
case CALOAD:
case SALOAD:
case IASTORE:
... | class class_name[name] begin[{]
method[canThrowException, return_type[type[boolean]], modifier[final public static], parameter[opcode]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[], statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, ... | Keyword[public] Keyword[final] Keyword[static] Keyword[boolean] identifier[canThrowException] operator[SEP] Keyword[byte] identifier[opcode] operator[SEP] {
Keyword[switch] operator[SEP] identifier[opcode] operator[SEP] {
Keyword[default] operator[:] Keyword[return] literal[boolean] operator[SEP] Key... |
public static Runnable closeAsRunnable(Closeable c)
{
return () -> {
try {
c.close();
} catch (IOException e) {
LOG.error("While closing " + c, e);
}
};
} | class class_name[name] begin[{]
method[closeAsRunnable, return_type[type[Runnable]], modifier[public static], parameter[c]] begin[{]
return[LambdaExpression(body=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], q... | Keyword[public] Keyword[static] identifier[Runnable] identifier[closeAsRunnable] operator[SEP] identifier[Closeable] identifier[c] operator[SEP] {
Keyword[return] operator[SEP] operator[SEP] operator[->] {
Keyword[try] {
identifier[c] operator[SEP] identifier[close] operator[SEP] operat... |
public CompletableFuture<UpdateStreamStatus.Status> truncateStream(final String scope, final String stream,
final Map<Long, Long> streamCut,
final OperationContext contextOpt) {
... | class class_name[name] begin[{]
method[truncateStream, return_type[type[CompletableFuture]], modifier[public], parameter[scope, stream, streamCut, contextOpt]] begin[{]
local_variable[type[OperationContext], context]
local_variable[type[long], requestId]
return[call[.startTruncation, pa... | Keyword[public] identifier[CompletableFuture] operator[<] identifier[UpdateStreamStatus] operator[SEP] identifier[Status] operator[>] identifier[truncateStream] operator[SEP] Keyword[final] identifier[String] identifier[scope] , Keyword[final] identifier[String] identifier[stream] , Keyword[final] identifier[Map] ope... |
public boolean verify() {
this.errors = new LinkedList<>();
try (BufferedReader reader =
new BufferedReader(new InputStreamReader(generator.generate(spaceId, ManifestFormat.TSV)))) {
WriteOnlyStringSet snapshotManifest = ManifestFileHelper.loadManifestSetFromFile(this.md5Ma... | class class_name[name] begin[{]
method[verify, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
assign[THIS[member[None.errors]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], ty... | Keyword[public] Keyword[boolean] identifier[verify] operator[SEP] operator[SEP] {
Keyword[this] operator[SEP] identifier[errors] operator[=] Keyword[new] identifier[LinkedList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[try] operator[SEP] identifier[BufferedReader] identifier[reade... |
@Override
public RequestCtx handleResponse(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
DataResponseWrapper res = (DataResponseWrapper) response;
byte[] data = res.getData();
String result =... | class class_name[name] begin[{]
method[handleResponse, return_type[type[RequestCtx]], modifier[public], parameter[request, response]] begin[{]
local_variable[type[DataResponseWrapper], res]
local_variable[type[byte], data]
local_variable[type[String], result]
local_variable[type... | annotation[@] identifier[Override] Keyword[public] identifier[RequestCtx] identifier[handleResponse] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] {
ide... |
@Override
public Prijzen getModel(InputStream stream) {
Map<String, VervoerderKeuze> vervoerderKeuzes = new HashMap<>();
Xml xml = Xml.getXml(stream, "VervoerderKeuzes");
for (Xml vervoerderKeuze : xml.children("VervoerderKeuze")) {
String vervoerderKeuzeNaam = vervoerderKeuze.at... | class class_name[name] begin[{]
method[getModel, return_type[type[Prijzen]], modifier[public], parameter[stream]] begin[{]
local_variable[type[Map], vervoerderKeuzes]
local_variable[type[Xml], xml]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotat... | annotation[@] identifier[Override] Keyword[public] identifier[Prijzen] identifier[getModel] operator[SEP] identifier[InputStream] identifier[stream] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[VervoerderKeuze] operator[>] identifier[vervoerderKeuzes] operator[=] Keyword[new] iden... |
public static ReturnValueBuilder forPlugin(final String name, final ThresholdsEvaluator thr) {
if (thr != null) {
return new ReturnValueBuilder(name, thr);
}
return new ReturnValueBuilder(name, new ThresholdsEvaluatorBuilder().create());
} | class class_name[name] begin[{]
method[forPlugin, return_type[type[ReturnValueBuilder]], modifier[public static], parameter[name, thr]] begin[{]
if[binary_operation[member[.thr], !=, literal[null]]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=name, postfix_operato... | Keyword[public] Keyword[static] identifier[ReturnValueBuilder] identifier[forPlugin] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[ThresholdsEvaluator] identifier[thr] operator[SEP] {
Keyword[if] operator[SEP] identifier[thr] operator[!=] Other[null] operator[SEP] ... |
@Nonnull
public static char [] decodeBytesToChars (@Nonnull final byte [] aByteArray, @Nonnull final Charset aCharset)
{
return decodeBytesToChars (aByteArray, 0, aByteArray.length, aCharset);
} | class class_name[name] begin[{]
method[decodeBytesToChars, return_type[type[char]], modifier[public static], parameter[aByteArray, aCharset]] begin[{]
return[call[.decodeBytesToChars, parameter[member[.aByteArray], literal[0], member[aByteArray.length], member[.aCharset]]]]
end[}]
END[}] | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] Keyword[char] operator[SEP] operator[SEP] identifier[decodeBytesToChars] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[aByteArray] , annotation[@] identifier[Nonnull] Keyword[final] i... |
public double subtract(int[] indices, double val) {
checkIndices(indices);
int c = getConfigIdx(indices);
double prev = values[c];
values[c] = s.minus(values[c], val);
return prev;
} | class class_name[name] begin[{]
method[subtract, return_type[type[double]], modifier[public], parameter[indices, val]] begin[{]
call[.checkIndices, parameter[member[.indices]]]
local_variable[type[int], c]
local_variable[type[double], prev]
assign[member[.values]... | Keyword[public] Keyword[double] identifier[subtract] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[indices] , Keyword[double] identifier[val] operator[SEP] {
identifier[checkIndices] operator[SEP] identifier[indices] operator[SEP] operator[SEP] Keyword[int] identifier[c] operator[=] identifi... |
public Observable<Page<BuildStepInner>> listAsync(final String resourceGroupName, final String registryName, final String buildTaskName) {
return listWithServiceResponseAsync(resourceGroupName, registryName, buildTaskName)
.map(new Func1<ServiceResponse<Page<BuildStepInner>>, Page<BuildStepInner>>()... | class class_name[name] begin[{]
method[listAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, buildTaskName]] begin[{]
return[call[.listWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], member[.buildTaskName]]]]
en... | Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[BuildStepInner] operator[>] operator[>] identifier[listAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[registryName] , Keyword[final] identifie... |
public <T> T[] convert(Object[] datas, Class<T> clazz) {
if (null == datas) { return null; }
@SuppressWarnings("unchecked")
T[] newDatas = (T[]) Array.newInstance(clazz, datas.length);
for (int i = 0; i < datas.length; i++) {
newDatas[i] = convert(datas[i], clazz);
}
return newDatas;
} | class class_name[name] begin[{]
method[convert, return_type[type[T]], modifier[public], parameter[datas, clazz]] begin[{]
if[binary_operation[literal[null], ==, member[.datas]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[T], ... | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[convert] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[datas] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] {
Keyword[if] operator[SEP]... |
public static void transformDocumentToXml(DomDocument document, StreamResult result) {
TransformerFactory transformerFactory = TransformerFactory.newInstance();
try {
Transformer transformer = transformerFactory.newTransformer();
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
tra... | class class_name[name] begin[{]
method[transformDocumentToXml, return_type[void], modifier[public static], parameter[document, result]] begin[{]
local_variable[type[TransformerFactory], transformerFactory]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclara... | Keyword[public] Keyword[static] Keyword[void] identifier[transformDocumentToXml] operator[SEP] identifier[DomDocument] identifier[document] , identifier[StreamResult] identifier[result] operator[SEP] {
identifier[TransformerFactory] identifier[transformerFactory] operator[=] identifier[TransformerFactory] opera... |
public static String before(String text, String before) {
if (!text.contains(before)) {
return null;
}
return text.substring(0, text.indexOf(before));
} | class class_name[name] begin[{]
method[before, return_type[type[String]], modifier[public static], parameter[text, before]] begin[{]
if[call[text.contains, parameter[member[.before]]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
return[call[text.... | Keyword[public] Keyword[static] identifier[String] identifier[before] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[before] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[text] operator[SEP] identifier[contains] operator[SEP] identifier[before] operator[SEP]... |
public PartialResponseInsertType<PartialResponseChangesType<T>> getOrCreateInsert()
{
List<Node> nodeList = childNode.get("insert");
if (nodeList != null && nodeList.size() > 0)
{
return new PartialResponseInsertTypeImpl<PartialResponseChangesType<T>>(this, "insert", childNode, nodeList.g... | class class_name[name] begin[{]
method[getOrCreateInsert, return_type[type[PartialResponseInsertType]], modifier[public], parameter[]] begin[{]
local_variable[type[List], nodeList]
if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[node... | Keyword[public] identifier[PartialResponseInsertType] operator[<] identifier[PartialResponseChangesType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateInsert] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identif... |
public static QName getServiceQName(ClassInfo classInfo, String seiClassName, String targetNamespace) {
AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Service QName");
if (annotationInfo == null) {
return null;
}
//serviceName can only be defined in i... | class class_name[name] begin[{]
method[getServiceQName, return_type[type[QName]], modifier[public static], parameter[classInfo, seiClassName, targetNamespace]] begin[{]
local_variable[type[AnnotationInfo], annotationInfo]
if[binary_operation[member[.annotationInfo], ==, literal[null]]] ... | Keyword[public] Keyword[static] identifier[QName] identifier[getServiceQName] operator[SEP] identifier[ClassInfo] identifier[classInfo] , identifier[String] identifier[seiClassName] , identifier[String] identifier[targetNamespace] operator[SEP] {
identifier[AnnotationInfo] identifier[annotationInfo] operator[=... |
private boolean canCleanStagingData(JobState jobState)
throws IOException {
return this.jobContext.getSemantics() != DeliverySemantics.EXACTLY_ONCE || !this.jobContext.getCommitSequenceStore()
.get().exists(jobState.getJobName());
} | class class_name[name] begin[{]
method[canCleanStagingData, return_type[type[boolean]], modifier[private], parameter[jobState]] begin[{]
return[binary_operation[binary_operation[THIS[member[None.jobContext]call[None.getSemantics, parameter[]]], !=, member[DeliverySemantics.EXACTLY_ONCE]], ||, THIS[memb... | Keyword[private] Keyword[boolean] identifier[canCleanStagingData] operator[SEP] identifier[JobState] identifier[jobState] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[this] operator[SEP] identifier[jobContext] operator[SEP] identifier[getSemantics] operator[SEP] operator[SEP] o... |
public void stop() {
setLedOn(false);
if (null != blinkFuture) { blinkFuture.cancel(true); }
if (null != blinkService) { blinkService.shutdownNow(); }
} | class class_name[name] begin[{]
method[stop, return_type[void], modifier[public], parameter[]] begin[{]
call[.setLedOn, parameter[literal[false]]]
if[binary_operation[literal[null], !=, member[.blinkFuture]]] begin[{]
call[blinkFuture.cancel, parameter[li... | Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] {
identifier[setLedOn] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[!=] identifier[blinkFuture] operator[SEP] {
identifier[blinkFuture] operator[SEP] identifier[cance... |
public void marshall(PublicEndpoint publicEndpoint, ProtocolMarshaller protocolMarshaller) {
if (publicEndpoint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(publicEndpoint.getAddress(), ADDRESS_... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[publicEndpoint, protocolMarshaller]] begin[{]
if[binary_operation[member[.publicEndpoint], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_o... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PublicEndpoint] identifier[publicEndpoint] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[publicEndpoint] operator[==] Other[null] operator[SEP] {
Keyword[... |
@Override
public ObservableList<PropertySheet.Item> getPropertySheetItems() {
ObservableList<PropertySheet.Item> items = super.getPropertySheetItems();
items.add(new PropertySheet.Item() {
@Override
public Optional<ObservableValue<?>> getObservableValue() {
... | class class_name[name] begin[{]
method[getPropertySheetItems, return_type[type[ObservableList]], modifier[public], parameter[]] begin[{]
local_variable[type[ObservableList], items]
call[items.add, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(eleme... | annotation[@] identifier[Override] Keyword[public] identifier[ObservableList] operator[<] identifier[PropertySheet] operator[SEP] identifier[Item] operator[>] identifier[getPropertySheetItems] operator[SEP] operator[SEP] {
identifier[ObservableList] operator[<] identifier[PropertySheet] operator[SEP] identifier[... |
protected Content getNavLinkPrevious() {
if (prev == null) {
return getNavLinkPrevious(null);
} else {
DocPath path = DocPath.relativePath(packagedoc, prev);
return getNavLinkPrevious(path.resolve(DocPaths.PACKAGE_TREE));
}
} | class class_name[name] begin[{]
method[getNavLinkPrevious, return_type[type[Content]], modifier[protected], parameter[]] begin[{]
if[binary_operation[member[.prev], ==, literal[null]]] begin[{]
return[call[.getNavLinkPrevious, parameter[literal[null]]]]
else begin[{]
... | Keyword[protected] identifier[Content] identifier[getNavLinkPrevious] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[prev] operator[==] Other[null] operator[SEP] {
Keyword[return] identifier[getNavLinkPrevious] operator[SEP] Other[null] operator[SEP] operator[SEP]
}
K... |
public static void putIntBE(final byte[] array, final int offset, final int value) {
array[offset + 3] = (byte) (value );
array[offset + 2] = (byte) (value >>> 8);
array[offset + 1] = (byte) (value >>> 16);
array[offset ] = (byte) (value >>> 24);
} | class class_name[name] begin[{]
method[putIntBE, return_type[void], modifier[public static], parameter[array, offset, value]] begin[{]
assign[member[.array], Cast(expression=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimens... | Keyword[public] Keyword[static] Keyword[void] identifier[putIntBE] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[array] , Keyword[final] Keyword[int] identifier[offset] , Keyword[final] Keyword[int] identifier[value] operator[SEP] {
identifier[array] operator[SEP] identifier... |
public static JedisCluster newJedisCluster(String hostsAndPorts, String password) {
return newJedisCluster(hostsAndPorts, password, Protocol.DEFAULT_TIMEOUT);
} | class class_name[name] begin[{]
method[newJedisCluster, return_type[type[JedisCluster]], modifier[public static], parameter[hostsAndPorts, password]] begin[{]
return[call[.newJedisCluster, parameter[member[.hostsAndPorts], member[.password], member[Protocol.DEFAULT_TIMEOUT]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[JedisCluster] identifier[newJedisCluster] operator[SEP] identifier[String] identifier[hostsAndPorts] , identifier[String] identifier[password] operator[SEP] {
Keyword[return] identifier[newJedisCluster] operator[SEP] identifier[hostsAndPorts] , identifier[password] , ... |
@SuppressLint("MissingPermission") @RequiresPermission(allOf = {
ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE, ACCESS_WIFI_STATE
}) public static Observable<List<ScanResult>> observeWifiAccessPoints(final Context context) {
@SuppressLint("WifiManagerPotentialLeak") final WifiManager wifiM... | class class_name[name] begin[{]
method[observeWifiAccessPoints, return_type[type[Observable]], modifier[public static], parameter[context]] begin[{]
local_variable[type[WifiManager], wifiManager]
if[binary_operation[member[.wifiManager], !=, literal[null]]] begin[{]
... | annotation[@] identifier[SuppressLint] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[RequiresPermission] operator[SEP] identifier[allOf] operator[=] {
identifier[ACCESS_COARSE_LOCATION] , identifier[ACCESS_FINE_LOCATION] , identifier[CHANGE_WIFI_STATE] , identifier[ACCESS_WIFI_STATE]
... |
@Override
public void modifyAttributes(Name name, int modOp, Attributes attrs)
throws NamingException {
throw new UnsupportedOperationException(NOT_IMPLEMENTED);
} | class class_name[name] begin[{]
method[modifyAttributes, return_type[void], modifier[public], parameter[name, modOp, attrs]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NOT_IMPLEMENTED, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=Non... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[modifyAttributes] operator[SEP] identifier[Name] identifier[name] , Keyword[int] identifier[modOp] , identifier[Attributes] identifier[attrs] operator[SEP] Keyword[throws] identifier[NamingException] {
Keyword[throw] Keyword[new] ident... |
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfWaterObject() {
if (_GenericApplicationPropertyOfWaterObject == null) {
_GenericApplicationPropertyOfWaterObject = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfWaterObject;
} | class class_name[name] begin[{]
method[get_GenericApplicationPropertyOfWaterObject, return_type[type[List]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[._GenericApplicationPropertyOfWaterObject], ==, literal[null]]] begin[{]
assign[member[._Generi... | Keyword[public] identifier[List] operator[<] identifier[JAXBElement] operator[<] identifier[Object] operator[>] operator[>] identifier[get_GenericApplicationPropertyOfWaterObject] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[_GenericApplicationPropertyOfWaterObject] operator[==] Other[null]... |
public ApiResponse<Void> putFleetsFleetIdWithHttpInfo(Long fleetId, String datasource, String token,
FleetNewSettings fleetNewSettings) throws ApiException {
com.squareup.okhttp.Call call = putFleetsFleetIdValidateBeforeCall(fleetId, datasource, token,
fleetNewSettings, null);
... | class class_name[name] begin[{]
method[putFleetsFleetIdWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[fleetId, datasource, token, fleetNewSettings]] begin[{]
local_variable[type[com], call]
return[call[apiClient.execute, parameter[member[.call]]]]
end[}]
END[}] | Keyword[public] identifier[ApiResponse] operator[<] identifier[Void] operator[>] identifier[putFleetsFleetIdWithHttpInfo] operator[SEP] identifier[Long] identifier[fleetId] , identifier[String] identifier[datasource] , identifier[String] identifier[token] , identifier[FleetNewSettings] identifier[fleetNewSettings] o... |
final public TregexPattern Root() throws ParseException {
TregexPattern node;
node = SubNode(Relation.ROOT);
jj_consume_token(11);
{if (true) return node;}
throw new Error("Missing return statement in function");
} | class class_name[name] begin[{]
method[Root, return_type[type[TregexPattern]], modifier[final public], parameter[]] begin[{]
local_variable[type[TregexPattern], node]
assign[member[.node], call[.SubNode, parameter[member[Relation.ROOT]]]]
call[.jj_consume_token, paramete... | Keyword[final] Keyword[public] identifier[TregexPattern] identifier[Root] operator[SEP] operator[SEP] Keyword[throws] identifier[ParseException] {
identifier[TregexPattern] identifier[node] operator[SEP] identifier[node] operator[=] identifier[SubNode] operator[SEP] identifier[Relation] operator[SEP] identifier[... |
protected static PatchElement createPatchElement(final PatchEntry entry, String patchId, final List<ContentModification> modifications) {
final PatchElement patchElement = entry.element;
final PatchElementImpl element = new PatchElementImpl(patchId);
element.setProvider(patchElement.getProvider(... | class class_name[name] begin[{]
method[createPatchElement, return_type[type[PatchElement]], modifier[static protected], parameter[entry, patchId, modifications]] begin[{]
local_variable[type[PatchElement], patchElement]
local_variable[type[PatchElementImpl], element]
call[elemen... | Keyword[protected] Keyword[static] identifier[PatchElement] identifier[createPatchElement] operator[SEP] Keyword[final] identifier[PatchEntry] identifier[entry] , identifier[String] identifier[patchId] , Keyword[final] identifier[List] operator[<] identifier[ContentModification] operator[>] identifier[modifications] ... |
public CompletableFuture<CloseableResource<T>> getResource() {
CompletableFuture<CloseableResource<T>> future;
boolean tryCreateNewResource = false;
synchronized (lock) {
T t = idleResources.poll();
if (t != null) {
// return the object from the queue
... | class class_name[name] begin[{]
method[getResource, return_type[type[CompletableFuture]], modifier[public], parameter[]] begin[{]
local_variable[type[CompletableFuture], future]
local_variable[type[boolean], tryCreateNewResource]
SYNCHRONIZED[member[.lock]] BEGIN[{]
... | Keyword[public] identifier[CompletableFuture] operator[<] identifier[CloseableResource] operator[<] identifier[T] operator[>] operator[>] identifier[getResource] operator[SEP] operator[SEP] {
identifier[CompletableFuture] operator[<] identifier[CloseableResource] operator[<] identifier[T] operator[>] operator[>]... |
public static com.liferay.commerce.product.model.CPAttachmentFileEntry addCPAttachmentFileEntry(
com.liferay.commerce.product.model.CPAttachmentFileEntry cpAttachmentFileEntry) {
return getService().addCPAttachmentFileEntry(cpAttachmentFileEntry);
} | class class_name[name] begin[{]
method[addCPAttachmentFileEntry, return_type[type[com]], modifier[public static], parameter[cpAttachmentFileEntry]] begin[{]
return[call[.getService, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPAttachmentFileEntry] identifier[addCPAttachmentFileEntry] operator[SEP] identifier[com] operator[SEP] identifi... |
@Override
public EClass getIfcBuildingElementProxyType() {
if (ifcBuildingElementProxyTypeEClass == null) {
ifcBuildingElementProxyTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(62);
}
return ifcBuildingElementProxyTypeEClass;
} | class class_name[name] begin[{]
method[getIfcBuildingElementProxyType, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcBuildingElementProxyTypeEClass], ==, literal[null]]] begin[{]
assign[member[.ifcBuildingElementProxyTy... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcBuildingElementProxyType] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcBuildingElementProxyTypeEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcBuildingElementProxyTypeEClass] ... |
@Override
public final Object read(final Map<String, Object> pAddParam,
final Reader pReader) throws Exception {
Map<String, String> attributesMap = readAttributes(pAddParam, pReader);
if (attributesMap.get("class") == null) {
throw new ExceptionWithCode(ExceptionWithCode
.CONFIGURATION_MIST... | class class_name[name] begin[{]
method[read, return_type[type[Object]], modifier[final public], parameter[pAddParam, pReader]] begin[{]
local_variable[type[Map], attributesMap]
if[binary_operation[call[attributesMap.get, parameter[literal["class"]]], ==, literal[null]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[Object] identifier[read] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] , Keyword[final] identifier[Reader] identifier[pReader] operator[SEP] Keyword[throws]... |
public static base_responses update(nitro_service client, appqoeaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoeaction updateresources[] = new appqoeaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i... | class class_name[name] begin[{]
method[update, return_type[type[base_responses]], modifier[public static], parameter[client, resources]] begin[{]
local_variable[type[base_responses], result]
if[binary_operation[binary_operation[member[.resources], !=, literal[null]], &&, binary_operatio... | Keyword[public] Keyword[static] identifier[base_responses] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[appqoeaction] identifier[resources] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[base_responses] identifier[result... |
public StringType addProgramNameElement() {//2
StringType t = new StringType();
if (this.programName == null)
this.programName = new ArrayList<StringType>();
this.programName.add(t);
return t;
} | class class_name[name] begin[{]
method[addProgramNameElement, return_type[type[StringType]], modifier[public], parameter[]] begin[{]
local_variable[type[StringType], t]
if[binary_operation[THIS[member[None.programName]], ==, literal[null]]] begin[{]
assign[THIS[member[None.p... | Keyword[public] identifier[StringType] identifier[addProgramNameElement] operator[SEP] operator[SEP] {
identifier[StringType] identifier[t] operator[=] Keyword[new] identifier[StringType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[programName] opera... |
@GET
@Path("{typeName}")
@Produces(Servlets.JSON_MEDIA_TYPE)
public Response getDefinition(@Context HttpServletRequest request, @PathParam("typeName") String typeName) {
if (LOG.isDebugEnabled()) {
LOG.debug("==> TypesResource.getDefinition({})", typeName);
}
AtlasPerfTr... | class class_name[name] begin[{]
method[getDefinition, return_type[type[Response]], modifier[public], parameter[request, typeName]] begin[{]
if[call[LOG.isDebugEnabled, parameter[]]] begin[{]
call[LOG.debug, parameter[literal["==> TypesResource.getDefinition({})"], member... | annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[Servlets] operator[SEP] identifier[JSON_MEDIA_TYPE] operator[SEP] Keyword[public] identifier[Response] identifier[getDefinition] operator[SEP] annotation[@... |
private void locateNode(final String address, final Iterator<String> nodes, final Handler<AsyncResult<String>> doneHandler) {
if (nodes.hasNext()) {
final String node = nodes.next();
vertx.eventBus().sendWithTimeout(node, new JsonObject().putString("action", "ping"), 1000, new Handler<AsyncResult<Messag... | class class_name[name] begin[{]
method[locateNode, return_type[void], modifier[private], parameter[address, nodes, doneHandler]] begin[{]
if[call[nodes.hasNext, parameter[]]] begin[{]
local_variable[type[String], node]
call[vertx.eventBus, parameter[]]
... | Keyword[private] Keyword[void] identifier[locateNode] operator[SEP] Keyword[final] identifier[String] identifier[address] , Keyword[final] identifier[Iterator] operator[<] identifier[String] operator[>] identifier[nodes] , Keyword[final] identifier[Handler] operator[<] identifier[AsyncResult] operator[<] identifier[S... |
public static String findIpAddress( String networkInterface ) {
String ipAddress = null;
Logger logger = Logger.getLogger( AgentUtils.class.getName());
try {
// Try the network interface
NetworkInterface nif;
if( networkInterface != null
&& ! AgentConstants.DEFAULT_NETWORK_INTERFACE.equalsIgnoreCas... | class class_name[name] begin[{]
method[findIpAddress, return_type[type[String]], modifier[public static], parameter[networkInterface]] begin[{]
local_variable[type[String], ipAddress]
local_variable[type[Logger], logger]
TryStatement(block=[LocalVariableDeclaration(annotations=[], decla... | Keyword[public] Keyword[static] identifier[String] identifier[findIpAddress] operator[SEP] identifier[String] identifier[networkInterface] operator[SEP] {
identifier[String] identifier[ipAddress] operator[=] Other[null] operator[SEP] identifier[Logger] identifier[logger] operator[=] identifier[Logger] operator[S... |
public boolean isContractive(QualifiedName nid, Type type) {
HashSet<QualifiedName> visited = new HashSet<>();
return isContractive(nid, type, visited);
} | class class_name[name] begin[{]
method[isContractive, return_type[type[boolean]], modifier[public], parameter[nid, type]] begin[{]
local_variable[type[HashSet], visited]
return[call[.isContractive, parameter[member[.nid], member[.type], member[.visited]]]]
end[}]
END[}] | Keyword[public] Keyword[boolean] identifier[isContractive] operator[SEP] identifier[QualifiedName] identifier[nid] , identifier[Type] identifier[type] operator[SEP] {
identifier[HashSet] operator[<] identifier[QualifiedName] operator[>] identifier[visited] operator[=] Keyword[new] identifier[HashSet] operator[<... |
@Deprecated
public boolean addCircleToField(ProfileField<?> field, String circle, SPFPersona persona) {
return mProfileTable.addCircleToFields(circle, field, persona);
} | class class_name[name] begin[{]
method[addCircleToField, return_type[type[boolean]], modifier[public], parameter[field, circle, persona]] begin[{]
return[call[mProfileTable.addCircleToFields, parameter[member[.circle], member[.field], member[.persona]]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[boolean] identifier[addCircleToField] operator[SEP] identifier[ProfileField] operator[<] operator[?] operator[>] identifier[field] , identifier[String] identifier[circle] , identifier[SPFPersona] identifier[persona] operator[SEP] {
Keyword[return] id... |
public void replaceChildOutputSchemaNames(AbstractPlanNode child) {
NodeSchema childSchema = child.getTrueOutputSchema(false);
NodeSchema mySchema = getOutputSchema();
assert(childSchema.size() == mySchema.size());
for (int idx = 0; idx < childSchema.size(); idx += 1) {
Schem... | class class_name[name] begin[{]
method[replaceChildOutputSchemaNames, return_type[void], modifier[public], parameter[child]] begin[{]
local_variable[type[NodeSchema], childSchema]
local_variable[type[NodeSchema], mySchema]
AssertStatement(condition=BinaryOperation(operandl=MethodInvocat... | Keyword[public] Keyword[void] identifier[replaceChildOutputSchemaNames] operator[SEP] identifier[AbstractPlanNode] identifier[child] operator[SEP] {
identifier[NodeSchema] identifier[childSchema] operator[=] identifier[child] operator[SEP] identifier[getTrueOutputSchema] operator[SEP] literal[boolean] operator[S... |
public static HttpURLConnection deleteShare(final URI uri, final FileRequestOptions fileOptions,
final OperationContext opContext, final AccessCondition accessCondition, String snapshotVersion, DeleteShareSnapshotsOption deleteSnapshotsOption)
throws IOException, URISyntaxException, Sto... | class class_name[name] begin[{]
method[deleteShare, return_type[type[HttpURLConnection]], modifier[public static], parameter[uri, fileOptions, opContext, accessCondition, snapshotVersion, deleteSnapshotsOption]] begin[{]
local_variable[type[UriQueryBuilder], shareBuilder]
call[FileReque... | Keyword[public] Keyword[static] identifier[HttpURLConnection] identifier[deleteShare] operator[SEP] Keyword[final] identifier[URI] identifier[uri] , Keyword[final] identifier[FileRequestOptions] identifier[fileOptions] , Keyword[final] identifier[OperationContext] identifier[opContext] , Keyword[final] identifier[Ac... |
public TableRow nextRow(final Table table, final TableAppender appender) throws IOException {
return this.getRowSecure(table, appender, this.curRowIndex + 1, true);
} | class class_name[name] begin[{]
method[nextRow, return_type[type[TableRow]], modifier[public], parameter[table, appender]] begin[{]
return[THIS[call[None.getRowSecure, parameter[member[.table], member[.appender], binary_operation[THIS[member[None.curRowIndex]], +, literal[1]], literal[true]]]]]
end... | Keyword[public] identifier[TableRow] identifier[nextRow] operator[SEP] Keyword[final] identifier[Table] identifier[table] , Keyword[final] identifier[TableAppender] identifier[appender] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[this] operator[SEP] identifier[getRowSecure] o... |
public int getSourceOffset() {
StaticSourceFile file = getStaticSourceFile();
if (file == null) {
return -1;
}
int lineno = getLineno();
if (lineno == -1) {
return -1;
}
return file.getLineOffset(lineno) + getCharno();
} | class class_name[name] begin[{]
method[getSourceOffset, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[StaticSourceFile], file]
if[binary_operation[member[.file], ==, literal[null]]] begin[{]
return[literal[1]]
else begin[{]
None
... | Keyword[public] Keyword[int] identifier[getSourceOffset] operator[SEP] operator[SEP] {
identifier[StaticSourceFile] identifier[file] operator[=] identifier[getStaticSourceFile] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[file] operator[==] Other[null] operator[SEP] {
... |
protected final StringBuilder getBaseUrl(final HttpServletRequest httpServletRequest) {
StringBuilder baseURL = new StringBuilder();
if (httpServletRequest.getContextPath() != null && !httpServletRequest.getContextPath().isEmpty()) {
baseURL.append(httpServletRequest.getContextPath());
... | class class_name[name] begin[{]
method[getBaseUrl, return_type[type[StringBuilder]], modifier[final protected], parameter[httpServletRequest]] begin[{]
local_variable[type[StringBuilder], baseURL]
if[binary_operation[binary_operation[call[httpServletRequest.getContextPath, parameter[]],... | Keyword[protected] Keyword[final] identifier[StringBuilder] identifier[getBaseUrl] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[httpServletRequest] operator[SEP] {
identifier[StringBuilder] identifier[baseURL] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP... |
protected static void launchNow(final Class<? extends Application> appClass, final String... args) {
Application.launch(appClass, args);
} | class class_name[name] begin[{]
method[launchNow, return_type[void], modifier[static protected], parameter[appClass, args]] begin[{]
call[Application.launch, parameter[member[.appClass], member[.args]]]
end[}]
END[}] | Keyword[protected] Keyword[static] Keyword[void] identifier[launchNow] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Application] operator[>] identifier[appClass] , Keyword[final] identifier[String] operator[...] identifier[args] operator[SEP] {
identifier[Ap... |
public CreateIdentityPoolResult withIdentityPoolTags(java.util.Map<String, String> identityPoolTags) {
setIdentityPoolTags(identityPoolTags);
return this;
} | class class_name[name] begin[{]
method[withIdentityPoolTags, return_type[type[CreateIdentityPoolResult]], modifier[public], parameter[identityPoolTags]] begin[{]
call[.setIdentityPoolTags, parameter[member[.identityPoolTags]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[CreateIdentityPoolResult] identifier[withIdentityPoolTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[identityPoolTags] operator[SEP] {
identifier[setIdentityPoo... |
public JSONObject element( String key, Map value ) {
return element( key, value, new JsonConfig() );
} | class class_name[name] begin[{]
method[element, return_type[type[JSONObject]], modifier[public], parameter[key, value]] begin[{]
return[call[.element, parameter[member[.key], member[.value], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[]... | Keyword[public] identifier[JSONObject] identifier[element] operator[SEP] identifier[String] identifier[key] , identifier[Map] identifier[value] operator[SEP] {
Keyword[return] identifier[element] operator[SEP] identifier[key] , identifier[value] , Keyword[new] identifier[JsonConfig] operator[SEP] operator[SEP... |
protected int getSelectedTextColor(Context ctx) {
return ColorHolder.color(getSelectedTextColor(), ctx, R.attr.material_drawer_selected_text, R.color.material_drawer_selected_text);
} | class class_name[name] begin[{]
method[getSelectedTextColor, return_type[type[int]], modifier[protected], parameter[ctx]] begin[{]
return[call[ColorHolder.color, parameter[call[.getSelectedTextColor, parameter[]], member[.ctx], member[R.attr.material_drawer_selected_text], member[R.color.material_drawe... | Keyword[protected] Keyword[int] identifier[getSelectedTextColor] operator[SEP] identifier[Context] identifier[ctx] operator[SEP] {
Keyword[return] identifier[ColorHolder] operator[SEP] identifier[color] operator[SEP] identifier[getSelectedTextColor] operator[SEP] operator[SEP] , identifier[ctx] , identifier[R]... |
public static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) {
long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND));
int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND);
return create(secs, nos);
} | class class_name[name] begin[{]
method[ofEpochSecond, return_type[type[Instant]], modifier[public static], parameter[epochSecond, nanoAdjustment]] begin[{]
local_variable[type[long], secs]
local_variable[type[int], nos]
return[call[.create, parameter[member[.secs], member[.nos]]]]
e... | Keyword[public] Keyword[static] identifier[Instant] identifier[ofEpochSecond] operator[SEP] Keyword[long] identifier[epochSecond] , Keyword[long] identifier[nanoAdjustment] operator[SEP] {
Keyword[long] identifier[secs] operator[=] identifier[Math] operator[SEP] identifier[addExact] operator[SEP] identifier[epo... |
public static String unescape(String string) {
int length = string.length();
StringBuilder sb = new StringBuilder(length);
for (int i = 0; i < length; ++i) {
char c = string.charAt(i);
if (c == '+') {
c = ' ';
} else if (c == '%' && i + 2 < len... | class class_name[name] begin[{]
method[unescape, return_type[type[String]], modifier[public static], parameter[string]] begin[{]
local_variable[type[int], length]
local_variable[type[StringBuilder], sb]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(an... | Keyword[public] Keyword[static] identifier[String] identifier[unescape] operator[SEP] identifier[String] identifier[string] operator[SEP] {
Keyword[int] identifier[length] operator[=] identifier[string] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifie... |
public static ProctorLoadResult verifyWithoutSpecification(@Nonnull final TestMatrixArtifact testMatrix,
final String matrixSource) {
final ProctorLoadResult.Builder resultBuilder = ProctorLoadResult.newBuilder();
for (final Entry<String, C... | class class_name[name] begin[{]
method[verifyWithoutSpecification, return_type[type[ProctorLoadResult]], modifier[public static], parameter[testMatrix, matrixSource]] begin[{]
local_variable[type[ProctorLoadResult], resultBuilder]
ForStatement(body=BlockStatement(label=None, statements=[LocalVa... | Keyword[public] Keyword[static] identifier[ProctorLoadResult] identifier[verifyWithoutSpecification] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[TestMatrixArtifact] identifier[testMatrix] , Keyword[final] identifier[String] identifier[matrixSource] operator[SEP] {
Keyword[final] id... |
public static void log (@Nonnull final Class <?> aLoggingClass,
@Nonnull final IErrorLevel aErrorLevel,
@Nonnull final String sMsg,
@Nullable final Throwable t)
{
log (LoggerFactory.getLogger (aLoggingClass), aErrorLevel, sMsg, t);
} | class class_name[name] begin[{]
method[log, return_type[void], modifier[public static], parameter[aLoggingClass, aErrorLevel, sMsg, t]] begin[{]
call[.log, parameter[call[LoggerFactory.getLogger, parameter[member[.aLoggingClass]]], member[.aErrorLevel], member[.sMsg], member[.t]]]
end[}]
EN... | Keyword[public] Keyword[static] Keyword[void] identifier[log] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[aLoggingClass] , annotation[@] identifier[Nonnull] Keyword[final] identifier[IErrorLevel] identifier[aErrorLevel] , annotation[@... |
public Object createMarshallableObject()
{
wsdlFactory = new org.xmlsoap.schemas.wsdl.ObjectFactory();
// create a wsdl object
TDefinitions TDefinitions = wsdlFactory.createTDefinitions();
JAXBElement<TDefinitions> root = wsdlFactory.createDefinitions(TDefinitions);
... | class class_name[name] begin[{]
method[createMarshallableObject, return_type[type[Object]], modifier[public], parameter[]] begin[{]
assign[member[.wsdlFactory], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, sele... | Keyword[public] identifier[Object] identifier[createMarshallableObject] operator[SEP] operator[SEP] {
identifier[wsdlFactory] operator[=] Keyword[new] identifier[org] operator[SEP] identifier[xmlsoap] operator[SEP] identifier[schemas] operator[SEP] identifier[wsdl] operator[SEP] identifier[ObjectFactory] operato... |
private void paintBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
Component c = ctx.getComponent();
boolean ltr = c.getComponentOrientation().isLeftToRight();
// Don't RTL flip JSpliders as they handle it internaly
if (ctx.getComponent() insta... | class class_name[name] begin[{]
method[paintBackground, return_type[void], modifier[private], parameter[ctx, g, x, y, w, h, orientation]] begin[{]
local_variable[type[Component], c]
local_variable[type[boolean], ltr]
if[binary_operation[call[ctx.getComponent, parameter[]], insta... | Keyword[private] Keyword[void] identifier[paintBackground] operator[SEP] identifier[SynthContext] identifier[ctx] , identifier[Graphics] identifier[g] , Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[w] , Keyword[int] identifier[h] , Keyword[int] identifier[orientation] operator... |
private int runScan(String reportDirectory, String outputFormat, String applicationName, String[] files,
String[] excludes, int symLinkDepth, int cvssFailScore) throws DatabaseException,
ExceptionCollection, ReportException {
Engine engine = null;
try {
final List<Str... | class class_name[name] begin[{]
method[runScan, return_type[type[int]], modifier[private], parameter[reportDirectory, outputFormat, applicationName, files, excludes, symLinkDepth, cvssFailScore]] begin[{]
local_variable[type[Engine], engine]
TryStatement(block=[LocalVariableDeclaration(annotati... | Keyword[private] Keyword[int] identifier[runScan] operator[SEP] identifier[String] identifier[reportDirectory] , identifier[String] identifier[outputFormat] , identifier[String] identifier[applicationName] , identifier[String] operator[SEP] operator[SEP] identifier[files] , identifier[String] operator[SEP] operator... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.