code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public ServiceFuture<Void> resizeAsync(String poolId, PoolResizeParameter poolResizeParameter, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromHeaderResponse(resizeWithServiceResponseAsync(poolId, poolResizeParameter), serviceCallback);
} | class class_name[name] begin[{]
method[resizeAsync, return_type[type[ServiceFuture]], modifier[public], parameter[poolId, poolResizeParameter, serviceCallback]] begin[{]
return[call[ServiceFuture.fromHeaderResponse, parameter[call[.resizeWithServiceResponseAsync, parameter[member[.poolId], member[.pool... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[resizeAsync] operator[SEP] identifier[String] identifier[poolId] , identifier[PoolResizeParameter] identifier[poolResizeParameter] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Void] operator[>] identif... |
@Override
public TopicSubscriber createSubscriber(Topic topic) throws JMSException
{
return createSubscriber(topic,null,false);
} | class class_name[name] begin[{]
method[createSubscriber, return_type[type[TopicSubscriber]], modifier[public], parameter[topic]] begin[{]
return[call[.createSubscriber, parameter[member[.topic], literal[null], literal[false]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[TopicSubscriber] identifier[createSubscriber] operator[SEP] identifier[Topic] identifier[topic] operator[SEP] Keyword[throws] identifier[JMSException] {
Keyword[return] identifier[createSubscriber] operator[SEP] identifier[topic] , Other[null] , lit... |
public Observable<ServiceResponseWithHeaders<Page<CloudJobSchedule>, JobScheduleListHeaders>> listNextWithServiceResponseAsync(final String nextPageLink, final JobScheduleListNextOptions jobScheduleListNextOptions) {
return listNextSinglePageAsync(nextPageLink, jobScheduleListNextOptions)
.concatMap... | class class_name[name] begin[{]
method[listNextWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink, jobScheduleListNextOptions]] begin[{]
return[call[.listNextSinglePageAsync, parameter[member[.nextPageLink], member[.jobScheduleListNextOptions]]]]
end[}... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponseWithHeaders] operator[<] identifier[Page] operator[<] identifier[CloudJobSchedule] operator[>] , identifier[JobScheduleListHeaders] operator[>] operator[>] identifier[listNextWithServiceResponseAsync] operator[SEP] Keyword[final] identifier[S... |
private static String getVersionFromPom() {
final String absolutePath = new File(BuildVersion.class.getResource(BuildVersion.class
.getSimpleName() + ".class").getPath())
.getParentFile().getParentFile().getParentFile().getParentFile().getParentFile()
.getParentF... | class class_name[name] begin[{]
method[getVersionFromPom, return_type[type[String]], modifier[private static], parameter[]] begin[{]
local_variable[type[String], absolutePath]
local_variable[type[File], file]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Vari... | Keyword[private] Keyword[static] identifier[String] identifier[getVersionFromPom] operator[SEP] operator[SEP] {
Keyword[final] identifier[String] identifier[absolutePath] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[BuildVersion] operator[SEP] Keyword[class] operator[SEP] identifier[getReso... |
public static Integer[] valuesOf(int[] array) {
Integer[] dest = new Integer[array.length];
for (int i = 0; i < array.length; i++) {
dest[i] = Integer.valueOf(array[i]);
}
return dest;
} | class class_name[name] begin[{]
method[valuesOf, return_type[type[Integer]], modifier[public static], parameter[array]] begin[{]
local_variable[type[Integer], dest]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(mem... | Keyword[public] Keyword[static] identifier[Integer] operator[SEP] operator[SEP] identifier[valuesOf] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[array] operator[SEP] {
identifier[Integer] operator[SEP] operator[SEP] identifier[dest] operator[=] Keyword[new] identifier[Integer] operator[SEP]... |
@Override
public void run() {
try {
waitUntilServerIsInitialized();
recoveryLog.log("Start recovery.");
while (true) {
if (shutdown) {
break;
}
ConsumerJournalEntry cje = reader.readJournalEntry();
... | class class_name[name] begin[{]
method[run, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=waitUntilServerIsInitialized, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_argumen... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] {
Keyword[try] {
identifier[waitUntilServerIsInitialized] operator[SEP] operator[SEP] operator[SEP] identifier[recoveryLog] operator[SEP] identifier[log] operator[SEP] literal[String] operator[... |
public Graphics2D renderContent()
{
View view = null;
ViewFactory factory = getEditorKit().getViewFactory();
if (factory instanceof SwingBoxViewFactory)
{
view = ((SwingBoxViewFactory) factory).getViewport();
}
if (view != null)
{
int ... | class class_name[name] begin[{]
method[renderContent, return_type[type[Graphics2D]], modifier[public], parameter[]] begin[{]
local_variable[type[View], view]
local_variable[type[ViewFactory], factory]
if[binary_operation[member[.factory], instanceof, type[SwingBoxViewFactory]]] ... | Keyword[public] identifier[Graphics2D] identifier[renderContent] operator[SEP] operator[SEP] {
identifier[View] identifier[view] operator[=] Other[null] operator[SEP] identifier[ViewFactory] identifier[factory] operator[=] identifier[getEditorKit] operator[SEP] operator[SEP] operator[SEP] identifier[getViewFacto... |
private void setFormat() {
if(getMinorTickSpacing() == (int) getMinorTickSpacing()){
format = "%.0f";
} else {
// BigDecimal dec = new BigDecimal(getMinorTickSpacing());
// String s = String.valueOf(getMinorTickSpacing());
// int precision = s.substring(s.lastIndexOf('.')+1).length();
// fo... | class class_name[name] begin[{]
method[setFormat, return_type[void], modifier[private], parameter[]] begin[{]
if[binary_operation[call[.getMinorTickSpacing, parameter[]], ==, Cast(expression=MethodInvocation(arguments=[], member=getMinorTickSpacing, postfix_operators=[], prefix_operators=[], qu... | Keyword[private] Keyword[void] identifier[setFormat] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[getMinorTickSpacing] operator[SEP] operator[SEP] operator[==] operator[SEP] Keyword[int] operator[SEP] identifier[getMinorTickSpacing] operator[SEP] operator[SEP] operator[SEP] {
ide... |
@Nonnull
public static <T> LObjDblConsumerBuilder<T> objDblConsumer(Consumer<LObjDblConsumer<T>> consumer) {
return new LObjDblConsumerBuilder(consumer);
} | class class_name[name] begin[{]
method[objDblConsumer, return_type[type[LObjDblConsumerBuilder]], modifier[public static], parameter[consumer]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, cons... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LObjDblConsumerBuilder] operator[<] identifier[T] operator[>] identifier[objDblConsumer] operator[SEP] identifier[Consumer] operator[<] identifier[LObjDblConsumer] operator[<] identifier[T] operator[>] ope... |
public TableWriteItems addHashAndRangePrimaryKeysToDelete(
String hashKeyName, String rangeKeyName,
Object ... alternatingHashRangeKeyValues) {
if (alternatingHashRangeKeyValues.length % 2 != 0) {
throw new IllegalArgumentException(
"The multiple hash and rang... | class class_name[name] begin[{]
method[addHashAndRangePrimaryKeysToDelete, return_type[type[TableWriteItems]], modifier[public], parameter[hashKeyName, rangeKeyName, alternatingHashRangeKeyValues]] begin[{]
if[binary_operation[binary_operation[member[alternatingHashRangeKeyValues.length], %, li... | Keyword[public] identifier[TableWriteItems] identifier[addHashAndRangePrimaryKeysToDelete] operator[SEP] identifier[String] identifier[hashKeyName] , identifier[String] identifier[rangeKeyName] , identifier[Object] operator[...] identifier[alternatingHashRangeKeyValues] operator[SEP] {
Keyword[if] operator[SEP... |
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties)
{
converter = new DateConverter((Converter)converter, DBConstants.DATE_FORMAT);
return super.setupDefaultView(itsLocation, targetScre... | class class_name[name] begin[{]
method[setupDefaultView, return_type[type[ScreenComponent]], modifier[public], parameter[itsLocation, targetScreen, converter, iDisplayFieldDesc, properties]] begin[{]
assign[member[.converter], ClassCreator(arguments=[Cast(expression=MemberReference(member=conve... | Keyword[public] identifier[ScreenComponent] identifier[setupDefaultView] operator[SEP] identifier[ScreenLoc] identifier[itsLocation] , identifier[ComponentParent] identifier[targetScreen] , identifier[Convert] identifier[converter] , Keyword[int] identifier[iDisplayFieldDesc] , identifier[Map] operator[<] identifie... |
public Vector3f rotateAxis(float angle, float x, float y, float z) {
return rotateAxis(angle, x, y, z, thisOrNew());
} | class class_name[name] begin[{]
method[rotateAxis, return_type[type[Vector3f]], modifier[public], parameter[angle, x, y, z]] begin[{]
return[call[.rotateAxis, parameter[member[.angle], member[.x], member[.y], member[.z], call[.thisOrNew, parameter[]]]]]
end[}]
END[}] | Keyword[public] identifier[Vector3f] identifier[rotateAxis] operator[SEP] Keyword[float] identifier[angle] , Keyword[float] identifier[x] , Keyword[float] identifier[y] , Keyword[float] identifier[z] operator[SEP] {
Keyword[return] identifier[rotateAxis] operator[SEP] identifier[angle] , identifier[x] , ide... |
protected RegistryAuth registryAuth() throws MojoExecutionException {
if (settings != null && serverId != null) {
final Server server = settings.getServer(serverId);
if (server != null) {
final RegistryAuth.Builder registryAuthBuilder = RegistryAuth.builder();
final String username = se... | class class_name[name] begin[{]
method[registryAuth, return_type[type[RegistryAuth]], modifier[protected], parameter[]] begin[{]
if[binary_operation[binary_operation[member[.settings], !=, literal[null]], &&, binary_operation[member[.serverId], !=, literal[null]]]] begin[{]
local_va... | Keyword[protected] identifier[RegistryAuth] identifier[registryAuth] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] {
Keyword[if] operator[SEP] identifier[settings] operator[!=] Other[null] operator[&&] identifier[serverId] operator[!=] Other[null] operator[SEP] {
Keywo... |
private Polygon parsePolygon(ValueGetter data, boolean haveZ, boolean haveM, int srid) {
int holecount = data.getInt() - 1;
LinearRing[] rings = new LinearRing[holecount];
LinearRing shell = this.parseLinearRing(data, haveZ, haveM);
shell.setSRID(srid);
for(int i = 0; i < holeco... | class class_name[name] begin[{]
method[parsePolygon, return_type[type[Polygon]], modifier[private], parameter[data, haveZ, haveM, srid]] begin[{]
local_variable[type[int], holecount]
local_variable[type[LinearRing], rings]
local_variable[type[LinearRing], shell]
call[she... | Keyword[private] identifier[Polygon] identifier[parsePolygon] operator[SEP] identifier[ValueGetter] identifier[data] , Keyword[boolean] identifier[haveZ] , Keyword[boolean] identifier[haveM] , Keyword[int] identifier[srid] operator[SEP] {
Keyword[int] identifier[holecount] operator[=] identifier[data] operato... |
protected final JSerializerType getKeySerializerFromType( JType type, boolean subtype, boolean useDefault ) throws
UnsupportedTypeException, UnableToCompleteException {
JSerializerType.Builder builder = new JSerializerType.Builder().type( type );
if ( null != type.isWildcard() ) {
... | class class_name[name] begin[{]
method[getKeySerializerFromType, return_type[type[JSerializerType]], modifier[final protected], parameter[type, subtype, useDefault]] begin[{]
local_variable[type[JSerializerType], builder]
if[binary_operation[literal[null], !=, call[type.isWildcard, para... | Keyword[protected] Keyword[final] identifier[JSerializerType] identifier[getKeySerializerFromType] operator[SEP] identifier[JType] identifier[type] , Keyword[boolean] identifier[subtype] , Keyword[boolean] identifier[useDefault] operator[SEP] Keyword[throws] identifier[UnsupportedTypeException] , identifier[UnableTo... |
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
this.metricReporter.cancel(true);
this.metrics.close();
this.rolloverProcessor.close();
this.writeProcessor.close();
// Close active ledger.
WriteLedger writeLedger;
... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
if[THIS[member[None.closed]call[None.getAndSet, parameter[literal[true]]]]] begin[{]
THIS[member[None.metricReporter]call[None.cancel, parameter[literal[true]]]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[closed] operator[SEP] identifier[getAndSet] operator[SEP] literal[boolean] operator[SEP] operator[SEP] {
Keyword... |
@Override
public CommerceSubscriptionEntry fetchByG_U_Last(long groupId, long userId,
OrderByComparator<CommerceSubscriptionEntry> orderByComparator) {
int count = countByG_U(groupId, userId);
if (count == 0) {
return null;
}
List<CommerceSubscriptionEntry> list = findByG_U(groupId, userId,
count - ... | class class_name[name] begin[{]
method[fetchByG_U_Last, return_type[type[CommerceSubscriptionEntry]], modifier[public], parameter[groupId, userId, orderByComparator]] begin[{]
local_variable[type[int], count]
if[binary_operation[member[.count], ==, literal[0]]] begin[{]
retu... | annotation[@] identifier[Override] Keyword[public] identifier[CommerceSubscriptionEntry] identifier[fetchByG_U_Last] operator[SEP] Keyword[long] identifier[groupId] , Keyword[long] identifier[userId] , identifier[OrderByComparator] operator[<] identifier[CommerceSubscriptionEntry] operator[>] identifier[orderByCompar... |
public static IdentifierExtension findFirst(Collection<? extends Extension> extensions)
{
for (Extension extension : extensions)
{
if (IDENTIFIER_EXTENSION_ID == extension.getId()) return (IdentifierExtension)extension;
}
return null;
} | class class_name[name] begin[{]
method[findFirst, return_type[type[IdentifierExtension]], modifier[public static], parameter[extensions]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=IDENTIFIER_EXTENSION_ID, post... | Keyword[public] Keyword[static] identifier[IdentifierExtension] identifier[findFirst] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[Extension] operator[>] identifier[extensions] operator[SEP] {
Keyword[for] operator[SEP] identifier[Extension] identifier[extension] opera... |
private void determineChangesSince(File file, long lastScanTime) {
try {
if (GlobalConfiguration.verboseMode && log.isLoggable(Level.INFO)) {
log.info("Firing file changed event " + file);
}
listener.fileChanged(file);
if (file.isDirectory()) {
File[] filesOfInterest = file.listFiles(new RecentCha... | class class_name[name] begin[{]
method[determineChangesSince, return_type[void], modifier[private], parameter[file, lastScanTime]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=verboseMode, postfix_operators=[], prefix_operators=[], qualifier=GlobalC... | Keyword[private] Keyword[void] identifier[determineChangesSince] operator[SEP] identifier[File] identifier[file] , Keyword[long] identifier[lastScanTime] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[GlobalConfiguration] operator[SEP] identifier[verboseMode] operator[&&] identif... |
@SuppressWarnings("unchecked")
static <K, V> Map<K, V> dynamicallyCastMap(Map<?, ?> map,
Class<K> keyType,
Class<V> valueType) {
if (map == null) {
return null; ... | class class_name[name] begin[{]
method[dynamicallyCastMap, return_type[type[Map]], modifier[static], parameter[map, keyType, valueType]] begin[{]
if[binary_operation[member[.map], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
As... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[dynamicallyCastMap] operator[SEP] identifier[Map] operator[<] operator[?] , ope... |
public GoogleImage updateName(GoogleImage googleImage, String name, String urlName) {
googleImage.setName(name);
googleImage.setUrlName(urlName);
getEntityManager().persist(googleImage);
return googleImage;
} | class class_name[name] begin[{]
method[updateName, return_type[type[GoogleImage]], modifier[public], parameter[googleImage, name, urlName]] begin[{]
call[googleImage.setName, parameter[member[.name]]]
call[googleImage.setUrlName, parameter[member[.urlName]]]
call... | Keyword[public] identifier[GoogleImage] identifier[updateName] operator[SEP] identifier[GoogleImage] identifier[googleImage] , identifier[String] identifier[name] , identifier[String] identifier[urlName] operator[SEP] {
identifier[googleImage] operator[SEP] identifier[setName] operator[SEP] identifier[name] op... |
public static Version resolveVersion(MinecraftDirectory minecraftDir, String version) throws IOException {
Objects.requireNonNull(minecraftDir);
Objects.requireNonNull(version);
if (doesVersionExist(minecraftDir, version)) {
try {
return getVersionParser().parseVersion(resolveVersionHierarchy(version, min... | class class_name[name] begin[{]
method[resolveVersion, return_type[type[Version]], modifier[public static], parameter[minecraftDir, version]] begin[{]
call[Objects.requireNonNull, parameter[member[.minecraftDir]]]
call[Objects.requireNonNull, parameter[member[.version]]]
... | Keyword[public] Keyword[static] identifier[Version] identifier[resolveVersion] operator[SEP] identifier[MinecraftDirectory] identifier[minecraftDir] , identifier[String] identifier[version] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Objects] operator[SEP] identifier[requireNonNull] opera... |
@Override
public CreateRequestValidatorResult createRequestValidator(CreateRequestValidatorRequest request) {
request = beforeClientExecution(request);
return executeCreateRequestValidator(request);
} | class class_name[name] begin[{]
method[createRequestValidator, return_type[type[CreateRequestValidatorResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeCreateRequestValidator, ... | annotation[@] identifier[Override] Keyword[public] identifier[CreateRequestValidatorResult] identifier[createRequestValidator] operator[SEP] identifier[CreateRequestValidatorRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[req... |
public void marshall(StreamDescription streamDescription, ProtocolMarshaller protocolMarshaller) {
if (streamDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(streamDescription.getStreamN... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[streamDescription, protocolMarshaller]] begin[{]
if[binary_operation[member[.streamDescription], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(pos... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[StreamDescription] identifier[streamDescription] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[streamDescription] operator[==] Other[null] operator[SEP] {
... |
int accumDefaultEntity(
java.io.Writer writer,
char ch,
int i,
char[] chars,
int len,
boolean fromTextNode,
boolean escLF)
throws IOException
{
if (!escLF && CharInfo.S_LINEFEED == ch)
{
writer.write(m_lineSep, 0, m_lineSep... | class class_name[name] begin[{]
method[accumDefaultEntity, return_type[type[int]], modifier[default], parameter[writer, ch, i, chars, len, fromTextNode, escLF]] begin[{]
if[binary_operation[member[.escLF], &&, binary_operation[member[CharInfo.S_LINEFEED], ==, member[.ch]]]] begin[{]
... | Keyword[int] identifier[accumDefaultEntity] operator[SEP] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[Writer] identifier[writer] , Keyword[char] identifier[ch] , Keyword[int] identifier[i] , Keyword[char] operator[SEP] operator[SEP] identifier[chars] , Keyword[int] identifier[len] , Keyw... |
private static long floorDiv(long x, long y) {
return BigDecimal.valueOf(x).divide(BigDecimal.valueOf(y), 0, RoundingMode.FLOOR).longValue();
} | class class_name[name] begin[{]
method[floorDiv, return_type[type[long]], modifier[private static], parameter[x, y]] begin[{]
return[call[BigDecimal.valueOf, parameter[member[.x]]]]
end[}]
END[}] | Keyword[private] Keyword[static] Keyword[long] identifier[floorDiv] operator[SEP] Keyword[long] identifier[x] , Keyword[long] identifier[y] operator[SEP] {
Keyword[return] identifier[BigDecimal] operator[SEP] identifier[valueOf] operator[SEP] identifier[x] operator[SEP] operator[SEP] identifier[divide] operator... |
public static int issueDeleteDurableRequest(
MessageProcessor MP,
String subName,
String userName,
SIBUuid8 remoteMEUuid)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "issueDeleteDurableRequest", new Object[] {MP, subName... | class class_name[name] begin[{]
method[issueDeleteDurableRequest, return_type[type[int]], modifier[public static], parameter[MP, subName, userName, remoteMEUuid]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin... | Keyword[public] Keyword[static] Keyword[int] identifier[issueDeleteDurableRequest] operator[SEP] identifier[MessageProcessor] identifier[MP] , identifier[String] identifier[subName] , identifier[String] identifier[userName] , identifier[SIBUuid8] identifier[remoteMEUuid] operator[SEP] Keyword[throws] identifier[SIRe... |
@Override
protected Collection<Object> elementsOf(Object facetValue) {
int length = Array.getLength(facetValue);
List<Object> list = new ArrayList<>(length);
for (int i = 0; i < length; i++) {
list.add(Array.get(facetValue, i));
}
return list;
} | class class_name[name] begin[{]
method[elementsOf, return_type[type[Collection]], modifier[protected], parameter[facetValue]] begin[{]
local_variable[type[int], length]
local_variable[type[List], list]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expressi... | annotation[@] identifier[Override] Keyword[protected] identifier[Collection] operator[<] identifier[Object] operator[>] identifier[elementsOf] operator[SEP] identifier[Object] identifier[facetValue] operator[SEP] {
Keyword[int] identifier[length] operator[=] identifier[Array] operator[SEP] identifier[getLength] ... |
@Deprecated
@SuppressWarnings("deprecation")
public void push(String eventName, HashMap<String, Object> chargeDetails,
ArrayList<HashMap<String, Object>> items)
throws InvalidEventNameException {
// This method is for only charged events
if (!eventName.equals(Con... | class class_name[name] begin[{]
method[push, return_type[void], modifier[public], parameter[eventName, chargeDetails, items]] begin[{]
if[call[eventName.equals, parameter[member[Constants.CHARGED_EVENT]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op... | annotation[@] identifier[Deprecated] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[push] operator[SEP] identifier[String] identifier[eventName] , identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] identi... |
public void setAutomationExecutionMetadataList(java.util.Collection<AutomationExecutionMetadata> automationExecutionMetadataList) {
if (automationExecutionMetadataList == null) {
this.automationExecutionMetadataList = null;
return;
}
this.automationExecutionMetadataList ... | class class_name[name] begin[{]
method[setAutomationExecutionMetadataList, return_type[void], modifier[public], parameter[automationExecutionMetadataList]] begin[{]
if[binary_operation[member[.automationExecutionMetadataList], ==, literal[null]]] begin[{]
assign[THIS[mem... | Keyword[public] Keyword[void] identifier[setAutomationExecutionMetadataList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[AutomationExecutionMetadata] operator[>] identifier[automationExecutionMetadataList] operator[SEP] {
Keyword[if] o... |
public static void log (@Nonnull final Logger aLogger,
@Nonnull final IHasErrorLevel aErrorLevelProvider,
@Nonnull final String sMsg)
{
log (aLogger, aErrorLevelProvider.getErrorLevel (), sMsg, null);
} | class class_name[name] begin[{]
method[log, return_type[void], modifier[public static], parameter[aLogger, aErrorLevelProvider, sMsg]] begin[{]
call[.log, parameter[member[.aLogger], call[aErrorLevelProvider.getErrorLevel, parameter[]], member[.sMsg], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[log] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Logger] identifier[aLogger] , annotation[@] identifier[Nonnull] Keyword[final] identifier[IHasErrorLevel] identifier[aErrorLevelProvider] , annotation[@] identifier[Nonnull] Keyword[... |
static File resolveAbsolutely(String pathToResolve, MavenProject project) {
// avoid an NPE if the Maven project is not needed by DockerPathUtil
return DockerPathUtil.resolveAbsolutely(pathToResolve,
(project == null) ? null : project.getBasedir().getAbsolutePath());
} | class class_name[name] begin[{]
method[resolveAbsolutely, return_type[type[File]], modifier[static], parameter[pathToResolve, project]] begin[{]
return[call[DockerPathUtil.resolveAbsolutely, parameter[member[.pathToResolve], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=pr... | Keyword[static] identifier[File] identifier[resolveAbsolutely] operator[SEP] identifier[String] identifier[pathToResolve] , identifier[MavenProject] identifier[project] operator[SEP] {
Keyword[return] identifier[DockerPathUtil] operator[SEP] identifier[resolveAbsolutely] operator[SEP] identifier[pathToResolve] ... |
public Object send( String... args ) throws Exception
{
assertArgumentsCount( args );
return field.get( target );
} | class class_name[name] begin[{]
method[send, return_type[type[Object]], modifier[public], parameter[args]] begin[{]
call[.assertArgumentsCount, parameter[member[.args]]]
return[call[field.get, parameter[member[.target]]]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[send] operator[SEP] identifier[String] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[assertArgumentsCount] operator[SEP] identifier[args] operator[SEP] operator[SEP] Keyword[return] identifier[field] operator[SEP] ide... |
private Number readNumber() throws IOException {
StringBuffer sb = new StringBuffer();
int l = lineNo;
int c = colNo;
while (isDigitChar(lastChar))
{
sb.append((char)lastChar);
readChar();
}
// convert it!
... | class class_name[name] begin[{]
method[readNumber, return_type[type[Number]], modifier[private], parameter[]] begin[{]
local_variable[type[StringBuffer], sb]
local_variable[type[int], l]
local_variable[type[int], c]
while[call[.isDigitChar, parameter[member[.lastChar]]]]... | Keyword[private] identifier[Number] identifier[readNumber] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[StringBuffer] identifier[sb] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[l] operator[=] identifier[li... |
public int getScrollableBlockIncrement (
Rectangle visibleRect, int orientation, int direction)
{
if (orientation == SwingConstants.HORIZONTAL) {
return visibleRect.width;
} else {
return visibleRect.height;
}
} | class class_name[name] begin[{]
method[getScrollableBlockIncrement, return_type[type[int]], modifier[public], parameter[visibleRect, orientation, direction]] begin[{]
if[binary_operation[member[.orientation], ==, member[SwingConstants.HORIZONTAL]]] begin[{]
return[member[visibleRect... | Keyword[public] Keyword[int] identifier[getScrollableBlockIncrement] operator[SEP] identifier[Rectangle] identifier[visibleRect] , Keyword[int] identifier[orientation] , Keyword[int] identifier[direction] operator[SEP] {
Keyword[if] operator[SEP] identifier[orientation] operator[==] identifier[SwingConstants] ... |
@Override
public boolean getIsReplicated() {
for (StmtTableScan tableScan : m_subqueryStmt.allScans()) {
if ( ! tableScan.getIsReplicated()) {
return false;
}
}
return true;
} | class class_name[name] begin[{]
method[getIsReplicated, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getIsReplicated, postfix_operators=[], prefix_operators=['!'],... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[getIsReplicated] operator[SEP] operator[SEP] {
Keyword[for] operator[SEP] identifier[StmtTableScan] identifier[tableScan] operator[:] identifier[m_subqueryStmt] operator[SEP] identifier[allScans] operator[SEP] operator[SEP] operator[... |
public synchronized static SSLSocketFactory getTrustingSSLSocketFactory() {
if (socketFactory != null) return socketFactory;
TrustManager[] trustManagers = new TrustManager[] { new TrustEverythingSSLTrustManager() };
SSLContext sc;
try {
sc = SSLContext.getInstance("SSL");
... | class class_name[name] begin[{]
method[getTrustingSSLSocketFactory, return_type[type[SSLSocketFactory]], modifier[synchronized public static], parameter[]] begin[{]
if[binary_operation[member[.socketFactory], !=, literal[null]]] begin[{]
return[member[.socketFactory]]
else begin[{]
None... | Keyword[public] Keyword[synchronized] Keyword[static] identifier[SSLSocketFactory] identifier[getTrustingSSLSocketFactory] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[socketFactory] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[socketFactory] operator[SEP] identifier[Tr... |
static DiscordianDate create(int prolepticYear, int month, int dayOfMonth) {
DiscordianChronology.YEAR_RANGE.checkValidValue(prolepticYear, YEAR);
DiscordianChronology.MONTH_OF_YEAR_RANGE.checkValidValue(month, MONTH_OF_YEAR);
DiscordianChronology.DAY_OF_MONTH_RANGE.checkValidValue(dayOfMonth, D... | class class_name[name] begin[{]
method[create, return_type[type[DiscordianDate]], modifier[static], parameter[prolepticYear, month, dayOfMonth]] begin[{]
call[DiscordianChronology.YEAR_RANGE.checkValidValue, parameter[member[.prolepticYear], member[.YEAR]]]
call[DiscordianChrono... | Keyword[static] identifier[DiscordianDate] identifier[create] operator[SEP] Keyword[int] identifier[prolepticYear] , Keyword[int] identifier[month] , Keyword[int] identifier[dayOfMonth] operator[SEP] {
identifier[DiscordianChronology] operator[SEP] identifier[YEAR_RANGE] operator[SEP] identifier[checkValidValu... |
@Override
public RecordStreamWithMetadata<DO, SO> processStream(RecordStreamWithMetadata<DI, SI> inputStream,
WorkUnitState workUnitState) throws SchemaConversionException {
return this.embeddedConverter.processStream(inputStream, workUnitState);
} | class class_name[name] begin[{]
method[processStream, return_type[type[RecordStreamWithMetadata]], modifier[public], parameter[inputStream, workUnitState]] begin[{]
return[THIS[member[None.embeddedConverter]call[None.processStream, parameter[member[.inputStream], member[.workUnitState]]]]]
end[}]
E... | annotation[@] identifier[Override] Keyword[public] identifier[RecordStreamWithMetadata] operator[<] identifier[DO] , identifier[SO] operator[>] identifier[processStream] operator[SEP] identifier[RecordStreamWithMetadata] operator[<] identifier[DI] , identifier[SI] operator[>] identifier[inputStream] , identifier[Wor... |
protected static Function<Triple, Triple> convertMementoReferences(
final IdentifierConverter<Resource, FedoraResource> translator,
final IdentifierConverter<Resource, FedoraResource> internalTranslator) {
return t -> {
final String subjectURI = t.getSubject().getURI();
... | class class_name[name] begin[{]
method[convertMementoReferences, return_type[type[Function]], modifier[static protected], parameter[translator, internalTranslator]] begin[{]
return[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer... | Keyword[protected] Keyword[static] identifier[Function] operator[<] identifier[Triple] , identifier[Triple] operator[>] identifier[convertMementoReferences] operator[SEP] Keyword[final] identifier[IdentifierConverter] operator[<] identifier[Resource] , identifier[FedoraResource] operator[>] identifier[translator] , ... |
private static Environment of(@NonNull InputStream is) {
try {
var environment = new Environment();
environment.props.load(new InputStreamReader(is, "UTF-8"));
return environment;
} catch (IOException e) {
throw new IllegalStateException(e);
} fina... | class class_name[name] begin[{]
method[of, return_type[type[Environment]], modifier[private static], parameter[is]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arg... | Keyword[private] Keyword[static] identifier[Environment] identifier[of] operator[SEP] annotation[@] identifier[NonNull] identifier[InputStream] identifier[is] operator[SEP] {
Keyword[try] {
identifier[var] identifier[environment] operator[=] Keyword[new] identifier[Environment] operator[SEP] operator[... |
public void ready(VirtualConnection readyVc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "ready", readyVc);
AcceptListener acceptListener = (AcceptListener) config.getPropertyBag()
.get(JFapChannelFactory.ACCEPT_LISTENER);... | class class_name[name] begin[{]
method[ready, return_type[void], modifier[public], parameter[readyVc]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[THIS[], member[.... | Keyword[public] Keyword[void] identifier[ready] operator[SEP] identifier[VirtualConnection] identifier[readyVc] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEnt... |
@Override
public String getLabel() {
if (label != null)
// LIGHTWEIGHT EDGE
return label;
else if (rawElement != null) {
if (settings != null && settings.isUseClassForEdgeLabel()) {
final String clsName = getRecord().getClassName();
if (!OrientEdgeType.CLASS_NAME.equals(clsNa... | class class_name[name] begin[{]
method[getLabel, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.label], !=, literal[null]]] begin[{]
return[member[.label]]
else begin[{]
if[binary_operation[member[.rawElement], !=, literal[null... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getLabel] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[label] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[label] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[rawElement... |
private synchronized boolean pessimisticInsert(
InsertStack stack,
Object new1)
{
_vno++;
if ((_vno&1) == 1)
{
if (root() == null)
{
ad... | class class_name[name] begin[{]
method[pessimisticInsert, return_type[type[boolean]], modifier[synchronized private], parameter[stack, new1]] begin[{]
member[._vno]
if[binary_operation[binary_operation[member[._vno], &, literal[1]], ==, literal[1]]] begin[{]
... | Keyword[private] Keyword[synchronized] Keyword[boolean] identifier[pessimisticInsert] operator[SEP] identifier[InsertStack] identifier[stack] , identifier[Object] identifier[new1] operator[SEP] {
identifier[_vno] operator[++] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[_vno] operator[&] Oth... |
protected Http buildHttpPostAuthRequest() {
return new Http(HttpMethod.POST.name(),
duoProperties.getDuoApiHost(),
String.format("/auth/v%s/auth", AUTH_API_VERSION));
} | class class_name[name] begin[{]
method[buildHttpPostAuthRequest, return_type[type[Http]], modifier[protected], parameter[]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=name, postfix_operators=[], prefix_operators=[], qualifier=HttpMethod.POST, selectors=[], type_argume... | Keyword[protected] identifier[Http] identifier[buildHttpPostAuthRequest] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[Http] operator[SEP] identifier[HttpMethod] operator[SEP] identifier[POST] operator[SEP] identifier[name] operator[SEP] operator[SEP] , identifier[duoProperties] operator... |
public void setSeqnum(Integer newSeqnum) {
Integer oldSeqnum = seqnum;
seqnum = newSeqnum;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.UP_3I_FINISHING_OPERATION__SEQNUM, oldSeqnum, seqnum));
} | class class_name[name] begin[{]
method[setSeqnum, return_type[void], modifier[public], parameter[newSeqnum]] begin[{]
local_variable[type[Integer], oldSeqnum]
assign[member[.seqnum], member[.newSeqnum]]
if[call[.eNotificationRequired, parameter[]]] begin[{]
c... | Keyword[public] Keyword[void] identifier[setSeqnum] operator[SEP] identifier[Integer] identifier[newSeqnum] operator[SEP] {
identifier[Integer] identifier[oldSeqnum] operator[=] identifier[seqnum] operator[SEP] identifier[seqnum] operator[=] identifier[newSeqnum] operator[SEP] Keyword[if] operator[SEP] identifie... |
public void setPort(int p_port) throws MalformedURIException
{
if (p_port >= 0 && p_port <= 65535)
{
if (m_host == null)
{
throw new MalformedURIException(
XMLMessages.createXMLMessage(XMLErrorResources.ER_PORT_WHEN_HOST_NULL, null)); //"Port cannot be set when host is null!");
... | class class_name[name] begin[{]
method[setPort, return_type[void], modifier[public], parameter[p_port]] begin[{]
if[binary_operation[binary_operation[member[.p_port], >=, literal[0]], &&, binary_operation[member[.p_port], <=, literal[65535]]]] begin[{]
if[binary_operatio... | Keyword[public] Keyword[void] identifier[setPort] operator[SEP] Keyword[int] identifier[p_port] operator[SEP] Keyword[throws] identifier[MalformedURIException] {
Keyword[if] operator[SEP] identifier[p_port] operator[>=] Other[0] operator[&&] identifier[p_port] operator[<=] Other[65535] operator[SEP] {
... |
private int primUpdate(IPermission perm, PreparedStatement ps) throws Exception {
java.sql.Timestamp ts = null;
// UPDATE COLUMNS:
ps.clearParameters();
// TYPE:
if (perm.getType() == null) {
ps.setNull(1, Types.VARCHAR);
} else {
ps.setString(1,... | class class_name[name] begin[{]
method[primUpdate, return_type[type[int]], modifier[private], parameter[perm, ps]] begin[{]
local_variable[type[java], ts]
call[ps.clearParameters, parameter[]]
if[binary_operation[call[perm.getType, parameter[]], ==, literal[null]]] begin... | Keyword[private] Keyword[int] identifier[primUpdate] operator[SEP] identifier[IPermission] identifier[perm] , identifier[PreparedStatement] identifier[ps] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[Timestamp] identifier[ts] opera... |
public static int[] today() {
Calendar today = Calendar.getInstance();
int year = today.get(Calendar.YEAR);
int month = today.get(Calendar.MONTH) + 1;
int date = today.get(Calendar.DATE);
return calElement(year, month, date);
} | class class_name[name] begin[{]
method[today, return_type[type[int]], modifier[public static], parameter[]] begin[{]
local_variable[type[Calendar], today]
local_variable[type[int], year]
local_variable[type[int], month]
local_variable[type[int], date]
return[call[.calEle... | Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[today] operator[SEP] operator[SEP] {
identifier[Calendar] identifier[today] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[year] operator[=... |
public static void commandLineCompile(String[] args, boolean lookupUnnamedFiles) throws Exception {
Options options = createCompilationOptions();
CommandLineParser cliParser = new GroovyInternalPosixParser();
CommandLine cli;
cli = cliParser.parse(options, args);
if (cli.hasOp... | class class_name[name] begin[{]
method[commandLineCompile, return_type[void], modifier[public static], parameter[args, lookupUnnamedFiles]] begin[{]
local_variable[type[Options], options]
local_variable[type[CommandLineParser], cliParser]
local_variable[type[CommandLine], cli]
... | Keyword[public] Keyword[static] Keyword[void] identifier[commandLineCompile] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] , Keyword[boolean] identifier[lookupUnnamedFiles] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[Options] identifier[options] operator[=] i... |
public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
try {
int _type = C_STYLE_SINGLE_LINE_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:319:5: ( '//' (~ ( '\\r' | '\\n' ) )* ( EOL | EOF ) )
// src/main/resources/org/dro... | class class_name[name] begin[{]
method[mC_STYLE_SINGLE_LINE_COMMENT, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=C_STYLE_SINGLE_LINE_COMMEN... | Keyword[public] Keyword[final] Keyword[void] identifier[mC_STYLE_SINGLE_LINE_COMMENT] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
Keyword[int] identifier[_type] operator[=] identifier[C_STYLE_SINGLE_LINE_COMMENT] operator[SEP] Keyword[int] identifier[_... |
private static void addProperties(EndpointReferenceType epr, SLProperties props) {
MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(epr);
ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props);
JAXBElement<ServiceLocatorPropertiesTyp... | class class_name[name] begin[{]
method[addProperties, return_type[void], modifier[private static], parameter[epr, props]] begin[{]
local_variable[type[MetadataType], metadata]
local_variable[type[ServiceLocatorPropertiesType], jaxbProps]
local_variable[type[JAXBElement], slp]
... | Keyword[private] Keyword[static] Keyword[void] identifier[addProperties] operator[SEP] identifier[EndpointReferenceType] identifier[epr] , identifier[SLProperties] identifier[props] operator[SEP] {
identifier[MetadataType] identifier[metadata] operator[=] identifier[WSAEndpointReferenceUtils] operator[SEP] iden... |
public boolean diff(Node right, Buffer rightBuffer) throws IOException {
Buffer leftBuffer;
int leftChunk;
int rightChunk;
boolean result;
leftBuffer = getWorld().getBuffer();
try (InputStream leftSrc = newInputStream();
InputStream rightSrc = right.newInput... | class class_name[name] begin[{]
method[diff, return_type[type[boolean]], modifier[public], parameter[right, rightBuffer]] begin[{]
local_variable[type[Buffer], leftBuffer]
local_variable[type[int], leftChunk]
local_variable[type[int], rightChunk]
local_variable[type[boolean], re... | Keyword[public] Keyword[boolean] identifier[diff] operator[SEP] identifier[Node] identifier[right] , identifier[Buffer] identifier[rightBuffer] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Buffer] identifier[leftBuffer] operator[SEP] Keyword[int] identifier[leftChunk] operator[SEP] Keyword... |
public K getCurrentKey()
{
lock.lock();
try
{
Thread currentThread = Thread.currentThread();
for (Entry<K,Thread> entry : threadMap.entrySet())
{
if (currentThread.equals(entry.getValue()))
{
re... | class class_name[name] begin[{]
method[getCurrentKey, return_type[type[K]], modifier[public], parameter[]] begin[{]
call[lock.lock, parameter[]]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argum... | Keyword[public] identifier[K] identifier[getCurrentKey] operator[SEP] operator[SEP] {
identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
identifier[Thread] identifier[currentThread] operator[=] identifier[Thread] operator[SEP] identifier[currentThr... |
private static OptionalEntity<RelatedContent> getEntity(final CreateForm form, final String username, final long currentTime) {
switch (form.crudMode) {
case CrudMode.CREATE:
return OptionalEntity.of(new RelatedContent()).map(entity -> {
entity.setCreatedBy(username);
... | class class_name[name] begin[{]
method[getEntity, return_type[type[OptionalEntity]], modifier[private static], parameter[form, username, currentTime]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=CREATE, postfix_operators=[], prefix_operators=[], qualifier=CrudMode, ... | Keyword[private] Keyword[static] identifier[OptionalEntity] operator[<] identifier[RelatedContent] operator[>] identifier[getEntity] operator[SEP] Keyword[final] identifier[CreateForm] identifier[form] , Keyword[final] identifier[String] identifier[username] , Keyword[final] Keyword[long] identifier[currentTime] oper... |
public T set(int index, T element)
{
if (index == 0)
{
T previousElement = this.element1;
this.element1 = element;
return previousElement;
}
throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + this.size());
} | class class_name[name] begin[{]
method[set, return_type[type[T]], modifier[public], parameter[index, element]] begin[{]
if[binary_operation[member[.index], ==, literal[0]]] begin[{]
local_variable[type[T], previousElement]
assign[THIS[member[None.element1]], ... | Keyword[public] identifier[T] identifier[set] operator[SEP] Keyword[int] identifier[index] , identifier[T] identifier[element] operator[SEP] {
Keyword[if] operator[SEP] identifier[index] operator[==] Other[0] operator[SEP] {
identifier[T] identifier[previousElement] operator[=] Keyword[this] operator... |
public void setViewBox(final double west, final double north, final double east, final double south) {
this.viewBox = new BoundingBox();
this.viewBox.setWest(west);
this.viewBox.setNorth(north);
this.viewBox.setEast(east);
this.viewBox.setSouth(south);
} | class class_name[name] begin[{]
method[setViewBox, return_type[void], modifier[public], parameter[west, north, east, south]] begin[{]
assign[THIS[member[None.viewBox]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=No... | Keyword[public] Keyword[void] identifier[setViewBox] operator[SEP] Keyword[final] Keyword[double] identifier[west] , Keyword[final] Keyword[double] identifier[north] , Keyword[final] Keyword[double] identifier[east] , Keyword[final] Keyword[double] identifier[south] operator[SEP] {
Keyword[this] operator[SEP]... |
public final void removeEntries(Iterator<Entry<?>> entries) {
if (entries != null) {
while (entries.hasNext()) {
removeEntry(entries.next());
}
}
} | class class_name[name] begin[{]
method[removeEntries, return_type[void], modifier[final public], parameter[entries]] begin[{]
if[binary_operation[member[.entries], !=, literal[null]]] begin[{]
while[call[entries.hasNext, parameter[]]] begin[{]
... | Keyword[public] Keyword[final] Keyword[void] identifier[removeEntries] operator[SEP] identifier[Iterator] operator[<] identifier[Entry] operator[<] operator[?] operator[>] operator[>] identifier[entries] operator[SEP] {
Keyword[if] operator[SEP] identifier[entries] operator[!=] Other[null] operator[SEP] {
... |
public Quaterniond rotateAxis(double angle, double axisX, double axisY, double axisZ) {
return rotateAxis(angle, axisX, axisY, axisZ, this);
} | class class_name[name] begin[{]
method[rotateAxis, return_type[type[Quaterniond]], modifier[public], parameter[angle, axisX, axisY, axisZ]] begin[{]
return[call[.rotateAxis, parameter[member[.angle], member[.axisX], member[.axisY], member[.axisZ], THIS[]]]]
end[}]
END[}] | Keyword[public] identifier[Quaterniond] identifier[rotateAxis] operator[SEP] Keyword[double] identifier[angle] , Keyword[double] identifier[axisX] , Keyword[double] identifier[axisY] , Keyword[double] identifier[axisZ] operator[SEP] {
Keyword[return] identifier[rotateAxis] operator[SEP] identifier[angle] , i... |
public Point3d getGridPointFrom3dCoordinates(Point3d coord) throws Exception {
Point3d gridPoint = new Point3d();
if (coord.x >= minx & coord.x <= maxx) {
gridPoint.x = (int) Math.round(Math.abs(minx - coord.x) / latticeConstant);
} else {
throw new Exception("CDKGridErr... | class class_name[name] begin[{]
method[getGridPointFrom3dCoordinates, return_type[type[Point3d]], modifier[public], parameter[coord]] begin[{]
local_variable[type[Point3d], gridPoint]
if[binary_operation[binary_operation[member[coord.x], >=, member[.minx]], &, binary_operation[member[co... | Keyword[public] identifier[Point3d] identifier[getGridPointFrom3dCoordinates] operator[SEP] identifier[Point3d] identifier[coord] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[Point3d] identifier[gridPoint] operator[=] Keyword[new] identifier[Point3d] operator[SEP] operator[SEP] operator[SEP] ... |
public static <T> Constructor<T> getNoArgConstructor(Class<T> clazz) {
try {
Constructor<T> ctor = clazz.getDeclaredConstructor(new Class[0]);
ctor.setAccessible(true);
return ctor;
}
catch (NoSuchMethodException e) {
// lame there is no way to tell if the class is a nonstatic inner class
if (clazz... | class class_name[name] begin[{]
method[getNoArgConstructor, return_type[type[Constructor]], modifier[public static], parameter[clazz]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ArrayCreato... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Constructor] operator[<] identifier[T] operator[>] identifier[getNoArgConstructor] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] {
Keyword[try] {
identifier[Construc... |
public ServiceFuture<OcrResult> recognizePrintedTextAsync(boolean detectOrientation, String url, RecognizePrintedTextOptionalParameter recognizePrintedTextOptionalParameter, final ServiceCallback<OcrResult> serviceCallback) {
return ServiceFuture.fromResponse(recognizePrintedTextWithServiceResponseAsync(detectO... | class class_name[name] begin[{]
method[recognizePrintedTextAsync, return_type[type[ServiceFuture]], modifier[public], parameter[detectOrientation, url, recognizePrintedTextOptionalParameter, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.recognizePrintedTextWithServi... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[OcrResult] operator[>] identifier[recognizePrintedTextAsync] operator[SEP] Keyword[boolean] identifier[detectOrientation] , identifier[String] identifier[url] , identifier[RecognizePrintedTextOptionalParameter] identifier[recognizePrintedTextOptionalPar... |
public static FieldFilter create(Class<?> type, FieldMatcher mathcer) {
FieldFilter ff = new FieldFilter();
ff.set(type, mathcer);
return ff;
} | class class_name[name] begin[{]
method[create, return_type[type[FieldFilter]], modifier[public static], parameter[type, mathcer]] begin[{]
local_variable[type[FieldFilter], ff]
call[ff.set, parameter[member[.type], member[.mathcer]]]
return[member[.ff]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[FieldFilter] identifier[create] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , identifier[FieldMatcher] identifier[mathcer] operator[SEP] {
identifier[FieldFilter] identifier[ff] operator[=] Keyword[new] identifier[FieldFilter] o... |
public void traverse(int pos) throws org.xml.sax.SAXException
{
// %REVIEW% Why isn't this just traverse(pos,pos)?
int top = pos; // Remember the root of this subtree
while (DTM.NULL != pos)
{
startNode(pos);
int nextNode = m_dtm.getFirstChild(pos);
while (DTM.NULL == nextNode)
... | class class_name[name] begin[{]
method[traverse, return_type[void], modifier[public], parameter[pos]] begin[{]
local_variable[type[int], top]
while[binary_operation[member[DTM.NULL], !=, member[.pos]]] begin[{]
call[.startNode, parameter[member[.pos]]]
... | Keyword[public] Keyword[void] identifier[traverse] operator[SEP] Keyword[int] identifier[pos] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml] operator[SEP] identifier[sax] operator[SEP] identifier[SAXException] {
Keyword[int] identifier[top] operator[=] identifier[pos] operator[SEP] K... |
public void disableConnector(String connectorClass) {
ConnectorEntry connector = connectors.get(connectorClass);
if(connector != null)
connectors.get(connectorClass).disableConnector();
} | class class_name[name] begin[{]
method[disableConnector, return_type[void], modifier[public], parameter[connectorClass]] begin[{]
local_variable[type[ConnectorEntry], connector]
if[binary_operation[member[.connector], !=, literal[null]]] begin[{]
call[connectors.get, paramet... | Keyword[public] Keyword[void] identifier[disableConnector] operator[SEP] identifier[String] identifier[connectorClass] operator[SEP] {
identifier[ConnectorEntry] identifier[connector] operator[=] identifier[connectors] operator[SEP] identifier[get] operator[SEP] identifier[connectorClass] operator[SEP] operator[... |
@Override
public boolean contains(AttributeKey<?> key) {
return (this.outer.contains(key) || this.inner.contains(key));
} | class class_name[name] begin[{]
method[contains, return_type[type[boolean]], modifier[public], parameter[key]] begin[{]
return[binary_operation[THIS[member[None.outer]call[None.contains, parameter[member[.key]]]], ||, THIS[member[None.inner]call[None.contains, parameter[member[.key]]]]]]
end[}]
END... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] identifier[AttributeKey] operator[<] operator[?] operator[>] identifier[key] operator[SEP] {
Keyword[return] operator[SEP] Keyword[this] operator[SEP] identifier[outer] operator[SEP] identifier[contains] operat... |
@XmlElementDecl(namespace = "http://schema.intuit.com/finance/v3", name = "PriceLevel", substitutionHeadNamespace = "http://schema.intuit.com/finance/v3", substitutionHeadName = "IntuitObject")
public JAXBElement<PriceLevel> createPriceLevel(PriceLevel value) {
return new JAXBElement<PriceLevel>(_PriceLevel... | class class_name[name] begin[{]
method[createPriceLevel, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_PriceLevel_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_ope... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden... |
public static void hexDump(PrintStream out, Object obj) {
// TODO Change this to use hexDumpAddress instead of toByteArray
byte[] bytes = toByteArray(obj);
hexDumpBytes(out, 0, bytes);
} | class class_name[name] begin[{]
method[hexDump, return_type[void], modifier[public static], parameter[out, obj]] begin[{]
local_variable[type[byte], bytes]
call[.hexDumpBytes, parameter[member[.out], literal[0], member[.bytes]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[hexDump] operator[SEP] identifier[PrintStream] identifier[out] , identifier[Object] identifier[obj] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] identifier[toByteArray] operator[SEP] identifier[obj] operator[SEP]... |
public ContainerTx getCurrentTx(SynchronizationRegistryUOWScope uowId, boolean isLocal) throws CSITransactionRolledbackException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getCurrentTx (" + ContainerTx.u... | class class_name[name] begin[{]
method[getCurrentTx, return_type[type[ContainerTx]], modifier[public], parameter[uowId, isLocal]] begin[{]
local_variable[type[boolean], isTraceOn]
if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
cal... | Keyword[public] identifier[ContainerTx] identifier[getCurrentTx] operator[SEP] identifier[SynchronizationRegistryUOWScope] identifier[uowId] , Keyword[boolean] identifier[isLocal] operator[SEP] Keyword[throws] identifier[CSITransactionRolledbackException] {
Keyword[final] Keyword[boolean] identifier[isTraceOn] ... |
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "TopoComplex", substitutionHeadNamespace = "http://www.opengis.net/gml", substitutionHeadName = "_Topology")
public JAXBElement<TopoComplexType> createTopoComplex(TopoComplexType value) {
return new JAXBElement<TopoComplexType>(_TopoComplex_QN... | class class_name[name] begin[{]
method[createTopoComplex, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_TopoComplex_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_o... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden... |
public void setEventTypes(java.util.Collection<String> eventTypes) {
if (eventTypes == null) {
this.eventTypes = null;
return;
}
this.eventTypes = new java.util.ArrayList<String>(eventTypes);
} | class class_name[name] begin[{]
method[setEventTypes, return_type[void], modifier[public], parameter[eventTypes]] begin[{]
if[binary_operation[member[.eventTypes], ==, literal[null]]] begin[{]
assign[THIS[member[None.eventTypes]], literal[null]]
return[None]
... | Keyword[public] Keyword[void] identifier[setEventTypes] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[eventTypes] operator[SEP] {
Keyword[if] operator[SEP] identifier[eventTypes] operator[==] Other[null] op... |
public void addAxis(Matrix4d axis, int order, SymmetryType type) {
axes.add(new Axis(axis,order,type,axes.size(),0));
} | class class_name[name] begin[{]
method[addAxis, return_type[void], modifier[public], parameter[axis, order, type]] begin[{]
call[axes.add, parameter[ClassCreator(arguments=[MemberReference(member=axis, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=... | Keyword[public] Keyword[void] identifier[addAxis] operator[SEP] identifier[Matrix4d] identifier[axis] , Keyword[int] identifier[order] , identifier[SymmetryType] identifier[type] operator[SEP] {
identifier[axes] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Axis] operator[SEP] identifier[... |
private static boolean[] findIncludedColumns(List<OrcProto.Type> types,
Configuration conf) {
String includedStr =
conf.get(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR);
if (includedStr == null || includedStr.trim().length() == 0) {
return null;
... | class class_name[name] begin[{]
method[findIncludedColumns, return_type[type[boolean]], modifier[private static], parameter[types, conf]] begin[{]
local_variable[type[String], includedStr]
if[binary_operation[binary_operation[member[.includedStr], ==, literal[null]], ||, binary_operatio... | Keyword[private] Keyword[static] Keyword[boolean] operator[SEP] operator[SEP] identifier[findIncludedColumns] operator[SEP] identifier[List] operator[<] identifier[OrcProto] operator[SEP] identifier[Type] operator[>] identifier[types] , identifier[Configuration] identifier[conf] operator[SEP] {
identifier[Strin... |
private static <A extends Annotation> A getAnnotation( AnnotatedElement from, Class<A> annotationType, Set<AnnotatedElement> visited) {
if( visited.contains(from) ) return null;
visited.add(from);
A ann = from.getAnnotation( annotationType );
if( ann != null) return ann;
for ( An... | class class_name[name] begin[{]
method[getAnnotation, return_type[type[A]], modifier[private static], parameter[from, annotationType, visited]] begin[{]
if[call[visited.contains, parameter[member[.from]]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
... | Keyword[private] Keyword[static] operator[<] identifier[A] Keyword[extends] identifier[Annotation] operator[>] identifier[A] identifier[getAnnotation] operator[SEP] identifier[AnnotatedElement] identifier[from] , identifier[Class] operator[<] identifier[A] operator[>] identifier[annotationType] , identifier[Set] oper... |
CallEvent[] makeRandomEvent() {
long callId = ++lastCallIdUsed;
// get agentid
Integer agentId = agentsAvailable.poll();
if (agentId == null) {
return null;
}
// get phone number
Long phoneNo = phoneNumbersAvailable.poll();
assert(phoneNo != ... | class class_name[name] begin[{]
method[makeRandomEvent, return_type[type[CallEvent]], modifier[default], parameter[]] begin[{]
local_variable[type[long], callId]
local_variable[type[Integer], agentId]
if[binary_operation[member[.agentId], ==, literal[null]]] begin[{]
... | identifier[CallEvent] operator[SEP] operator[SEP] identifier[makeRandomEvent] operator[SEP] operator[SEP] {
Keyword[long] identifier[callId] operator[=] operator[++] identifier[lastCallIdUsed] operator[SEP] identifier[Integer] identifier[agentId] operator[=] identifier[agentsAvailable] operator[SEP] identifier[p... |
private void getRubygemsSetupScript(RubyStringBuilder builder) {
File[] gemPaths = gemsConfig.getGemPath();
if (gemHome == null && gemPaths == null) {
return;
}
builder.appendLine("# Set up GEM_HOME and GEM_PATH for running outside of maven");
builder.appendLine();
... | class class_name[name] begin[{]
method[getRubygemsSetupScript, return_type[void], modifier[private], parameter[builder]] begin[{]
local_variable[type[File], gemPaths]
if[binary_operation[binary_operation[member[.gemHome], ==, literal[null]], &&, binary_operation[member[.gemPaths], ==, l... | Keyword[private] Keyword[void] identifier[getRubygemsSetupScript] operator[SEP] identifier[RubyStringBuilder] identifier[builder] operator[SEP] {
identifier[File] operator[SEP] operator[SEP] identifier[gemPaths] operator[=] identifier[gemsConfig] operator[SEP] identifier[getGemPath] operator[SEP] operator[SEP] o... |
private ComparisonState compareCharacterData(CharacterData control,
XPathContext controlContext,
CharacterData test,
XPathContext testContext) {
return compare(new C... | class class_name[name] begin[{]
method[compareCharacterData, return_type[type[ComparisonState]], modifier[private], parameter[control, controlContext, test, testContext]] begin[{]
return[call[.compare, parameter[ClassCreator(arguments=[MemberReference(member=TEXT_VALUE, postfix_operators=[], prefix_ope... | Keyword[private] identifier[ComparisonState] identifier[compareCharacterData] operator[SEP] identifier[CharacterData] identifier[control] , identifier[XPathContext] identifier[controlContext] , identifier[CharacterData] identifier[test] , identifier[XPathContext] identifier[testContext] operator[SEP] {
Keywor... |
public PlanNode findAncestor( Type firstTypeToFind,
Type... additionalTypesToFind ) {
return findAncestor(EnumSet.of(firstTypeToFind, additionalTypesToFind));
} | class class_name[name] begin[{]
method[findAncestor, return_type[type[PlanNode]], modifier[public], parameter[firstTypeToFind, additionalTypesToFind]] begin[{]
return[call[.findAncestor, parameter[call[EnumSet.of, parameter[member[.firstTypeToFind], member[.additionalTypesToFind]]]]]]
end[}]
END[}] | Keyword[public] identifier[PlanNode] identifier[findAncestor] operator[SEP] identifier[Type] identifier[firstTypeToFind] , identifier[Type] operator[...] identifier[additionalTypesToFind] operator[SEP] {
Keyword[return] identifier[findAncestor] operator[SEP] identifier[EnumSet] operator[SEP] identifier[of] oper... |
public byte read(int offset) throws IOException {
if (ensureBuffer(offset, 1) > 0) {
this.pos = offset + 1;
return this.buffer[offset];
}
throw new EOFException();
} | class class_name[name] begin[{]
method[read, return_type[type[byte]], modifier[public], parameter[offset]] begin[{]
if[binary_operation[call[.ensureBuffer, parameter[member[.offset], literal[1]]], >, literal[0]]] begin[{]
assign[THIS[member[None.pos]], binary_operation[m... | Keyword[public] Keyword[byte] identifier[read] operator[SEP] Keyword[int] identifier[offset] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[ensureBuffer] operator[SEP] identifier[offset] , Other[1] operator[SEP] operator[>] Other[0] operator[SEP] {
Keywor... |
public static String insertIndex(String key, Integer index) {
if (index == null)
return key;
int pos = key.indexOf('.');
if (pos >= 0) {
return key.substring(0, pos) + '[' + index + ']' + key.substring(pos);
} else {
return key + '[' + index + ']';
... | class class_name[name] begin[{]
method[insertIndex, return_type[type[String]], modifier[public static], parameter[key, index]] begin[{]
if[binary_operation[member[.index], ==, literal[null]]] begin[{]
return[member[.key]]
else begin[{]
None
end[}]
local_variable[type[int... | Keyword[public] Keyword[static] identifier[String] identifier[insertIndex] operator[SEP] identifier[String] identifier[key] , identifier[Integer] identifier[index] operator[SEP] {
Keyword[if] operator[SEP] identifier[index] operator[==] Other[null] operator[SEP] Keyword[return] identifier[key] operator[SEP] Key... |
public static ProtocolFamily convert(InternetProtocolFamily family) {
switch (family) {
case IPv4:
return StandardProtocolFamily.INET;
case IPv6:
return StandardProtocolFamily.INET6;
default:
throw new IllegalArgumentException();
}
} | class class_name[name] begin[{]
method[convert, return_type[type[ProtocolFamily]], modifier[public static], parameter[family]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['IPv4'], statements=[ReturnStatement(expression=MemberReference(member=INET, postfix_operators=[], prefix_operators=[]... | Keyword[public] Keyword[static] identifier[ProtocolFamily] identifier[convert] operator[SEP] identifier[InternetProtocolFamily] identifier[family] operator[SEP] {
Keyword[switch] operator[SEP] identifier[family] operator[SEP] {
Keyword[case] identifier[IPv4] operator[:] Keyword[return] identifier[Sta... |
public static <T> JacksonDBCollection<T, Object> wrap(DBCollection dbCollection, Class<T> type) {
return new JacksonDBCollection<T, Object>(dbCollection, DEFAULT_OBJECT_MAPPER.constructType(type),
DEFAULT_OBJECT_MAPPER.constructType(Object.class), DEFAULT_OBJECT_MAPPER, null);
} | class class_name[name] begin[{]
method[wrap, return_type[type[JacksonDBCollection]], modifier[public static], parameter[dbCollection, type]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=dbCollection, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocatio... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[JacksonDBCollection] operator[<] identifier[T] , identifier[Object] operator[>] identifier[wrap] operator[SEP] identifier[DBCollection] identifier[dbCollection] , identifier[Class] operator[<] identifier[T] operator[>] identifier[type] o... |
public static List<Integer> toIntegerList(int[] array) {
List<Integer> result = new ArrayList<Integer>(array.length);
for (int partitionId : array) {
result.add(partitionId);
}
return result;
} | class class_name[name] begin[{]
method[toIntegerList, return_type[type[List]], modifier[public static], parameter[array]] begin[{]
local_variable[type[List], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReferen... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Integer] operator[>] identifier[toIntegerList] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[array] operator[SEP] {
identifier[List] operator[<] identifier[Integer] operator[>] identifier[result] operator[=] Keyword[new] ... |
public synchronized int addColumn(Vector col) {
if (isFinished)
throw new IllegalStateException(
"Cannot add columns to a MatrixBuilder that is finished");
DoubleVector column = Vectors.asDouble(col);
if (column.length() > numRows)
numRows = column.lengt... | class class_name[name] begin[{]
method[addColumn, return_type[type[int]], modifier[synchronized public], parameter[col]] begin[{]
if[member[.isFinished]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], v... | Keyword[public] Keyword[synchronized] Keyword[int] identifier[addColumn] operator[SEP] identifier[Vector] identifier[col] operator[SEP] {
Keyword[if] operator[SEP] identifier[isFinished] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operat... |
public void startEnvSetup(boolean transactional) throws Exception {
// set classloader
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME, "startEnvSetup", "enter");
}
ClassLoader origCl = ThreadCont... | class class_name[name] begin[{]
method[startEnvSetup, return_type[void], modifier[public], parameter[transactional]] begin[{]
if[binary_operation[call[com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FINE]]]]] begin[{]
... | Keyword[public] Keyword[void] identifier[startEnvSetup] operator[SEP] Keyword[boolean] identifier[transactional] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[if] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ejs] operator[SEP] identifier[ras] operator[SEP] ... |
boolean checkReplay(int seqNo, long guessedIndex) {
// compute the index of previously received packet and its
// delta to the new received packet
long localIndex = (((long) this.roc) << 16) | this.seqNum;
long delta = guessedIndex - localIndex;
if (delta > 0) {
/* Packet not yet received */
return tru... | class class_name[name] begin[{]
method[checkReplay, return_type[type[boolean]], modifier[default], parameter[seqNo, guessedIndex]] begin[{]
local_variable[type[long], localIndex]
local_variable[type[long], delta]
if[binary_operation[member[.delta], >, literal[0]]] begin[{]
... | Keyword[boolean] identifier[checkReplay] operator[SEP] Keyword[int] identifier[seqNo] , Keyword[long] identifier[guessedIndex] operator[SEP] {
Keyword[long] identifier[localIndex] operator[=] operator[SEP] operator[SEP] operator[SEP] Keyword[long] operator[SEP] Keyword[this] operator[SEP] identifier[roc] operat... |
public void delete(String job, Map<String, String> groupingKey) throws IOException {
doRequest(null, job, groupingKey, "DELETE");
} | class class_name[name] begin[{]
method[delete, return_type[void], modifier[public], parameter[job, groupingKey]] begin[{]
call[.doRequest, parameter[literal[null], member[.job], member[.groupingKey], literal["DELETE"]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[delete] operator[SEP] identifier[String] identifier[job] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[groupingKey] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[doRequest] operator[SEP] Other[null] , ... |
public SDVariable slice(String name, SDVariable input, int[] begin, int[] size) {
SDVariable ret = f().slice(input, begin, size);
return updateVariableNameAndReference(ret, name);
} | class class_name[name] begin[{]
method[slice, return_type[type[SDVariable]], modifier[public], parameter[name, input, begin, size]] begin[{]
local_variable[type[SDVariable], ret]
return[call[.updateVariableNameAndReference, parameter[member[.ret], member[.name]]]]
end[}]
END[}] | Keyword[public] identifier[SDVariable] identifier[slice] operator[SEP] identifier[String] identifier[name] , identifier[SDVariable] identifier[input] , Keyword[int] operator[SEP] operator[SEP] identifier[begin] , Keyword[int] operator[SEP] operator[SEP] identifier[size] operator[SEP] {
identifier[SDVariable] ... |
private Map<Environment, Collection<ArtifactIdentifier>> getArtifactIdentifiers(List<Environment> environments) {
Map<Environment, Collection<ArtifactIdentifier>> rt = new HashMap<>();
for (Environment env : environments) {
Set<ArtifactIdentifier> ids = new HashSet<>();
if (env.getUnits() != null... | class class_name[name] begin[{]
method[getArtifactIdentifiers, return_type[type[Map]], modifier[private], parameter[environments]] begin[{]
local_variable[type[Map], rt]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar... | Keyword[private] identifier[Map] operator[<] identifier[Environment] , identifier[Collection] operator[<] identifier[ArtifactIdentifier] operator[>] operator[>] identifier[getArtifactIdentifiers] operator[SEP] identifier[List] operator[<] identifier[Environment] operator[>] identifier[environments] operator[SEP] {
... |
public void remove() throws TransactionRequiredLocalException, TransactionRolledbackLocalException, SLEEException {
if (logger.isDebugEnabled()) {
logger.debug("removing profile with name " + getProfileName() + " from table with name " + getProfileTableName());
}
sleeContainer.getTransactionManager().m... | class class_name[name] begin[{]
method[remove, return_type[void], modifier[public], parameter[]] begin[{]
if[call[logger.isDebugEnabled, parameter[]]] begin[{]
call[logger.debug, parameter[binary_operation[binary_operation[binary_operation[literal["removing profile with ... | Keyword[public] Keyword[void] identifier[remove] operator[SEP] operator[SEP] Keyword[throws] identifier[TransactionRequiredLocalException] , identifier[TransactionRolledbackLocalException] , identifier[SLEEException] {
Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operat... |
public void refresh(String vaultName, String resourceGroupName, String fabricName, String filter) {
refreshWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, filter).toBlocking().single().body();
} | class class_name[name] begin[{]
method[refresh, return_type[void], modifier[public], parameter[vaultName, resourceGroupName, fabricName, filter]] begin[{]
call[.refreshWithServiceResponseAsync, parameter[member[.vaultName], member[.resourceGroupName], member[.fabricName], member[.filter]]]
... | Keyword[public] Keyword[void] identifier[refresh] operator[SEP] identifier[String] identifier[vaultName] , identifier[String] identifier[resourceGroupName] , identifier[String] identifier[fabricName] , identifier[String] identifier[filter] operator[SEP] {
identifier[refreshWithServiceResponseAsync] operator[S... |
public void flush() throws IOException {
try {
flushIfPossible(true);
checkState(pendingRequests.isEmpty(), "pendingRequests should be empty after flush");
checkState(responseFutures.isEmpty(), "responseFutures should be empty after flush");
} finally {
requestsExecutor.shutdown();
... | class class_name[name] begin[{]
method[flush, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=flushIfPossible, ... | Keyword[public] Keyword[void] identifier[flush] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[try] {
identifier[flushIfPossible] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[checkState] operator[SEP] identifier[pendingRequests] operator[SEP] ide... |
public static float noise(float x, float y, float z, float w) {
float n0, n1, n2, n3, n4; // Noise contributions from the five corners
// Skew the (x,y,z,w) space to determine which cell of 24 simplices we're in
float s = (x + y + z + w) * F4; // Factor for 4D skewing
int i = fastfloor(x... | class class_name[name] begin[{]
method[noise, return_type[type[float]], modifier[public static], parameter[x, y, z, w]] begin[{]
local_variable[type[float], n0]
local_variable[type[float], s]
local_variable[type[int], i]
local_variable[type[int], j]
local_variable[type[i... | Keyword[public] Keyword[static] Keyword[float] identifier[noise] operator[SEP] Keyword[float] identifier[x] , Keyword[float] identifier[y] , Keyword[float] identifier[z] , Keyword[float] identifier[w] operator[SEP] {
Keyword[float] identifier[n0] , identifier[n1] , identifier[n2] , identifier[n3] , identi... |
public void setAuditSourceId(String sourceId, String enterpriseSiteId)
{
setAuditSourceId(sourceId, enterpriseSiteId, (RFC3881AuditSourceTypes[])null);
} | class class_name[name] begin[{]
method[setAuditSourceId, return_type[void], modifier[public], parameter[sourceId, enterpriseSiteId]] begin[{]
call[.setAuditSourceId, parameter[member[.sourceId], member[.enterpriseSiteId], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualif... | Keyword[public] Keyword[void] identifier[setAuditSourceId] operator[SEP] identifier[String] identifier[sourceId] , identifier[String] identifier[enterpriseSiteId] operator[SEP] {
identifier[setAuditSourceId] operator[SEP] identifier[sourceId] , identifier[enterpriseSiteId] , operator[SEP] identifier[RFC3881Au... |
public com.google.protobuf.ByteString
getFilenameBytes() {
java.lang.Object ref = filename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filename_ = b;
return b;
... | class class_name[name] begin[{]
method[getFilenameBytes, return_type[type[com]], modifier[public], parameter[]] begin[{]
local_variable[type[java], ref]
if[binary_operation[member[.ref], instanceof, type[java]]] begin[{]
local_variable[type[com], b]
a... | Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[protobuf] operator[SEP] identifier[ByteString] identifier[getFilenameBytes] operator[SEP] operator[SEP] {
identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifi... |
public void setModelMatrix(float[] mat) {
if (mat.length != 16) {
throw new IllegalArgumentException("Size not equal to 16.");
}
getTransform().setModelMatrix(mat);
if (mTransformCache.setModelMatrix(mat)) {
onTransformChanged();
}
} | class class_name[name] begin[{]
method[setModelMatrix, return_type[void], modifier[public], parameter[mat]] begin[{]
if[binary_operation[member[mat.length], !=, literal[16]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[]... | Keyword[public] Keyword[void] identifier[setModelMatrix] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[mat] operator[SEP] {
Keyword[if] operator[SEP] identifier[mat] operator[SEP] identifier[length] operator[!=] Other[16] operator[SEP] {
Keyword[throw] Keyword[new] identifier[Ill... |
public void trace(String msg) {
logIfEnabled(Level.TRACE, null, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
} | class class_name[name] begin[{]
method[trace, return_type[void], modifier[public], parameter[msg]] begin[{]
call[.logIfEnabled, parameter[member[Level.TRACE], literal[null], member[.msg], member[.UNKNOWN_ARG], member[.UNKNOWN_ARG], member[.UNKNOWN_ARG], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[trace] operator[SEP] identifier[String] identifier[msg] operator[SEP] {
identifier[logIfEnabled] operator[SEP] identifier[Level] operator[SEP] identifier[TRACE] , Other[null] , identifier[msg] , identifier[UNKNOWN_ARG] , identifier[UNKNOWN_ARG] , identifier[UNKNOWN_A... |
public void marshall(DescribePendingMaintenanceActionsRequest describePendingMaintenanceActionsRequest, ProtocolMarshaller protocolMarshaller) {
if (describePendingMaintenanceActionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[describePendingMaintenanceActionsRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.describePendingMaintenanceActionsRequest], ==, literal[null]]] begin[{]
ThrowStatement(... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribePendingMaintenanceActionsRequest] identifier[describePendingMaintenanceActionsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[describePendingMaintenan... |
@Override
public void save() throws BlogClientException {
try {
if (getToken() == null) {
final ClientAtomService clientService = ((AtomBlog) getBlog()).getService();
final ClientCollection clientCollection = collection.getClientCollection();
fina... | class class_name[name] begin[{]
method[save, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getToken, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[save] operator[SEP] operator[SEP] Keyword[throws] identifier[BlogClientException] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[getToken] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] {
... |
public java.util.List<com.google.api.Monitoring.MonitoringDestination> getProducerDestinationsList() {
return producerDestinations_;
} | class class_name[name] begin[{]
method[getProducerDestinationsList, return_type[type[java]], modifier[public], parameter[]] begin[{]
return[member[.producerDestinations_]]
end[}]
END[}] | Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[Monitoring] operator[SEP] identifier[MonitoringDestination] operator[>] identifier[getProducerDestinationsLis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.