code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public ApplicationGatewayBackendHealthInner beginBackendHealth(String resourceGroupName, String applicationGatewayName) {
return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body();
} | class class_name[name] begin[{]
method[beginBackendHealth, return_type[type[ApplicationGatewayBackendHealthInner]], modifier[public], parameter[resourceGroupName, applicationGatewayName]] begin[{]
return[call[.beginBackendHealthWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.app... | Keyword[public] identifier[ApplicationGatewayBackendHealthInner] identifier[beginBackendHealth] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[applicationGatewayName] operator[SEP] {
Keyword[return] identifier[beginBackendHealthWithServiceResponseAsync] operator[S... |
static String getORBgiopMaxMsgSize()
{
// Check if already done
if (orb_max_msg_size==null)
if ((orb_max_msg_size=System.getProperty("ORBgiopMaxMsgSize"))==null) // From JVM property
if ((orb_max_msg_size=System.getenv("ORBgiopMaxMsgSize"))==null) // From Environment property
orb_max_msg_size = getFro... | class class_name[name] begin[{]
method[getORBgiopMaxMsgSize, return_type[type[String]], modifier[static], parameter[]] begin[{]
if[binary_operation[member[.orb_max_msg_size], ==, literal[null]]] begin[{]
if[binary_operation[assign[member[.orb_max_msg_size], call[System.getProperty, ... | Keyword[static] identifier[String] identifier[getORBgiopMaxMsgSize] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[orb_max_msg_size] operator[==] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[orb_max_msg_size] operator[=] identifier[System] operator[SEP] identif... |
public DependencyId[] getDependencyIds(){
DependencyId[] depIds = new DependencyId[configEntry.dependencyIds.length];
for ( int i=0; i<configEntry.dependencyIds.length; i++ ){
depIds[i] = new DependencyId(configEntry.dependencyIds[i]);
}
return depIds;
} | class class_name[name] begin[{]
method[getDependencyIds, return_type[type[DependencyId]], modifier[public], parameter[]] begin[{]
local_variable[type[DependencyId], depIds]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefer... | Keyword[public] identifier[DependencyId] operator[SEP] operator[SEP] identifier[getDependencyIds] operator[SEP] operator[SEP] {
identifier[DependencyId] operator[SEP] operator[SEP] identifier[depIds] operator[=] Keyword[new] identifier[DependencyId] operator[SEP] identifier[configEntry] operator[SEP] identifier[... |
public HtmlResponse renderWith(RenderDataRegistration dataLambda) {
assertArgumentNotNull("dataLambda", dataLambda);
assertDefinedState("renderWith");
if (viewObject != null) {
String msg = "Cannot call renderWith() with withView(): viewObject=" + viewObject;
throw new Il... | class class_name[name] begin[{]
method[renderWith, return_type[type[HtmlResponse]], modifier[public], parameter[dataLambda]] begin[{]
call[.assertArgumentNotNull, parameter[literal["dataLambda"], member[.dataLambda]]]
call[.assertDefinedState, parameter[literal["renderWith"]]]
... | Keyword[public] identifier[HtmlResponse] identifier[renderWith] operator[SEP] identifier[RenderDataRegistration] identifier[dataLambda] operator[SEP] {
identifier[assertArgumentNotNull] operator[SEP] literal[String] , identifier[dataLambda] operator[SEP] operator[SEP] identifier[assertDefinedState] operator[SEP... |
public static PrimitiveMatrix toCorrelations(Access2D<?> covariances, boolean clean) {
int size = Math.toIntExact(Math.min(covariances.countRows(), covariances.countColumns()));
MatrixStore<Double> covarianceMtrx = MatrixStore.PRIMITIVE.makeWrapper(covariances).get();
if (clean) {
... | class class_name[name] begin[{]
method[toCorrelations, return_type[type[PrimitiveMatrix]], modifier[public static], parameter[covariances, clean]] begin[{]
local_variable[type[int], size]
local_variable[type[MatrixStore], covarianceMtrx]
if[member[.clean]] begin[{]
l... | Keyword[public] Keyword[static] identifier[PrimitiveMatrix] identifier[toCorrelations] operator[SEP] identifier[Access2D] operator[<] operator[?] operator[>] identifier[covariances] , Keyword[boolean] identifier[clean] operator[SEP] {
Keyword[int] identifier[size] operator[=] identifier[Math] operator[SEP] iden... |
@PostMapping(
value = "/{entityTypeId}/meta",
params = "_method=GET",
produces = APPLICATION_JSON_VALUE)
public EntityTypeResponse retrieveEntityTypePost(
@PathVariable("entityTypeId") String entityTypeId,
@Valid @RequestBody EntityTypeRequest request) {
Set<String> attributesSet = t... | class class_name[name] begin[{]
method[retrieveEntityTypePost, return_type[type[EntityTypeResponse]], modifier[public], parameter[entityTypeId, request]] begin[{]
local_variable[type[Set], attributesSet]
local_variable[type[Map], attributeExpandSet]
local_variable[type[EntityType], meta... | annotation[@] identifier[PostMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[params] operator[=] literal[String] , identifier[produces] operator[=] identifier[APPLICATION_JSON_VALUE] operator[SEP] Keyword[public] identifier[EntityTypeResponse] identifier[retrieveEntityTypePost] opera... |
public String getParentCursor(String columnListParamName) {
FunctionParamInfo funcParamInfo = functionCallStack.peek();
Map<String, String> parentCursorMap =
funcParamInfo.columnListParamToParentCursorMap;
return parentCursorMap.get(columnListParamName);
} | class class_name[name] begin[{]
method[getParentCursor, return_type[type[String]], modifier[public], parameter[columnListParamName]] begin[{]
local_variable[type[FunctionParamInfo], funcParamInfo]
local_variable[type[Map], parentCursorMap]
return[call[parentCursorMap.get, parameter[memb... | Keyword[public] identifier[String] identifier[getParentCursor] operator[SEP] identifier[String] identifier[columnListParamName] operator[SEP] {
identifier[FunctionParamInfo] identifier[funcParamInfo] operator[=] identifier[functionCallStack] operator[SEP] identifier[peek] operator[SEP] operator[SEP] operator[SEP... |
public static Location getLocation(Object obj, String description) {
if (obj instanceof Location) {
return (Location) obj;
}
if (obj instanceof Locatable) {
return ((Locatable) obj).getLocation();
}
if (obj instanceof SAXParseException) {
SAXParseException spe = (SAXParseException) obj;
i... | class class_name[name] begin[{]
method[getLocation, return_type[type[Location]], modifier[public static], parameter[obj, description]] begin[{]
if[binary_operation[member[.obj], instanceof, type[Location]]] begin[{]
return[Cast(expression=MemberReference(member=obj, postfix_operator... | Keyword[public] Keyword[static] identifier[Location] identifier[getLocation] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[description] operator[SEP] {
Keyword[if] operator[SEP] identifier[obj] Keyword[instanceof] identifier[Location] operator[SEP] {
Keyword[return]... |
public static boolean executesNonScopeCompensationHandler(PvmExecutionImpl execution) {
ActivityImpl activity = execution.getActivity();
return execution.isScope() && activity != null && activity.isCompensationHandler() && !activity.isScope();
} | class class_name[name] begin[{]
method[executesNonScopeCompensationHandler, return_type[type[boolean]], modifier[public static], parameter[execution]] begin[{]
local_variable[type[ActivityImpl], activity]
return[binary_operation[binary_operation[binary_operation[call[execution.isScope, paramete... | Keyword[public] Keyword[static] Keyword[boolean] identifier[executesNonScopeCompensationHandler] operator[SEP] identifier[PvmExecutionImpl] identifier[execution] operator[SEP] {
identifier[ActivityImpl] identifier[activity] operator[=] identifier[execution] operator[SEP] identifier[getActivity] operator[SEP] ope... |
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(
Iterable<FieldDescriptor> fieldDescriptors) {
return usingConfig(config.ignoringFieldAbsenceOfFieldDescriptors(fieldDescriptors));
} | class class_name[name] begin[{]
method[ignoringFieldAbsenceOfFieldDescriptorsForValues, return_type[type[MapWithProtoValuesFluentAssertion]], modifier[public], parameter[fieldDescriptors]] begin[{]
return[call[.usingConfig, parameter[call[config.ignoringFieldAbsenceOfFieldDescriptors, parameter[member[... | Keyword[public] identifier[MapWithProtoValuesFluentAssertion] operator[<] identifier[M] operator[>] identifier[ignoringFieldAbsenceOfFieldDescriptorsForValues] operator[SEP] identifier[Iterable] operator[<] identifier[FieldDescriptor] operator[>] identifier[fieldDescriptors] operator[SEP] {
Keyword[return] ident... |
public static void copyBackRouteHeader(byte[] source, byte[] dest) {
int thisPointCode = getFromSif_DPC(source, 1);
int remotePointCode = getFromSif_OPC(source, 1);
int sls = getFromSif_SLS(source, 1);
int si = getFromSif_SI(source);
int ssi = getFromSif_SSI(source);
writ... | class class_name[name] begin[{]
method[copyBackRouteHeader, return_type[void], modifier[public static], parameter[source, dest]] begin[{]
local_variable[type[int], thisPointCode]
local_variable[type[int], remotePointCode]
local_variable[type[int], sls]
local_variable[type[int], ... | Keyword[public] Keyword[static] Keyword[void] identifier[copyBackRouteHeader] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[source] , Keyword[byte] operator[SEP] operator[SEP] identifier[dest] operator[SEP] {
Keyword[int] identifier[thisPointCode] operator[=] identifier[getFromSif_DPC] oper... |
public void setLicenseWindowEndDateTime(com.google.api.ads.admanager.axis.v201808.DateTime licenseWindowEndDateTime) {
this.licenseWindowEndDateTime = licenseWindowEndDateTime;
} | class class_name[name] begin[{]
method[setLicenseWindowEndDateTime, return_type[void], modifier[public], parameter[licenseWindowEndDateTime]] begin[{]
assign[THIS[member[None.licenseWindowEndDateTime]], member[.licenseWindowEndDateTime]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setLicenseWindowEndDateTime] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[D... |
private static double[] getRandomWalk(int numPoints) {
double[] y = new double[numPoints];
y[0] = 0;
for (int i = 1; i < y.length; i++) {
y[i] = y[i - 1] + Math.random() - .5;
}
return y;
} | class class_name[name] begin[{]
method[getRandomWalk, return_type[type[double]], modifier[private static], parameter[numPoints]] begin[{]
local_variable[type[double], y]
assign[member[.y], literal[0]]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(e... | Keyword[private] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[getRandomWalk] operator[SEP] Keyword[int] identifier[numPoints] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] identifier[y] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[numPoints] operator[S... |
public Table createTable(String datasetName, String tableName, String fieldName) {
// [START bigquery_create_table]
TableId tableId = TableId.of(datasetName, tableName);
// Table field definition
Field field = Field.of(fieldName, LegacySQLTypeName.STRING);
// Table schema definition
Schema schem... | class class_name[name] begin[{]
method[createTable, return_type[type[Table]], modifier[public], parameter[datasetName, tableName, fieldName]] begin[{]
local_variable[type[TableId], tableId]
local_variable[type[Field], field]
local_variable[type[Schema], schema]
local_variable[ty... | Keyword[public] identifier[Table] identifier[createTable] operator[SEP] identifier[String] identifier[datasetName] , identifier[String] identifier[tableName] , identifier[String] identifier[fieldName] operator[SEP] {
identifier[TableId] identifier[tableId] operator[=] identifier[TableId] operator[SEP] identifi... |
void remove() throws InternalLogException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "remove",this);
// If the parent recovery log instance has experienced a serious internal error then prevent
// this operation from executing.
if (_recLog.failed())
{
if (tc.isEntryEnabled()) Tr.exit(tc, "remo... | class class_name[name] begin[{]
method[remove, return_type[void], modifier[default], parameter[]] begin[{]
if[call[tc.isEntryEnabled, parameter[]]] begin[{]
call[Tr.entry, parameter[member[.tc], literal["remove"], THIS[]]]
else begin[{]
None
end[}]
if... | Keyword[void] identifier[remove] operator[SEP] operator[SEP] Keyword[throws] identifier[InternalLogException] {
Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] ,... |
public Observable<Void> reissueAsync(String resourceGroupName, String certificateOrderName, ReissueCertificateOrderRequest reissueCertificateOrderRequest) {
return reissueWithServiceResponseAsync(resourceGroupName, certificateOrderName, reissueCertificateOrderRequest).map(new Func1<ServiceResponse<Void>, Void>(... | class class_name[name] begin[{]
method[reissueAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, certificateOrderName, reissueCertificateOrderRequest]] begin[{]
return[call[.reissueWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.certificateOrder... | Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[reissueAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[certificateOrderName] , identifier[ReissueCertificateOrderRequest] identifier[reissueCertificateOrderRequest] operator... |
public static String getRelativePath(String path, String backupDirCanonicalPath) throws MalformedURLException
{
URL urlPath = new URL(resolveFileURL("file:" + path));
URL urlBackupDir = new URL(resolveFileURL("file:" + backupDirCanonicalPath));
return urlPath.toString().replace(urlBackupDir.toStri... | class class_name[name] begin[{]
method[getRelativePath, return_type[type[String]], modifier[public static], parameter[path, backupDirCanonicalPath]] begin[{]
local_variable[type[URL], urlPath]
local_variable[type[URL], urlBackupDir]
return[call[urlPath.toString, parameter[]]]
end[}]... | Keyword[public] Keyword[static] identifier[String] identifier[getRelativePath] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[backupDirCanonicalPath] operator[SEP] Keyword[throws] identifier[MalformedURLException] {
identifier[URL] identifier[urlPath] operator[=] Keyword[new] ... |
@Override
public void setupEventHandlers() {
node.setOnMouseEntered(event -> toggleTooltip(node, checkboxes.get(checkboxes.size() - 1)));
node.setOnMouseExited(event -> toggleTooltip(node, checkboxes.get(checkboxes.size() - 1)));
setupCheckboxEventHandlers();
} | class class_name[name] begin[{]
method[setupEventHandlers, return_type[void], modifier[public], parameter[]] begin[{]
call[node.setOnMouseEntered, parameter[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=, sele... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setupEventHandlers] operator[SEP] operator[SEP] {
identifier[node] operator[SEP] identifier[setOnMouseEntered] operator[SEP] identifier[event] operator[->] identifier[toggleTooltip] operator[SEP] identifier[node] , identifier[checkboxes... |
public static SelectOptions getProjectSelectOptionsStatic(CmsObject cms, String startProject, Locale locale) {
List<CmsProject> allProjects;
try {
String ouFqn = "";
CmsUserSettings settings = new CmsUserSettings(cms);
if (!settings.getListAllProjects()) {
... | class class_name[name] begin[{]
method[getProjectSelectOptionsStatic, return_type[type[SelectOptions]], modifier[public static], parameter[cms, startProject, locale]] begin[{]
local_variable[type[List], allProjects]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Varia... | Keyword[public] Keyword[static] identifier[SelectOptions] identifier[getProjectSelectOptionsStatic] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[startProject] , identifier[Locale] identifier[locale] operator[SEP] {
identifier[List] operator[<] identifier[CmsProject] opera... |
public CellConstraints rchw(int row, int col, int rowSpan, int colSpan,
String encodedAlignments) {
CellConstraints result = rchw(row, col, rowSpan, colSpan);
result.setAlignments(encodedAlignments, false);
return result;
} | class class_name[name] begin[{]
method[rchw, return_type[type[CellConstraints]], modifier[public], parameter[row, col, rowSpan, colSpan, encodedAlignments]] begin[{]
local_variable[type[CellConstraints], result]
call[result.setAlignments, parameter[member[.encodedAlignments], literal[fa... | Keyword[public] identifier[CellConstraints] identifier[rchw] operator[SEP] Keyword[int] identifier[row] , Keyword[int] identifier[col] , Keyword[int] identifier[rowSpan] , Keyword[int] identifier[colSpan] , identifier[String] identifier[encodedAlignments] operator[SEP] {
identifier[CellConstraints] identifie... |
boolean addObserver(ApptentiveNotificationObserver observer, boolean useWeakReference) {
if (observer == null) {
throw new IllegalArgumentException("Observer is null");
}
if (!contains(observer)) {
observers.add(useWeakReference ? new ObserverWeakReference(observer) : observer);
return true;
}
retu... | class class_name[name] begin[{]
method[addObserver, return_type[type[boolean]], modifier[default], parameter[observer, useWeakReference]] begin[{]
if[binary_operation[member[.observer], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op... | Keyword[boolean] identifier[addObserver] operator[SEP] identifier[ApptentiveNotificationObserver] identifier[observer] , Keyword[boolean] identifier[useWeakReference] operator[SEP] {
Keyword[if] operator[SEP] identifier[observer] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] id... |
@Override
public void updateStatisticOnRequest(int dataId) {
if (si != null) {
ConnectionPoolStats temp = ConnectionPoolMonitor.getConnectionPoolOB((si.getName()));
if (dataId == NUM_CREATES) {
numManagedConnectionsCreated.setCount(temp.getCreateCount());
... | class class_name[name] begin[{]
method[updateStatisticOnRequest, return_type[void], modifier[public], parameter[dataId]] begin[{]
if[binary_operation[member[.si], !=, literal[null]]] begin[{]
local_variable[type[ConnectionPoolStats], temp]
if[binary_operation... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[updateStatisticOnRequest] operator[SEP] Keyword[int] identifier[dataId] operator[SEP] {
Keyword[if] operator[SEP] identifier[si] operator[!=] Other[null] operator[SEP] {
identifier[ConnectionPoolStats] identifier[temp] operato... |
private void invokeReflection(Method method, String signature) {
GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, method, signature, new Type[0], classWriter);
/**
* try {
* // Call method
* } catch (IllegalAccessException e) {
* throw Throwables.propagate(e);
* }
... | class class_name[name] begin[{]
method[invokeReflection, return_type[void], modifier[private], parameter[method, signature]] begin[{]
local_variable[type[GeneratorAdapter], mg]
local_variable[type[Label], beginTry]
local_variable[type[Label], endTry]
local_variable[type[Label], ... | Keyword[private] Keyword[void] identifier[invokeReflection] operator[SEP] identifier[Method] identifier[method] , identifier[String] identifier[signature] operator[SEP] {
identifier[GeneratorAdapter] identifier[mg] operator[=] Keyword[new] identifier[GeneratorAdapter] operator[SEP] identifier[Opcodes] operator[... |
public static <T> T invokeStatic(Method method, Object... args) throws UtilException {
return invoke(null, method, args);
} | class class_name[name] begin[{]
method[invokeStatic, return_type[type[T]], modifier[public static], parameter[method, args]] begin[{]
return[call[.invoke, parameter[literal[null], member[.method], member[.args]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[invokeStatic] operator[SEP] identifier[Method] identifier[method] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[UtilException] {
Keyword[return] identifier[invoke] operat... |
public Optional<ApplicationHost> show(long applicationId, long hostId)
{
return HTTP.GET(String.format("/v2/applications/%d/hosts/%d.json", applicationId, hostId), APPLICATION_HOST);
} | class class_name[name] begin[{]
method[show, return_type[type[Optional]], modifier[public], parameter[applicationId, hostId]] begin[{]
return[call[HTTP.GET, parameter[call[String.format, parameter[literal["/v2/applications/%d/hosts/%d.json"], member[.applicationId], member[.hostId]]], member[.APPLICATI... | Keyword[public] identifier[Optional] operator[<] identifier[ApplicationHost] operator[>] identifier[show] operator[SEP] Keyword[long] identifier[applicationId] , Keyword[long] identifier[hostId] operator[SEP] {
Keyword[return] identifier[HTTP] operator[SEP] identifier[GET] operator[SEP] identifier[String] opera... |
@Override
public boolean isConnected() {
if (log.isTraceEnabled()) {
log.trace("Connected: {}", (ioSession != null && ioSession.isConnected()));
}
// XXX Paul: not sure isClosing is actually working as we expect here
return super.isConnected() && (ioSession != null ... | class class_name[name] begin[{]
method[isConnected, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
if[call[log.isTraceEnabled, parameter[]]] begin[{]
call[log.trace, parameter[literal["Connected: {}"], binary_operation[binary_operation[member[.ioSess... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isConnected] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] {
identifier[log] operator[SEP] identifier[trace] opera... |
private static long compactValFor(BigInteger b) {
int[] m = b.mag;
int len = m.length;
if (len == 0)
return 0;
int d = m[0];
if (len > 2 || (len == 2 && d < 0))
return INFLATED;
long u = (len == 2)?
(((long) m[1] & LONG_MASK) + (((long... | class class_name[name] begin[{]
method[compactValFor, return_type[type[long]], modifier[private static], parameter[b]] begin[{]
local_variable[type[int], m]
local_variable[type[int], len]
if[binary_operation[member[.len], ==, literal[0]]] begin[{]
return[literal[0]]
else... | Keyword[private] Keyword[static] Keyword[long] identifier[compactValFor] operator[SEP] identifier[BigInteger] identifier[b] operator[SEP] {
Keyword[int] operator[SEP] operator[SEP] identifier[m] operator[=] identifier[b] operator[SEP] identifier[mag] operator[SEP] Keyword[int] identifier[len] operator[=] identif... |
public final void mSTRING_WITH_QUOTE() throws RecognitionException {
try {
int _type = STRING_WITH_QUOTE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:149... | class class_name[name] begin[{]
method[mSTRING_WITH_QUOTE, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=STRING_WITH_QUOTE, postfix_operators... | Keyword[public] Keyword[final] Keyword[void] identifier[mSTRING_WITH_QUOTE] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
Keyword[int] identifier[_type] operator[=] identifier[STRING_WITH_QUOTE] operator[SEP] Keyword[int] identifier[_channel] operator[=]... |
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
protected void onString(String text, String fieldName, JsonParser jp) {
log.trace(fieldName + " " + text);
if (resultStarted) {
found = true;
java.lang.reflect.Field field = ClassUtil.getDeclaredFieldSilent(entity.getClass(), fieldName);
if (field... | class class_name[name] begin[{]
method[onString, return_type[void], modifier[protected], parameter[text, fieldName, jp]] begin[{]
call[log.trace, parameter[binary_operation[binary_operation[member[.fieldName], +, literal[" "]], +, member[.text]]]]
if[member[.resultStarted]] begi... | annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String] , literal[String]
} operator[SEP] Keyword[protected] Keyword[void] identifier[onString] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[fieldName] , identifier[Jso... |
public static <T> boolean containsNo(Collection<T> baseList, Collection<T> valueList) {
for (T v : valueList) {
if (baseList.contains(v)) {
return false;
}
}
return true;
} | class class_name[name] begin[{]
method[containsNo, return_type[type[boolean]], modifier[public static], parameter[baseList, valueList]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=v, postfix_operators=[], pre... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[containsNo] operator[SEP] identifier[Collection] operator[<] identifier[T] operator[>] identifier[baseList] , identifier[Collection] operator[<] identifier[T] operator[>] identifier[valueList] operator[SEP] {
Keywo... |
public void setTargetNormal( double nx, double ny, double nz )
{
double h,f,c,vx,vy,hvx;
vx = ny;
vy = -nx;
c = nz;
h = (1-c)/(1-c*c);
hvx = h*vx;
f = (c < 0) ? -c : c;
if( f < 1.0 - 1.0E-4 )
{
... | class class_name[name] begin[{]
method[setTargetNormal, return_type[void], modifier[public], parameter[nx, ny, nz]] begin[{]
local_variable[type[double], h]
assign[member[.vx], member[.ny]]
assign[member[.vy], member[.nx]]
assign[member[.c], member[.nz]]
... | Keyword[public] Keyword[void] identifier[setTargetNormal] operator[SEP] Keyword[double] identifier[nx] , Keyword[double] identifier[ny] , Keyword[double] identifier[nz] operator[SEP] {
Keyword[double] identifier[h] , identifier[f] , identifier[c] , identifier[vx] , identifier[vy] , identifier[hvx] operato... |
public static <I extends ImageGray<I>, D extends ImageGray<D>>
GeneralFeatureIntensity<I,D> median( int radius , Class<I> imageType ) {
BlurStorageFilter<I> filter = FactoryBlurFilter.median(ImageType.single(imageType),radius);
return new WrapperMedianCornerIntensity<>(filter);
} | class class_name[name] begin[{]
method[median, return_type[type[GeneralFeatureIntensity]], modifier[public static], parameter[radius, imageType]] begin[{]
local_variable[type[BlurStorageFilter], filter]
return[ClassCreator(arguments=[MemberReference(member=filter, postfix_operators=[], prefix_o... | Keyword[public] Keyword[static] operator[<] identifier[I] Keyword[extends] identifier[ImageGray] operator[<] identifier[I] operator[>] , identifier[D] Keyword[extends] identifier[ImageGray] operator[<] identifier[D] operator[>] operator[>] identifier[GeneralFeatureIntensity] operator[<] identifier[I] , identifier[D] ... |
@HtmlSafe
public String getRenderedContent()
{
Page page = gpUtil.getPageManager().getPage(spaceKey, getPageTitle());
if (page == null) return gpUtil.getText("greenpepper.children.pagenotfound");
StringBuilder content = new StringBuilder("{greenpepper-historic:");
content.append(HistoricParameters.SPACEKEY... | class class_name[name] begin[{]
method[getRenderedContent, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[Page], page]
if[binary_operation[member[.page], ==, literal[null]]] begin[{]
return[call[gpUtil.getText, parameter[literal["greenpepper.child... | annotation[@] identifier[HtmlSafe] Keyword[public] identifier[String] identifier[getRenderedContent] operator[SEP] operator[SEP] {
identifier[Page] identifier[page] operator[=] identifier[gpUtil] operator[SEP] identifier[getPageManager] operator[SEP] operator[SEP] operator[SEP] identifier[getPage] operator[SEP] ... |
public void addReceiverAnnotationInfo(ExecutableElement method, List<AnnotationMirror> descList,
Content htmltree) {
addAnnotationInfo(0, method, descList, false, htmltree);
} | class class_name[name] begin[{]
method[addReceiverAnnotationInfo, return_type[void], modifier[public], parameter[method, descList, htmltree]] begin[{]
call[.addAnnotationInfo, parameter[literal[0], member[.method], member[.descList], literal[false], member[.htmltree]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[addReceiverAnnotationInfo] operator[SEP] identifier[ExecutableElement] identifier[method] , identifier[List] operator[<] identifier[AnnotationMirror] operator[>] identifier[descList] , identifier[Content] identifier[htmltree] operator[SEP] {
identifier[addAnnotationInfo... |
private List<EdgeTraversal> getTopologicalSortedSchedule(Map<String, Long> estimatedRootEntries, Pattern pattern) {
List<EdgeTraversal> resultingSchedule = new ArrayList<EdgeTraversal>();
Map<String, Set<String>> remainingDependencies = getDependencies(pattern);
Set<PatternNode> visitedNodes = new HashSet<P... | class class_name[name] begin[{]
method[getTopologicalSortedSchedule, return_type[type[List]], modifier[private], parameter[estimatedRootEntries, pattern]] begin[{]
local_variable[type[List], resultingSchedule]
local_variable[type[Map], remainingDependencies]
local_variable[type[Set], vi... | Keyword[private] identifier[List] operator[<] identifier[EdgeTraversal] operator[>] identifier[getTopologicalSortedSchedule] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Long] operator[>] identifier[estimatedRootEntries] , identifier[Pattern] identifier[pattern] operator[SEP] {
ide... |
public static <T> Set<T> wrapSet(final T... source) {
val list = new LinkedHashSet<T>();
addToCollection(list, source);
return list;
} | class class_name[name] begin[{]
method[wrapSet, return_type[type[Set]], modifier[public static], parameter[source]] begin[{]
local_variable[type[val], list]
call[.addToCollection, parameter[member[.list], member[.source]]]
return[member[.list]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[T] operator[>] identifier[wrapSet] operator[SEP] Keyword[final] identifier[T] operator[...] identifier[source] operator[SEP] {
identifier[val] identifier[list] operator[=] Keyword[new] identifier[LinkedHa... |
private UnconditionalValueDerefSet duplicateFact(UnconditionalValueDerefSet fact) {
UnconditionalValueDerefSet copyOfFact = createFact();
copy(fact, copyOfFact);
fact = copyOfFact;
return fact;
} | class class_name[name] begin[{]
method[duplicateFact, return_type[type[UnconditionalValueDerefSet]], modifier[private], parameter[fact]] begin[{]
local_variable[type[UnconditionalValueDerefSet], copyOfFact]
call[.copy, parameter[member[.fact], member[.copyOfFact]]]
assig... | Keyword[private] identifier[UnconditionalValueDerefSet] identifier[duplicateFact] operator[SEP] identifier[UnconditionalValueDerefSet] identifier[fact] operator[SEP] {
identifier[UnconditionalValueDerefSet] identifier[copyOfFact] operator[=] identifier[createFact] operator[SEP] operator[SEP] operator[SEP] identi... |
public DeviceAttribute[] read_attribute(final DeviceProxy deviceProxy, final String[] attributeNames)
throws DevFailed {
DeviceAttribute[] attr;
build_connection(deviceProxy);
// Read attributes on device server
AttributeValue[] attributeValues = new AttributeValue[0];
AttributeValue_3[] attributeValues_3 =... | class class_name[name] begin[{]
method[read_attribute, return_type[type[DeviceAttribute]], modifier[public], parameter[deviceProxy, attributeNames]] begin[{]
local_variable[type[DeviceAttribute], attr]
call[.build_connection, parameter[member[.deviceProxy]]]
local_variable[type[... | Keyword[public] identifier[DeviceAttribute] operator[SEP] operator[SEP] identifier[read_attribute] operator[SEP] Keyword[final] identifier[DeviceProxy] identifier[deviceProxy] , Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[attributeNames] operator[SEP] Keyword[throws] identifier[DevFailed] ... |
public void refreshSchemataCache()
{
try {
final List<GoodwillSchema> schemata = delegate.getSchemata().get();
// If Goodwill is down - keep the old cache around
if (schemata == null) {
return;
}
final Map<String,GoodwillSchema> n... | class class_name[name] begin[{]
method[refreshSchemataCache, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getSchemata, postfix_oper... | Keyword[public] Keyword[void] identifier[refreshSchemataCache] operator[SEP] operator[SEP] {
Keyword[try] {
Keyword[final] identifier[List] operator[<] identifier[GoodwillSchema] operator[>] identifier[schemata] operator[=] identifier[delegate] operator[SEP] identifier[getSchemata] operator[SEP] opera... |
@Nonnull
public static QCryptoBlockInfo qcow(@Nonnull QCryptoBlockInfoQCow qcow) {
QCryptoBlockInfo self = new QCryptoBlockInfo();
self.format = QCryptoBlockFormat.qcow;
self.qcow = qcow;
return self;
} | class class_name[name] begin[{]
method[qcow, return_type[type[QCryptoBlockInfo]], modifier[public static], parameter[qcow]] begin[{]
local_variable[type[QCryptoBlockInfo], self]
assign[member[self.format], member[QCryptoBlockFormat.qcow]]
assign[member[self.qcow], member... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[QCryptoBlockInfo] identifier[qcow] operator[SEP] annotation[@] identifier[Nonnull] identifier[QCryptoBlockInfoQCow] identifier[qcow] operator[SEP] {
identifier[QCryptoBlockInfo] identifier[self] operator[=] Keyword[new] identifier[QCryp... |
public void addRemoveProduct(String source, String name, String value, boolean regex, Confidence confidence) {
removeProduct.add(new EvidenceMatcher(source, name, value, regex, confidence));
} | class class_name[name] begin[{]
method[addRemoveProduct, return_type[void], modifier[public], parameter[source, name, value, regex, confidence]] begin[{]
call[removeProduct.add, parameter[ClassCreator(arguments=[MemberReference(member=source, postfix_operators=[], prefix_operators=[], qualifier... | Keyword[public] Keyword[void] identifier[addRemoveProduct] operator[SEP] identifier[String] identifier[source] , identifier[String] identifier[name] , identifier[String] identifier[value] , Keyword[boolean] identifier[regex] , identifier[Confidence] identifier[confidence] operator[SEP] {
identifier[removePro... |
private AbstractPlanNode handleUnionLimitOperator(AbstractPlanNode root) {
// The coordinator's top limit graph fragment for a MP plan.
// If planning "order by ... limit", getNextUnionPlan()
// will have already added an order by to the coordinator frag.
// This is the only limit node i... | class class_name[name] begin[{]
method[handleUnionLimitOperator, return_type[type[AbstractPlanNode]], modifier[private], parameter[root]] begin[{]
local_variable[type[LimitPlanNode], topLimit]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=topLimit, postfix_operators=... | Keyword[private] identifier[AbstractPlanNode] identifier[handleUnionLimitOperator] operator[SEP] identifier[AbstractPlanNode] identifier[root] operator[SEP] {
identifier[LimitPlanNode] identifier[topLimit] operator[=] identifier[m_parsedUnion] operator[SEP] identifier[getLimitNodeTop] operator[SEP] operator[SEP]... |
public static int strToDate(String dateStr, String fromFormat) {
// It is OK to use UTC, we just want get the epoch days
// TODO use offset, better performance
long ts = parseToTimeMillis(dateStr, fromFormat, TimeZone.getTimeZone("UTC"));
ZoneId zoneId = ZoneId.of("UTC");
Instant instant = Instant.ofEpochMil... | class class_name[name] begin[{]
method[strToDate, return_type[type[int]], modifier[public static], parameter[dateStr, fromFormat]] begin[{]
local_variable[type[long], ts]
local_variable[type[ZoneId], zoneId]
local_variable[type[Instant], instant]
local_variable[type[ZonedDateTim... | Keyword[public] Keyword[static] Keyword[int] identifier[strToDate] operator[SEP] identifier[String] identifier[dateStr] , identifier[String] identifier[fromFormat] operator[SEP] {
Keyword[long] identifier[ts] operator[=] identifier[parseToTimeMillis] operator[SEP] identifier[dateStr] , identifier[fromFormat] ,... |
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
@SchedulerSupport(SchedulerSupport.NONE)
public final Flowable<T> cacheWithInitialCapacity(int initialCapacity) {
ObjectHelper.verifyPositive(initialCapacity, "initialCapacity");
return RxJavaPlugins.onAssembly(new FlowableCache<T... | class class_name[name] begin[{]
method[cacheWithInitialCapacity, return_type[type[Flowable]], modifier[final public], parameter[initialCapacity]] begin[{]
call[ObjectHelper.verifyPositive, parameter[member[.initialCapacity], literal["initialCapacity"]]]
return[call[RxJavaPlugins.onAssem... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[publ... |
public boolean hasDecompBoundary(int c, boolean before) {
for(;;) {
if(c<minDecompNoCP) {
return true;
}
int norm16=getNorm16(c);
if(isHangul(norm16) || isDecompYesAndZeroCC(norm16)) {
return true;
} else if(norm16>MIN_N... | class class_name[name] begin[{]
method[hasDecompBoundary, return_type[type[boolean]], modifier[public], parameter[c, before]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=c, postfix_operators=[], prefix_operators... | Keyword[public] Keyword[boolean] identifier[hasDecompBoundary] operator[SEP] Keyword[int] identifier[c] , Keyword[boolean] identifier[before] operator[SEP] {
Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[c] operator[<] identifier[minDecomp... |
public synchronized Throwable initCause(Throwable cause) {
if ((this.containedException == null) && (cause != null)) {
throw new IllegalStateException(XMLMessages.createXMLMessage(XMLErrorResources.ER_CANNOT_OVERWRITE_CAUSE, null)); //"Can't overwrite cause");
}
if (cause == this) ... | class class_name[name] begin[{]
method[initCause, return_type[type[Throwable]], modifier[synchronized public], parameter[cause]] begin[{]
if[binary_operation[binary_operation[THIS[member[None.containedException]], ==, literal[null]], &&, binary_operation[member[.cause], !=, literal[null]]]] beg... | Keyword[public] Keyword[synchronized] identifier[Throwable] identifier[initCause] operator[SEP] identifier[Throwable] identifier[cause] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[containedException] operator[==] Other[null] operator[SEP] operator[&&] operator[S... |
public final byte[] doFinal() throws IllegalStateException {
chooseFirstProvider();
if (initialized == false) {
throw new IllegalStateException("MAC not initialized");
}
byte[] mac = spi.engineDoFinal();
spi.engineReset();
return mac;
} | class class_name[name] begin[{]
method[doFinal, return_type[type[byte]], modifier[final public], parameter[]] begin[{]
call[.chooseFirstProvider, parameter[]]
if[binary_operation[member[.initialized], ==, literal[false]]] begin[{]
ThrowStatement(expression=ClassCreat... | Keyword[public] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[doFinal] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] {
identifier[chooseFirstProvider] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[initialized] operator[==] lit... |
public static ns_ssl_certkey[] get(nitro_service client) throws Exception
{
ns_ssl_certkey resource = new ns_ssl_certkey();
resource.validate("get");
return (ns_ssl_certkey[]) resource.get_resources(client);
} | class class_name[name] begin[{]
method[get, return_type[type[ns_ssl_certkey]], modifier[public static], parameter[client]] begin[{]
local_variable[type[ns_ssl_certkey], resource]
call[resource.validate, parameter[literal["get"]]]
return[Cast(expression=MethodInvocation(arguments... | Keyword[public] Keyword[static] identifier[ns_ssl_certkey] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[ns_ssl_certkey] identifier[resource] operator[=] Keyword[new] identifier[ns_ssl_certke... |
@Override
public void monitor() {
Runtime runtime = Runtime.getRuntime();
double allocatedMemory = runtime.totalMemory() / (double) 1024;
double freeMemory = runtime.freeMemory() / (double) 1024;
double totalFreeMemory = freeMemory + (maxMemory - allocatedMemory);
calculat... | class class_name[name] begin[{]
method[monitor, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Runtime], runtime]
local_variable[type[double], allocatedMemory]
local_variable[type[double], freeMemory]
local_variable[type[double], totalFreeMemory]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[monitor] operator[SEP] operator[SEP] {
identifier[Runtime] identifier[runtime] operator[=] identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[allocatedMemory] ope... |
public List<DesktopWindowInfo> getDesktopWindowInfoList() {
Response response = executeMessage(DesktopWindowManagerMessage.LIST_WINDOWS, null);
DesktopWindowList.Builder builder = DesktopWindowList.newBuilder();
buildPayload(response, builder);
DesktopWindowList list = builder.build();
return list.... | class class_name[name] begin[{]
method[getDesktopWindowInfoList, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[Response], response]
local_variable[type[DesktopWindowList], builder]
call[.buildPayload, parameter[member[.response], member[.bu... | Keyword[public] identifier[List] operator[<] identifier[DesktopWindowInfo] operator[>] identifier[getDesktopWindowInfoList] operator[SEP] operator[SEP] {
identifier[Response] identifier[response] operator[=] identifier[executeMessage] operator[SEP] identifier[DesktopWindowManagerMessage] operator[SEP] identifier... |
protected void doLoadNextResource() {
// get the next resource from the collector
CmsResource resource = getNextResource();
if (resource == null) {
m_resourceName = null;
m_resource = null;
return;
}
// set the resource name
m_resourc... | class class_name[name] begin[{]
method[doLoadNextResource, return_type[void], modifier[protected], parameter[]] begin[{]
local_variable[type[CmsResource], resource]
if[binary_operation[member[.resource], ==, literal[null]]] begin[{]
assign[member[.m_resourceName]... | Keyword[protected] Keyword[void] identifier[doLoadNextResource] operator[SEP] operator[SEP] {
identifier[CmsResource] identifier[resource] operator[=] identifier[getNextResource] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[resource] operator[==] Other[null] operator[SEP] {
... |
private void resolveAliases(AttributeTable at) throws MalformedAliasException, UnresolvedAliasException, NoSuchAttributeException
{
// Cache the current (parent) Attribute table. This value is
// null if this method is called from parse();
AttributeTable cacheAT = currentAT;
try... | class class_name[name] begin[{]
method[resolveAliases, return_type[void], modifier[private], parameter[at]] begin[{]
local_variable[type[AttributeTable], cacheAT]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=currentAT, postfix_operators=[], pr... | Keyword[private] Keyword[void] identifier[resolveAliases] operator[SEP] identifier[AttributeTable] identifier[at] operator[SEP] Keyword[throws] identifier[MalformedAliasException] , identifier[UnresolvedAliasException] , identifier[NoSuchAttributeException] {
identifier[AttributeTable] identifier[cacheAT] oper... |
public OvhValidationResult payment_thod_POST(Long billingContactId, OvhCallbackUrl callbackUrl, Boolean _default, String description, Long orderId, String paymentType, Boolean register) throws IOException {
String qPath = "/me/payment/method";
StringBuilder sb = path(qPath);
HashMap<String, Object>o = new HashMap... | class class_name[name] begin[{]
method[payment_thod_POST, return_type[type[OvhValidationResult]], modifier[public], parameter[billingContactId, callbackUrl, _default, description, orderId, paymentType, register]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], s... | Keyword[public] identifier[OvhValidationResult] identifier[payment_thod_POST] operator[SEP] identifier[Long] identifier[billingContactId] , identifier[OvhCallbackUrl] identifier[callbackUrl] , identifier[Boolean] identifier[_default] , identifier[String] identifier[description] , identifier[Long] identifier[orderId... |
public void process( DMatrixRMaj F , List<AssociatedPair> observations ,
int width , int height ) {
int centerX = width/2;
int centerY = height/2;
MultiViewOps.extractEpipoles(F, epipole1, epipole2);
checkEpipoleInside(width, height);
// compute the transform H which will send epipole2 to infinity
... | class class_name[name] begin[{]
method[process, return_type[void], modifier[public], parameter[F, observations, width, height]] begin[{]
local_variable[type[int], centerX]
local_variable[type[int], centerY]
call[MultiViewOps.extractEpipoles, parameter[member[.F], member[.epipole... | Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[DMatrixRMaj] identifier[F] , identifier[List] operator[<] identifier[AssociatedPair] operator[>] identifier[observations] , Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] {
Keyword[int] identifier[center... |
static <S,T> TypeAdapter<S,T> createAdapter(Class<? extends S> sourceType, Class<? extends T> targetType) {
return doCreateAdapter(targetType,AdapterMethodValidator.newInstance(targetType, sourceType));
} | class class_name[name] begin[{]
method[createAdapter, return_type[type[TypeAdapter]], modifier[static], parameter[sourceType, targetType]] begin[{]
return[call[.doCreateAdapter, parameter[member[.targetType], call[AdapterMethodValidator.newInstance, parameter[member[.targetType], member[.sourceType]]]]... | Keyword[static] operator[<] identifier[S] , identifier[T] operator[>] identifier[TypeAdapter] operator[<] identifier[S] , identifier[T] operator[>] identifier[createAdapter] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[S] operator[>] identifier[sourceType] , identifier[Class] o... |
public AbstractBooleanList partFromTo(int from, int to) {
if (size==0) return new BooleanArrayList(0);
checkRangeFromTo(from, to, size);
boolean[] part = new boolean[to-from+1];
System.arraycopy(elements, from, part, 0, to-from+1);
return new BooleanArrayList(part);
} | class class_name[name] begin[{]
method[partFromTo, return_type[type[AbstractBooleanList]], modifier[public], parameter[from, to]] begin[{]
if[binary_operation[member[.size], ==, literal[0]]] begin[{]
return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=Non... | Keyword[public] identifier[AbstractBooleanList] identifier[partFromTo] operator[SEP] Keyword[int] identifier[from] , Keyword[int] identifier[to] operator[SEP] {
Keyword[if] operator[SEP] identifier[size] operator[==] Other[0] operator[SEP] Keyword[return] Keyword[new] identifier[BooleanArrayList] operator[SEP] ... |
public String getDefinition(long srsId) {
String definition = connection.querySingleTypedResult("SELECT "
+ COLUMN_NAME + " FROM " + SpatialReferenceSystem.TABLE_NAME
+ " WHERE " + SpatialReferenceSystem.COLUMN_SRS_ID + " = ?",
new String[] { String.valueOf(srsId) });
return definition;
} | class class_name[name] begin[{]
method[getDefinition, return_type[type[String]], modifier[public], parameter[srsId]] begin[{]
local_variable[type[String], definition]
return[member[.definition]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[getDefinition] operator[SEP] Keyword[long] identifier[srsId] operator[SEP] {
identifier[String] identifier[definition] operator[=] identifier[connection] operator[SEP] identifier[querySingleTypedResult] operator[SEP] literal[String] operator[+] identifier[COLUMN_NAME... |
public static <T extends ByteCodeElement> ElementMatcher.Junction<T> isAccessibleTo(Class<?> type) {
return isAccessibleTo(TypeDescription.ForLoadedType.of(type));
} | class class_name[name] begin[{]
method[isAccessibleTo, return_type[type[ElementMatcher]], modifier[public static], parameter[type]] begin[{]
return[call[.isAccessibleTo, parameter[call[TypeDescription.ForLoadedType.of, parameter[member[.type]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ByteCodeElement] operator[>] identifier[ElementMatcher] operator[SEP] identifier[Junction] operator[<] identifier[T] operator[>] identifier[isAccessibleTo] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier... |
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.FONT_FIDELITY__STP_FNT_EX:
setStpFntEx((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
} | class class_name[name] begin[{]
method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=FONT_FIDELITY__STP_FNT_EX, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[AfplibPackage] oper... |
@Override
public void writeRow(List<Column> columns, Object[] row) throws IOException {
if (row == null) {
return;
}
Writer writer = getWriter();
List<String> valuesToPrint = DataWriterUtil.getRowValues(columns, row, getLocale(), columnFormatters);
for (int curren... | class class_name[name] begin[{]
method[writeRow, return_type[void], modifier[public], parameter[columns, row]] begin[{]
if[binary_operation[member[.row], ==, literal[null]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[Writer], writer]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeRow] operator[SEP] identifier[List] operator[<] identifier[Column] operator[>] identifier[columns] , identifier[Object] operator[SEP] operator[SEP] identifier[row] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if]... |
@Override
public FileLock lock(long position, long size, boolean shared) throws IOException
{
return new FileLockImpl(this, position, size, shared);
} | class class_name[name] begin[{]
method[lock, return_type[type[FileLock]], modifier[public], parameter[position, size, shared]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=position, postfix_operators=[], pr... | annotation[@] identifier[Override] Keyword[public] identifier[FileLock] identifier[lock] operator[SEP] Keyword[long] identifier[position] , Keyword[long] identifier[size] , Keyword[boolean] identifier[shared] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new] identifier[FileLo... |
public static String serviceName(Class<?> serviceInterface) {
// Service name
Service serviceAnnotation = serviceInterface.getAnnotation(Service.class);
if (serviceAnnotation == null) {
throw new IllegalArgumentException(
String.format("Not a service interface: %s", serviceInterface));
}... | class class_name[name] begin[{]
method[serviceName, return_type[type[String]], modifier[public static], parameter[serviceInterface]] begin[{]
local_variable[type[Service], serviceAnnotation]
if[binary_operation[member[.serviceAnnotation], ==, literal[null]]] begin[{]
ThrowSt... | Keyword[public] Keyword[static] identifier[String] identifier[serviceName] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[serviceInterface] operator[SEP] {
identifier[Service] identifier[serviceAnnotation] operator[=] identifier[serviceInterface] operator[SEP] identifier[getAnnota... |
public static String getPDBCharacter(boolean web, char c1, char c2, boolean similar, char c) {
String s = String.valueOf(c);
return getPDBString(web, c1, c2, similar, s, s, s, s);
} | class class_name[name] begin[{]
method[getPDBCharacter, return_type[type[String]], modifier[public static], parameter[web, c1, c2, similar, c]] begin[{]
local_variable[type[String], s]
return[call[.getPDBString, parameter[member[.web], member[.c1], member[.c2], member[.similar], member[.s], mem... | Keyword[public] Keyword[static] identifier[String] identifier[getPDBCharacter] operator[SEP] Keyword[boolean] identifier[web] , Keyword[char] identifier[c1] , Keyword[char] identifier[c2] , Keyword[boolean] identifier[similar] , Keyword[char] identifier[c] operator[SEP] {
identifier[String] identifier[s] ope... |
@Override
public ByteArrayInputStream compare(ImagePlotShape shape, ImageEncoding imageEncoding, String jsonModels)
throws JsonProcessingException, ApiException {
return compare(null, shape, imageEncoding, jsonModels);
} | class class_name[name] begin[{]
method[compare, return_type[type[ByteArrayInputStream]], modifier[public], parameter[shape, imageEncoding, jsonModels]] begin[{]
return[call[.compare, parameter[literal[null], member[.shape], member[.imageEncoding], member[.jsonModels]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[ByteArrayInputStream] identifier[compare] operator[SEP] identifier[ImagePlotShape] identifier[shape] , identifier[ImageEncoding] identifier[imageEncoding] , identifier[String] identifier[jsonModels] operator[SEP] Keyword[throws] identifier[JsonProcessingEx... |
private GrammaticalStructure tagDependencies(Tree tree, boolean makeCopulaVerbHead) {
SemanticHeadFinder headFinder = new SemanticHeadFinder(!makeCopulaVerbHead); // keep copula verbs as head
// string -> true return all tokens including punctuations.
GrammaticalStructure gs = new EnglishGrammat... | class class_name[name] begin[{]
method[tagDependencies, return_type[type[GrammaticalStructure]], modifier[private], parameter[tree, makeCopulaVerbHead]] begin[{]
local_variable[type[SemanticHeadFinder], headFinder]
local_variable[type[GrammaticalStructure], gs]
return[member[.gs]]
e... | Keyword[private] identifier[GrammaticalStructure] identifier[tagDependencies] operator[SEP] identifier[Tree] identifier[tree] , Keyword[boolean] identifier[makeCopulaVerbHead] operator[SEP] {
identifier[SemanticHeadFinder] identifier[headFinder] operator[=] Keyword[new] identifier[SemanticHeadFinder] operator[S... |
public void selectValue(String expectedValue) {
String[] values = checkSelectValue(expectedValue, 0, 0);
String reason = NO_ELEMENT_FOUND;
if (values == null && getElement().is().present()) {
reason = ELEMENT_NOT_SELECT;
}
assertNotNull(reason, values);
assert... | class class_name[name] begin[{]
method[selectValue, return_type[void], modifier[public], parameter[expectedValue]] begin[{]
local_variable[type[String], values]
local_variable[type[String], reason]
if[binary_operation[binary_operation[member[.values], ==, literal[null]], &&, cal... | Keyword[public] Keyword[void] identifier[selectValue] operator[SEP] identifier[String] identifier[expectedValue] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[values] operator[=] identifier[checkSelectValue] operator[SEP] identifier[expectedValue] , Other[0] , Other[0] operator[SEP]... |
@SequentialOnly
public BiIterator<K, V> iterator() {
final ObjIterator<Entry<K, V>> iter = s.iterator();
final BooleanSupplier hasNext = new BooleanSupplier() {
@Override
public boolean getAsBoolean() {
return iter.hasNext();
}
};... | class class_name[name] begin[{]
method[iterator, return_type[type[BiIterator]], modifier[public], parameter[]] begin[{]
local_variable[type[ObjIterator], iter]
local_variable[type[BooleanSupplier], hasNext]
local_variable[type[Consumer], output]
return[call[BiIterator.generate, ... | annotation[@] identifier[SequentialOnly] Keyword[public] identifier[BiIterator] operator[<] identifier[K] , identifier[V] operator[>] identifier[iterator] operator[SEP] operator[SEP] {
Keyword[final] identifier[ObjIterator] operator[<] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] ope... |
@Override
public void serializeInstance(SerializationStreamWriter streamWriter, OWLSubClassOfAxiomImpl instance) throws SerializationException {
serialize(streamWriter, instance);
} | class class_name[name] begin[{]
method[serializeInstance, return_type[void], modifier[public], parameter[streamWriter, instance]] begin[{]
call[.serialize, parameter[member[.streamWriter], member[.instance]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[serializeInstance] operator[SEP] identifier[SerializationStreamWriter] identifier[streamWriter] , identifier[OWLSubClassOfAxiomImpl] identifier[instance] operator[SEP] Keyword[throws] identifier[SerializationException] {
identifier[seri... |
public boolean isBlockInvoke( DynamicFunctionSymbol dfs )
{
return dfs.getDisplayName().equals( BlockClass.INVOKE_METHOD_NAME ) && _context.compilingBlock();
} | class class_name[name] begin[{]
method[isBlockInvoke, return_type[type[boolean]], modifier[public], parameter[dfs]] begin[{]
return[binary_operation[call[dfs.getDisplayName, parameter[]], &&, call[_context.compilingBlock, parameter[]]]]
end[}]
END[}] | Keyword[public] Keyword[boolean] identifier[isBlockInvoke] operator[SEP] identifier[DynamicFunctionSymbol] identifier[dfs] operator[SEP] {
Keyword[return] identifier[dfs] operator[SEP] identifier[getDisplayName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[BlockClass] ope... |
public RouteResponse status(final Map<Integer, String> status) {
if (status != null) {
if (this.status == null) {
this.status = new LinkedHashMap<>();
this.status.putAll(status);
}
}
return this;
} | class class_name[name] begin[{]
method[status, return_type[type[RouteResponse]], modifier[public], parameter[status]] begin[{]
if[binary_operation[member[.status], !=, literal[null]]] begin[{]
if[binary_operation[THIS[member[None.status]], ==, literal[null]]] begin[{]
... | Keyword[public] identifier[RouteResponse] identifier[status] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[Integer] , identifier[String] operator[>] identifier[status] operator[SEP] {
Keyword[if] operator[SEP] identifier[status] operator[!=] Other[null] operator[SEP] {
Keyword[i... |
public static Filesystem fileExists(final File resource)
{
return new Filesystem(resource, new FileFilter()
{
@Override
public boolean accept(File file)
{
return file.exists() && file.isFile();
}
@Override
public String toString()
... | class class_name[name] begin[{]
method[fileExists, return_type[type[Filesystem]], modifier[public static], parameter[resource]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=resource, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[], body=... | Keyword[public] Keyword[static] identifier[Filesystem] identifier[fileExists] operator[SEP] Keyword[final] identifier[File] identifier[resource] operator[SEP] {
Keyword[return] Keyword[new] identifier[Filesystem] operator[SEP] identifier[resource] , Keyword[new] identifier[FileFilter] operator[SEP] operator[SEP... |
static File getOutputDirectory(MavenProject rootModule) {
String directoryName = rootModule.getBuild().getDirectory() + "/" + OUTPUT_DIRECTORY;
File directory = new File(directoryName);
directory.mkdirs();
return directory;
} | class class_name[name] begin[{]
method[getOutputDirectory, return_type[type[File]], modifier[static], parameter[rootModule]] begin[{]
local_variable[type[String], directoryName]
local_variable[type[File], directory]
call[directory.mkdirs, parameter[]]
return[member[.dire... | Keyword[static] identifier[File] identifier[getOutputDirectory] operator[SEP] identifier[MavenProject] identifier[rootModule] operator[SEP] {
identifier[String] identifier[directoryName] operator[=] identifier[rootModule] operator[SEP] identifier[getBuild] operator[SEP] operator[SEP] operator[SEP] identifier[get... |
@Inject
void setExecutionService(@Named(TaskExecutors.IO) @Nullable ExecutorService executionService) {
if (executionService != null) {
this.executionService = executionService;
}
} | class class_name[name] begin[{]
method[setExecutionService, return_type[void], modifier[default], parameter[executionService]] begin[{]
if[binary_operation[member[.executionService], !=, literal[null]]] begin[{]
assign[THIS[member[None.executionService]], member[.executi... | annotation[@] identifier[Inject] Keyword[void] identifier[setExecutionService] operator[SEP] annotation[@] identifier[Named] operator[SEP] identifier[TaskExecutors] operator[SEP] identifier[IO] operator[SEP] annotation[@] identifier[Nullable] identifier[ExecutorService] identifier[executionService] operator[SEP] {
... |
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfRoom() {
if (_GenericApplicationPropertyOfRoom == null) {
_GenericApplicationPropertyOfRoom = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfRoom;
} | class class_name[name] begin[{]
method[get_GenericApplicationPropertyOfRoom, return_type[type[List]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[._GenericApplicationPropertyOfRoom], ==, literal[null]]] begin[{]
assign[member[._GenericApplicationPr... | Keyword[public] identifier[List] operator[<] identifier[JAXBElement] operator[<] identifier[Object] operator[>] operator[>] identifier[get_GenericApplicationPropertyOfRoom] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[_GenericApplicationPropertyOfRoom] operator[==] Other[null] operator[SEP]... |
@CheckReturnValue
public final InviteAction setMaxAge(final Integer maxAge)
{
if (maxAge != null)
Checks.notNegative(maxAge, "maxAge");
this.maxAge = maxAge;
return this;
} | class class_name[name] begin[{]
method[setMaxAge, return_type[type[InviteAction]], modifier[final public], parameter[maxAge]] begin[{]
if[binary_operation[member[.maxAge], !=, literal[null]]] begin[{]
call[Checks.notNegative, parameter[member[.maxAge], literal["maxAge"]]]
el... | annotation[@] identifier[CheckReturnValue] Keyword[public] Keyword[final] identifier[InviteAction] identifier[setMaxAge] operator[SEP] Keyword[final] identifier[Integer] identifier[maxAge] operator[SEP] {
Keyword[if] operator[SEP] identifier[maxAge] operator[!=] Other[null] operator[SEP] identifier[Checks] opera... |
public boolean search(final String dn,
final String filter,
final int scope) throws NamingException {
if (debug()) {
debug("Ldif: About to open " + dn);
}
inp = null;
try {
this.in = new FileInputStream(dn);
} catch (final Throwable t) {
... | class class_name[name] begin[{]
method[search, return_type[type[boolean]], modifier[public], parameter[dn, filter, scope]] begin[{]
if[call[.debug, parameter[]]] begin[{]
call[.debug, parameter[binary_operation[literal["Ldif: About to open "], +, member[.dn]]]]
e... | Keyword[public] Keyword[boolean] identifier[search] operator[SEP] Keyword[final] identifier[String] identifier[dn] , Keyword[final] identifier[String] identifier[filter] , Keyword[final] Keyword[int] identifier[scope] operator[SEP] Keyword[throws] identifier[NamingException] {
Keyword[if] operator[SEP] identif... |
private void writeObject(ObjectOutputStream out) throws IOException {
if (!_peer.equals(this) && !(_peer instanceof Serializable)) {
throw new IOException("Bean context child delegate does not support serialization!!!");
}
out.defaultWriteObject();
} | class class_name[name] begin[{]
method[writeObject, return_type[void], modifier[private], parameter[out]] begin[{]
if[binary_operation[call[_peer.equals, parameter[THIS[]]], &&, binary_operation[member[._peer], instanceof, type[Serializable]]]] begin[{]
ThrowStatement(expression=Cla... | Keyword[private] Keyword[void] identifier[writeObject] operator[SEP] identifier[ObjectOutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] operator[!] identifier[_peer] operator[SEP] identifier[equals] operator[SEP] Keyword[this] operator[SEP] operator[&... |
public String getRemoteHost() {
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
// 321485
String host = null;
if (this._request != null) {
host = this._request.getRemoteHost();
}
if (TraceComponent.isAnyTra... | class class_name[name] begin[{]
method[getRemoteHost, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[member[WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE]] begin[{]
call[.checkRequestObjectInUse, parameter[]]
else begin[{]
None
end... | Keyword[public] identifier[String] identifier[getRemoteHost] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[WCCustomProperties] operator[SEP] identifier[CHECK_REQUEST_OBJECT_IN_USE] operator[SEP] {
identifier[checkRequestObjectInUse] operator[SEP] operator[SEP] operator[SEP]
... |
public Object printHelpMessage(CommandLine commandLine, PrintStream stream) {
commandLine.usage(stream);
return null;
} | class class_name[name] begin[{]
method[printHelpMessage, return_type[type[Object]], modifier[public], parameter[commandLine, stream]] begin[{]
call[commandLine.usage, parameter[member[.stream]]]
return[literal[null]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[printHelpMessage] operator[SEP] identifier[CommandLine] identifier[commandLine] , identifier[PrintStream] identifier[stream] operator[SEP] {
identifier[commandLine] operator[SEP] identifier[usage] operator[SEP] identifier[stream] operator[SEP] operator[SEP] Keyword[... |
public void setReference(final Reference reference) {
this.reference = reference;
if (reference instanceof PlayerReference) {
setPlayer((PlayerReference) reference);
}
} | class class_name[name] begin[{]
method[setReference, return_type[void], modifier[public], parameter[reference]] begin[{]
assign[THIS[member[None.reference]], member[.reference]]
if[binary_operation[member[.reference], instanceof, type[PlayerReference]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setReference] operator[SEP] Keyword[final] identifier[Reference] identifier[reference] operator[SEP] {
Keyword[this] operator[SEP] identifier[reference] operator[=] identifier[reference] operator[SEP] Keyword[if] operator[SEP] identifier[reference] Keyword[instanceof] ide... |
public static EnvironmentRule newInstance(String profile) {
EnvironmentRule environmentRule = new EnvironmentRule();
environmentRule.setProfile(profile);
return environmentRule;
} | class class_name[name] begin[{]
method[newInstance, return_type[type[EnvironmentRule]], modifier[public static], parameter[profile]] begin[{]
local_variable[type[EnvironmentRule], environmentRule]
call[environmentRule.setProfile, parameter[member[.profile]]]
return[member[.envir... | Keyword[public] Keyword[static] identifier[EnvironmentRule] identifier[newInstance] operator[SEP] identifier[String] identifier[profile] operator[SEP] {
identifier[EnvironmentRule] identifier[environmentRule] operator[=] Keyword[new] identifier[EnvironmentRule] operator[SEP] operator[SEP] operator[SEP] identifie... |
public void pushCommandLine(String commandLine) {
// Add new history entry to the end.
history.add(commandLine);
// Maintain max history size.
if (history.size() > maxHistory) {
history.remove(0);
}
// Reset the iteration index.
resetCurrentIndex();
... | class class_name[name] begin[{]
method[pushCommandLine, return_type[void], modifier[public], parameter[commandLine]] begin[{]
call[history.add, parameter[member[.commandLine]]]
if[binary_operation[call[history.size, parameter[]], >, member[.maxHistory]]] begin[{]
... | Keyword[public] Keyword[void] identifier[pushCommandLine] operator[SEP] identifier[String] identifier[commandLine] operator[SEP] {
identifier[history] operator[SEP] identifier[add] operator[SEP] identifier[commandLine] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[history] operator[SEP] identi... |
private static Type findType(String type, String value) throws IllegalArgumentException {
if (type == null || type.length() == 0)
throw new IllegalArgumentException("no SEPA type type given");
if (value == null || value.length() == 0)
throw new IllegalArgumentException("no SEPA ... | class class_name[name] begin[{]
method[findType, return_type[type[Type]], modifier[private static], parameter[type, value]] begin[{]
if[binary_operation[binary_operation[member[.type], ==, literal[null]], ||, binary_operation[call[type.length, parameter[]], ==, literal[0]]]] begin[{]
ThrowState... | Keyword[private] Keyword[static] identifier[Type] identifier[findType] operator[SEP] identifier[String] identifier[type] , identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[||] id... |
public Color getColorForBond(IBond bond, RendererModel model) {
if (this.overrideColor != null) {
return overrideColor;
}
Color color = model.getParameter(ColorHash.class).getValue().get(bond);
if (color == null) {
return model.getParameter(DefaultBondColor.class... | class class_name[name] begin[{]
method[getColorForBond, return_type[type[Color]], modifier[public], parameter[bond, model]] begin[{]
if[binary_operation[THIS[member[None.overrideColor]], !=, literal[null]]] begin[{]
return[member[.overrideColor]]
else begin[{]
None
e... | Keyword[public] identifier[Color] identifier[getColorForBond] operator[SEP] identifier[IBond] identifier[bond] , identifier[RendererModel] identifier[model] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[overrideColor] operator[!=] Other[null] operator[SEP] {
Keyword... |
public void overlay(DepTreeNode node) {
if (node.defineDependencies != null || node.requireDependencies != null) {
setDependencies(node.defineDependencies, node.requireDependencies, node.dependentFeatures, node.lastModified(), node.lastModifiedDep());
}
node.uri = uri;
if (node.getChildren() == null) {
... | class class_name[name] begin[{]
method[overlay, return_type[void], modifier[public], parameter[node]] begin[{]
if[binary_operation[binary_operation[member[node.defineDependencies], !=, literal[null]], ||, binary_operation[member[node.requireDependencies], !=, literal[null]]]] begin[{]
... | Keyword[public] Keyword[void] identifier[overlay] operator[SEP] identifier[DepTreeNode] identifier[node] operator[SEP] {
Keyword[if] operator[SEP] identifier[node] operator[SEP] identifier[defineDependencies] operator[!=] Other[null] operator[||] identifier[node] operator[SEP] identifier[requireDependencies] ope... |
public final Set<Variable> vars() {
if (vars == null) {
ImmutableSet.Builder<Variable> builder = ImmutableSet.<Variable>builder().add(start());
Variable end = end();
if (end != null) builder.add(end);
builder.addAll(otherVars());
vars = builder.build()... | class class_name[name] begin[{]
method[vars, return_type[type[Set]], modifier[final public], parameter[]] begin[{]
if[binary_operation[member[.vars], ==, literal[null]]] begin[{]
local_variable[type[ImmutableSet], builder]
local_variable[type[Variable], end]
... | Keyword[public] Keyword[final] identifier[Set] operator[<] identifier[Variable] operator[>] identifier[vars] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[vars] operator[==] Other[null] operator[SEP] {
identifier[ImmutableSet] operator[SEP] identifier[Builder] operator[<] identifi... |
@Override
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern,
int[] types)
throws SQLException {
String sql =
"SELECT ' ' TYPE_CAT, NULL TYPE_SCHEM, ' ' TYPE_NAME, ' ' CLASS_NAME, 0 DATA_TYPE, ' ' REMARKS, 0 BASE_TYPE"
+ " FROM DUAL WHERE 1=0";
... | class class_name[name] begin[{]
method[getUDTs, return_type[type[ResultSet]], modifier[public], parameter[catalog, schemaPattern, typeNamePattern, types]] begin[{]
local_variable[type[String], sql]
return[call[.executeQuery, parameter[member[.sql]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[ResultSet] identifier[getUDTs] operator[SEP] identifier[String] identifier[catalog] , identifier[String] identifier[schemaPattern] , identifier[String] identifier[typeNamePattern] , Keyword[int] operator[SEP] operator[SEP] identifier[types] operator[SEP] ... |
public static IdentifierHandler<? extends Identifier> getHandlerFor(Element element) {
if (sIdentifierHandlers == null) {
initializeDefaultHandlers();
}
String nodeName = element.getNodeName();
if (nodeName.equalsIgnoreCase(IfmapStrings.ACCESS_REQUEST_EL_NAME)) {
return sIdentifierHandlers.get(AccessRe... | class class_name[name] begin[{]
method[getHandlerFor, return_type[type[IdentifierHandler]], modifier[public static], parameter[element]] begin[{]
if[binary_operation[member[.sIdentifierHandlers], ==, literal[null]]] begin[{]
call[.initializeDefaultHandlers, parameter[]]
... | Keyword[public] Keyword[static] identifier[IdentifierHandler] operator[<] operator[?] Keyword[extends] identifier[Identifier] operator[>] identifier[getHandlerFor] operator[SEP] identifier[Element] identifier[element] operator[SEP] {
Keyword[if] operator[SEP] identifier[sIdentifierHandlers] operator[==] Other[nu... |
public static RandomVariable getSwapAnnuity(TimeDiscretization tenor, DiscountCurveInterface discountCurve) {
return getSwapAnnuity(new RegularSchedule(tenor), discountCurve);
} | class class_name[name] begin[{]
method[getSwapAnnuity, return_type[type[RandomVariable]], modifier[public static], parameter[tenor, discountCurve]] begin[{]
return[call[.getSwapAnnuity, parameter[ClassCreator(arguments=[MemberReference(member=tenor, postfix_operators=[], prefix_operators=[], qualifier=... | Keyword[public] Keyword[static] identifier[RandomVariable] identifier[getSwapAnnuity] operator[SEP] identifier[TimeDiscretization] identifier[tenor] , identifier[DiscountCurveInterface] identifier[discountCurve] operator[SEP] {
Keyword[return] identifier[getSwapAnnuity] operator[SEP] Keyword[new] identifier[Reg... |
public static int cublasScasum(
cublasHandle handle,
int n,
Pointer x,
int incx,
Pointer result)/** host or device pointer */
{
return checkResult(cublasScasumNative(handle, n, x, incx, result));
} | class class_name[name] begin[{]
method[cublasScasum, return_type[type[int]], modifier[public static], parameter[handle, n, x, incx, result]] begin[{]
return[call[.checkResult, parameter[call[.cublasScasumNative, parameter[member[.handle], member[.n], member[.x], member[.incx], member[.result]]]]]]
... | Keyword[public] Keyword[static] Keyword[int] identifier[cublasScasum] operator[SEP] identifier[cublasHandle] identifier[handle] , Keyword[int] identifier[n] , identifier[Pointer] identifier[x] , Keyword[int] identifier[incx] , identifier[Pointer] identifier[result] operator[SEP] {
Keyword[return] identifier[... |
public BacnetDevice getDevice(long gatewayid, long instanceNumber) {
InternalRequest internalRequest =
createRequest(new GenericAccountRequest(), HttpMethodName.GET, BACNET, DEVICE, GATEWAY,
String.valueOf(gatewayid), DEVICE, String.valueOf(instanceNumber));
retur... | class class_name[name] begin[{]
method[getDevice, return_type[type[BacnetDevice]], modifier[public], parameter[gatewayid, instanceNumber]] begin[{]
local_variable[type[InternalRequest], internalRequest]
return[THIS[call[None.invokeHttpClient, parameter[member[.internalRequest], ClassReference(p... | Keyword[public] identifier[BacnetDevice] identifier[getDevice] operator[SEP] Keyword[long] identifier[gatewayid] , Keyword[long] identifier[instanceNumber] operator[SEP] {
identifier[InternalRequest] identifier[internalRequest] operator[=] identifier[createRequest] operator[SEP] Keyword[new] identifier[GenericA... |
public static Map<String, String> parseQueryString(String s) {
Map<String, String> ht = new HashMap<String, String>();
StringTokenizer st = new StringTokenizer(s, "&");
while (st.hasMoreTokens()) {
String pair = st.nextToken();
int pos = pair.indexOf('=');
if ... | class class_name[name] begin[{]
method[parseQueryString, return_type[type[Map]], modifier[public static], parameter[s]] begin[{]
local_variable[type[Map], ht]
local_variable[type[StringTokenizer], st]
while[call[st.hasMoreTokens, parameter[]]] begin[{]
local_variable... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parseQueryString] operator[SEP] identifier[String] identifier[s] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[ht] operator[=] ... |
public void close () {
Connection[] connections = this.connections;
for (int i = 0; i < connections.length; i++)
connections[i].removeListener(invokeListener);
synchronized (instancesLock) {
ArrayList<ObjectSpace> temp = new ArrayList(Arrays.asList(instances));
temp.remove(this);
instances = temp.toA... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Connection], connections]
ForStatement(body=StatementExpression(expression=MemberReference(member=connections, postfix_operators=[], prefix_operators=[], qualifier=, sele... | Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
identifier[Connection] operator[SEP] operator[SEP] identifier[connections] operator[=] Keyword[this] operator[SEP] identifier[connections] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operato... |
public String getHyperlink()
{
String strMailTo = this.getString();
if (strMailTo != null) if (strMailTo.length() > 0)
strMailTo = DBParams.FAX + ":" + strMailTo;
return strMailTo;
} | class class_name[name] begin[{]
method[getHyperlink, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[String], strMailTo]
if[binary_operation[member[.strMailTo], !=, literal[null]]] begin[{]
if[binary_operation[call[strMailTo.length, par... | Keyword[public] identifier[String] identifier[getHyperlink] operator[SEP] operator[SEP] {
identifier[String] identifier[strMailTo] operator[=] Keyword[this] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[strMailTo] operator[!=] Other[null] opera... |
public <T> void vaultClass(Class<T> vaultClass)
{
if (! Vault.class.isAssignableFrom(vaultClass)) {
throw new IllegalStateException();
}
Set<?> bogusMethods;
if (Modifier.isAbstract(vaultClass.getModifiers())
&& (bogusMethods = getBogusMethods(vaultClass)).size() > 0) {
throw erro... | class class_name[name] begin[{]
method[vaultClass, return_type[void], modifier[public], parameter[vaultClass]] begin[{]
if[ClassReference(postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=vaultClass, postfix_operators=[], pre... | Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[vaultClass] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[vaultClass] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[Vault] operator[SEP] Keyword[class] operator[SEP] identifier[isA... |
public ConfigPropertyType<AdminobjectType<T>> getOrCreateConfigProperty()
{
List<Node> nodeList = childNode.get("config-property");
if (nodeList != null && nodeList.size() > 0)
{
return new ConfigPropertyTypeImpl<AdminobjectType<T>>(this, "config-property", childNode, nodeList.get(0));
... | class class_name[name] begin[{]
method[getOrCreateConfigProperty, return_type[type[ConfigPropertyType]], modifier[public], parameter[]] begin[{]
local_variable[type[List], nodeList]
if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nod... | Keyword[public] identifier[ConfigPropertyType] operator[<] identifier[AdminobjectType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateConfigProperty] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childN... |
public Feature asFeature(Object objectToTransform) throws InvalidObjectReaderException {
if (objectToTransform == null) {
throw new IllegalArgumentException("Given object may not be null");
}
if (objectToTransform.getClass() != entityClass) {
throw new InvalidObjectReader... | class class_name[name] begin[{]
method[asFeature, return_type[type[Feature]], modifier[public], parameter[objectToTransform]] begin[{]
if[binary_operation[member[.objectToTransform], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera... | Keyword[public] identifier[Feature] identifier[asFeature] operator[SEP] identifier[Object] identifier[objectToTransform] operator[SEP] Keyword[throws] identifier[InvalidObjectReaderException] {
Keyword[if] operator[SEP] identifier[objectToTransform] operator[==] Other[null] operator[SEP] {
Keyword[thr... |
protected void defineOwnProperty(Context cx, Object id, ScriptableObject desc,
boolean checkValid) {
Slot slot = getSlot(cx, id, SlotAccess.QUERY);
boolean isNew = slot == null;
if (checkValid) {
ScriptableObject current = slot == null ?
... | class class_name[name] begin[{]
method[defineOwnProperty, return_type[void], modifier[protected], parameter[cx, id, desc, checkValid]] begin[{]
local_variable[type[Slot], slot]
local_variable[type[boolean], isNew]
if[member[.checkValid]] begin[{]
local_variable[type[... | Keyword[protected] Keyword[void] identifier[defineOwnProperty] operator[SEP] identifier[Context] identifier[cx] , identifier[Object] identifier[id] , identifier[ScriptableObject] identifier[desc] , Keyword[boolean] identifier[checkValid] operator[SEP] {
identifier[Slot] identifier[slot] operator[=] identifier... |
@SuppressWarnings({"rawtypes"})
protected void checkDataFile(TridentCollector collector) throws IOException,
InterruptedException
{
// 初回は更新がない場合でも読みこみを行い、その上でファイル更新監視を開始する。
if (this.isInitialReaded == false)
{
List<String> fileContents = FileUtils.readLines(this.... | class class_name[name] begin[{]
method[checkDataFile, return_type[void], modifier[protected], parameter[collector]] begin[{]
if[binary_operation[THIS[member[None.isInitialReaded]], ==, literal[false]]] begin[{]
local_variable[type[List], fileContents]
call[.e... | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String]
} operator[SEP] Keyword[protected] Keyword[void] identifier[checkDataFile] operator[SEP] identifier[TridentCollector] identifier[collector] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] {
... |
private void duplicateDeletion(final String spaceId,
final String contentId)
throws TaskExecutionFailedException {
if (existsInSourceManifest(spaceId, contentId)) {
throw new TaskExecutionFailedException(
MessageFormat.format("item exists i... | class class_name[name] begin[{]
method[duplicateDeletion, return_type[void], modifier[private], parameter[spaceId, contentId]] begin[{]
if[call[.existsInSourceManifest, parameter[member[.spaceId], member[.contentId]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Metho... | Keyword[private] Keyword[void] identifier[duplicateDeletion] operator[SEP] Keyword[final] identifier[String] identifier[spaceId] , Keyword[final] identifier[String] identifier[contentId] operator[SEP] Keyword[throws] identifier[TaskExecutionFailedException] {
Keyword[if] operator[SEP] identifier[existsInSourceM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.