code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
@Override
public DescribeCodeRepositoryResult describeCodeRepository(DescribeCodeRepositoryRequest request) {
request = beforeClientExecution(request);
return executeDescribeCodeRepository(request);
} | class class_name[name] begin[{]
method[describeCodeRepository, return_type[type[DescribeCodeRepositoryResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDescribeCodeRepository, ... | annotation[@] identifier[Override] Keyword[public] identifier[DescribeCodeRepositoryResult] identifier[describeCodeRepository] operator[SEP] identifier[DescribeCodeRepositoryRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[req... |
@Override
public JAnnotation []getDeclaredAnnotations()
{
Annotation []ann = _class.getAnnotations();
JAnnotation []jAnn = new JAnnotation[ann.length];
for (int i = 0; i < ann.length; i++) {
jAnn[i] = new JAnnotationWrapper(ann[i]);
}
return jAnn;
} | class class_name[name] begin[{]
method[getDeclaredAnnotations, return_type[type[JAnnotation]], modifier[public], parameter[]] begin[{]
local_variable[type[Annotation], ann]
local_variable[type[JAnnotation], jAnn]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpressi... | annotation[@] identifier[Override] Keyword[public] identifier[JAnnotation] operator[SEP] operator[SEP] identifier[getDeclaredAnnotations] operator[SEP] operator[SEP] {
identifier[Annotation] operator[SEP] operator[SEP] identifier[ann] operator[=] identifier[_class] operator[SEP] identifier[getAnnotations] operat... |
public List<User> getUsers(UserSearchParams searchParams) throws ProvisioningApiException {
return getUsers(
searchParams.getLimit(),
searchParams.getOffset(),
searchParams.getOrder(),
searchParams.getSortBy(),
searchParams.getFilterName(),
searchParams.getFilterParameters(),
searchParams... | class class_name[name] begin[{]
method[getUsers, return_type[type[List]], modifier[public], parameter[searchParams]] begin[{]
return[call[.getUsers, parameter[call[searchParams.getLimit, parameter[]], call[searchParams.getOffset, parameter[]], call[searchParams.getOrder, parameter[]], call[searchParams... | Keyword[public] identifier[List] operator[<] identifier[User] operator[>] identifier[getUsers] operator[SEP] identifier[UserSearchParams] identifier[searchParams] operator[SEP] Keyword[throws] identifier[ProvisioningApiException] {
Keyword[return] identifier[getUsers] operator[SEP] identifier[searchParams] opera... |
@Override
protected void doInitInputLocation(WstxInputData reader)
{
reader.mCurrInputProcessed = mContentStart.getCharacterOffset();
reader.mCurrInputRow = mContentStart.getLineNumber();
/* 13-Apr-2005, TSa: Since column offsets reported by Location
* objects are 1-based, but... | class class_name[name] begin[{]
method[doInitInputLocation, return_type[void], modifier[protected], parameter[reader]] begin[{]
assign[member[reader.mCurrInputProcessed], call[mContentStart.getCharacterOffset, parameter[]]]
assign[member[reader.mCurrInputRow], call[mContentStart... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doInitInputLocation] operator[SEP] identifier[WstxInputData] identifier[reader] operator[SEP] {
identifier[reader] operator[SEP] identifier[mCurrInputProcessed] operator[=] identifier[mContentStart] operator[SEP] identifier[getCharact... |
private void preparePositions(ResponseBuilder rb, ComponentFields mtasFields)
throws IOException {
Set<String> ids = MtasSolrResultUtil
.getIdsFromParameters(rb.req.getParams(), PARAM_MTAS_STATS_POSITIONS);
if (!ids.isEmpty()) {
int tmpCounter = 0;
String[] fields = new String[ids.size... | class class_name[name] begin[{]
method[preparePositions, return_type[void], modifier[private], parameter[rb, mtasFields]] begin[{]
local_variable[type[Set], ids]
if[call[ids.isEmpty, parameter[]]] begin[{]
local_variable[type[int], tmpCounter]
local_variable[type... | Keyword[private] Keyword[void] identifier[preparePositions] operator[SEP] identifier[ResponseBuilder] identifier[rb] , identifier[ComponentFields] identifier[mtasFields] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Set] operator[<] identifier[String] operator[>] identifier[ids] operator[=]... |
public List<CmsGroup> getGroups(
CmsRequestContext context,
CmsOrganizationalUnit orgUnit,
boolean includeSubOus,
boolean readRoles)
throws CmsException {
List<CmsGroup> result = null;
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
try {
... | class class_name[name] begin[{]
method[getGroups, return_type[type[List]], modifier[public], parameter[context, orgUnit, includeSubOus, readRoles]] begin[{]
local_variable[type[List], result]
local_variable[type[CmsDbContext], dbc]
TryStatement(block=[StatementExpression(expression=Assi... | Keyword[public] identifier[List] operator[<] identifier[CmsGroup] operator[>] identifier[getGroups] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[CmsOrganizationalUnit] identifier[orgUnit] , Keyword[boolean] identifier[includeSubOus] , Keyword[boolean] identifier[readRoles] operator[SE... |
public ServiceFuture<Void> cancelAsync(String resourceGroupName, String deploymentName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(resourceGroupName, deploymentName), serviceCallback);
} | class class_name[name] begin[{]
method[cancelAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, deploymentName, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.cancelWithServiceResponseAsync, parameter[member[.resourceGroupName], m... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[cancelAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[deploymentName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Void] operator[>] identifier[ser... |
public InputStream fetch(HttpURLConnection connection, boolean readErrorStreamNoException) throws IOException {
// create connection but before reading get the correct inputstream based on the compression and if error
connection.connect();
InputStream is;
if (readErrorStreamNoException ... | class class_name[name] begin[{]
method[fetch, return_type[type[InputStream]], modifier[public], parameter[connection, readErrorStreamNoException]] begin[{]
call[connection.connect, parameter[]]
local_variable[type[InputStream], is]
if[binary_operation[binary_operation[me... | Keyword[public] identifier[InputStream] identifier[fetch] operator[SEP] identifier[HttpURLConnection] identifier[connection] , Keyword[boolean] identifier[readErrorStreamNoException] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[connection] operator[SEP] identifier[connect] operator[SEP] op... |
@Route(method= HttpMethod.GET, uri = "internationalization/request")
public Result retrieveInternationalizedMessagesFromRequest() {
return ok(
i18n.get(request().languages(), "welcome")
).as(MimeTypes.TEXT);
} | class class_name[name] begin[{]
method[retrieveInternationalizedMessagesFromRequest, return_type[type[Result]], modifier[public], parameter[]] begin[{]
return[call[.ok, parameter[call[i18n.get, parameter[call[.request, parameter[]], literal["welcome"]]]]]]
end[}]
END[}] | annotation[@] identifier[Route] operator[SEP] identifier[method] operator[=] identifier[HttpMethod] operator[SEP] identifier[GET] , identifier[uri] operator[=] literal[String] operator[SEP] Keyword[public] identifier[Result] identifier[retrieveInternationalizedMessagesFromRequest] operator[SEP] operator[SEP] {
... |
@Override
public Mono<Void> join(final InetAddress multicastAddress, NetworkInterface iface) {
if (null == iface && null != datagramChannel.config().getNetworkInterface()) {
iface = datagramChannel.config().getNetworkInterface();
}
final ChannelFuture future;
if (null != iface) {
future = datagramChanne... | class class_name[name] begin[{]
method[join, return_type[type[Mono]], modifier[public], parameter[multicastAddress, iface]] begin[{]
if[binary_operation[binary_operation[literal[null], ==, member[.iface]], &&, binary_operation[literal[null], !=, call[datagramChannel.config, parameter[]]]]] begi... | annotation[@] identifier[Override] Keyword[public] identifier[Mono] operator[<] identifier[Void] operator[>] identifier[join] operator[SEP] Keyword[final] identifier[InetAddress] identifier[multicastAddress] , identifier[NetworkInterface] identifier[iface] operator[SEP] {
Keyword[if] operator[SEP] Other[null] o... |
@Override
public void removeByUuid(String uuid) {
for (CPOptionCategory cpOptionCategory : findByUuid(uuid,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpOptionCategory);
}
} | class class_name[name] begin[{]
method[removeByUuid, return_type[void], modifier[public], parameter[uuid]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cpOptionCategory, postfix_operators=[], prefix_o... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeByUuid] operator[SEP] identifier[String] identifier[uuid] operator[SEP] {
Keyword[for] operator[SEP] identifier[CPOptionCategory] identifier[cpOptionCategory] operator[:] identifier[findByUuid] operator[SEP] identifier[uuid] , id... |
public byte[] getPrivKeyBytes33() {
byte[] bytes33 = new byte[33];
byte[] priv = getPrivKeyBytes();
System.arraycopy(priv, 0, bytes33, 33 - priv.length, priv.length);
return bytes33;
} | class class_name[name] begin[{]
method[getPrivKeyBytes33, return_type[type[byte]], modifier[public], parameter[]] begin[{]
local_variable[type[byte], bytes33]
local_variable[type[byte], priv]
call[System.arraycopy, parameter[member[.priv], literal[0], member[.bytes33], binary_op... | Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getPrivKeyBytes33] operator[SEP] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[bytes33] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[33] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] ... |
public SearchResponse getSearch(List<String> categories, String search, String acceptLanguage, String datasource,
String ifNoneMatch, String language, Boolean strict) throws ApiException {
ApiResponse<SearchResponse> resp = getSearchWithHttpInfo(categories, search, acceptLanguage, datasource,
... | class class_name[name] begin[{]
method[getSearch, return_type[type[SearchResponse]], modifier[public], parameter[categories, search, acceptLanguage, datasource, ifNoneMatch, language, strict]] begin[{]
local_variable[type[ApiResponse], resp]
return[call[resp.getData, parameter[]]]
end[}]
EN... | Keyword[public] identifier[SearchResponse] identifier[getSearch] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[categories] , identifier[String] identifier[search] , identifier[String] identifier[acceptLanguage] , identifier[String] identifier[datasource] , identifier[String] i... |
@Deprecated
public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
return ECDSA512(publicKey, privateKey);
... | class class_name[name] begin[{]
method[ECDSA512, return_type[type[Algorithm]], modifier[public static], parameter[key]] begin[{]
local_variable[type[ECPublicKey], publicKey]
local_variable[type[ECPrivateKey], privateKey]
return[call[.ECDSA512, parameter[member[.publicKey], member[.priva... | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[Algorithm] identifier[ECDSA512] operator[SEP] identifier[ECKey] identifier[key] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
identifier[ECPublicKey] identifier[publicKey] operator[=] identifier[key] Keyword[in... |
@Override
public QueryBuilder<V> withBindVariableValue(String key, V value) {
valueMap.put(key, value);
return this;
} | class class_name[name] begin[{]
method[withBindVariableValue, return_type[type[QueryBuilder]], modifier[public], parameter[key, value]] begin[{]
call[valueMap.put, parameter[member[.key], member[.value]]]
return[THIS[]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[QueryBuilder] operator[<] identifier[V] operator[>] identifier[withBindVariableValue] operator[SEP] identifier[String] identifier[key] , identifier[V] identifier[value] operator[SEP] {
identifier[valueMap] operator[SEP] identifier[put] operator[SEP] ... |
public void setCharset(String charsetName) {
if (StringUtils.isEmpty(charsetName)) {
setCharsetImpl(null);
return;
}
Charset newCharset = null;
try {
newCharset = Charset.forName(charsetName);
if (newCharset != charset) {
... | class class_name[name] begin[{]
method[setCharset, return_type[void], modifier[public], parameter[charsetName]] begin[{]
if[call[StringUtils.isEmpty, parameter[member[.charsetName]]]] begin[{]
call[.setCharsetImpl, parameter[literal[null]]]
return[None]
... | Keyword[public] Keyword[void] identifier[setCharset] operator[SEP] identifier[String] identifier[charsetName] operator[SEP] {
Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[charsetName] operator[SEP] operator[SEP] {
identifier[setCharsetImp... |
@Override
public VerifyDomainDkimResult verifyDomainDkim(VerifyDomainDkimRequest request) {
request = beforeClientExecution(request);
return executeVerifyDomainDkim(request);
} | class class_name[name] begin[{]
method[verifyDomainDkim, return_type[type[VerifyDomainDkimResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeVerifyDomainDkim, parameter[member[.... | annotation[@] identifier[Override] Keyword[public] identifier[VerifyDomainDkimResult] identifier[verifyDomainDkim] operator[SEP] identifier[VerifyDomainDkimRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP... |
public static String getCharset(final String contentType) {
// Default to UTF-8
String charset = "UTF-8";
try {
// Content type is in the form:
// Content-Type: text/html; charset=utf-8
// Where they can be lots of params separated by ; characters
... | class class_name[name] begin[{]
method[getCharset, return_type[type[String]], modifier[public static], parameter[contentType]] begin[{]
local_variable[type[String], charset]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=conten... | Keyword[public] Keyword[static] identifier[String] identifier[getCharset] operator[SEP] Keyword[final] identifier[String] identifier[contentType] operator[SEP] {
identifier[String] identifier[charset] operator[=] literal[String] operator[SEP] Keyword[try] {
Keyword[if] operator[SEP] identifier[content... |
public static ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle, int col) {
HashSet<ClassLabel> labels = new HashSet<ClassLabel>();
for(int i = 0, l = bundle.dataLength(); i < l; ++i) {
Object o = bundle.data(i, col);
if(o == null || !(o instanceof ClassLabel)) {
continue;
... | class class_name[name] begin[{]
method[allClassLabels, return_type[type[ArrayList]], modifier[public static], parameter[bundle, col]] begin[{]
local_variable[type[HashSet], labels]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Var... | Keyword[public] Keyword[static] identifier[ArrayList] operator[<] identifier[ClassLabel] operator[>] identifier[allClassLabels] operator[SEP] identifier[MultipleObjectsBundle] identifier[bundle] , Keyword[int] identifier[col] operator[SEP] {
identifier[HashSet] operator[<] identifier[ClassLabel] operator[>] ide... |
public static double checkPostconditionD(
final double value,
final boolean condition,
final DoubleFunction<String> describer)
{
return innerCheckD(value, condition, describer);
} | class class_name[name] begin[{]
method[checkPostconditionD, return_type[type[double]], modifier[public static], parameter[value, condition, describer]] begin[{]
return[call[.innerCheckD, parameter[member[.value], member[.condition], member[.describer]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[double] identifier[checkPostconditionD] operator[SEP] Keyword[final] Keyword[double] identifier[value] , Keyword[final] Keyword[boolean] identifier[condition] , Keyword[final] identifier[DoubleFunction] operator[<] identifier[String] operator[>] identifier[describer] operator[S... |
public GetMediaInfoOfFileResponse getMediaInfoOfFile(GetMediaInfoOfFileRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getBucket(), "The parameter bucket should NOT be null or empty string.");
checkStringNotEmpty(request.getKey()... | class class_name[name] begin[{]
method[getMediaInfoOfFile, return_type[type[GetMediaInfoOfFileResponse]], modifier[public], parameter[request]] begin[{]
call[.checkNotNull, parameter[member[.request], literal["The parameter request should NOT be null."]]]
call[.checkStringNotEmp... | Keyword[public] identifier[GetMediaInfoOfFileResponse] identifier[getMediaInfoOfFile] operator[SEP] identifier[GetMediaInfoOfFileRequest] identifier[request] operator[SEP] {
identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[checkStringNotEmpty] o... |
public DrawerBuilder withStickyHeader(@LayoutRes int stickyHeaderRes) {
if (mActivity == null) {
throw new RuntimeException("please pass an activity first to use this call");
}
if (stickyHeaderRes != -1) {
//i know there should be a root, bit i got none here
... | class class_name[name] begin[{]
method[withStickyHeader, return_type[type[DrawerBuilder]], modifier[public], parameter[stickyHeaderRes]] begin[{]
if[binary_operation[member[.mActivity], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op... | Keyword[public] identifier[DrawerBuilder] identifier[withStickyHeader] operator[SEP] annotation[@] identifier[LayoutRes] Keyword[int] identifier[stickyHeaderRes] operator[SEP] {
Keyword[if] operator[SEP] identifier[mActivity] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identif... |
private synchronized void internalActivateTopology(Topology topology, File topoDir) throws IOException, ZipException, ParserConfigurationException, TransformerException, SAXException {
log.activatingTopology(topology.getName());
File[] files = topoDir.listFiles(new RegexDirFilter("%.*"));
if (fi... | class class_name[name] begin[{]
method[internalActivateTopology, return_type[void], modifier[synchronized private], parameter[topology, topoDir]] begin[{]
call[log.activatingTopology, parameter[call[topology.getName, parameter[]]]]
local_variable[type[File], files]
if[bi... | Keyword[private] Keyword[synchronized] Keyword[void] identifier[internalActivateTopology] operator[SEP] identifier[Topology] identifier[topology] , identifier[File] identifier[topoDir] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ZipException] , identifier[ParserConfigurationException] , ident... |
public DescribeCachediSCSIVolumesRequest withVolumeARNs(String... volumeARNs) {
if (this.volumeARNs == null) {
setVolumeARNs(new com.amazonaws.internal.SdkInternalList<String>(volumeARNs.length));
}
for (String ele : volumeARNs) {
this.volumeARNs.add(ele);
}
... | class class_name[name] begin[{]
method[withVolumeARNs, return_type[type[DescribeCachediSCSIVolumesRequest]], modifier[public], parameter[volumeARNs]] begin[{]
if[binary_operation[THIS[member[None.volumeARNs]], ==, literal[null]]] begin[{]
call[.setVolumeARNs, parameter[C... | Keyword[public] identifier[DescribeCachediSCSIVolumesRequest] identifier[withVolumeARNs] operator[SEP] identifier[String] operator[...] identifier[volumeARNs] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[volumeARNs] operator[==] Other[null] operator[SEP] {
identifie... |
@Override
public CreateFleetResult createFleet(CreateFleetRequest request) {
request = beforeClientExecution(request);
return executeCreateFleet(request);
} | class class_name[name] begin[{]
method[createFleet, return_type[type[CreateFleetResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeCreateFleet, parameter[member[.request]]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[CreateFleetResult] identifier[createFleet] operator[SEP] identifier[CreateFleetRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP]... |
public ListTriggersRequest withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
} | class class_name[name] begin[{]
method[withTags, return_type[type[ListTriggersRequest]], modifier[public], parameter[tags]] begin[{]
call[.setTags, parameter[member[.tags]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[ListTriggersRequest] identifier[withTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tags] operator[SEP] {
identifier[setTags] operator[SEP] identifier[tags] ope... |
@Override
public boolean isActive(Object context, Profile profile) {
if(context == null || profile == null) {
StringBuilder builder = new StringBuilder()
.append("Failed to determine profile active profiles. ");
if(context == null)
builder.append("Context cannot be null. ");
if(profil... | class class_name[name] begin[{]
method[isActive, return_type[type[boolean]], modifier[public], parameter[context, profile]] begin[{]
if[binary_operation[binary_operation[member[.context], ==, literal[null]], ||, binary_operation[member[.profile], ==, literal[null]]]] begin[{]
local_... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isActive] operator[SEP] identifier[Object] identifier[context] , identifier[Profile] identifier[profile] operator[SEP] {
Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[||] identifier[profile] operator... |
@ResponseBody
@RequestMapping(value = "/{name}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public AggregateCounterResource display(
@PathVariable("name") String name,
@RequestParam(value = "from", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) DateTime from,... | class class_name[name] begin[{]
method[display, return_type[type[AggregateCounterResource]], modifier[public], parameter[name, from, to, resolution]] begin[{]
assign[member[.to], call[.providedOrDefaultToValue, parameter[member[.to]]]]
assign[member[.from], call[.providedOrDefau... | annotation[@] identifier[ResponseBody] annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[GET] , identifier[produces] operator[=] identifier[MediaType] operator[SEP] identifier[APPLICA... |
public int getImportNumber(StylesheetComposed sheet)
{
if (this == sheet)
return 0;
int n = getGlobalImportCount();
for (int i = 0; i < n; i++)
{
if (sheet == getGlobalImport(i))
return i;
}
return -1;
} | class class_name[name] begin[{]
method[getImportNumber, return_type[type[int]], modifier[public], parameter[sheet]] begin[{]
if[binary_operation[THIS[], ==, member[.sheet]]] begin[{]
return[literal[0]]
else begin[{]
None
end[}]
local_variable[type[int], n]
ForSta... | Keyword[public] Keyword[int] identifier[getImportNumber] operator[SEP] identifier[StylesheetComposed] identifier[sheet] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[==] identifier[sheet] operator[SEP] Keyword[return] Other[0] operator[SEP] Keyword[int] identifier[n] operator[=] identifier[get... |
@Override
public InputStream getInputStream() throws Exception {
for(FSEntry entry : entries){
InputStream is = entry.getInputStream();
if( null != is ) {
return is;
}
}
return null;
} | class class_name[name] begin[{]
method[getInputStream, return_type[type[InputStream]], modifier[public], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(ar... | annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[getInputStream] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[for] operator[SEP] identifier[FSEntry] identifier[entry] operator[:] identifier[entries] operator[SEP] {
identifier[InputSt... |
public void unregisterFhirProviders (FhirProviderBundle bundle, Map<String,Object> props) throws FhirConfigurationException {
if (bundle != null) {
Collection<Object> providers = bundle.getProviders();
if (providers != null && !providers.isEmpty()) {
try {
registeredProviders.remove(providers);
St... | class class_name[name] begin[{]
method[unregisterFhirProviders, return_type[void], modifier[public], parameter[bundle, props]] begin[{]
if[binary_operation[member[.bundle], !=, literal[null]]] begin[{]
local_variable[type[Collection], providers]
if[binary_ope... | Keyword[public] Keyword[void] identifier[unregisterFhirProviders] operator[SEP] identifier[FhirProviderBundle] identifier[bundle] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[props] operator[SEP] Keyword[throws] identifier[FhirConfigurationException] {
Keyword[if... |
public void marshall(DescribeNotebookInstanceLifecycleConfigRequest describeNotebookInstanceLifecycleConfigRequest, ProtocolMarshaller protocolMarshaller) {
if (describeNotebookInstanceLifecycleConfigRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[describeNotebookInstanceLifecycleConfigRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.describeNotebookInstanceLifecycleConfigRequest], ==, literal[null]]] begin[{]
Thr... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeNotebookInstanceLifecycleConfigRequest] identifier[describeNotebookInstanceLifecycleConfigRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[describeNote... |
public String get(String key) {
try {
return bundle.getString(key);
}catch(MissingResourceException e) {
logger.warn("Missing resource.", e);
return key;
}
} | class class_name[name] begin[{]
method[get, return_type[type[String]], modifier[public], parameter[key]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getStrin... | Keyword[public] identifier[String] identifier[get] operator[SEP] identifier[String] identifier[key] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[bundle] operator[SEP] identifier[getString] operator[SEP] identifier[key] operator[SEP] operator[SEP]
}
Keyword[catch] operator[SE... |
public static ModifiedRecord recordByColumns(ResultSet rs, List<String> columns) throws SQLException {
ModifiedRecord record = new ModifiedRecord();
for (String column : columns) {
FieldValue fieldValue = new FieldValue();
fieldValue.setFieldName(column);
fieldValue.s... | class class_name[name] begin[{]
method[recordByColumns, return_type[type[ModifiedRecord]], modifier[public static], parameter[rs, columns]] begin[{]
local_variable[type[ModifiedRecord], record]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], dec... | Keyword[public] Keyword[static] identifier[ModifiedRecord] identifier[recordByColumns] operator[SEP] identifier[ResultSet] identifier[rs] , identifier[List] operator[<] identifier[String] operator[>] identifier[columns] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[ModifiedRecord] identifi... |
public Observable<Job> getJobDetailsAsync(String teamName, String jobId) {
return getJobDetailsWithServiceResponseAsync(teamName, jobId).map(new Func1<ServiceResponse<Job>, Job>() {
@Override
public Job call(ServiceResponse<Job> response) {
return response.body();
... | class class_name[name] begin[{]
method[getJobDetailsAsync, return_type[type[Observable]], modifier[public], parameter[teamName, jobId]] begin[{]
return[call[.getJobDetailsWithServiceResponseAsync, parameter[member[.teamName], member[.jobId]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[Job] operator[>] identifier[getJobDetailsAsync] operator[SEP] identifier[String] identifier[teamName] , identifier[String] identifier[jobId] operator[SEP] {
Keyword[return] identifier[getJobDetailsWithServiceResponseAsync] operator[SEP] identifier[te... |
@Nullable
public static IMicroNode getAsNode (@Nonnull final IHCNode aHCNode)
{
return getAsNode (aHCNode, HCSettings.getConversionSettings ());
} | class class_name[name] begin[{]
method[getAsNode, return_type[type[IMicroNode]], modifier[public static], parameter[aHCNode]] begin[{]
return[call[.getAsNode, parameter[member[.aHCNode], call[HCSettings.getConversionSettings, parameter[]]]]]
end[}]
END[}] | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[IMicroNode] identifier[getAsNode] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[IHCNode] identifier[aHCNode] operator[SEP] {
Keyword[return] identifier[getAsNode] operator[SEP] identifier[aHCNode] , identif... |
public void subscribeOrderbook(final BitfinexOrderBookSymbol orderbookConfiguration) {
final SubscribeOrderbookCommand subscribeOrderbookCommand
= new SubscribeOrderbookCommand(orderbookConfiguration);
client.sendCommand(subscribeOrderbookCommand);
} | class class_name[name] begin[{]
method[subscribeOrderbook, return_type[void], modifier[public], parameter[orderbookConfiguration]] begin[{]
local_variable[type[SubscribeOrderbookCommand], subscribeOrderbookCommand]
call[client.sendCommand, parameter[member[.subscribeOrderbookCommand]]]
... | Keyword[public] Keyword[void] identifier[subscribeOrderbook] operator[SEP] Keyword[final] identifier[BitfinexOrderBookSymbol] identifier[orderbookConfiguration] operator[SEP] {
Keyword[final] identifier[SubscribeOrderbookCommand] identifier[subscribeOrderbookCommand] operator[=] Keyword[new] identifier[Subscribe... |
@SafeVarargs
public static double[] removeAll(final double[] a, final double... elements) {
if (N.isNullOrEmpty(a)) {
return N.EMPTY_DOUBLE_ARRAY;
} else if (N.isNullOrEmpty(elements)) {
return a.clone();
} else if (elements.length == 1) {
return re... | class class_name[name] begin[{]
method[removeAll, return_type[type[double]], modifier[public static], parameter[a, elements]] begin[{]
if[call[N.isNullOrEmpty, parameter[member[.a]]]] begin[{]
return[member[N.EMPTY_DOUBLE_ARRAY]]
else begin[{]
if[call[N.isNullOrE... | annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[removeAll] operator[SEP] Keyword[final] Keyword[double] operator[SEP] operator[SEP] identifier[a] , Keyword[final] Keyword[double] operator[...] identifier[elements] operator[SEP] {
Keywo... |
public CommonTree parseQuery(String queryString, QueryResolverDelegate resolverDelegate, QueryRendererDelegate rendererDelegate) throws ParsingException {
IckleLexer lexer = new IckleLexer(new ANTLRStringStream(queryString));
CommonTokenStream tokens = new CommonTokenStream(lexer);
IckleParser parser ... | class class_name[name] begin[{]
method[parseQuery, return_type[type[CommonTree]], modifier[public], parameter[queryString, resolverDelegate, rendererDelegate]] begin[{]
local_variable[type[IckleLexer], lexer]
local_variable[type[CommonTokenStream], tokens]
local_variable[type[IckleParse... | Keyword[public] identifier[CommonTree] identifier[parseQuery] operator[SEP] identifier[String] identifier[queryString] , identifier[QueryResolverDelegate] identifier[resolverDelegate] , identifier[QueryRendererDelegate] identifier[rendererDelegate] operator[SEP] Keyword[throws] identifier[ParsingException] {
i... |
private void uploadNewVersion(final BoxFile file) {
new Thread() {
@Override
public void run() {
try {
String uploadFileName = "box_logo.png";
InputStream uploadStream = getResources().getAssets().open(uploadFileName);
... | class class_name[name] begin[{]
method[uploadNewVersion, return_type[void], modifier[private], parameter[file]] begin[{]
ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[TryStatement(block=[LocalVariableDeclaration(annotations=[], d... | Keyword[private] Keyword[void] identifier[uploadNewVersion] operator[SEP] Keyword[final] identifier[BoxFile] identifier[file] operator[SEP] {
Keyword[new] identifier[Thread] operator[SEP] operator[SEP] {
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] ope... |
public SourceReportModel getSourceReportForFileModel(FileModel fileModel)
{
GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(getGraphContext().getGraph()).V(fileModel.getElement());
pipeline.in(SourceReportModel.SOURCE_REPORT_TO_SOURCE_FILE_MODEL);
SourceReportModel result... | class class_name[name] begin[{]
method[getSourceReportForFileModel, return_type[type[SourceReportModel]], modifier[public], parameter[fileModel]] begin[{]
local_variable[type[GraphTraversal], pipeline]
call[pipeline.in, parameter[member[SourceReportModel.SOURCE_REPORT_TO_SOURCE_FILE_MOD... | Keyword[public] identifier[SourceReportModel] identifier[getSourceReportForFileModel] operator[SEP] identifier[FileModel] identifier[fileModel] operator[SEP] {
identifier[GraphTraversal] operator[<] identifier[Vertex] , identifier[Vertex] operator[>] identifier[pipeline] operator[=] Keyword[new] identifier[Grap... |
public void marshall(ProvisionedProductPlanSummary provisionedProductPlanSummary, ProtocolMarshaller protocolMarshaller) {
if (provisionedProductPlanSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[provisionedProductPlanSummary, protocolMarshaller]] begin[{]
if[binary_operation[member[.provisionedProductPlanSummary], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreato... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ProvisionedProductPlanSummary] identifier[provisionedProductPlanSummary] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[provisionedProductPlanSummary] operator[==] Ot... |
public static void generate(ConfigurationImpl configuration) throws DocFileIOException {
DocPath filename = DocPaths.overviewSummary(configuration.frames);
ModuleIndexWriter mdlgen = new ModuleIndexWriter(configuration, filename);
mdlgen.buildModuleIndexFile("doclet.Window_Overview_Summary", tru... | class class_name[name] begin[{]
method[generate, return_type[void], modifier[public static], parameter[configuration]] begin[{]
local_variable[type[DocPath], filename]
local_variable[type[ModuleIndexWriter], mdlgen]
call[mdlgen.buildModuleIndexFile, parameter[literal["doclet.Win... | Keyword[public] Keyword[static] Keyword[void] identifier[generate] operator[SEP] identifier[ConfigurationImpl] identifier[configuration] operator[SEP] Keyword[throws] identifier[DocFileIOException] {
identifier[DocPath] identifier[filename] operator[=] identifier[DocPaths] operator[SEP] identifier[overviewSummar... |
@Override
public TimerService getTimerService() throws IllegalStateException {
IllegalStateException ise;
// Not an allowed method for Stateful beans per EJB Specification.
ise = new IllegalStateException("StatefulBean: getTimerService not " +
"allowe... | class class_name[name] begin[{]
method[getTimerService, return_type[type[TimerService]], modifier[public], parameter[]] begin[{]
local_variable[type[IllegalStateException], ise]
assign[member[.ise], ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_op... | annotation[@] identifier[Override] Keyword[public] identifier[TimerService] identifier[getTimerService] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] {
identifier[IllegalStateException] identifier[ise] operator[SEP] identifier[ise] operator[=] Keyword[new] identifier[IllegalStateE... |
public final Boolean evaluateBoolean( Message message ) throws JMSException
{
Object value = evaluate(message);
if (value == null)
return null;
if (value instanceof Boolean)
return (Boolean)value;
throw new FFMQException("Expected a boolean b... | class class_name[name] begin[{]
method[evaluateBoolean, return_type[type[Boolean]], modifier[final public], parameter[message]] begin[{]
local_variable[type[Object], value]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
... | Keyword[public] Keyword[final] identifier[Boolean] identifier[evaluateBoolean] operator[SEP] identifier[Message] identifier[message] operator[SEP] Keyword[throws] identifier[JMSException] {
identifier[Object] identifier[value] operator[=] identifier[evaluate] operator[SEP] identifier[message] operator[SEP] opera... |
public SourceSnippet createFieldInjection(final FieldLiteral<?> field, final String injecteeName,
NameGenerator nameGenerator, List<InjectorMethod> methodsOutput)
throws NoSourceNameException {
final boolean hasInjectee = injecteeName != null;
final boolean useNativeMethod = field.isPrivate()
... | class class_name[name] begin[{]
method[createFieldInjection, return_type[type[SourceSnippet]], modifier[public], parameter[field, injecteeName, nameGenerator, methodsOutput]] begin[{]
local_variable[type[boolean], hasInjectee]
local_variable[type[boolean], useNativeMethod]
local_variabl... | Keyword[public] identifier[SourceSnippet] identifier[createFieldInjection] operator[SEP] Keyword[final] identifier[FieldLiteral] operator[<] operator[?] operator[>] identifier[field] , Keyword[final] identifier[String] identifier[injecteeName] , identifier[NameGenerator] identifier[nameGenerator] , identifier[List] ... |
public IconType<WebFragmentDescriptor> getOrCreateIcon()
{
List<Node> nodeList = model.get("icon");
if (nodeList != null && nodeList.size() > 0)
{
return new IconTypeImpl<WebFragmentDescriptor>(this, "icon", model, nodeList.get(0));
}
return createIcon();
} | class class_name[name] begin[{]
method[getOrCreateIcon, return_type[type[IconType]], modifier[public], parameter[]] begin[{]
local_variable[type[List], nodeList]
if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, paramete... | Keyword[public] identifier[IconType] operator[<] identifier[WebFragmentDescriptor] operator[>] identifier[getOrCreateIcon] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[model] operator[SEP] identifier[get] operator[SEP] literal... |
private List<String> createRoles(HttpConstraintElement httpConstraint) {
String[] rolesFromAnno = httpConstraint.getRolesAllowed();
List<String> roles = new ArrayList<String>();
for (int i = 0; i < rolesFromAnno.length; i++) {
roles.add(rolesFromAnno[i]);
}
return rol... | class class_name[name] begin[{]
method[createRoles, return_type[type[List]], modifier[private], parameter[httpConstraint]] begin[{]
local_variable[type[String], rolesFromAnno]
local_variable[type[List], roles]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(... | Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[createRoles] operator[SEP] identifier[HttpConstraintElement] identifier[httpConstraint] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[rolesFromAnno] operator[=] identifier[httpConstraint] operator[... |
public void setPartOfSpeech(String v) {
if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_partOfSpeech == null)
jcasType.jcas.throwFeatMissing("partOfSpeech", "edu.cmu.lti.oaqa.type.nlp.Token");
jcasType.ll_cas.ll_setStringValue(addr, ((Token_Type)jcasType).casFeatCode_partOfSpeech, v);} | class class_name[name] begin[{]
method[setPartOfSpeech, return_type[void], modifier[public], parameter[v]] begin[{]
if[binary_operation[member[Token_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, sele... | Keyword[public] Keyword[void] identifier[setPartOfSpeech] operator[SEP] identifier[String] identifier[v] operator[SEP] {
Keyword[if] operator[SEP] identifier[Token_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Token_Type] operator[SEP] identifier[jcasType] operator... |
public void setSearchBarTitle(CharSequence title) {
this.mTitleText = title.toString();
mIsTitleSet = true;
mSearchInput.setText(title);
} | class class_name[name] begin[{]
method[setSearchBarTitle, return_type[void], modifier[public], parameter[title]] begin[{]
assign[THIS[member[None.mTitleText]], call[title.toString, parameter[]]]
assign[member[.mIsTitleSet], literal[true]]
call[mSearchInput.setTex... | Keyword[public] Keyword[void] identifier[setSearchBarTitle] operator[SEP] identifier[CharSequence] identifier[title] operator[SEP] {
Keyword[this] operator[SEP] identifier[mTitleText] operator[=] identifier[title] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[mIsTitleSet... |
public double getKurtosis() {
double kurtosis = NaN;
if (_n > 3L) {
final double var = _m2.value()/(_n - 1);
if (_n <= 3L || var < 10E-20) {
kurtosis = 0.0;
} else {
kurtosis = (_n*(_n + 1.0)*_m4.value() -
3.0*_m2.value()*_m2.value()*(_n - 1.0))/
((_n - 1.0)*(_n - 2.0)*(_n - 3.0)*var*var)... | class class_name[name] begin[{]
method[getKurtosis, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[double], kurtosis]
if[binary_operation[member[._n], >, literal[3L]]] begin[{]
local_variable[type[double], var]
... | Keyword[public] Keyword[double] identifier[getKurtosis] operator[SEP] operator[SEP] {
Keyword[double] identifier[kurtosis] operator[=] identifier[NaN] operator[SEP] Keyword[if] operator[SEP] identifier[_n] operator[>] Other[3L] operator[SEP] {
Keyword[final] Keyword[double] identifier[var] operator[=]... |
public void close()
{
forwardEngine.close();
if (forwardEngine != reverseEngine)
reverseEngine.close();
Iterator<Map.Entry<Long, SRTCPCryptoContext>> iter
= contexts.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<Long, SRTCPC... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
call[forwardEngine.close, parameter[]]
if[binary_operation[member[.forwardEngine], !=, member[.reverseEngine]]] begin[{]
call[reverseEngine.close, parameter[]]
... | Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
identifier[forwardEngine] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[forwardEngine] operator[!=] identifier[reverseEngine] operator[SEP] identifier[reverseEngine] oper... |
protected void appendFieldJSON(StringBuilder jsonTemplate, String type, String name, String id, String jsType) {
jsonTemplate
.append("'")
.append(name)
.append("' : ")
.append(jsType)
.append(appendExtractionExpression(type, name, id, jsType))
... | class class_name[name] begin[{]
method[appendFieldJSON, return_type[void], modifier[protected], parameter[jsonTemplate, type, name, id, jsType]] begin[{]
call[jsonTemplate.append, parameter[literal["'"]]]
end[}]
END[}] | Keyword[protected] Keyword[void] identifier[appendFieldJSON] operator[SEP] identifier[StringBuilder] identifier[jsonTemplate] , identifier[String] identifier[type] , identifier[String] identifier[name] , identifier[String] identifier[id] , identifier[String] identifier[jsType] operator[SEP] {
identifier[json... |
private static List<String> extractClassNames(String jarName) throws IOException {
List<String> classes = new LinkedList<String>();
ZipInputStream orig = new ZipInputStream(new FileInputStream(jarName));
for (ZipEntry entry = orig.getNextEntry(); entry != null; entry = orig.getNextEntry()) {
... | class class_name[name] begin[{]
method[extractClassNames, return_type[type[List]], modifier[private static], parameter[jarName]] begin[{]
local_variable[type[List], classes]
local_variable[type[ZipInputStream], orig]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariable... | Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[extractClassNames] operator[SEP] identifier[String] identifier[jarName] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[List] operator[<] identifier[String] operator[>] identifier[classes] o... |
public void marshall(ContainerDefinition containerDefinition, ProtocolMarshaller protocolMarshaller) {
if (containerDefinition == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(containerDefinition.ge... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[containerDefinition, protocolMarshaller]] begin[{]
if[binary_operation[member[.containerDefinition], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ContainerDefinition] identifier[containerDefinition] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[containerDefinition] operator[==] Other[null] operator[SEP] {
... |
public static String normalizePath(String _path, boolean _appendFinalSeparator) {
if (_path == null) {
return _path;
}
String path = _path
.replace("\\", FILE_SEPARATOR)
.replace("/", FILE_SEPARATOR);
if (_appendFinalSeparator && !path.endsWith(FILE_S... | class class_name[name] begin[{]
method[normalizePath, return_type[type[String]], modifier[public static], parameter[_path, _appendFinalSeparator]] begin[{]
if[binary_operation[member[._path], ==, literal[null]]] begin[{]
return[member[._path]]
else begin[{]
None
end[... | Keyword[public] Keyword[static] identifier[String] identifier[normalizePath] operator[SEP] identifier[String] identifier[_path] , Keyword[boolean] identifier[_appendFinalSeparator] operator[SEP] {
Keyword[if] operator[SEP] identifier[_path] operator[==] Other[null] operator[SEP] {
Keyword[return] ide... |
public void foreachPartition(final Action1<PartitionState> action) {
int len = partitionStates.length();
for (int i = 0; i < len; i++) {
PartitionState ps = partitionStates.get(i);
if (ps == null) {
continue;
}
action.call(ps);
}
} | class class_name[name] begin[{]
method[foreachPartition, return_type[void], modifier[public], parameter[action]] begin[{]
local_variable[type[int], len]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[... | Keyword[public] Keyword[void] identifier[foreachPartition] operator[SEP] Keyword[final] identifier[Action1] operator[<] identifier[PartitionState] operator[>] identifier[action] operator[SEP] {
Keyword[int] identifier[len] operator[=] identifier[partitionStates] operator[SEP] identifier[length] operator[SEP] ope... |
@Override
public List<ProposalPersonContract> getKeyPersons(ProposalDevelopmentDocumentContract pdDoc) {
List<ProposalPersonContract> keyPersons = new ArrayList<>();
if (pdDoc != null) {
for (ProposalPersonContract person : pdDoc.getDevelopmentProposal().getProposalPersons()) {
... | class class_name[name] begin[{]
method[getKeyPersons, return_type[type[List]], modifier[public], parameter[pdDoc]] begin[{]
local_variable[type[List], keyPersons]
if[binary_operation[member[.pdDoc], !=, literal[null]]] begin[{]
ForStatement(body=BlockStatement(label=None, st... | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[ProposalPersonContract] operator[>] identifier[getKeyPersons] operator[SEP] identifier[ProposalDevelopmentDocumentContract] identifier[pdDoc] operator[SEP] {
identifier[List] operator[<] identifier[ProposalPersonContract] ... |
static int decodeDigit(byte data)
{
char charData = (char) data;
if (charData <= 'Z' && charData >= 'A')
{
return charData - 'A';
}
if (charData <= 'z' && charData >= 'a')
{
return charData - 'a' + 26;
}
if (charData <= '9' && charData >= '0')
{
return charData - '0' + 52;
}
switch (char... | class class_name[name] begin[{]
method[decodeDigit, return_type[type[int]], modifier[static], parameter[data]] begin[{]
local_variable[type[char], charData]
if[binary_operation[binary_operation[member[.charData], <=, literal['Z']], &&, binary_operation[member[.charData], >=, literal['A'... | Keyword[static] Keyword[int] identifier[decodeDigit] operator[SEP] Keyword[byte] identifier[data] operator[SEP] {
Keyword[char] identifier[charData] operator[=] operator[SEP] Keyword[char] operator[SEP] identifier[data] operator[SEP] Keyword[if] operator[SEP] identifier[charData] operator[<=] literal[String] ope... |
private RequestTemplate appendQuery(String name,
Iterable<String> values,
CollectionFormat collectionFormat) {
if (!values.iterator().hasNext()) {
/* empty value, clear the existing values */
this.queries.remove(name);
ret... | class class_name[name] begin[{]
method[appendQuery, return_type[type[RequestTemplate]], modifier[private], parameter[name, values, collectionFormat]] begin[{]
if[call[values.iterator, parameter[]]] begin[{]
THIS[member[None.queries]call[None.remove, parameter[member[.nam... | Keyword[private] identifier[RequestTemplate] identifier[appendQuery] operator[SEP] identifier[String] identifier[name] , identifier[Iterable] operator[<] identifier[String] operator[>] identifier[values] , identifier[CollectionFormat] identifier[collectionFormat] operator[SEP] {
Keyword[if] operator[SEP] opera... |
public void processInternal( double[] input, DMatrix leftPoint, DMatrix rightView) {
int numRows = getNumOfOutputsM();
int numPointParam = structure.points.length*lengthPoint;
int numViewParam = numParameters-numPointParam; // view + camera
((ReshapeMatrix)leftPoint).reshape(numRows,numPointParam);
((Reshape... | class class_name[name] begin[{]
method[processInternal, return_type[void], modifier[public], parameter[input, leftPoint, rightView]] begin[{]
local_variable[type[int], numRows]
local_variable[type[int], numPointParam]
local_variable[type[int], numViewParam]
Cast(expressi... | Keyword[public] Keyword[void] identifier[processInternal] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[input] , identifier[DMatrix] identifier[leftPoint] , identifier[DMatrix] identifier[rightView] operator[SEP] {
Keyword[int] identifier[numRows] operator[=] identifier[getNumOfOutputsM]... |
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case XbasePackage.XPOSTFIX_OPERATION__OPERAND:
return operand != null;
}
return super.eIsSet(featureID);
} | class class_name[name] begin[{]
method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=XPOSTFIX_OPERATION__OPERAND, postfix_operators=[], prefix_operators=[], qualifier=XbasePackage, selectors=[... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[XbasePackage] operator[SEP] identifier[XPOSTFIX_OPERATION... |
public Attribute getLabelAttribute() {
Attribute labelAttr = getOwnLabelAttribute();
if (labelAttr == null) {
EntityType extend = getExtends();
if (extend != null) {
labelAttr = extend.getLabelAttribute();
}
}
return labelAttr;
} | class class_name[name] begin[{]
method[getLabelAttribute, return_type[type[Attribute]], modifier[public], parameter[]] begin[{]
local_variable[type[Attribute], labelAttr]
if[binary_operation[member[.labelAttr], ==, literal[null]]] begin[{]
local_variable[type[EntityType], ex... | Keyword[public] identifier[Attribute] identifier[getLabelAttribute] operator[SEP] operator[SEP] {
identifier[Attribute] identifier[labelAttr] operator[=] identifier[getOwnLabelAttribute] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[labelAttr] operator[==] Other[null] operator[SE... |
public HandlerInfo getHandler(String requestURL) {
Iterator<HandlerPath> keys = handlerKeys.iterator();
if (requestURL == null || keys == null) {
return null;
}
// Check to see if we have a direct hit
Iterator<ServiceAndServiceReferencePair<RESTHandler>> itr = handl... | class class_name[name] begin[{]
method[getHandler, return_type[type[HandlerInfo]], modifier[public], parameter[requestURL]] begin[{]
local_variable[type[Iterator], keys]
if[binary_operation[binary_operation[member[.requestURL], ==, literal[null]], ||, binary_operation[member[.keys], ==,... | Keyword[public] identifier[HandlerInfo] identifier[getHandler] operator[SEP] identifier[String] identifier[requestURL] operator[SEP] {
identifier[Iterator] operator[<] identifier[HandlerPath] operator[>] identifier[keys] operator[=] identifier[handlerKeys] operator[SEP] identifier[iterator] operator[SEP] operato... |
public Environment add(@NonNull String key, @NonNull Object value) {
return set(key, value);
} | class class_name[name] begin[{]
method[add, return_type[type[Environment]], modifier[public], parameter[key, value]] begin[{]
return[call[.set, parameter[member[.key], member[.value]]]]
end[}]
END[}] | Keyword[public] identifier[Environment] identifier[add] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[key] , annotation[@] identifier[NonNull] identifier[Object] identifier[value] operator[SEP] {
Keyword[return] identifier[set] operator[SEP] identifier[key] , identifier[value] o... |
public ApiResponse<ApiSuccessResponse> setCompletedWithHttpInfo(String id, CompletedData completedData) throws ApiException {
com.squareup.okhttp.Call call = setCompletedValidateBeforeCall(id, completedData, null, null);
Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
... | class class_name[name] begin[{]
method[setCompletedWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[id, completedData]] begin[{]
local_variable[type[com], call]
local_variable[type[Type], localVarReturnType]
return[call[apiClient.execute, parameter[member[.call]... | Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[setCompletedWithHttpInfo] operator[SEP] identifier[String] identifier[id] , identifier[CompletedData] identifier[completedData] operator[SEP] Keyword[throws] identifier[ApiException] {
identifier[com] opera... |
public static List<CommerceRegion> findByUuid_C(String uuid, long companyId) {
return getPersistence().findByUuid_C(uuid, companyId);
} | class class_name[name] begin[{]
method[findByUuid_C, return_type[type[List]], modifier[public static], parameter[uuid, companyId]] begin[{]
return[call[.getPersistence, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CommerceRegion] operator[>] identifier[findByUuid_C] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] operator[SEP] {
Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operator[SEP... |
@Override
public PayNotifyResponse retcode(int retcode) {
this.retcode = retcode;
this.retinfo = PayRetCodes.retInfo(retcode);
return this;
} | class class_name[name] begin[{]
method[retcode, return_type[type[PayNotifyResponse]], modifier[public], parameter[retcode]] begin[{]
assign[THIS[member[None.retcode]], member[.retcode]]
assign[THIS[member[None.retinfo]], call[PayRetCodes.retInfo, parameter[member[.retcode]]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[PayNotifyResponse] identifier[retcode] operator[SEP] Keyword[int] identifier[retcode] operator[SEP] {
Keyword[this] operator[SEP] identifier[retcode] operator[=] identifier[retcode] operator[SEP] Keyword[this] operator[SEP] identifier[retinfo] operato... |
public static void rethrow(MjdbcException cause) throws MjdbcSQLException {
MjdbcSQLException ex = new MjdbcSQLException(cause.getMessage());
ex.setStackTrace(cause.getStackTrace());
throw ex;
} | class class_name[name] begin[{]
method[rethrow, return_type[void], modifier[public static], parameter[cause]] begin[{]
local_variable[type[MjdbcSQLException], ex]
call[ex.setStackTrace, parameter[call[cause.getStackTrace, parameter[]]]]
ThrowStatement(expression=MemberReference(... | Keyword[public] Keyword[static] Keyword[void] identifier[rethrow] operator[SEP] identifier[MjdbcException] identifier[cause] operator[SEP] Keyword[throws] identifier[MjdbcSQLException] {
identifier[MjdbcSQLException] identifier[ex] operator[=] Keyword[new] identifier[MjdbcSQLException] operator[SEP] identifier[c... |
public final void mTRUE() throws RecognitionException {
try {
int _type = TRUE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// MessageFilter.g:51:6: ( 'true' )
// MessageFilter.g:51:8: 'true'
{
match("true");
}
state.... | class class_name[name] begin[{]
method[mTRUE, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=TRUE, postfix_operators=[], prefix_operators=[], ... | Keyword[public] Keyword[final] Keyword[void] identifier[mTRUE] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
Keyword[int] identifier[_type] operator[=] identifier[TRUE] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKEN_... |
public void run() {
originalSecurityManager = System.getSecurityManager();
System.setSecurityManager(new NGSecurityManager(originalSecurityManager));
if (!(System.in instanceof ThreadLocalInputStream)) {
System.setIn(new ThreadLocalInputStream(in));
}
if (!(System.out instanceof ThreadLocalPr... | class class_name[name] begin[{]
method[run, return_type[void], modifier[public], parameter[]] begin[{]
assign[member[.originalSecurityManager], call[System.getSecurityManager, parameter[]]]
call[System.setSecurityManager, parameter[ClassCreator(arguments=[MemberReference(member=... | Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] {
identifier[originalSecurityManager] operator[=] identifier[System] operator[SEP] identifier[getSecurityManager] operator[SEP] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[setSecurityManager] operator[SEP] Keywo... |
public Option getSelectedItem() {
for (Entry<OptionElement, Option> entry : itemMap.entrySet()) {
Option opt = entry.getValue();
if (opt.isSelected())
return opt;
}
return null;
} | class class_name[name] begin[{]
method[getSelectedItem, return_type[type[Option]], modifier[public], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argume... | Keyword[public] identifier[Option] identifier[getSelectedItem] operator[SEP] operator[SEP] {
Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[OptionElement] , identifier[Option] operator[>] identifier[entry] operator[:] identifier[itemMap] operator[SEP] identifier[entrySet] operator[SEP] ope... |
public static Rectangle getBoundaryAbsolute(Tile upperLeft, Tile lowerRight) {
return new Rectangle(upperLeft.getOrigin().x, upperLeft.getOrigin().y, lowerRight.getOrigin().x + upperLeft.tileSize, lowerRight.getOrigin().y + upperLeft.tileSize);
} | class class_name[name] begin[{]
method[getBoundaryAbsolute, return_type[type[Rectangle]], modifier[public static], parameter[upperLeft, lowerRight]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getOrigin, postfix_operators=[], prefix_operators=[], qualifier=upperLeft, s... | Keyword[public] Keyword[static] identifier[Rectangle] identifier[getBoundaryAbsolute] operator[SEP] identifier[Tile] identifier[upperLeft] , identifier[Tile] identifier[lowerRight] operator[SEP] {
Keyword[return] Keyword[new] identifier[Rectangle] operator[SEP] identifier[upperLeft] operator[SEP] identifier[get... |
private String xPathEvaluate(Object input) {
JAXPXPathEngine engine = xpf == null ? new JAXPXPathEngine() : new JAXPXPathEngine(xpf);
if (prefix2Uri != null) {
engine.setNamespaceContext(prefix2Uri);
}
Source s = Input.from(input).build();
Node n = dbf != null ? Conv... | class class_name[name] begin[{]
method[xPathEvaluate, return_type[type[String]], modifier[private], parameter[input]] begin[{]
local_variable[type[JAXPXPathEngine], engine]
if[binary_operation[member[.prefix2Uri], !=, literal[null]]] begin[{]
call[engine.setNames... | Keyword[private] identifier[String] identifier[xPathEvaluate] operator[SEP] identifier[Object] identifier[input] operator[SEP] {
identifier[JAXPXPathEngine] identifier[engine] operator[=] identifier[xpf] operator[==] Other[null] operator[?] Keyword[new] identifier[JAXPXPathEngine] operator[SEP] operator[SEP] ope... |
public com.google.api.ads.admanager.axis.v201902.ProposalCompanyAssociation[] getAgencies() {
return agencies;
} | class class_name[name] begin[{]
method[getAgencies, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.agencies]]
end[}]
END[}] | Keyword[public] 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[v201902] operator[SEP] identifier[ProposalCompanyAssociation] operator[SEP] operator[SEP] identifier[ge... |
public Boolean isReadYourWrites(final String iClusterName) {
Object value = getClusterConfiguration(iClusterName).field(READ_YOUR_WRITES);
if (value == null) {
value = configuration.field(READ_YOUR_WRITES);
if (value == null) {
OLogManager.instance()
.warn(this, "%s setting not f... | class class_name[name] begin[{]
method[isReadYourWrites, return_type[type[Boolean]], modifier[public], parameter[iClusterName]] begin[{]
local_variable[type[Object], value]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
assign[member[.value], ca... | Keyword[public] identifier[Boolean] identifier[isReadYourWrites] operator[SEP] Keyword[final] identifier[String] identifier[iClusterName] operator[SEP] {
identifier[Object] identifier[value] operator[=] identifier[getClusterConfiguration] operator[SEP] identifier[iClusterName] operator[SEP] operator[SEP] identif... |
public void configure(@NonNull VoidConfiguration configuration, @NonNull Transport transport, @NonNull UpdaterParametersProvider updaterProvider) {
this.transport = transport;
this.masterMode = false;
this.configuration = configuration;
this.updaterParametersProvider = updaterProvider;
... | class class_name[name] begin[{]
method[configure, return_type[void], modifier[public], parameter[configuration, transport, updaterProvider]] begin[{]
assign[THIS[member[None.transport]], member[.transport]]
assign[THIS[member[None.masterMode]], literal[false]]
as... | Keyword[public] Keyword[void] identifier[configure] operator[SEP] annotation[@] identifier[NonNull] identifier[VoidConfiguration] identifier[configuration] , annotation[@] identifier[NonNull] identifier[Transport] identifier[transport] , annotation[@] identifier[NonNull] identifier[UpdaterParametersProvider] identifi... |
public ServiceFuture<List<ResourceMetricDefinitionInner>> listWorkerPoolInstanceMetricDefinitionsAsync(final String resourceGroupName, final String name, final String workerPoolName, final String instance, final ListOperationCallback<ResourceMetricDefinitionInner> serviceCallback) {
return AzureServiceFuture.fr... | class class_name[name] begin[{]
method[listWorkerPoolInstanceMetricDefinitionsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, name, workerPoolName, instance, serviceCallback]] begin[{]
return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listWorkerPoo... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[ResourceMetricDefinitionInner] operator[>] operator[>] identifier[listWorkerPoolInstanceMetricDefinitionsAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String]... |
@Override
@SuppressWarnings("unchecked")
public Spliterator<E_OUT> spliterator() {
if (linkedOrConsumed)
throw new IllegalStateException(MSG_STREAM_LINKED);
linkedOrConsumed = true;
if (this == sourceStage) {
if (sourceStage.sourceSpliterator != null) {
... | class class_name[name] begin[{]
method[spliterator, return_type[type[Spliterator]], modifier[public], parameter[]] begin[{]
if[member[.linkedOrConsumed]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=MSG_STREAM_LINKED, postfix_operators=[], prefix_operators=[... | annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Spliterator] operator[<] identifier[E_OUT] operator[>] identifier[spliterator] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[linkedOrConsumed] ... |
protected void writeFieldInstContent(OutputStream result) throws IOException
{
result.write(HYPERLINK);
result.write(DELIMITER);
this.document.filterSpecialChar(result, url, true, true);
} | class class_name[name] begin[{]
method[writeFieldInstContent, return_type[void], modifier[protected], parameter[result]] begin[{]
call[result.write, parameter[member[.HYPERLINK]]]
call[result.write, parameter[member[.DELIMITER]]]
THIS[member[None.document]call[No... | Keyword[protected] Keyword[void] identifier[writeFieldInstContent] operator[SEP] identifier[OutputStream] identifier[result] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[result] operator[SEP] identifier[write] operator[SEP] identifier[HYPERLINK] operator[SEP] operator[SEP] identifier[result... |
@Override
public Quaterniond mul(double a) {
return new Quaterniond(x * a, y * a, z * a, w * a);
} | class class_name[name] begin[{]
method[mul, return_type[type[Quaterniond]], modifier[public], parameter[a]] begin[{]
return[ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=a,... | annotation[@] identifier[Override] Keyword[public] identifier[Quaterniond] identifier[mul] operator[SEP] Keyword[double] identifier[a] operator[SEP] {
Keyword[return] Keyword[new] identifier[Quaterniond] operator[SEP] identifier[x] operator[*] identifier[a] , identifier[y] operator[*] identifier[a] , identifie... |
@SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Applies Maven exception wrapper")
public EntryPoint getEntryPoint(ClassLoaderResolver classLoaderResolver, String groupId, String artifactId, String version, String packaging) throws MojoExecutionException {
if (entryPoint == null || entryP... | class class_name[name] begin[{]
method[getEntryPoint, return_type[type[EntryPoint]], modifier[public], parameter[classLoaderResolver, groupId, artifactId, version, packaging]] begin[{]
if[binary_operation[binary_operation[member[.entryPoint], ==, literal[null]], ||, binary_operation[call[entryP... | annotation[@] identifier[SuppressFBWarnings] operator[SEP] identifier[value] operator[=] literal[String] , identifier[justification] operator[=] literal[String] operator[SEP] Keyword[public] identifier[EntryPoint] identifier[getEntryPoint] operator[SEP] identifier[ClassLoaderResolver] identifier[classLoaderResolver] ,... |
@Override
public DescribeVirtualServiceResult describeVirtualService(DescribeVirtualServiceRequest request) {
request = beforeClientExecution(request);
return executeDescribeVirtualService(request);
} | class class_name[name] begin[{]
method[describeVirtualService, return_type[type[DescribeVirtualServiceResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDescribeVirtualService, ... | annotation[@] identifier[Override] Keyword[public] identifier[DescribeVirtualServiceResult] identifier[describeVirtualService] operator[SEP] identifier[DescribeVirtualServiceRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[req... |
public static Actor client(String zoneId, String clientId) {
Assert.notNull(zoneId, "zoneId must not be null");
Assert.notNull(clientId, "clientId must not be null");
return new Actor(OAUTH_CLIENT, zoneId + "/" + clientId);
} | class class_name[name] begin[{]
method[client, return_type[type[Actor]], modifier[public static], parameter[zoneId, clientId]] begin[{]
call[Assert.notNull, parameter[member[.zoneId], literal["zoneId must not be null"]]]
call[Assert.notNull, parameter[member[.clientId], literal[... | Keyword[public] Keyword[static] identifier[Actor] identifier[client] operator[SEP] identifier[String] identifier[zoneId] , identifier[String] identifier[clientId] operator[SEP] {
identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[zoneId] , literal[String] operator[SEP] operator[SEP] ... |
protected UrlConfig getUrlConfigForTarget(Adaptable adaptable, Resource targetResource) {
UrlConfig config = null;
if (targetResource != null) {
config = new UrlConfig(targetResource);
}
if (config == null || !config.isValid()) {
config = new UrlConfig(adaptable);
}
return config;
... | class class_name[name] begin[{]
method[getUrlConfigForTarget, return_type[type[UrlConfig]], modifier[protected], parameter[adaptable, targetResource]] begin[{]
local_variable[type[UrlConfig], config]
if[binary_operation[member[.targetResource], !=, literal[null]]] begin[{]
... | Keyword[protected] identifier[UrlConfig] identifier[getUrlConfigForTarget] operator[SEP] identifier[Adaptable] identifier[adaptable] , identifier[Resource] identifier[targetResource] operator[SEP] {
identifier[UrlConfig] identifier[config] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifi... |
public final int indexOfNavigationPreference(
@NonNull final NavigationPreference navigationPreference) {
Condition.INSTANCE
.ensureNotNull(navigationPreference, "The navigation preference may not be null");
return navigationPreferences.indexOf(navigationPreference);
} | class class_name[name] begin[{]
method[indexOfNavigationPreference, return_type[type[int]], modifier[final public], parameter[navigationPreference]] begin[{]
call[Condition.INSTANCE.ensureNotNull, parameter[member[.navigationPreference], literal["The navigation preference may not be null"]]]
... | Keyword[public] Keyword[final] Keyword[int] identifier[indexOfNavigationPreference] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[NavigationPreference] identifier[navigationPreference] operator[SEP] {
identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[en... |
public void showSitemapView(boolean showSitemap) {
if (showSitemap) {
setSortContainerPropertyId(CmsResourceTableProperty.PROPERTY_NAVIGATION_TEXT);
setSortAscending(true);
} else {
setSortContainerPropertyId(CAPTION_FOLDERS);
setSortAscending(true);
... | class class_name[name] begin[{]
method[showSitemapView, return_type[void], modifier[public], parameter[showSitemap]] begin[{]
if[member[.showSitemap]] begin[{]
call[.setSortContainerPropertyId, parameter[member[CmsResourceTableProperty.PROPERTY_NAVIGATION_TEXT]]]
... | Keyword[public] Keyword[void] identifier[showSitemapView] operator[SEP] Keyword[boolean] identifier[showSitemap] operator[SEP] {
Keyword[if] operator[SEP] identifier[showSitemap] operator[SEP] {
identifier[setSortContainerPropertyId] operator[SEP] identifier[CmsResourceTableProperty] operator[SEP] ide... |
public JsJmsMapMessage createJmsMapMessage() throws MessageCreateFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMapMessage");
JsJmsMapMessage msg = null;
try {
msg = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP);
}
catch (... | class class_name[name] begin[{]
method[createJmsMapMessage, return_type[type[JsJmsMapMessage]], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, pa... | Keyword[public] identifier[JsJmsMapMessage] identifier[createJmsMapMessage] operator[SEP] operator[SEP] Keyword[throws] identifier[MessageCreateFailedException] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier... |
public void setInstanceIds(java.util.Collection<String> instanceIds) {
if (instanceIds == null) {
this.instanceIds = null;
return;
}
this.instanceIds = new com.amazonaws.internal.SdkInternalList<String>(instanceIds);
} | class class_name[name] begin[{]
method[setInstanceIds, return_type[void], modifier[public], parameter[instanceIds]] begin[{]
if[binary_operation[member[.instanceIds], ==, literal[null]]] begin[{]
assign[THIS[member[None.instanceIds]], literal[null]]
return[No... | Keyword[public] Keyword[void] identifier[setInstanceIds] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[instanceIds] operator[SEP] {
Keyword[if] operator[SEP] identifier[instanceIds] operator[==] Other[null]... |
protected FloatEditor getFloatEditor(String key) {
TypeEditor typeEditor = TYPE_EDITOR_MAP.get(key);
if (typeEditor == null) {
typeEditor = new FloatEditor(this, sharedPreferences, key);
TYPE_EDITOR_MAP.put(key, typeEditor);
} else if (!(typeEditor instanceof FloatEditor)... | class class_name[name] begin[{]
method[getFloatEditor, return_type[type[FloatEditor]], modifier[protected], parameter[key]] begin[{]
local_variable[type[TypeEditor], typeEditor]
if[binary_operation[member[.typeEditor], ==, literal[null]]] begin[{]
assign[member[.... | Keyword[protected] identifier[FloatEditor] identifier[getFloatEditor] operator[SEP] identifier[String] identifier[key] operator[SEP] {
identifier[TypeEditor] identifier[typeEditor] operator[=] identifier[TYPE_EDITOR_MAP] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyw... |
public static String encode (String string)
{
if (string == null)
{
return "";
}
StringBuilder sb = null;
char c;
for (int i = 0; i < string.length (); ++i)
{
c = string.charAt(i);
if (((int)c) >= 0x80)
{
... | class class_name[name] begin[{]
method[encode, return_type[type[String]], modifier[public static], parameter[string]] begin[{]
if[binary_operation[member[.string], ==, literal[null]]] begin[{]
return[literal[""]]
else begin[{]
None
end[}]
local_variable[type[... | Keyword[public] Keyword[static] identifier[String] identifier[encode] operator[SEP] identifier[String] identifier[string] operator[SEP] {
Keyword[if] operator[SEP] identifier[string] operator[==] Other[null] operator[SEP] {
Keyword[return] literal[String] operator[SEP]
}
identifier[Strin... |
public int getServerPort()
{
String host = null;
CharSequence rawHost;
if ((rawHost = getHost()) != null) {
int length = rawHost.length();
int i;
for (i = length - 1; i >= 0; i--) {
if (rawHost.charAt(i) == ':') {
int port = 0;
for (i++; i < length; i++) {
... | class class_name[name] begin[{]
method[getServerPort, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[String], host]
local_variable[type[CharSequence], rawHost]
if[binary_operation[assign[member[.rawHost], call[.getHost, parameter[]]], !=, lit... | Keyword[public] Keyword[int] identifier[getServerPort] operator[SEP] operator[SEP] {
identifier[String] identifier[host] operator[=] Other[null] operator[SEP] identifier[CharSequence] identifier[rawHost] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[rawHost] operator[=] identifier[getHost] ope... |
protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
final Endpoint endpoint = t... | class class_name[name] begin[{]
method[newHttpEndpoint, return_type[type[Endpoint]], modifier[final protected], parameter[endpointClass, endpointName, dep]] begin[{]
if[binary_operation[member[.endpointName], ==, literal[null]]] begin[{]
ThrowStatement(expression=MethodInvocation(arguments=[], ... | Keyword[protected] Keyword[final] identifier[Endpoint] identifier[newHttpEndpoint] operator[SEP] Keyword[final] identifier[String] identifier[endpointClass] , Keyword[final] identifier[String] identifier[endpointName] , Keyword[final] identifier[Deployment] identifier[dep] operator[SEP] {
Keyword[if] operator[... |
@Override
@ConstantTime
public Integer findMin() {
if (Constants.NOT_BENCHMARK && size == 0) {
throw new NoSuchElementException();
}
return array[1].key;
} | class class_name[name] begin[{]
method[findMin, return_type[type[Integer]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[Constants.NOT_BENCHMARK], &&, binary_operation[member[.size], ==, literal[0]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[]... | annotation[@] identifier[Override] annotation[@] identifier[ConstantTime] Keyword[public] identifier[Integer] identifier[findMin] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[Constants] operator[SEP] identifier[NOT_BENCHMARK] operator[&&] identifier[size] operator[==] Other[0] operator[SEP]... |
private static boolean isDone() throws SystemException
{
switch (userTransaction.getStatus()) {
case Status.STATUS_PREPARING:
case Status.STATUS_PREPARED:
case Status.STATUS_COMMITTING:
case Status.STATUS_COMMITTED:
case Status.STATUS_ROLLING_BACK:
case Status.STATUS_ROLLEDB... | class class_name[name] begin[{]
method[isDone, return_type[type[boolean]], modifier[private static], parameter[]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=STATUS_PREPARING, postfix_operators=[], prefix_operators=[], qualifier=Status, selectors=[]), MemberReferenc... | Keyword[private] Keyword[static] Keyword[boolean] identifier[isDone] operator[SEP] operator[SEP] Keyword[throws] identifier[SystemException] {
Keyword[switch] operator[SEP] identifier[userTransaction] operator[SEP] identifier[getStatus] operator[SEP] operator[SEP] operator[SEP] {
Keyword[case] identif... |
public String text() {
final StringBuilder sb = new StringBuilder();
for (Object child : this.children) {
if (child instanceof Node) {
sb.append(((Node) child).text());
} else {
sb.append(child);
}
}
return sb.toString()... | class class_name[name] begin[{]
method[text, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[StringBuilder], sb]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=child, postfix_o... | Keyword[public] identifier[String] identifier[text] operator[SEP] operator[SEP] {
Keyword[final] identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[child] operator[:] Keywo... |
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.GCHST__XPOS:
return XPOS_EDEFAULT == null ? xpos != null : !XPOS_EDEFAULT.equals(xpos);
case AfplibPackage.GCHST__YPOS:
return YPOS_EDEFAULT == null ? ypos != null : !YPOS_EDEFAULT.equals(ypos);
case AfplibPacka... | class class_name[name] begin[{]
method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GCHST__XPOS, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[GCHST__XPOS] oper... |
protected void traceJobXML(String jobXML) {
if (logger.isLoggable(Level.FINE)) {
int concatLen = jobXML.length() > 200 ? 200 : jobXML.length();
logger.fine("Starting job: " + jobXML.substring(0, concatLen) + "... truncated ...");
}
} | class class_name[name] begin[{]
method[traceJobXML, return_type[void], modifier[protected], parameter[jobXML]] begin[{]
if[call[logger.isLoggable, parameter[member[Level.FINE]]]] begin[{]
local_variable[type[int], concatLen]
call[logger.fine, parameter[binary... | Keyword[protected] Keyword[void] identifier[traceJobXML] operator[SEP] identifier[String] identifier[jobXML] operator[SEP] {
Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP] identifier[FINE] operator[SEP] operator[SEP] {
Ke... |
public void morphIntoSheet(int endX, int endY, Side side, int arcDegrees, float scaleFactor,
long duration, AnimationListener listener) {
morph(endX, endY, side, arcDegrees, scaleFactor, duration, listener);
} | class class_name[name] begin[{]
method[morphIntoSheet, return_type[void], modifier[public], parameter[endX, endY, side, arcDegrees, scaleFactor, duration, listener]] begin[{]
call[.morph, parameter[member[.endX], member[.endY], member[.side], member[.arcDegrees], member[.scaleFactor], member[.d... | Keyword[public] Keyword[void] identifier[morphIntoSheet] operator[SEP] Keyword[int] identifier[endX] , Keyword[int] identifier[endY] , identifier[Side] identifier[side] , Keyword[int] identifier[arcDegrees] , Keyword[float] identifier[scaleFactor] , Keyword[long] identifier[duration] , identifier[AnimationListene... |
public BaseValidationCheck getValidationChecker(ValidationRule rule) {
ValidationRule existRule = this.rules.stream().filter(r -> r.getRuleName().equals(rule.getRuleName())).findFirst().orElse(null);
if (existRule == null) {
throw new ValidationLibException("rulename : " + rule.getRuleName()... | class class_name[name] begin[{]
method[getValidationChecker, return_type[type[BaseValidationCheck]], modifier[public], parameter[rule]] begin[{]
local_variable[type[ValidationRule], existRule]
if[binary_operation[member[.existRule], ==, literal[null]]] begin[{]
ThrowStatemen... | Keyword[public] identifier[BaseValidationCheck] identifier[getValidationChecker] operator[SEP] identifier[ValidationRule] identifier[rule] operator[SEP] {
identifier[ValidationRule] identifier[existRule] operator[=] Keyword[this] operator[SEP] identifier[rules] operator[SEP] identifier[stream] operator[SEP] oper... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.