code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions)
{
if ((strCommand.equalsIgnoreCase(MenuConstants.FORM))
|| (strCommand.equalsIgnoreCase(MenuConstants.FORMLINK)))
{
String strHandle = null;
if (strCommand.equalsIgnoreCase(... | class class_name[name] begin[{]
method[doCommand, return_type[type[boolean]], modifier[public], parameter[strCommand, sourceSField, iCommandOptions]] begin[{]
if[binary_operation[call[strCommand.equalsIgnoreCase, parameter[member[MenuConstants.FORM]]], ||, call[strCommand.equalsIgnoreCase, para... | Keyword[public] Keyword[boolean] identifier[doCommand] operator[SEP] identifier[String] identifier[strCommand] , identifier[ScreenField] identifier[sourceSField] , Keyword[int] identifier[iCommandOptions] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[strCommand] operator[SEP] identifier[eq... |
public <T> void putComputationalData(Class<T> key, T value) {
this.computationalData.put(key, value);
} | class class_name[name] begin[{]
method[putComputationalData, return_type[void], modifier[public], parameter[key, value]] begin[{]
THIS[member[None.computationalData]call[None.put, parameter[member[.key], member[.value]]]]
end[}]
END[}] | Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[putComputationalData] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[key] , identifier[T] identifier[value] operator[SEP] {
Keyword[this] operator[SEP] identifier[computationalData] operator[SEP] ide... |
public void deregisterTransaction(TransactionImpl tran, boolean recovered) {
if (tc.isEntryEnabled())
Tr.entry(tc, "deregisterTransaction", new Object[] { this, tran, recovered });
//AJQ - use concurrent set on large SMP
if (isConcurrent)
_transactions.remove(tran);
... | class class_name[name] begin[{]
method[deregisterTransaction, return_type[void], modifier[public], parameter[tran, recovered]] begin[{]
if[call[tc.isEntryEnabled, parameter[]]] begin[{]
call[Tr.entry, parameter[member[.tc], literal["deregisterTransaction"], ArrayCreator(dimensions=[... | Keyword[public] Keyword[void] identifier[deregisterTransaction] operator[SEP] identifier[TransactionImpl] identifier[tran] , Keyword[boolean] identifier[recovered] operator[SEP] {
Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifi... |
public int kPercentileLatency(double percentile) {
if (m_latencyHistogram.getTotalCount() == 0) return 0;
percentile = Math.max(0.0D, percentile);
//Convert from micros to millis for return value, round to nearest integer
return (int) (Math.round(m_latencyHistogram.getValueAtPercentile(p... | class class_name[name] begin[{]
method[kPercentileLatency, return_type[type[int]], modifier[public], parameter[percentile]] begin[{]
if[binary_operation[call[m_latencyHistogram.getTotalCount, parameter[]], ==, literal[0]]] begin[{]
return[literal[0]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[int] identifier[kPercentileLatency] operator[SEP] Keyword[double] identifier[percentile] operator[SEP] {
Keyword[if] operator[SEP] identifier[m_latencyHistogram] operator[SEP] identifier[getTotalCount] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] Keyword[return] Other[0... |
public org.tensorflow.framework.Summary.ValueOrBuilder getValueOrBuilder(
int index) {
return value_.get(index);
} | class class_name[name] begin[{]
method[getValueOrBuilder, return_type[type[org]], modifier[public], parameter[index]] begin[{]
return[call[value_.get, parameter[member[.index]]]]
end[}]
END[}] | Keyword[public] identifier[org] operator[SEP] identifier[tensorflow] operator[SEP] identifier[framework] operator[SEP] identifier[Summary] operator[SEP] identifier[ValueOrBuilder] identifier[getValueOrBuilder] operator[SEP] Keyword[int] identifier[index] operator[SEP] {
Keyword[return] identifier[value_] operato... |
public static Delay constant(Duration delay) {
LettuceAssert.notNull(delay, "Delay must not be null");
LettuceAssert.isTrue(delay.toNanos() >= 0, "Delay must be greater or equal to 0");
return new ConstantDelay(delay);
} | class class_name[name] begin[{]
method[constant, return_type[type[Delay]], modifier[public static], parameter[delay]] begin[{]
call[LettuceAssert.notNull, parameter[member[.delay], literal["Delay must not be null"]]]
call[LettuceAssert.isTrue, parameter[binary_operation[call[del... | Keyword[public] Keyword[static] identifier[Delay] identifier[constant] operator[SEP] identifier[Duration] identifier[delay] operator[SEP] {
identifier[LettuceAssert] operator[SEP] identifier[notNull] operator[SEP] identifier[delay] , literal[String] operator[SEP] operator[SEP] identifier[LettuceAssert] operator... |
public java.util.List<java.nio.ByteBuffer> getBinaryListValues() {
if (binaryListValues == null) {
binaryListValues = new com.amazonaws.internal.SdkInternalList<java.nio.ByteBuffer>();
}
return binaryListValues;
} | class class_name[name] begin[{]
method[getBinaryListValues, return_type[type[java]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.binaryListValues], ==, literal[null]]] begin[{]
assign[member[.binaryListValues], ClassCreator(arguments=[], body=None... | Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[java] operator[SEP] identifier[nio] operator[SEP] identifier[ByteBuffer] operator[>] identifier[getBinaryListValues] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[binaryListV... |
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int viewWidth = circleRadius + this.getPaddingLeft() + this.getPaddingRight();
int viewHeight = circleRadius + this.getPaddingTop() + this.getPaddingBottom();
int wid... | class class_name[name] begin[{]
method[onMeasure, return_type[void], modifier[protected], parameter[widthMeasureSpec, heightMeasureSpec]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=widthMeasureSpec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Memb... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onMeasure] operator[SEP] Keyword[int] identifier[widthMeasureSpec] , Keyword[int] identifier[heightMeasureSpec] operator[SEP] {
Keyword[super] operator[SEP] identifier[onMeasure] operator[SEP] identifier[widthMeasureSpec] , identifi... |
public com.google.api.ads.admanager.axis.v201902.RoadblockingType getBuiltInRoadblockingType() {
return builtInRoadblockingType;
} | class class_name[name] begin[{]
method[getBuiltInRoadblockingType, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.builtInRoadblockingType]]
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[RoadblockingType] identifier[getBuiltInRoadblockingType] operator[SEP... |
public void addBroadcastSetForScatterFunction(String name, DataSet<?> data) {
this.bcVarsScatter.add(new Tuple2<>(name, data));
} | class class_name[name] begin[{]
method[addBroadcastSetForScatterFunction, return_type[void], modifier[public], parameter[name, data]] begin[{]
THIS[member[None.bcVarsScatter]call[None.add, parameter[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], ... | Keyword[public] Keyword[void] identifier[addBroadcastSetForScatterFunction] operator[SEP] identifier[String] identifier[name] , identifier[DataSet] operator[<] operator[?] operator[>] identifier[data] operator[SEP] {
Keyword[this] operator[SEP] identifier[bcVarsScatter] operator[SEP] identifier[add] operator[SE... |
public <T> T get(String name, Class<T> type){
Object o = context.get(name);
return o == null? null : (T) o;
} | class class_name[name] begin[{]
method[get, return_type[type[T]], modifier[public], parameter[name, type]] begin[{]
local_variable[type[Object], o]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, select... | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] {
identifier[Object] identifier[o] operator[=] identifier[context] operator[SEP] identifi... |
public CuratorFramework newManagedCurator(LifecycleEnvironment env) {
CuratorFramework curator = newCurator();
env.manage(new ManagedCuratorFramework(curator));
return curator;
} | class class_name[name] begin[{]
method[newManagedCurator, return_type[type[CuratorFramework]], modifier[public], parameter[env]] begin[{]
local_variable[type[CuratorFramework], curator]
call[env.manage, parameter[ClassCreator(arguments=[MemberReference(member=curator, postfix_operators=... | Keyword[public] identifier[CuratorFramework] identifier[newManagedCurator] operator[SEP] identifier[LifecycleEnvironment] identifier[env] operator[SEP] {
identifier[CuratorFramework] identifier[curator] operator[=] identifier[newCurator] operator[SEP] operator[SEP] operator[SEP] identifier[env] operator[SEP] ide... |
public <C extends PreClassLoaderInitiator> void removePreInitiator(Class<C> clazz) {
this.preInitiators.remove(clazz.getName());
} | class class_name[name] begin[{]
method[removePreInitiator, return_type[void], modifier[public], parameter[clazz]] begin[{]
THIS[member[None.preInitiators]call[None.remove, parameter[call[clazz.getName, parameter[]]]]]
end[}]
END[}] | Keyword[public] operator[<] identifier[C] Keyword[extends] identifier[PreClassLoaderInitiator] operator[>] Keyword[void] identifier[removePreInitiator] operator[SEP] identifier[Class] operator[<] identifier[C] operator[>] identifier[clazz] operator[SEP] {
Keyword[this] operator[SEP] identifier[preInitiators] ope... |
protected void addTagsInfo(Element e, Content htmltree) {
if (configuration.nocomment) {
return;
}
Content dl = new HtmlTree(HtmlTag.DL);
if (utils.isExecutableElement(e) && !utils.isConstructor(e)) {
addMethodInfo((ExecutableElement)e, dl);
}
Cont... | class class_name[name] begin[{]
method[addTagsInfo, return_type[void], modifier[protected], parameter[e, htmltree]] begin[{]
if[member[configuration.nocomment]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[Content], dl]
... | Keyword[protected] Keyword[void] identifier[addTagsInfo] operator[SEP] identifier[Element] identifier[e] , identifier[Content] identifier[htmltree] operator[SEP] {
Keyword[if] operator[SEP] identifier[configuration] operator[SEP] identifier[nocomment] operator[SEP] {
Keyword[return] operator[SEP]
... |
public java.lang.String getContainer() {
java.lang.Object ref = container_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cont... | class class_name[name] begin[{]
method[getContainer, return_type[type[java]], modifier[public], parameter[]] begin[{]
local_variable[type[java], ref]
if[binary_operation[member[.ref], instanceof, type[java]]] begin[{]
return[Cast(expression=MemberReference(member=ref, postfi... | Keyword[public] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[getContainer] operator[SEP] operator[SEP] {
identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifier[container_] operator[SEP] Keyword[if] ope... |
public void setResourceTypes(List<String> resourceTypes) {
if ((resourceTypes != null) && !resourceTypes.isEmpty()) {
addFilterQuery(CmsSearchField.FIELD_TYPE, resourceTypes, false, false);
}
} | class class_name[name] begin[{]
method[setResourceTypes, return_type[void], modifier[public], parameter[resourceTypes]] begin[{]
if[binary_operation[binary_operation[member[.resourceTypes], !=, literal[null]], &&, call[resourceTypes.isEmpty, parameter[]]]] begin[{]
call[... | Keyword[public] Keyword[void] identifier[setResourceTypes] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[resourceTypes] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[resourceTypes] operator[!=] Other[null] operator[SEP] operator[&&] operator[!] identifi... |
public void marshall(ListLicenseSpecificationsForResourceRequest listLicenseSpecificationsForResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (listLicenseSpecificationsForResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[listLicenseSpecificationsForResourceRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.listLicenseSpecificationsForResourceRequest], ==, literal[null]]] begin[{]
ThrowStat... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListLicenseSpecificationsForResourceRequest] identifier[listLicenseSpecificationsForResourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[listLicenseSpecifi... |
public static short readShortLittleEndian(InputStream io) throws IOException {
int value = io.read();
if (value < 0) throw new EOFException();
int i = io.read();
if (i < 0) throw new EOFException();
return (short)(value | (i << 8));
} | class class_name[name] begin[{]
method[readShortLittleEndian, return_type[type[short]], modifier[public static], parameter[io]] begin[{]
local_variable[type[int], value]
if[binary_operation[member[.value], <, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], bod... | Keyword[public] Keyword[static] Keyword[short] identifier[readShortLittleEndian] operator[SEP] identifier[InputStream] identifier[io] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[int] identifier[value] operator[=] identifier[io] operator[SEP] identifier[read] operator[SEP] operator[SEP] operat... |
private static String requireJsConfigErrorMessage(Map.Entry<String, String> webJar) {
return "Could not read WebJar RequireJS config for: " + webJar.getKey() + " " + webJar.getValue() + "\n" +
"Please file a bug at: http://github.com/webjars/" + webJar.getKey() + "/issues/new";
} | class class_name[name] begin[{]
method[requireJsConfigErrorMessage, return_type[type[String]], modifier[private static], parameter[webJar]] begin[{]
return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Could not read WebJ... | Keyword[private] Keyword[static] identifier[String] identifier[requireJsConfigErrorMessage] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] identifier[webJar] operator[SEP] {
Keyword[return] literal[String] operator[+] identifier[webJ... |
public static <R, T> R[] apply(R[] result, T[] array, Functor<R, T> functor) {
for (int i = 0; i < array.length; ++i) result[i] = functor.invoke(array[i]);
return result;
} | class class_name[name] begin[{]
method[apply, return_type[type[R]], modifier[public static], parameter[result, array, functor]] begin[{]
ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selector... | Keyword[public] Keyword[static] operator[<] identifier[R] , identifier[T] operator[>] identifier[R] operator[SEP] operator[SEP] identifier[apply] operator[SEP] identifier[R] operator[SEP] operator[SEP] identifier[result] , identifier[T] operator[SEP] operator[SEP] identifier[array] , identifier[Functor] operator[<] ... |
@Override
protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder) {
if (isMultiOperation()) {
// for multi resource operation, return always true
return true;
} else {
// check for single resource operation
retur... | class class_name[name] begin[{]
method[checkResourcePermissions, return_type[type[boolean]], modifier[protected], parameter[required, neededForFolder]] begin[{]
if[call[.isMultiOperation, parameter[]]] begin[{]
return[literal[true]]
else begin[{]
return[SuperMeth... | annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[checkResourcePermissions] operator[SEP] identifier[CmsPermissionSet] identifier[required] , Keyword[boolean] identifier[neededForFolder] operator[SEP] {
Keyword[if] operator[SEP] identifier[isMultiOperation] operator[SEP] operator... |
private boolean hasAbstractPackagePrivateSuperClassWithImplementation(Class<?> clazz, BridgeMethod bridgeMethod) {
Class<?> superClass = clazz.getSuperclass();
while (superClass != null) {
if (Modifier.isAbstract(superClass.getModifiers()) && Reflections.isPackagePrivate(superClass.getModifi... | class class_name[name] begin[{]
method[hasAbstractPackagePrivateSuperClassWithImplementation, return_type[type[boolean]], modifier[private], parameter[clazz, bridgeMethod]] begin[{]
local_variable[type[Class], superClass]
while[binary_operation[member[.superClass], !=, literal[null]]] b... | Keyword[private] Keyword[boolean] identifier[hasAbstractPackagePrivateSuperClassWithImplementation] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[BridgeMethod] identifier[bridgeMethod] operator[SEP] {
identifier[Class] operator[<] operator[?] operator[>] iden... |
public Collection<HotlistTag> getHotList(String period, int count) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_GET_HOT_LIST);
parameters.put("period", period);
parameters.put("count", "" + count);
Res... | class class_name[name] begin[{]
method[getHotList, return_type[type[Collection]], modifier[public], parameter[period, count]] begin[{]
local_variable[type[Map], parameters]
call[parameters.put, parameter[literal["method"], member[.METHOD_GET_HOT_LIST]]]
call[parameters.p... | Keyword[public] identifier[Collection] operator[<] identifier[HotlistTag] operator[>] identifier[getHotList] operator[SEP] identifier[String] identifier[period] , Keyword[int] identifier[count] operator[SEP] Keyword[throws] identifier[FlickrException] {
identifier[Map] operator[<] identifier[String] , identifi... |
public static String tr(String input, String from, String to) {
assert from.length() == to.length();
StringBuilder sb = null;
int len = input.length();
for (int i = 0; i < len; i++) {
int ind = from.indexOf(input.charAt(i));
if (ind >= 0) {
if (sb == null) {
sb = ne... | class class_name[name] begin[{]
method[tr, return_type[type[String]], modifier[public static], parameter[input, from, to]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=from, selectors=[], t... | Keyword[public] Keyword[static] identifier[String] identifier[tr] operator[SEP] identifier[String] identifier[input] , identifier[String] identifier[from] , identifier[String] identifier[to] operator[SEP] {
Keyword[assert] identifier[from] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[=... |
@Override
protected Connection getReadConnection() throws CpoException {
Connection connection = getStaticConnection();
setConnectionBusy(connection);
return connection;
} | class class_name[name] begin[{]
method[getReadConnection, return_type[type[Connection]], modifier[protected], parameter[]] begin[{]
local_variable[type[Connection], connection]
call[.setConnectionBusy, parameter[member[.connection]]]
return[member[.connection]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[protected] identifier[Connection] identifier[getReadConnection] operator[SEP] operator[SEP] Keyword[throws] identifier[CpoException] {
identifier[Connection] identifier[connection] operator[=] identifier[getStaticConnection] operator[SEP] operator[SEP] operator[SEP] ide... |
@Override
public String toJSON() {
JSONObject o = new JSONObject();
try {
o.put(KEY_TYPE, mType);
o.put(KEY_ACTION, mAction);
return o.toString();
} catch (JSONException e) {
Log.e(TAG, "Error marshalling action:", e);
return "";
... | class class_name[name] begin[{]
method[toJSON, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[JSONObject], o]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=KEY_TYPE, postfix_operators=[], prefix_oper... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toJSON] operator[SEP] operator[SEP] {
identifier[JSONObject] identifier[o] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
identifier[o] operator[SEP] identifier[pu... |
public static StringBuilder appendFunctionArgs(StringBuilder sb, List<Term<?>> list) {
Term<?> prev = null, pprev = null;
for (Term<?> elem : list) {
boolean sep = true;
if (elem instanceof TermOperator && ((TermOperator) elem).getValue() == ',')
sep = f... | class class_name[name] begin[{]
method[appendFunctionArgs, return_type[type[StringBuilder]], modifier[public static], parameter[sb, list]] begin[{]
local_variable[type[Term], prev]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Var... | Keyword[public] Keyword[static] identifier[StringBuilder] identifier[appendFunctionArgs] operator[SEP] identifier[StringBuilder] identifier[sb] , identifier[List] operator[<] identifier[Term] operator[<] operator[?] operator[>] operator[>] identifier[list] operator[SEP] {
identifier[Term] operator[<] operator[?... |
public void setGrants(java.util.Collection<GrantListEntry> grants) {
if (grants == null) {
this.grants = null;
return;
}
this.grants = new com.amazonaws.internal.SdkInternalList<GrantListEntry>(grants);
} | class class_name[name] begin[{]
method[setGrants, return_type[void], modifier[public], parameter[grants]] begin[{]
if[binary_operation[member[.grants], ==, literal[null]]] begin[{]
assign[THIS[member[None.grants]], literal[null]]
return[None]
else beg... | Keyword[public] Keyword[void] identifier[setGrants] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[GrantListEntry] operator[>] identifier[grants] operator[SEP] {
Keyword[if] operator[SEP] identifier[grants] operator[==] Other[null] operat... |
@Deprecated
public static Builder builder(FileSystem originFs, FileStatus origin, Path datasetRoot,
CopyConfiguration copyConfiguration) {
Path relativePath = PathUtils.relativizePath(origin.getPath(), datasetRoot);
Path targetRoot = new Path(copyConfiguration.getPublishDir(), datasetRoot.getName());
... | class class_name[name] begin[{]
method[builder, return_type[type[Builder]], modifier[public static], parameter[originFs, origin, datasetRoot, copyConfiguration]] begin[{]
local_variable[type[Path], relativePath]
local_variable[type[Path], targetRoot]
local_variable[type[Path], targetPat... | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[Builder] identifier[builder] operator[SEP] identifier[FileSystem] identifier[originFs] , identifier[FileStatus] identifier[origin] , identifier[Path] identifier[datasetRoot] , identifier[CopyConfiguration] identifier[copyConfiguration] o... |
@EventListener
public void logAuthenticationTransactionFailureEvent(final CasAuthenticationTransactionFailureEvent e) {
LOGGER.debug(AUTHN_TX_FAIL_MSG, e.getCredential(), e.getFailures());
} | class class_name[name] begin[{]
method[logAuthenticationTransactionFailureEvent, return_type[void], modifier[public], parameter[e]] begin[{]
call[LOGGER.debug, parameter[member[.AUTHN_TX_FAIL_MSG], call[e.getCredential, parameter[]], call[e.getFailures, parameter[]]]]
end[}]
END[}] | annotation[@] identifier[EventListener] Keyword[public] Keyword[void] identifier[logAuthenticationTransactionFailureEvent] operator[SEP] Keyword[final] identifier[CasAuthenticationTransactionFailureEvent] identifier[e] operator[SEP] {
identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] identifier[AU... |
@Nullable protected de.uniulm.omi.cloudiator.flexiant.client.domain.Server searchByIp(
Set<de.uniulm.omi.cloudiator.flexiant.client.domain.Server> servers, String ip) {
for (de.uniulm.omi.cloudiator.flexiant.client.domain.Server server : servers) {
if (server.getPublicIpAddress() != null && ... | class class_name[name] begin[{]
method[searchByIp, return_type[type[de]], modifier[protected], parameter[servers, ip]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getPubli... | annotation[@] identifier[Nullable] Keyword[protected] identifier[de] operator[SEP] identifier[uniulm] operator[SEP] identifier[omi] operator[SEP] identifier[cloudiator] operator[SEP] identifier[flexiant] operator[SEP] identifier[client] operator[SEP] identifier[domain] operator[SEP] identifier[Server] identifier[search... |
public static <TERM> Iterable<Map<TERM, Double>> tfs(Iterable<Collection<TERM>> documents, TfType type)
{
List<Map<TERM, Double>> tfs = new ArrayList<Map<TERM, Double>>();
for (Collection<TERM> document : documents)
{
tfs.add(tf(document, type));
}
return tfs;
... | class class_name[name] begin[{]
method[tfs, return_type[type[Iterable]], modifier[public static], parameter[documents, type]] begin[{]
local_variable[type[List], tfs]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvoca... | Keyword[public] Keyword[static] operator[<] identifier[TERM] operator[>] identifier[Iterable] operator[<] identifier[Map] operator[<] identifier[TERM] , identifier[Double] operator[>] operator[>] identifier[tfs] operator[SEP] identifier[Iterable] operator[<] identifier[Collection] operator[<] identifier[TERM] operator... |
public void setUnitsString( String units) {
this.units = units;
forVar.addAttribute( new Attribute(CDM.UNITS, units));
} | class class_name[name] begin[{]
method[setUnitsString, return_type[void], modifier[public], parameter[units]] begin[{]
assign[THIS[member[None.units]], member[.units]]
call[forVar.addAttribute, parameter[ClassCreator(arguments=[MemberReference(member=UNITS, postfix_operators=[],... | Keyword[public] Keyword[void] identifier[setUnitsString] operator[SEP] identifier[String] identifier[units] operator[SEP] {
Keyword[this] operator[SEP] identifier[units] operator[=] identifier[units] operator[SEP] identifier[forVar] operator[SEP] identifier[addAttribute] operator[SEP] Keyword[new] identifier[Att... |
@Override
public SpatialReferenceSystem queryForSameId(SpatialReferenceSystem data)
throws SQLException {
SpatialReferenceSystem srs = super.queryForSameId(data);
setDefinition_12_063(srs);
return srs;
} | class class_name[name] begin[{]
method[queryForSameId, return_type[type[SpatialReferenceSystem]], modifier[public], parameter[data]] begin[{]
local_variable[type[SpatialReferenceSystem], srs]
call[.setDefinition_12_063, parameter[member[.srs]]]
return[member[.srs]]
end[}]
EN... | annotation[@] identifier[Override] Keyword[public] identifier[SpatialReferenceSystem] identifier[queryForSameId] operator[SEP] identifier[SpatialReferenceSystem] identifier[data] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[SpatialReferenceSystem] identifier[srs] operator[=] Keyword[super]... |
public void toFile(File file) throws IOException {
String[] sitemap = toStringArray();
try(BufferedWriter writer = new BufferedWriter(new FileWriter(file))) {
for (String string : sitemap) {
writer.write(string);
}
}
} | class class_name[name] begin[{]
method[toFile, return_type[void], modifier[public], parameter[file]] begin[{]
local_variable[type[String], sitemap]
TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberRefer... | Keyword[public] Keyword[void] identifier[toFile] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] operator[SEP] operator[SEP] identifier[sitemap] operator[=] identifier[toStringArray] operator[SEP] operator[SEP] operator[SEP] Keyword[try] ... |
public void prepare(StringDistance[] innerDistances) {
if (!fieldsPrepared) {
for (int i=0; i<size(); i++) {
StringDistance d = innerDistances[ getDistanceLearnerIndex(i) ];
set( i, d.prepare( get(i).unwrap() ) );
}
}
} | class class_name[name] begin[{]
method[prepare, return_type[void], modifier[public], parameter[innerDistances]] begin[{]
if[member[.fieldsPrepared]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar... | Keyword[public] Keyword[void] identifier[prepare] operator[SEP] identifier[StringDistance] operator[SEP] operator[SEP] identifier[innerDistances] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[fieldsPrepared] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] opera... |
@Override
public final synchronized void makeWith(final Map<String, Object> pReqVars,
final FactoryAndServlet pFactoryAndServlet) throws Exception {
@SuppressWarnings("unchecked")
AFactoryAppBeans<RS> factoryAppBeans =
(AFactoryAppBeans<RS>) pFactoryAndServlet.getFactoryAppBeans();
File webAppPa... | class class_name[name] begin[{]
method[makeWith, return_type[void], modifier[synchronized final public], parameter[pReqVars, pFactoryAndServlet]] begin[{]
local_variable[type[AFactoryAppBeans], factoryAppBeans]
local_variable[type[File], webAppPath]
call[factoryAppBeans.setWebAp... | annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[synchronized] Keyword[void] identifier[makeWith] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pReqVars] , Keyword[final] identifier[FactoryAndServlet] identifier[pFactor... |
private String encodeURL(String url) {
return url.startsWith("/") || url.startsWith(".") ? url : url.startsWith("web/") ? "/" + url : "/web/" + url;
} | class class_name[name] begin[{]
method[encodeURL, return_type[type[String]], modifier[private], parameter[url]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/")], ... | Keyword[private] identifier[String] identifier[encodeURL] operator[SEP] identifier[String] identifier[url] operator[SEP] {
Keyword[return] identifier[url] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[||] identifier[url] operator[SEP] identifier[startsWith] operator[SE... |
public static Scriptable getFunctionPrototype(Scriptable scope) {
return TopLevel.getBuiltinPrototype(getTopLevelScope(scope),
TopLevel.Builtins.Function);
} | class class_name[name] begin[{]
method[getFunctionPrototype, return_type[type[Scriptable]], modifier[public static], parameter[scope]] begin[{]
return[call[TopLevel.getBuiltinPrototype, parameter[call[.getTopLevelScope, parameter[member[.scope]]], member[TopLevel.Builtins.Function]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[Scriptable] identifier[getFunctionPrototype] operator[SEP] identifier[Scriptable] identifier[scope] operator[SEP] {
Keyword[return] identifier[TopLevel] operator[SEP] identifier[getBuiltinPrototype] operator[SEP] identifier[getTopLevelScope] operator[SEP] identifier[sco... |
public BankcardRecognitionResponse bankcardRecognition(BankcardRecognitionRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImage(), "Image should not be null or empty!");
InternalRequest internalRequest =
createRequest(HttpM... | class class_name[name] begin[{]
method[bankcardRecognition, return_type[type[BankcardRecognitionResponse]], modifier[public], parameter[request]] begin[{]
call[.checkNotNull, parameter[member[.request], literal["request should not be null."]]]
call[.checkStringNotEmpty, paramete... | Keyword[public] identifier[BankcardRecognitionResponse] identifier[bankcardRecognition] operator[SEP] identifier[BankcardRecognitionRequest] identifier[request] operator[SEP] {
identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[checkStringNotEmpty... |
public static File writeUtf8String(String content, String path) throws IORuntimeException {
return writeString(content, path, CharsetUtil.CHARSET_UTF_8);
} | class class_name[name] begin[{]
method[writeUtf8String, return_type[type[File]], modifier[public static], parameter[content, path]] begin[{]
return[call[.writeString, parameter[member[.content], member[.path], member[CharsetUtil.CHARSET_UTF_8]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[File] identifier[writeUtf8String] operator[SEP] identifier[String] identifier[content] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IORuntimeException] {
Keyword[return] identifier[writeString] operator[SEP] identifier[content] , iden... |
public static String createTypeSignature(final String methodName, final Class<?>[] paramTypes) {
final StringBuffer sb = new StringBuffer();
sb.append(methodName);
sb.append("(");
for (int i = 0; i < paramTypes.length; i++) {
if (i > 0) {
sb.append(", ")... | class class_name[name] begin[{]
method[createTypeSignature, return_type[type[String]], modifier[public static], parameter[methodName, paramTypes]] begin[{]
local_variable[type[StringBuffer], sb]
call[sb.append, parameter[member[.methodName]]]
call[sb.append, parameter[li... | Keyword[public] Keyword[static] identifier[String] identifier[createTypeSignature] operator[SEP] Keyword[final] identifier[String] identifier[methodName] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[paramTypes] operator[SEP] {
Keyword[final] ident... |
private void handleAsyncError(boolean forceQueue, IOException exception, TCPReadCompletedCallback inCallback) {
boolean fireHere = true;
if (forceQueue) {
// Error must be returned on a separate thread.
// Reuse queuedWork object (performance), but reset the error parameters.
... | class class_name[name] begin[{]
method[handleAsyncError, return_type[void], modifier[private], parameter[forceQueue, exception, inCallback]] begin[{]
local_variable[type[boolean], fireHere]
if[member[.forceQueue]] begin[{]
call[queuedWork.setErrorParameters, para... | Keyword[private] Keyword[void] identifier[handleAsyncError] operator[SEP] Keyword[boolean] identifier[forceQueue] , identifier[IOException] identifier[exception] , identifier[TCPReadCompletedCallback] identifier[inCallback] operator[SEP] {
Keyword[boolean] identifier[fireHere] operator[=] literal[boolean] oper... |
public AclActions getPermission(String user, List<String> groups) {
if (user.equals(mOwningUser)) {
return new AclActions(getOwningUserActions());
}
if (hasExtended()) {
AclActions actions = mExtendedEntries.getNamedUser(user);
if (actions != null) {
AclActions result = new AclActi... | class class_name[name] begin[{]
method[getPermission, return_type[type[AclActions]], modifier[public], parameter[user, groups]] begin[{]
if[call[user.equals, parameter[member[.mOwningUser]]]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getOwningUser... | Keyword[public] identifier[AclActions] identifier[getPermission] operator[SEP] identifier[String] identifier[user] , identifier[List] operator[<] identifier[String] operator[>] identifier[groups] operator[SEP] {
Keyword[if] operator[SEP] identifier[user] operator[SEP] identifier[equals] operator[SEP] identifier... |
public void password(final String password) {
SetupHelper helper = DependencyManager.getOrCreate(SetupHelper.class);
helper.setPassword(password);
} | class class_name[name] begin[{]
method[password, return_type[void], modifier[public], parameter[password]] begin[{]
local_variable[type[SetupHelper], helper]
call[helper.setPassword, parameter[member[.password]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[password] operator[SEP] Keyword[final] identifier[String] identifier[password] operator[SEP] {
identifier[SetupHelper] identifier[helper] operator[=] identifier[DependencyManager] operator[SEP] identifier[getOrCreate] operator[SEP] identifier[SetupHelper] operator[SEP] Ke... |
public static CqlDuration from(@NonNull String input) {
boolean isNegative = input.startsWith("-");
String source = isNegative ? input.substring(1) : input;
if (source.startsWith("P")) {
if (source.endsWith("W")) {
return parseIso8601WeekFormat(isNegative, source);
}
if (source.co... | class class_name[name] begin[{]
method[from, return_type[type[CqlDuration]], modifier[public static], parameter[input]] begin[{]
local_variable[type[boolean], isNegative]
local_variable[type[String], source]
if[call[source.startsWith, parameter[literal["P"]]]] begin[{]
... | Keyword[public] Keyword[static] identifier[CqlDuration] identifier[from] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[input] operator[SEP] {
Keyword[boolean] identifier[isNegative] operator[=] identifier[input] operator[SEP] identifier[startsWith] operator[SEP] literal[String] op... |
public void marshall(ReplicationTaskStats replicationTaskStats, ProtocolMarshaller protocolMarshaller) {
if (replicationTaskStats == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(replicationTaskStat... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[replicationTaskStats, protocolMarshaller]] begin[{]
if[binary_operation[member[.replicationTaskStats], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Liter... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ReplicationTaskStats] identifier[replicationTaskStats] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[replicationTaskStats] operator[==] Other[null] operator[SEP] {
... |
public static void loadFromDiskAnd( DataFileManager manager, IndyObjectMapper serializer,
final ChangeSummary summary, Consumer<ArtifactStore> consumer )
{
loadFromDiskAnd( manager, serializer, null, summary, consumer );
} | class class_name[name] begin[{]
method[loadFromDiskAnd, return_type[void], modifier[public static], parameter[manager, serializer, summary, consumer]] begin[{]
call[.loadFromDiskAnd, parameter[member[.manager], member[.serializer], literal[null], member[.summary], member[.consumer]]]
end[}]... | Keyword[public] Keyword[static] Keyword[void] identifier[loadFromDiskAnd] operator[SEP] identifier[DataFileManager] identifier[manager] , identifier[IndyObjectMapper] identifier[serializer] , Keyword[final] identifier[ChangeSummary] identifier[summary] , identifier[Consumer] operator[<] identifier[ArtifactStore] ope... |
public static <T> Stream<T> cycle(T...items) {
return IntStream.iterate(0, i -> i == items.length - 1 ? 0 : i + 1).mapToObj(i -> items[i]);
} | class class_name[name] begin[{]
method[cycle, return_type[type[Stream]], modifier[public static], parameter[items]] begin[{]
return[call[IntStream.iterate, parameter[literal[0], LambdaExpression(body=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], pr... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Stream] operator[<] identifier[T] operator[>] identifier[cycle] operator[SEP] identifier[T] operator[...] identifier[items] operator[SEP] {
Keyword[return] identifier[IntStream] operator[SEP] identifier[iterate] operator[SEP] Other[... |
@SafeVarargs
public static <T> UnmodIterable<T> xformArray(T... items) {
return Xform.of(Arrays.asList(items));
} | class class_name[name] begin[{]
method[xformArray, return_type[type[UnmodIterable]], modifier[public static], parameter[items]] begin[{]
return[call[Xform.of, parameter[call[Arrays.asList, parameter[member[.items]]]]]]
end[}]
END[}] | annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[UnmodIterable] operator[<] identifier[T] operator[>] identifier[xformArray] operator[SEP] identifier[T] operator[...] identifier[items] operator[SEP] {
Keyword[return] identifier[Xform] operator... |
public void createUniqueData()
{
LoginGenerator.LoginRecord unique_login;
unique_login = random_login_generator.createUniqueLogin("voltdb", true);
doLogin(unique_login);
unique_login = random_login_generator.createUniqueLogin("voltdb2", false);
doLogin(unique_login);
} | class class_name[name] begin[{]
method[createUniqueData, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[LoginGenerator], unique_login]
assign[member[.unique_login], call[random_login_generator.createUniqueLogin, parameter[literal["voltdb"], literal[true]]... | Keyword[public] Keyword[void] identifier[createUniqueData] operator[SEP] operator[SEP] {
identifier[LoginGenerator] operator[SEP] identifier[LoginRecord] identifier[unique_login] operator[SEP] identifier[unique_login] operator[=] identifier[random_login_generator] operator[SEP] identifier[createUniqueLogin] oper... |
public boolean contains(int o)
{
if (isEmpty() || o > last || o < 0) {
return false;
}
// check if the element is within a literal word
int block = maxLiteralLengthDivision(o);
int bit = maxLiteralLengthModulus(o);
for (int i = 0; i <= lastWordIndex; i++) {
final int w =... | class class_name[name] begin[{]
method[contains, return_type[type[boolean]], modifier[public], parameter[o]] begin[{]
if[binary_operation[binary_operation[call[.isEmpty, parameter[]], ||, binary_operation[member[.o], >, member[.last]]], ||, binary_operation[member[.o], <, literal[0]]]] begin[{]... | Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] Keyword[int] identifier[o] operator[SEP] {
Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[||] identifier[o] operator[>] identifier[last] operator[||] identifier[o] operator[<] Other[0] operator[SEP] {
... |
public void populate() throws Exception {
for (int i = 0; i < _initialCapacity; i++) {
String str = "key." + i;
byte[] key = str.getBytes();
byte[] value = createDataForKey(str);
_store.put(key, value);
}
_store.sync();
} | class class_name[name] begin[{]
method[populate, return_type[void], modifier[public], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=Literal(postf... | Keyword[public] Keyword[void] identifier[populate] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[_initialCapacity] operator[SEP] identifier[i] operator[++] operator[... |
public void grantOwnership(Jid jid) throws XMPPErrorException, NoResponseException, NotConnectedException, InterruptedException {
changeAffiliationByAdmin(jid, MUCAffiliation.owner, null);
} | class class_name[name] begin[{]
method[grantOwnership, return_type[void], modifier[public], parameter[jid]] begin[{]
call[.changeAffiliationByAdmin, parameter[member[.jid], member[MUCAffiliation.owner], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[grantOwnership] operator[SEP] identifier[Jid] identifier[jid] operator[SEP] Keyword[throws] identifier[XMPPErrorException] , identifier[NoResponseException] , identifier[NotConnectedException] , identifier[InterruptedException] {
identifier[changeAffiliationByAdmin] op... |
public static BitString convertDoubleToFixedPointBits(double value)
{
if (value < 0.0d || value >= 1.0d)
{
throw new IllegalArgumentException("Value must be between 0 and 1.");
}
StringBuilder bits = new StringBuilder(64);
double bitValue = 0.5d;
double d ... | class class_name[name] begin[{]
method[convertDoubleToFixedPointBits, return_type[type[BitString]], modifier[public static], parameter[value]] begin[{]
if[binary_operation[binary_operation[member[.value], <, literal[0.0d]], ||, binary_operation[member[.value], >=, literal[1.0d]]]] begin[{]
... | Keyword[public] Keyword[static] identifier[BitString] identifier[convertDoubleToFixedPointBits] operator[SEP] Keyword[double] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[<] literal[Float] operator[||] identifier[value] operator[>=] literal[Float] operator[SEP] {
... |
private static <K, V> Set<K> synchronizedCopyKeys(Map<K, V> map) {
if (map == null) {
return new HashSet<K>();
}
synchronized (map) {
return new HashSet<K>(map.keySet());
}
} | class class_name[name] begin[{]
method[synchronizedCopyKeys, return_type[type[Set]], modifier[private static], parameter[map]] begin[{]
if[binary_operation[member[.map], ==, literal[null]]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfi... | Keyword[private] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Set] operator[<] identifier[K] operator[>] identifier[synchronizedCopyKeys] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[map] operator[SEP] {
Keyword[if] operator[... |
public SDVariable conv1d(SDVariable input, SDVariable weights, Conv1DConfig conv1DConfig) {
Conv1D conv1D = Conv1D.builder()
.inputFunctions(new SDVariable[]{input, weights})
.sameDiff(sameDiff())
.config(conv1DConfig)
.build();
return con... | class class_name[name] begin[{]
method[conv1d, return_type[type[SDVariable]], modifier[public], parameter[input, weights, conv1DConfig]] begin[{]
local_variable[type[Conv1D], conv1D]
return[call[conv1D.outputVariable, parameter[]]]
end[}]
END[}] | Keyword[public] identifier[SDVariable] identifier[conv1d] operator[SEP] identifier[SDVariable] identifier[input] , identifier[SDVariable] identifier[weights] , identifier[Conv1DConfig] identifier[conv1DConfig] operator[SEP] {
identifier[Conv1D] identifier[conv1D] operator[=] identifier[Conv1D] operator[SEP] id... |
public com.google.api.ads.admanager.axis.v201811.Money getBillableRevenueOverride() {
return billableRevenueOverride;
} | class class_name[name] begin[{]
method[getBillableRevenueOverride, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.billableRevenueOverride]]
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[v201811] operator[SEP] identifier[Money] identifier[getBillableRevenueOverride] operator[SEP] operator[... |
private void readFieldValues(EmulatedFieldsForLoading emulatedFields)
throws OptionalDataException, InvalidClassException, IOException {
EmulatedFields.ObjectSlot[] slots = emulatedFields.emulatedFields().slots();
for (ObjectSlot element : slots) {
element.defaulted = false;
... | class class_name[name] begin[{]
method[readFieldValues, return_type[void], modifier[private], parameter[emulatedFields]] begin[{]
local_variable[type[EmulatedFields], slots]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefe... | Keyword[private] Keyword[void] identifier[readFieldValues] operator[SEP] identifier[EmulatedFieldsForLoading] identifier[emulatedFields] operator[SEP] Keyword[throws] identifier[OptionalDataException] , identifier[InvalidClassException] , identifier[IOException] {
identifier[EmulatedFields] operator[SEP] ident... |
public static MozuUrl deletePriceListEntryUrl(String currencyCode, String priceListCode, String productCode, DateTime startDate)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/pricelists/{priceListCode}/entries/{productCode}/{currencyCode}?startDate={startDate}");
formatter.formatUrl("... | class class_name[name] begin[{]
method[deletePriceListEntryUrl, return_type[type[MozuUrl]], modifier[public static], parameter[currencyCode, priceListCode, productCode, startDate]] begin[{]
local_variable[type[UrlFormatter], formatter]
call[formatter.formatUrl, parameter[literal["curren... | Keyword[public] Keyword[static] identifier[MozuUrl] identifier[deletePriceListEntryUrl] operator[SEP] identifier[String] identifier[currencyCode] , identifier[String] identifier[priceListCode] , identifier[String] identifier[productCode] , identifier[DateTime] identifier[startDate] operator[SEP] {
identifier[... |
@SuppressWarnings("unchecked")
<HK> byte[] rawHashKey(HK hashKey) {
Assert.notNull(hashKey, "non null hash key required");
return hashKeySerializer().serialize(hashKey);
} | class class_name[name] begin[{]
method[rawHashKey, return_type[type[byte]], modifier[default], parameter[hashKey]] begin[{]
call[Assert.notNull, parameter[member[.hashKey], literal["non null hash key required"]]]
return[call[.hashKeySerializer, parameter[]]]
end[}]
END[}] | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] operator[<] identifier[HK] operator[>] Keyword[byte] operator[SEP] operator[SEP] identifier[rawHashKey] operator[SEP] identifier[HK] identifier[hashKey] operator[SEP] {
identifier[Assert] operator[SEP] identifier[notNull] oper... |
@Urlencoded
static private ServiceType decodeLeadProtocol(String protocol) throws IOException {
if (protocol.equals("dods"))
return ServiceType.OPENDAP;
else if (protocol.equals("dap4"))
return ServiceType.DAP4;
else if (protocol.equals("httpserver") || protocol.equals("nodods"))
retur... | class class_name[name] begin[{]
method[decodeLeadProtocol, return_type[type[ServiceType]], modifier[private static], parameter[protocol]] begin[{]
if[call[protocol.equals, parameter[literal["dods"]]]] begin[{]
return[member[ServiceType.OPENDAP]]
else begin[{]
if[call[protoco... | annotation[@] identifier[Urlencoded] Keyword[static] Keyword[private] identifier[ServiceType] identifier[decodeLeadProtocol] operator[SEP] identifier[String] identifier[protocol] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[protocol] operator[SEP] identifier[equals... |
static ValidatorFactory createValidatorFactory()
{
Configuration configuration = Validation.byDefaultProvider().configure();
Configuration<?> conf = configuration.traversableResolver(new IronJacamarTraversableResolver());
return conf.buildValidatorFactory();
} | class class_name[name] begin[{]
method[createValidatorFactory, return_type[type[ValidatorFactory]], modifier[static], parameter[]] begin[{]
local_variable[type[Configuration], configuration]
local_variable[type[Configuration], conf]
return[call[conf.buildValidatorFactory, parameter[]]]
... | Keyword[static] identifier[ValidatorFactory] identifier[createValidatorFactory] operator[SEP] operator[SEP] {
identifier[Configuration] identifier[configuration] operator[=] identifier[Validation] operator[SEP] identifier[byDefaultProvider] operator[SEP] operator[SEP] operator[SEP] identifier[configure] operator... |
private void firePieceCompleted(Piece piece) throws IOException {
for (PeerActivityListener listener : this.listeners) {
listener.handlePieceCompleted(this, piece);
}
} | class class_name[name] begin[{]
method[firePieceCompleted, return_type[void], modifier[private], parameter[piece]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None,... | Keyword[private] Keyword[void] identifier[firePieceCompleted] operator[SEP] identifier[Piece] identifier[piece] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[for] operator[SEP] identifier[PeerActivityListener] identifier[listener] operator[:] Keyword[this] operator[SEP] identifier[listeners] o... |
private void calculateStrategy(final Strategy strategy, final int o1, final int o2) {
if (Strategy.OFFSET == strategy) {
this.offset = o1;
this.limit = o2;
} else if (Strategy.PAGES == strategy) {
this.offset = (o1 * o2) - o2;
this.limit = o2;
}
... | class class_name[name] begin[{]
method[calculateStrategy, return_type[void], modifier[private], parameter[strategy, o1, o2]] begin[{]
if[binary_operation[member[Strategy.OFFSET], ==, member[.strategy]]] begin[{]
assign[THIS[member[None.offset]], member[.o1]]
... | Keyword[private] Keyword[void] identifier[calculateStrategy] operator[SEP] Keyword[final] identifier[Strategy] identifier[strategy] , Keyword[final] Keyword[int] identifier[o1] , Keyword[final] Keyword[int] identifier[o2] operator[SEP] {
Keyword[if] operator[SEP] identifier[Strategy] operator[SEP] identifier[O... |
public List<String> getSearchDimensions() {
List<String> dimensions = new ArrayList<String>();
for (int i = 0; i < m_Space.dimensions(); ++i) {
dimensions.add(m_Space.getDimension(i).getLabel());
}
return dimensions;
} | class class_name[name] begin[{]
method[getSearchDimensions, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], dimensions]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocatio... | Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getSearchDimensions] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[dimensions] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] op... |
public static ParticipantCreator creator(final String pathServiceSid,
final String pathSessionSid,
final String identifier) {
return new ParticipantCreator(pathServiceSid, pathSessionSid, identifier);
} | class class_name[name] begin[{]
method[creator, return_type[type[ParticipantCreator]], modifier[public static], parameter[pathServiceSid, pathSessionSid, identifier]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=pathServiceSid, postfix_operators=[], prefix_operators=[], qualifier=, se... | Keyword[public] Keyword[static] identifier[ParticipantCreator] identifier[creator] operator[SEP] Keyword[final] identifier[String] identifier[pathServiceSid] , Keyword[final] identifier[String] identifier[pathSessionSid] , Keyword[final] identifier[String] identifier[identifier] operator[SEP] {
Keyword[return]... |
@Override
public void close() throws IOException {
if (!closed) {
closed = true;
nodeCursor = null;
_currToken = null;
}
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
if[member[.closed]] begin[{]
assign[member[.closed], literal[true]]
assign[member[.nodeCursor], literal[null]]
assign[... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] operator[!] identifier[closed] operator[SEP] {
identifier[closed] operator[=] literal[boolean] operator[SEP] identifier[nod... |
@Override
public <C, R> SimpleCase<C, R> selectCase(Expression<? extends C> arg0)
{
// TODO Auto-generated method stub
return null;
} | class class_name[name] begin[{]
method[selectCase, return_type[type[SimpleCase]], modifier[public], parameter[arg0]] begin[{]
return[literal[null]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[C] , identifier[R] operator[>] identifier[SimpleCase] operator[<] identifier[C] , identifier[R] operator[>] identifier[selectCase] operator[SEP] identifier[Expression] operator[<] operator[?] Keyword[extends] identifier[C] operator[>] identifie... |
public Object remove(Object key) {
if (key instanceof Number) {
return remove( ((Number)key).intValue() );
}
else {
return null;
}
} | class class_name[name] begin[{]
method[remove, return_type[type[Object]], modifier[public], parameter[key]] begin[{]
if[binary_operation[member[.key], instanceof, type[Number]]] begin[{]
return[call[.remove, parameter[Cast(expression=MemberReference(member=key, postfix_operators=[],... | Keyword[public] identifier[Object] identifier[remove] operator[SEP] identifier[Object] identifier[key] operator[SEP] {
Keyword[if] operator[SEP] identifier[key] Keyword[instanceof] identifier[Number] operator[SEP] {
Keyword[return] identifier[remove] operator[SEP] operator[SEP] operator[SEP] identifie... |
public void addStore(InstructionHandle handle, XField field) {
getLoadStoreCount(field).storeCount++;
handleToFieldMap.put(handle, field);
} | class class_name[name] begin[{]
method[addStore, return_type[void], modifier[public], parameter[handle, field]] begin[{]
call[.getLoadStoreCount, parameter[member[.field]]]
call[handleToFieldMap.put, parameter[member[.handle], member[.field]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[addStore] operator[SEP] identifier[InstructionHandle] identifier[handle] , identifier[XField] identifier[field] operator[SEP] {
identifier[getLoadStoreCount] operator[SEP] identifier[field] operator[SEP] operator[SEP] identifier[storeCount] operator[++] operator[SEP] ide... |
public static JsonPullParser newParser(Reader reader) {
if (reader == null) {
throw new IllegalArgumentException("'reader' must not be null.");
}
BufferedReader br =
(reader instanceof BufferedReader) ? (BufferedReader) reader : new BufferedReader(
reader);
JsonPullParser parser = new JsonPullPars... | class class_name[name] begin[{]
method[newParser, return_type[type[JsonPullParser]], modifier[public static], parameter[reader]] begin[{]
if[binary_operation[member[.reader], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],... | Keyword[public] Keyword[static] identifier[JsonPullParser] identifier[newParser] operator[SEP] identifier[Reader] identifier[reader] operator[SEP] {
Keyword[if] operator[SEP] identifier[reader] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identifier[IllegalArgumentException] op... |
public static int cudnnGetFilter4dDescriptor(
cudnnFilterDescriptor filterDesc,
int[] dataType, /** image data type */
int[] format,
int[] k, /** number of output feature maps */
int[] c, /** number of input feature maps */
int[] h, /** height of each input filter */
... | class class_name[name] begin[{]
method[cudnnGetFilter4dDescriptor, return_type[type[int]], modifier[public static], parameter[filterDesc, dataType, format, k, c, h, w]] begin[{]
return[call[.checkResult, parameter[call[.cudnnGetFilter4dDescriptorNative, parameter[member[.filterDesc], member[.dataType],... | Keyword[public] Keyword[static] Keyword[int] identifier[cudnnGetFilter4dDescriptor] operator[SEP] identifier[cudnnFilterDescriptor] identifier[filterDesc] , Keyword[int] operator[SEP] operator[SEP] identifier[dataType] , Keyword[int] operator[SEP] operator[SEP] identifier[format] , Keyword[int] operator[SEP] operato... |
public void getService(String serviceName, final GetServiceCallback cb, Object context){
ProtocolHeader header = new ProtocolHeader();
header.setType(ProtocolType.GetService);
GetServiceProtocol p = new GetServiceProtocol(serviceName);
p.setWatcher(false);
ProtocolCallback pcb ... | class class_name[name] begin[{]
method[getService, return_type[void], modifier[public], parameter[serviceName, cb, context]] begin[{]
local_variable[type[ProtocolHeader], header]
call[header.setType, parameter[member[ProtocolType.GetService]]]
local_variable[type[GetServiceProto... | Keyword[public] Keyword[void] identifier[getService] operator[SEP] identifier[String] identifier[serviceName] , Keyword[final] identifier[GetServiceCallback] identifier[cb] , identifier[Object] identifier[context] operator[SEP] {
identifier[ProtocolHeader] identifier[header] operator[=] Keyword[new] identifier... |
public void receiveResultcteRecepcaoOS(
com.fincatto.documentofiscal.cte300.webservices.recepcaoOS.CteRecepcaoOSStub.CteRecepcaoOSResult result
) {
} | class class_name[name] begin[{]
method[receiveResultcteRecepcaoOS, return_type[void], modifier[public], parameter[result]] begin[{]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[receiveResultcteRecepcaoOS] operator[SEP] identifier[com] operator[SEP] identifier[fincatto] operator[SEP] identifier[documentofiscal] operator[SEP] identifier[cte300] operator[SEP] identifier[webservices] operator[SEP] identifier[recepcaoOS] operator[SEP] identifier[CteRecepcao... |
public static void main(String args[]) {
SmapGenerator g = new SmapGenerator();
g.setOutputFileName("foo.java");
SmapStratum s = new SmapStratum("JSP");
s.addFile("foo.jsp");
s.addFile("bar.jsp", "/foo/foo/bar.jsp");
s.addLineData(1, "foo.jsp", 1, 1, 1);
s.addLineData(2, "foo.jsp", 1, 6, 1);
s.addLineDa... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[args]] begin[{]
local_variable[type[SmapGenerator], g]
call[g.setOutputFileName, parameter[literal["foo.java"]]]
local_variable[type[SmapStratum], s]
call[s.addFile... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] identifier[args] operator[SEP] operator[SEP] operator[SEP] {
identifier[SmapGenerator] identifier[g] operator[=] Keyword[new] identifier[SmapGenerator] operator[SEP] operator[SEP] operator[SEP] identifier[g] operator[... |
private void processElementTranslate(GeneratorSingleCluster cluster, Node cur) {
double[] offset = null;
String vstr = ((Element) cur).getAttribute(ATTR_VECTOR);
if(vstr != null && vstr.length() > 0) {
offset = parseVector(vstr);
}
if(offset == null) {
throw new AbortException("No transl... | class class_name[name] begin[{]
method[processElementTranslate, return_type[void], modifier[private], parameter[cluster, cur]] begin[{]
local_variable[type[double], offset]
local_variable[type[String], vstr]
if[binary_operation[binary_operation[member[.vstr], !=, literal[null]],... | Keyword[private] Keyword[void] identifier[processElementTranslate] operator[SEP] identifier[GeneratorSingleCluster] identifier[cluster] , identifier[Node] identifier[cur] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] identifier[offset] operator[=] Other[null] operator[SEP] identifier[String] ident... |
public Observable<ServiceResponse<Page<DiagnosticCategoryInner>>> listSiteDiagnosticCategoriesSlotSinglePageAsync(final String resourceGroupName, final String siteName, final String slot) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required a... | class class_name[name] begin[{]
method[listSiteDiagnosticCategoriesSlotSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, siteName, slot]] begin[{]
if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{]
ThrowStatement... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[DiagnosticCategoryInner] operator[>] operator[>] operator[>] identifier[listSiteDiagnosticCategoriesSlotSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceG... |
private MethodSpec buildWrapTimeZoneGMTMethod(TimeZoneData data) {
String[] hourFormat = data.hourFormat.split(";");
List<Node> positive = DATETIME_PARSER.parse(hourFormat[0]);
List<Node> negative = DATETIME_PARSER.parse(hourFormat[1]);
List<Node> format = WRAPPER_PARSER.parseWrapper(data.gmtFormat);
... | class class_name[name] begin[{]
method[buildWrapTimeZoneGMTMethod, return_type[type[MethodSpec]], modifier[private], parameter[data]] begin[{]
local_variable[type[String], hourFormat]
local_variable[type[List], positive]
local_variable[type[List], negative]
local_variable[type[L... | Keyword[private] identifier[MethodSpec] identifier[buildWrapTimeZoneGMTMethod] operator[SEP] identifier[TimeZoneData] identifier[data] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[hourFormat] operator[=] identifier[data] operator[SEP] identifier[hourFormat] operator[SEP] identifier[s... |
public void addToolbarButtons(ToolScreen toolScreen)
{
new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, JnlpFileScreen.WRITE_FILE, MenuConstants.PRINT, JnlpFileScreen.WRITE_FILE, null);
} | class class_name[name] begin[{]
method[addToolbarButtons, return_type[void], modifier[public], parameter[toolScreen]] begin[{]
ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=NEXT_LOGICAL, postfix_operators=[], prefix_operators=[], qualifier=ScreenConstants, selectors... | Keyword[public] Keyword[void] identifier[addToolbarButtons] operator[SEP] identifier[ToolScreen] identifier[toolScreen] operator[SEP] {
Keyword[new] identifier[SCannedBox] operator[SEP] identifier[toolScreen] operator[SEP] identifier[getNextLocation] operator[SEP] identifier[ScreenConstants] operator[SEP] identi... |
@RequestMapping("/authenticate")
public String authenticate(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
boolean authenticate = request.authenticate(response);
return authenticate ? "index" : null;
} | class class_name[name] begin[{]
method[authenticate, return_type[type[String]], modifier[public], parameter[request, response]] begin[{]
local_variable[type[boolean], authenticate]
return[TernaryExpression(condition=MemberReference(member=authenticate, postfix_operators=[], prefix_operators=[],... | annotation[@] identifier[RequestMapping] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[authenticate] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[ServletExcept... |
public void cancel() {
DistributeJobMonitor jobMonitor = getJobMonitor();
if (jobMonitor != null) {
synchronized (GobblinHelixDistributeJobExecutionLauncher.this.cancellationRequest) {
if (GobblinHelixDistributeJobExecutionLauncher.this.cancellationRequested) {
// Return immediately if a... | class class_name[name] begin[{]
method[cancel, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[DistributeJobMonitor], jobMonitor]
if[binary_operation[member[.jobMonitor], !=, literal[null]]] begin[{]
SYNCHRONIZED[THIS[member[None.ca... | Keyword[public] Keyword[void] identifier[cancel] operator[SEP] operator[SEP] {
identifier[DistributeJobMonitor] identifier[jobMonitor] operator[=] identifier[getJobMonitor] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[jobMonitor] operator[!=] Other[null] operator[SEP] {
... |
public Collection<ServletTimer> getTimers() {
if(!isValid()) {
throw new IllegalStateException("SipApplicationSession already invalidated !");
}
if(servletTimers != null) {
return servletTimers.values();
}
return new HashMap<String, ServletTimer>().values();
} | class class_name[name] begin[{]
method[getTimers, return_type[type[Collection]], modifier[public], parameter[]] begin[{]
if[call[.isValid, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, sele... | Keyword[public] identifier[Collection] operator[<] identifier[ServletTimer] operator[>] identifier[getTimers] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[isValid] operator[SEP] operator[SEP] operator[SEP] {
Keyword[throw] Keyword[new] identifier[IllegalStateException... |
public static com.liferay.commerce.notification.model.CommerceNotificationQueueEntry updateCommerceNotificationQueueEntry(
com.liferay.commerce.notification.model.CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
return getService()
.updateCommerceNotificationQueueEntry(commerceNotificationQue... | class class_name[name] begin[{]
method[updateCommerceNotificationQueueEntry, return_type[type[com]], modifier[public static], parameter[commerceNotificationQueueEntry]] begin[{]
return[call[.getService, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[notification] operator[SEP] identifier[model] operator[SEP] identifier[CommerceNotificationQueueEntry] identifier[updateCommerceNotificationQueueEntry] operator[SEP] identifier[c... |
public void start() {
setStatus(ConnectionStatus.NOT_CONNECTED);
InetSocketAddress address = directoryServer;
clientSocket.connect(address);
eventThread.start();
connectionThread = new Thread(new ConnectTask());
connectionThread.setDaemon(true);
connectionThread.s... | class class_name[name] begin[{]
method[start, return_type[void], modifier[public], parameter[]] begin[{]
call[.setStatus, parameter[member[ConnectionStatus.NOT_CONNECTED]]]
local_variable[type[InetSocketAddress], address]
call[clientSocket.connect, parameter[member[.addr... | Keyword[public] Keyword[void] identifier[start] operator[SEP] operator[SEP] {
identifier[setStatus] operator[SEP] identifier[ConnectionStatus] operator[SEP] identifier[NOT_CONNECTED] operator[SEP] operator[SEP] identifier[InetSocketAddress] identifier[address] operator[=] identifier[directoryServer] operator[SEP... |
protected <T> Request doInvoke(ResponseReader responseReader,
String methodName, RpcStatsContext statsContext, String requestData,
AsyncCallback<T> callback) {
RequestBuilder rb = doPrepareRequestBuilderImpl(responseReader, methodName,
statsContext, requestData, callback);
try {
retu... | class class_name[name] begin[{]
method[doInvoke, return_type[type[Request]], modifier[protected], parameter[responseReader, methodName, statsContext, requestData, callback]] begin[{]
local_variable[type[RequestBuilder], rb]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(argumen... | Keyword[protected] operator[<] identifier[T] operator[>] identifier[Request] identifier[doInvoke] operator[SEP] identifier[ResponseReader] identifier[responseReader] , identifier[String] identifier[methodName] , identifier[RpcStatsContext] identifier[statsContext] , identifier[String] identifier[requestData] , iden... |
public com.google.api.ads.admanager.axis.v201805.Date getEndDate() {
return endDate;
} | class class_name[name] begin[{]
method[getEndDate, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.endDate]]
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[v201805] operator[SEP] identifier[Date] identifier[getEndDate] operator[SEP] operator[SEP] {
Key... |
protected List<MetricDatum> metricOfRequestOrRetryCount(
Field metricType, Request<?> req, Object resp) {
AWSRequestMetrics m = req.getAWSRequestMetrics();
TimingInfo ti = m.getTimingInfo();
// Always retrieve the request count even for retry which is equivalent
// to the num... | class class_name[name] begin[{]
method[metricOfRequestOrRetryCount, return_type[type[List]], modifier[protected], parameter[metricType, req, resp]] begin[{]
local_variable[type[AWSRequestMetrics], m]
local_variable[type[TimingInfo], ti]
local_variable[type[Number], counter]
... | Keyword[protected] identifier[List] operator[<] identifier[MetricDatum] operator[>] identifier[metricOfRequestOrRetryCount] operator[SEP] identifier[Field] identifier[metricType] , identifier[Request] operator[<] operator[?] operator[>] identifier[req] , identifier[Object] identifier[resp] operator[SEP] {
iden... |
private boolean isRestorable(HivePartitionDataset dataset, HivePartitionVersion version)
throws IOException {
if (version.getLocation().toString().equalsIgnoreCase(dataset.getLocation().toString())) {
return false;
}
FileSystem fs = ProxyUtils.getOwnerFs(new State(this.state), version.getOwner()... | class class_name[name] begin[{]
method[isRestorable, return_type[type[boolean]], modifier[private], parameter[dataset, version]] begin[{]
if[call[version.getLocation, parameter[]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
local_variable[type[... | Keyword[private] Keyword[boolean] identifier[isRestorable] operator[SEP] identifier[HivePartitionDataset] identifier[dataset] , identifier[HivePartitionVersion] identifier[version] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[version] operator[SEP] identifier[getL... |
public Span[] tag(final String[] tokens, final String[][] additionalContext) {
this.additionalContextFeatureGenerator.setCurrentContext(additionalContext);
this.bestSequence = this.model.bestSequence(tokens, additionalContext,
this.contextGenerator, this.sequenceValidator);
final List<String> c = th... | class class_name[name] begin[{]
method[tag, return_type[type[Span]], modifier[public], parameter[tokens, additionalContext]] begin[{]
THIS[member[None.additionalContextFeatureGenerator]call[None.setCurrentContext, parameter[member[.additionalContext]]]]
assign[THIS[member[None.b... | Keyword[public] identifier[Span] operator[SEP] operator[SEP] identifier[tag] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[tokens] , Keyword[final] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[additionalContext] operator[SEP] {
Ke... |
public SymbolScope getEnclosingScope(Node n) {
Node current = n.getParent();
if (n.isName() && n.getParent().isFunction()) {
current = current.getParent();
}
for (; current != null; current = current.getParent()) {
if (scopes.containsKey(current)) {
return scopes.get(current);
... | class class_name[name] begin[{]
method[getEnclosingScope, return_type[type[SymbolScope]], modifier[public], parameter[n]] begin[{]
local_variable[type[Node], current]
if[binary_operation[call[n.isName, parameter[]], &&, call[n.getParent, parameter[]]]] begin[{]
a... | Keyword[public] identifier[SymbolScope] identifier[getEnclosingScope] operator[SEP] identifier[Node] identifier[n] operator[SEP] {
identifier[Node] identifier[current] operator[=] identifier[n] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[n] o... |
protected String readTableInit() throws IOException {
boolean more = readRow(rowIn, 0);
if (!more) {
return null;
}
String s = rowIn.readString();
// operation is always INSERT
int checkOp = rowIn.readInt();
if (checkOp == ScriptWriterBase.INSERT_... | class class_name[name] begin[{]
method[readTableInit, return_type[type[String]], modifier[protected], parameter[]] begin[{]
local_variable[type[boolean], more]
if[member[.more]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[t... | Keyword[protected] identifier[String] identifier[readTableInit] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[boolean] identifier[more] operator[=] identifier[readRow] operator[SEP] identifier[rowIn] , Other[0] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] ide... |
public static String encodeStringURL(ByteBuffer source, boolean wrap) {
return Encoder.encodeString(source, wrap, true);
} | class class_name[name] begin[{]
method[encodeStringURL, return_type[type[String]], modifier[public static], parameter[source, wrap]] begin[{]
return[call[Encoder.encodeString, parameter[member[.source], member[.wrap], literal[true]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[String] identifier[encodeStringURL] operator[SEP] identifier[ByteBuffer] identifier[source] , Keyword[boolean] identifier[wrap] operator[SEP] {
Keyword[return] identifier[Encoder] operator[SEP] identifier[encodeString] operator[SEP] identifier[source] , identifier[wra... |
private static String getBOMEncoding(final BufferedInputStream is) throws IOException {
String encoding = null;
final int[] bytes = new int[3];
is.mark(3);
bytes[0] = is.read();
bytes[1] = is.read();
bytes[2] = is.read();
if (bytes[0] == 0xFE && bytes[1] == 0xFF)... | class class_name[name] begin[{]
method[getBOMEncoding, return_type[type[String]], modifier[private static], parameter[is]] begin[{]
local_variable[type[String], encoding]
local_variable[type[int], bytes]
call[is.mark, parameter[literal[3]]]
assign[member[.bytes],... | Keyword[private] Keyword[static] identifier[String] identifier[getBOMEncoding] operator[SEP] Keyword[final] identifier[BufferedInputStream] identifier[is] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[encoding] operator[=] Other[null] operator[SEP] Keyword[final] Keyword[i... |
public int commandToDocType(String strCommand) // Standard file maint for this record (returns new record)
{
int iDocMode = ScreenConstants.MAINT_MODE;
if ((MenuConstants.FORM.equalsIgnoreCase(strCommand))
|| (MenuConstants.FORMLINK.equalsIgnoreCase(strCommand)))
iDocMod... | class class_name[name] begin[{]
method[commandToDocType, return_type[type[int]], modifier[public], parameter[strCommand]] begin[{]
local_variable[type[int], iDocMode]
if[binary_operation[call[MenuConstants.FORM.equalsIgnoreCase, parameter[member[.strCommand]]], ||, call[MenuConstants.FO... | Keyword[public] Keyword[int] identifier[commandToDocType] operator[SEP] identifier[String] identifier[strCommand] operator[SEP] {
Keyword[int] identifier[iDocMode] operator[=] identifier[ScreenConstants] operator[SEP] identifier[MAINT_MODE] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[MenuCon... |
protected void writeItem(Object datas) {
HSSFRow row = sheet.createRow(index); // 建立新行
if (datas != null) {
if (datas.getClass().isArray()) {
Object[] values = (Object[]) datas;
for (int i = 0; i < values.length; i++) {
HSSFCell cell = row.createCell(i);
if (values[i] i... | class class_name[name] begin[{]
method[writeItem, return_type[void], modifier[protected], parameter[datas]] begin[{]
local_variable[type[HSSFRow], row]
if[binary_operation[member[.datas], !=, literal[null]]] begin[{]
if[call[datas.getClass, parameter[]]] begin[{]... | Keyword[protected] Keyword[void] identifier[writeItem] operator[SEP] identifier[Object] identifier[datas] operator[SEP] {
identifier[HSSFRow] identifier[row] operator[=] identifier[sheet] operator[SEP] identifier[createRow] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ide... |
@Override
public BatchGetQueryExecutionResult batchGetQueryExecution(BatchGetQueryExecutionRequest request) {
request = beforeClientExecution(request);
return executeBatchGetQueryExecution(request);
} | class class_name[name] begin[{]
method[batchGetQueryExecution, return_type[type[BatchGetQueryExecutionResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeBatchGetQueryExecution, ... | annotation[@] identifier[Override] Keyword[public] identifier[BatchGetQueryExecutionResult] identifier[batchGetQueryExecution] operator[SEP] identifier[BatchGetQueryExecutionRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[req... |
public IfcProjectOrderTypeEnum createIfcProjectOrderTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcProjectOrderTypeEnum result = IfcProjectOrderTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerat... | class class_name[name] begin[{]
method[createIfcProjectOrderTypeEnumFromString, return_type[type[IfcProjectOrderTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{]
local_variable[type[IfcProjectOrderTypeEnum], result]
if[binary_operation[member[.result], ==, liter... | Keyword[public] identifier[IfcProjectOrderTypeEnum] identifier[createIfcProjectOrderTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] {
identifier[IfcProjectOrderTypeEnum] identifier[result] operator[=] identifier[IfcProject... |
@Override
public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) {
return new Stax2FilteredEventReader(Stax2EventReaderAdapter.wrapIfNecessary(reader), filter);
} | class class_name[name] begin[{]
method[createFilteredReader, return_type[type[XMLEventReader]], modifier[public], parameter[reader, filter]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, selector... | annotation[@] identifier[Override] Keyword[public] identifier[XMLEventReader] identifier[createFilteredReader] operator[SEP] identifier[XMLEventReader] identifier[reader] , identifier[EventFilter] identifier[filter] operator[SEP] {
Keyword[return] Keyword[new] identifier[Stax2FilteredEventReader] operator[SEP] ... |
public final EObject ruleJvmTypeReference() throws RecognitionException {
EObject current = null;
EObject this_JvmParameterizedTypeReference_0 = null;
EObject this_XFunctionTypeRef_3 = null;
enterRule();
try {
// InternalSARL.g:15881:2: ( ( (this_JvmParameteriz... | class class_name[name] begin[{]
method[ruleJvmTypeReference, return_type[type[EObject]], modifier[final public], parameter[]] begin[{]
local_variable[type[EObject], current]
local_variable[type[EObject], this_JvmParameterizedTypeReference_0]
local_variable[type[EObject], this_XFunctionT... | Keyword[public] Keyword[final] identifier[EObject] identifier[ruleJvmTypeReference] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[this_JvmParameterizedTypeReference_0] ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.