code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public static Enumeration<URL> getSystemResources(String name)
throws IOException
{
ClassLoader system = getSystemClassLoader();
if (system == null) {
return getBootstrapResources(name);
}
return system.getResources(name);
} | class class_name[name] begin[{]
method[getSystemResources, return_type[type[Enumeration]], modifier[public static], parameter[name]] begin[{]
local_variable[type[ClassLoader], system]
if[binary_operation[member[.system], ==, literal[null]]] begin[{]
return[call[.getBootstrap... | Keyword[public] Keyword[static] identifier[Enumeration] operator[<] identifier[URL] operator[>] identifier[getSystemResources] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[ClassLoader] identifier[system] operator[=] identifier[getSystemClass... |
@Override protected void visitCallNode(CallNode node) {
Expression call =
genCallCodeUtils.gen(
node, templateAliases, translationContext, errorReporter, getExprTranslator());
chunks.add(call);
} | class class_name[name] begin[{]
method[visitCallNode, return_type[void], modifier[protected], parameter[node]] begin[{]
local_variable[type[Expression], call]
call[chunks.add, parameter[member[.call]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[visitCallNode] operator[SEP] identifier[CallNode] identifier[node] operator[SEP] {
identifier[Expression] identifier[call] operator[=] identifier[genCallCodeUtils] operator[SEP] identifier[gen] operator[SEP] identifier[node] , identi... |
private void initializeShapeConfig(TypedArray attributes) {
defaultShapeKey =
attributes.getInteger(R.styleable.nox_shape, ShapeFactory.FIXED_CIRCULAR_SHAPE_KEY);
} | class class_name[name] begin[{]
method[initializeShapeConfig, return_type[void], modifier[private], parameter[attributes]] begin[{]
assign[member[.defaultShapeKey], call[attributes.getInteger, parameter[member[R.styleable.nox_shape], member[ShapeFactory.FIXED_CIRCULAR_SHAPE_KEY]]]]
end[}]
E... | Keyword[private] Keyword[void] identifier[initializeShapeConfig] operator[SEP] identifier[TypedArray] identifier[attributes] operator[SEP] {
identifier[defaultShapeKey] operator[=] identifier[attributes] operator[SEP] identifier[getInteger] operator[SEP] identifier[R] operator[SEP] identifier[styleable] operator... |
public final void closeConnection(final Connection conn) {
try {
if (conn != null) {
conn.close();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | class class_name[name] begin[{]
method[closeConnection, return_type[void], modifier[final public], parameter[conn]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Lit... | Keyword[public] Keyword[final] Keyword[void] identifier[closeConnection] operator[SEP] Keyword[final] identifier[Connection] identifier[conn] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[conn] operator[!=] Other[null] operator[SEP] {
identifier[conn] operator[SEP]... |
public int getMeaningAs(int[] types) {
for (int i = 0; i < types.length; i++) {
if (isA(types[i])) {
return types[i];
}
}
return Types.UNKNOWN;
} | class class_name[name] begin[{]
method[getMeaningAs, return_type[type[int]], modifier[public], parameter[types]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=types, postfix_operators=[], prefix_operators=[], q... | Keyword[public] Keyword[int] identifier[getMeaningAs] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[types] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[types] operator[SEP] identifier[length] oper... |
public void setTags(Map<String, String> tags) {
if (tags == null) {
this.tags = new HashMap<>();
} else {
this.tags = tags;
}
} | class class_name[name] begin[{]
method[setTags, return_type[void], modifier[public], parameter[tags]] begin[{]
if[binary_operation[member[.tags], ==, literal[null]]] begin[{]
assign[THIS[member[None.tags]], ClassCreator(arguments=[], body=None, constructor_type_arguments... | Keyword[public] Keyword[void] identifier[setTags] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tags] operator[SEP] {
Keyword[if] operator[SEP] identifier[tags] operator[==] Other[null] operator[SEP] {
Keyword[this] operator[SEP] identifier[t... |
public void onPostBindView(IDrawerItem drawerItem, View view) {
if (mOnPostBindViewListener != null) {
mOnPostBindViewListener.onBindView(drawerItem, view);
}
} | class class_name[name] begin[{]
method[onPostBindView, return_type[void], modifier[public], parameter[drawerItem, view]] begin[{]
if[binary_operation[member[.mOnPostBindViewListener], !=, literal[null]]] begin[{]
call[mOnPostBindViewListener.onBindView, parameter[member[... | Keyword[public] Keyword[void] identifier[onPostBindView] operator[SEP] identifier[IDrawerItem] identifier[drawerItem] , identifier[View] identifier[view] operator[SEP] {
Keyword[if] operator[SEP] identifier[mOnPostBindViewListener] operator[!=] Other[null] operator[SEP] {
identifier[mOnPostBindViewLi... |
public JenkinsServer createJob(String jobName, String jobXml) throws IOException {
return createJob(null, jobName, jobXml, false);
} | class class_name[name] begin[{]
method[createJob, return_type[type[JenkinsServer]], modifier[public], parameter[jobName, jobXml]] begin[{]
return[call[.createJob, parameter[literal[null], member[.jobName], member[.jobXml], literal[false]]]]
end[}]
END[}] | Keyword[public] identifier[JenkinsServer] identifier[createJob] operator[SEP] identifier[String] identifier[jobName] , identifier[String] identifier[jobXml] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[createJob] operator[SEP] Other[null] , identifier[jobName] , identifie... |
public boolean hasSchemaUpdateOrGrantRights(String schemaName) {
// If a DBA
if (isAdmin()) {
return true;
}
Grantee schemaOwner =
granteeManager.database.schemaManager.toSchemaOwner(schemaName);
// If owner of Schema
if (schemaOwner == this) {
... | class class_name[name] begin[{]
method[hasSchemaUpdateOrGrantRights, return_type[type[boolean]], modifier[public], parameter[schemaName]] begin[{]
if[call[.isAdmin, parameter[]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
local_variable[type[Gra... | Keyword[public] Keyword[boolean] identifier[hasSchemaUpdateOrGrantRights] operator[SEP] identifier[String] identifier[schemaName] operator[SEP] {
Keyword[if] operator[SEP] identifier[isAdmin] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] literal[boolean] operator[SEP]
}
ide... |
@SuppressWarnings("unchecked")
public synchronized void expand(int additionalCapacity) {
if (additionalCapacity <= 0) {
throw new IllegalArgumentException();
}
int capacityBefore = buffer.length;
synchronized (lock) { // D312598
int capacityAfter = buffer.len... | class class_name[name] begin[{]
method[expand, return_type[void], modifier[synchronized public], parameter[additionalCapacity]] begin[{]
if[binary_operation[member[.additionalCapacity], <=, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constru... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[synchronized] Keyword[void] identifier[expand] operator[SEP] Keyword[int] identifier[additionalCapacity] operator[SEP] {
Keyword[if] operator[SEP] identifier[additionalCapacity] operator[<=] Other[0] op... |
public JsonMappingOption filterSimpleTextReading(JsonSimpleTextReadingFilter simpleTextReadingFilter) {
if (simpleTextReadingFilter == null) {
throw new IllegalArgumentException("The argument 'simpleTextReadingFilter' should not be null.");
}
this.simpleTextReadingFilter = OptionalTh... | class class_name[name] begin[{]
method[filterSimpleTextReading, return_type[type[JsonMappingOption]], modifier[public], parameter[simpleTextReadingFilter]] begin[{]
if[binary_operation[member[.simpleTextReadingFilter], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCrea... | Keyword[public] identifier[JsonMappingOption] identifier[filterSimpleTextReading] operator[SEP] identifier[JsonSimpleTextReadingFilter] identifier[simpleTextReadingFilter] operator[SEP] {
Keyword[if] operator[SEP] identifier[simpleTextReadingFilter] operator[==] Other[null] operator[SEP] {
Keyword[thr... |
public static String getResourceUri(Resource resource) {
try {
return resource.getURI().toString();
} catch (FileNotFoundException e) {
return resource.getDescription();
} catch (IOException e) {
throw new RuntimeException("Could not create URI for resource: "... | class class_name[name] begin[{]
method[getResourceUri, return_type[type[String]], modifier[public static], parameter[resource]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getURI, postfix_operators=[], prefix_operators=[], qualifier=resource, selectors=... | Keyword[public] Keyword[static] identifier[String] identifier[getResourceUri] operator[SEP] identifier[Resource] identifier[resource] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[resource] operator[SEP] identifier[getURI] operator[SEP] operator[SEP] operator[SEP] identifier[toString] oper... |
public Husband addHusbandToFamily(final Family family,
final Person person) {
if (family == null || person == null) {
return new Husband();
}
final FamS famS = new FamS(person, "FAMS",
new ObjectId(family.getString()));
final Husband husband = new ... | class class_name[name] begin[{]
method[addHusbandToFamily, return_type[type[Husband]], modifier[public], parameter[family, person]] begin[{]
if[binary_operation[binary_operation[member[.family], ==, literal[null]], ||, binary_operation[member[.person], ==, literal[null]]]] begin[{]
... | Keyword[public] identifier[Husband] identifier[addHusbandToFamily] operator[SEP] Keyword[final] identifier[Family] identifier[family] , Keyword[final] identifier[Person] identifier[person] operator[SEP] {
Keyword[if] operator[SEP] identifier[family] operator[==] Other[null] operator[||] identifier[person] opera... |
public void onModuleLoad() {
final Button sendButton = new Button( "Send" );
final TextBox nameField = new TextBox();
nameField.setText( "GWT User" );
final Label errorLabel = new Label();
// We can add style names to widgets
sendButton.addStyleName( "sendButton" );
... | class class_name[name] begin[{]
method[onModuleLoad, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Button], sendButton]
local_variable[type[TextBox], nameField]
call[nameField.setText, parameter[literal["GWT User"]]]
local_variable[type[L... | Keyword[public] Keyword[void] identifier[onModuleLoad] operator[SEP] operator[SEP] {
Keyword[final] identifier[Button] identifier[sendButton] operator[=] Keyword[new] identifier[Button] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[TextBox] identifier[nameField] operator[=] ... |
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case TypesPackage.JVM_WILDCARD_TYPE_REFERENCE__CONSTRAINTS:
return ((InternalEList<?>)getConstraints()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(ot... | class class_name[name] begin[{]
method[eInverseRemove, return_type[type[NotificationChain]], modifier[public], parameter[otherEnd, featureID, msgs]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_WILDCARD_TYPE_REFERENCE__CONSTRAINTS, postfix_operators=[], prefix_op... | annotation[@] identifier[Override] Keyword[public] identifier[NotificationChain] identifier[eInverseRemove] operator[SEP] identifier[InternalEObject] identifier[otherEnd] , Keyword[int] identifier[featureID] , identifier[NotificationChain] identifier[msgs] operator[SEP] {
Keyword[switch] operator[SEP] identifi... |
private static Set<ClassTemplateSpec> findAllReferencedTypes(
Set<ClassTemplateSpec> current,
Set<ClassTemplateSpec> visited,
Set<ClassTemplateSpec> acc) {
//val nextUnvisited = current.flatMap(_.directReferencedTypes).filterNot(visited.contains);
Set<ClassTemplateSpec> nextUnvisited = new Ha... | class class_name[name] begin[{]
method[findAllReferencedTypes, return_type[type[Set]], modifier[private static], parameter[current, visited, acc]] begin[{]
local_variable[type[Set], nextUnvisited]
ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=No... | Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[ClassTemplateSpec] operator[>] identifier[findAllReferencedTypes] operator[SEP] identifier[Set] operator[<] identifier[ClassTemplateSpec] operator[>] identifier[current] , identifier[Set] operator[<] identifier[ClassTemplateSpec] operator[>] ident... |
public String formatId(long id) {
long[] arr = parseId(id);
String tmf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date(arr[0]));
return String.format("%s, #%d, @(%d,%d)", tmf, arr[3], arr[1], arr[2]);
} | class class_name[name] begin[{]
method[formatId, return_type[type[String]], modifier[public], parameter[id]] begin[{]
local_variable[type[long], arr]
local_variable[type[String], tmf]
return[call[String.format, parameter[literal["%s, #%d, @(%d,%d)"], member[.tmf], member[.arr], member[.... | Keyword[public] identifier[String] identifier[formatId] operator[SEP] Keyword[long] identifier[id] operator[SEP] {
Keyword[long] operator[SEP] operator[SEP] identifier[arr] operator[=] identifier[parseId] operator[SEP] identifier[id] operator[SEP] operator[SEP] identifier[String] identifier[tmf] operator[=] Keyw... |
protected void setPeriodBorders(ChannelMemory aktMemo)
{
if (frequencyTableType==Helpers.AMIGA_TABLE)
{
aktMemo.portaStepUpEnd = getFineTunePeriod(aktMemo, Helpers.getNoteIndexForPeriod(113)+1);
aktMemo.portaStepDownEnd = getFineTunePeriod(aktMemo, Helpers.getNoteIndexForPeriod(856)+1);
}
else
{
akt... | class class_name[name] begin[{]
method[setPeriodBorders, return_type[void], modifier[protected], parameter[aktMemo]] begin[{]
if[binary_operation[member[.frequencyTableType], ==, member[Helpers.AMIGA_TABLE]]] begin[{]
assign[member[aktMemo.portaStepUpEnd], call[.getFineT... | Keyword[protected] Keyword[void] identifier[setPeriodBorders] operator[SEP] identifier[ChannelMemory] identifier[aktMemo] operator[SEP] {
Keyword[if] operator[SEP] identifier[frequencyTableType] operator[==] identifier[Helpers] operator[SEP] identifier[AMIGA_TABLE] operator[SEP] {
identifier[aktMemo] ... |
public ServiceFuture<Void> cancelAsync(String resourceGroupName, String registryName, String runId, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(resourceGroupName, registryName, runId), serviceCallback);
} | class class_name[name] begin[{]
method[cancelAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, registryName, runId, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.cancelWithServiceResponseAsync, parameter[member[.resourceGroupNam... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[cancelAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[runId] , Keyword[final] identifier[ServiceCallback] operator[<] ident... |
@Override
public void runAfter(@Pin Consumer<? super Cancel> task,
long delay,
TimeUnit unit,
Result<? super Cancel> result)
{
Objects.requireNonNull(task);
Objects.requireNonNull(unit);
TimerListener listener = new TimerListener(ta... | class class_name[name] begin[{]
method[runAfter, return_type[void], modifier[public], parameter[task, delay, unit, result]] begin[{]
call[Objects.requireNonNull, parameter[member[.task]]]
call[Objects.requireNonNull, parameter[member[.unit]]]
local_variable[type[TimerLis... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[runAfter] operator[SEP] annotation[@] identifier[Pin] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[Cancel] operator[>] identifier[task] , Keyword[long] identifier[delay] , identifier[TimeUnit] identifier[unit] , ide... |
public Observable<Page<IntegrationAccountMapInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) {
return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<IntegrationAccountMapInner>>, Page<IntegrationAccountMapInner>>() {
... | class class_name[name] begin[{]
method[listByIntegrationAccountsNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{]
return[call[.listByIntegrationAccountsNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[IntegrationAccountMapInner] operator[>] operator[>] identifier[listByIntegrationAccountsNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] {
Keyword[return] identifier[listByI... |
@WorkerThread
@Nullable
public String createThumbnailForVideo(String videoPath) {
if (TextUtils.isEmpty(videoPath)) return null;
File thumbnailFile = randomPath(videoPath);
if (thumbnailFile.exists()) return thumbnailFile.getAbsolutePath();
try {
MediaMetadataRetrie... | class class_name[name] begin[{]
method[createThumbnailForVideo, return_type[type[String]], modifier[public], parameter[videoPath]] begin[{]
if[call[TextUtils.isEmpty, parameter[member[.videoPath]]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[... | annotation[@] identifier[WorkerThread] annotation[@] identifier[Nullable] Keyword[public] identifier[String] identifier[createThumbnailForVideo] operator[SEP] identifier[String] identifier[videoPath] operator[SEP] {
Keyword[if] operator[SEP] identifier[TextUtils] operator[SEP] identifier[isEmpty] operator[SEP] i... |
public List<E> getBetterOrEqual(int threshold) {
List<E> bests = new ArrayList<>();
for (E element : this.map.keySet()) {
Ranking ranking = this.map.get(element);
if ((ranking != null) && (ranking.rank >= threshold)) {
bests.add(element);
}
}
return bests;
} | class class_name[name] begin[{]
method[getBetterOrEqual, return_type[type[List]], modifier[public], parameter[threshold]] begin[{]
local_variable[type[List], bests]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(... | Keyword[public] identifier[List] operator[<] identifier[E] operator[>] identifier[getBetterOrEqual] operator[SEP] Keyword[int] identifier[threshold] operator[SEP] {
identifier[List] operator[<] identifier[E] operator[>] identifier[bests] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] oper... |
private static String getWellFormPath(String path) {
if(null != path){
//去掉项目名部分,不去开头的"/"
final String contextPath = ActionContext.getContextPath();
if(null != contextPath && false == StrUtil.SLASH.equals(contextPath)){
path = StrUtil.removePrefix(path, contextPath);
}
//去掉尾部"/",如果path为... | class class_name[name] begin[{]
method[getWellFormPath, return_type[type[String]], modifier[private static], parameter[path]] begin[{]
if[binary_operation[literal[null], !=, member[.path]]] begin[{]
local_variable[type[String], contextPath]
if[binary_operatio... | Keyword[private] Keyword[static] identifier[String] identifier[getWellFormPath] operator[SEP] identifier[String] identifier[path] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[!=] identifier[path] operator[SEP] {
Keyword[final] identifier[String] identifier[contextPath] operator[=] id... |
protected void updateHighestStreamId(int proposedHighestStreamId) throws ProtocolException {
if ((proposedHighestStreamId & 1) == 0) { // even number, server-initialized stream
if (proposedHighestStreamId > highestLocalStreamId) {
highestLocalStreamId = proposedHighestStreamId;
... | class class_name[name] begin[{]
method[updateHighestStreamId, return_type[void], modifier[protected], parameter[proposedHighestStreamId]] begin[{]
if[binary_operation[binary_operation[member[.proposedHighestStreamId], &, literal[1]], ==, literal[0]]] begin[{]
if[binary_o... | Keyword[protected] Keyword[void] identifier[updateHighestStreamId] operator[SEP] Keyword[int] identifier[proposedHighestStreamId] operator[SEP] Keyword[throws] identifier[ProtocolException] {
Keyword[if] operator[SEP] operator[SEP] identifier[proposedHighestStreamId] operator[&] Other[1] operator[SEP] operator[=... |
public void setVmServerAddressList(java.util.Collection<VmServerAddress> vmServerAddressList) {
if (vmServerAddressList == null) {
this.vmServerAddressList = null;
return;
}
this.vmServerAddressList = new java.util.ArrayList<VmServerAddress>(vmServerAddressList);
} | class class_name[name] begin[{]
method[setVmServerAddressList, return_type[void], modifier[public], parameter[vmServerAddressList]] begin[{]
if[binary_operation[member[.vmServerAddressList], ==, literal[null]]] begin[{]
assign[THIS[member[None.vmServerAddressList]], lite... | Keyword[public] Keyword[void] identifier[setVmServerAddressList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[VmServerAddress] operator[>] identifier[vmServerAddressList] operator[SEP] {
Keyword[if] operator[SEP] identifier[vmServerAddr... |
public static void removeFromCache(String imageUri, ImageMemoryCache memoryCache) {
List<String> keysToRemove = new ArrayList<String>();
for (String key : memoryCache.getKeySet()) {
if (key.startsWith(imageUri)) {
keysToRemove.add(key);
}
}
for (String keyToRemove : keysToRemove) {
memoryCache.remo... | class class_name[name] begin[{]
method[removeFromCache, return_type[void], modifier[public static], parameter[imageUri, memoryCache]] begin[{]
local_variable[type[List], keysToRemove]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Memb... | Keyword[public] Keyword[static] Keyword[void] identifier[removeFromCache] operator[SEP] identifier[String] identifier[imageUri] , identifier[ImageMemoryCache] identifier[memoryCache] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[keysToRemove] operator[=] Keyword[new] ide... |
public static List<String> expand(String globPattern) {
return GlobExpanderImpl.expand(GlobParser.parse(globPattern));
} | class class_name[name] begin[{]
method[expand, return_type[type[List]], modifier[public static], parameter[globPattern]] begin[{]
return[call[GlobExpanderImpl.expand, parameter[call[GlobParser.parse, parameter[member[.globPattern]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[expand] operator[SEP] identifier[String] identifier[globPattern] operator[SEP] {
Keyword[return] identifier[GlobExpanderImpl] operator[SEP] identifier[expand] operator[SEP] identifier[GlobParser] operator[SEP] ... |
@SuppressWarnings( {"unchecked"})
public TracingParseRunner<V> withFilter(Predicate<?> filter) {
this.filter = (Predicate<Tuple2<Context<?>, Boolean>>) checkArgNotNull(filter, "filter");
return this;
} | class class_name[name] begin[{]
method[withFilter, return_type[type[TracingParseRunner]], modifier[public], parameter[filter]] begin[{]
assign[THIS[member[None.filter]], Cast(expression=MethodInvocation(arguments=[MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifi... | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String]
} operator[SEP] Keyword[public] identifier[TracingParseRunner] operator[<] identifier[V] operator[>] identifier[withFilter] operator[SEP] identifier[Predicate] operator[<] operator[?] operator[>] identifier[filter] operator[SEP] {
... |
public BatchFraction threadPool(final int maxThreads, final int keepAliveTime, final TimeUnit keepAliveUnits) {
return threadPool(DEFAULT_THREAD_POOL_NAME, maxThreads, keepAliveTime, keepAliveUnits);
} | class class_name[name] begin[{]
method[threadPool, return_type[type[BatchFraction]], modifier[public], parameter[maxThreads, keepAliveTime, keepAliveUnits]] begin[{]
return[call[.threadPool, parameter[member[.DEFAULT_THREAD_POOL_NAME], member[.maxThreads], member[.keepAliveTime], member[.keepAliveUnits... | Keyword[public] identifier[BatchFraction] identifier[threadPool] operator[SEP] Keyword[final] Keyword[int] identifier[maxThreads] , Keyword[final] Keyword[int] identifier[keepAliveTime] , Keyword[final] identifier[TimeUnit] identifier[keepAliveUnits] operator[SEP] {
Keyword[return] identifier[threadPool] opera... |
public static String getAttributeValue(
Node node, String attributeName, String defaultValue)
{
NamedNodeMap attributes = node.getAttributes();
Node attributeNode = attributes.getNamedItem(attributeName);
if (attributeNode == null)
{
return defaultValue;
... | class class_name[name] begin[{]
method[getAttributeValue, return_type[type[String]], modifier[public static], parameter[node, attributeName, defaultValue]] begin[{]
local_variable[type[NamedNodeMap], attributes]
local_variable[type[Node], attributeNode]
if[binary_operation[membe... | Keyword[public] Keyword[static] identifier[String] identifier[getAttributeValue] operator[SEP] identifier[Node] identifier[node] , identifier[String] identifier[attributeName] , identifier[String] identifier[defaultValue] operator[SEP] {
identifier[NamedNodeMap] identifier[attributes] operator[=] identifier[no... |
public DescribeStackResourceDriftsRequest withStackResourceDriftStatusFilters(String... stackResourceDriftStatusFilters) {
if (this.stackResourceDriftStatusFilters == null) {
setStackResourceDriftStatusFilters(new com.amazonaws.internal.SdkInternalList<String>(stackResourceDriftStatusFilters.length)... | class class_name[name] begin[{]
method[withStackResourceDriftStatusFilters, return_type[type[DescribeStackResourceDriftsRequest]], modifier[public], parameter[stackResourceDriftStatusFilters]] begin[{]
if[binary_operation[THIS[member[None.stackResourceDriftStatusFilters]], ==, literal[null]]] b... | Keyword[public] identifier[DescribeStackResourceDriftsRequest] identifier[withStackResourceDriftStatusFilters] operator[SEP] identifier[String] operator[...] identifier[stackResourceDriftStatusFilters] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[stackResourceDriftStatusFilter... |
public OperationFuture<List<Group>> delete(Group... groups) {
List<Group> groupList = Arrays.asList(groups);
List<JobFuture> jobs = groupList.stream()
.map(group -> delete(group).jobFuture())
.collect(toList());
return new OperationFuture<>(
groupList,
... | class class_name[name] begin[{]
method[delete, return_type[type[OperationFuture]], modifier[public], parameter[groups]] begin[{]
local_variable[type[List], groupList]
local_variable[type[List], jobs]
return[ClassCreator(arguments=[MemberReference(member=groupList, postfix_operators=[], ... | Keyword[public] identifier[OperationFuture] operator[<] identifier[List] operator[<] identifier[Group] operator[>] operator[>] identifier[delete] operator[SEP] identifier[Group] operator[...] identifier[groups] operator[SEP] {
identifier[List] operator[<] identifier[Group] operator[>] identifier[groupList] opera... |
@Override
public Record nextRecord(Record record) {
try {
resultSet.next();
ResultSetMetaData rsmd = resultSet.getMetaData();
int column_count = rsmd.getColumnCount();
record.setNumFields(column_count);
for (int pos = 0; pos < column_count; pos++) {
int type = rsmd.getColumnType(pos + 1);
ret... | class class_name[name] begin[{]
method[nextRecord, return_type[type[Record]], modifier[public], parameter[record]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=resultSet, selectors=[], type_a... | annotation[@] identifier[Override] Keyword[public] identifier[Record] identifier[nextRecord] operator[SEP] identifier[Record] identifier[record] operator[SEP] {
Keyword[try] {
identifier[resultSet] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[ResultSetMetaData] i... |
public void setAttributes(java.util.Collection<String> attributes) {
if (attributes == null) {
this.attributes = null;
return;
}
this.attributes = new java.util.ArrayList<String>(attributes);
} | class class_name[name] begin[{]
method[setAttributes, return_type[void], modifier[public], parameter[attributes]] begin[{]
if[binary_operation[member[.attributes], ==, literal[null]]] begin[{]
assign[THIS[member[None.attributes]], literal[null]]
return[None]
... | Keyword[public] Keyword[void] identifier[setAttributes] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[attributes] operator[SEP] {
Keyword[if] operator[SEP] identifier[attributes] operator[==] Other[null] op... |
public long getTimeDelta ()
{
if (_iter == 0) { // no responses yet
return 0L;
}
// Return a median value as our estimate, rather than an average.
// Mdb writes:
// -----------
// I used the median because that was more likely to result in a
// se... | class class_name[name] begin[{]
method[getTimeDelta, return_type[type[long]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[._iter], ==, literal[0]]] begin[{]
return[literal[0L]]
else begin[{]
None
end[}]
local_variable[type[long], deltas... | Keyword[public] Keyword[long] identifier[getTimeDelta] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[_iter] operator[==] Other[0] operator[SEP] {
Keyword[return] Other[0L] operator[SEP]
}
Keyword[long] operator[SEP] operator[SEP] identifier[deltasCopy] operator[=] Ke... |
public static String getAbsoluteUri(String relativeUri, String baseUri) {
if (isAbsoluteUri(relativeUri)) {
// URI is null or already absolute
return relativeUri;
}
try {
URL url = new URL(new URL(m_baseUrl, baseUri), relativeUri);
StringBuffer re... | class class_name[name] begin[{]
method[getAbsoluteUri, return_type[type[String]], modifier[public static], parameter[relativeUri, baseUri]] begin[{]
if[call[.isAbsoluteUri, parameter[member[.relativeUri]]]] begin[{]
return[member[.relativeUri]]
else begin[{]
None
end... | Keyword[public] Keyword[static] identifier[String] identifier[getAbsoluteUri] operator[SEP] identifier[String] identifier[relativeUri] , identifier[String] identifier[baseUri] operator[SEP] {
Keyword[if] operator[SEP] identifier[isAbsoluteUri] operator[SEP] identifier[relativeUri] operator[SEP] operator[SEP] {... |
@Pure
@SuppressWarnings("checkstyle:npathcomplexity")
public static Map<Character, String> getAccentTranslationTable() {
Map<Character, String> map = null;
try {
LOCK.lock();
if (accentTransTbl != null) {
map = accentTransTbl.get();
}
} finally {
LOCK.unlock();
}
if (map != null) {
retur... | class class_name[name] begin[{]
method[getAccentTranslationTable, return_type[type[Map]], modifier[public static], parameter[]] begin[{]
local_variable[type[Map], map]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=lock, postfix_operators=[], prefix_ope... | annotation[@] identifier[Pure] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[Character] , identifier[String] operator[>] identifier[getAccentTranslationTable] operator[SEP] operator[SEP] {
identifier[... |
public EClass getFullyQualifiedName() {
if (fullyQualifiedNameEClass == null) {
fullyQualifiedNameEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(356);
}
return fullyQualifiedNameEClass;
} | class class_name[name] begin[{]
method[getFullyQualifiedName, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.fullyQualifiedNameEClass], ==, literal[null]]] begin[{]
assign[member[.fullyQualifiedNameEClass], Cast(expression=... | Keyword[public] identifier[EClass] identifier[getFullyQualifiedName] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[fullyQualifiedNameEClass] operator[==] Other[null] operator[SEP] {
identifier[fullyQualifiedNameEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ide... |
public void setParameterableHeader(String name, Parameterable param) {
if(logger.isDebugEnabled()) {
logger.debug("setParameterableHeader - name=" + name + ", param=" + param);
}
checkCommitted();
if(isSystemHeader(getModifiableRule(name))) {
throw new IllegalArgumentException(name + " is a s... | class class_name[name] begin[{]
method[setParameterableHeader, return_type[void], modifier[public], parameter[name, param]] begin[{]
if[call[logger.isDebugEnabled, parameter[]]] begin[{]
call[logger.debug, parameter[binary_operation[binary_operation[binary_operation[lite... | Keyword[public] Keyword[void] identifier[setParameterableHeader] operator[SEP] identifier[String] identifier[name] , identifier[Parameterable] identifier[param] operator[SEP] {
Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] {
... |
public Blob getBlob(String blobName, long generation) {
// [START getBlob]
Blob blob = bucket.get(blobName, BlobGetOption.generationMatch(generation));
// [END getBlob]
return blob;
} | class class_name[name] begin[{]
method[getBlob, return_type[type[Blob]], modifier[public], parameter[blobName, generation]] begin[{]
local_variable[type[Blob], blob]
return[member[.blob]]
end[}]
END[}] | Keyword[public] identifier[Blob] identifier[getBlob] operator[SEP] identifier[String] identifier[blobName] , Keyword[long] identifier[generation] operator[SEP] {
identifier[Blob] identifier[blob] operator[=] identifier[bucket] operator[SEP] identifier[get] operator[SEP] identifier[blobName] , identifier[BlobGe... |
public static float cublasScnrm2(int n, Pointer x, int incx)
{
float result = cublasScnrm2Native(n, x, incx);
checkResultBLAS();
return result;
} | class class_name[name] begin[{]
method[cublasScnrm2, return_type[type[float]], modifier[public static], parameter[n, x, incx]] begin[{]
local_variable[type[float], result]
call[.checkResultBLAS, parameter[]]
return[member[.result]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[float] identifier[cublasScnrm2] operator[SEP] Keyword[int] identifier[n] , identifier[Pointer] identifier[x] , Keyword[int] identifier[incx] operator[SEP] {
Keyword[float] identifier[result] operator[=] identifier[cublasScnrm2Native] operator[SEP] identifier[n] , identi... |
public static void glBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
{
checkContextCompatibility();
nglBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
} | class class_name[name] begin[{]
method[glBlendFuncSeparate, return_type[void], modifier[public static], parameter[srcRGB, dstRGB, srcAlpha, dstAlpha]] begin[{]
call[.checkContextCompatibility, parameter[]]
call[.nglBlendFuncSeparate, parameter[member[.srcRGB], member[.dstRGB], m... | Keyword[public] Keyword[static] Keyword[void] identifier[glBlendFuncSeparate] operator[SEP] Keyword[int] identifier[srcRGB] , Keyword[int] identifier[dstRGB] , Keyword[int] identifier[srcAlpha] , Keyword[int] identifier[dstAlpha] operator[SEP] {
identifier[checkContextCompatibility] operator[SEP] operator[SEP... |
@Override
public ListTriggersResult listTriggers(ListTriggersRequest request) {
request = beforeClientExecution(request);
return executeListTriggers(request);
} | class class_name[name] begin[{]
method[listTriggers, return_type[type[ListTriggersResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeListTriggers, parameter[member[.request]]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[ListTriggersResult] identifier[listTriggers] operator[SEP] identifier[ListTriggersRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S... |
@Override
public <A> CompletionStage<A> delayed(
final Callable<CompletionStage<A>> callable, long amount, TimeUnit unit) {
requireNonNull(callable, "Null callable");
requireNonNull(amount, "Null amount");
requireNonNull(unit, "Null unit");
FiniteDuration duration = FiniteDuration.apply(amount,... | class class_name[name] begin[{]
method[delayed, return_type[type[CompletionStage]], modifier[public], parameter[callable, amount, unit]] begin[{]
call[.requireNonNull, parameter[member[.callable], literal["Null callable"]]]
call[.requireNonNull, parameter[member[.amount], litera... | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[A] operator[>] identifier[CompletionStage] operator[<] identifier[A] operator[>] identifier[delayed] operator[SEP] Keyword[final] identifier[Callable] operator[<] identifier[CompletionStage] operator[<] identifier[A] operator[>] operator[>] ident... |
public static Map<String, Object> getObjectFromCells(Cells cells) {
Map<String, Object> result = new HashMap<>();
for(Cell cell:cells.getCells()) {
result.put(cell.getName(), cell.getValue());
}
return result;
} | class class_name[name] begin[{]
method[getObjectFromCells, return_type[type[Map]], modifier[public static], parameter[cells]] begin[{]
local_variable[type[Map], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvo... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getObjectFromCells] operator[SEP] identifier[Cells] identifier[cells] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[result] ope... |
@Override
public String encode() {
StringBuffer buffer = new StringBuffer("[");
if (lowerBound != null) {
buffer.append(lowerBound.encode());
buffer.append(',');
}
buffer.append(basis.encode());
if (upperBound != null) {
buffer.append(',');... | class class_name[name] begin[{]
method[encode, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[StringBuffer], buffer]
if[binary_operation[member[.lowerBound], !=, literal[null]]] begin[{]
call[buffer.append, parameter[call[l... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[encode] operator[SEP] operator[SEP] {
identifier[StringBuffer] identifier[buffer] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[lower... |
public final MediaStatus load(final Media media) throws IOException {
Status status = getStatus();
Application runningApp = status.getRunningApp();
if (runningApp == null) {
throw new ChromeCastException("No application is running in ChromeCast");
}
Media mediaToPlay;... | class class_name[name] begin[{]
method[load, return_type[type[MediaStatus]], modifier[final public], parameter[media]] begin[{]
local_variable[type[Status], status]
local_variable[type[Application], runningApp]
if[binary_operation[member[.runningApp], ==, literal[null]]] begin[{... | Keyword[public] Keyword[final] identifier[MediaStatus] identifier[load] operator[SEP] Keyword[final] identifier[Media] identifier[media] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Status] identifier[status] operator[=] identifier[getStatus] operator[SEP] operator[SEP] operator[SEP] identi... |
public static void cublasSaxpy(int n, float alpha, Pointer x, int incx, Pointer y, int incy)
{
cublasSaxpyNative(n, alpha, x, incx, y, incy);
checkResultBLAS();
} | class class_name[name] begin[{]
method[cublasSaxpy, return_type[void], modifier[public static], parameter[n, alpha, x, incx, y, incy]] begin[{]
call[.cublasSaxpyNative, parameter[member[.n], member[.alpha], member[.x], member[.incx], member[.y], member[.incy]]]
call[.checkResult... | Keyword[public] Keyword[static] Keyword[void] identifier[cublasSaxpy] operator[SEP] Keyword[int] identifier[n] , Keyword[float] identifier[alpha] , identifier[Pointer] identifier[x] , Keyword[int] identifier[incx] , identifier[Pointer] identifier[y] , Keyword[int] identifier[incy] operator[SEP] {
identifier... |
public static void main(String[] args) {
PluginUtilityConsole console = new PluginUtilityConsole(System.console(), System.out,System.err);
// This is only needed for the GenerateFromServerPluginsTask so comment out for now.
//IGeneratePluginConfigMBeanConnection pluginUtilityMBeanConn = new G... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[args]] begin[{]
local_variable[type[PluginUtilityConsole], console]
local_variable[type[WebServerPluginUtility], util]
call[util.registerTask, parameter[ClassCreator(arguments=[Mem... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] {
identifier[PluginUtilityConsole] identifier[console] operator[=] Keyword[new] identifier[PluginUtilityConsole] operator[SEP] identifier[System] operator[SEP... |
public boolean awaitTermination(long timeout, TimeUnit unit)
throws InterruptedException {
if (Thread.interrupted())
throw new InterruptedException();
if (this == common) {
awaitQuiescence(timeout, unit);
return false;
}
long nanos = unit.toNan... | class class_name[name] begin[{]
method[awaitTermination, return_type[type[boolean]], modifier[public], parameter[timeout, unit]] begin[{]
if[call[Thread.interrupted, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_o... | Keyword[public] Keyword[boolean] identifier[awaitTermination] operator[SEP] Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] Keyword[throws] identifier[InterruptedException] {
Keyword[if] operator[SEP] identifier[Thread] operator[SEP] identifier[interrupted] operator[SEP] ... |
@Deprecated
public void addColumn(String tableName, HColumnDescriptor column) throws IOException {
addColumn(TableName.valueOf(tableName), column);
} | class class_name[name] begin[{]
method[addColumn, return_type[void], modifier[public], parameter[tableName, column]] begin[{]
call[.addColumn, parameter[call[TableName.valueOf, parameter[member[.tableName]]], member[.column]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[addColumn] operator[SEP] identifier[String] identifier[tableName] , identifier[HColumnDescriptor] identifier[column] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[addColumn] operator[SEP] identifier[TableName] ope... |
private List<ClassInfo> getOverrideOrder() {
if (overrideOrder == null) {
overrideOrder = getOverrideOrder(new HashSet<ClassInfo>(), new ArrayList<ClassInfo>());
}
return overrideOrder;
} | class class_name[name] begin[{]
method[getOverrideOrder, return_type[type[List]], modifier[private], parameter[]] begin[{]
if[binary_operation[member[.overrideOrder], ==, literal[null]]] begin[{]
assign[member[.overrideOrder], call[.getOverrideOrder, parameter[ClassCreat... | Keyword[private] identifier[List] operator[<] identifier[ClassInfo] operator[>] identifier[getOverrideOrder] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[overrideOrder] operator[==] Other[null] operator[SEP] {
identifier[overrideOrder] operator[=] identifier[getOverrideOrder] ope... |
void close() {
lock.lock();
condition.signal();
setAutoAccept(true);
lock.unlock();
holder_ = null;
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[default], parameter[]] begin[{]
call[lock.lock, parameter[]]
call[condition.signal, parameter[]]
call[.setAutoAccept, parameter[literal[true]]]
call[lock.unlock, parameter[]... | Keyword[void] identifier[close] operator[SEP] operator[SEP] {
identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] identifier[condition] operator[SEP] identifier[signal] operator[SEP] operator[SEP] operator[SEP] identifier[setAutoAccept] operator[SEP] literal[boolean] operato... |
public final V get() throws InterruptedException, ExecutionException {
int s = (Thread.currentThread() instanceof ForkJoinWorkerThread) ? doJoin()
: externalInterruptibleAwaitDone();
if ((s &= DONE_MASK) == CANCELLED)
throw new CancellationException();
if (s == EXCEPTIONAL)
throw new Exe... | class class_name[name] begin[{]
method[get, return_type[type[V]], modifier[final public], parameter[]] begin[{]
local_variable[type[int], s]
if[binary_operation[assign[member[.s], member[.DONE_MASK]], ==, member[.CANCELLED]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[],... | Keyword[public] Keyword[final] identifier[V] identifier[get] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[ExecutionException] {
Keyword[int] identifier[s] operator[=] operator[SEP] identifier[Thread] operator[SEP] identifier[currentThread] operator[SEP] operator[SEP]... |
public static URL createURL(URL base, String urlstring) throws MalformedURLException
{
if (urlstring.startsWith("data:"))
return new URL(null, urlstring, new DataURLHandler());
else
{
URL ret = new URL(base, urlstring);
//fix the incorrect absolute URLs th... | class class_name[name] begin[{]
method[createURL, return_type[type[URL]], modifier[public static], parameter[base, urlstring]] begin[{]
if[call[urlstring.startsWith, parameter[literal["data:"]]]] begin[{]
return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifie... | Keyword[public] Keyword[static] identifier[URL] identifier[createURL] operator[SEP] identifier[URL] identifier[base] , identifier[String] identifier[urlstring] operator[SEP] Keyword[throws] identifier[MalformedURLException] {
Keyword[if] operator[SEP] identifier[urlstring] operator[SEP] identifier[startsWith] o... |
@Deprecated
private void checkIdAttribute(DomainObject referencedClass, Attribute idAttribute) {
if (idAttribute == null) {
throw new IllegalArgumentException("Referenced class " + referencedClass.getName() + " doesn't contain 'id' attribute");
}
} | class class_name[name] begin[{]
method[checkIdAttribute, return_type[void], modifier[private], parameter[referencedClass, idAttribute]] begin[{]
if[binary_operation[member[.idAttribute], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(o... | annotation[@] identifier[Deprecated] Keyword[private] Keyword[void] identifier[checkIdAttribute] operator[SEP] identifier[DomainObject] identifier[referencedClass] , identifier[Attribute] identifier[idAttribute] operator[SEP] {
Keyword[if] operator[SEP] identifier[idAttribute] operator[==] Other[null] operator[... |
public void update(StoreDefinition storeDef) {
if(!useOneEnvPerStore)
throw new VoldemortException("Memory foot print can be set only when using different environments per store");
String storeName = storeDef.getName();
Environment environment = environments.get(storeName);
... | class class_name[name] begin[{]
method[update, return_type[void], modifier[public], parameter[storeDef]] begin[{]
if[member[.useOneEnvPerStore]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Mem... | Keyword[public] Keyword[void] identifier[update] operator[SEP] identifier[StoreDefinition] identifier[storeDef] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[useOneEnvPerStore] operator[SEP] Keyword[throw] Keyword[new] identifier[VoldemortException] operator[SEP] literal[String] operator[SEP] ... |
public void setGoalType(com.google.api.ads.admanager.axis.v201808.GoalType goalType) {
this.goalType = goalType;
} | class class_name[name] begin[{]
method[setGoalType, return_type[void], modifier[public], parameter[goalType]] begin[{]
assign[THIS[member[None.goalType]], member[.goalType]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setGoalType] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[GoalType] identif... |
public void putWorkspace(long workspaceId, Workspace workspace) throws StructurizrClientException {
if (workspace == null) {
throw new IllegalArgumentException("The workspace must not be null.");
} else if (workspaceId <= 0) {
throw new IllegalArgumentException("The workspace ID ... | class class_name[name] begin[{]
method[putWorkspace, return_type[void], modifier[public], parameter[workspaceId, workspace]] begin[{]
if[binary_operation[member[.workspace], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ... | Keyword[public] Keyword[void] identifier[putWorkspace] operator[SEP] Keyword[long] identifier[workspaceId] , identifier[Workspace] identifier[workspace] operator[SEP] Keyword[throws] identifier[StructurizrClientException] {
Keyword[if] operator[SEP] identifier[workspace] operator[==] Other[null] operator[SEP] ... |
public synchronized void batchProcessComplete() {
if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
"process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_method_ping__FINEST",
new Objec... | class class_name[name] begin[{]
method[batchProcessComplete, return_type[void], modifier[synchronized public], parameter[]] begin[{]
if[call[UIMAFramework.getLogger, parameter[]]] begin[{]
call[UIMAFramework.getLogger, parameter[THIS[call[None.getClass, parameter[]]]]]
... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[batchProcessComplete] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[UIMAFramework] operator[SEP] identifier[getLogger] operator[SEP] operator[SEP] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP]... |
public Observable<ServiceResponse<VnetGatewayInner>> updateVnetGatewayWithServiceResponseAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGro... | class class_name[name] begin[{]
method[updateVnetGatewayWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name, vnetName, gatewayName, connectionEnvelope]] begin[{]
if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{]... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[VnetGatewayInner] operator[>] operator[>] identifier[updateVnetGatewayWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[name] , identifier[String... |
public static void close(Statement stmt) {
if (stmt != null) {
try {
stmt.close();
} catch (SQLException ex) {
logger.error("", ex);
}
}
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[public static], parameter[stmt]] begin[{]
if[binary_operation[member[.stmt], !=, literal[null]]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix... | Keyword[public] Keyword[static] Keyword[void] identifier[close] operator[SEP] identifier[Statement] identifier[stmt] operator[SEP] {
Keyword[if] operator[SEP] identifier[stmt] operator[!=] Other[null] operator[SEP] {
Keyword[try] {
identifier[stmt] operator[SEP] identifier[close] operat... |
public T runtime(AsyncHttpClient client, boolean runtimeShared) {
this.client = client;
this.runtimeShared = runtimeShared;
return derived.cast(this);
} | class class_name[name] begin[{]
method[runtime, return_type[type[T]], modifier[public], parameter[client, runtimeShared]] begin[{]
assign[THIS[member[None.client]], member[.client]]
assign[THIS[member[None.runtimeShared]], member[.runtimeShared]]
return[call[derived.cast... | Keyword[public] identifier[T] identifier[runtime] operator[SEP] identifier[AsyncHttpClient] identifier[client] , Keyword[boolean] identifier[runtimeShared] operator[SEP] {
Keyword[this] operator[SEP] identifier[client] operator[=] identifier[client] operator[SEP] Keyword[this] operator[SEP] identifier[runtimeSh... |
public void setMessageReceiver(BaseMessageReceiver messageReceiver, Integer intID)
{
if ((messageReceiver != null) || (intID != null))
if ((m_intID != null) || (m_messageReceiver != null))
Util.getLogger().warning("BaseMessageFilter/setMessageReceiver()----Error - Filter added tw... | class class_name[name] begin[{]
method[setMessageReceiver, return_type[void], modifier[public], parameter[messageReceiver, intID]] begin[{]
if[binary_operation[binary_operation[member[.messageReceiver], !=, literal[null]], ||, binary_operation[member[.intID], !=, literal[null]]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setMessageReceiver] operator[SEP] identifier[BaseMessageReceiver] identifier[messageReceiver] , identifier[Integer] identifier[intID] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[messageReceiver] operator[!=] Other[null] operator[SEP] operator[||] o... |
@Override
public URL unmarshal(String object) {
try {
return new URL(object);
} catch (MalformedURLException ex) {
throw new IllegalArgumentException(object + " is not a valid URL");
}
} | class class_name[name] begin[{]
method[unmarshal, return_type[type[URL]], modifier[public], parameter[object]] begin[{]
TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None,... | annotation[@] identifier[Override] Keyword[public] identifier[URL] identifier[unmarshal] operator[SEP] identifier[String] identifier[object] operator[SEP] {
Keyword[try] {
Keyword[return] Keyword[new] identifier[URL] operator[SEP] identifier[object] operator[SEP] operator[SEP]
}
Keyword[... |
public Observable<Page<NotificationHubResourceInner>> listNextAsync(final String nextPageLink) {
return listNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<NotificationHubResourceInner>>, Page<NotificationHubResourceInner>>() {
@Override
... | class class_name[name] begin[{]
method[listNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{]
return[call[.listNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[NotificationHubResourceInner] operator[>] operator[>] identifier[listNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] {
Keyword[return] identifier[listNextWithServiceRespons... |
public byte[] getPrivKeyBytes() {
if (privKey == null) {
return null;
} else if (privKey instanceof BCECPrivateKey) {
return bigIntegerToBytes(((BCECPrivateKey) privKey).getD(), 32);
} else {
return null;
}
} | class class_name[name] begin[{]
method[getPrivKeyBytes, return_type[type[byte]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.privKey], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
if[binary_operation[member[.privKey], i... | Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getPrivKeyBytes] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[privKey] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
Keyword[else] Keyword[if] operator[SEP] i... |
public final void add(final String... lines) {
if (lines != null) {
for (String current : lines) {
commentLines.add(current.replace(NEWLINE, ""));
}
}
} | class class_name[name] begin[{]
method[add, return_type[void], modifier[final public], parameter[lines]] begin[{]
if[binary_operation[member[.lines], !=, literal[null]]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation... | Keyword[public] Keyword[final] Keyword[void] identifier[add] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[lines] operator[SEP] {
Keyword[if] operator[SEP] identifier[lines] operator[!=] Other[null] operator[SEP] {
Keyword[for] operator[SEP] identifier[String] identifier[cur... |
public boolean isOnline(String nodeID) {
if (this.nodeID.equals(nodeID)) {
return true;
}
NodeDescriptor node = nodes.get(nodeID);
if (node == null) {
return false;
}
node.readLock.lock();
try {
return node.offlineSince == 0 && node.seq > 0;
} finally {
node.readLock.unlock();
... | class class_name[name] begin[{]
method[isOnline, return_type[type[boolean]], modifier[public], parameter[nodeID]] begin[{]
if[THIS[member[None.nodeID]call[None.equals, parameter[member[.nodeID]]]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
loca... | Keyword[public] Keyword[boolean] identifier[isOnline] operator[SEP] identifier[String] identifier[nodeID] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[nodeID] operator[SEP] identifier[equals] operator[SEP] identifier[nodeID] operator[SEP] operator[SEP] {
Keyword[ret... |
public CRLNumberExtension getCRLNumberExtension() throws IOException {
Object obj = getExtension(PKIXExtensions.CRLNumber_Id);
return (CRLNumberExtension)obj;
} | class class_name[name] begin[{]
method[getCRLNumberExtension, return_type[type[CRLNumberExtension]], modifier[public], parameter[]] begin[{]
local_variable[type[Object], obj]
return[Cast(expression=MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),... | Keyword[public] identifier[CRLNumberExtension] identifier[getCRLNumberExtension] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Object] identifier[obj] operator[=] identifier[getExtension] operator[SEP] identifier[PKIXExtensions] operator[SEP] identifier[CRLNumber_Id] operator[S... |
@Override
public Component getTableCellEditorComponent(final JTable table, final Object value,
final boolean isSelected, final int row, final int column)
{
setRow(row);
setColumn(column);
setValue(value);
if (isSelected)
{
getButton().setForeground(table.getSelectionForeground());
getButton().setBac... | class class_name[name] begin[{]
method[getTableCellEditorComponent, return_type[type[Component]], modifier[public], parameter[table, value, isSelected, row, column]] begin[{]
call[.setRow, parameter[member[.row]]]
call[.setColumn, parameter[member[.column]]]
call... | annotation[@] identifier[Override] Keyword[public] identifier[Component] identifier[getTableCellEditorComponent] operator[SEP] Keyword[final] identifier[JTable] identifier[table] , Keyword[final] identifier[Object] identifier[value] , Keyword[final] Keyword[boolean] identifier[isSelected] , Keyword[final] Keyword[in... |
public final void setUtc(final boolean utc) {
if (getDate() != null && (getDate() instanceof DateTime)) {
((DateTime) getDate()).setUtc(utc);
}
getParameters().remove(getParameter(Parameter.TZID));
} | class class_name[name] begin[{]
method[setUtc, return_type[void], modifier[final public], parameter[utc]] begin[{]
if[binary_operation[binary_operation[call[.getDate, parameter[]], !=, literal[null]], &&, binary_operation[call[.getDate, parameter[]], instanceof, type[DateTime]]]] begin[{]
... | Keyword[public] Keyword[final] Keyword[void] identifier[setUtc] operator[SEP] Keyword[final] Keyword[boolean] identifier[utc] operator[SEP] {
Keyword[if] operator[SEP] identifier[getDate] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] operator[SEP] identifier[getDate] operator[SEP] operator[SE... |
protected CompletionStage<Result> onBadRequest(RequestHeader request, String message) {
return CompletableFuture.completedFuture(
Results.badRequest(
views.html.defaultpages.badRequest.render(
request.method(), request.uri(), message, request.asScala())));
} | class class_name[name] begin[{]
method[onBadRequest, return_type[type[CompletionStage]], modifier[protected], parameter[request, message]] begin[{]
return[call[CompletableFuture.completedFuture, parameter[call[Results.badRequest, parameter[call[views.html.defaultpages.badRequest.render, parameter[call[... | Keyword[protected] identifier[CompletionStage] operator[<] identifier[Result] operator[>] identifier[onBadRequest] operator[SEP] identifier[RequestHeader] identifier[request] , identifier[String] identifier[message] operator[SEP] {
Keyword[return] identifier[CompletableFuture] operator[SEP] identifier[completed... |
public void write(Writer out,
String section,
boolean endHtml)
throws IOException
{
writeHtmlHead(out);
writeBodyTag(out);
Composite s = getSection(section);
if (s==null)
{
if (section.equals(Content))
... | class class_name[name] begin[{]
method[write, return_type[void], modifier[public], parameter[out, section, endHtml]] begin[{]
call[.writeHtmlHead, parameter[member[.out]]]
call[.writeBodyTag, parameter[member[.out]]]
local_variable[type[Composite], s]
if[... | Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[Writer] identifier[out] , identifier[String] identifier[section] , Keyword[boolean] identifier[endHtml] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[writeHtmlHead] operator[SEP] identifier[out] operator[SEP] operator... |
public ChartConfiguration<T> setLabelX(String label) {
if (label != null) {
axesInstance().xAxisInstance().setLabel(label);
}
return this;
} | class class_name[name] begin[{]
method[setLabelX, return_type[type[ChartConfiguration]], modifier[public], parameter[label]] begin[{]
if[binary_operation[member[.label], !=, literal[null]]] begin[{]
call[.axesInstance, parameter[]]
else begin[{]
None
end[... | Keyword[public] identifier[ChartConfiguration] operator[<] identifier[T] operator[>] identifier[setLabelX] operator[SEP] identifier[String] identifier[label] operator[SEP] {
Keyword[if] operator[SEP] identifier[label] operator[!=] Other[null] operator[SEP] {
identifier[axesInstance] operator[SEP] oper... |
public static void validateBlobName(String blobName) {
if (Utility.isNullOrEmptyOrWhitespace(blobName)) {
throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.RESOURCE_NAME_EMPTY, SR.BLOB));
}
if (blobName.length() < NameValidator.BLOB_FILE_DIRECTORY_MIN_LENGTH || blobName.length() > NameVal... | class class_name[name] begin[{]
method[validateBlobName, return_type[void], modifier[public static], parameter[blobName]] begin[{]
if[call[Utility.isNullOrEmptyOrWhitespace, parameter[member[.blobName]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(ar... | Keyword[public] Keyword[static] Keyword[void] identifier[validateBlobName] operator[SEP] identifier[String] identifier[blobName] operator[SEP] {
Keyword[if] operator[SEP] identifier[Utility] operator[SEP] identifier[isNullOrEmptyOrWhitespace] operator[SEP] identifier[blobName] operator[SEP] operator[SEP] {
... |
public List<String> getMembers() {
List<String> allList = new ArrayList<String>();
allList.addAll(members);
return Collections.unmodifiableList(allList);
} | class class_name[name] begin[{]
method[getMembers, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], allList]
call[allList.addAll, parameter[member[.members]]]
return[call[Collections.unmodifiableList, parameter[member[.allList]]]]
e... | Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getMembers] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[allList] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] ... |
public static PartitionKeyInternal extractPartitionKeyValue(String documentAsString,
PartitionKeyDefinition partitionKeyDefinition) {
if (partitionKeyDefinition == null || partitionKeyDefinition.getPaths().size() == 0) {
return PartitionKeyInternal.getEmpty();
}
return... | class class_name[name] begin[{]
method[extractPartitionKeyValue, return_type[type[PartitionKeyInternal]], modifier[public static], parameter[documentAsString, partitionKeyDefinition]] begin[{]
if[binary_operation[binary_operation[member[.partitionKeyDefinition], ==, literal[null]], ||, binary_o... | Keyword[public] Keyword[static] identifier[PartitionKeyInternal] identifier[extractPartitionKeyValue] operator[SEP] identifier[String] identifier[documentAsString] , identifier[PartitionKeyDefinition] identifier[partitionKeyDefinition] operator[SEP] {
Keyword[if] operator[SEP] identifier[partitionKeyDefinition]... |
@Override
public ZMatrixRMaj getT(ZMatrixRMaj T ) {
T = UtilDecompositons_ZDRM.checkZeros(T,N,N);
T.data[0] = QT.data[0];
T.data[1] = QT.data[1];
for( int i = 1; i < N; i++ ) {
T.set(i,i, QT.getReal(i,i), QT.getImag(i,i));
double real = QT.getReal(i-1,i);
... | class class_name[name] begin[{]
method[getT, return_type[type[ZMatrixRMaj]], modifier[public], parameter[T]] begin[{]
assign[member[.T], call[UtilDecompositons_ZDRM.checkZeros, parameter[member[.T], member[.N], member[.N]]]]
assign[member[T.data], member[QT.data]]
... | annotation[@] identifier[Override] Keyword[public] identifier[ZMatrixRMaj] identifier[getT] operator[SEP] identifier[ZMatrixRMaj] identifier[T] operator[SEP] {
identifier[T] operator[=] identifier[UtilDecompositons_ZDRM] operator[SEP] identifier[checkZeros] operator[SEP] identifier[T] , identifier[N] , identif... |
public static synchronized boolean isNativeLzoLoaded(Configuration conf) {
if (!nativeLzoChecked) {
if (GPLNativeCodeLoader.isNativeCodeLoaded()) {
nativeLzoLoaded = LzoCompressor.isNativeLzoLoaded()
&& LzoDecompressor.isNativeLzoLoaded();
if (nativeLzoLoaded) {
LOG.info... | class class_name[name] begin[{]
method[isNativeLzoLoaded, return_type[type[boolean]], modifier[synchronized public static], parameter[conf]] begin[{]
if[member[.nativeLzoChecked]] begin[{]
if[call[GPLNativeCodeLoader.isNativeCodeLoaded, parameter[]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[synchronized] Keyword[boolean] identifier[isNativeLzoLoaded] operator[SEP] identifier[Configuration] identifier[conf] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[nativeLzoChecked] operator[SEP] {
Keyword[if] operator[SEP] identifier[GPLNativ... |
public static void skipIndex(DataInput in) throws IOException
{
/* read only the column index list */
int columnIndexSize = in.readInt();
/* skip the column index data */
if (in instanceof FileDataInput)
{
FileUtils.skipBytesFully(in, columnIndexSize);
}
... | class class_name[name] begin[{]
method[skipIndex, return_type[void], modifier[public static], parameter[in]] begin[{]
local_variable[type[int], columnIndexSize]
if[binary_operation[member[.in], instanceof, type[FileDataInput]]] begin[{]
call[FileUtils.skipBytesFu... | Keyword[public] Keyword[static] Keyword[void] identifier[skipIndex] operator[SEP] identifier[DataInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[int] identifier[columnIndexSize] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator... |
public void onPipeConnectionEvent(PipeConnectionEvent event) {
switch (event.getType()) {
case PROVIDER_CONNECT_PUSH:
if (event.getProvider() != this) {
if (waitLiveJob != null) {
schedulingService.removeScheduledJob(waitLiveJob);
... | class class_name[name] begin[{]
method[onPipeConnectionEvent, return_type[void], modifier[public], parameter[event]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['PROVIDER_CONNECT_PUSH'], statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getPr... | Keyword[public] Keyword[void] identifier[onPipeConnectionEvent] operator[SEP] identifier[PipeConnectionEvent] identifier[event] operator[SEP] {
Keyword[switch] operator[SEP] identifier[event] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] {
Keyword[case] identifier[PROVIDE... |
private static boolean isCallTo(Node n, Node targetMethod) {
if (!n.isCall()) {
return false;
}
Node method = n.getFirstChild();
return method.isGetProp() && method.matchesQualifiedName(targetMethod);
} | class class_name[name] begin[{]
method[isCallTo, return_type[type[boolean]], modifier[private static], parameter[n, targetMethod]] begin[{]
if[call[n.isCall, parameter[]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
local_variable[type[Node], me... | Keyword[private] Keyword[static] Keyword[boolean] identifier[isCallTo] operator[SEP] identifier[Node] identifier[n] , identifier[Node] identifier[targetMethod] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[n] operator[SEP] identifier[isCall] operator[SEP] operator[SEP] operator[SEP] {
... |
@Override
public <N> Mutator<K> addDeletion(K key, String cf) {
addDeletion(key, cf, null, null, keyspace.createClock());
return this;
} | class class_name[name] begin[{]
method[addDeletion, return_type[type[Mutator]], modifier[public], parameter[key, cf]] begin[{]
call[.addDeletion, parameter[member[.key], member[.cf], literal[null], literal[null], call[keyspace.createClock, parameter[]]]]
return[THIS[]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[N] operator[>] identifier[Mutator] operator[<] identifier[K] operator[>] identifier[addDeletion] operator[SEP] identifier[K] identifier[key] , identifier[String] identifier[cf] operator[SEP] {
identifier[addDeletion] operator[SEP] identif... |
private static final boolean isgraphPOSIX(int c) {
/* \p{space}\p{gc=Control} == \p{gc=Z}\p{Control} */
/* comparing ==0 returns FALSE for the categories mentioned */
return (getMask(UCharacter.getType(c))&
(GC_CC_MASK|GC_CS_MASK|GC_CN_MASK|GC_Z_MASK))
==0;
} | class class_name[name] begin[{]
method[isgraphPOSIX, return_type[type[boolean]], modifier[final private static], parameter[c]] begin[{]
return[binary_operation[binary_operation[call[.getMask, parameter[call[UCharacter.getType, parameter[member[.c]]]]], &, binary_operation[binary_operation[binary_operat... | Keyword[private] Keyword[static] Keyword[final] Keyword[boolean] identifier[isgraphPOSIX] operator[SEP] Keyword[int] identifier[c] operator[SEP] {
Keyword[return] operator[SEP] identifier[getMask] operator[SEP] identifier[UCharacter] operator[SEP] identifier[getType] operator[SEP] identifier[c] operator[SEP] ope... |
public Object byteBufJsonValueToObject(ByteBuf input) throws Exception {
return TranscoderUtils.byteBufToGenericObject(input, JacksonTransformers.MAPPER);
} | class class_name[name] begin[{]
method[byteBufJsonValueToObject, return_type[type[Object]], modifier[public], parameter[input]] begin[{]
return[call[TranscoderUtils.byteBufToGenericObject, parameter[member[.input], member[JacksonTransformers.MAPPER]]]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[byteBufJsonValueToObject] operator[SEP] identifier[ByteBuf] identifier[input] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[return] identifier[TranscoderUtils] operator[SEP] identifier[byteBufToGenericObject] operator[SEP] identifier[input] , identif... |
protected String read(InputStream inputStream) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, encoding));
StringBuffer stringBuffer = new StringBuffer();
String line = reader.readLine();
while (line != null) {
stringBuffer.a... | class class_name[name] begin[{]
method[read, return_type[type[String]], modifier[protected], parameter[inputStream]] begin[{]
local_variable[type[BufferedReader], reader]
local_variable[type[StringBuffer], stringBuffer]
local_variable[type[String], line]
while[binary_ope... | Keyword[protected] identifier[String] identifier[read] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[BufferedReader] identifier[reader] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] Keyword[new] identifier[Inpu... |
public static NiftyProcessorFactory factoryFromTProcessorFactory(final TProcessorFactory standardThriftProcessorFactory)
{
checkProcessMethodSignature();
return new NiftyProcessorFactory()
{
@Override
public NiftyProcessor getProcessor(TTransport transport)
... | class class_name[name] begin[{]
method[factoryFromTProcessorFactory, return_type[type[NiftyProcessorFactory]], modifier[public static], parameter[standardThriftProcessorFactory]] begin[{]
call[.checkProcessMethodSignature, parameter[]]
return[ClassCreator(arguments=[], body=[MethodDecla... | Keyword[public] Keyword[static] identifier[NiftyProcessorFactory] identifier[factoryFromTProcessorFactory] operator[SEP] Keyword[final] identifier[TProcessorFactory] identifier[standardThriftProcessorFactory] operator[SEP] {
identifier[checkProcessMethodSignature] operator[SEP] operator[SEP] operator[SEP] Keywor... |
@Override public void intervalUpdated(Interval caller) {
output.out("===============================================================================");
output.out("=== SNAPSHOT Interval "+interval.getName()+" updated, Entity: "+id);
output.out("=== Timestamp: "+Date.currentDate()+", ServiceId: "+target.getProduce... | class class_name[name] begin[{]
method[intervalUpdated, return_type[void], modifier[public], parameter[caller]] begin[{]
call[output.out, parameter[literal["==============================================================================="]]]
call[output.out, parameter[binary_oper... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[intervalUpdated] operator[SEP] identifier[Interval] identifier[caller] operator[SEP] {
identifier[output] operator[SEP] identifier[out] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[output] operator[SEP] identifier... |
public int writeAndRefresh()
{
try {
if (m_recordToUpdate != null)
if (m_recordToUpdate.isModified(true))
{
if (m_bRefreshAfterUpdate)
m_recordToUpdate.writeAndRefresh();
else
{
... | class class_name[name] begin[{]
method[writeAndRefresh, return_type[type[int]], modifier[public], parameter[]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=m_recordToUpdate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), opera... | Keyword[public] Keyword[int] identifier[writeAndRefresh] operator[SEP] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[m_recordToUpdate] operator[!=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[m_recordToUpdate] operator[SEP] identifier[isModified] operator[SEP] ... |
protected Writer getOutputStreamWriter(HttpURLConnection conn) throws IOException {
return new BufferedWriter(new OutputStreamWriter(conn.getOutputStream(), UTF_8));
} | class class_name[name] begin[{]
method[getOutputStreamWriter, return_type[type[Writer]], modifier[protected], parameter[conn]] begin[{]
return[ClassCreator(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getOutputStream, postfix_operators=[], prefix_operators=[], qualifier=conn... | Keyword[protected] identifier[Writer] identifier[getOutputStreamWriter] operator[SEP] identifier[HttpURLConnection] identifier[conn] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new] identifier[BufferedWriter] operator[SEP] Keyword[new] identifier[OutputStreamWriter] operator[S... |
private long compare(Object that) {
long thatMs;
if (that instanceof Calendar) {
thatMs = ((Calendar)that).getTimeInMillis();
} else if (that instanceof Date) {
thatMs = ((Date)that).getTime();
} else {
throw new IllegalArgumentException(that + "is not... | class class_name[name] begin[{]
method[compare, return_type[type[long]], modifier[private], parameter[that]] begin[{]
local_variable[type[long], thatMs]
if[binary_operation[member[.that], instanceof, type[Calendar]]] begin[{]
assign[member[.thatMs], Cast(expressi... | Keyword[private] Keyword[long] identifier[compare] operator[SEP] identifier[Object] identifier[that] operator[SEP] {
Keyword[long] identifier[thatMs] operator[SEP] Keyword[if] operator[SEP] identifier[that] Keyword[instanceof] identifier[Calendar] operator[SEP] {
identifier[thatMs] operator[=] operato... |
public <T> void write(final OutputStream stream, final T object,
final DataTypeDescriptor<T> descriptor, final boolean indent) {
try {
jsonFormat.write(stream, object, descriptor, indent);
} catch (Exception e) {
throw propagate(e);
}
} | class class_name[name] begin[{]
method[write, return_type[void], modifier[public], parameter[stream, object, descriptor, indent]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=stream, postfix_operators=[], prefix_operators=[], qualifier=,... | Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[OutputStream] identifier[stream] , Keyword[final] identifier[T] identifier[object] , Keyword[final] identifier[DataTypeDescriptor] operator[<] identifier[T] operator[>] identifier[descriptor] ... |
private void setWedge(IBond bond, IAtom end, IBond.Stereo style) {
if (!bond.getEnd().equals(end))
bond.setAtoms(new IAtom[]{bond.getEnd(), bond.getBegin()});
bond.setStereo(style);
} | class class_name[name] begin[{]
method[setWedge, return_type[void], modifier[private], parameter[bond, end, style]] begin[{]
if[call[bond.getEnd, parameter[]]] begin[{]
call[bond.setAtoms, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MethodInv... | Keyword[private] Keyword[void] identifier[setWedge] operator[SEP] identifier[IBond] identifier[bond] , identifier[IAtom] identifier[end] , identifier[IBond] operator[SEP] identifier[Stereo] identifier[style] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[bond] operator[SEP] identifier[getEnd]... |
public static <T> Predicate<T> contains(final Iterable<T> iterable) {
return new Predicate<T>() {
@Override
public boolean test(final T testValue) {
return Iterables.contains(iterable, testValue);
}
};
} | class class_name[name] begin[{]
method[contains, return_type[type[Predicate]], modifier[public static], parameter[iterable]] begin[{]
return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(argume... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[contains] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] operator[SEP] {
Keyword[return] Keyword[new] identifi... |
public static base_response unlink(nitro_service client, sslcertkey resource) throws Exception {
sslcertkey unlinkresource = new sslcertkey();
unlinkresource.certkey = resource.certkey;
return unlinkresource.perform_operation(client,"unlink");
} | class class_name[name] begin[{]
method[unlink, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{]
local_variable[type[sslcertkey], unlinkresource]
assign[member[unlinkresource.certkey], member[resource.certkey]]
return[call[unlinkres... | Keyword[public] Keyword[static] identifier[base_response] identifier[unlink] operator[SEP] identifier[nitro_service] identifier[client] , identifier[sslcertkey] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[sslcertkey] identifier[unlinkresource] operator[=] Keyword[new] i... |
@Override
public EClass getIfcSweptDiskSolid() {
if (ifcSweptDiskSolidEClass == null) {
ifcSweptDiskSolidEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(686);
}
return ifcSweptDiskSolidEClass;
} | class class_name[name] begin[{]
method[getIfcSweptDiskSolid, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcSweptDiskSolidEClass], ==, literal[null]]] begin[{]
assign[member[.ifcSweptDiskSolidEClass], Cast(expression=Met... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcSweptDiskSolid] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcSweptDiskSolidEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcSweptDiskSolidEClass] operator[=] operator[SEP] iden... |
public String getTableNames(boolean bAddQuotes)
{
return (m_tableName == null) ? Record.formatTableNames(ANNIVERSARY_FILE, bAddQuotes) : super.getTableNames(bAddQuotes);
} | class class_name[name] begin[{]
method[getTableNames, return_type[type[String]], modifier[public], parameter[bAddQuotes]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m_tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan... | Keyword[public] identifier[String] identifier[getTableNames] operator[SEP] Keyword[boolean] identifier[bAddQuotes] operator[SEP] {
Keyword[return] operator[SEP] identifier[m_tableName] operator[==] Other[null] operator[SEP] operator[?] identifier[Record] operator[SEP] identifier[formatTableNames] operator[SEP] i... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.COLOR_FIDELITY__STP_CO_EX:
return getStpCoEx();
case AfplibPackage.COLOR_FIDELITY__REP_CO_EX:
return getRepCoEx();
case AfplibPackage.COLOR_FIDELITY__COL_SUB:
return getColSub... | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=COLOR_FIDELITY__STP_CO_EX, postfix_operators=[], prefix_operators=[], qualifier=AfplibPacka... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.