code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public INDArray storeAndAllocateNewArray() {
val shape = sameDiff.getShapeForVarName(getVarName());
if(getArr() != null && Arrays.equals(getArr().shape(),shape))
return getArr();
if(varName == null)
throw new ND4JIllegalStateException("Unable to store array for null vari... | class class_name[name] begin[{]
method[storeAndAllocateNewArray, return_type[type[INDArray]], modifier[public], parameter[]] begin[{]
local_variable[type[val], shape]
if[binary_operation[binary_operation[call[.getArr, parameter[]], !=, literal[null]], &&, call[Arrays.equals, parameter[c... | Keyword[public] identifier[INDArray] identifier[storeAndAllocateNewArray] operator[SEP] operator[SEP] {
identifier[val] identifier[shape] operator[=] identifier[sameDiff] operator[SEP] identifier[getShapeForVarName] operator[SEP] identifier[getVarName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyw... |
public boolean isDeleted(QPath itemPath)
{
ItemState lastState = changesLog.getItemState(itemPath);
if (lastState != null && lastState.isDeleted())
{
return true;
}
return false;
} | class class_name[name] begin[{]
method[isDeleted, return_type[type[boolean]], modifier[public], parameter[itemPath]] begin[{]
local_variable[type[ItemState], lastState]
if[binary_operation[binary_operation[member[.lastState], !=, literal[null]], &&, call[lastState.isDeleted, parameter[]... | Keyword[public] Keyword[boolean] identifier[isDeleted] operator[SEP] identifier[QPath] identifier[itemPath] operator[SEP] {
identifier[ItemState] identifier[lastState] operator[=] identifier[changesLog] operator[SEP] identifier[getItemState] operator[SEP] identifier[itemPath] operator[SEP] operator[SEP] Keyword[... |
public EEnum getMediaFidelityStpMedEx() {
if (mediaFidelityStpMedExEEnum == null) {
mediaFidelityStpMedExEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(165);
}
return mediaFidelityStpMedExEEnum;
} | class class_name[name] begin[{]
method[getMediaFidelityStpMedEx, return_type[type[EEnum]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.mediaFidelityStpMedExEEnum], ==, literal[null]]] begin[{]
assign[member[.mediaFidelityStpMedExEEnum], Cast(expre... | Keyword[public] identifier[EEnum] identifier[getMediaFidelityStpMedEx] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[mediaFidelityStpMedExEEnum] operator[==] Other[null] operator[SEP] {
identifier[mediaFidelityStpMedExEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP... |
private RedBlackTreeNode<Key, Value> floor(RedBlackTreeNode<Key, Value> x, Key key) {
if (x == null) {
return null;
}
int cmp = key.compareTo(x.getKey());
if (cmp == 0) {
return x;
}
if (cmp < 0) {
return floor(x.getLeft(), key);
}
RedBlackTreeNode<Key, Value> t = floor(x.getRight(), key);
if (t... | class class_name[name] begin[{]
method[floor, return_type[type[RedBlackTreeNode]], modifier[private], parameter[x, key]] begin[{]
if[binary_operation[member[.x], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[... | Keyword[private] identifier[RedBlackTreeNode] operator[<] identifier[Key] , identifier[Value] operator[>] identifier[floor] operator[SEP] identifier[RedBlackTreeNode] operator[<] identifier[Key] , identifier[Value] operator[>] identifier[x] , identifier[Key] identifier[key] operator[SEP] {
Keyword[if] operato... |
@Override
public void removeByC_ST(long CPDefinitionId, int status) {
for (CPInstance cpInstance : findByC_ST(CPDefinitionId, status,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpInstance);
}
} | class class_name[name] begin[{]
method[removeByC_ST, return_type[void], modifier[public], parameter[CPDefinitionId, status]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cpInstance, postfix_operators=... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeByC_ST] operator[SEP] Keyword[long] identifier[CPDefinitionId] , Keyword[int] identifier[status] operator[SEP] {
Keyword[for] operator[SEP] identifier[CPInstance] identifier[cpInstance] operator[:] identifier[findByC_ST] operator... |
public void close() {
if (thread == null) {
closed = true;
}
running = false;
if (thread != null) {
thread.interrupt();
}
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.thread], ==, literal[null]]] begin[{]
assign[member[.closed], literal[true]]
else begin[{]
None
end[}]
ass... | Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[thread] operator[==] Other[null] operator[SEP] {
identifier[closed] operator[=] literal[boolean] operator[SEP]
}
identifier[running] operator[=] literal[boolean] operator[SE... |
@Override
@FFDCIgnore(MalformedURLException.class)
public URL getResource() {
String useRelPath = getRelativePath();
if ( (zipEntryData == null) || zipEntryData.isDirectory() ) {
useRelPath += "/";
}
URI entryUri = rootContainer.createEntryUri(useRelPath);
i... | class class_name[name] begin[{]
method[getResource, return_type[type[URL]], modifier[public], parameter[]] begin[{]
local_variable[type[String], useRelPath]
if[binary_operation[binary_operation[member[.zipEntryData], ==, literal[null]], ||, call[zipEntryData.isDirectory, parameter[]]]] ... | annotation[@] identifier[Override] annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[MalformedURLException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[URL] identifier[getResource] operator[SEP] operator[SEP] {
identifier[String] identifier[useRelPath] operator[=] identifier... |
public void set_async_reply_cb(final int id, final CallBack cb) {
final AsyncCallObject aco = async_request_table.get(id);
if (aco != null) {
aco.cb = cb;
}
} | class class_name[name] begin[{]
method[set_async_reply_cb, return_type[void], modifier[public], parameter[id, cb]] begin[{]
local_variable[type[AsyncCallObject], aco]
if[binary_operation[member[.aco], !=, literal[null]]] begin[{]
assign[member[aco.cb], member[.cb... | Keyword[public] Keyword[void] identifier[set_async_reply_cb] operator[SEP] Keyword[final] Keyword[int] identifier[id] , Keyword[final] identifier[CallBack] identifier[cb] operator[SEP] {
Keyword[final] identifier[AsyncCallObject] identifier[aco] operator[=] identifier[async_request_table] operator[SEP] identifi... |
public static int getInt(JSONValue value) {
if (value == null)
return 0;
if (!(value instanceof Number))
throw new JSONException(NOT_A_NUMBER);
return ((Number)value).intValue();
} | class class_name[name] begin[{]
method[getInt, return_type[type[int]], modifier[public static], parameter[value]] begin[{]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
return[literal[0]]
else begin[{]
None
end[}]
if[binary_operation[member[.va... | Keyword[public] Keyword[static] Keyword[int] identifier[getInt] operator[SEP] identifier[JSONValue] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[return] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[!] operator[SEP] ident... |
public void process(String name) throws Exception
{
ProjectFile file = new UniversalProjectReader().read(name);
for (Task task : file.getTasks())
{
if (!task.getSummary())
{
System.out.print(task.getWBS());
System.out.print("\t");
System.out.pri... | class class_name[name] begin[{]
method[process, return_type[void], modifier[public], parameter[name]] begin[{]
local_variable[type[ProjectFile], file]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getSummary, postfix_operato... | Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[ProjectFile] identifier[file] operator[=] Keyword[new] identifier[UniversalProjectReader] operator[SEP] operator[SEP] operator[SEP] identifier[read]... |
public static <K, V> V getOrDefault(final Map<K, V> map, final Object key, final V defaultValue) {
if (N.isNullOrEmpty(map)) {
return defaultValue;
}
final V val = map.get(key);
if (val != null || map.containsKey(key)) {
return val;
} else {
... | class class_name[name] begin[{]
method[getOrDefault, return_type[type[V]], modifier[public static], parameter[map, key, defaultValue]] begin[{]
if[call[N.isNullOrEmpty, parameter[member[.map]]]] begin[{]
return[member[.defaultValue]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[V] identifier[getOrDefault] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[map] , Keyword[final] identifier[Object] identifier[key] , Keyword[final] identif... |
AutoBean<OperationMessage> makeOperationMessage(final SimpleProxyId<BaseProxy> stableId,
final AutoBean<?> proxyBean, final boolean useDelta) {
// The OperationMessages describes operations on exactly one entity
final AutoBean<OperationMessage> toReturn = MessageFactoryHolder.FACTORY.operation();
fin... | class class_name[name] begin[{]
method[makeOperationMessage, return_type[type[AutoBean]], modifier[default], parameter[stableId, proxyBean, useDelta]] begin[{]
local_variable[type[AutoBean], toReturn]
local_variable[type[OperationMessage], operation]
call[operation.setTypeToken,... | identifier[AutoBean] operator[<] identifier[OperationMessage] operator[>] identifier[makeOperationMessage] operator[SEP] Keyword[final] identifier[SimpleProxyId] operator[<] identifier[BaseProxy] operator[>] identifier[stableId] , Keyword[final] identifier[AutoBean] operator[<] operator[?] operator[>] identifier[proxy... |
private FileStatus createFileStatus(StoredObject tmp, Container cObj,
String hostName, Path path) throws IllegalArgumentException, IOException {
String newMergedPath = getMergedPath(hostName, path, tmp.getName());
return new FileStatus(tmp.getContentLength(), false, 1, blockSize,
Utils.lastModifie... | class class_name[name] begin[{]
method[createFileStatus, return_type[type[FileStatus]], modifier[private], parameter[tmp, cObj, hostName, path]] begin[{]
local_variable[type[String], newMergedPath]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getContentLength, postfix_op... | Keyword[private] identifier[FileStatus] identifier[createFileStatus] operator[SEP] identifier[StoredObject] identifier[tmp] , identifier[Container] identifier[cObj] , identifier[String] identifier[hostName] , identifier[Path] identifier[path] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] , iden... |
public Map<CtClass, Set<CtMethod>> find(final CtMethod declaredMethod, final int level) {
return find(declaredMethod, level, new HashMap<CtClass, Set<CtMethod>>());
} | class class_name[name] begin[{]
method[find, return_type[type[Map]], modifier[public], parameter[declaredMethod, level]] begin[{]
return[call[.find, parameter[member[.declaredMethod], member[.level], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_ope... | Keyword[public] identifier[Map] operator[<] identifier[CtClass] , identifier[Set] operator[<] identifier[CtMethod] operator[>] operator[>] identifier[find] operator[SEP] Keyword[final] identifier[CtMethod] identifier[declaredMethod] , Keyword[final] Keyword[int] identifier[level] operator[SEP] {
Keyword[return... |
private NamingException throwCannotInstanciateObjectException(EJBBinding binding,
JavaColonNamespace jndiType,
String lookupName,
... | class class_name[name] begin[{]
method[throwCannotInstanciateObjectException, return_type[type[NamingException]], modifier[private], parameter[binding, jndiType, lookupName, cause]] begin[{]
local_variable[type[String], jndiName]
local_variable[type[J2EEName], j2eeName]
local_variable[t... | Keyword[private] identifier[NamingException] identifier[throwCannotInstanciateObjectException] operator[SEP] identifier[EJBBinding] identifier[binding] , identifier[JavaColonNamespace] identifier[jndiType] , identifier[String] identifier[lookupName] , identifier[Throwable] identifier[cause] operator[SEP] Keyword[thr... |
public Observable<NotificationHubResourceInner> patchAsync(String resourceGroupName, String namespaceName, String notificationHubName) {
return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1<ServiceResponse<NotificationHubResourceInner>, NotificationHubResourc... | class class_name[name] begin[{]
method[patchAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, namespaceName, notificationHubName]] begin[{]
return[call[.patchWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.namespaceName], member[.notificationHu... | Keyword[public] identifier[Observable] operator[<] identifier[NotificationHubResourceInner] operator[>] identifier[patchAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[namespaceName] , identifier[String] identifier[notificationHubName] operator[SEP] {
Keywo... |
public final void mNEGATION() throws RecognitionException {
try {
int _type = NEGATION;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:283:5: ( '!' )
// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:283:7: '!'
{
match('!'); if (state.failed... | class class_name[name] begin[{]
method[mNEGATION, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=NEGATION, postfix_operators=[], prefix_operat... | Keyword[public] Keyword[final] Keyword[void] identifier[mNEGATION] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
Keyword[int] identifier[_type] operator[=] identifier[NEGATION] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAUL... |
protected Properties load(String name, String includePropertyName, Set<String> history) throws InvalidPropertiesFormatException, IOException{
if (history != null && history.contains(name)){ // to prevent looping
throw new IllegalArgumentException("Loop found when loading properties file: " + name);
}
Prope... | class class_name[name] begin[{]
method[load, return_type[type[Properties]], modifier[protected], parameter[name, includePropertyName, history]] begin[{]
if[binary_operation[binary_operation[member[.history], !=, literal[null]], &&, call[history.contains, parameter[member[.name]]]]] begin[{]
... | Keyword[protected] identifier[Properties] identifier[load] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[includePropertyName] , identifier[Set] operator[<] identifier[String] operator[>] identifier[history] operator[SEP] Keyword[throws] identifier[InvalidPropertiesFormatException] ... |
public static SimpleModule getModule(final ObjectMapper mapper) {
SimpleModule module = new SimpleModule();
module.setSerializerModifier(new BeanSerializerModifier() {
@Override
public JsonSerializer<?> modifySerializer(SerializationConfig config, BeanDescription beanDesc, JsonSe... | class class_name[name] begin[{]
method[getModule, return_type[type[SimpleModule]], modifier[public static], parameter[mapper]] begin[{]
local_variable[type[SimpleModule], module]
call[module.setSerializerModifier, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=... | Keyword[public] Keyword[static] identifier[SimpleModule] identifier[getModule] operator[SEP] Keyword[final] identifier[ObjectMapper] identifier[mapper] operator[SEP] {
identifier[SimpleModule] identifier[module] operator[=] Keyword[new] identifier[SimpleModule] operator[SEP] operator[SEP] operator[SEP] identifie... |
public boolean next()
{
boolean ret = false;
if (this.iterator == null) {
this.iterator = this.objects.iterator();
}
if (this.iterator.hasNext()) {
this.current = this.iterator.next();
ret = true;
}
return ret;
} | class class_name[name] begin[{]
method[next, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
local_variable[type[boolean], ret]
if[binary_operation[THIS[member[None.iterator]], ==, literal[null]]] begin[{]
assign[THIS[member[None.iterator]], T... | Keyword[public] Keyword[boolean] identifier[next] operator[SEP] operator[SEP] {
Keyword[boolean] identifier[ret] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[iterator] operator[==] Other[null] operator[SEP] {
Keyword[this] operator[SEP] id... |
@Override
public IRingSet getRings(IAtom atom) {
logger.debug("Getting rings for atom: ", atom);
return super.getRings(atom);
} | class class_name[name] begin[{]
method[getRings, return_type[type[IRingSet]], modifier[public], parameter[atom]] begin[{]
call[logger.debug, parameter[literal["Getting rings for atom: "], member[.atom]]]
return[SuperMethodInvocation(arguments=[MemberReference(member=atom, postfix_operat... | annotation[@] identifier[Override] Keyword[public] identifier[IRingSet] identifier[getRings] operator[SEP] identifier[IAtom] identifier[atom] operator[SEP] {
identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[atom] operator[SEP] operator[SEP] Keyword[return] Keyword[su... |
public Observable<AppServiceEnvironmentResourceInner> createOrUpdateAsync(String resourceGroupName, String name, AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentEnvelope).map(new Func1<ServiceResponse<AppSe... | class class_name[name] begin[{]
method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name, hostingEnvironmentEnvelope]] begin[{]
return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.name], member[.hosting... | Keyword[public] identifier[Observable] operator[<] identifier[AppServiceEnvironmentResourceInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[name] , identifier[AppServiceEnvironmentResourceInner] identifier[hostingEnvironm... |
public EClass getIfcStackTerminalType() {
if (ifcStackTerminalTypeEClass == null) {
ifcStackTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(530);
}
return ifcStackTerminalTypeEClass;
} | class class_name[name] begin[{]
method[getIfcStackTerminalType, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcStackTerminalTypeEClass], ==, literal[null]]] begin[{]
assign[member[.ifcStackTerminalTypeEClass], Cast(expre... | Keyword[public] identifier[EClass] identifier[getIfcStackTerminalType] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcStackTerminalTypeEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcStackTerminalTypeEClass] operator[=] operator[SEP] identifier[EClass] operator[SE... |
public Expression<java.util.Date> gt(java.util.Date value) {
SimpleDateFormat formatter = getDateTimeFormatter();
String valueString = "'" + formatter.format(value).concat("Z") + "'";
return new Expression<java.util.Date>(this, Operation.gt, valueString);
} | class class_name[name] begin[{]
method[gt, return_type[type[Expression]], modifier[public], parameter[value]] begin[{]
local_variable[type[SimpleDateFormat], formatter]
local_variable[type[String], valueString]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[... | Keyword[public] identifier[Expression] operator[<] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] operator[>] identifier[gt] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] identifier[value] operator[SEP] {
identifier[SimpleDateFormat] ... |
public static <T> T last(List<T> self) {
if (self.isEmpty()) {
throw new NoSuchElementException("Cannot access last() element from an empty List");
}
return self.get(self.size() - 1);
} | class class_name[name] begin[{]
method[last, return_type[type[T]], modifier[public static], parameter[self]] begin[{]
if[call[self.isEmpty, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, sel... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[last] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[self] operator[SEP] {
Keyword[if] operator[SEP] identifier[self] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] opera... |
public List<Problem> validate(TypeElement type) {
List<Problem> problems = new ArrayList<Problem>();
boolean declared = false;
int constructor = 0;
List<Element> keys = new ArrayList<Element>();
for (Element element : type.getEnclosedElements()) {
ElementKind kind = element.getKind();
if (kind ==... | class class_name[name] begin[{]
method[validate, return_type[type[List]], modifier[public], parameter[type]] begin[{]
local_variable[type[List], problems]
local_variable[type[boolean], declared]
local_variable[type[int], constructor]
local_variable[type[List], keys]
ForS... | Keyword[public] identifier[List] operator[<] identifier[Problem] operator[>] identifier[validate] operator[SEP] identifier[TypeElement] identifier[type] operator[SEP] {
identifier[List] operator[<] identifier[Problem] operator[>] identifier[problems] operator[=] Keyword[new] identifier[ArrayList] operator[<] ide... |
private void buildElement(MessageMLParser context, org.w3c.dom.Element element) throws InvalidInputException,
ProcessingException {
Element child = context.createElement(element, this);
child.buildAll(context, element);
child.validate();
addChild(child);
} | class class_name[name] begin[{]
method[buildElement, return_type[void], modifier[private], parameter[context, element]] begin[{]
local_variable[type[Element], child]
call[child.buildAll, parameter[member[.context], member[.element]]]
call[child.validate, parameter[]]
... | Keyword[private] Keyword[void] identifier[buildElement] operator[SEP] identifier[MessageMLParser] identifier[context] , identifier[org] operator[SEP] identifier[w3c] operator[SEP] identifier[dom] operator[SEP] identifier[Element] identifier[element] operator[SEP] Keyword[throws] identifier[InvalidInputException] , id... |
protected void bindElementDescription(BindingFactory factory, CodeElementExtractor.ElementDescription... descriptions) {
for (final CodeElementExtractor.ElementDescription description : descriptions) {
bindTypeReferences(factory,
description.getBuilderInterfaceType(),
description.getBuilderImplementation... | class class_name[name] begin[{]
method[bindElementDescription, return_type[void], modifier[protected], parameter[factory, descriptions]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=factory, postfix_o... | Keyword[protected] Keyword[void] identifier[bindElementDescription] operator[SEP] identifier[BindingFactory] identifier[factory] , identifier[CodeElementExtractor] operator[SEP] identifier[ElementDescription] operator[...] identifier[descriptions] operator[SEP] {
Keyword[for] operator[SEP] Keyword[final] identi... |
@Override
protected void onInitialize() {
if (patterns == null && log.isWarnEnabled()) {
// Log somewhat
log.warn("No Patterns configured for AbstractPatternFilter [" + getClass().getName() + "]. "
+ "This could imply a configuration problem.");
} else ... | class class_name[name] begin[{]
method[onInitialize, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[binary_operation[member[.patterns], ==, literal[null]], &&, call[log.isWarnEnabled, parameter[]]]] begin[{]
call[log.warn, parameter[bin... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onInitialize] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[patterns] operator[==] Other[null] operator[&&] identifier[log] operator[SEP] identifier[isWarnEnabled] operator[SEP] operator[SEP] operator[SEP] {
... |
@Override public Node insertChildAt(Node toInsert, int index) {
if (toInsert instanceof Element && getDocumentElement() != null) {
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR,
"Only one root element allowed");
}
if (toInsert instanceof DocumentType &... | class class_name[name] begin[{]
method[insertChildAt, return_type[type[Node]], modifier[public], parameter[toInsert, index]] begin[{]
if[binary_operation[binary_operation[member[.toInsert], instanceof, type[Element]], &&, binary_operation[call[.getDocumentElement, parameter[]], !=, literal[null... | annotation[@] identifier[Override] Keyword[public] identifier[Node] identifier[insertChildAt] operator[SEP] identifier[Node] identifier[toInsert] , Keyword[int] identifier[index] operator[SEP] {
Keyword[if] operator[SEP] identifier[toInsert] Keyword[instanceof] identifier[Element] operator[&&] identifier[getDoc... |
public Datatype.Builder mapHasToBuilderMethod(UnaryOperator<Boolean> mapper) {
Objects.requireNonNull(mapper);
return setHasToBuilderMethod(mapper.apply(getHasToBuilderMethod()));
} | class class_name[name] begin[{]
method[mapHasToBuilderMethod, return_type[type[Datatype]], modifier[public], parameter[mapper]] begin[{]
call[Objects.requireNonNull, parameter[member[.mapper]]]
return[call[.setHasToBuilderMethod, parameter[call[mapper.apply, parameter[call[.getHasToBuil... | Keyword[public] identifier[Datatype] operator[SEP] identifier[Builder] identifier[mapHasToBuilderMethod] operator[SEP] identifier[UnaryOperator] operator[<] identifier[Boolean] operator[>] identifier[mapper] operator[SEP] {
identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[map... |
@Override
public String getCloneSeparator() {
if (allowedProps != null) {
return (String) allowedProps.get(CFG_CLONE_SEPARATOR);
}
return null;
} | class class_name[name] begin[{]
method[getCloneSeparator, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.allowedProps], !=, literal[null]]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=CFG_CLONE_SE... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getCloneSeparator] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[allowedProps] operator[!=] Other[null] operator[SEP] {
Keyword[return] operator[SEP] identifier[String] operator[SEP] identifier[allowe... |
public void setMode(int mode) {
model.setMode(mode);
asCategoryButton.setSelected(PropertySheet.VIEW_AS_CATEGORIES == mode);
} | class class_name[name] begin[{]
method[setMode, return_type[void], modifier[public], parameter[mode]] begin[{]
call[model.setMode, parameter[member[.mode]]]
call[asCategoryButton.setSelected, parameter[binary_operation[member[PropertySheet.VIEW_AS_CATEGORIES], ==, member[.mode]]... | Keyword[public] Keyword[void] identifier[setMode] operator[SEP] Keyword[int] identifier[mode] operator[SEP] {
identifier[model] operator[SEP] identifier[setMode] operator[SEP] identifier[mode] operator[SEP] operator[SEP] identifier[asCategoryButton] operator[SEP] identifier[setSelected] operator[SEP] identifier[... |
private void processChallenges(
final Map<String, Header> challenges,
final AuthState authState,
final AuthenticationHandler authHandler,
final HttpResponse response,
final HttpContext context)
throws MalformedChallengeException, AuthenticationException {
AuthScheme authScheme... | class class_name[name] begin[{]
method[processChallenges, return_type[void], modifier[private], parameter[challenges, authState, authHandler, response, context]] begin[{]
local_variable[type[AuthScheme], authScheme]
if[binary_operation[member[.authScheme], ==, literal[null]]] begin[{]
... | Keyword[private] Keyword[void] identifier[processChallenges] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Header] operator[>] identifier[challenges] , Keyword[final] identifier[AuthState] identifier[authState] , Keyword[final] identifier[AuthenticationHandler] identifier[a... |
public AnnotationEntityDataModelFactory addClass(Class<?> cls) {
EdmEntity entityAnnotation = cls.getAnnotation(EdmEntity.class);
EdmComplex complexAnnotation = cls.getAnnotation(EdmComplex.class);
EdmFunction functionAnnotation = cls.getAnnotation(EdmFunction.class);
EdmFunctionImport f... | class class_name[name] begin[{]
method[addClass, return_type[type[AnnotationEntityDataModelFactory]], modifier[public], parameter[cls]] begin[{]
local_variable[type[EdmEntity], entityAnnotation]
local_variable[type[EdmComplex], complexAnnotation]
local_variable[type[EdmFunction], functi... | Keyword[public] identifier[AnnotationEntityDataModelFactory] identifier[addClass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] operator[SEP] {
identifier[EdmEntity] identifier[entityAnnotation] operator[=] identifier[cls] operator[SEP] identifier[getAnnotation] operator[SEP... |
private static Node brokerToNode(Broker broker) {
return new Node(broker.id(), broker.host(), broker.port());
} | class class_name[name] begin[{]
method[brokerToNode, return_type[type[Node]], modifier[private static], parameter[broker]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=id, postfix_operators=[], prefix_operators=[], qualifier=broker, selectors=[], type_arguments=None), M... | Keyword[private] Keyword[static] identifier[Node] identifier[brokerToNode] operator[SEP] identifier[Broker] identifier[broker] operator[SEP] {
Keyword[return] Keyword[new] identifier[Node] operator[SEP] identifier[broker] operator[SEP] identifier[id] operator[SEP] operator[SEP] , identifier[broker] operator[SEP... |
protected static boolean isIgnoredColumn(final Set<String> ignoredColumns, final String columnName) {
return ignoredColumns.stream().anyMatch(s -> s.equalsIgnoreCase(columnName));
} | class class_name[name] begin[{]
method[isIgnoredColumn, return_type[type[boolean]], modifier[static protected], parameter[ignoredColumns, columnName]] begin[{]
return[call[ignoredColumns.stream, parameter[]]]
end[}]
END[}] | Keyword[protected] Keyword[static] Keyword[boolean] identifier[isIgnoredColumn] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[ignoredColumns] , Keyword[final] identifier[String] identifier[columnName] operator[SEP] {
Keyword[return] identifier[ignoredColumns]... |
public SafeHtmlBuilder appendContent(Iterable<SafeHtml> htmls) {
checkNotVoidElement();
for (SafeHtml html : htmls) {
contents.add(html);
}
return this;
} | class class_name[name] begin[{]
method[appendContent, return_type[type[SafeHtmlBuilder]], modifier[public], parameter[htmls]] begin[{]
call[.checkNotVoidElement, parameter[]]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argumen... | Keyword[public] identifier[SafeHtmlBuilder] identifier[appendContent] operator[SEP] identifier[Iterable] operator[<] identifier[SafeHtml] operator[>] identifier[htmls] operator[SEP] {
identifier[checkNotVoidElement] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[SafeHtml] identif... |
public Order startInstanceByExecution(Execution execution) {
Process process = execution.getProcess();
StartModel start = process.getModel().getStart();
AssertHelper.notNull(start, "流程定义[id=" + process.getId() + "]没有开始节点");
Execution current = execute(process, execution.getOperator(), execution.getArgs(),
... | class class_name[name] begin[{]
method[startInstanceByExecution, return_type[type[Order]], modifier[public], parameter[execution]] begin[{]
local_variable[type[Process], process]
local_variable[type[StartModel], start]
call[AssertHelper.notNull, parameter[member[.start], binary_... | Keyword[public] identifier[Order] identifier[startInstanceByExecution] operator[SEP] identifier[Execution] identifier[execution] operator[SEP] {
identifier[Process] identifier[process] operator[=] identifier[execution] operator[SEP] identifier[getProcess] operator[SEP] operator[SEP] operator[SEP] identifier[Star... |
public ConsumerSession getConsumerSession()
throws SISessionUnavailableException, SISessionDroppedException,
SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && CoreSPILockedMessageEnumeration.tc.isEntryEnabled())
SibTr.entry(CoreSPILockedMessageEnumeration.tc, "getConsumerSe... | class class_name[name] begin[{]
method[getConsumerSession, return_type[type[ConsumerSession]], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[CoreSPILockedMessageEnumeration.tc.isEntryEnabled, parameter[]]]] begin[{]
... | Keyword[public] identifier[ConsumerSession] identifier[getConsumerSession] operator[SEP] operator[SEP] Keyword[throws] identifier[SISessionUnavailableException] , identifier[SISessionDroppedException] , identifier[SIIncorrectCallException] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] id... |
public DesignSpec addKeyline(float position, From from) {
final Keyline keyline = new Keyline(position * mDensity, from);
if (mKeylines.contains(keyline)) {
return this;
}
mKeylines.add(keyline);
return this;
} | class class_name[name] begin[{]
method[addKeyline, return_type[type[DesignSpec]], modifier[public], parameter[position, from]] begin[{]
local_variable[type[Keyline], keyline]
if[call[mKeylines.contains, parameter[member[.keyline]]]] begin[{]
return[THIS[]]
else begin... | Keyword[public] identifier[DesignSpec] identifier[addKeyline] operator[SEP] Keyword[float] identifier[position] , identifier[From] identifier[from] operator[SEP] {
Keyword[final] identifier[Keyline] identifier[keyline] operator[=] Keyword[new] identifier[Keyline] operator[SEP] identifier[position] operator[*] i... |
static ZoneRules generateZoneRules(String zoneId) {
TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId);
// Assumption #0
verify(timeZone instanceof OlsonTimeZone, zoneId,
"Unexpected time zone class " + timeZone.getClass());
OlsonTimeZone tz = (OlsonTimeZone) timeZone... | class class_name[name] begin[{]
method[generateZoneRules, return_type[type[ZoneRules]], modifier[static], parameter[zoneId]] begin[{]
local_variable[type[TimeZone], timeZone]
call[.verify, parameter[binary_operation[member[.timeZone], instanceof, type[OlsonTimeZone]], member[.zoneId], b... | Keyword[static] identifier[ZoneRules] identifier[generateZoneRules] operator[SEP] identifier[String] identifier[zoneId] operator[SEP] {
identifier[TimeZone] identifier[timeZone] operator[=] identifier[TimeZone] operator[SEP] identifier[getFrozenTimeZone] operator[SEP] identifier[zoneId] operator[SEP] operator[SE... |
public static BindEntity parse(final BindModel model, TypeElement element) {
final Elements elementUtils = BaseProcessor.elementUtils;
final InnerCounter counterPropertyInValue = new InnerCounter();
final Converter<String, String> typeNameConverter = CaseFormat.UPPER_CAMEL.converterTo(CaseFormat.LOWER_CAMEL);
... | class class_name[name] begin[{]
method[parse, return_type[type[BindEntity]], modifier[public static], parameter[model, element]] begin[{]
local_variable[type[Elements], elementUtils]
local_variable[type[InnerCounter], counterPropertyInValue]
local_variable[type[Converter], typeNameConve... | Keyword[public] Keyword[static] identifier[BindEntity] identifier[parse] operator[SEP] Keyword[final] identifier[BindModel] identifier[model] , identifier[TypeElement] identifier[element] operator[SEP] {
Keyword[final] identifier[Elements] identifier[elementUtils] operator[=] identifier[BaseProcessor] operator[... |
public void beginDelete(String resourceGroupName, String azureFirewallName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().single().body();
} | class class_name[name] begin[{]
method[beginDelete, return_type[void], modifier[public], parameter[resourceGroupName, azureFirewallName]] begin[{]
call[.beginDeleteWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.azureFirewallName]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[beginDelete] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[azureFirewallName] operator[SEP] {
identifier[beginDeleteWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[azureFirewallName] ope... |
public static void sendDataToPebbleWithTransactionId(final Context context,
final UUID watchappUuid, final PebbleDictionary data, final int transactionId)
throws IllegalArgumentException {
if (watchappUuid == null) {
throw new Ill... | class class_name[name] begin[{]
method[sendDataToPebbleWithTransactionId, return_type[void], modifier[public static], parameter[context, watchappUuid, data, transactionId]] begin[{]
if[binary_operation[member[.watchappUuid], ==, literal[null]]] begin[{]
ThrowStatement(expression=Cla... | Keyword[public] Keyword[static] Keyword[void] identifier[sendDataToPebbleWithTransactionId] operator[SEP] Keyword[final] identifier[Context] identifier[context] , Keyword[final] identifier[UUID] identifier[watchappUuid] , Keyword[final] identifier[PebbleDictionary] identifier[data] , Keyword[final] Keyword[int] iden... |
public void setCharset(String to) {
// Validate the character set.
try {
new String(new byte[97], to);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
charset = to;
} | class class_name[name] begin[{]
method[setCharset, return_type[void], modifier[public], parameter[to]] begin[{]
TryStatement(block=[StatementExpression(expression=ClassCreator(arguments=[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=97)]... | Keyword[public] Keyword[void] identifier[setCharset] operator[SEP] identifier[String] identifier[to] operator[SEP] {
Keyword[try] {
Keyword[new] identifier[String] operator[SEP] Keyword[new] Keyword[byte] operator[SEP] Other[97] operator[SEP] , identifier[to] operator[SEP] operator[SEP]
}
... |
public void setPrev(Polygon prev) {
if(prev instanceof CFPolygon) {
setPrev((CFPolygon) prev);
}
else this.prev = prev;
} | class class_name[name] begin[{]
method[setPrev, return_type[void], modifier[public], parameter[prev]] begin[{]
if[binary_operation[member[.prev], instanceof, type[CFPolygon]]] begin[{]
call[.setPrev, parameter[Cast(expression=MemberReference(member=prev, postfix_operator... | Keyword[public] Keyword[void] identifier[setPrev] operator[SEP] identifier[Polygon] identifier[prev] operator[SEP] {
Keyword[if] operator[SEP] identifier[prev] Keyword[instanceof] identifier[CFPolygon] operator[SEP] {
identifier[setPrev] operator[SEP] operator[SEP] identifier[CFPolygon] operator[SEP] ... |
private void visit_OP_APPEND() throws IOException {
visitTxId();
v.visitStringUTF8(EditsElement.PATH);
// visit blocks
visit_Blocks();
// client name & machine
v.visitStringUTF8(EditsElement.CLIENT_NAME);
v.visitStringUTF8(EditsElement.CLIENT_MACHINE);
} | class class_name[name] begin[{]
method[visit_OP_APPEND, return_type[void], modifier[private], parameter[]] begin[{]
call[.visitTxId, parameter[]]
call[v.visitStringUTF8, parameter[member[EditsElement.PATH]]]
call[.visit_Blocks, parameter[]]
call[v... | Keyword[private] Keyword[void] identifier[visit_OP_APPEND] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[visitTxId] operator[SEP] operator[SEP] operator[SEP] identifier[v] operator[SEP] identifier[visitStringUTF8] operator[SEP] identifier[EditsElement] operator[SEP] identifier[... |
public List<SiteNode> getTopNodesInContextFromSiteTree() {
List<SiteNode> nodes = new LinkedList<>();
SiteNode rootNode = session.getSiteTree().getRoot();
@SuppressWarnings("unchecked")
Enumeration<TreeNode> en = rootNode.children();
while (en.hasMoreElements()) {
SiteNode sn = (SiteNode) en.nextElem... | class class_name[name] begin[{]
method[getTopNodesInContextFromSiteTree, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], nodes]
local_variable[type[SiteNode], rootNode]
local_variable[type[Enumeration], en]
while[call[en.hasMor... | Keyword[public] identifier[List] operator[<] identifier[SiteNode] operator[>] identifier[getTopNodesInContextFromSiteTree] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[SiteNode] operator[>] identifier[nodes] operator[=] Keyword[new] identifier[LinkedList] operator[<] operator[>] operator... |
@Pure
public final int getNearestEndIndex(double x, double y, OutputParameter<Double> distance) {
final int count = getPointCount();
final Point2d firstPoint = getPointAt(0);
final Point2d lastPoint = getPointAt(count - 1);
final double d1 = Point2D.getDistancePointPoint(firstPoint.getX(), firstPoint.getY(), x... | class class_name[name] begin[{]
method[getNearestEndIndex, return_type[type[int]], modifier[final public], parameter[x, y, distance]] begin[{]
local_variable[type[int], count]
local_variable[type[Point2d], firstPoint]
local_variable[type[Point2d], lastPoint]
local_variable[type[... | annotation[@] identifier[Pure] Keyword[public] Keyword[final] Keyword[int] identifier[getNearestEndIndex] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , identifier[OutputParameter] operator[<] identifier[Double] operator[>] identifier[distance] operator[SEP] {
Keyword[final] Keyw... |
@Override
public int lastIndexOf(Object elem) {
if (elem == null) return -1;
if (elem instanceof Number) return lastIndexOf(((Number)elem).longValue());
return -1;
} | class class_name[name] begin[{]
method[lastIndexOf, return_type[type[int]], modifier[public], parameter[elem]] begin[{]
if[binary_operation[member[.elem], ==, literal[null]]] begin[{]
return[literal[1]]
else begin[{]
None
end[}]
if[binary_operation[member[.elem],... | annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[lastIndexOf] operator[SEP] identifier[Object] identifier[elem] operator[SEP] {
Keyword[if] operator[SEP] identifier[elem] operator[==] Other[null] operator[SEP] Keyword[return] operator[-] Other[1] operator[SEP] Keyword[if] operator[SEP] ... |
private int analyse(CmsResource res, String sourceMergeFolder, String targetMergefolder, int currentFolder) {
int retValue = -1;
String resourcenameOther = getResourceNameInOtherFolder(
m_cms.getSitePath(res),
sourceMergeFolder,
targetMergefolder);
try {
... | class class_name[name] begin[{]
method[analyse, return_type[type[int]], modifier[private], parameter[res, sourceMergeFolder, targetMergefolder, currentFolder]] begin[{]
local_variable[type[int], retValue]
local_variable[type[String], resourcenameOther]
TryStatement(block=[LocalVariableD... | Keyword[private] Keyword[int] identifier[analyse] operator[SEP] identifier[CmsResource] identifier[res] , identifier[String] identifier[sourceMergeFolder] , identifier[String] identifier[targetMergefolder] , Keyword[int] identifier[currentFolder] operator[SEP] {
Keyword[int] identifier[retValue] operator[=] o... |
private void setIsStepEnabled(int step, boolean isEnabled) {
try {
Object oRoadmapItem = m_xRMIndexCont.getByIndex(step - 1);
XPropertySet xRMItemPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oRoadmapItem);
xRMItemPSet.setPropertyValue("Enabled", new Boo... | class class_name[name] begin[{]
method[setIsStepEnabled, return_type[void], modifier[private], parameter[step, isEnabled]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operand... | Keyword[private] Keyword[void] identifier[setIsStepEnabled] operator[SEP] Keyword[int] identifier[step] , Keyword[boolean] identifier[isEnabled] operator[SEP] {
Keyword[try] {
identifier[Object] identifier[oRoadmapItem] operator[=] identifier[m_xRMIndexCont] operator[SEP] identifier[getByIndex] opera... |
static public Value DputIfMatch( Key key, Value val, Value old, Futures fs) {
return DputIfMatch(key, val, old, fs, false);
} | class class_name[name] begin[{]
method[DputIfMatch, return_type[type[Value]], modifier[public static], parameter[key, val, old, fs]] begin[{]
return[call[.DputIfMatch, parameter[member[.key], member[.val], member[.old], member[.fs], literal[false]]]]
end[}]
END[}] | Keyword[static] Keyword[public] identifier[Value] identifier[DputIfMatch] operator[SEP] identifier[Key] identifier[key] , identifier[Value] identifier[val] , identifier[Value] identifier[old] , identifier[Futures] identifier[fs] operator[SEP] {
Keyword[return] identifier[DputIfMatch] operator[SEP] identifier[... |
public void startDocumentInternal() throws org.xml.sax.SAXException
{
if (m_needToCallStartDocument)
{
super.startDocumentInternal();
m_needToCallStartDocument = false;
if (m_inEntityRef)
return;
m_needToOutputDocTypeDecl = true;
... | class class_name[name] begin[{]
method[startDocumentInternal, return_type[void], modifier[public], parameter[]] begin[{]
if[member[.m_needToCallStartDocument]] begin[{]
SuperMethodInvocation(arguments=[], member=startDocumentInternal, postfix_operators=[], prefix_operato... | Keyword[public] Keyword[void] identifier[startDocumentInternal] operator[SEP] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml] operator[SEP] identifier[sax] operator[SEP] identifier[SAXException] {
Keyword[if] operator[SEP] identifier[m_needToCallStartDocument] operator[SEP] {
... |
public Iterable<ServerInstanceLogRecordList> getLogLists(Level minLevel,
Level maxLevel) throws LogRepositoryException {
logger.entering(thisClass, "getLogLists", new Object[]{minLevel, maxLevel});
LogQueryBean query = new LogQueryBean();
query.setLevels(minLevel, maxLevel);
Iterable<ServerInstanceLogReco... | class class_name[name] begin[{]
method[getLogLists, return_type[type[Iterable]], modifier[public], parameter[minLevel, maxLevel]] begin[{]
call[logger.entering, parameter[member[.thisClass], literal["getLogLists"], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Membe... | Keyword[public] identifier[Iterable] operator[<] identifier[ServerInstanceLogRecordList] operator[>] identifier[getLogLists] operator[SEP] identifier[Level] identifier[minLevel] , identifier[Level] identifier[maxLevel] operator[SEP] Keyword[throws] identifier[LogRepositoryException] {
identifier[logger] operato... |
public Observable<ReplicationInner> beginUpdateAsync(String resourceGroupName, String registryName, String replicationName) {
return beginUpdateWithServiceResponseAsync(resourceGroupName, registryName, replicationName).map(new Func1<ServiceResponse<ReplicationInner>, ReplicationInner>() {
@Override
... | class class_name[name] begin[{]
method[beginUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, replicationName]] begin[{]
return[call[.beginUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], member[.replicat... | Keyword[public] identifier[Observable] operator[<] identifier[ReplicationInner] operator[>] identifier[beginUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[replicationName] operator[SEP] {
Keyword[return] ... |
public ApiListingBuilder produces(Set<String> mediaTypes) {
if (mediaTypes != null) {
this.produces = new HashSet<>(mediaTypes);
}
return this;
} | class class_name[name] begin[{]
method[produces, return_type[type[ApiListingBuilder]], modifier[public], parameter[mediaTypes]] begin[{]
if[binary_operation[member[.mediaTypes], !=, literal[null]]] begin[{]
assign[THIS[member[None.produces]], ClassCreator(arguments=[Memb... | Keyword[public] identifier[ApiListingBuilder] identifier[produces] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[mediaTypes] operator[SEP] {
Keyword[if] operator[SEP] identifier[mediaTypes] operator[!=] Other[null] operator[SEP] {
Keyword[this] operator[SEP] ident... |
public static <T> T[][] removeGaps(final T[][] gapped) {
if(gapped == null ) return null;
if(gapped.length < 1) return Arrays.copyOf(gapped, gapped.length);
final int nProts = gapped.length;
final int protLen = gapped[0].length; // length of gapped proteins
// Verify that input is rectangular
for(int i=0;... | class class_name[name] begin[{]
method[removeGaps, return_type[type[T]], modifier[public static], parameter[gapped]] begin[{]
if[binary_operation[member[.gapped], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
if[binary_operation[mem... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[removeGaps] operator[SEP] Keyword[final] identifier[T] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[gapped] operator[SEP] {
Keyword[if] oper... |
public final T get(Object... args) {
// Grab a read lock to try retrieving the object
this.readLock.lock();
try {
// See if the object already exists and is valid
final T value = this.retrieve(args);
if (!this.invalid(value, args)) {
if (getLo... | class class_name[name] begin[{]
method[get, return_type[type[T]], modifier[final public], parameter[args]] begin[{]
THIS[member[None.readLock]call[None.lock, parameter[]]]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initial... | Keyword[public] Keyword[final] identifier[T] identifier[get] operator[SEP] identifier[Object] operator[...] identifier[args] operator[SEP] {
Keyword[this] operator[SEP] identifier[readLock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
Keyword[final] identifie... |
public void reload() {
Iterator texs = texturesLinear.values().iterator();
while (texs.hasNext()) {
((TextureImpl) texs.next()).reload();
}
texs = texturesNearest.values().iterator();
while (texs.hasNext()) {
((TextureImpl) texs.next()).reload();
}
} | class class_name[name] begin[{]
method[reload, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Iterator], texs]
while[call[texs.hasNext, parameter[]]] begin[{]
Cast(expression=MethodInvocation(arguments=[], member=next, postfix_oper... | Keyword[public] Keyword[void] identifier[reload] operator[SEP] operator[SEP] {
identifier[Iterator] identifier[texs] operator[=] identifier[texturesLinear] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] oper... |
private static boolean polygonCrossesEnvelope_(Polygon polygon_a,
Envelope envelope_b, double tolerance,
ProgressTracker progress_tracker) {
Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();
polygon_a.queryEnvelope2D(env_a);
envelope_b.queryEnvelope2D(env_b);
if (envelopeInfContainsEnvelope_... | class class_name[name] begin[{]
method[polygonCrossesEnvelope_, return_type[type[boolean]], modifier[private static], parameter[polygon_a, envelope_b, tolerance, progress_tracker]] begin[{]
local_variable[type[Envelope2D], env_a]
call[polygon_a.queryEnvelope2D, parameter[member[.env_a]]... | Keyword[private] Keyword[static] Keyword[boolean] identifier[polygonCrossesEnvelope_] operator[SEP] identifier[Polygon] identifier[polygon_a] , identifier[Envelope] identifier[envelope_b] , Keyword[double] identifier[tolerance] , identifier[ProgressTracker] identifier[progress_tracker] operator[SEP] {
identif... |
public PythonSingleOutputStreamOperator filter(FilterFunction<PyObject> filter) throws IOException {
return new PythonSingleOutputStreamOperator(stream.filter(new PythonFilterFunction(filter)));
} | class class_name[name] begin[{]
method[filter, return_type[type[PythonSingleOutputStreamOperator]], modifier[public], parameter[filter]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=filter, postfix_operators=[], prefix_operators=[], ... | Keyword[public] identifier[PythonSingleOutputStreamOperator] identifier[filter] operator[SEP] identifier[FilterFunction] operator[<] identifier[PyObject] operator[>] identifier[filter] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new] identifier[PythonSingleOutputStreamOperator... |
private String getCurrentSSpaceFileName() {
// REMINDER: This instruction is expected to be rare, so rather than
// save the name and require a lookup every time the current sspace
// is needed, we use an O(n) call to find the name as necessary
for (Map.Entry<String,SemanticSpace> e : fi... | class class_name[name] begin[{]
method[getCurrentSSpaceFileName, return_type[type[String]], modifier[private], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getValue, postfix_operators=... | Keyword[private] identifier[String] identifier[getCurrentSSpaceFileName] operator[SEP] operator[SEP] {
Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[SemanticSpace] operator[>] identifier[e] operator[:] identifier[fileNameToSSpace] operato... |
@Bind(aggregate = true, optional = true)
public void bindFilter(Filter filter) {
filters.add(filter);
} | class class_name[name] begin[{]
method[bindFilter, return_type[void], modifier[public], parameter[filter]] begin[{]
call[filters.add, parameter[member[.filter]]]
end[}]
END[}] | annotation[@] identifier[Bind] operator[SEP] identifier[aggregate] operator[=] literal[boolean] , identifier[optional] operator[=] literal[boolean] operator[SEP] Keyword[public] Keyword[void] identifier[bindFilter] operator[SEP] identifier[Filter] identifier[filter] operator[SEP] {
identifier[filters] operator[... |
public static <T> T exploreObject(Object rootObject, ObjectVisitor<T> visitor) {
return exploreObject(rootObject, visitor, EnumSet.noneOf(Feature.class));
} | class class_name[name] begin[{]
method[exploreObject, return_type[type[T]], modifier[public static], parameter[rootObject, visitor]] begin[{]
return[call[.exploreObject, parameter[member[.rootObject], member[.visitor], call[EnumSet.noneOf, parameter[ClassReference(postfix_operators=[], prefix_operators... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[exploreObject] operator[SEP] identifier[Object] identifier[rootObject] , identifier[ObjectVisitor] operator[<] identifier[T] operator[>] identifier[visitor] operator[SEP] {
Keyword[return] identifier[exploreObject] op... |
public CassandraJavaRDD<R> select(ColumnRef... columns) {
Seq<ColumnRef> columnRefs = JavaApiHelper.toScalaSeq(columns);
CassandraRDD<R> newRDD = rdd().select(columnRefs);
return wrap(newRDD);
} | class class_name[name] begin[{]
method[select, return_type[type[CassandraJavaRDD]], modifier[public], parameter[columns]] begin[{]
local_variable[type[Seq], columnRefs]
local_variable[type[CassandraRDD], newRDD]
return[call[.wrap, parameter[member[.newRDD]]]]
end[}]
END[}] | Keyword[public] identifier[CassandraJavaRDD] operator[<] identifier[R] operator[>] identifier[select] operator[SEP] identifier[ColumnRef] operator[...] identifier[columns] operator[SEP] {
identifier[Seq] operator[<] identifier[ColumnRef] operator[>] identifier[columnRefs] operator[=] identifier[JavaApiHelper] op... |
public PublicIpv4Pool withPoolAddressRanges(PublicIpv4PoolRange... poolAddressRanges) {
if (this.poolAddressRanges == null) {
setPoolAddressRanges(new com.amazonaws.internal.SdkInternalList<PublicIpv4PoolRange>(poolAddressRanges.length));
}
for (PublicIpv4PoolRange ele : poolAddressR... | class class_name[name] begin[{]
method[withPoolAddressRanges, return_type[type[PublicIpv4Pool]], modifier[public], parameter[poolAddressRanges]] begin[{]
if[binary_operation[THIS[member[None.poolAddressRanges]], ==, literal[null]]] begin[{]
call[.setPoolAddressRanges, pa... | Keyword[public] identifier[PublicIpv4Pool] identifier[withPoolAddressRanges] operator[SEP] identifier[PublicIpv4PoolRange] operator[...] identifier[poolAddressRanges] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[poolAddressRanges] operator[==] Other[null] operator[SEP] {
... |
public void setPlaceholderImageFocusPoint(PointF focusPoint) {
Preconditions.checkNotNull(focusPoint);
getScaleTypeDrawableAtIndex(PLACEHOLDER_IMAGE_INDEX).setFocusPoint(focusPoint);
} | class class_name[name] begin[{]
method[setPlaceholderImageFocusPoint, return_type[void], modifier[public], parameter[focusPoint]] begin[{]
call[Preconditions.checkNotNull, parameter[member[.focusPoint]]]
call[.getScaleTypeDrawableAtIndex, parameter[member[.PLACEHOLDER_IMAGE_INDE... | Keyword[public] Keyword[void] identifier[setPlaceholderImageFocusPoint] operator[SEP] identifier[PointF] identifier[focusPoint] operator[SEP] {
identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[focusPoint] operator[SEP] operator[SEP] identifier[getScaleTypeDrawableAtIndex]... |
public boolean removeAfter(ST obj, PT pt) {
return removeAfter(indexOf(obj, pt), false);
} | class class_name[name] begin[{]
method[removeAfter, return_type[type[boolean]], modifier[public], parameter[obj, pt]] begin[{]
return[call[.removeAfter, parameter[call[.indexOf, parameter[member[.obj], member[.pt]]], literal[false]]]]
end[}]
END[}] | Keyword[public] Keyword[boolean] identifier[removeAfter] operator[SEP] identifier[ST] identifier[obj] , identifier[PT] identifier[pt] operator[SEP] {
Keyword[return] identifier[removeAfter] operator[SEP] identifier[indexOf] operator[SEP] identifier[obj] , identifier[pt] operator[SEP] , literal[boolean] operat... |
protected InputStream getResourceInputStream(final Resource resource, final String entityId) throws IOException {
LOGGER.debug("Locating metadata resource from input stream.");
if (!resource.exists() || !resource.isReadable()) {
throw new FileNotFoundException("Resource does not exist or is ... | class class_name[name] begin[{]
method[getResourceInputStream, return_type[type[InputStream]], modifier[protected], parameter[resource, entityId]] begin[{]
call[LOGGER.debug, parameter[literal["Locating metadata resource from input stream."]]]
if[binary_operation[call[resource.e... | Keyword[protected] identifier[InputStream] identifier[getResourceInputStream] operator[SEP] Keyword[final] identifier[Resource] identifier[resource] , Keyword[final] identifier[String] identifier[entityId] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[LOGGER] operator[SEP] identifier[debug]... |
public String getString(String key, Object[] args) {
String value = getString(key);
return MessageFormat.format(value, args);
} | class class_name[name] begin[{]
method[getString, return_type[type[String]], modifier[public], parameter[key, args]] begin[{]
local_variable[type[String], value]
return[call[MessageFormat.format, parameter[member[.value], member[.args]]]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[getString] operator[SEP] identifier[String] identifier[key] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] {
identifier[String] identifier[value] operator[=] identifier[getString] operator[SEP] identifier[key] operator[SEP] operator[... |
private void checkForTermination() {
synchronized (lock) {
if (shutdown && transports.isEmpty() && transportServersTerminated) {
if (terminated) {
throw new AssertionError("Server already terminated");
}
terminated = true;
channelz.removeServer(this);
if (exec... | class class_name[name] begin[{]
method[checkForTermination, return_type[void], modifier[private], parameter[]] begin[{]
SYNCHRONIZED[member[.lock]] BEGIN[{]
if[binary_operation[binary_operation[member[.shutdown], &&, call[transports.isEmpty, parameter[]]], &&, member[.tr... | Keyword[private] Keyword[void] identifier[checkForTermination] operator[SEP] operator[SEP] {
Keyword[synchronized] operator[SEP] identifier[lock] operator[SEP] {
Keyword[if] operator[SEP] identifier[shutdown] operator[&&] identifier[transports] operator[SEP] identifier[isEmpty] operator[SEP] operator[... |
@Override
public JSONObject toJsonObject() throws JSONException {
JSONObject returnVal = super.toJsonObject();
//User Id...
if(this.getUserId() != null)
{
returnVal.put(JSONMapping.USER_ID, this.getUserId());
}
//Name...
if(this.getName() != nul... | class class_name[name] begin[{]
method[toJsonObject, return_type[type[JSONObject]], modifier[public], parameter[]] begin[{]
local_variable[type[JSONObject], returnVal]
if[binary_operation[THIS[call[None.getUserId, parameter[]]], !=, literal[null]]] begin[{]
call[... | annotation[@] identifier[Override] Keyword[public] identifier[JSONObject] identifier[toJsonObject] operator[SEP] operator[SEP] Keyword[throws] identifier[JSONException] {
identifier[JSONObject] identifier[returnVal] operator[=] Keyword[super] operator[SEP] identifier[toJsonObject] operator[SEP] operator[SEP] ope... |
public void setTransactionRegistry(org.jboss.tm.usertx.UserTransactionRegistry v)
{
((org.jboss.tm.usertx.UserTransactionProvider)utp).setTransactionRegistry(v);
} | class class_name[name] begin[{]
method[setTransactionRegistry, return_type[void], modifier[public], parameter[v]] begin[{]
Cast(expression=MemberReference(member=utp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=org... | Keyword[public] Keyword[void] identifier[setTransactionRegistry] operator[SEP] identifier[org] operator[SEP] identifier[jboss] operator[SEP] identifier[tm] operator[SEP] identifier[usertx] operator[SEP] identifier[UserTransactionRegistry] identifier[v] operator[SEP] {
operator[SEP] operator[SEP] identifier[org] ... |
private void setValueForNonArrayType(DataMemberInformation memberInfo) throws IllegalAccessException,
InstantiationException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException,
SecurityException {
logger.entering(memberInfo);
Field eachField = memberInfo.... | class class_name[name] begin[{]
method[setValueForNonArrayType, return_type[void], modifier[private], parameter[memberInfo]] begin[{]
call[logger.entering, parameter[member[.memberInfo]]]
local_variable[type[Field], eachField]
local_variable[type[Class], eachFieldType]
l... | Keyword[private] Keyword[void] identifier[setValueForNonArrayType] operator[SEP] identifier[DataMemberInformation] identifier[memberInfo] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InstantiationException] , identifier[IllegalArgumentException] , identifier[InvocationTargetException... |
private void selectDistributionSetValue() {
selectedDefaultDisSetType = (Long) combobox.getValue();
if (!selectedDefaultDisSetType.equals(currentDefaultDisSetType)) {
changeIcon.setVisible(true);
notifyConfigurationChanged();
} else {
changeIcon.setVisible(fal... | class class_name[name] begin[{]
method[selectDistributionSetValue, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.selectedDefaultDisSetType], Cast(expression=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=combobox... | Keyword[private] Keyword[void] identifier[selectDistributionSetValue] operator[SEP] operator[SEP] {
identifier[selectedDefaultDisSetType] operator[=] operator[SEP] identifier[Long] operator[SEP] identifier[combobox] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator... |
protected double getWorldRadius() {
if (center != null) {
Coordinate screenEndPoint = new Coordinate(center.getX() + radius, center.getY());
Coordinate worldEndPoint = mapWidget.getMapModel().getMapView().getWorldViewTransformer().viewToWorld(
screenEndPoint);
double deltaX = worldEndPoint.getX() - getW... | class class_name[name] begin[{]
method[getWorldRadius, return_type[type[double]], modifier[protected], parameter[]] begin[{]
if[binary_operation[member[.center], !=, literal[null]]] begin[{]
local_variable[type[Coordinate], screenEndPoint]
local_variable[type[Coordinate]... | Keyword[protected] Keyword[double] identifier[getWorldRadius] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[center] operator[!=] Other[null] operator[SEP] {
identifier[Coordinate] identifier[screenEndPoint] operator[=] Keyword[new] identifier[Coordinate] operator[SEP] identifier[c... |
public static String concatStrings(final String delimiter, final String... texts) {
final String delim = delimiter == null ? "" : delimiter;
final StringBuilder conCatStrBldr = new StringBuilder();
if (null != texts) {
for (final String text : texts) {
conCatStrBldr.a... | class class_name[name] begin[{]
method[concatStrings, return_type[type[String]], modifier[public static], parameter[delimiter, texts]] begin[{]
local_variable[type[String], delim]
local_variable[type[StringBuilder], conCatStrBldr]
if[binary_operation[literal[null], !=, member[.t... | Keyword[public] Keyword[static] identifier[String] identifier[concatStrings] operator[SEP] Keyword[final] identifier[String] identifier[delimiter] , Keyword[final] identifier[String] operator[...] identifier[texts] operator[SEP] {
Keyword[final] identifier[String] identifier[delim] operator[=] identifier[delimi... |
public static boolean isInteger(String string) {
if (string == null) {
return false;
}
try {
Integer.parseInt(string);
} catch (NumberFormatException e) {
return false;
}
return true;
} | class class_name[name] begin[{]
method[isInteger, return_type[type[boolean]], modifier[public static], parameter[string]] begin[{]
if[binary_operation[member[.string], ==, literal[null]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
TryStatement(... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isInteger] operator[SEP] identifier[String] identifier[string] operator[SEP] {
Keyword[if] operator[SEP] identifier[string] operator[==] Other[null] operator[SEP] {
Keyword[return] literal[boolean] operator[SEP]
}
Keyword[try] ... |
@SuppressWarnings("unused")
@RequiresApi(21)
public void enablePowerCycleOnFailures(Context context) {
initializeWithContext(context);
if (this.mLocalBroadcastManager != null) {
this.mLocalBroadcastManager.registerReceiver(this.mBluetoothEventReceiver,
new IntentF... | class class_name[name] begin[{]
method[enablePowerCycleOnFailures, return_type[void], modifier[public], parameter[context]] begin[{]
call[.initializeWithContext, parameter[member[.context]]]
if[binary_operation[THIS[member[None.mLocalBroadcastManager]], !=, literal[null]]] begin... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[RequiresApi] operator[SEP] Other[21] operator[SEP] Keyword[public] Keyword[void] identifier[enablePowerCycleOnFailures] operator[SEP] identifier[Context] identifier[context] operator[SEP] {
identifier[... |
private T[] ensureCapacity(int minCapacity) {
if (tmpLen < minCapacity) {
// Compute smallest power of 2 > minCapacity
int newSize = minCapacity;
newSize |= newSize >> 1;
newSize |= newSize >> 2;
newSize |= newSize >> 4;
newSize |= newSize ... | class class_name[name] begin[{]
method[ensureCapacity, return_type[type[T]], modifier[private], parameter[minCapacity]] begin[{]
if[binary_operation[member[.tmpLen], <, member[.minCapacity]]] begin[{]
local_variable[type[int], newSize]
assign[member[.newSize]... | Keyword[private] identifier[T] operator[SEP] operator[SEP] identifier[ensureCapacity] operator[SEP] Keyword[int] identifier[minCapacity] operator[SEP] {
Keyword[if] operator[SEP] identifier[tmpLen] operator[<] identifier[minCapacity] operator[SEP] {
Keyword[int] identifier[newSize] operator[=] identif... |
public com.google.api.ads.adwords.axis.v201809.cm.BidLandscapeLandscapePoint[] getLandscapePoints() {
return landscapePoints;
} | class class_name[name] begin[{]
method[getLandscapePoints, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.landscapePoints]]
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[cm] operator[SEP] identifier[BidLandscapeLandscapePoint] operator[SEP] ... |
@Override
public void startElement(final String uri, final String localName, final String qName, final Attributes attributes)
throws SAXException {
LOG.trace("startElement uri={} localName={} qName={} attributes={}", uri, localName, qName, attributes);
if (this.isNotInkstandNamespace(u... | class class_name[name] begin[{]
method[startElement, return_type[void], modifier[public], parameter[uri, localName, qName, attributes]] begin[{]
call[LOG.trace, parameter[literal["startElement uri={} localName={} qName={} attributes={}"], member[.uri], member[.localName], member[.qName], member... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[startElement] operator[SEP] Keyword[final] identifier[String] identifier[uri] , Keyword[final] identifier[String] identifier[localName] , Keyword[final] identifier[String] identifier[qName] , Keyword[final] identifier[Attributes] identifier[... |
public void addBOSHClientConnListener(
final BOSHClientConnListener listener) {
if (listener == null) {
throw(new IllegalArgumentException(NULL_LISTENER));
}
connListeners.add(listener);
} | class class_name[name] begin[{]
method[addBOSHClientConnListener, return_type[void], modifier[public], parameter[listener]] begin[{]
if[binary_operation[member[.listener], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NULL_LIST... | Keyword[public] Keyword[void] identifier[addBOSHClientConnListener] operator[SEP] Keyword[final] identifier[BOSHClientConnListener] identifier[listener] operator[SEP] {
Keyword[if] operator[SEP] identifier[listener] operator[==] Other[null] operator[SEP] {
Keyword[throw] operator[SEP] Keyword[new] ide... |
private void handleLongOptionWithEqual(String token) throws OptionParserException {
int pos = token.indexOf('=');
String name = token.substring(0, pos);
String value = token.substring(pos + 1);
List<String> matchingOpts = getMatchingLongOptions(name);
if (matchingOpts.isEmpty()) ... | class class_name[name] begin[{]
method[handleLongOptionWithEqual, return_type[void], modifier[private], parameter[token]] begin[{]
local_variable[type[int], pos]
local_variable[type[String], name]
local_variable[type[String], value]
local_variable[type[List], matchingOpts]
... | Keyword[private] Keyword[void] identifier[handleLongOptionWithEqual] operator[SEP] identifier[String] identifier[token] operator[SEP] Keyword[throws] identifier[OptionParserException] {
Keyword[int] identifier[pos] operator[=] identifier[token] operator[SEP] identifier[indexOf] operator[SEP] literal[String] oper... |
@Override
public Date getRequestValue(final Request request) {
if (isPresent(request)) {
// User entered a valid date
String dateParam = request.getParameter(getId() + "-date");
if (dateParam == null) {
return null;
}
// Check the date is not empty and correct length
if (Util.empty(dateParam) ... | class class_name[name] begin[{]
method[getRequestValue, return_type[type[Date]], modifier[public], parameter[request]] begin[{]
if[call[.isPresent, parameter[member[.request]]]] begin[{]
local_variable[type[String], dateParam]
if[binary_operation[member[.date... | annotation[@] identifier[Override] Keyword[public] identifier[Date] identifier[getRequestValue] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] {
Keyword[if] operator[SEP] identifier[isPresent] operator[SEP] identifier[request] operator[SEP] operator[SEP] {
identifie... |
public static boolean isRestSSLEnabled(Configuration sslConfig) {
@SuppressWarnings("deprecation")
final boolean fallbackFlag = sslConfig.getBoolean(SecurityOptions.SSL_ENABLED);
return sslConfig.getBoolean(SecurityOptions.SSL_REST_ENABLED, fallbackFlag);
} | class class_name[name] begin[{]
method[isRestSSLEnabled, return_type[type[boolean]], modifier[public static], parameter[sslConfig]] begin[{]
local_variable[type[boolean], fallbackFlag]
return[call[sslConfig.getBoolean, parameter[member[SecurityOptions.SSL_REST_ENABLED], member[.fallbackFlag]]]]... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isRestSSLEnabled] operator[SEP] identifier[Configuration] identifier[sslConfig] operator[SEP] {
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[final] Keyword[boolean] identifier[fallbackFlag] operator[=] i... |
protected static void decryptData(final PGPPrivateKey privateKey, final PGPPublicKeyEncryptedData data,
final BcKeyFingerprintCalculator calculator, final OutputStream targetStream)
throws PGPException, IOException {
PublicKeyDataDecryptorFactory decryptorFactory = ... | class class_name[name] begin[{]
method[decryptData, return_type[void], modifier[static protected], parameter[privateKey, data, calculator, targetStream]] begin[{]
local_variable[type[PublicKeyDataDecryptorFactory], decryptorFactory]
local_variable[type[InputStream], content]
local_varia... | Keyword[protected] Keyword[static] Keyword[void] identifier[decryptData] operator[SEP] Keyword[final] identifier[PGPPrivateKey] identifier[privateKey] , Keyword[final] identifier[PGPPublicKeyEncryptedData] identifier[data] , Keyword[final] identifier[BcKeyFingerprintCalculator] identifier[calculator] , Keyword[final... |
public EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurityGroups(String resourceGroupName, String networkInterfaceName) {
return listEffectiveNetworkSecurityGroupsWithServiceResponseAsync(resourceGroupName, networkInterfaceName).toBlocking().last().body();
} | class class_name[name] begin[{]
method[listEffectiveNetworkSecurityGroups, return_type[type[EffectiveNetworkSecurityGroupListResultInner]], modifier[public], parameter[resourceGroupName, networkInterfaceName]] begin[{]
return[call[.listEffectiveNetworkSecurityGroupsWithServiceResponseAsync, parameter[m... | Keyword[public] identifier[EffectiveNetworkSecurityGroupListResultInner] identifier[listEffectiveNetworkSecurityGroups] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkInterfaceName] operator[SEP] {
Keyword[return] identifier[listEffectiveNetworkSecurityGrou... |
@Override
public IComplexNDArray add(INDArray other, INDArray result) {
return dup().addi(other, result);
} | class class_name[name] begin[{]
method[add, return_type[type[IComplexNDArray]], modifier[public], parameter[other, result]] begin[{]
return[call[.dup, parameter[]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[IComplexNDArray] identifier[add] operator[SEP] identifier[INDArray] identifier[other] , identifier[INDArray] identifier[result] operator[SEP] {
Keyword[return] identifier[dup] operator[SEP] operator[SEP] operator[SEP] identifier[addi] operator[SEP] i... |
@XmlElementDecl(namespace = PROV_NS, name = "role")
public JAXBElement<Role> createRole(Role value) {
return new JAXBElement<Role>(_Role_QNAME, Role.class, null, value);
} | class class_name[name] begin[{]
method[createRole, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_Role_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], p... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] identifier[PROV_NS] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Role] operator[>] identifier[createRole] operator[SEP] identifier[Role] identifier[val... |
@Override
public DescribeEnvironmentManagedActionHistoryResult describeEnvironmentManagedActionHistory(DescribeEnvironmentManagedActionHistoryRequest request) {
request = beforeClientExecution(request);
return executeDescribeEnvironmentManagedActionHistory(request);
} | class class_name[name] begin[{]
method[describeEnvironmentManagedActionHistory, return_type[type[DescribeEnvironmentManagedActionHistoryResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[cal... | annotation[@] identifier[Override] Keyword[public] identifier[DescribeEnvironmentManagedActionHistoryResult] identifier[describeEnvironmentManagedActionHistory] operator[SEP] identifier[DescribeEnvironmentManagedActionHistoryRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[... |
@Override
public UpdateRequestProcessor getInstance(SolrQueryRequest req,
SolrQueryResponse rsp, UpdateRequestProcessor next) {
try {
init(req);
} catch (IOException e) {
log.error(e);
}
return new MtasUpdateRequestProcessor(next, config);
} | class class_name[name] begin[{]
method[getInstance, return_type[type[UpdateRequestProcessor]], modifier[public], parameter[req, rsp, next]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=req, postfix_operators=[], prefix_operators=[], qual... | annotation[@] identifier[Override] Keyword[public] identifier[UpdateRequestProcessor] identifier[getInstance] operator[SEP] identifier[SolrQueryRequest] identifier[req] , identifier[SolrQueryResponse] identifier[rsp] , identifier[UpdateRequestProcessor] identifier[next] operator[SEP] {
Keyword[try] {
... |
@Override
protected void doResponse(SipServletResponse response)
throws ServletException, IOException {
logger.info("SimpleProxyServlet: Got response:\n" + response);
super.doResponse(response);
} | class class_name[name] begin[{]
method[doResponse, return_type[void], modifier[protected], parameter[response]] begin[{]
call[logger.info, parameter[binary_operation[literal["SimpleProxyServlet: Got response:\n"], +, member[.response]]]]
SuperMethodInvocation(arguments=[MemberRe... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doResponse] operator[SEP] identifier[SipServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] {
identifier[logger] operator[SEP] identifier[info] operator[SEP] lite... |
public IntIterator iterator()
{
IntIterator iterator = this.iterator;
if (null == iterator)
{
iterator = new IntIterator();
if (shouldAvoidAllocation)
{
this.iterator = iterator;
}
}
return iterator.reset();
... | class class_name[name] begin[{]
method[iterator, return_type[type[IntIterator]], modifier[public], parameter[]] begin[{]
local_variable[type[IntIterator], iterator]
if[binary_operation[literal[null], ==, member[.iterator]]] begin[{]
assign[member[.iterator], Clas... | Keyword[public] identifier[IntIterator] identifier[iterator] operator[SEP] operator[SEP] {
identifier[IntIterator] identifier[iterator] operator[=] Keyword[this] operator[SEP] identifier[iterator] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[==] identifier[iterator] operator[SEP] {
ide... |
public static String getStringInitParameter(ExternalContext context, String name, String defaultValue)
{
if (name == null)
{
throw new NullPointerException();
}
String param = context.getInitParameter(name);
if (param == null)
{
... | class class_name[name] begin[{]
method[getStringInitParameter, return_type[type[String]], modifier[public static], parameter[context, name, defaultValue]] begin[{]
if[binary_operation[member[.name], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], bo... | Keyword[public] Keyword[static] identifier[String] identifier[getStringInitParameter] operator[SEP] identifier[ExternalContext] identifier[context] , identifier[String] identifier[name] , identifier[String] identifier[defaultValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[name] operator[==] Other[n... |
@Override
public boolean handleChild(DDParser parser, String localName) throws ParseException {
if ("permission".equals(localName)) {
parsePermission(parser);
return true;
}
return false;
} | class class_name[name] begin[{]
method[handleChild, return_type[type[boolean]], modifier[public], parameter[parser, localName]] begin[{]
if[literal["permission"]] begin[{]
call[.parsePermission, parameter[member[.parser]]]
return[literal[true]]
else b... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[handleChild] operator[SEP] identifier[DDParser] identifier[parser] , identifier[String] identifier[localName] operator[SEP] Keyword[throws] identifier[ParseException] {
Keyword[if] operator[SEP] literal[String] operator[SEP] identifi... |
public final ParallelFlux<T> doOnError(Consumer<? super Throwable> onError) {
Objects.requireNonNull(onError, "onError");
return doOnSignal(this, null, null, onError, null, null, null, null, null);
} | class class_name[name] begin[{]
method[doOnError, return_type[type[ParallelFlux]], modifier[final public], parameter[onError]] begin[{]
call[Objects.requireNonNull, parameter[member[.onError], literal["onError"]]]
return[call[.doOnSignal, parameter[THIS[], literal[null], literal[null], ... | Keyword[public] Keyword[final] identifier[ParallelFlux] operator[<] identifier[T] operator[>] identifier[doOnError] operator[SEP] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[Throwable] operator[>] identifier[onError] operator[SEP] {
identifier[Objects] operator[SEP] identifier[requireN... |
public static byte[] hash(File file) throws IOException {
return Files.hash(file, Hashing.md5()).asBytes();
} | class class_name[name] begin[{]
method[hash, return_type[type[byte]], modifier[public static], parameter[file]] begin[{]
return[call[Files.hash, parameter[member[.file], call[Hashing.md5, parameter[]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[hash] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[Files] operator[SEP] identifier[hash] operator[SEP] identifier[file] , identifier[Hashing]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.