code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
private boolean taskSuccessfulInPriorAttempt(String taskId) {
if (this.taskStateStoreOptional.isPresent()) {
StateStore<TaskState> taskStateStore = this.taskStateStoreOptional.get();
// Delete the task state file for the task if it already exists.
// This usually happens if the task is retried upo... | class class_name[name] begin[{]
method[taskSuccessfulInPriorAttempt, return_type[type[boolean]], modifier[private], parameter[taskId]] begin[{]
if[THIS[member[None.taskStateStoreOptional]call[None.isPresent, parameter[]]]] begin[{]
local_variable[type[StateStore], taskStateStore]
... | Keyword[private] Keyword[boolean] identifier[taskSuccessfulInPriorAttempt] operator[SEP] identifier[String] identifier[taskId] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[taskStateStoreOptional] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP] operator[SEP] {
... |
private boolean isAlphanumericOrPlusMinusPoint(char character) {
return (character >= 'A' && character <= 'Z') // Unicode A..Z
|| (character >= 'a' && character <= 'z') // Unicode a..z
|| (character >= '0' && character <= '9') // Unicode 0..9
|| character == '+' |... | class class_name[name] begin[{]
method[isAlphanumericOrPlusMinusPoint, return_type[type[boolean]], modifier[private], parameter[character]] begin[{]
return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.character], >=, lite... | Keyword[private] Keyword[boolean] identifier[isAlphanumericOrPlusMinusPoint] operator[SEP] Keyword[char] identifier[character] operator[SEP] {
Keyword[return] operator[SEP] identifier[character] operator[>=] literal[String] operator[&&] identifier[character] operator[<=] literal[String] operator[SEP] operator[||... |
private void segmentPage()
{
DefaultContentRect.resetId(); //reset the default ID generator to obtain the same IDs for every segmentation
if (segmentatorCombo.getSelectedIndex() != -1)
{
AreaTreeProvider provider = segmentatorCombo.getItemAt(segmentatorCombo.getSelectedIndex());
... | class class_name[name] begin[{]
method[segmentPage, return_type[void], modifier[private], parameter[]] begin[{]
call[DefaultContentRect.resetId, parameter[]]
if[binary_operation[call[segmentatorCombo.getSelectedIndex, parameter[]], !=, literal[1]]] begin[{]
local_var... | Keyword[private] Keyword[void] identifier[segmentPage] operator[SEP] operator[SEP] {
identifier[DefaultContentRect] operator[SEP] identifier[resetId] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[segmentatorCombo] operator[SEP] identifier[getSelectedIndex] operator[SEP] operator[... |
public static boolean isValidJavaEncoding(String javaEncoding) {
if (javaEncoding != null) {
int length = javaEncoding.length();
if (length > 0) {
for (int i = 1; i < length; i++) {
char c = javaEncoding.charAt(i);
if ((c < 'A' || c... | class class_name[name] begin[{]
method[isValidJavaEncoding, return_type[type[boolean]], modifier[public static], parameter[javaEncoding]] begin[{]
if[binary_operation[member[.javaEncoding], !=, literal[null]]] begin[{]
local_variable[type[int], length]
if[bin... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidJavaEncoding] operator[SEP] identifier[String] identifier[javaEncoding] operator[SEP] {
Keyword[if] operator[SEP] identifier[javaEncoding] operator[!=] Other[null] operator[SEP] {
Keyword[int] identifier[length] operator[=] identifier[... |
public void setRows(int rows)
{
if (rows < 0)
{
throw new IllegalArgumentException("rows: " + rows);
}
getStateHelper().put(PropertyKeys.rows, rows );
} | class class_name[name] begin[{]
method[setRows, return_type[void], modifier[public], parameter[rows]] begin[{]
if[binary_operation[member[.rows], <, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_... | Keyword[public] Keyword[void] identifier[setRows] operator[SEP] Keyword[int] identifier[rows] operator[SEP] {
Keyword[if] operator[SEP] identifier[rows] operator[<] Other[0] operator[SEP] {
Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] ident... |
public static AbstractMolecule getMoleculeForMonomer(final Monomer monomer) throws BuilderMoleculeException, ChemistryException {
String input = getInput(monomer);
if (input != null) {
List<Attachment> listAttachments = monomer.getAttachmentList();
AttachmentList list = new AttachmentList();
... | class class_name[name] begin[{]
method[getMoleculeForMonomer, return_type[type[AbstractMolecule]], modifier[public static], parameter[monomer]] begin[{]
local_variable[type[String], input]
if[binary_operation[member[.input], !=, literal[null]]] begin[{]
local_variable[type[L... | Keyword[public] Keyword[static] identifier[AbstractMolecule] identifier[getMoleculeForMonomer] operator[SEP] Keyword[final] identifier[Monomer] identifier[monomer] operator[SEP] Keyword[throws] identifier[BuilderMoleculeException] , identifier[ChemistryException] {
identifier[String] identifier[input] operator[... |
public static void executeWithSystemPermissions(Runnable task) {
ContextAwareRunnable contextAwaretask = new ContextAwareRunnable(task);
Subject newsubject = new Subject.Builder().buildSubject();
newsubject.login(new RootAuthenticationToken());
try {
newsubject.execute(contex... | class class_name[name] begin[{]
method[executeWithSystemPermissions, return_type[void], modifier[public static], parameter[task]] begin[{]
local_variable[type[ContextAwareRunnable], contextAwaretask]
local_variable[type[Subject], newsubject]
call[newsubject.login, parameter[Clas... | Keyword[public] Keyword[static] Keyword[void] identifier[executeWithSystemPermissions] operator[SEP] identifier[Runnable] identifier[task] operator[SEP] {
identifier[ContextAwareRunnable] identifier[contextAwaretask] operator[=] Keyword[new] identifier[ContextAwareRunnable] operator[SEP] identifier[task] operato... |
public static Inputs load(InputStream in) throws JAXBException {
JAXBContext context = JAXBContext.newInstance(Inputs.class, RF2Input.class, OWLInput.class);
Unmarshaller u = context.createUnmarshaller();
Inputs inputs = (Inputs) u.unmarshal(in);
return inputs;
} | class class_name[name] begin[{]
method[load, return_type[type[Inputs]], modifier[public static], parameter[in]] begin[{]
local_variable[type[JAXBContext], context]
local_variable[type[Unmarshaller], u]
local_variable[type[Inputs], inputs]
return[member[.inputs]]
end[}]
END[}... | Keyword[public] Keyword[static] identifier[Inputs] identifier[load] operator[SEP] identifier[InputStream] identifier[in] operator[SEP] Keyword[throws] identifier[JAXBException] {
identifier[JAXBContext] identifier[context] operator[=] identifier[JAXBContext] operator[SEP] identifier[newInstance] operator[SEP] id... |
@Override
public CreateStageResult createStage(CreateStageRequest request) {
request = beforeClientExecution(request);
return executeCreateStage(request);
} | class class_name[name] begin[{]
method[createStage, return_type[type[CreateStageResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeCreateStage, parameter[member[.request]]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[CreateStageResult] identifier[createStage] operator[SEP] identifier[CreateStageRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP]... |
public PolicyStatesQueryResultsInner listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId, QueryOptions queryOptions) {
return listQueryResultsForResourceWithServiceResponseAsync(policyStatesResource, resourceId, queryOptions).toBlocking().single().body();
} | class class_name[name] begin[{]
method[listQueryResultsForResource, return_type[type[PolicyStatesQueryResultsInner]], modifier[public], parameter[policyStatesResource, resourceId, queryOptions]] begin[{]
return[call[.listQueryResultsForResourceWithServiceResponseAsync, parameter[member[.policyStatesRes... | Keyword[public] identifier[PolicyStatesQueryResultsInner] identifier[listQueryResultsForResource] operator[SEP] identifier[PolicyStatesResource] identifier[policyStatesResource] , identifier[String] identifier[resourceId] , identifier[QueryOptions] identifier[queryOptions] operator[SEP] {
Keyword[return] ident... |
@Override
public void appendTo( CssFormatter formatter ) {
try {
if( important ) {
formatter.incImportant();
}
for( MixinMatch match : getRules( formatter ) ) {
Rule rule = match.getRule();
formatter.addMixin( rule, match.ge... | class class_name[name] begin[{]
method[appendTo, return_type[void], modifier[public], parameter[formatter]] begin[{]
TryStatement(block=[IfStatement(condition=MemberReference(member=important, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_st... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[appendTo] operator[SEP] identifier[CssFormatter] identifier[formatter] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[important] operator[SEP] {
identifier[formatter] operator[SEP] identifie... |
@Override
public void prefetchToken(final File tokenFile, final Props props, final Logger logger)
throws HadoopSecurityManagerException {
final String userToProxy = props.getString(JobProperties.USER_TO_PROXY);
logger.info("Getting hadoop tokens based on props for " + userToProxy);
doPrefetch(token... | class class_name[name] begin[{]
method[prefetchToken, return_type[void], modifier[public], parameter[tokenFile, props, logger]] begin[{]
local_variable[type[String], userToProxy]
call[logger.info, parameter[binary_operation[literal["Getting hadoop tokens based on props for "], +, member... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[prefetchToken] operator[SEP] Keyword[final] identifier[File] identifier[tokenFile] , Keyword[final] identifier[Props] identifier[props] , Keyword[final] identifier[Logger] identifier[logger] operator[SEP] Keyword[throws] identifier[HadoopSecu... |
public boolean isAccepted(Iterable<MediaType> ranges) {
requireNonNull(ranges, "ranges");
return mediaTypes.match(ranges).isPresent();
} | class class_name[name] begin[{]
method[isAccepted, return_type[type[boolean]], modifier[public], parameter[ranges]] begin[{]
call[.requireNonNull, parameter[member[.ranges], literal["ranges"]]]
return[call[mediaTypes.match, parameter[member[.ranges]]]]
end[}]
END[}] | Keyword[public] Keyword[boolean] identifier[isAccepted] operator[SEP] identifier[Iterable] operator[<] identifier[MediaType] operator[>] identifier[ranges] operator[SEP] {
identifier[requireNonNull] operator[SEP] identifier[ranges] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[mediaTy... |
public static final void exit(TraceComponent tc, String methodName, Object objs) {
exit(null, tc, methodName, objs);
} | class class_name[name] begin[{]
method[exit, return_type[void], modifier[final public static], parameter[tc, methodName, objs]] begin[{]
call[.exit, parameter[literal[null], member[.tc], member[.methodName], member[.objs]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[exit] operator[SEP] identifier[TraceComponent] identifier[tc] , identifier[String] identifier[methodName] , identifier[Object] identifier[objs] operator[SEP] {
identifier[exit] operator[SEP] Other[null] , identifier[tc] , identifier[meth... |
@Nullable
public AbsoluteRange getHistogramBoundaries() {
if (boundaries == null) {
boundaries = Tools.extractHistogramBoundaries(getBuiltQuery()).orElse(null);
}
return boundaries;
} | class class_name[name] begin[{]
method[getHistogramBoundaries, return_type[type[AbsoluteRange]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.boundaries], ==, literal[null]]] begin[{]
assign[member[.boundaries], call[Tools.extractHistogramBoundarie... | annotation[@] identifier[Nullable] Keyword[public] identifier[AbsoluteRange] identifier[getHistogramBoundaries] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[boundaries] operator[==] Other[null] operator[SEP] {
identifier[boundaries] operator[=] identifier[Tools] operator[SEP] ide... |
public void setEvent(int index, int event) {
if (events == null || index < 0 || index >= events.length) {
throw new IndexOutOfBoundsException("index = " + index + ", limit = " + (events == null ? "null" : events.length));
}
events[index] = (byte)event;
} | class class_name[name] begin[{]
method[setEvent, return_type[void], modifier[public], parameter[index, event]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.events], ==, literal[null]], ||, binary_operation[member[.index], <, literal[0]]], ||, binary_operation[member[.i... | Keyword[public] Keyword[void] identifier[setEvent] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] identifier[events] operator[==] Other[null] operator[||] identifier[index] operator[<] Other[0] operator[||] identifier[index] operator[>=] i... |
protected WroManagerFactory newWroManagerFactory()
throws MojoExecutionException {
WroManagerFactory factory = null;
if (wroManagerFactory == null) {
factory = new ConfigurableWroManagerFactory();
}
getLog().info("wroManagerFactory class: " + factory.getClass().getName());
return factory... | class class_name[name] begin[{]
method[newWroManagerFactory, return_type[type[WroManagerFactory]], modifier[protected], parameter[]] begin[{]
local_variable[type[WroManagerFactory], factory]
if[binary_operation[member[.wroManagerFactory], ==, literal[null]]] begin[{]
... | Keyword[protected] identifier[WroManagerFactory] identifier[newWroManagerFactory] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] {
identifier[WroManagerFactory] identifier[factory] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[wroManagerFactory] operat... |
public FirewallRuleInner update(String resourceGroupName, String accountName, String firewallRuleName, UpdateFirewallRuleParameters parameters) {
return updateWithServiceResponseAsync(resourceGroupName, accountName, firewallRuleName, parameters).toBlocking().single().body();
} | class class_name[name] begin[{]
method[update, return_type[type[FirewallRuleInner]], modifier[public], parameter[resourceGroupName, accountName, firewallRuleName, parameters]] begin[{]
return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.firew... | Keyword[public] identifier[FirewallRuleInner] identifier[update] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[firewallRuleName] , identifier[UpdateFirewallRuleParameters] identifier[parameters] operator[SEP] {
Keywo... |
public PagedList<RecordSetInner> listAllByDnsZone(final String resourceGroupName, final String zoneName, final Integer top, final String recordSetNameSuffix) {
ServiceResponse<Page<RecordSetInner>> response = listAllByDnsZoneSinglePageAsync(resourceGroupName, zoneName, top, recordSetNameSuffix).toBlocking().sin... | class class_name[name] begin[{]
method[listAllByDnsZone, return_type[type[PagedList]], modifier[public], parameter[resourceGroupName, zoneName, top, recordSetNameSuffix]] begin[{]
local_variable[type[ServiceResponse], response]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], membe... | Keyword[public] identifier[PagedList] operator[<] identifier[RecordSetInner] operator[>] identifier[listAllByDnsZone] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[zoneName] , Keyword[final] identifier[Integer] identifier[top] , Keyword[f... |
public int doSetData(Object objData, boolean bDisplayOption, int moveMode)
{
if (objData instanceof String)
if (((String)objData).length() > 3) if (((String)objData).substring(0, 4).equalsIgnoreCase("THE "))
{
objData = ((String)objData).substring(4);
}
return... | class class_name[name] begin[{]
method[doSetData, return_type[type[int]], modifier[public], parameter[objData, bDisplayOption, moveMode]] begin[{]
if[binary_operation[member[.objData], instanceof, type[String]]] begin[{]
if[binary_operation[Cast(expression=MemberReference(member=obj... | Keyword[public] Keyword[int] identifier[doSetData] operator[SEP] identifier[Object] identifier[objData] , Keyword[boolean] identifier[bDisplayOption] , Keyword[int] identifier[moveMode] operator[SEP] {
Keyword[if] operator[SEP] identifier[objData] Keyword[instanceof] identifier[String] operator[SEP] Keyword[if... |
boolean isEditable(CmsObject cms, CmsResource resource) {
try {
return cms.hasPermissions(resource, CmsPermissionSet.ACCESS_WRITE, false, CmsResourceFilter.ALL);
} catch (CmsException e) {
return false;
}
} | class class_name[name] begin[{]
method[isEditable, return_type[type[boolean]], modifier[default], parameter[cms, resource]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=resource, postfix_operators=[], prefix_operators=[], qualifier=, selecto... | Keyword[boolean] identifier[isEditable] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsResource] identifier[resource] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[cms] operator[SEP] identifier[hasPermissions] operator[SEP] identifier[resource] , identifier[CmsPermis... |
@SuppressWarnings("unchecked")
public void updateExecutions() {
this.updaterStage.set("Starting update all flows.");
final Map<Optional<Executor>, List<ExecutableFlow>> exFlowMap = getFlowToExecutorMap();
final ArrayList<ExecutableFlow> finalizeFlows =
new ArrayList<>();
for (final Map.Entry<... | class class_name[name] begin[{]
method[updateExecutions, return_type[void], modifier[public], parameter[]] begin[{]
THIS[member[None.updaterStage]call[None.set, parameter[literal["Starting update all flows."]]]]
local_variable[type[Map], exFlowMap]
local_variable[type[ArrayList]... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[updateExecutions] operator[SEP] operator[SEP] {
Keyword[this] operator[SEP] identifier[updaterStage] operator[SEP] identifier[set] operator[SEP] literal[String] operator[SEP] operator[S... |
private int parseMonth(String month) {
for (int i = 0; i < months.length; i++)
if (months[i].startsWith(month))
return i;
return -1;
} | class class_name[name] begin[{]
method[parseMonth, return_type[type[int]], modifier[private], parameter[month]] begin[{]
ForStatement(body=IfStatement(condition=MemberReference(member=months, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i,... | Keyword[private] Keyword[int] identifier[parseMonth] operator[SEP] identifier[String] identifier[month] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[months] operator[SEP] identifier[length] operator[SEP] identifier[i... |
private String cleanLine(String lineIn) {
String lineOut;
lineOut = lineIn.replaceAll("'", "");
lineOut = lineOut.replaceAll("\t", "");
lineOut = lineOut.replaceAll(";", "");
return lineOut.trim();
} | class class_name[name] begin[{]
method[cleanLine, return_type[type[String]], modifier[private], parameter[lineIn]] begin[{]
local_variable[type[String], lineOut]
assign[member[.lineOut], call[lineIn.replaceAll, parameter[literal["'"], literal[""]]]]
assign[member[.lineOu... | Keyword[private] identifier[String] identifier[cleanLine] operator[SEP] identifier[String] identifier[lineIn] operator[SEP] {
identifier[String] identifier[lineOut] operator[SEP] identifier[lineOut] operator[=] identifier[lineIn] operator[SEP] identifier[replaceAll] operator[SEP] literal[String] , literal[Strin... |
static RevisionDataInputStream wrap(InputStream inputStream) throws IOException {
int bound = BitConverter.readInt(inputStream);
return new RevisionDataInputStream(new BoundedInputStream(inputStream, bound));
} | class class_name[name] begin[{]
method[wrap, return_type[type[RevisionDataInputStream]], modifier[static], parameter[inputStream]] begin[{]
local_variable[type[int], bound]
return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=inputStream, postfix_operators=[], prefix_op... | Keyword[static] identifier[RevisionDataInputStream] identifier[wrap] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[int] identifier[bound] operator[=] identifier[BitConverter] operator[SEP] identifier[readInt] operator[SEP] identifier... |
@Override
public void initialize(Length annotation) {
// On initialise les parametres
min = annotation.min();
max = annotation.max();
acceptNullObject = annotation.acceptNullObject();
trimString = annotation.trimString();
} | class class_name[name] begin[{]
method[initialize, return_type[void], modifier[public], parameter[annotation]] begin[{]
assign[member[.min], call[annotation.min, parameter[]]]
assign[member[.max], call[annotation.max, parameter[]]]
assign[member[.acceptNullObject... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[Length] identifier[annotation] operator[SEP] {
identifier[min] operator[=] identifier[annotation] operator[SEP] identifier[min] operator[SEP] operator[SEP] operator[SEP] identifier[max] operator[=] id... |
private void addCommentTags(Element element, List<? extends DocTree> tags, boolean depr,
boolean first, Content htmltree) {
addCommentTags(element, null, tags, depr, first, htmltree);
} | class class_name[name] begin[{]
method[addCommentTags, return_type[void], modifier[private], parameter[element, tags, depr, first, htmltree]] begin[{]
call[.addCommentTags, parameter[member[.element], literal[null], member[.tags], member[.depr], member[.first], member[.htmltree]]]
end[}]
EN... | Keyword[private] Keyword[void] identifier[addCommentTags] operator[SEP] identifier[Element] identifier[element] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[DocTree] operator[>] identifier[tags] , Keyword[boolean] identifier[depr] , Keyword[boolean] identifier[first] , identifier[Content] ... |
@SuppressWarnings("unchecked")
protected BindingResult<T> doBind(
ArgumentConversionContext<T> context,
ConvertibleValues<?> values,
String annotationValue) {
return doConvert(doResolve(context, values, annotationValue), context);
} | class class_name[name] begin[{]
method[doBind, return_type[type[BindingResult]], modifier[protected], parameter[context, values, annotationValue]] begin[{]
return[call[.doConvert, parameter[call[.doResolve, parameter[member[.context], member[.values], member[.annotationValue]]], member[.context]]]]
... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] identifier[BindingResult] operator[<] identifier[T] operator[>] identifier[doBind] operator[SEP] identifier[ArgumentConversionContext] operator[<] identifier[T] operator[>] identifier[context] , identifier[Convert... |
public BufferedImage drawTile(int[][] unsignedPixelValues) {
int tileWidth = unsignedPixelValues[0].length;
int tileHeight = unsignedPixelValues.length;
BufferedImage image = createImage(tileWidth, tileHeight);
WritableRaster raster = image.getRaster();
for (int x = 0; x < tileWidth; x++) {
for (int y = ... | class class_name[name] begin[{]
method[drawTile, return_type[type[BufferedImage]], modifier[public], parameter[unsignedPixelValues]] begin[{]
local_variable[type[int], tileWidth]
local_variable[type[int], tileHeight]
local_variable[type[BufferedImage], image]
local_variable[type... | Keyword[public] identifier[BufferedImage] identifier[drawTile] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[unsignedPixelValues] operator[SEP] {
Keyword[int] identifier[tileWidth] operator[=] identifier[unsignedPixelValues] operator[SEP] Other[0] operator[SEP] ope... |
public static <T extends Message> Metadata.Key<T> keyForProto(T instance) {
return Metadata.Key.of(
instance.getDescriptorForType().getFullName() + Metadata.BINARY_HEADER_SUFFIX,
metadataMarshaller(instance));
} | class class_name[name] begin[{]
method[keyForProto, return_type[type[Metadata]], modifier[public static], parameter[instance]] begin[{]
return[call[Metadata.Key.of, parameter[binary_operation[call[instance.getDescriptorForType, parameter[]], +, member[Metadata.BINARY_HEADER_SUFFIX]], call[.metadataMars... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Message] operator[>] identifier[Metadata] operator[SEP] identifier[Key] operator[<] identifier[T] operator[>] identifier[keyForProto] operator[SEP] identifier[T] identifier[instance] operator[SEP] {
Keyword[return] identifier[M... |
@Override
public final long count(final String filename) {
final Query searchQuery =
new Query(Criteria.where("filename").is(filename));
return mongoTemplate.count(searchQuery, FamilyDocumentMongo.class);
} | class class_name[name] begin[{]
method[count, return_type[type[long]], modifier[final public], parameter[filename]] begin[{]
local_variable[type[Query], searchQuery]
return[call[mongoTemplate.count, parameter[member[.searchQuery], ClassReference(postfix_operators=[], prefix_operators=[], qualif... | annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[long] identifier[count] operator[SEP] Keyword[final] identifier[String] identifier[filename] operator[SEP] {
Keyword[final] identifier[Query] identifier[searchQuery] operator[=] Keyword[new] identifier[Query] operator[SEP] identifier[Crite... |
public static boolean isCaller(final String className, final String methodName) {
final Throwable throwable = new Throwable();
final StackTraceElement[] stackElements = throwable.getStackTrace();
if (null == stackElements) {
LOGGER.log(Level.WARN, "Empty call stack");
r... | class class_name[name] begin[{]
method[isCaller, return_type[type[boolean]], modifier[public static], parameter[className, methodName]] begin[{]
local_variable[type[Throwable], throwable]
local_variable[type[StackTraceElement], stackElements]
if[binary_operation[literal[null], =... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isCaller] operator[SEP] Keyword[final] identifier[String] identifier[className] , Keyword[final] identifier[String] identifier[methodName] operator[SEP] {
Keyword[final] identifier[Throwable] identifier[throwable] operator[=] Keyword[new] identifier[Th... |
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String registryName, String buildTaskName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, registryName, buildTaskName), serviceCallback);
} | class class_name[name] begin[{]
method[beginDeleteAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, registryName, buildTaskName, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.beginDeleteWithServiceResponseAsync, parameter[member... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[beginDeleteAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[buildTaskName] , Keyword[final] identifier[ServiceCallback] oper... |
public void setContentAction(Action act) {
if (act.entry != null && act.entry != this) {
Log.e(TAG, "setContentAction failed. Already applied to another notification - " +
act.entry.ID + ". Current notification is " + ID);
return;
}
this.contentAction = ... | class class_name[name] begin[{]
method[setContentAction, return_type[void], modifier[public], parameter[act]] begin[{]
if[binary_operation[binary_operation[member[act.entry], !=, literal[null]], &&, binary_operation[member[act.entry], !=, THIS[]]]] begin[{]
call[Log.e, p... | Keyword[public] Keyword[void] identifier[setContentAction] operator[SEP] identifier[Action] identifier[act] operator[SEP] {
Keyword[if] operator[SEP] identifier[act] operator[SEP] identifier[entry] operator[!=] Other[null] operator[&&] identifier[act] operator[SEP] identifier[entry] operator[!=] Keyword[this] op... |
synchronized void updateValue(long value) {
if (value != currentValue) {
currentValue = value;
IOEvent evt = new IOEvent(this);
getDevice().pinChanged(evt); // the device listeners receive the event first
for (PinEventListener listener : listeners) { // then pin l... | class class_name[name] begin[{]
method[updateValue, return_type[void], modifier[synchronized], parameter[value]] begin[{]
if[binary_operation[member[.value], !=, member[.currentValue]]] begin[{]
assign[member[.currentValue], member[.value]]
local_variable[typ... | Keyword[synchronized] Keyword[void] identifier[updateValue] operator[SEP] Keyword[long] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[!=] identifier[currentValue] operator[SEP] {
identifier[currentValue] operator[=] identifier[value] operator[SEP] identifier[IO... |
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "operationParameterRef")
public JAXBElement<OperationParameterRefType> createOperationParameterRef(OperationParameterRefType value) {
return new JAXBElement<OperationParameterRefType>(_OperationParameterRef_QNAME, OperationParameterRefType.cla... | class class_name[name] begin[{]
method[createOperationParameterRef, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_OperationParameterRef_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Clas... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[OperationParameterRefType] operator[>] identifier[createOperationParameterRef] operator[SE... |
public static SchemaObjectBuilder schemaObjectFrom(Class<?> from) {
String jsonType = jsonType(from);
return schemaObject()
.withType(jsonType)
.withFormat(jsonFormat(from))
.withNullable(!from.isPrimitive())
.withItems(itemsFor(from, "array".equals(jsonTy... | class class_name[name] begin[{]
method[schemaObjectFrom, return_type[type[SchemaObjectBuilder]], modifier[public static], parameter[from]] begin[{]
local_variable[type[String], jsonType]
return[call[.schemaObject, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[SchemaObjectBuilder] identifier[schemaObjectFrom] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[from] operator[SEP] {
identifier[String] identifier[jsonType] operator[=] identifier[jsonType] operator[SEP] identifier[from] operator[SEP] o... |
private Array readDataFromCollection(GribCollectionImmutable.VariableIndex vindex, SectionIterable want) throws IOException {
// first time, read records and keep in memory
vindex.readRecords();
int rank = want.getRank();
int sectionLen = rank - 2; // all but x, y
SectionIterable sectionWanted = wa... | class class_name[name] begin[{]
method[readDataFromCollection, return_type[type[Array]], modifier[private], parameter[vindex, want]] begin[{]
call[vindex.readRecords, parameter[]]
local_variable[type[int], rank]
local_variable[type[int], sectionLen]
local_variable[type[S... | Keyword[private] identifier[Array] identifier[readDataFromCollection] operator[SEP] identifier[GribCollectionImmutable] operator[SEP] identifier[VariableIndex] identifier[vindex] , identifier[SectionIterable] identifier[want] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[vindex] operator[SE... |
public static int lengthOf(WsByteBuffer[] src, int startIndex) {
int length = 0;
if (null != src) {
for (int i = startIndex; i < src.length && null != src[i]; i++) {
length += src[i].remaining();
}
}
return length;
} | class class_name[name] begin[{]
method[lengthOf, return_type[type[int]], modifier[public static], parameter[src, startIndex]] begin[{]
local_variable[type[int], length]
if[binary_operation[literal[null], !=, member[.src]]] begin[{]
ForStatement(body=BlockStatement(label=None... | Keyword[public] Keyword[static] Keyword[int] identifier[lengthOf] operator[SEP] identifier[WsByteBuffer] operator[SEP] operator[SEP] identifier[src] , Keyword[int] identifier[startIndex] operator[SEP] {
Keyword[int] identifier[length] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] Other[null] oper... |
public void createCvcUpdateToken(
@NonNull @Size(min = 3, max = 4) final String cvc,
@NonNull @Size(min = 1) final String publishableKey,
@Nullable final Executor executor,
@NonNull final TokenCallback callback) {
createTokenFromParams(
mapFromCvc(... | class class_name[name] begin[{]
method[createCvcUpdateToken, return_type[void], modifier[public], parameter[cvc, publishableKey, executor, callback]] begin[{]
call[.createTokenFromParams, parameter[call[.mapFromCvc, parameter[member[.cvc]]], member[.publishableKey], member[Token.TYPE_CVC_UPDATE... | Keyword[public] Keyword[void] identifier[createCvcUpdateToken] operator[SEP] annotation[@] identifier[NonNull] annotation[@] identifier[Size] operator[SEP] identifier[min] operator[=] Other[3] , identifier[max] operator[=] Other[4] operator[SEP] Keyword[final] identifier[String] identifier[cvc] , annotation[@] identi... |
public static ImmutableMap<String, PrimitiveData> parseCompileTimeGlobals(CharSource inputSource)
throws IOException {
Builder<String, PrimitiveData> compileTimeGlobalsBuilder = ImmutableMap.builder();
ErrorReporter errorReporter = ErrorReporter.exploding();
try (BufferedReader reader = inputSource.o... | class class_name[name] begin[{]
method[parseCompileTimeGlobals, return_type[type[ImmutableMap]], modifier[public static], parameter[inputSource]] begin[{]
local_variable[type[Builder], compileTimeGlobalsBuilder]
local_variable[type[ErrorReporter], errorReporter]
TryStatement(block=[Loca... | Keyword[public] Keyword[static] identifier[ImmutableMap] operator[<] identifier[String] , identifier[PrimitiveData] operator[>] identifier[parseCompileTimeGlobals] operator[SEP] identifier[CharSource] identifier[inputSource] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Builder] operator[<]... |
public static <T> Builder<T> wrappedResultsArrayOf(TypeReference<T> type)
{
return builder(type).withHeader(StandardStreamCallbacks.RESULTS_HEADER).withFooter(StandardStreamCallbacks.RESULTS_FOOTER);
} | class class_name[name] begin[{]
method[wrappedResultsArrayOf, return_type[type[Builder]], modifier[public static], parameter[type]] begin[{]
return[call[.builder, parameter[member[.type]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Builder] operator[<] identifier[T] operator[>] identifier[wrappedResultsArrayOf] operator[SEP] identifier[TypeReference] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] {
Keyword[return] identifier[builder] oper... |
private synchronized void onRemovedMbean(ObjectName obj) {
if (!detected_groups_.keySet().contains(obj)) {
LOG.log(Level.WARNING, "skipping de-registration of {0}: not present", obj);
return;
}
MBeanGroup instance = detected_groups_.get(obj);
detected_groups_.rem... | class class_name[name] begin[{]
method[onRemovedMbean, return_type[void], modifier[synchronized private], parameter[obj]] begin[{]
if[call[detected_groups_.keySet, parameter[]]] begin[{]
call[LOG.log, parameter[member[Level.WARNING], literal["skipping de-registration of ... | Keyword[private] Keyword[synchronized] Keyword[void] identifier[onRemovedMbean] operator[SEP] identifier[ObjectName] identifier[obj] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[detected_groups_] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] identifier[contains] o... |
public static <TSource, TResult> List<TResult> map(Collection<TSource> items, Mapper<TSource, TResult> mapper) {
if (isEmpty(items)) {
return new ArrayList<>();
}
List<TResult> result = new ArrayList<>(items.size());
for (TSource item : items) {
TResult mappedIt... | class class_name[name] begin[{]
method[map, return_type[type[List]], modifier[public static], parameter[items, mapper]] begin[{]
if[call[.isEmpty, parameter[member[.items]]]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[],... | Keyword[public] Keyword[static] operator[<] identifier[TSource] , identifier[TResult] operator[>] identifier[List] operator[<] identifier[TResult] operator[>] identifier[map] operator[SEP] identifier[Collection] operator[<] identifier[TSource] operator[>] identifier[items] , identifier[Mapper] operator[<] identifier[... |
public void receiveResultmdfeRetRecepcao(
com.fincatto.documentofiscal.mdfe3.webservices.retornorecepcao.MDFeRetRecepcaoStub.MdfeRetRecepcaoResult result
) {
} | class class_name[name] begin[{]
method[receiveResultmdfeRetRecepcao, return_type[void], modifier[public], parameter[result]] begin[{]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[receiveResultmdfeRetRecepcao] operator[SEP] identifier[com] operator[SEP] identifier[fincatto] operator[SEP] identifier[documentofiscal] operator[SEP] identifier[mdfe3] operator[SEP] identifier[webservices] operator[SEP] identifier[retornorecepcao] operator[SEP] identifier[MDFeR... |
public static BitSet or(BitSet left, BitSet right) {
BitSet result = (BitSet) left.clone();
result.or(right);
return result;
} | class class_name[name] begin[{]
method[or, return_type[type[BitSet]], modifier[public static], parameter[left, right]] begin[{]
local_variable[type[BitSet], result]
call[result.or, parameter[member[.right]]]
return[member[.result]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[BitSet] identifier[or] operator[SEP] identifier[BitSet] identifier[left] , identifier[BitSet] identifier[right] operator[SEP] {
identifier[BitSet] identifier[result] operator[=] operator[SEP] identifier[BitSet] operator[SEP] identifier[left] operator[SEP] identifier[cl... |
public static boolean setOnce(AtomicReference<Subscription> upstream, Subscription next, Class<?> subscriber) {
ObjectHelper.requireNonNull(next, "next is null");
if (!upstream.compareAndSet(null, next)) {
next.cancel();
if (upstream.get() != SubscriptionHelper.CANCELLED) {
... | class class_name[name] begin[{]
method[setOnce, return_type[type[boolean]], modifier[public static], parameter[upstream, next, subscriber]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.next], literal["next is null"]]]
if[call[upstream.compareAndSet, parameter[lit... | Keyword[public] Keyword[static] Keyword[boolean] identifier[setOnce] operator[SEP] identifier[AtomicReference] operator[<] identifier[Subscription] operator[>] identifier[upstream] , identifier[Subscription] identifier[next] , identifier[Class] operator[<] operator[?] operator[>] identifier[subscriber] operator[SEP] ... |
private void writeWrappingCode (final Wrapping code) {
final Preferences docPreferences = CodeStylePreferences.get(this.document).getPreferences();
docPreferences.put(SimpleValueNames.TEXT_LINE_WRAP, code.getValue());
try {
docPreferences.flush();
}
catch (BackingStoreException ex) {
LOG... | class class_name[name] begin[{]
method[writeWrappingCode, return_type[void], modifier[private], parameter[code]] begin[{]
local_variable[type[Preferences], docPreferences]
call[docPreferences.put, parameter[member[SimpleValueNames.TEXT_LINE_WRAP], call[code.getValue, parameter[]]]]
... | Keyword[private] Keyword[void] identifier[writeWrappingCode] operator[SEP] Keyword[final] identifier[Wrapping] identifier[code] operator[SEP] {
Keyword[final] identifier[Preferences] identifier[docPreferences] operator[=] identifier[CodeStylePreferences] operator[SEP] identifier[get] operator[SEP] Keyword[this] ... |
protected Priority getPriority(final int lines) {
if (lines >= highThreshold) {
return Priority.HIGH;
}
else if (lines >= normalThreshold) {
return Priority.NORMAL;
}
else {
return Priority.LOW;
}
} | class class_name[name] begin[{]
method[getPriority, return_type[type[Priority]], modifier[protected], parameter[lines]] begin[{]
if[binary_operation[member[.lines], >=, member[.highThreshold]]] begin[{]
return[member[Priority.HIGH]]
else begin[{]
if[binary_operat... | Keyword[protected] identifier[Priority] identifier[getPriority] operator[SEP] Keyword[final] Keyword[int] identifier[lines] operator[SEP] {
Keyword[if] operator[SEP] identifier[lines] operator[>=] identifier[highThreshold] operator[SEP] {
Keyword[return] identifier[Priority] operator[SEP] identifier[H... |
@Override
public TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) {
request = beforeClientExecution(request);
return executeTerminateInstanceInAutoScalingGroup(request);
} | class class_name[name] begin[{]
method[terminateInstanceInAutoScalingGroup, return_type[type[TerminateInstanceInAutoScalingGroupResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.execu... | annotation[@] identifier[Override] Keyword[public] identifier[TerminateInstanceInAutoScalingGroupResult] identifier[terminateInstanceInAutoScalingGroup] operator[SEP] identifier[TerminateInstanceInAutoScalingGroupRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClient... |
@CheckReturnValue
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
@SchedulerSupport(SchedulerSupport.NONE)
public final <R> Flowable<R> switchMapMaybe(@NonNull Function<? super T, ? extends MaybeSource<? extends R>> mapper) {
ObjectHelper.requireNonNull(mapper, "mapper is null");
return ... | class class_name[name] begin[{]
method[switchMapMaybe, return_type[type[Flowable]], modifier[final public], parameter[mapper]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.mapper], literal["mapper is null"]]]
return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(a... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[UNBOUNDED_IN] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyw... |
public void setLensDistortion(int width , int height ,
@Nullable LensDistortionNarrowFOV model )
{
interpolate = FactoryInterpolation.bilinearPixelS(
squareDetector.getInputType(), BorderType.EXTENDED);
if( model != null ) {
PixelTransform<Point2D_F32> distToUndist = new PointToPixelTransform_F32... | class class_name[name] begin[{]
method[setLensDistortion, return_type[void], modifier[public], parameter[width, height, model]] begin[{]
assign[member[.interpolate], call[FactoryInterpolation.bilinearPixelS, parameter[call[squareDetector.getInputType, parameter[]], member[BorderType.EXTENDED]]]... | Keyword[public] Keyword[void] identifier[setLensDistortion] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , annotation[@] identifier[Nullable] identifier[LensDistortionNarrowFOV] identifier[model] operator[SEP] {
identifier[interpolate] operator[=] identifier[FactoryInterpolati... |
public void wakeUp(long startDaemonTime, long startWakeUpTime) {
if ( UNIT_TEST_INACTIVITY ) {
System.out.println("wakUp() - entry");
}
//final String methodName = "wakeUp()";
boolean bTimeOutChecked = false;
try {
// check the cache entries timeout when o... | class class_name[name] begin[{]
method[wakeUp, return_type[void], modifier[public], parameter[startDaemonTime, startWakeUpTime]] begin[{]
if[member[.UNIT_TEST_INACTIVITY]] begin[{]
call[System.out.println, parameter[literal["wakUp() - entry"]]]
else begin[{]
None... | Keyword[public] Keyword[void] identifier[wakeUp] operator[SEP] Keyword[long] identifier[startDaemonTime] , Keyword[long] identifier[startWakeUpTime] operator[SEP] {
Keyword[if] operator[SEP] identifier[UNIT_TEST_INACTIVITY] operator[SEP] {
identifier[System] operator[SEP] identifier[out] operator[SEP... |
public CPSubsystemConfig setLockConfigs(Map<String, FencedLockConfig> lockConfigs) {
this.lockConfigs.clear();
this.lockConfigs.putAll(lockConfigs);
for (Entry<String, FencedLockConfig> entry : this.lockConfigs.entrySet()) {
entry.getValue().setName(entry.getKey());
}
... | class class_name[name] begin[{]
method[setLockConfigs, return_type[type[CPSubsystemConfig]], modifier[public], parameter[lockConfigs]] begin[{]
THIS[member[None.lockConfigs]call[None.clear, parameter[]]]
THIS[member[None.lockConfigs]call[None.putAll, parameter[member[.lockConfig... | Keyword[public] identifier[CPSubsystemConfig] identifier[setLockConfigs] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[FencedLockConfig] operator[>] identifier[lockConfigs] operator[SEP] {
Keyword[this] operator[SEP] identifier[lockConfigs] operator[SEP] identifier[clear] operator[SE... |
@SuppressWarnings("unchecked")
public <T extends Identifiable<?>, M2O extends Identifiable<?>> List<Predicate> byExampleOnXToOne(ManagedType<T> mt, Root<T> mtPath, T mtValue,
SearchParameters sp, CriteriaBuilder bu... | class class_name[name] begin[{]
method[byExampleOnXToOne, return_type[type[List]], modifier[public], parameter[mt, mtPath, mtValue, sp, builder]] begin[{]
local_variable[type[List], predicates]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operan... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Identifiable] operator[<] operator[?] operator[>] , identifier[M2O] Keyword[extends] identifier[Identifiable] operator[<] operator[?] operator[>] operator[>] iden... |
public static Class getTypeClass( Object obj ) {
if( isNull( obj ) ){
return Object.class;
}else if( isArray( obj ) ){
return List.class;
}else if( isFunction( obj ) ){
return JSONFunction.class;
}else if( isBoolean( obj ) ){
return Boolean.class;
}else ... | class class_name[name] begin[{]
method[getTypeClass, return_type[type[Class]], modifier[public static], parameter[obj]] begin[{]
if[call[.isNull, parameter[member[.obj]]]] begin[{]
return[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=Refere... | Keyword[public] Keyword[static] identifier[Class] identifier[getTypeClass] operator[SEP] identifier[Object] identifier[obj] operator[SEP] {
Keyword[if] operator[SEP] identifier[isNull] operator[SEP] identifier[obj] operator[SEP] operator[SEP] {
Keyword[return] identifier[Object] operator[SEP] Keyword[... |
public void setPrefix(String prefix)
{
_prefix = prefix;
if (prefix != null)
_pathPrefix = prefix.replace('.', '/');
} | class class_name[name] begin[{]
method[setPrefix, return_type[void], modifier[public], parameter[prefix]] begin[{]
assign[member[._prefix], member[.prefix]]
if[binary_operation[member[.prefix], !=, literal[null]]] begin[{]
assign[member[._pathPrefix], call[prefix.rep... | Keyword[public] Keyword[void] identifier[setPrefix] operator[SEP] identifier[String] identifier[prefix] operator[SEP] {
identifier[_prefix] operator[=] identifier[prefix] operator[SEP] Keyword[if] operator[SEP] identifier[prefix] operator[!=] Other[null] operator[SEP] identifier[_pathPrefix] operator[=] identifi... |
public static ZonedDateTime randomZonedDateTime(
ZonedDateTime startInclusive, ZonedDateTime endExclusive) {
checkArgument(startInclusive != null, "Start must be non-null");
checkArgument(endExclusive != null, "End must be non-null");
Instant instant = randomInstant(startInclusive.toInstant(), endExcl... | class class_name[name] begin[{]
method[randomZonedDateTime, return_type[type[ZonedDateTime]], modifier[public static], parameter[startInclusive, endExclusive]] begin[{]
call[.checkArgument, parameter[binary_operation[member[.startInclusive], !=, literal[null]], literal["Start must be non-null"]... | Keyword[public] Keyword[static] identifier[ZonedDateTime] identifier[randomZonedDateTime] operator[SEP] identifier[ZonedDateTime] identifier[startInclusive] , identifier[ZonedDateTime] identifier[endExclusive] operator[SEP] {
identifier[checkArgument] operator[SEP] identifier[startInclusive] operator[!=] Other[... |
public Option withVpcSecurityGroupMemberships(VpcSecurityGroupMembership... vpcSecurityGroupMemberships) {
if (this.vpcSecurityGroupMemberships == null) {
setVpcSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList<VpcSecurityGroupMembership>(vpcSecurityGroupMemberships.length));
... | class class_name[name] begin[{]
method[withVpcSecurityGroupMemberships, return_type[type[Option]], modifier[public], parameter[vpcSecurityGroupMemberships]] begin[{]
if[binary_operation[THIS[member[None.vpcSecurityGroupMemberships]], ==, literal[null]]] begin[{]
call[.se... | Keyword[public] identifier[Option] identifier[withVpcSecurityGroupMemberships] operator[SEP] identifier[VpcSecurityGroupMembership] operator[...] identifier[vpcSecurityGroupMemberships] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[vpcSecurityGroupMemberships] operator[==] Othe... |
@Override
public boolean hasEquivalentTransitions(TimeZone other, long start, long end) {
if (this == other) {
return true;
}
return tz.hasEquivalentTransitions(other, start, end);
} | class class_name[name] begin[{]
method[hasEquivalentTransitions, return_type[type[boolean]], modifier[public], parameter[other, start, end]] begin[{]
if[binary_operation[THIS[], ==, member[.other]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
ret... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasEquivalentTransitions] operator[SEP] identifier[TimeZone] identifier[other] , Keyword[long] identifier[start] , Keyword[long] identifier[end] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[==] identifier[other] ... |
public CustomEmojiBuilder setImage(InputStream image, String type) {
delegate.setImage(image, type);
return this;
} | class class_name[name] begin[{]
method[setImage, return_type[type[CustomEmojiBuilder]], modifier[public], parameter[image, type]] begin[{]
call[delegate.setImage, parameter[member[.image], member[.type]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[CustomEmojiBuilder] identifier[setImage] operator[SEP] identifier[InputStream] identifier[image] , identifier[String] identifier[type] operator[SEP] {
identifier[delegate] operator[SEP] identifier[setImage] operator[SEP] identifier[image] , identifier[type] operator[SEP] operator[SEP... |
public Cholesky CholeskyOfAtA() {
int n = qr.ncols();
DenseMatrix L = Matrix.zeros(n, n);
for (int i = 0; i < n; i++) {
L.set(i, i, tau[i]);
for (int j = 0; j < i; j++) {
L.set(i, j, qr.get(j, i));
}
}
return new Cholesky(L);... | class class_name[name] begin[{]
method[CholeskyOfAtA, return_type[type[Cholesky]], modifier[public], parameter[]] begin[{]
local_variable[type[int], n]
local_variable[type[DenseMatrix], L]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvo... | Keyword[public] identifier[Cholesky] identifier[CholeskyOfAtA] operator[SEP] operator[SEP] {
Keyword[int] identifier[n] operator[=] identifier[qr] operator[SEP] identifier[ncols] operator[SEP] operator[SEP] operator[SEP] identifier[DenseMatrix] identifier[L] operator[=] identifier[Matrix] operator[SEP] identifie... |
public static X500Principal getSubjectDNFromChain(List<X509Certificate> chain)
{
if (chain == null || chain.isEmpty())
throw new IllegalArgumentException("Must provide a chain that is non-null and non-empty");
X509Certificate cert = chain.get(chain.size() - 1);
return cert.getSubjectX500Principal();
} | class class_name[name] begin[{]
method[getSubjectDNFromChain, return_type[type[X500Principal]], modifier[public static], parameter[chain]] begin[{]
if[binary_operation[binary_operation[member[.chain], ==, literal[null]], ||, call[chain.isEmpty, parameter[]]]] begin[{]
ThrowStatement(expression=... | Keyword[public] Keyword[static] identifier[X500Principal] identifier[getSubjectDNFromChain] operator[SEP] identifier[List] operator[<] identifier[X509Certificate] operator[>] identifier[chain] operator[SEP] {
Keyword[if] operator[SEP] identifier[chain] operator[==] Other[null] operator[||] identifier[chain] oper... |
public Template createTemplate(final Reader reader) throws CompilationFailedException, ClassNotFoundException, IOException {
return new GStringTemplate(reader, parentLoader);
} | class class_name[name] begin[{]
method[createTemplate, return_type[type[Template]], modifier[public], parameter[reader]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=parentLoader, post... | Keyword[public] identifier[Template] identifier[createTemplate] operator[SEP] Keyword[final] identifier[Reader] identifier[reader] operator[SEP] Keyword[throws] identifier[CompilationFailedException] , identifier[ClassNotFoundException] , identifier[IOException] {
Keyword[return] Keyword[new] identifier[GStrin... |
@SuppressWarnings({"unchecked"})
public <T> T read(String json, Configuration configuration) {
notEmpty(json, "json can not be null or empty");
notNull(configuration, "jsonProvider can not be null");
return read(configuration.jsonProvider().parse(json), configuration);
} | class class_name[name] begin[{]
method[read, return_type[type[T]], modifier[public], parameter[json, configuration]] begin[{]
call[.notEmpty, parameter[member[.json], literal["json can not be null or empty"]]]
call[.notNull, parameter[member[.configuration], literal["jsonProvide... | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String]
} operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[read] operator[SEP] identifier[String] identifier[json] , identifier[Configuration] identifier[configuration] operator[SEP] {
identi... |
public void marshall(DeploymentJob deploymentJob, ProtocolMarshaller protocolMarshaller) {
if (deploymentJob == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deploymentJob.getArn(), ARN_BINDING);
... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[deploymentJob, protocolMarshaller]] begin[{]
if[binary_operation[member[.deploymentJob], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_ope... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeploymentJob] identifier[deploymentJob] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[deploymentJob] operator[==] Other[null] operator[SEP] {
Keyword[thr... |
public static <V> CmsBeanTableBuilder<V> newInstance(Class<V> cls) {
return new CmsBeanTableBuilder<V>(cls, null);
} | class class_name[name] begin[{]
method[newInstance, return_type[type[CmsBeanTableBuilder]], modifier[public static], parameter[cls]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=cls, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], pr... | Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[CmsBeanTableBuilder] operator[<] identifier[V] operator[>] identifier[newInstance] operator[SEP] identifier[Class] operator[<] identifier[V] operator[>] identifier[cls] operator[SEP] {
Keyword[return] Keyword[new] identifier[CmsBean... |
public static OptionalThing<ClassificationMeta> findMeta(Class<?> defmetaType, String classificationName) {
assertArgumentNotNull("defmetaType", defmetaType);
assertArgumentNotNull("classificationName", classificationName);
// #hope switch to nativeFindMeta() in future (can be over DBFlute-1.1.... | class class_name[name] begin[{]
method[findMeta, return_type[type[OptionalThing]], modifier[public static], parameter[defmetaType, classificationName]] begin[{]
call[.assertArgumentNotNull, parameter[literal["defmetaType"], member[.defmetaType]]]
call[.assertArgumentNotNull, par... | Keyword[public] Keyword[static] identifier[OptionalThing] operator[<] identifier[ClassificationMeta] operator[>] identifier[findMeta] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[defmetaType] , identifier[String] identifier[classificationName] operator[SEP] {
identifier[assertA... |
@Override
public Object transform( Object input ) {
if ( input == null ) {
// if null, assume HashMap
input = new HashMap();
}
// TODO : Make copy of the defaultee or like shiftr create a new output object
if ( input instanceof List ) {
if ( arr... | class class_name[name] begin[{]
method[transform, return_type[type[Object]], modifier[public], parameter[input]] begin[{]
if[binary_operation[member[.input], ==, literal[null]]] begin[{]
assign[member[.input], ClassCreator(arguments=[], body=None, constructor_type_argume... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[transform] operator[SEP] identifier[Object] identifier[input] operator[SEP] {
Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] {
identifier[input] operator[=] Keyword[new] identifier[Hash... |
public static HashMap<String, String> find(HashMap<String, String> props, String path) {
// Kein Pfad angegeben. Also treffen alle.
if (path == null || path.length() == 0)
return props;
// Die neue Map fuer die naechste Runde
HashMap<String, String> next = new HashMap<>();
... | class class_name[name] begin[{]
method[find, return_type[type[HashMap]], modifier[public static], parameter[props, path]] begin[{]
if[binary_operation[binary_operation[member[.path], ==, literal[null]], ||, binary_operation[call[path.length, parameter[]], ==, literal[0]]]] begin[{]
return[membe... | Keyword[public] Keyword[static] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[find] operator[SEP] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[props] , identifier[String] identifier[path] operator[SEP] {
Keyword... |
public <A, B> boolean tryPublishEvents(EventTranslatorTwoArg<E, A, B> translator, A[] arg0, B[] arg1) {
return tryPublishEvents(translator, 0, arg0.length, arg0, arg1);
} | class class_name[name] begin[{]
method[tryPublishEvents, return_type[type[boolean]], modifier[public], parameter[translator, arg0, arg1]] begin[{]
return[call[.tryPublishEvents, parameter[member[.translator], literal[0], member[arg0.length], member[.arg0], member[.arg1]]]]
end[}]
END[}] | Keyword[public] operator[<] identifier[A] , identifier[B] operator[>] Keyword[boolean] identifier[tryPublishEvents] operator[SEP] identifier[EventTranslatorTwoArg] operator[<] identifier[E] , identifier[A] , identifier[B] operator[>] identifier[translator] , identifier[A] operator[SEP] operator[SEP] identifier[arg0... |
@Override
protected void deserializeBytes20to23 (final int line) throws InternetSCSIException {
connectionID = (line & Constants.FIRST_TWO_BYTES_MASK) >>> Constants.TWO_BYTES_SHIFT;
Utils.isReserved(line & Constants.LAST_TWO_BYTES_MASK);
} | class class_name[name] begin[{]
method[deserializeBytes20to23, return_type[void], modifier[protected], parameter[line]] begin[{]
assign[member[.connectionID], binary_operation[binary_operation[member[.line], &, member[Constants.FIRST_TWO_BYTES_MASK]], >>>, member[Constants.TWO_BYTES_SHIFT]]]
... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[deserializeBytes20to23] operator[SEP] Keyword[final] Keyword[int] identifier[line] operator[SEP] Keyword[throws] identifier[InternetSCSIException] {
identifier[connectionID] operator[=] operator[SEP] identifier[line] operator[&] ident... |
protected static void registerForPushNotification(Context context) {
if (checkPlayService(context)) {
WonderPushFirebaseMessagingService.fetchInstanceId();
} else {
Log.w(TAG, "Google Play Services not present. Check your setup. If on an emulator, use a Google APIs system image."... | class class_name[name] begin[{]
method[registerForPushNotification, return_type[void], modifier[static protected], parameter[context]] begin[{]
if[call[.checkPlayService, parameter[member[.context]]]] begin[{]
call[WonderPushFirebaseMessagingService.fetchInstanceId, para... | Keyword[protected] Keyword[static] Keyword[void] identifier[registerForPushNotification] operator[SEP] identifier[Context] identifier[context] operator[SEP] {
Keyword[if] operator[SEP] identifier[checkPlayService] operator[SEP] identifier[context] operator[SEP] operator[SEP] {
identifier[WonderPushFir... |
private T getWrappedPublisher(Publisher flexiblePublisher, Class<T> type) {
if (!(flexiblePublisher instanceof FlexiblePublisher)) {
throw new IllegalArgumentException(String.format("Publisher should be of type: '%s'. Found type: '%s'",
FlexiblePublisher.class, flexiblePublisher.getC... | class class_name[name] begin[{]
method[getWrappedPublisher, return_type[type[T]], modifier[private], parameter[flexiblePublisher, type]] begin[{]
if[binary_operation[member[.flexiblePublisher], instanceof, type[FlexiblePublisher]]] begin[{]
ThrowStatement(expression=ClassCreator(arg... | Keyword[private] identifier[T] identifier[getWrappedPublisher] operator[SEP] identifier[Publisher] identifier[flexiblePublisher] , identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] {
Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[flexiblePublisher] Keyword[in... |
protected B codec(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder) {
enforceConstraint("codec", "server", isServer);
enforceConstraint("codec", "maxReservedStreams", maxReservedStreams);
enforceConstraint("codec", "connection", connection);
enforceConstraint("codec", "fram... | class class_name[name] begin[{]
method[codec, return_type[type[B]], modifier[protected], parameter[decoder, encoder]] begin[{]
call[.enforceConstraint, parameter[literal["codec"], literal["server"], member[.isServer]]]
call[.enforceConstraint, parameter[literal["codec"], literal... | Keyword[protected] identifier[B] identifier[codec] operator[SEP] identifier[Http2ConnectionDecoder] identifier[decoder] , identifier[Http2ConnectionEncoder] identifier[encoder] operator[SEP] {
identifier[enforceConstraint] operator[SEP] literal[String] , literal[String] , identifier[isServer] operator[SEP] op... |
public static List<CmsProject> getAvailableProjects(CmsObject cms) {
// get all project information
List<CmsProject> allProjects;
try {
String ouFqn = "";
CmsUserSettings settings = new CmsUserSettings(cms);
if (!settings.getListAllProjects()) {
... | class class_name[name] begin[{]
method[getAvailableProjects, return_type[type[List]], modifier[public static], parameter[cms]] begin[{]
local_variable[type[List], allProjects]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CmsProject] operator[>] identifier[getAvailableProjects] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] {
identifier[List] operator[<] identifier[CmsProject] operator[>] identifier[allProjects] operator[SEP] Keyword[try] ... |
public static <V> IntObjectHashMap<V> createPrimitiveIntKeyMap(int initialCapacity, float loadFactor) {
return new IntObjectHashMap<V>(initialCapacity, loadFactor);
} | class class_name[name] begin[{]
method[createPrimitiveIntKeyMap, return_type[type[IntObjectHashMap]], modifier[public static], parameter[initialCapacity, loadFactor]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=initialCapacity, postfix_operators=[], prefix_operators=[], qualifier=, s... | Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[IntObjectHashMap] operator[<] identifier[V] operator[>] identifier[createPrimitiveIntKeyMap] operator[SEP] Keyword[int] identifier[initialCapacity] , Keyword[float] identifier[loadFactor] operator[SEP] {
Keyword[return] Keyword[new... |
private boolean doesHostMatch(String connectionObjHost, String remoteHost) {
boolean match = false;
if (remoteHost.equalsIgnoreCase(connectionObjHost))
match = true;
return match;
} | class class_name[name] begin[{]
method[doesHostMatch, return_type[type[boolean]], modifier[private], parameter[connectionObjHost, remoteHost]] begin[{]
local_variable[type[boolean], match]
if[call[remoteHost.equalsIgnoreCase, parameter[member[.connectionObjHost]]]] begin[{]
... | Keyword[private] Keyword[boolean] identifier[doesHostMatch] operator[SEP] identifier[String] identifier[connectionObjHost] , identifier[String] identifier[remoteHost] operator[SEP] {
Keyword[boolean] identifier[match] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[remoteHost] op... |
private static String toBinaryString(int word)
{
String lsb = Integer.toBinaryString(word);
StringBuilder pad = new StringBuilder();
for (int i = lsb.length(); i < 32; i++) {
pad.append('0');
}
return pad.append(lsb).toString();
} | class class_name[name] begin[{]
method[toBinaryString, return_type[type[String]], modifier[private static], parameter[word]] begin[{]
local_variable[type[String], lsb]
local_variable[type[StringBuilder], pad]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(e... | Keyword[private] Keyword[static] identifier[String] identifier[toBinaryString] operator[SEP] Keyword[int] identifier[word] operator[SEP] {
identifier[String] identifier[lsb] operator[=] identifier[Integer] operator[SEP] identifier[toBinaryString] operator[SEP] identifier[word] operator[SEP] operator[SEP] identif... |
public void render( List<T> cameraImages ) {
if( cameraImages.size() != cameras.size())
throw new IllegalArgumentException("Input camera image count doesn't equal the expected number");
// avoid divide by zero errors by initializing it to a small non-zero value
GImageMiscOps.fill(weightImage,1e-4);
GImageMi... | class class_name[name] begin[{]
method[render, return_type[void], modifier[public], parameter[cameraImages]] begin[{]
if[binary_operation[call[cameraImages.size, parameter[]], !=, call[cameras.size, parameter[]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat... | Keyword[public] Keyword[void] identifier[render] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[cameraImages] operator[SEP] {
Keyword[if] operator[SEP] identifier[cameraImages] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] identifier[cameras] operator[SE... |
@Nonnull
public static EChange removeResponseHeaders (@Nonnull @Nonempty final String sName)
{
ValueEnforcer.notEmpty (sName, "Name");
return s_aRWLock.writeLocked ( () -> s_aResponseHeaderMap.removeHeaders (sName));
} | class class_name[name] begin[{]
method[removeResponseHeaders, return_type[type[EChange]], modifier[public static], parameter[sName]] begin[{]
call[ValueEnforcer.notEmpty, parameter[member[.sName], literal["Name"]]]
return[call[s_aRWLock.writeLocked, parameter[LambdaExpression(body=Metho... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[EChange] identifier[removeResponseHeaders] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[Nonempty] Keyword[final] identifier[String] identifier[sName] operator[SEP] {
identifier[ValueEnforcer] operator[SEP] id... |
public static HsqlProperties parseURL(String url, boolean hasPrefix,
boolean noPath) {
String urlImage = url.toLowerCase(Locale.ENGLISH);
HsqlProperties props = new HsqlProperties();
HsqlProperties extraProps = null;
String ... | class class_name[name] begin[{]
method[parseURL, return_type[type[HsqlProperties]], modifier[public static], parameter[url, hasPrefix, noPath]] begin[{]
local_variable[type[String], urlImage]
local_variable[type[HsqlProperties], props]
local_variable[type[HsqlProperties], extraProps]
... | Keyword[public] Keyword[static] identifier[HsqlProperties] identifier[parseURL] operator[SEP] identifier[String] identifier[url] , Keyword[boolean] identifier[hasPrefix] , Keyword[boolean] identifier[noPath] operator[SEP] {
identifier[String] identifier[urlImage] operator[=] identifier[url] operator[SEP] ident... |
@Override
public boolean incrementToken() throws IOException {
final ArrayDeque<String> tokens = getTokens();
final CharTermAttribute termAtt = getTermAtt();
if (tokens.isEmpty()) {
String[] parts;
skipCounter = 0;
while (input.incrementToken()) {
... | class class_name[name] begin[{]
method[incrementToken, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
local_variable[type[ArrayDeque], tokens]
local_variable[type[CharTermAttribute], termAtt]
if[call[tokens.isEmpty, parameter[]]] begin[{]
local_v... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[incrementToken] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[final] identifier[ArrayDeque] operator[<] identifier[String] operator[>] identifier[tokens] operator[=] identifier[getTokens] operator[SEP] ... |
public void setCirclePitchAlignment(@Property.CIRCLE_PITCH_ALIGNMENT String value) {
PropertyValue propertyValue = circlePitchAlignment(value);
constantPropertyUsageMap.put(PROPERTY_CIRCLE_PITCH_ALIGNMENT, propertyValue);
layer.setProperties(propertyValue);
} | class class_name[name] begin[{]
method[setCirclePitchAlignment, return_type[void], modifier[public], parameter[value]] begin[{]
local_variable[type[PropertyValue], propertyValue]
call[constantPropertyUsageMap.put, parameter[member[.PROPERTY_CIRCLE_PITCH_ALIGNMENT], member[.propertyValue... | Keyword[public] Keyword[void] identifier[setCirclePitchAlignment] operator[SEP] annotation[@] identifier[Property] operator[SEP] identifier[CIRCLE_PITCH_ALIGNMENT] identifier[String] identifier[value] operator[SEP] {
identifier[PropertyValue] identifier[propertyValue] operator[=] identifier[circlePitchAlignment]... |
public static boolean isJsonObject(final String s) {
if (s == null || s.isEmpty()) {
return false;
}
if (s.startsWith("{") || s.startsWith("[")
|| "true".equals(s) || "false".equals(s)
|| "null".equals(s) || decimalPattern.matcher(s).matches()) {
return true;
}
return false... | class class_name[name] begin[{]
method[isJsonObject, return_type[type[boolean]], modifier[public static], parameter[s]] begin[{]
if[binary_operation[binary_operation[member[.s], ==, literal[null]], ||, call[s.isEmpty, parameter[]]]] begin[{]
return[literal[false]]
else begin... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isJsonObject] operator[SEP] Keyword[final] identifier[String] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[||] identifier[s] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operato... |
public long sendBlock(DataOutputStream out, OutputStream baseStream,
DataTransferThrottler throttler) throws IOException {
return sendBlock(out, baseStream, throttler, null);
} | class class_name[name] begin[{]
method[sendBlock, return_type[type[long]], modifier[public], parameter[out, baseStream, throttler]] begin[{]
return[call[.sendBlock, parameter[member[.out], member[.baseStream], member[.throttler], literal[null]]]]
end[}]
END[}] | Keyword[public] Keyword[long] identifier[sendBlock] operator[SEP] identifier[DataOutputStream] identifier[out] , identifier[OutputStream] identifier[baseStream] , identifier[DataTransferThrottler] identifier[throttler] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[sendBlock... |
public final void identifierSuffix() throws RecognitionException {
Token LEFT_SQUARE16=null;
Token RIGHT_SQUARE17=null;
Token DOT18=null;
Token LEFT_SQUARE19=null;
Token RIGHT_SQUARE20=null;
try {
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:589:5: ( ( LEFT_SQUARE RIGHT_SQUARE )=> ( ... | class class_name[name] begin[{]
method[identifierSuffix, return_type[void], modifier[final public], parameter[]] begin[{]
local_variable[type[Token], LEFT_SQUARE16]
local_variable[type[Token], RIGHT_SQUARE17]
local_variable[type[Token], DOT18]
local_variable[type[Token], LEFT_SQ... | Keyword[public] Keyword[final] Keyword[void] identifier[identifierSuffix] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
identifier[Token] identifier[LEFT_SQUARE16] operator[=] Other[null] operator[SEP] identifier[Token] identifier[RIGHT_SQUARE17] operator[=] Other[null] operator[... |
private void addFilters(MpxjTreeNode parentNode, List<Filter> filters)
{
for (Filter field : filters)
{
final Filter f = field;
MpxjTreeNode childNode = new MpxjTreeNode(field)
{
@Override public String toString()
{
return f.getName();
... | class class_name[name] begin[{]
method[addFilters, return_type[void], modifier[private], parameter[parentNode, filters]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(... | Keyword[private] Keyword[void] identifier[addFilters] operator[SEP] identifier[MpxjTreeNode] identifier[parentNode] , identifier[List] operator[<] identifier[Filter] operator[>] identifier[filters] operator[SEP] {
Keyword[for] operator[SEP] identifier[Filter] identifier[field] operator[:] identifier[filters] o... |
public TupleRefBuilder bindings( VarBinding... bindings)
{
for( VarBinding binding : bindings)
{
tupleRef_.addVarBinding( binding);
}
return this;
} | class class_name[name] begin[{]
method[bindings, return_type[type[TupleRefBuilder]], modifier[public], parameter[bindings]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binding, postfix_operators=[], ... | Keyword[public] identifier[TupleRefBuilder] identifier[bindings] operator[SEP] identifier[VarBinding] operator[...] identifier[bindings] operator[SEP] {
Keyword[for] operator[SEP] identifier[VarBinding] identifier[binding] operator[:] identifier[bindings] operator[SEP] {
identifier[tupleRef_] operato... |
private static void updateBaseCalendarNames(List<Pair<ProjectCalendar, BigInteger>> baseCalendars, HashMap<BigInteger, ProjectCalendar> map)
{
for (Pair<ProjectCalendar, BigInteger> pair : baseCalendars)
{
ProjectCalendar cal = pair.getFirst();
BigInteger baseCalendarID = pair.getSecond... | class class_name[name] begin[{]
method[updateBaseCalendarNames, return_type[void], modifier[private static], parameter[baseCalendars, map]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializ... | Keyword[private] Keyword[static] Keyword[void] identifier[updateBaseCalendarNames] operator[SEP] identifier[List] operator[<] identifier[Pair] operator[<] identifier[ProjectCalendar] , identifier[BigInteger] operator[>] operator[>] identifier[baseCalendars] , identifier[HashMap] operator[<] identifier[BigInteger] , ... |
public static RuntimeException wrap(Throwable e) {
if (e instanceof RuntimeException) {
return (RuntimeException) e;
}
return new RuntimeException(e);
} | class class_name[name] begin[{]
method[wrap, return_type[type[RuntimeException]], modifier[public static], parameter[e]] begin[{]
if[binary_operation[member[.e], instanceof, type[RuntimeException]]] begin[{]
return[Cast(expression=MemberReference(member=e, postfix_operators=[], pref... | Keyword[public] Keyword[static] identifier[RuntimeException] identifier[wrap] operator[SEP] identifier[Throwable] identifier[e] operator[SEP] {
Keyword[if] operator[SEP] identifier[e] Keyword[instanceof] identifier[RuntimeException] operator[SEP] {
Keyword[return] operator[SEP] identifier[RuntimeExcep... |
public void setCommandIds(java.util.Collection<String> commandIds) {
if (commandIds == null) {
this.commandIds = null;
return;
}
this.commandIds = new com.amazonaws.internal.SdkInternalList<String>(commandIds);
} | class class_name[name] begin[{]
method[setCommandIds, return_type[void], modifier[public], parameter[commandIds]] begin[{]
if[binary_operation[member[.commandIds], ==, literal[null]]] begin[{]
assign[THIS[member[None.commandIds]], literal[null]]
return[None]
... | Keyword[public] Keyword[void] identifier[setCommandIds] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[commandIds] operator[SEP] {
Keyword[if] operator[SEP] identifier[commandIds] operator[==] Other[null] op... |
@Override
public void trace(final MessageItem messageItem, final Object... parameters) {
if (getLogger().isTraceEnabled(messageItem.getMarker())) {
getLogger().trace(messageItem.getMarker(), messageItem.getText(parameters));
}
} | class class_name[name] begin[{]
method[trace, return_type[void], modifier[public], parameter[messageItem, parameters]] begin[{]
if[call[.getLogger, parameter[]]] begin[{]
call[.getLogger, parameter[]]
else begin[{]
None
end[}]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[trace] operator[SEP] Keyword[final] identifier[MessageItem] identifier[messageItem] , Keyword[final] identifier[Object] operator[...] identifier[parameters] operator[SEP] {
Keyword[if] operator[SEP] identifier[getLogger] operator[SEP] o... |
public Result<String> convertToHtml(File file) throws IOException {
return new InternalDocumentConverter(options).convertToHtml(file).toResult();
} | class class_name[name] begin[{]
method[convertToHtml, return_type[type[Result]], modifier[public], parameter[file]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=options, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, ... | Keyword[public] identifier[Result] operator[<] identifier[String] operator[>] identifier[convertToHtml] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new] identifier[InternalDocumentConverter] operator[SEP] identifier[options] oper... |
private boolean matchesPreviousPasswords(String password, String username,
int historySize) {
// No need to compare if no history is relevant
if (historySize <= 0)
return false;
// Check password against all recorded hashes
List<PasswordRecordModel> history = pa... | class class_name[name] begin[{]
method[matchesPreviousPasswords, return_type[type[boolean]], modifier[private], parameter[password, username, historySize]] begin[{]
if[binary_operation[member[.historySize], <=, literal[0]]] begin[{]
return[literal[false]]
else begin[{]
None
end[... | Keyword[private] Keyword[boolean] identifier[matchesPreviousPasswords] operator[SEP] identifier[String] identifier[password] , identifier[String] identifier[username] , Keyword[int] identifier[historySize] operator[SEP] {
Keyword[if] operator[SEP] identifier[historySize] operator[<=] Other[0] operator[SEP] Key... |
public static ServiceRegistrarFactory load(final String source, final ClassLoader classLoader)
throws ServiceRegistrarLoadingException {
final ServiceLoader<ServiceRegistrarFactory> loader;
try {
loader = ServiceLoader.load(ServiceRegistrarFactory.class, classLoader);
} catch (ServiceConfigurati... | class class_name[name] begin[{]
method[load, return_type[type[ServiceRegistrarFactory]], modifier[public static], parameter[source, classLoader]] begin[{]
local_variable[type[ServiceLoader], loader]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member... | Keyword[public] Keyword[static] identifier[ServiceRegistrarFactory] identifier[load] operator[SEP] Keyword[final] identifier[String] identifier[source] , Keyword[final] identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[ServiceRegistrarLoadingException] {
Keyword[final] ide... |
public void setPartitionerClass(Class<? extends Partitioner> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(PARTITIONER_CLASS_ATTR, cls, Partitioner.class);
} | class class_name[name] begin[{]
method[setPartitionerClass, return_type[void], modifier[public], parameter[cls]] begin[{]
call[.ensureState, parameter[member[JobState.DEFINE]]]
call[conf.setClass, parameter[member[.PARTITIONER_CLASS_ATTR], member[.cls], ClassReference(postfix_op... | Keyword[public] Keyword[void] identifier[setPartitionerClass] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Partitioner] operator[>] identifier[cls] operator[SEP] Keyword[throws] identifier[IllegalStateException] {
identifier[ensureState] operator[SEP] identifier[JobState] o... |
public ResultSet getVersionColumns(String catalog, String schema, String table)
throws SQLException {
String sql =
"SELECT 0 SCOPE, ' ' COLUMN_NAME, 0 DATA_TYPE,"
+ " ' ' TYPE_NAME, 0 COLUMN_SIZE, 0 BUFFER_LENGTH,"
+ " 0 DECIMAL_DIGITS, 0 PSEUDO_COLUMN "
+ " FROM DU... | class class_name[name] begin[{]
method[getVersionColumns, return_type[type[ResultSet]], modifier[public], parameter[catalog, schema, table]] begin[{]
local_variable[type[String], sql]
return[call[.executeQuery, parameter[member[.sql]]]]
end[}]
END[}] | Keyword[public] identifier[ResultSet] identifier[getVersionColumns] operator[SEP] identifier[String] identifier[catalog] , identifier[String] identifier[schema] , identifier[String] identifier[table] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[String] identifier[sql] operator[=] literal... |
protected <OTHER, MISC, X> Specification<ENTITY> buildReferringEntitySpecification(Filter<X> filter,
Function<Root<ENTITY>, SetJoin<MISC, OTHER>> functionToEntity,
... | class class_name[name] begin[{]
method[buildReferringEntitySpecification, return_type[type[Specification]], modifier[protected], parameter[filter, functionToEntity, entityToColumn]] begin[{]
if[binary_operation[call[filter.getEquals, parameter[]], !=, literal[null]]] begin[{]
return... | Keyword[protected] operator[<] identifier[OTHER] , identifier[MISC] , identifier[X] operator[>] identifier[Specification] operator[<] identifier[ENTITY] operator[>] identifier[buildReferringEntitySpecification] operator[SEP] identifier[Filter] operator[<] identifier[X] operator[>] identifier[filter] , identifier[Fun... |
private Chain<ApiResponse> createResponseChain(IAsyncHandler<ApiResponse> responseHandler) {
ResponseChain chain = new ResponseChain(policyImpls, context);
chain.headHandler(responseHandler);
chain.policyFailureHandler(result -> {
if (apiConnectionResponse != null) {
apiC... | class class_name[name] begin[{]
method[createResponseChain, return_type[type[Chain]], modifier[private], parameter[responseHandler]] begin[{]
local_variable[type[ResponseChain], chain]
call[chain.headHandler, parameter[member[.responseHandler]]]
call[chain.policyFailureH... | Keyword[private] identifier[Chain] operator[<] identifier[ApiResponse] operator[>] identifier[createResponseChain] operator[SEP] identifier[IAsyncHandler] operator[<] identifier[ApiResponse] operator[>] identifier[responseHandler] operator[SEP] {
identifier[ResponseChain] identifier[chain] operator[=] Keyword[ne... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.