code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public boolean isMethodLevel(MethodIntf methodIntf, Method method, MethodIntf defaultMethodIntf) {
assert methodIntf != null : "methodIntf is null";
assert method != null : "method is null";
Method classMethod = resolveRealMethod(method);
String[] methodParams = MethodInfoHelper.getCano... | class class_name[name] begin[{]
method[isMethodLevel, return_type[type[boolean]], modifier[public], parameter[methodIntf, method, defaultMethodIntf]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=methodIntf, postfix_operators=[], prefix_operators=[], qualifier=, sel... | Keyword[public] Keyword[boolean] identifier[isMethodLevel] operator[SEP] identifier[MethodIntf] identifier[methodIntf] , identifier[Method] identifier[method] , identifier[MethodIntf] identifier[defaultMethodIntf] operator[SEP] {
Keyword[assert] identifier[methodIntf] operator[!=] Other[null] operator[:] lite... |
protected Edge buildConcrete11Edge(Vertex vertex1, Vertex vertex2, boolean fkToRef)
{
ModificationState state1 = vertex1.getEnvelope().getModificationState();
ModificationState state2 = vertex2.getEnvelope().getModificationState();
if (state1.needsUpdate() || state1.needsInsert())
... | class class_name[name] begin[{]
method[buildConcrete11Edge, return_type[type[Edge]], modifier[protected], parameter[vertex1, vertex2, fkToRef]] begin[{]
local_variable[type[ModificationState], state1]
local_variable[type[ModificationState], state2]
if[binary_operation[call[state... | Keyword[protected] identifier[Edge] identifier[buildConcrete11Edge] operator[SEP] identifier[Vertex] identifier[vertex1] , identifier[Vertex] identifier[vertex2] , Keyword[boolean] identifier[fkToRef] operator[SEP] {
identifier[ModificationState] identifier[state1] operator[=] identifier[vertex1] operator[SEP]... |
SibRaDispatcher createDispatcher(final AbstractConsumerSession session,
final Reliability unrecoveredReliability,
final int maxFailedDeliveries,
final int sequentialFailureThreshold)
throws... | class class_name[name] begin[{]
method[createDispatcher, return_type[type[SibRaDispatcher]], modifier[default], parameter[session, unrecoveredReliability, maxFailedDeliveries, sequentialFailureThreshold]] begin[{]
local_variable[type[String], methodName]
if[binary_operation[call[TraceCo... | identifier[SibRaDispatcher] identifier[createDispatcher] operator[SEP] Keyword[final] identifier[AbstractConsumerSession] identifier[session] , Keyword[final] identifier[Reliability] identifier[unrecoveredReliability] , Keyword[final] Keyword[int] identifier[maxFailedDeliveries] , Keyword[final] Keyword[int] identif... |
public IFormalParameterBuilder addParameter(String name) {
IFormalParameterBuilder builder = this.parameterProvider.get();
builder.eInit(this.sarlConstructor, name, getTypeResolutionContext());
return builder;
} | class class_name[name] begin[{]
method[addParameter, return_type[type[IFormalParameterBuilder]], modifier[public], parameter[name]] begin[{]
local_variable[type[IFormalParameterBuilder], builder]
call[builder.eInit, parameter[THIS[member[None.sarlConstructor]], member[.name], call[.getT... | Keyword[public] identifier[IFormalParameterBuilder] identifier[addParameter] operator[SEP] identifier[String] identifier[name] operator[SEP] {
identifier[IFormalParameterBuilder] identifier[builder] operator[=] Keyword[this] operator[SEP] identifier[parameterProvider] operator[SEP] identifier[get] operator[SEP] ... |
protected AxisType getAxisType(NetcdfDataset ncDataset, VariableEnhanced v) {
// standard names for unitless vertical coords
String sname = ncDataset.findAttValueIgnoreCase((Variable) v, CF.STANDARD_NAME, null);
if (sname != null) {
sname = sname.trim();
for (String vertical_coord : ve... | class class_name[name] begin[{]
method[getAxisType, return_type[type[AxisType]], modifier[protected], parameter[ncDataset, v]] begin[{]
local_variable[type[String], sname]
if[binary_operation[member[.sname], !=, literal[null]]] begin[{]
assign[member[.sname], cal... | Keyword[protected] identifier[AxisType] identifier[getAxisType] operator[SEP] identifier[NetcdfDataset] identifier[ncDataset] , identifier[VariableEnhanced] identifier[v] operator[SEP] {
identifier[String] identifier[sname] operator[=] identifier[ncDataset] operator[SEP] identifier[findAttValueIgnoreCase] opera... |
private void registerSynchronization(TransactionImpl odmgTrans, Transaction transaction)
{
// todo only need for development
if (odmgTrans == null || transaction == null)
{
log.error("One of the given parameters was null --> cannot do synchronization!" +
... | class class_name[name] begin[{]
method[registerSynchronization, return_type[void], modifier[private], parameter[odmgTrans, transaction]] begin[{]
if[binary_operation[binary_operation[member[.odmgTrans], ==, literal[null]], ||, binary_operation[member[.transaction], ==, literal[null]]]] begin[{]... | Keyword[private] Keyword[void] identifier[registerSynchronization] operator[SEP] identifier[TransactionImpl] identifier[odmgTrans] , identifier[Transaction] identifier[transaction] operator[SEP] {
Keyword[if] operator[SEP] identifier[odmgTrans] operator[==] Other[null] operator[||] identifier[transaction] opera... |
public String replace(Map<String, String> varMap)
{
StringBuilder newString = new StringBuilder();
int p = 0;
int p0 = 0;
while (true)
{
p = templateText.indexOf("${", p);
if (p == -1)
{
newString.append(templateText.substring(p0, templateText.len... | class class_name[name] begin[{]
method[replace, return_type[type[String]], modifier[public], parameter[varMap]] begin[{]
local_variable[type[StringBuilder], newString]
local_variable[type[int], p]
local_variable[type[int], p0]
while[literal[true]] begin[{]
... | Keyword[public] identifier[String] identifier[replace] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[varMap] operator[SEP] {
identifier[StringBuilder] identifier[newString] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] o... |
static <S extends Storable> ClobReplicationTrigger<S> create(Storage<S> masterStorage) {
Map<String, ? extends StorableProperty<S>> properties =
StorableIntrospector.examine(masterStorage.getStorableType()).getDataProperties();
List<String> clobNames = new ArrayList<String>(2);
... | class class_name[name] begin[{]
method[create, return_type[type[ClobReplicationTrigger]], modifier[static], parameter[masterStorage]] begin[{]
local_variable[type[Map], properties]
local_variable[type[List], clobNames]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement... | Keyword[static] operator[<] identifier[S] Keyword[extends] identifier[Storable] operator[>] identifier[ClobReplicationTrigger] operator[<] identifier[S] operator[>] identifier[create] operator[SEP] identifier[Storage] operator[<] identifier[S] operator[>] identifier[masterStorage] operator[SEP] {
identifier[Map]... |
@Override
public void process(JCas jCas) throws AnalysisEngineProcessException {
int sentenceCnt = 0;
int runningPageEnd = 0;
for (Sentence sentence : JCasUtil.select(jCas, Sentence.class)) {
if (sentenceCnt++ % splitEvery == 0) {
new DocumentPage(jCas, runnin... | class class_name[name] begin[{]
method[process, return_type[void], modifier[public], parameter[jCas]] begin[{]
local_variable[type[int], sentenceCnt]
local_variable[type[int], runningPageEnd]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[JCas] identifier[jCas] operator[SEP] Keyword[throws] identifier[AnalysisEngineProcessException] {
Keyword[int] identifier[sentenceCnt] operator[=] Other[0] operator[SEP] Keyword[int] identifier[runningPa... |
private void enhanceEKBCommit(EKBCommit commit) throws EKBException {
LOGGER.debug("Started to enhance the EKBCommit with Engineering Object information");
enhanceCommitInserts(commit);
enhanceCommitUpdates(commit);
// TODO: OPENENGSB-3357, consider also deletions in the enhancement
... | class class_name[name] begin[{]
method[enhanceEKBCommit, return_type[void], modifier[private], parameter[commit]] begin[{]
call[LOGGER.debug, parameter[literal["Started to enhance the EKBCommit with Engineering Object information"]]]
call[.enhanceCommitInserts, parameter[member[... | Keyword[private] Keyword[void] identifier[enhanceEKBCommit] operator[SEP] identifier[EKBCommit] identifier[commit] operator[SEP] Keyword[throws] identifier[EKBException] {
identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[enhanceCommitInserts]... |
public OmemoDevice getOwnDevice() {
synchronized (LOCK) {
BareJid jid = getOwnJid();
if (jid == null) {
return null;
}
return new OmemoDevice(jid, getDeviceId());
}
} | class class_name[name] begin[{]
method[getOwnDevice, return_type[type[OmemoDevice]], modifier[public], parameter[]] begin[{]
SYNCHRONIZED[member[.LOCK]] BEGIN[{]
local_variable[type[BareJid], jid]
if[binary_operation[member[.jid], ==, literal[null]]] begin[{]... | Keyword[public] identifier[OmemoDevice] identifier[getOwnDevice] operator[SEP] operator[SEP] {
Keyword[synchronized] operator[SEP] identifier[LOCK] operator[SEP] {
identifier[BareJid] identifier[jid] operator[=] identifier[getOwnJid] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ... |
public static final String connectObjects(Collection<?> ns) {
if (ns == null || ns.size() == 0) {
return "()";
}
StringBuilder sb = new StringBuilder(ns.size() * 8);
int size = ns.size();
for (int i = 0; i < size; i++) {
sb.append(",?");
}
... | class class_name[name] begin[{]
method[connectObjects, return_type[type[String]], modifier[final public static], parameter[ns]] begin[{]
if[binary_operation[binary_operation[member[.ns], ==, literal[null]], ||, binary_operation[call[ns.size, parameter[]], ==, literal[0]]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[connectObjects] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[ns] operator[SEP] {
Keyword[if] operator[SEP] identifier[ns] operator[==] Other[null] operator[||] identifier[ns] operator[SEP] identifi... |
protected State getNextState() {
switch (context.getContextType()) {
case ARRAY:
case DOCUMENT:
case SCOPE_DOCUMENT:
return State.TYPE;
case TOP_LEVEL:
return State.DONE;
default:
throw new BSONException(... | class class_name[name] begin[{]
method[getNextState, return_type[type[State]], modifier[protected], parameter[]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['ARRAY', 'DOCUMENT', 'SCOPE_DOCUMENT'], statements=[ReturnStatement(expression=MemberReference(member=TYPE, postfix_operators=[], pr... | Keyword[protected] identifier[State] identifier[getNextState] operator[SEP] operator[SEP] {
Keyword[switch] operator[SEP] identifier[context] operator[SEP] identifier[getContextType] operator[SEP] operator[SEP] operator[SEP] {
Keyword[case] identifier[ARRAY] operator[:] Keyword[case] identifier[DOCUM... |
protected static double getScore(DataSet workOn, Object evaluater, int folds, Random rand)
{
if(workOn instanceof ClassificationDataSet)
{
ClassificationModelEvaluation cme =
new ClassificationModelEvaluation((Classifier)evaluater,
(Classification... | class class_name[name] begin[{]
method[getScore, return_type[type[double]], modifier[static protected], parameter[workOn, evaluater, folds, rand]] begin[{]
if[binary_operation[member[.workOn], instanceof, type[ClassificationDataSet]]] begin[{]
local_variable[type[ClassificationModel... | Keyword[protected] Keyword[static] Keyword[double] identifier[getScore] operator[SEP] identifier[DataSet] identifier[workOn] , identifier[Object] identifier[evaluater] , Keyword[int] identifier[folds] , identifier[Random] identifier[rand] operator[SEP] {
Keyword[if] operator[SEP] identifier[workOn] Keyword[in... |
public CDACallback<Collection<Transformed>> all(CDACallback<Collection<Transformed>> callback) {
return Callbacks.subscribeAsync(
baseQuery()
.all()
.map(
new Function<CDAArray, List<Transformed>>() {
@Override
public List<Transform... | class class_name[name] begin[{]
method[all, return_type[type[CDACallback]], modifier[public], parameter[callback]] begin[{]
return[call[Callbacks.subscribeAsync, parameter[call[.baseQuery, parameter[]], member[.callback], member[.client]]]]
end[}]
END[}] | Keyword[public] identifier[CDACallback] operator[<] identifier[Collection] operator[<] identifier[Transformed] operator[>] operator[>] identifier[all] operator[SEP] identifier[CDACallback] operator[<] identifier[Collection] operator[<] identifier[Transformed] operator[>] operator[>] identifier[callback] operator[SEP] ... |
public static void printFinalSolutionSet(List<? extends Solution<?>> population) {
new SolutionListOutput(population)
.setSeparator("\t")
.setVarFileOutputContext(new DefaultFileOutputContext("VAR.tsv"))
.setFunFileOutputContext(new DefaultFileOutputContext("FUN.tsv"))
.print();
... | class class_name[name] begin[{]
method[printFinalSolutionSet, return_type[void], modifier[public static], parameter[population]] begin[{]
ClassCreator(arguments=[MemberReference(member=population, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type... | Keyword[public] Keyword[static] Keyword[void] identifier[printFinalSolutionSet] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[population] operator[SEP] {
Keyword[new] identifier[SolutionListOutput] operator[... |
public <K, V> void assertContainsOnly(Description description, Map<K, V> actual, MapEntry[] entries) {
isNotEmptyOrNull(entries);
assertNotNull(description, actual);
Map<K, V> notExpected = new LinkedHashMap<K, V>(actual);
Set<MapEntry> notFound = containsOnly(actual, entries, notExpected);
if (!not... | class class_name[name] begin[{]
method[assertContainsOnly, return_type[void], modifier[public], parameter[description, actual, entries]] begin[{]
call[.isNotEmptyOrNull, parameter[member[.entries]]]
call[.assertNotNull, parameter[member[.description], member[.actual]]]
l... | Keyword[public] operator[<] identifier[K] , identifier[V] operator[>] Keyword[void] identifier[assertContainsOnly] operator[SEP] identifier[Description] identifier[description] , identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[actual] , identifier[MapEntry] operator[SEP] operator[SE... |
private <T> Set<Class<? extends T>> load(Class<T> serviceClass) {
String serviceFile = SERVICES + "/" + serviceClass.getName();
LinkedHashSet<Class<? extends T>> providers = new LinkedHashSet<Class<? extends T>>();
try {
Enumeration<URL> enumeration = classLoader.getResources(servi... | class class_name[name] begin[{]
method[load, return_type[type[Set]], modifier[private], parameter[serviceClass]] begin[{]
local_variable[type[String], serviceFile]
local_variable[type[LinkedHashSet], providers]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Va... | Keyword[private] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] operator[>] identifier[load] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[serviceClass] operator[SEP] {
ident... |
@Override
public CompletableFuture<Void> disconnect(Serializable userid, InetSocketAddress sncpAddr) {
tryAcquireSemaphore();
CompletableFuture<Void> future = sncpNodeAddresses.removeSetItemAsync(SOURCE_SNCP_USERID_PREFIX + userid, InetSocketAddress.class, sncpAddr);
if (semaphore != nul... | class class_name[name] begin[{]
method[disconnect, return_type[type[CompletableFuture]], modifier[public], parameter[userid, sncpAddr]] begin[{]
call[.tryAcquireSemaphore, parameter[]]
local_variable[type[CompletableFuture], future]
if[binary_operation[member[.semaphore]... | annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[disconnect] operator[SEP] identifier[Serializable] identifier[userid] , identifier[InetSocketAddress] identifier[sncpAddr] operator[SEP] {
identifier[tryAcquireSemaphore] operator... |
protected HttpResponse executeAndHandle(Request request)
throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
HttpResponse response = execute(request);
handleResponse(response, request);
return response;
} | class class_name[name] begin[{]
method[executeAndHandle, return_type[type[HttpResponse]], modifier[protected], parameter[request]] begin[{]
local_variable[type[HttpResponse], response]
call[.handleResponse, parameter[member[.response], member[.request]]]
return[member[.response]... | Keyword[protected] identifier[HttpResponse] identifier[executeAndHandle] operator[SEP] identifier[Request] identifier[request] operator[SEP] Keyword[throws] identifier[IOException] , identifier[IllegalArgumentException] , identifier[IllegalAccessException] , identifier[FileNotFoundException] , identifier[IllegalSta... |
public List<? extends ItemData> accept(List<? extends ItemData> itemData)
{
if (getAllItems)
{
return itemData;
}
if (expressionNamePatterns == null)
{
initializePatterns();
}
List<ItemData> result = new ArrayList<ItemData>();
for (int ... | class class_name[name] begin[{]
method[accept, return_type[type[List]], modifier[public], parameter[itemData]] begin[{]
if[member[.getAllItems]] begin[{]
return[member[.itemData]]
else begin[{]
None
end[}]
if[binary_operation[member[.expressionNamePat... | Keyword[public] identifier[List] operator[<] operator[?] Keyword[extends] identifier[ItemData] operator[>] identifier[accept] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[ItemData] operator[>] identifier[itemData] operator[SEP] {
Keyword[if] operator[SEP] identifier[getAllIt... |
void robotPress(int click)
{
lastClick = click;
if (lastClick < clicks.length)
{
clicks[lastClick] = true;
}
} | class class_name[name] begin[{]
method[robotPress, return_type[void], modifier[default], parameter[click]] begin[{]
assign[member[.lastClick], member[.click]]
if[binary_operation[member[.lastClick], <, member[clicks.length]]] begin[{]
assign[member[.click... | Keyword[void] identifier[robotPress] operator[SEP] Keyword[int] identifier[click] operator[SEP] {
identifier[lastClick] operator[=] identifier[click] operator[SEP] Keyword[if] operator[SEP] identifier[lastClick] operator[<] identifier[clicks] operator[SEP] identifier[length] operator[SEP] {
identifier... |
private static void addSourcesAndIndicatorsToMenu(final MenuItem countryIndicators,
final Map<String, List<ViewWorldbankIndicatorDataCountrySummary>> sourceIndicatorMap) {
final Map<String, List<ViewWorldbankIndicatorDataCountrySummary>> sortedIndicatorMap = sourceIndicatorMap
.entrySet().stream().sorted((e... | class class_name[name] begin[{]
method[addSourcesAndIndicatorsToMenu, return_type[void], modifier[private static], parameter[countryIndicators, sourceIndicatorMap]] begin[{]
local_variable[type[Map], sortedIndicatorMap]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDecla... | Keyword[private] Keyword[static] Keyword[void] identifier[addSourcesAndIndicatorsToMenu] operator[SEP] Keyword[final] identifier[MenuItem] identifier[countryIndicators] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[ViewWorldbankIndicatorDataCountrySummary] o... |
public Document toXml(InputStream json) throws IOException, NotImplemented {
JsonReader reader = null;
try {
reader = new JsonReader(new InputStreamReader(json, "utf-8"));
return parse(reader);
} catch (UnsupportedEncodingException e) {
throw new IllegalStateE... | class class_name[name] begin[{]
method[toXml, return_type[type[Document]], modifier[public], parameter[json]] begin[{]
local_variable[type[JsonReader], reader]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=reader, postfix_operators=[], prefix_o... | Keyword[public] identifier[Document] identifier[toXml] operator[SEP] identifier[InputStream] identifier[json] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NotImplemented] {
identifier[JsonReader] identifier[reader] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[... |
public void putIndexedVariableProperties(String key, List<Map<String, String>> subKeyValues) {
checkNotNull(key);
checkNotNull(subKeyValues);
for (int idx = 0; idx < subKeyValues.size(); idx++) {
final Map<String, String> values = subKeyValues.get(idx);
for (Map.Entry<String, String> value : values.entrySet... | class class_name[name] begin[{]
method[putIndexedVariableProperties, return_type[void], modifier[public], parameter[key, subKeyValues]] begin[{]
call[.checkNotNull, parameter[member[.key]]]
call[.checkNotNull, parameter[member[.subKeyValues]]]
ForStatement(body=BlockStat... | Keyword[public] Keyword[void] identifier[putIndexedVariableProperties] operator[SEP] identifier[String] identifier[key] , identifier[List] operator[<] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[subKeyValues] operator[SEP] {
identifier[checkNotNull] op... |
public Map<String, Double> convertMapKey(Map<Integer, Double> probs) {
Map<String, Double> stringKeyProb = new HashMap<>();
probs.entrySet().forEach(e -> stringKeyProb.put(getLabel(e.getKey()), e.getValue()));
return stringKeyProb;
} | class class_name[name] begin[{]
method[convertMapKey, return_type[type[Map]], modifier[public], parameter[probs]] begin[{]
local_variable[type[Map], stringKeyProb]
call[probs.entrySet, parameter[]]
return[member[.stringKeyProb]]
end[}]
END[}] | Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Double] operator[>] identifier[convertMapKey] operator[SEP] identifier[Map] operator[<] identifier[Integer] , identifier[Double] operator[>] identifier[probs] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier... |
public static void removeChildrenFrom(final Element element) {
if (element != null) {
while (element.getFirstChild() != null) {
element.removeChild(element.getFirstChild());
}
}
} | class class_name[name] begin[{]
method[removeChildrenFrom, return_type[void], modifier[public static], parameter[element]] begin[{]
if[binary_operation[member[.element], !=, literal[null]]] begin[{]
while[binary_operation[call[element.getFirstChild, parameter[]], !=, lit... | Keyword[public] Keyword[static] Keyword[void] identifier[removeChildrenFrom] operator[SEP] Keyword[final] identifier[Element] identifier[element] operator[SEP] {
Keyword[if] operator[SEP] identifier[element] operator[!=] Other[null] operator[SEP] {
Keyword[while] operator[SEP] identifier[element] oper... |
private void initializeStateFromProps() throws UndefinedPropertyException {
this.nodeId = this.allProps.getInt(NODE_ID, INVALID_NODE_ID);
this.voldemortHome = this.allProps.getString(VOLDEMORT_HOME);
this.dataDirectory = this.allProps.getString(DATA_DIRECTORY);
this.metadataDirectory = t... | class class_name[name] begin[{]
method[initializeStateFromProps, return_type[void], modifier[private], parameter[]] begin[{]
assign[THIS[member[None.nodeId]], THIS[member[None.allProps]call[None.getInt, parameter[member[.NODE_ID], member[.INVALID_NODE_ID]]]]]
assign[THIS[member[... | Keyword[private] Keyword[void] identifier[initializeStateFromProps] operator[SEP] operator[SEP] Keyword[throws] identifier[UndefinedPropertyException] {
Keyword[this] operator[SEP] identifier[nodeId] operator[=] Keyword[this] operator[SEP] identifier[allProps] operator[SEP] identifier[getInt] operator[SEP] ident... |
public CMALocale fetchOne(String spaceId, String environmentId, String localeId) {
assertNotNull(spaceId, "spaceId");
assertNotNull(environmentId, "environmentId");
assertNotNull(localeId, "localeId");
return service.fetchOne(spaceId, environmentId, localeId).blockingFirst();
} | class class_name[name] begin[{]
method[fetchOne, return_type[type[CMALocale]], modifier[public], parameter[spaceId, environmentId, localeId]] begin[{]
call[.assertNotNull, parameter[member[.spaceId], literal["spaceId"]]]
call[.assertNotNull, parameter[member[.environmentId], lit... | Keyword[public] identifier[CMALocale] identifier[fetchOne] operator[SEP] identifier[String] identifier[spaceId] , identifier[String] identifier[environmentId] , identifier[String] identifier[localeId] operator[SEP] {
identifier[assertNotNull] operator[SEP] identifier[spaceId] , literal[String] operator[SEP] o... |
public void createRepository(RepositoryEntry rEntry) throws RepositoryConfigurationException, RepositoryException
{
// Need privileges to manage repository.
SecurityManager security = System.getSecurityManager();
if (security != null)
{
security.checkPermission(JCRRuntimePermissions.... | class class_name[name] begin[{]
method[createRepository, return_type[void], modifier[public], parameter[rEntry]] begin[{]
local_variable[type[SecurityManager], security]
if[binary_operation[member[.security], !=, literal[null]]] begin[{]
call[security.checkPermis... | Keyword[public] Keyword[void] identifier[createRepository] operator[SEP] identifier[RepositoryEntry] identifier[rEntry] operator[SEP] Keyword[throws] identifier[RepositoryConfigurationException] , identifier[RepositoryException] {
identifier[SecurityManager] identifier[security] operator[=] identifier[System] o... |
public Future<PutItemResult> putItemAsync(
final PutItemRequest putItemRequest,
final AsyncHandler<PutItemRequest, PutItemResult> asyncHandler)
throws AmazonServiceException, AmazonClientException {
return executorService.submit(new Callable<PutItemResult>() {
... | class class_name[name] begin[{]
method[putItemAsync, return_type[type[Future]], modifier[public], parameter[putItemRequest, asyncHandler]] begin[{]
return[call[executorService.submit, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[LocalVariableDeclaration(annotations... | Keyword[public] identifier[Future] operator[<] identifier[PutItemResult] operator[>] identifier[putItemAsync] operator[SEP] Keyword[final] identifier[PutItemRequest] identifier[putItemRequest] , Keyword[final] identifier[AsyncHandler] operator[<] identifier[PutItemRequest] , identifier[PutItemResult] operator[>] iden... |
public Observable<ServiceResponse<List<ModelTrainingInfo>>> getStatusWithServiceResponseAsync(UUID appId, String versionId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
}
if (appId == n... | class class_name[name] begin[{]
method[getStatusWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId]] begin[{]
if[binary_operation[THIS[member[None.client]call[None.endpoint, parameter[]]], ==, literal[null]]] begin[{]
ThrowStatement... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[ModelTrainingInfo] operator[>] operator[>] operator[>] identifier[getStatusWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versio... |
public static void copyProperties(Object source, Object target) {
copyProperties(source, target, CopyOptions.create());
} | class class_name[name] begin[{]
method[copyProperties, return_type[void], modifier[public static], parameter[source, target]] begin[{]
call[.copyProperties, parameter[member[.source], member[.target], call[CopyOptions.create, parameter[]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[copyProperties] operator[SEP] identifier[Object] identifier[source] , identifier[Object] identifier[target] operator[SEP] {
identifier[copyProperties] operator[SEP] identifier[source] , identifier[target] , identifier[CopyOptions] operator[SEP] identifi... |
@Nonnull
public static <DATATYPE> SuccessWithValue <DATATYPE> createFailure (@Nullable final DATATYPE aValue)
{
return new SuccessWithValue <> (ESuccess.FAILURE, aValue);
} | class class_name[name] begin[{]
method[createFailure, return_type[type[SuccessWithValue]], modifier[public static], parameter[aValue]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=FAILURE, postfix_operators=[], prefix_operators=[], qualifier=ESuccess, selectors=[]), MemberReference(me... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[DATATYPE] operator[>] identifier[SuccessWithValue] operator[<] identifier[DATATYPE] operator[>] identifier[createFailure] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[DATATYPE] identifier[aValue] opera... |
public AnnotationInfoList getRepeatable(final String name) {
boolean hasNamedAnnotation = false;
for (final AnnotationInfo ai : this) {
if (ai.getName().equals(name)) {
hasNamedAnnotation = true;
break;
}
}
if (!hasNamedAnnotation) ... | class class_name[name] begin[{]
method[getRepeatable, return_type[type[AnnotationInfoList]], modifier[public], parameter[name]] begin[{]
local_variable[type[boolean], hasNamedAnnotation]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[]... | Keyword[public] identifier[AnnotationInfoList] identifier[getRepeatable] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] {
Keyword[boolean] identifier[hasNamedAnnotation] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[AnnotationInfo]... |
private void confirmAndForceQuitAction(final Long actionId) {
/* Display the confirmation */
final ConfirmationDialog confirmDialog = new ConfirmationDialog(
i18n.getMessage("caption.forcequit.action.confirmbox"),
i18n.getMessage("message.forcequit.action.confirm"), i18n.... | class class_name[name] begin[{]
method[confirmAndForceQuitAction, return_type[void], modifier[private], parameter[actionId]] begin[{]
local_variable[type[ConfirmationDialog], confirmDialog]
call[UI.getCurrent, parameter[]]
call[confirmDialog.getWindow, parameter[]]
e... | Keyword[private] Keyword[void] identifier[confirmAndForceQuitAction] operator[SEP] Keyword[final] identifier[Long] identifier[actionId] operator[SEP] {
Keyword[final] identifier[ConfirmationDialog] identifier[confirmDialog] operator[=] Keyword[new] identifier[ConfirmationDialog] operator[SEP] identifier[i18n] op... |
public final HttpClient cookiesWhen(String name, Function<? super Cookie, Mono<? extends Cookie>> cookieBuilder) {
return new HttpClientCookieWhen(this, name, cookieBuilder);
} | class class_name[name] begin[{]
method[cookiesWhen, return_type[type[HttpClient]], modifier[final public], parameter[name, cookieBuilder]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=name, postfix_operator... | Keyword[public] Keyword[final] identifier[HttpClient] identifier[cookiesWhen] operator[SEP] identifier[String] identifier[name] , identifier[Function] operator[<] operator[?] Keyword[super] identifier[Cookie] , identifier[Mono] operator[<] operator[?] Keyword[extends] identifier[Cookie] operator[>] operator[>] identi... |
public static Panel horizontal(Component... components) {
Panel panel = new Panel();
panel.setLayoutManager(new LinearLayout(Direction.HORIZONTAL));
for(Component component: components) {
panel.addComponent(component);
}
return panel;
} | class class_name[name] begin[{]
method[horizontal, return_type[type[Panel]], modifier[public static], parameter[components]] begin[{]
local_variable[type[Panel], panel]
call[panel.setLayoutManager, parameter[ClassCreator(arguments=[MemberReference(member=HORIZONTAL, postfix_operators=[]... | Keyword[public] Keyword[static] identifier[Panel] identifier[horizontal] operator[SEP] identifier[Component] operator[...] identifier[components] operator[SEP] {
identifier[Panel] identifier[panel] operator[=] Keyword[new] identifier[Panel] operator[SEP] operator[SEP] operator[SEP] identifier[panel] operator[SEP... |
private synchronized void buildMaps() {
if (loggedTaskMap == null) {
loggedTaskMap = new HashMap<TaskID, LoggedTask>();
loggedTaskAttemptMap = new HashMap<TaskAttemptID, LoggedTaskAttempt>();
for (LoggedTask map : job.getMapTasks()) {
map = sanitizeLoggedTask(map);
if (map !... | class class_name[name] begin[{]
method[buildMaps, return_type[void], modifier[synchronized private], parameter[]] begin[{]
if[binary_operation[member[.loggedTaskMap], ==, literal[null]]] begin[{]
assign[member[.loggedTaskMap], ClassCreator(arguments=[], body=None, constr... | Keyword[private] Keyword[synchronized] Keyword[void] identifier[buildMaps] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[loggedTaskMap] operator[==] Other[null] operator[SEP] {
identifier[loggedTaskMap] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[TaskID] , ... |
protected void localRelease()
{
super.localRelease();
_defaultValue = null;
_escapeWhiteSpace = true;
_formatters = null;
_formatterErrors = false;
_formatDefaultValue = false;
_value = null;
} | class class_name[name] begin[{]
method[localRelease, return_type[void], modifier[protected], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=localRelease, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
assign[member... | Keyword[protected] Keyword[void] identifier[localRelease] operator[SEP] operator[SEP] {
Keyword[super] operator[SEP] identifier[localRelease] operator[SEP] operator[SEP] operator[SEP] identifier[_defaultValue] operator[=] Other[null] operator[SEP] identifier[_escapeWhiteSpace] operator[=] literal[boolean] operat... |
public void close() {
if (this.m_stream != null) {
try {
this.m_stream.close();
this.m_stream = null;
} catch (IOException e) {
logger.warn("Error closing stream", e);
}
}
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[THIS[member[None.m_stream]], !=, literal[null]]] begin[{]
TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], q... | Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[m_stream] operator[!=] Other[null] operator[SEP] {
Keyword[try] {
Keyword[this] operator[SEP] identifier[m_stream] operator[SEP] identifier[clos... |
@Override
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2, Color bgcolor,
ImageObserver observer) {
Paint saved = getPaint();
setPaint(bgcolor);
fillRect(dx1, dy1, dx2 - dx1, dy2 - dy1);
setPaint(sav... | class class_name[name] begin[{]
method[drawImage, return_type[type[boolean]], modifier[public], parameter[img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer]] begin[{]
local_variable[type[Paint], saved]
call[.setPaint, parameter[member[.bgcolor]]]
call[.fillR... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[drawImage] operator[SEP] identifier[Image] identifier[img] , Keyword[int] identifier[dx1] , Keyword[int] identifier[dy1] , Keyword[int] identifier[dx2] , Keyword[int] identifier[dy2] , Keyword[int] identifier[sx1] , Keyword[int] identi... |
@SuppressWarnings("unchecked")
public String generateToken(TokenOptions tokenOptions) throws OpenViduJavaClientException, OpenViduHttpException {
if (!this.hasSessionId()) {
this.getSessionId();
}
HttpPost request = new HttpPost(OpenVidu.urlOpenViduServer + OpenVidu.API_TOKENS);
JSONObject json = new JSO... | class class_name[name] begin[{]
method[generateToken, return_type[type[String]], modifier[public], parameter[tokenOptions]] begin[{]
if[THIS[call[None.hasSessionId, parameter[]]]] begin[{]
THIS[call[None.getSessionId, parameter[]]]
else begin[{]
None
end[... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[generateToken] operator[SEP] identifier[TokenOptions] identifier[tokenOptions] operator[SEP] Keyword[throws] identifier[OpenViduJavaClientException] , identifier[OpenViduHttpException] ... |
protected void makeConstParamMap(final Map<String, Parameter> paramMap, final Class<?> targetClass) {
try {
String fieldPrefix = targetClass.isMemberClass() ? CaseFormat.UPPER_SNAKE_CASE
.convert(targetClass.getSimpleName()) + "_" : "";
// 指定されたクラス直下の定数フィールドを追加
Field[] fields = targetClass.getFields();
... | class class_name[name] begin[{]
method[makeConstParamMap, return_type[void], modifier[protected], parameter[paramMap, targetClass]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=MethodInvocati... | Keyword[protected] Keyword[void] identifier[makeConstParamMap] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Parameter] operator[>] identifier[paramMap] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[targetClass] operator[SEP] {
Keyw... |
public static PrecisionScaleRoundedOperator of(int scale, MathContext mathContext) {
requireNonNull(mathContext);
if(RoundingMode.UNNECESSARY.equals(mathContext.getRoundingMode())) {
throw new IllegalArgumentException("To create the ScaleRoundedOperator you cannot use the RoundingMode.UNNECESSARY on MathCont... | class class_name[name] begin[{]
method[of, return_type[type[PrecisionScaleRoundedOperator]], modifier[public static], parameter[scale, mathContext]] begin[{]
call[.requireNonNull, parameter[member[.mathContext]]]
if[call[RoundingMode.UNNECESSARY.equals, parameter[call[mathContex... | Keyword[public] Keyword[static] identifier[PrecisionScaleRoundedOperator] identifier[of] operator[SEP] Keyword[int] identifier[scale] , identifier[MathContext] identifier[mathContext] operator[SEP] {
identifier[requireNonNull] operator[SEP] identifier[mathContext] operator[SEP] operator[SEP] Keyword[if] operato... |
@Override // override for Javadoc and performance
public int get(TemporalField field) {
if (field instanceof ChronoField) {
switch ((ChronoField) field) {
case NANO_OF_SECOND: return nanos;
case MICRO_OF_SECOND: return nanos / 1000;
case MILLI_OF_... | class class_name[name] begin[{]
method[get, return_type[type[int]], modifier[public], parameter[field]] begin[{]
if[binary_operation[member[.field], instanceof, type[ChronoField]]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['NANO_OF_SECOND'], statements=[ReturnStateme... | annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[get] operator[SEP] identifier[TemporalField] identifier[field] operator[SEP] {
Keyword[if] operator[SEP] identifier[field] Keyword[instanceof] identifier[ChronoField] operator[SEP] {
Keyword[switch] operator[SEP] operator[SEP] ... |
protected void doResponseHeaders(final HttpServletResponse response, final String mimeType) {
if (mimeType != null) {
response.setContentType(mimeType);
}
} | class class_name[name] begin[{]
method[doResponseHeaders, return_type[void], modifier[protected], parameter[response, mimeType]] begin[{]
if[binary_operation[member[.mimeType], !=, literal[null]]] begin[{]
call[response.setContentType, parameter[member[.mimeType]]]
... | Keyword[protected] Keyword[void] identifier[doResponseHeaders] operator[SEP] Keyword[final] identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[String] identifier[mimeType] operator[SEP] {
Keyword[if] operator[SEP] identifier[mimeType] operator[!=] Other[null] operator[SEP] {
... |
public void removeRelationship(String baseTableName,
String relatedTableName, String relationAuthor, String relationName) {
removeRelationship(baseTableName, relatedTableName,
buildRelationName(relationAuthor, relationName));
} | class class_name[name] begin[{]
method[removeRelationship, return_type[void], modifier[public], parameter[baseTableName, relatedTableName, relationAuthor, relationName]] begin[{]
call[.removeRelationship, parameter[member[.baseTableName], member[.relatedTableName], call[.buildRelationName, para... | Keyword[public] Keyword[void] identifier[removeRelationship] operator[SEP] identifier[String] identifier[baseTableName] , identifier[String] identifier[relatedTableName] , identifier[String] identifier[relationAuthor] , identifier[String] identifier[relationName] operator[SEP] {
identifier[removeRelationship]... |
public static <T extends Annotation> T findAnnotation(Class<?> clazz, Class<T> annotationClazz) {
T annotation = clazz.getAnnotation(annotationClazz);
if (annotation != null) {
return annotation;
}
Set<Class<?>> superTypes = ReflectionUtils.getSuperTypes(clazz);
for ... | class class_name[name] begin[{]
method[findAnnotation, return_type[type[T]], modifier[public static], parameter[clazz, annotationClazz]] begin[{]
local_variable[type[T], annotation]
if[binary_operation[member[.annotation], !=, literal[null]]] begin[{]
return[member[.annotati... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Annotation] operator[>] identifier[T] identifier[findAnnotation] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[Class] operator[<] identifier[T] operator[>] identifier[annotationCla... |
public void execute(DbMigration migration) {
notNull(migration, "migration");
LOGGER.debug(format("About to execute migration %s to version %d", migration.getScriptName(),
migration.getVersion()));
String lastStatement = null;
try {
SimpleCQLLexer lexer = new ... | class class_name[name] begin[{]
method[execute, return_type[void], modifier[public], parameter[migration]] begin[{]
call[.notNull, parameter[member[.migration], literal["migration"]]]
call[LOGGER.debug, parameter[call[.format, parameter[literal["About to execute migration %s to ... | Keyword[public] Keyword[void] identifier[execute] operator[SEP] identifier[DbMigration] identifier[migration] operator[SEP] {
identifier[notNull] operator[SEP] identifier[migration] , literal[String] operator[SEP] operator[SEP] identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] identifier[format] ... |
@Nullable
ViewHolder popRecycledViewHolder(int itemType) {
Deque<ViewHolder> deque = mViewHolders.get(itemType);
return deque == null || deque.isEmpty() ? null : deque.pop();
} | class class_name[name] begin[{]
method[popRecycledViewHolder, return_type[type[ViewHolder]], modifier[default], parameter[itemType]] begin[{]
local_variable[type[Deque], deque]
return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=deque, pos... | annotation[@] identifier[Nullable] identifier[ViewHolder] identifier[popRecycledViewHolder] operator[SEP] Keyword[int] identifier[itemType] operator[SEP] {
identifier[Deque] operator[<] identifier[ViewHolder] operator[>] identifier[deque] operator[=] identifier[mViewHolders] operator[SEP] identifier[get] operato... |
public com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomer[] getEntries() {
return entries;
} | class class_name[name] begin[{]
method[getEntries, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.entries]]
end[}]
END[}] | Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[mcm] operator[SEP] identifier[ManagedCustomer] operator[SEP] operator[S... |
public void switchesFromJSON(Network net, JSONArray a) throws JSONConverterException {
for (Object o : a) {
net.newSwitch(requiredInt((JSONObject) o, "id"), readCapacity((JSONObject) o));
}
} | class class_name[name] begin[{]
method[switchesFromJSON, return_type[void], modifier[public], parameter[net, a]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Cast(expression=MemberReference(membe... | Keyword[public] Keyword[void] identifier[switchesFromJSON] operator[SEP] identifier[Network] identifier[net] , identifier[JSONArray] identifier[a] operator[SEP] Keyword[throws] identifier[JSONConverterException] {
Keyword[for] operator[SEP] identifier[Object] identifier[o] operator[:] identifier[a] operator[SE... |
@Override
public void onCreate() {
super.onCreate();
// initialize object graph and inject this
mObjectGraph = ObjectGraph.create(getModules().toArray());
mObjectGraph.inject(this);
// debug mode stuff
if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABL... | class class_name[name] begin[{]
method[onCreate, return_type[void], modifier[public], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=onCreate, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
assign[member[.mObjectGr... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onCreate] operator[SEP] operator[SEP] {
Keyword[super] operator[SEP] identifier[onCreate] operator[SEP] operator[SEP] operator[SEP] identifier[mObjectGraph] operator[=] identifier[ObjectGraph] operator[SEP] identifier[create] operator[SE... |
@Override
public List<DColumn> getColumns(String storeName, String rowKey,
String startColumn, String endColumn, int count) {
String tableName = storeToTableName(storeName);
Map<String, AttributeValue> attributeMap = m_ddbClient.getItem(tableName, makeDDBKey(rowKe... | class class_name[name] begin[{]
method[getColumns, return_type[type[List]], modifier[public], parameter[storeName, rowKey, startColumn, endColumn, count]] begin[{]
local_variable[type[String], tableName]
local_variable[type[Map], attributeMap]
local_variable[type[List], colList]
... | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[DColumn] operator[>] identifier[getColumns] operator[SEP] identifier[String] identifier[storeName] , identifier[String] identifier[rowKey] , identifier[String] identifier[startColumn] , identifier[String] identifier[endColumn]... |
public static void printErrorLog(int taskId, Logger logger, String message, Exception e) {
if(e == null) {
logger.error("Task id " + Integer.toString(taskId) + "] " + message);
} else {
logger.error("Task id " + Integer.toString(taskId) + "] " + message, e);
}
} | class class_name[name] begin[{]
method[printErrorLog, return_type[void], modifier[public static], parameter[taskId, logger, message, e]] begin[{]
if[binary_operation[member[.e], ==, literal[null]]] begin[{]
call[logger.error, parameter[binary_operation[binary_operation[b... | Keyword[public] Keyword[static] Keyword[void] identifier[printErrorLog] operator[SEP] Keyword[int] identifier[taskId] , identifier[Logger] identifier[logger] , identifier[String] identifier[message] , identifier[Exception] identifier[e] operator[SEP] {
Keyword[if] operator[SEP] identifier[e] operator[==] Othe... |
@Override
void appendProperty( String name, Expression value ) {
checkSemicolon();
super.appendProperty( name, value );
} | class class_name[name] begin[{]
method[appendProperty, return_type[void], modifier[default], parameter[name, value]] begin[{]
call[.checkSemicolon, parameter[]]
SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, s... | annotation[@] identifier[Override] Keyword[void] identifier[appendProperty] operator[SEP] identifier[String] identifier[name] , identifier[Expression] identifier[value] operator[SEP] {
identifier[checkSemicolon] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[appendProperty] op... |
public static void configure(String xmlConfig, File voltroot) {
try {
Class<?> loggerClz = Class.forName("org.voltcore.logging.VoltLog4jLogger");
assert(loggerClz != null);
Method configureMethod = loggerClz.getMethod("configure", String.class, File.class);
config... | class class_name[name] begin[{]
method[configure, return_type[void], modifier[public static], parameter[xmlConfig, voltroot]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_oper... | Keyword[public] Keyword[static] Keyword[void] identifier[configure] operator[SEP] identifier[String] identifier[xmlConfig] , identifier[File] identifier[voltroot] operator[SEP] {
Keyword[try] {
identifier[Class] operator[<] operator[?] operator[>] identifier[loggerClz] operator[=] identifier[Class] o... |
public static String sortOrderToString(JinxConstants.SortOrder sortOrder) {
if (sortOrder == null) {
return null;
}
return sortOrder.toString().replaceAll("_", "-");
} | class class_name[name] begin[{]
method[sortOrderToString, return_type[type[String]], modifier[public static], parameter[sortOrder]] begin[{]
if[binary_operation[member[.sortOrder], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
r... | Keyword[public] Keyword[static] identifier[String] identifier[sortOrderToString] operator[SEP] identifier[JinxConstants] operator[SEP] identifier[SortOrder] identifier[sortOrder] operator[SEP] {
Keyword[if] operator[SEP] identifier[sortOrder] operator[==] Other[null] operator[SEP] {
Keyword[return] Ot... |
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError,
Action onComplete, Consumer<? super Disposable> onSubscribe) {
ObjectHelper.requireNonNull(onNext, "onNext is null");
ObjectHe... | class class_name[name] begin[{]
method[subscribe, return_type[type[Disposable]], modifier[final public], parameter[onNext, onError, onComplete, onSubscribe]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.onNext], literal["onNext is null"]]]
call[ObjectHelper.requi... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Disposable] identifier[subscribe] operator[SEP] identifier[Consumer] operator[<] operator[?] Keyword[sup... |
public boolean parse(String document)
throws SAXException
{
// Trim and strip any leading <?xml...?>
StringBuilder doc = new StringBuilder(document.trim());
int index = doc.indexOf("<?xml");
if(index == 0) {
index = doc.indexOf("?>");
if(index < 0)... | class class_name[name] begin[{]
method[parse, return_type[type[boolean]], modifier[public], parameter[document]] begin[{]
local_variable[type[StringBuilder], doc]
local_variable[type[int], index]
if[binary_operation[member[.index], ==, literal[0]]] begin[{]
... | Keyword[public] Keyword[boolean] identifier[parse] operator[SEP] identifier[String] identifier[document] operator[SEP] Keyword[throws] identifier[SAXException] {
identifier[StringBuilder] identifier[doc] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[document] operator[SEP] identifie... |
public boolean check(PrintStream ps, double tol)
{
// check to make sure all edges are fully connected
// and that the edges are convex
double dist;
double pointTol = 10 * tol;
if (!checkFaces(tolerance, ps)) {
return false;
}
// check point inc... | class class_name[name] begin[{]
method[check, return_type[type[boolean]], modifier[public], parameter[ps, tol]] begin[{]
local_variable[type[double], dist]
local_variable[type[double], pointTol]
if[call[.checkFaces, parameter[member[.tolerance], member[.ps]]]] begin[{]
... | Keyword[public] Keyword[boolean] identifier[check] operator[SEP] identifier[PrintStream] identifier[ps] , Keyword[double] identifier[tol] operator[SEP] {
Keyword[double] identifier[dist] operator[SEP] Keyword[double] identifier[pointTol] operator[=] Other[10] operator[*] identifier[tol] operator[SEP] Keyword[if... |
@Indexable(type = IndexableType.REINDEX)
@Override
public CPDefinition addCPDefinition(CPDefinition cpDefinition) {
cpDefinition.setNew(true);
return cpDefinitionPersistence.update(cpDefinition);
} | class class_name[name] begin[{]
method[addCPDefinition, return_type[type[CPDefinition]], modifier[public], parameter[cpDefinition]] begin[{]
call[cpDefinition.setNew, parameter[literal[true]]]
return[call[cpDefinitionPersistence.update, parameter[member[.cpDefinition]]]]
end[}]
END[... | annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CPDefinition] identifier[addCPDefinition] operator[SEP] identifier[CPDefinition] identifier[cpDefinition]... |
private boolean makeCaptureHistoryTree(CaptureTreeNode node) {
//CaptureTreeNode child;
int k = stkp;
//int k = kp;
while (k < stk) {
StackEntry e = stack[k];
if (e.type == MEM_START) {
int n = e.getMemNum();
if (n <= Config.MAX_CA... | class class_name[name] begin[{]
method[makeCaptureHistoryTree, return_type[type[boolean]], modifier[private], parameter[node]] begin[{]
local_variable[type[int], k]
while[binary_operation[member[.k], <, member[.stk]]] begin[{]
local_variable[type[StackEntry], e]
... | Keyword[private] Keyword[boolean] identifier[makeCaptureHistoryTree] operator[SEP] identifier[CaptureTreeNode] identifier[node] operator[SEP] {
Keyword[int] identifier[k] operator[=] identifier[stkp] operator[SEP] Keyword[while] operator[SEP] identifier[k] operator[<] identifier[stk] operator[SEP] {
i... |
public java.util.List<Communication> getCommunications() {
if (communications == null) {
communications = new com.amazonaws.internal.SdkInternalList<Communication>();
}
return communications;
} | class class_name[name] begin[{]
method[getCommunications, return_type[type[java]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.communications], ==, literal[null]]] begin[{]
assign[member[.communications], ClassCreator(arguments=[], body=None, cons... | Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[Communication] operator[>] identifier[getCommunications] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[communications] operator[==] Other[null] operator[SEP] {
ide... |
@Override
public void addListener(IChemObjectListener col) {
List<IChemObjectListener> listeners = lazyChemObjectListeners();
if (!listeners.contains(col)) {
listeners.add(col);
}
// Should we throw an exception if col is already in here or
// just silently ignor... | class class_name[name] begin[{]
method[addListener, return_type[void], modifier[public], parameter[col]] begin[{]
local_variable[type[List], listeners]
if[call[listeners.contains, parameter[member[.col]]]] begin[{]
call[listeners.add, parameter[member[.col]]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addListener] operator[SEP] identifier[IChemObjectListener] identifier[col] operator[SEP] {
identifier[List] operator[<] identifier[IChemObjectListener] operator[>] identifier[listeners] operator[=] identifier[lazyChemObjectListeners] ope... |
@Beta
public static void createParentDirs(File file) throws IOException {
checkNotNull(file);
File parent = file.getCanonicalFile().getParentFile();
if (parent == null) {
/*
* The given directory is a filesystem root. All zero of its ancestors exist. This doesn't
* mean that the root i... | class class_name[name] begin[{]
method[createParentDirs, return_type[void], modifier[public static], parameter[file]] begin[{]
call[.checkNotNull, parameter[member[.file]]]
local_variable[type[File], parent]
if[binary_operation[member[.parent], ==, literal[null]]] begin[... | annotation[@] identifier[Beta] Keyword[public] Keyword[static] Keyword[void] identifier[createParentDirs] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[checkNotNull] operator[SEP] identifier[file] operator[SEP] operator[SEP] identifier[File] id... |
public final Connection getConnection() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
String url = "jdbc:mysql://" + this.hostname + ":" + this.port + "/" + this.database + "?user=" + this.username + "&password="
+ this.password + "&autoReconnect=t... | class class_name[name] begin[{]
method[getConnection, return_type[type[Connection]], modifier[final public], parameter[]] begin[{]
local_variable[type[String], url]
call[DriverManager.registerDriver, parameter[Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], pre... | Keyword[public] Keyword[final] identifier[Connection] identifier[getConnection] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[InstantiationException] , identifier[IllegalAccessException] , identifier[ClassNotFoundException] {
identifier[String] identifier[url] operator[=] l... |
static <K, V> void onSend(ProducerRecord<K, V> record, Span span) {
setCommonTags(span);
Tags.MESSAGE_BUS_DESTINATION.set(span, record.topic());
if (record.partition() != null) {
span.setTag("partition", record.partition());
}
} | class class_name[name] begin[{]
method[onSend, return_type[void], modifier[static], parameter[record, span]] begin[{]
call[.setCommonTags, parameter[member[.span]]]
call[Tags.MESSAGE_BUS_DESTINATION.set, parameter[member[.span], call[record.topic, parameter[]]]]
... | Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] Keyword[void] identifier[onSend] operator[SEP] identifier[ProducerRecord] operator[<] identifier[K] , identifier[V] operator[>] identifier[record] , identifier[Span] identifier[span] operator[SEP] {
identifier[setCommonTags] operator[SEP] i... |
public static PBKDF2Params getInstance(Object obj)
{
if (obj instanceof PBKDF2Params) {
return (PBKDF2Params) obj;
}
if (obj instanceof org.bouncycastle.asn1.pkcs.PBKDF2Params) {
org.bouncycastle.asn1.pkcs.PBKDF2Params params = (org.bouncycastle.asn1.pkcs.PBKDF2Param... | class class_name[name] begin[{]
method[getInstance, return_type[type[PBKDF2Params]], modifier[public static], parameter[obj]] begin[{]
if[binary_operation[member[.obj], instanceof, type[PBKDF2Params]]] begin[{]
return[Cast(expression=MemberReference(member=obj, postfix_operators=[],... | Keyword[public] Keyword[static] identifier[PBKDF2Params] identifier[getInstance] operator[SEP] identifier[Object] identifier[obj] operator[SEP] {
Keyword[if] operator[SEP] identifier[obj] Keyword[instanceof] identifier[PBKDF2Params] operator[SEP] {
Keyword[return] operator[SEP] identifier[PBKDF2Params... |
private void instrument(String id, int port, MetricRegistry registry) {
this.setPort(port);
this.accepts = registry.meter(id + "-accepts");
this.connects = registry.meter(id + "-connects");
this.disconnects = registry.meter(id + "-disconnects");
this.connections = registry.counte... | class class_name[name] begin[{]
method[instrument, return_type[void], modifier[private], parameter[id, port, registry]] begin[{]
THIS[call[None.setPort, parameter[member[.port]]]]
assign[THIS[member[None.accepts]], call[registry.meter, parameter[binary_operation[member[.id], +, ... | Keyword[private] Keyword[void] identifier[instrument] operator[SEP] identifier[String] identifier[id] , Keyword[int] identifier[port] , identifier[MetricRegistry] identifier[registry] operator[SEP] {
Keyword[this] operator[SEP] identifier[setPort] operator[SEP] identifier[port] operator[SEP] operator[SEP] Keyw... |
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public static <T> Observable<T> fromArray(T... items) {
ObjectHelper.requireNonNull(items, "items is null");
if (items.length == 0) {
return empty();
} else
if (items.length == 1) {
re... | class class_name[name] begin[{]
method[fromArray, return_type[type[Observable]], modifier[public static], parameter[items]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.items], literal["items is null"]]]
if[binary_operation[member[items.length], ==, literal[0]]] ... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] annotation[@] identifier[NonNull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Observable] operator[<] identif... |
public Data readAsData(long sequence) {
checkReadSequence(sequence);
Object rbItem = readOrLoadItem(sequence);
return serializationService.toData(rbItem);
} | class class_name[name] begin[{]
method[readAsData, return_type[type[Data]], modifier[public], parameter[sequence]] begin[{]
call[.checkReadSequence, parameter[member[.sequence]]]
local_variable[type[Object], rbItem]
return[call[serializationService.toData, parameter[member[.rbIt... | Keyword[public] identifier[Data] identifier[readAsData] operator[SEP] Keyword[long] identifier[sequence] operator[SEP] {
identifier[checkReadSequence] operator[SEP] identifier[sequence] operator[SEP] operator[SEP] identifier[Object] identifier[rbItem] operator[=] identifier[readOrLoadItem] operator[SEP] identifi... |
public Observable<Page<JobScheduleInner>> listByAutomationAccountNextAsync(final String nextPageLink) {
return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<JobScheduleInner>>, Page<JobScheduleInner>>() {
@Override
... | class class_name[name] begin[{]
method[listByAutomationAccountNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{]
return[call[.listByAutomationAccountNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[JobScheduleInner] operator[>] operator[>] identifier[listByAutomationAccountNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] {
Keyword[return] identifier[listByAutomationAcc... |
protected List<I_CmsFacetQueryItem> parseFacetQueryItems(JSONObject queryFacetObject) throws JSONException {
JSONArray items = queryFacetObject.getJSONArray(JSON_KEY_QUERY_FACET_QUERY);
List<I_CmsFacetQueryItem> result = new ArrayList<I_CmsFacetQueryItem>(items.length());
for (int i = 0; i < it... | class class_name[name] begin[{]
method[parseFacetQueryItems, return_type[type[List]], modifier[protected], parameter[queryFacetObject]] begin[{]
local_variable[type[JSONArray], items]
local_variable[type[List], result]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariab... | Keyword[protected] identifier[List] operator[<] identifier[I_CmsFacetQueryItem] operator[>] identifier[parseFacetQueryItems] operator[SEP] identifier[JSONObject] identifier[queryFacetObject] operator[SEP] Keyword[throws] identifier[JSONException] {
identifier[JSONArray] identifier[items] operator[=] identifier[q... |
public void marshall(SMSChannelRequest sMSChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (sMSChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(sMSChannelRequest.getEnabled... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[sMSChannelRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.sMSChannelRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(pos... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[SMSChannelRequest] identifier[sMSChannelRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[sMSChannelRequest] operator[==] Other[null] operator[SEP] {
... |
@Override
public Object newInstance(Object[] args) throws BeanConstructorNotFoundException {
Constructor<?> constructor = getSuitableConstructor(args);
return LdiConstructorUtil.newInstance(constructor, args);
} | class class_name[name] begin[{]
method[newInstance, return_type[type[Object]], modifier[public], parameter[args]] begin[{]
local_variable[type[Constructor], constructor]
return[call[LdiConstructorUtil.newInstance, parameter[member[.constructor], member[.args]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[newInstance] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[BeanConstructorNotFoundException] {
identifier[Constructor] operator[<] operator[?] operator[>] iden... |
private static int actualArrayLength(int recommended) {
if (recommended > MAX_ARRAY_LENGTH) {
return MAX_ARRAY_LENGTH;
} else if (recommended < MIN_ARRAY_LENGTH) {
return MIN_ARRAY_LENGTH;
} else {
final int a = Integer.highestOneBit(recommended);
return a == recommended? a: a << 1;
... | class class_name[name] begin[{]
method[actualArrayLength, return_type[type[int]], modifier[private static], parameter[recommended]] begin[{]
if[binary_operation[member[.recommended], >, member[.MAX_ARRAY_LENGTH]]] begin[{]
return[member[.MAX_ARRAY_LENGTH]]
else begin[{]
... | Keyword[private] Keyword[static] Keyword[int] identifier[actualArrayLength] operator[SEP] Keyword[int] identifier[recommended] operator[SEP] {
Keyword[if] operator[SEP] identifier[recommended] operator[>] identifier[MAX_ARRAY_LENGTH] operator[SEP] {
Keyword[return] identifier[MAX_ARRAY_LENGTH] operato... |
protected final int getNextNamespaceNode2(int baseID) {
int type;
while ((type = _type2(++baseID)) == DTM.ATTRIBUTE_NODE);
if (type == DTM.NAMESPACE_NODE)
return baseID;
else
return NULL;
} | class class_name[name] begin[{]
method[getNextNamespaceNode2, return_type[type[int]], modifier[final protected], parameter[baseID]] begin[{]
local_variable[type[int], type]
while[binary_operation[assign[member[.type], call[._type2, parameter[member[.baseID]]]], ==, member[DTM.ATTRIBUTE_... | Keyword[protected] Keyword[final] Keyword[int] identifier[getNextNamespaceNode2] operator[SEP] Keyword[int] identifier[baseID] operator[SEP] {
Keyword[int] identifier[type] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[type] operator[=] identifier[_type2] operator[SEP] operator[++] identifi... |
void score(final List<Integer> attributes,
List<Double> retval)
{
Map <Integer,Integer > encoder = precomputation_id_encoder;
// arma.vec hidden_layer = arma.zeros<arma.vec>(hidden_layer_size);
Matrix hidden_layer = Matrix.zero(hidden_layer_size, 1);
for (int i = 0,... | class class_name[name] begin[{]
method[score, return_type[void], modifier[default], parameter[attributes, retval]] begin[{]
local_variable[type[Map], encoder]
local_variable[type[Matrix], hidden_layer]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(ann... | Keyword[void] identifier[score] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Integer] operator[>] identifier[attributes] , identifier[List] operator[<] identifier[Double] operator[>] identifier[retval] operator[SEP] {
identifier[Map] operator[<] identifier[Integer] , identifier[Integer]... |
public void marshall(BatchReadSuccessfulResponse batchReadSuccessfulResponse, ProtocolMarshaller protocolMarshaller) {
if (batchReadSuccessfulResponse == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[batchReadSuccessfulResponse, protocolMarshaller]] begin[{]
if[binary_operation[member[.batchReadSuccessfulResponse], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(ar... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BatchReadSuccessfulResponse] identifier[batchReadSuccessfulResponse] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[batchReadSuccessfulResponse] operator[==] Other[nu... |
public Note note(Note responseTo, String name, String content, boolean personal, Map<String, Object> attributes) {
Note note = new Note(responseTo, instance);
note.setName(name);
note.setContent(content);
note.setPersonal(personal);
addAttributes(note, attributes);
note.s... | class class_name[name] begin[{]
method[note, return_type[type[Note]], modifier[public], parameter[responseTo, name, content, personal, attributes]] begin[{]
local_variable[type[Note], note]
call[note.setName, parameter[member[.name]]]
call[note.setContent, parameter[memb... | Keyword[public] identifier[Note] identifier[note] operator[SEP] identifier[Note] identifier[responseTo] , identifier[String] identifier[name] , identifier[String] identifier[content] , Keyword[boolean] identifier[personal] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier... |
public static boolean intersectRaySphere(Rayf ray, Spheref sphere, Vector2f result) {
return intersectRaySphere(ray.oX, ray.oY, ray.oZ, ray.dX, ray.dY, ray.dZ, sphere.x, sphere.y, sphere.z, sphere.r*sphere.r, result);
} | class class_name[name] begin[{]
method[intersectRaySphere, return_type[type[boolean]], modifier[public static], parameter[ray, sphere, result]] begin[{]
return[call[.intersectRaySphere, parameter[member[ray.oX], member[ray.oY], member[ray.oZ], member[ray.dX], member[ray.dY], member[ray.dZ], member[sphe... | Keyword[public] Keyword[static] Keyword[boolean] identifier[intersectRaySphere] operator[SEP] identifier[Rayf] identifier[ray] , identifier[Spheref] identifier[sphere] , identifier[Vector2f] identifier[result] operator[SEP] {
Keyword[return] identifier[intersectRaySphere] operator[SEP] identifier[ray] operator... |
void startProcess(boolean squelch) throws IOException {
LOGGER.entering(squelch);
if (!squelch) {
LOGGER.fine("Executing command " + cmdLine.toString());
}
watchdog.reset();
DefaultExecutor executor = new DefaultExecutor();
executor.setWatchdog(watchdog);
... | class class_name[name] begin[{]
method[startProcess, return_type[void], modifier[default], parameter[squelch]] begin[{]
call[LOGGER.entering, parameter[member[.squelch]]]
if[member[.squelch]] begin[{]
call[LOGGER.fine, parameter[binary_operation[literal["... | Keyword[void] identifier[startProcess] operator[SEP] Keyword[boolean] identifier[squelch] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[LOGGER] operator[SEP] identifier[entering] operator[SEP] identifier[squelch] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[sq... |
public Observable<ManagedInstanceInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, managedInstanceName, parameters).map(new Func1<ServiceResponse<ManagedInstanceInner>, ManagedInsta... | class class_name[name] begin[{]
method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, managedInstanceName, parameters]] begin[{]
return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.managedInstanceName], m... | Keyword[public] identifier[Observable] operator[<] identifier[ManagedInstanceInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[managedInstanceName] , identifier[ManagedInstanceInner] identifier[parameters] operator[SEP] {... |
public static String printExpInfoStr(ExpResultInfoVo dto) {
if (null == dto)
return null;
StringBuilder str = new StringBuilder();
for (ExpResultInfoVo.ExpResultListVo.ExpResultListResultVo list : dto.getResult().getList()) {
str.append(list.getTime()).append(" ").append(... | class class_name[name] begin[{]
method[printExpInfoStr, return_type[type[String]], modifier[public static], parameter[dto]] begin[{]
if[binary_operation[literal[null], ==, member[.dto]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[StringB... | Keyword[public] Keyword[static] identifier[String] identifier[printExpInfoStr] operator[SEP] identifier[ExpResultInfoVo] identifier[dto] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] identifier[dto] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[StringBuilder] identifier[... |
public EClass getIfcCableSegmentType() {
if (ifcCableSegmentTypeEClass == null) {
ifcCableSegmentTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(65);
}
return ifcCableSegmentTypeEClass;
} | class class_name[name] begin[{]
method[getIfcCableSegmentType, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcCableSegmentTypeEClass], ==, literal[null]]] begin[{]
assign[member[.ifcCableSegmentTypeEClass], Cast(expressi... | Keyword[public] identifier[EClass] identifier[getIfcCableSegmentType] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcCableSegmentTypeEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcCableSegmentTypeEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ... |
@Override
public Map<String, Object> getParameters(
HttpServletRequest request, HttpServletResponse response) {
final LocaleManager localeManager = this.getLocaleManager(request);
final List<Locale> locales = localeManager.getLocales();
if (locales != null && locales.size() > 0 ... | class class_name[name] begin[{]
method[getParameters, return_type[type[Map]], modifier[public], parameter[request, response]] begin[{]
local_variable[type[LocaleManager], localeManager]
local_variable[type[List], locales]
if[binary_operation[binary_operation[binary_operation[mem... | annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getParameters] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] {
Keyword[final] ide... |
private int lineBeginningFor(int pos) {
if (sourceChars == null) {
return -1;
}
if (pos <= 0) {
return 0;
}
char[] buf = sourceChars;
if (pos >= buf.length) {
pos = buf.length - 1;
}
while (--pos >= 0) {
char... | class class_name[name] begin[{]
method[lineBeginningFor, return_type[type[int]], modifier[private], parameter[pos]] begin[{]
if[binary_operation[member[.sourceChars], ==, literal[null]]] begin[{]
return[literal[1]]
else begin[{]
None
end[}]
if[binary_... | Keyword[private] Keyword[int] identifier[lineBeginningFor] operator[SEP] Keyword[int] identifier[pos] operator[SEP] {
Keyword[if] operator[SEP] identifier[sourceChars] operator[==] Other[null] operator[SEP] {
Keyword[return] operator[-] Other[1] operator[SEP]
}
Keyword[if] operator[SEP] ... |
public static String nativeCall(final String... commands) {
LOG.info("Running '{}'", Arrays.asList(commands));
final ProcessBuilder pb = new ProcessBuilder(commands);
try {
final Process process = pb.start();
final InputStream is = process.getInputStream();
fi... | class class_name[name] begin[{]
method[nativeCall, return_type[type[String]], modifier[public static], parameter[commands]] begin[{]
call[LOG.info, parameter[literal["Running '{}'"], call[Arrays.asList, parameter[member[.commands]]]]]
local_variable[type[ProcessBuilder], pb]
Try... | Keyword[public] Keyword[static] identifier[String] identifier[nativeCall] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[commands] operator[SEP] {
identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[Arrays] operator[SEP] identifier[asList] operator... |
public static Date randomDate(Date startInclusive, Date endExclusive) {
checkArgument(startInclusive != null, "Start must be non-null");
checkArgument(endExclusive != null, "End must be non-null");
Instant startInstant = startInclusive.toInstant();
Instant endInstant = endExclusive.toInstant();
Inst... | class class_name[name] begin[{]
method[randomDate, return_type[type[Date]], 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[Date] identifier[randomDate] operator[SEP] identifier[Date] identifier[startInclusive] , identifier[Date] identifier[endExclusive] operator[SEP] {
identifier[checkArgument] operator[SEP] identifier[startInclusive] operator[!=] Other[null] , literal[String] operator[SE... |
public static void setStatus(HttpStatus httpStatus, Translet translet) {
translet.getResponseAdapter().setStatus(httpStatus.value());
} | class class_name[name] begin[{]
method[setStatus, return_type[void], modifier[public static], parameter[httpStatus, translet]] begin[{]
call[translet.getResponseAdapter, parameter[]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[setStatus] operator[SEP] identifier[HttpStatus] identifier[httpStatus] , identifier[Translet] identifier[translet] operator[SEP] {
identifier[translet] operator[SEP] identifier[getResponseAdapter] operator[SEP] operator[SEP] operator[SEP] identifier[setSt... |
public void setAcList(StringArray v) {
if (DBInfo_Type.featOkTst && ((DBInfo_Type)jcasType).casFeat_acList == null)
jcasType.jcas.throwFeatMissing("acList", "de.julielab.jules.types.DBInfo");
jcasType.ll_cas.ll_setRefValue(addr, ((DBInfo_Type)jcasType).casFeatCode_acList, jcasType.ll_cas.ll_getFSRef(v));} | class class_name[name] begin[{]
method[setAcList, return_type[void], modifier[public], parameter[v]] begin[{]
if[binary_operation[member[DBInfo_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors... | Keyword[public] Keyword[void] identifier[setAcList] operator[SEP] identifier[StringArray] identifier[v] operator[SEP] {
Keyword[if] operator[SEP] identifier[DBInfo_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[DBInfo_Type] operator[SEP] identifier[jcasType] operato... |
public <T> T get(K key, Class<T> type) throws ConvertException{
return get(key, type, false);
} | class class_name[name] begin[{]
method[get, return_type[type[T]], modifier[public], parameter[key, type]] begin[{]
return[call[.get, parameter[member[.key], member[.type], literal[false]]]]
end[}]
END[}] | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] identifier[K] identifier[key] , identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] Keyword[throws] identifier[ConvertException] {
Keyword[return] identifier[get] operator[SEP] id... |
public void clean() throws Exception
{
try
{
client.delete().forPath(basePath);
}
catch ( KeeperException.BadVersionException ignore )
{
// ignore - another thread/process got the lock
}
catch ( KeeperException.NotEmptyException ignore ... | class class_name[name] begin[{]
method[clean, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=delete, postfix_operators=[], prefix_operators=[], qualifier=client, selectors=[MethodInvocation(arguments=[M... | Keyword[public] Keyword[void] identifier[clean] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[try] {
identifier[client] operator[SEP] identifier[delete] operator[SEP] operator[SEP] operator[SEP] identifier[forPath] operator[SEP] identifier[basePath] operator[SEP] operator... |
public void billingAccount_DELETE(String billingAccount, String details, OvhTerminationReasonEnum reason) throws IOException {
String qPath = "/telephony/{billingAccount}";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "details", details);
query(sb, "reason", reason);
exec(qPath, "DELETE", sb.toSt... | class class_name[name] begin[{]
method[billingAccount_DELETE, return_type[void], modifier[public], parameter[billingAccount, details, reason]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
call[.query, parameter[member[.sb], literal["detail... | Keyword[public] Keyword[void] identifier[billingAccount_DELETE] operator[SEP] identifier[String] identifier[billingAccount] , identifier[String] identifier[details] , identifier[OvhTerminationReasonEnum] identifier[reason] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[qP... |
public static DateInterval parse(
String text,
ChronoParser<PlainDate> parser,
String intervalPattern
) throws ParseException {
return IntervalParser.parsePattern(text, DateIntervalFactory.INSTANCE, parser, intervalPattern);
} | class class_name[name] begin[{]
method[parse, return_type[type[DateInterval]], modifier[public static], parameter[text, parser, intervalPattern]] begin[{]
return[call[IntervalParser.parsePattern, parameter[member[.text], member[DateIntervalFactory.INSTANCE], member[.parser], member[.intervalPattern]]]]... | Keyword[public] Keyword[static] identifier[DateInterval] identifier[parse] operator[SEP] identifier[String] identifier[text] , identifier[ChronoParser] operator[<] identifier[PlainDate] operator[>] identifier[parser] , identifier[String] identifier[intervalPattern] operator[SEP] Keyword[throws] identifier[ParseExcept... |
public List<org.jmxtrans.agent.util.json.JsonValue> values() {
return Collections.unmodifiableList(values);
} | class class_name[name] begin[{]
method[values, return_type[type[List]], modifier[public], parameter[]] begin[{]
return[call[Collections.unmodifiableList, parameter[member[.values]]]]
end[}]
END[}] | Keyword[public] identifier[List] operator[<] identifier[org] operator[SEP] identifier[jmxtrans] operator[SEP] identifier[agent] operator[SEP] identifier[util] operator[SEP] identifier[json] operator[SEP] identifier[JsonValue] operator[>] identifier[values] operator[SEP] operator[SEP] {
Keyword[return] identifier... |
public ConditionFactory pollInterval(long pollInterval, TimeUnit unit) {
PollInterval fixedPollInterval = new FixedPollInterval(new Duration(pollInterval, unit));
return new ConditionFactory(alias, timeoutConstraint, fixedPollInterval, definePollDelay(pollDelay, fixedPollInterval),
catch... | class class_name[name] begin[{]
method[pollInterval, return_type[type[ConditionFactory]], modifier[public], parameter[pollInterval, unit]] begin[{]
local_variable[type[PollInterval], fixedPollInterval]
return[ClassCreator(arguments=[MemberReference(member=alias, postfix_operators=[], prefix_ope... | Keyword[public] identifier[ConditionFactory] identifier[pollInterval] operator[SEP] Keyword[long] identifier[pollInterval] , identifier[TimeUnit] identifier[unit] operator[SEP] {
identifier[PollInterval] identifier[fixedPollInterval] operator[=] Keyword[new] identifier[FixedPollInterval] operator[SEP] Keyword[n... |
public DescribeGroupsResult withGroups(GroupMetadata... groups) {
if (this.groups == null) {
setGroups(new java.util.ArrayList<GroupMetadata>(groups.length));
}
for (GroupMetadata ele : groups) {
this.groups.add(ele);
}
return this;
} | class class_name[name] begin[{]
method[withGroups, return_type[type[DescribeGroupsResult]], modifier[public], parameter[groups]] begin[{]
if[binary_operation[THIS[member[None.groups]], ==, literal[null]]] begin[{]
call[.setGroups, parameter[ClassCreator(arguments=[Member... | Keyword[public] identifier[DescribeGroupsResult] identifier[withGroups] operator[SEP] identifier[GroupMetadata] operator[...] identifier[groups] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[groups] operator[==] Other[null] operator[SEP] {
identifier[setGroups] opera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.