code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public static <T1, T2, T3, T4, T5, T6, R> Func6<T1, T2, T3, T4, T5, T6, Observable<R>> toAsync(Func6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> func) {
return toAsync(func, Schedulers.computation());
} | class class_name[name] begin[{]
method[toAsync, return_type[type[Func6]], modifier[public static], parameter[func]] begin[{]
return[call[.toAsync, parameter[member[.func], call[Schedulers.computation, parameter[]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] , identifier[T5] , identifier[T6] , identifier[R] operator[>] identifier[Func6] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] , identifier[T5] , identifier[T6] , iden... |
public static double toHeading(int fsuipcHeading) {
double hdg = fsuipcHeading * 8.3819E-008; //8.1716E-008D;
if (hdg < 0) { hdg += 360; }
return (new BigDecimal(hdg)).setScale(2, RoundingMode.HALF_UP).doubleValue();
} | class class_name[name] begin[{]
method[toHeading, return_type[type[double]], modifier[public static], parameter[fsuipcHeading]] begin[{]
local_variable[type[double], hdg]
if[binary_operation[member[.hdg], <, literal[0]]] begin[{]
assign[member[.hdg], literal[360]... | Keyword[public] Keyword[static] Keyword[double] identifier[toHeading] operator[SEP] Keyword[int] identifier[fsuipcHeading] operator[SEP] {
Keyword[double] identifier[hdg] operator[=] identifier[fsuipcHeading] operator[*] literal[Float] operator[SEP] Keyword[if] operator[SEP] identifier[hdg] operator[<] Other[0] ... |
public static Map<String, Object> getParametersStartingWith(final HttpServletRequest request, String prefix) {
if (prefix == null) {
prefix = "";
}
Enumeration paramNames = request.getParameterNames();
Map<String, Object> params = new TreeMap<>();
for (String paramName : new IterableEnumeration<String>(par... | class class_name[name] begin[{]
method[getParametersStartingWith, return_type[type[Map]], modifier[public static], parameter[request, prefix]] begin[{]
if[binary_operation[member[.prefix], ==, literal[null]]] begin[{]
assign[member[.prefix], literal[""]]
else beg... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getParametersStartingWith] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , identifier[String] identifier[prefix] operator[SEP] {
Keyword[if] operator[SEP]... |
public void selectByIndex(int index) {
getDispatcher().beforeSelect(this, index);
new Select(getElement()).selectByIndex(index);
if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
logUIActions(UIActions.SELECTED, Integer.toString(index));
}
... | class class_name[name] begin[{]
method[selectByIndex, return_type[void], modifier[public], parameter[index]] begin[{]
call[.getDispatcher, parameter[]]
ClassCreator(arguments=[MethodInvocation(arguments=[], member=getElement, postfix_operators=[], prefix_operators=[], qualifier=... | Keyword[public] Keyword[void] identifier[selectByIndex] operator[SEP] Keyword[int] identifier[index] operator[SEP] {
identifier[getDispatcher] operator[SEP] operator[SEP] operator[SEP] identifier[beforeSelect] operator[SEP] Keyword[this] , identifier[index] operator[SEP] operator[SEP] Keyword[new] identifier[Se... |
private DescribeAvailabilityZonesResponseType describeAvailabilityZones() {
DescribeAvailabilityZonesResponseType ret = new DescribeAvailabilityZonesResponseType();
ret.setRequestId(UUID.randomUUID().toString());
AvailabilityZoneSetType info = new AvailabilityZoneSetType();
Availabilit... | class class_name[name] begin[{]
method[describeAvailabilityZones, return_type[type[DescribeAvailabilityZonesResponseType]], modifier[private], parameter[]] begin[{]
local_variable[type[DescribeAvailabilityZonesResponseType], ret]
call[ret.setRequestId, parameter[call[UUID.randomUUID, pa... | Keyword[private] identifier[DescribeAvailabilityZonesResponseType] identifier[describeAvailabilityZones] operator[SEP] operator[SEP] {
identifier[DescribeAvailabilityZonesResponseType] identifier[ret] operator[=] Keyword[new] identifier[DescribeAvailabilityZonesResponseType] operator[SEP] operator[SEP] operator[... |
protected void eventUnlocked(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventUnlocked", msg);
AIMessageItem message = (AIMessageItem) msg;
// dispatch internal will add it to the timeoutManager if it can't find a ready consumer
dispatc... | class class_name[name] begin[{]
method[eventUnlocked, return_type[void], modifier[protected], parameter[msg]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[member[.t... | Keyword[protected] Keyword[void] identifier[eventUnlocked] operator[SEP] identifier[SIMPMessage] identifier[msg] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEn... |
protected static <E extends SubSystemBase> SystemManager
preCreate(Class<E> serviceClass)
{
SystemManager system = SystemManager.getCurrent();
if (system == null)
throw new IllegalStateException(L.l("{0} must be created before {1}",
SystemManager.class.getSi... | class class_name[name] begin[{]
method[preCreate, return_type[type[SystemManager]], modifier[static protected], parameter[serviceClass]] begin[{]
local_variable[type[SystemManager], system]
if[binary_operation[member[.system], ==, literal[null]]] begin[{]
ThrowStatement(expression=Class... | Keyword[protected] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[SubSystemBase] operator[>] identifier[SystemManager] identifier[preCreate] operator[SEP] identifier[Class] operator[<] identifier[E] operator[>] identifier[serviceClass] operator[SEP] {
identifier[SystemManager] identifier[s... |
public Frame reorderColumns(Frame f) {
if ((_interactionsOnly == null) || (f == null))
return f;
Vec[] interOnlyVecs = f.vecs(_interactionsOnly);
f.remove(_interactionsOnly);
for (int i = 0; i < _interactionsOnly.length; i++) {
if (isUsed(_interactionsOnly[i])) {
f.add(... | class class_name[name] begin[{]
method[reorderColumns, return_type[type[Frame]], modifier[public], parameter[f]] begin[{]
if[binary_operation[binary_operation[member[._interactionsOnly], ==, literal[null]], ||, binary_operation[member[.f], ==, literal[null]]]] begin[{]
return[member[.f]]
... | Keyword[public] identifier[Frame] identifier[reorderColumns] operator[SEP] identifier[Frame] identifier[f] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[_interactionsOnly] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[f] operator[==] Other[null] operator[SEP] o... |
public void parseText(String text, AhoCorasickDoubleArrayTrie.IHit<V> processor)
{
Searcher searcher = getSearcher(text, 0);
while (searcher.next())
{
processor.hit(searcher.begin, searcher.begin + searcher.length, searcher.value);
}
} | class class_name[name] begin[{]
method[parseText, return_type[void], modifier[public], parameter[text, processor]] begin[{]
local_variable[type[Searcher], searcher]
while[call[searcher.next, parameter[]]] begin[{]
call[processor.hit, parameter[member[searcher.beg... | Keyword[public] Keyword[void] identifier[parseText] operator[SEP] identifier[String] identifier[text] , identifier[AhoCorasickDoubleArrayTrie] operator[SEP] identifier[IHit] operator[<] identifier[V] operator[>] identifier[processor] operator[SEP] {
identifier[Searcher] identifier[searcher] operator[=] identifi... |
private DrawerLayout inflateDrawerLayout(ViewGroup parent){
DrawerLayout drawer = (DrawerLayout) mActivity.getLayoutInflater()
.inflate(R.layout.material_drawer, parent, false);
// Find the associated views
mDrawerPane = ButterKnife.findById(drawer, R.id.navdrawer);
mDra... | class class_name[name] begin[{]
method[inflateDrawerLayout, return_type[type[DrawerLayout]], modifier[private], parameter[parent]] begin[{]
local_variable[type[DrawerLayout], drawer]
assign[member[.mDrawerPane], call[ButterKnife.findById, parameter[member[.drawer], member[R.id.navdrawer... | Keyword[private] identifier[DrawerLayout] identifier[inflateDrawerLayout] operator[SEP] identifier[ViewGroup] identifier[parent] operator[SEP] {
identifier[DrawerLayout] identifier[drawer] operator[=] operator[SEP] identifier[DrawerLayout] operator[SEP] identifier[mActivity] operator[SEP] identifier[getLayoutInf... |
public static Type getSuperType(Type type) {
if (type instanceof ParameterizedType) {
ParameterizedType parameterizedType = (ParameterizedType) type;
Type genericSuperClass = ((Class<?>) parameterizedType.getRawType()).getGenericSuperclass();
if (genericSuperClass instanceof ... | class class_name[name] begin[{]
method[getSuperType, return_type[type[Type]], modifier[public static], parameter[type]] begin[{]
if[binary_operation[member[.type], instanceof, type[ParameterizedType]]] begin[{]
local_variable[type[ParameterizedType], parameterizedType]
l... | Keyword[public] Keyword[static] identifier[Type] identifier[getSuperType] operator[SEP] identifier[Type] identifier[type] operator[SEP] {
Keyword[if] operator[SEP] identifier[type] Keyword[instanceof] identifier[ParameterizedType] operator[SEP] {
identifier[ParameterizedType] identifier[parameterizedT... |
public void displayTextCounter(boolean display) {
if (display) {
mTextCounterView.setVisibility(TextView.VISIBLE);
} else {
mTextCounterView.setVisibility(TextView.GONE);
}
} | class class_name[name] begin[{]
method[displayTextCounter, return_type[void], modifier[public], parameter[display]] begin[{]
if[member[.display]] begin[{]
call[mTextCounterView.setVisibility, parameter[member[TextView.VISIBLE]]]
else begin[{]
... | Keyword[public] Keyword[void] identifier[displayTextCounter] operator[SEP] Keyword[boolean] identifier[display] operator[SEP] {
Keyword[if] operator[SEP] identifier[display] operator[SEP] {
identifier[mTextCounterView] operator[SEP] identifier[setVisibility] operator[SEP] identifier[TextView] operator... |
public List<OpenFalconBean> build(String metric, JSONArray valueJSONArray) {
List<OpenFalconBean> beans = new ArrayList<>();
for (Object value : valueJSONArray) {
beans.addAll(buildAll(metric, value));
}
return beans;
} | class class_name[name] begin[{]
method[build, return_type[type[List]], modifier[public], parameter[metric, valueJSONArray]] begin[{]
local_variable[type[List], beans]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvoca... | Keyword[public] identifier[List] operator[<] identifier[OpenFalconBean] operator[>] identifier[build] operator[SEP] identifier[String] identifier[metric] , identifier[JSONArray] identifier[valueJSONArray] operator[SEP] {
identifier[List] operator[<] identifier[OpenFalconBean] operator[>] identifier[beans] opera... |
@Override
public void bind(String dn, Object obj, Attributes attributes) {
ldapOperations.bind(dn, obj, attributes);
} | class class_name[name] begin[{]
method[bind, return_type[void], modifier[public], parameter[dn, obj, attributes]] begin[{]
call[ldapOperations.bind, parameter[member[.dn], member[.obj], member[.attributes]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[bind] operator[SEP] identifier[String] identifier[dn] , identifier[Object] identifier[obj] , identifier[Attributes] identifier[attributes] operator[SEP] {
identifier[ldapOperations] operator[SEP] identifier[bind] operator[SEP] identifi... |
public InetAddress getLocalAddress(){
if(localIP == null){
try{
localIP = InetAddress.getByName(localHost);
}catch(UnknownHostException e){
return null;
}
}
return localIP;
} | class class_name[name] begin[{]
method[getLocalAddress, return_type[type[InetAddress]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.localIP], ==, literal[null]]] begin[{]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReferenc... | Keyword[public] identifier[InetAddress] identifier[getLocalAddress] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[localIP] operator[==] Other[null] operator[SEP] {
Keyword[try] {
identifier[localIP] operator[=] identifier[InetAddress] operator[SEP] identifier[getByN... |
private static String[] executeShellCommand(String[] command)
throws IOException {
String groups = Shell.execCommand(command);
StringTokenizer tokenizer = new StringTokenizer(groups);
int numOfTokens = tokenizer.countTokens();
String[] tokens = new String[numOfTokens];
for (int i=0; tokenizer.hasM... | class class_name[name] begin[{]
method[executeShellCommand, return_type[type[String]], modifier[private static], parameter[command]] begin[{]
local_variable[type[String], groups]
local_variable[type[StringTokenizer], tokenizer]
local_variable[type[int], numOfTokens]
local_variab... | Keyword[private] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[executeShellCommand] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[command] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[groups] operator[=] identifier[She... |
public ComputeNodeUpdateUserOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} | class class_name[name] begin[{]
method[withOcpDate, return_type[type[ComputeNodeUpdateUserOptions]], modifier[public], parameter[ocpDate]] begin[{]
if[binary_operation[member[.ocpDate], ==, literal[null]]] begin[{]
assign[THIS[member[None.ocpDate]], literal[null]]
... | Keyword[public] identifier[ComputeNodeUpdateUserOptions] identifier[withOcpDate] operator[SEP] identifier[DateTime] identifier[ocpDate] operator[SEP] {
Keyword[if] operator[SEP] identifier[ocpDate] operator[==] Other[null] operator[SEP] {
Keyword[this] operator[SEP] identifier[ocpDate] operator[=] Oth... |
public byte[] getBytes(long pos, int length) throws SQLException {
if (pos < 1)
throw new SQLException("The position of the first byte in the BLOB value to be " + "extracted cannot be less than 1");
if (length < 0)
throw new SQLException(
"The number of the consecutive bytes in the BL... | class class_name[name] begin[{]
method[getBytes, return_type[type[byte]], modifier[public], parameter[pos, length]] begin[{]
if[binary_operation[member[.pos], <, literal[1]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix... | Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getBytes] operator[SEP] Keyword[long] identifier[pos] , Keyword[int] identifier[length] operator[SEP] Keyword[throws] identifier[SQLException] {
Keyword[if] operator[SEP] identifier[pos] operator[<] Other[1] operator[SEP] Keyword[throw] Keywor... |
static public Class<? extends WritableComparable> getSequenceFileOutputKeyClass(JobConf conf) {
return conf.getClass("mapred.seqbinary.output.key.class",
conf.getOutputKeyClass().asSubclass(WritableComparable.class),
WritableComparable.class);
} | class class_name[name] begin[{]
method[getSequenceFileOutputKeyClass, return_type[type[Class]], modifier[public static], parameter[conf]] begin[{]
return[call[conf.getClass, parameter[literal["mapred.seqbinary.output.key.class"], call[conf.getOutputKeyClass, parameter[]], ClassReference(postfix_operato... | Keyword[static] Keyword[public] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[WritableComparable] operator[>] identifier[getSequenceFileOutputKeyClass] operator[SEP] identifier[JobConf] identifier[conf] operator[SEP] {
Keyword[return] identifier[conf] operator[SEP] identifier[getClass] op... |
public static void extract(InputStream is, File outputFolder) throws IOException {
ZipInputStream zis = new ZipInputStream(is);
ZipEntry entry;
byte[] buffer = new byte[1024];
while ((entry = zis.getNextEntry()) != null) {
File outputFile = new File(outputFolder.getCanonical... | class class_name[name] begin[{]
method[extract, return_type[void], modifier[public static], parameter[is, outputFolder]] begin[{]
local_variable[type[ZipInputStream], zis]
local_variable[type[ZipEntry], entry]
local_variable[type[byte], buffer]
while[binary_operation[ass... | Keyword[public] Keyword[static] Keyword[void] identifier[extract] operator[SEP] identifier[InputStream] identifier[is] , identifier[File] identifier[outputFolder] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[ZipInputStream] identifier[zis] operator[=] Keyword[new] identifier[ZipInputStream... |
public void marshall(SdkConfigurationProperty sdkConfigurationProperty, ProtocolMarshaller protocolMarshaller) {
if (sdkConfigurationProperty == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(sdkConf... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[sdkConfigurationProperty, protocolMarshaller]] begin[{]
if[binary_operation[member[.sdkConfigurationProperty], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(argument... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[SdkConfigurationProperty] identifier[sdkConfigurationProperty] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[sdkConfigurationProperty] operator[==] Other[null] opera... |
public List<Command> receive(final Command command) {
Assert.requireNonNull(command, "command");
LOG.trace("Received command of type {}", command.getClass().getSimpleName());
List<Command> response = new LinkedList();// collecting parameter pattern
if (!(command instanceof InterruptLon... | class class_name[name] begin[{]
method[receive, return_type[type[List]], modifier[public], parameter[command]] begin[{]
call[Assert.requireNonNull, parameter[member[.command], literal["command"]]]
call[LOG.trace, parameter[literal["Received command of type {}"], call[command.get... | Keyword[public] identifier[List] operator[<] identifier[Command] operator[>] identifier[receive] operator[SEP] Keyword[final] identifier[Command] identifier[command] operator[SEP] {
identifier[Assert] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[command] , literal[String] operator[SEP] oper... |
public synchronized void generatePluginConfig(String root, String serverName,boolean utilityRequest, File writeDirectory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "generatePluginConfig", "server is stopping = " + serverIsStopping);
}
... | class class_name[name] begin[{]
method[generatePluginConfig, return_type[void], modifier[synchronized public], parameter[root, serverName, utilityRequest, writeDirectory]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[generatePluginConfig] operator[SEP] identifier[String] identifier[root] , identifier[String] identifier[serverName] , Keyword[boolean] identifier[utilityRequest] , identifier[File] identifier[writeDirectory] operator[SEP] {
Keyword[if] operator[SE... |
public List<String> getMolecularProperties(String notation) throws BuilderMoleculeException, CTKException,
ExtinctionCoefficientException, ValidationException, MonomerLoadingException, ChemistryException {
MoleculeProperty result = MoleculePropertyCalculator.getMoleculeProperties(validate(notation));
setMonom... | class class_name[name] begin[{]
method[getMolecularProperties, return_type[type[List]], modifier[public], parameter[notation]] begin[{]
local_variable[type[MoleculeProperty], result]
call[.setMonomerFactoryToDefault, parameter[member[.notation]]]
return[ClassCreator(arguments=[M... | Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getMolecularProperties] operator[SEP] identifier[String] identifier[notation] operator[SEP] Keyword[throws] identifier[BuilderMoleculeException] , identifier[CTKException] , identifier[ExtinctionCoefficientException] , identifier[... |
@Override
public Resource createRelative(String relativePath) throws IOException {
return new PathResource(this.path.resolve(relativePath));
} | class class_name[name] begin[{]
method[createRelative, return_type[type[Resource]], modifier[public], parameter[relativePath]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=path, postfix_operators=None, prefix_o... | annotation[@] identifier[Override] Keyword[public] identifier[Resource] identifier[createRelative] operator[SEP] identifier[String] identifier[relativePath] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new] identifier[PathResource] operator[SEP] Keyword[this] operator[SEP] iden... |
public Configuration configuration(String identity) throws IllegalArgumentException {
Config variants = configurations.get(identity);
if (variants == null) {
return null;
} else {
return variants.configuration();
}
} | class class_name[name] begin[{]
method[configuration, return_type[type[Configuration]], modifier[public], parameter[identity]] begin[{]
local_variable[type[Config], variants]
if[binary_operation[member[.variants], ==, literal[null]]] begin[{]
return[literal[null]]
el... | Keyword[public] identifier[Configuration] identifier[configuration] operator[SEP] identifier[String] identifier[identity] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
identifier[Config] identifier[variants] operator[=] identifier[configurations] operator[SEP] identifier[get] operator[SEP]... |
protected Content getNavSummaryLink(ClassDoc cd, boolean link) {
if (link) {
return writer.getHyperLink(
SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY,
writer.getResource("doclet.navAnnotationTypeOptionalMember"));
} else {
return wr... | class class_name[name] begin[{]
method[getNavSummaryLink, return_type[type[Content]], modifier[protected], parameter[cd, link]] begin[{]
if[member[.link]] begin[{]
return[call[writer.getHyperLink, parameter[member[SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY], call[writer.ge... | Keyword[protected] identifier[Content] identifier[getNavSummaryLink] operator[SEP] identifier[ClassDoc] identifier[cd] , Keyword[boolean] identifier[link] operator[SEP] {
Keyword[if] operator[SEP] identifier[link] operator[SEP] {
Keyword[return] identifier[writer] operator[SEP] identifier[getHyperLin... |
public static void parse(final String range, final RangeConfig tc) throws RangeException {
if (range == null) {
throw new RangeException("Range can't be null");
}
ROOT_STAGE.parse(range, tc);
checkBoundaries(tc);
} | class class_name[name] begin[{]
method[parse, return_type[void], modifier[public static], parameter[range, tc]] begin[{]
if[binary_operation[member[.range], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=... | Keyword[public] Keyword[static] Keyword[void] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[range] , Keyword[final] identifier[RangeConfig] identifier[tc] operator[SEP] Keyword[throws] identifier[RangeException] {
Keyword[if] operator[SEP] identifier[range] operator[==] Other[null... |
protected void computeFromSimpleMetrics(Points<SimpleNumber> input) throws IOException {
if (input == null) {
throw new IOException("Null input to create rollup from");
}
if (input.isEmpty()) {
return;
}
Map<Long, Points.Point<SimpleNumber>> points = inp... | class class_name[name] begin[{]
method[computeFromSimpleMetrics, return_type[void], modifier[protected], parameter[input]] begin[{]
if[binary_operation[member[.input], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix... | Keyword[protected] Keyword[void] identifier[computeFromSimpleMetrics] operator[SEP] identifier[Points] operator[<] identifier[SimpleNumber] operator[>] identifier[input] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] {
... |
public final static String getHeaderIgnoreCase(HttpServletRequest request, String nameIgnoreCase) {
Enumeration<String> names = request.getHeaderNames();
String name = null;
while (names.hasMoreElements()) {
name = names.nextElement();
if (name != null && name.equalsIgnoreCase(nameIgnoreCase)) {
r... | class class_name[name] begin[{]
method[getHeaderIgnoreCase, return_type[type[String]], modifier[final public static], parameter[request, nameIgnoreCase]] begin[{]
local_variable[type[Enumeration], names]
local_variable[type[String], name]
while[call[names.hasMoreElements, parame... | Keyword[public] Keyword[final] Keyword[static] identifier[String] identifier[getHeaderIgnoreCase] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[String] identifier[nameIgnoreCase] operator[SEP] {
identifier[Enumeration] operator[<] identifier[String] operator[>] identifier[names] ... |
private Decimal calculateMaximumDrawdown(TimeSeries series, CashFlow cashFlow) {
Decimal maximumDrawdown = Decimal.ZERO;
Decimal maxPeak = Decimal.ZERO;
if (!series.isEmpty()) {
// The series is not empty
for (int i = series.getBeginIndex(); i <= series.getEndIndex(); i++) {
... | class class_name[name] begin[{]
method[calculateMaximumDrawdown, return_type[type[Decimal]], modifier[private], parameter[series, cashFlow]] begin[{]
local_variable[type[Decimal], maximumDrawdown]
local_variable[type[Decimal], maxPeak]
if[call[series.isEmpty, parameter[]]] begin... | Keyword[private] identifier[Decimal] identifier[calculateMaximumDrawdown] operator[SEP] identifier[TimeSeries] identifier[series] , identifier[CashFlow] identifier[cashFlow] operator[SEP] {
identifier[Decimal] identifier[maximumDrawdown] operator[=] identifier[Decimal] operator[SEP] identifier[ZERO] operator[SE... |
public static int getByteCount(int width, int height, Config config) {
int bytes = 0;
switch (config) {
case ALPHA_8:
bytes = 1;
break;
case RGB_565:
bytes = 2;
break;
case ARGB_4444:
byte... | class class_name[name] begin[{]
method[getByteCount, return_type[type[int]], modifier[public static], parameter[width, height, config]] begin[{]
local_variable[type[int], bytes]
SwitchStatement(cases=[SwitchStatementCase(case=['ALPHA_8'], statements=[StatementExpression(expression=Assignment(ex... | Keyword[public] Keyword[static] Keyword[int] identifier[getByteCount] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[Config] identifier[config] operator[SEP] {
Keyword[int] identifier[bytes] operator[=] Other[0] operator[SEP] Keyword[switch] operator[SEP] identifier... |
@Override
public CPDefinition moveCPDefinitionToTrash(
long userId, long cpDefinitionId)
throws PortalException {
CPDefinition cpDefinition = cpDefinitionPersistence.findByPrimaryKey(
cpDefinitionId);
return cpDefinitionLocalService.moveCPDefinitionToTrash(
userId, cpDefinition);
} | class class_name[name] begin[{]
method[moveCPDefinitionToTrash, return_type[type[CPDefinition]], modifier[public], parameter[userId, cpDefinitionId]] begin[{]
local_variable[type[CPDefinition], cpDefinition]
return[call[cpDefinitionLocalService.moveCPDefinitionToTrash, parameter[member[.userId]... | annotation[@] identifier[Override] Keyword[public] identifier[CPDefinition] identifier[moveCPDefinitionToTrash] operator[SEP] Keyword[long] identifier[userId] , Keyword[long] identifier[cpDefinitionId] operator[SEP] Keyword[throws] identifier[PortalException] {
identifier[CPDefinition] identifier[cpDefinition] ... |
private void movePos(float deltaY) {
// has reached the top
if ((deltaY < 0 && mPtrIndicator.isInStartPosition())) {
if (DEBUG) {
PtrCLog.e(LOG_TAG, String.format("has reached the top"));
}
return;
}
int to = mPtrIndicator.getCurrentPo... | class class_name[name] begin[{]
method[movePos, return_type[void], modifier[private], parameter[deltaY]] begin[{]
if[binary_operation[binary_operation[member[.deltaY], <, literal[0]], &&, call[mPtrIndicator.isInStartPosition, parameter[]]]] begin[{]
if[member[.DEBUG]] be... | Keyword[private] Keyword[void] identifier[movePos] operator[SEP] Keyword[float] identifier[deltaY] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[deltaY] operator[<] Other[0] operator[&&] identifier[mPtrIndicator] operator[SEP] identifier[isInStartPosition] operator[SEP] operator[SEP] operato... |
public Optional<JClassType> getClassFromJsonDeserializeAnnotation( TreeLogger logger, Annotation annotation, String name ) {
try {
Class asClass = (Class) annotation.getClass().getDeclaredMethod( name ).invoke( annotation );
if ( asClass != Void.class ) {
return Optional.... | class class_name[name] begin[{]
method[getClassFromJsonDeserializeAnnotation, return_type[type[Optional]], modifier[public], parameter[logger, annotation, name]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(express... | Keyword[public] identifier[Optional] operator[<] identifier[JClassType] operator[>] identifier[getClassFromJsonDeserializeAnnotation] operator[SEP] identifier[TreeLogger] identifier[logger] , identifier[Annotation] identifier[annotation] , identifier[String] identifier[name] operator[SEP] {
Keyword[try] {
... |
public VoiceCallLeg viewCallLegByCallIdAndLegId(final String callId, String legId) throws UnsupportedEncodingException, NotFoundException, GeneralException, UnauthorizedException {
if (callId == null) {
throw new IllegalArgumentException("Voice call ID must be specified.");
}
if (le... | class class_name[name] begin[{]
method[viewCallLegByCallIdAndLegId, return_type[type[VoiceCallLeg]], modifier[public], parameter[callId, legId]] begin[{]
if[binary_operation[member[.callId], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postf... | Keyword[public] identifier[VoiceCallLeg] identifier[viewCallLegByCallIdAndLegId] operator[SEP] Keyword[final] identifier[String] identifier[callId] , identifier[String] identifier[legId] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] , identifier[NotFoundException] , identifier[GeneralExcepti... |
public static GEOMTYPE getGeometryType( SimpleFeatureCollection featureCollection ) {
GeometryDescriptor geometryDescriptor = featureCollection.getSchema().getGeometryDescriptor();
if (EGeometryType.isPolygon(geometryDescriptor)) {
return GEOMTYPE.POLYGON;
} else if (EGeometryType.is... | class class_name[name] begin[{]
method[getGeometryType, return_type[type[GEOMTYPE]], modifier[public static], parameter[featureCollection]] begin[{]
local_variable[type[GeometryDescriptor], geometryDescriptor]
if[call[EGeometryType.isPolygon, parameter[member[.geometryDescriptor]]]] beg... | Keyword[public] Keyword[static] identifier[GEOMTYPE] identifier[getGeometryType] operator[SEP] identifier[SimpleFeatureCollection] identifier[featureCollection] operator[SEP] {
identifier[GeometryDescriptor] identifier[geometryDescriptor] operator[=] identifier[featureCollection] operator[SEP] identifier[getSche... |
public AggregateResult aggregateQuery(TableDefinition tableDef, OlapAggregate request) {
checkServiceState();
AggregationResult result = m_olap.aggregate(tableDef.getAppDef(), tableDef.getTableName(), request);
return AggregateResultConverter.create(result, request);
} | class class_name[name] begin[{]
method[aggregateQuery, return_type[type[AggregateResult]], modifier[public], parameter[tableDef, request]] begin[{]
call[.checkServiceState, parameter[]]
local_variable[type[AggregationResult], result]
return[call[AggregateResultConverter.create, ... | Keyword[public] identifier[AggregateResult] identifier[aggregateQuery] operator[SEP] identifier[TableDefinition] identifier[tableDef] , identifier[OlapAggregate] identifier[request] operator[SEP] {
identifier[checkServiceState] operator[SEP] operator[SEP] operator[SEP] identifier[AggregationResult] identifier[r... |
private static void assertName(final String name, final JBBPToken token) {
if (name.indexOf('.') >= 0) {
throw new JBBPCompilationException("Detected disallowed char '.' in name [" + name + ']', token);
}
} | class class_name[name] begin[{]
method[assertName, return_type[void], modifier[private static], parameter[name, token]] begin[{]
if[binary_operation[call[name.indexOf, parameter[literal['.']]], >=, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperati... | Keyword[private] Keyword[static] Keyword[void] identifier[assertName] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[JBBPToken] identifier[token] operator[SEP] {
Keyword[if] operator[SEP] identifier[name] operator[SEP] identifier[indexOf] operator[SEP] literal[Strin... |
public void clean() {
Instant minAge = Instant.now().minus(storageTimeInSeconds, ChronoUnit.SECONDS);
synchronized (messages) {
messages.removeIf(messageRef -> Optional.ofNullable(messageRef.get())
.map(message -> !message.isCachedForever() && message.getCreationTimestamp... | class class_name[name] begin[{]
method[clean, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Instant], minAge]
SYNCHRONIZED[member[.messages]] BEGIN[{]
call[messages.removeIf, parameter[LambdaExpression(body=MethodInvocation(argume... | Keyword[public] Keyword[void] identifier[clean] operator[SEP] operator[SEP] {
identifier[Instant] identifier[minAge] operator[=] identifier[Instant] operator[SEP] identifier[now] operator[SEP] operator[SEP] operator[SEP] identifier[minus] operator[SEP] identifier[storageTimeInSeconds] , identifier[ChronoUnit] o... |
@Override
public void setupBindings() {
super.setupBindings();
editableArea.visibleProperty().bind(Bindings.and(field.editableProperty(),
field.multilineProperty()));
editableField.visibleProperty().bind(Bindings.and(field.editableProperty(),
field.multilineProperty().not()));
readOnl... | class class_name[name] begin[{]
method[setupBindings, return_type[void], modifier[public], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=setupBindings, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
call[editableA... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setupBindings] operator[SEP] operator[SEP] {
Keyword[super] operator[SEP] identifier[setupBindings] operator[SEP] operator[SEP] operator[SEP] identifier[editableArea] operator[SEP] identifier[visibleProperty] operator[SEP] operator[SEP] ... |
public String groupHtml(CmsWorkplace wp) {
StringBuffer html = new StringBuffer(512);
html.append(htmlStart(wp));
Iterator<CmsAdminMenuItem> itItem = m_container.elementList().iterator();
while (itItem.hasNext()) {
CmsAdminMenuItem item = itItem.next();
html.appe... | class class_name[name] begin[{]
method[groupHtml, return_type[type[String]], modifier[public], parameter[wp]] begin[{]
local_variable[type[StringBuffer], html]
call[html.append, parameter[call[.htmlStart, parameter[member[.wp]]]]]
local_variable[type[Iterator], itItem]
... | Keyword[public] identifier[String] identifier[groupHtml] operator[SEP] identifier[CmsWorkplace] identifier[wp] operator[SEP] {
identifier[StringBuffer] identifier[html] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] Other[512] operator[SEP] operator[SEP] identifier[html] operator[SEP] identifier... |
private boolean isApply(ChangeSet changeSet) {
// 必须包含 PENDING_DROPS 不然无法在只删除列时产生变更脚本
return (changeSet.getType() == ChangeSetType.APPLY || changeSet.getType() == ChangeSetType.PENDING_DROPS)
&& !changeSet.getChangeSetChildren().isEmpty();
} | class class_name[name] begin[{]
method[isApply, return_type[type[boolean]], modifier[private], parameter[changeSet]] begin[{]
return[binary_operation[binary_operation[binary_operation[call[changeSet.getType, parameter[]], ==, member[ChangeSetType.APPLY]], ||, binary_operation[call[changeSet.getType, pa... | Keyword[private] Keyword[boolean] identifier[isApply] operator[SEP] identifier[ChangeSet] identifier[changeSet] operator[SEP] {
Keyword[return] operator[SEP] identifier[changeSet] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[==] identifier[ChangeSetType] operator[SEP] identifier[APPLY] ... |
public Map<String, T> parseMap(byte[] byteArray) throws IOException {
JsonParser jsonParser = LoganSquare.JSON_FACTORY.createParser(byteArray);
jsonParser.nextToken();
return parseMap(jsonParser);
} | class class_name[name] begin[{]
method[parseMap, return_type[type[Map]], modifier[public], parameter[byteArray]] begin[{]
local_variable[type[JsonParser], jsonParser]
call[jsonParser.nextToken, parameter[]]
return[call[.parseMap, parameter[member[.jsonParser]]]]
end[}]
END[}... | Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[T] operator[>] identifier[parseMap] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[byteArray] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[JsonParser] identifier[jsonParser] operator[=] identifi... |
public static void clear() {
lock.writeLock().lock();
try {
allStrings = new EfficientStringBiMap(HASH_MODULO);
indexCounter.set(0);
} finally {
lock.writeLock().unlock();
}
} | class class_name[name] begin[{]
method[clear, return_type[void], modifier[public static], parameter[]] begin[{]
call[lock.writeLock, parameter[]]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=allStrings, postfix_operators=[], prefix_ope... | Keyword[public] Keyword[static] Keyword[void] identifier[clear] operator[SEP] operator[SEP] {
identifier[lock] operator[SEP] identifier[writeLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
identifier[allStrings] operator[=] Keyw... |
public static MimeMessage newMimeMessage(InputStream inputStream) {
try {
return new MimeMessage(Session.getDefaultInstance(new Properties()), inputStream);
} catch (MessagingException e) {
throw new IllegalArgumentException("Can not generate mime message for input stream " +... | class class_name[name] begin[{]
method[newMimeMessage, return_type[type[MimeMessage]], modifier[public static], parameter[inputStream]] begin[{]
TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[ClassCreator(arguments=[], body=None, constructor_type_argu... | Keyword[public] Keyword[static] identifier[MimeMessage] identifier[newMimeMessage] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] {
Keyword[try] {
Keyword[return] Keyword[new] identifier[MimeMessage] operator[SEP] identifier[Session] operator[SEP] identifier[getDefaultInst... |
private boolean extendsVariableContext(final TypeElement typeElement) {
boolean extendsVariableContext = false;
for (TypeMirror extendingInterface : typeElement.getInterfaces()) {
if (extendingInterface.toString().equals(VariableContext.class.getCanonicalName())) {
extendsVar... | class class_name[name] begin[{]
method[extendsVariableContext, return_type[type[boolean]], modifier[private], parameter[typeElement]] begin[{]
local_variable[type[boolean], extendsVariableContext]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(ar... | Keyword[private] Keyword[boolean] identifier[extendsVariableContext] operator[SEP] Keyword[final] identifier[TypeElement] identifier[typeElement] operator[SEP] {
Keyword[boolean] identifier[extendsVariableContext] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[TypeMirror] identi... |
public static String getCompactServerStatus(final ODistributedServerManager manager, final ODocument distribCfg) {
final StringBuilder buffer = new StringBuilder();
final Collection<ODocument> members = distribCfg.field("members");
if (members != null) {
buffer.append(members.size());
buffer.a... | class class_name[name] begin[{]
method[getCompactServerStatus, return_type[type[String]], modifier[public static], parameter[manager, distribCfg]] begin[{]
local_variable[type[StringBuilder], buffer]
local_variable[type[Collection], members]
if[binary_operation[member[.members],... | Keyword[public] Keyword[static] identifier[String] identifier[getCompactServerStatus] operator[SEP] Keyword[final] identifier[ODistributedServerManager] identifier[manager] , Keyword[final] identifier[ODocument] identifier[distribCfg] operator[SEP] {
Keyword[final] identifier[StringBuilder] identifier[buffer] o... |
public void marshall(DeleteBotAliasRequest deleteBotAliasRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteBotAliasRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deleteBotAliasRe... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[deleteBotAliasRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.deleteBotAliasRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Lit... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteBotAliasRequest] identifier[deleteBotAliasRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[deleteBotAliasRequest] operator[==] Other[null] operator[SEP] ... |
protected void init3() {
if (disabledSubProjects == null) {
disabledSubProjects = new PersistedList<>(this);
}
// Owner doesn't seem to be set when loading from XML
disabledSubProjects.setOwner(this);
try {
XmlFile templateXmlFile = Items.getConfigFile(g... | class class_name[name] begin[{]
method[init3, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[member[.disabledSubProjects], ==, literal[null]]] begin[{]
assign[member[.disabledSubProjects], ClassCreator(arguments=[This(postfix_operators=... | Keyword[protected] Keyword[void] identifier[init3] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[disabledSubProjects] operator[==] Other[null] operator[SEP] {
identifier[disabledSubProjects] operator[=] Keyword[new] identifier[PersistedList] operator[<] operator[>] operator[SEP] K... |
@Override
public void close() {
synchronized (cacheManagers) {
for (Map.Entry<ClassLoader, ConcurrentMap<URI, Eh107CacheManager>> entry : cacheManagers.entrySet()) {
for (Eh107CacheManager cacheManager : entry.getValue().values()) {
cacheManager.close();
}
}
cacheManage... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
SYNCHRONIZED[member[.cacheManagers]] BEGIN[{]
ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpressio... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
Keyword[synchronized] operator[SEP] identifier[cacheManagers] operator[SEP] {
Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[ClassLoader] ... |
@Override
protected Map<String, Object> initializeVariables(final Set<StringTextValue<?>> allSettings)
{
final Map<String, Object> variables = super.initializeVariables(allSettings);
variables.put(COMMAND, getCommand(getSettings()));
return variables;
} | class class_name[name] begin[{]
method[initializeVariables, return_type[type[Map]], modifier[protected], parameter[allSettings]] begin[{]
local_variable[type[Map], variables]
call[variables.put, parameter[member[.COMMAND], call[.getCommand, parameter[call[.getSettings, parameter[]]]]]]
... | annotation[@] identifier[Override] Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[initializeVariables] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[StringTextValue] operator[<] operator[?] operator[>] operator[>] identifier[allSettin... |
public static boolean getBooleanValue(String primaryKey, String secondaryKey) {
Object val = CFG.get(primaryKey);
if (val == null) {
val = CFG.get(secondaryKey);
if (val == null) {
throw new SofaRpcRuntimeException("Not found key: " + primaryKey + "/" + secondaryK... | class class_name[name] begin[{]
method[getBooleanValue, return_type[type[boolean]], modifier[public static], parameter[primaryKey, secondaryKey]] begin[{]
local_variable[type[Object], val]
if[binary_operation[member[.val], ==, literal[null]]] begin[{]
assign[memb... | Keyword[public] Keyword[static] Keyword[boolean] identifier[getBooleanValue] operator[SEP] identifier[String] identifier[primaryKey] , identifier[String] identifier[secondaryKey] operator[SEP] {
identifier[Object] identifier[val] operator[=] identifier[CFG] operator[SEP] identifier[get] operator[SEP] identifier... |
@Override
public void setBody(String body) {
super.setBody(body);
this.jsonValue = JsonValue.readFrom(body);
} | class class_name[name] begin[{]
method[setBody, return_type[void], modifier[public], parameter[body]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=body, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setBody, postfix_operators=[], prefix_operat... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setBody] operator[SEP] identifier[String] identifier[body] operator[SEP] {
Keyword[super] operator[SEP] identifier[setBody] operator[SEP] identifier[body] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[jsonValue] oper... |
public static HTML embedFlashObject (Panel container, String htmlString)
{
// Please note: the following is a work-around for an IE7 bug. If we create a Flash object
// node *before* attaching it to the DOM tree, IE will silently fail to register
// the Flash object's callback functions for ... | class class_name[name] begin[{]
method[embedFlashObject, return_type[type[HTML]], modifier[public static], parameter[container, htmlString]] begin[{]
local_variable[type[HTML], element]
call[container.add, parameter[member[.element]]]
call[element.setHTML, parameter[memb... | Keyword[public] Keyword[static] identifier[HTML] identifier[embedFlashObject] operator[SEP] identifier[Panel] identifier[container] , identifier[String] identifier[htmlString] operator[SEP] {
identifier[HTML] identifier[element] operator[=] Keyword[new] identifier[HTML] operator[SEP] operator[SEP] operator[SEP]... |
public static void copy(InputStream input, Writer output) throws IOException {
copy(input, output, Const.DEFAULT_ENCODING);
} | class class_name[name] begin[{]
method[copy, return_type[void], modifier[public static], parameter[input, output]] begin[{]
call[.copy, parameter[member[.input], member[.output], member[Const.DEFAULT_ENCODING]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[copy] operator[SEP] identifier[InputStream] identifier[input] , identifier[Writer] identifier[output] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[copy] operator[SEP] identifier[input] , identifier[output] , identifier[Const] opera... |
public void setAwsRegions(java.util.Collection<String> awsRegions) {
if (awsRegions == null) {
this.awsRegions = null;
return;
}
this.awsRegions = new com.amazonaws.internal.SdkInternalList<String>(awsRegions);
} | class class_name[name] begin[{]
method[setAwsRegions, return_type[void], modifier[public], parameter[awsRegions]] begin[{]
if[binary_operation[member[.awsRegions], ==, literal[null]]] begin[{]
assign[THIS[member[None.awsRegions]], literal[null]]
return[None]
... | Keyword[public] Keyword[void] identifier[setAwsRegions] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[awsRegions] operator[SEP] {
Keyword[if] operator[SEP] identifier[awsRegions] operator[==] Other[null] op... |
public static GroovyObject parseGroovyScript(final Resource groovyScript,
final boolean failOnError) {
return AccessController.doPrivileged((PrivilegedAction<GroovyObject>) () -> {
val parent = ScriptingUtils.class.getClassLoader();
try (v... | class class_name[name] begin[{]
method[parseGroovyScript, return_type[type[GroovyObject]], modifier[public static], parameter[groovyScript, failOnError]] begin[{]
return[call[AccessController.doPrivileged, parameter[Cast(expression=LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declara... | Keyword[public] Keyword[static] identifier[GroovyObject] identifier[parseGroovyScript] operator[SEP] Keyword[final] identifier[Resource] identifier[groovyScript] , Keyword[final] Keyword[boolean] identifier[failOnError] operator[SEP] {
Keyword[return] identifier[AccessController] operator[SEP] identifier[doPriv... |
@VisibleForTesting
public static void runMain(final String[] args) throws Exception {
final CliHelpDefinition helpCli = new CliHelpDefinition();
try {
Args.parse(helpCli, args);
if (helpCli.help) {
printUsage(0);
return;
}
... | class class_name[name] begin[{]
method[runMain, return_type[void], modifier[public static], parameter[args]] begin[{]
local_variable[type[CliHelpDefinition], helpCli]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=helpCli, postfix_operators... | annotation[@] identifier[VisibleForTesting] Keyword[public] Keyword[static] Keyword[void] identifier[runMain] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[final] identifier[CliHelpDefinition] identifier[... |
@ShellMethod(key = "jasypt-list-algorithms", value = "List alogrithms you can use with Jasypt for property encryption")
public void listAlgorithms(@ShellOption(value = {"includeBC"},
help = "Include Bouncy Castle provider") final boolean includeBC) {
if (includeBC) {
if (Security.getProv... | class class_name[name] begin[{]
method[listAlgorithms, return_type[void], modifier[public], parameter[includeBC]] begin[{]
if[member[.includeBC]] begin[{]
if[binary_operation[call[Security.getProvider, parameter[member[BouncyCastleProvider.PROVIDER_NAME]]], ==, literal[n... | annotation[@] identifier[ShellMethod] operator[SEP] identifier[key] operator[=] literal[String] , identifier[value] operator[=] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[listAlgorithms] operator[SEP] annotation[@] identifier[ShellOption] operator[SEP] identifier[value] operator[=] {
... |
public static void execute(RunnableWithException task, Consumer<Throwable> exceptionHandler, Runnable runFinally, Executor executor) {
Preconditions.checkNotNull(task, "task");
Preconditions.checkNotNull(exceptionHandler, "exceptionHandler");
Preconditions.checkNotNull(runFinally, "runFinally");... | class class_name[name] begin[{]
method[execute, return_type[void], modifier[public static], parameter[task, exceptionHandler, runFinally, executor]] begin[{]
call[Preconditions.checkNotNull, parameter[member[.task], literal["task"]]]
call[Preconditions.checkNotNull, parameter[me... | Keyword[public] Keyword[static] Keyword[void] identifier[execute] operator[SEP] identifier[RunnableWithException] identifier[task] , identifier[Consumer] operator[<] identifier[Throwable] operator[>] identifier[exceptionHandler] , identifier[Runnable] identifier[runFinally] , identifier[Executor] identifier[executor... |
public Generic onTypeVariable(Generic typeVariable) {
return declaringType.isGenerified()
? new Generic.OfNonGenericType.Latent(typeVariable.asErasure(), typeVariable)
: typeVariable;
} | class class_name[name] begin[{]
method[onTypeVariable, return_type[type[Generic]], modifier[public], parameter[typeVariable]] begin[{]
return[TernaryExpression(condition=MethodInvocation(arguments=[], member=isGenerified, postfix_operators=[], prefix_operators=[], qualifier=declaringType, selectors=[],... | Keyword[public] identifier[Generic] identifier[onTypeVariable] operator[SEP] identifier[Generic] identifier[typeVariable] operator[SEP] {
Keyword[return] identifier[declaringType] operator[SEP] identifier[isGenerified] operator[SEP] operator[SEP] operator[?] Keyword[new] identifier[Generic] operator[SEP] identif... |
public static Method getFunction(String functionName) {
Method method = FUNCTION_MAP.get(functionName);
if (method != null) {
return method;
}
String nameLower = functionName.toLowerCase(Locale.US);
if (nameLower == functionName) {
// Input name was in lower case, the function is not the... | class class_name[name] begin[{]
method[getFunction, return_type[type[Method]], modifier[public static], parameter[functionName]] begin[{]
local_variable[type[Method], method]
if[binary_operation[member[.method], !=, literal[null]]] begin[{]
return[member[.method]]
el... | Keyword[public] Keyword[static] identifier[Method] identifier[getFunction] operator[SEP] identifier[String] identifier[functionName] operator[SEP] {
identifier[Method] identifier[method] operator[=] identifier[FUNCTION_MAP] operator[SEP] identifier[get] operator[SEP] identifier[functionName] operator[SEP] operat... |
public List<? extends TypeMirror> getBounds(TypeParameterElement tpe) {
List<? extends TypeMirror> bounds = tpe.getBounds();
if (!bounds.isEmpty()) {
TypeMirror upperBound = bounds.get(bounds.size() - 1);
if (ignoreBounds(upperBound)) {
return Collections.emptyLis... | class class_name[name] begin[{]
method[getBounds, return_type[type[List]], modifier[public], parameter[tpe]] begin[{]
local_variable[type[List], bounds]
if[call[bounds.isEmpty, parameter[]]] begin[{]
local_variable[type[TypeMirror], upperBound]
if[cal... | Keyword[public] identifier[List] operator[<] operator[?] Keyword[extends] identifier[TypeMirror] operator[>] identifier[getBounds] operator[SEP] identifier[TypeParameterElement] identifier[tpe] operator[SEP] {
identifier[List] operator[<] operator[?] Keyword[extends] identifier[TypeMirror] operator[>] identifier... |
@Override
protected void prepareQueries() throws SQLException
{
super.prepareQueries();
FIND_NODES_AND_PROPERTIES =
"select J.*, P.ID AS P_ID, P.NAME AS P_NAME, P.VERSION AS P_VERSION, P.P_TYPE, P.P_MULTIVALUED,"
+ " V.DATA, V.ORDER_NUM, V.STORAGE_DESC from " + JCR_VALUE + " V, " ... | class class_name[name] begin[{]
method[prepareQueries, return_type[void], modifier[protected], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=prepareQueries, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
assign[me... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[prepareQueries] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] {
Keyword[super] operator[SEP] identifier[prepareQueries] operator[SEP] operator[SEP] operator[SEP] identifier[FIND_NODES_AND_PROPERTIES] operator[=]... |
public Matrix4f orthoSymmetricLH(float width, float height, float zNear, float zFar, Matrix4f dest) {
return orthoSymmetricLH(width, height, zNear, zFar, false, dest);
} | class class_name[name] begin[{]
method[orthoSymmetricLH, return_type[type[Matrix4f]], modifier[public], parameter[width, height, zNear, zFar, dest]] begin[{]
return[call[.orthoSymmetricLH, parameter[member[.width], member[.height], member[.zNear], member[.zFar], literal[false], member[.dest]]]]
end... | Keyword[public] identifier[Matrix4f] identifier[orthoSymmetricLH] operator[SEP] Keyword[float] identifier[width] , Keyword[float] identifier[height] , Keyword[float] identifier[zNear] , Keyword[float] identifier[zFar] , identifier[Matrix4f] identifier[dest] operator[SEP] {
Keyword[return] identifier[orthoSym... |
public String getQueryString(TableSchema tableSchema, Phase phase) throws Exception {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
boolean first = true;
for(String fieldName : fieldNames) {
if( first ) {
pw.print("least(coalesce(nullif(position(lower(?) IN lower(");
fir... | class class_name[name] begin[{]
method[getQueryString, return_type[type[String]], modifier[public], parameter[tableSchema, phase]] begin[{]
local_variable[type[StringWriter], sw]
local_variable[type[PrintWriter], pw]
local_variable[type[boolean], first]
ForStatement(body=BlockSt... | Keyword[public] identifier[String] identifier[getQueryString] operator[SEP] identifier[TableSchema] identifier[tableSchema] , identifier[Phase] identifier[phase] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[StringWriter] identifier[sw] operator[=] Keyword[new] identifier[StringWriter] operat... |
@Override
public void start(PrintStream writer, String[] params) {
parse(params);
out = writer;
// Create a new belief set about neighbours
BeliefSetField[] fields = {new BeliefSetField("name", String.class, true),};
try {
// Attach this belief set to this agent
this.createBeliefSet(... | class class_name[name] begin[{]
method[start, return_type[void], modifier[public], parameter[writer, params]] begin[{]
call[.parse, parameter[member[.params]]]
assign[member[.out], member[.writer]]
local_variable[type[BeliefSetField], fields]
TryStatement(block=[... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[PrintStream] identifier[writer] , identifier[String] operator[SEP] operator[SEP] identifier[params] operator[SEP] {
identifier[parse] operator[SEP] identifier[params] operator[SEP] operator[SEP] identifie... |
public static double meanDiffSq(GrayF32 imgA, GrayF32 imgB ) {
InputSanityCheck.checkSameShape(imgA,imgB);
if(BoofConcurrency.USE_CONCURRENT) {
return ImplImageStatistics_MT.meanDiffSq(imgA.data,imgA.startIndex,imgA.stride, imgB.data,imgB.startIndex,imgB.stride,imgA.height, imgA.width);
} else {
return Impl... | class class_name[name] begin[{]
method[meanDiffSq, return_type[type[double]], modifier[public static], parameter[imgA, imgB]] begin[{]
call[InputSanityCheck.checkSameShape, parameter[member[.imgA], member[.imgB]]]
if[member[BoofConcurrency.USE_CONCURRENT]] begin[{]
r... | Keyword[public] Keyword[static] Keyword[double] identifier[meanDiffSq] operator[SEP] identifier[GrayF32] identifier[imgA] , identifier[GrayF32] identifier[imgB] operator[SEP] {
identifier[InputSanityCheck] operator[SEP] identifier[checkSameShape] operator[SEP] identifier[imgA] , identifier[imgB] operator[SEP] ... |
public Campaign readFile(String fileName) throws Exception {
Campaign result = new Campaign();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(fileName);
doc.getDocumentElement().normalize(... | class class_name[name] begin[{]
method[readFile, return_type[type[Campaign]], modifier[public], parameter[fileName]] begin[{]
local_variable[type[Campaign], result]
local_variable[type[DocumentBuilderFactory], dbf]
local_variable[type[DocumentBuilder], db]
local_variable[type[Do... | Keyword[public] identifier[Campaign] identifier[readFile] operator[SEP] identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[Campaign] identifier[result] operator[=] Keyword[new] identifier[Campaign] operator[SEP] operator[SEP] operator[SEP] identifier[Document... |
@Override
public boolean applyAction(Model c) {
Mapping map = c.getMapping();
return !map.isOffline(node) && map.addOfflineNode(node);
} | class class_name[name] begin[{]
method[applyAction, return_type[type[boolean]], modifier[public], parameter[c]] begin[{]
local_variable[type[Mapping], map]
return[binary_operation[call[map.isOffline, parameter[member[.node]]], &&, call[map.addOfflineNode, parameter[member[.node]]]]]
end[}]
... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[applyAction] operator[SEP] identifier[Model] identifier[c] operator[SEP] {
identifier[Mapping] identifier[map] operator[=] identifier[c] operator[SEP] identifier[getMapping] operator[SEP] operator[SEP] operator[SEP] Keyword[return] op... |
public void doubleSnapshotOccurred(HollowReadStateEngine newHollowStateEngine, long newVersion) {
if(!keyIndex.isInitialized())
keyIndex.update(latestHollowReadStateEngine, false);
keyIndex.update(newHollowStateEngine, false);
HollowHistoricalStateDataAccess historicalDataAccess;
... | class class_name[name] begin[{]
method[doubleSnapshotOccurred, return_type[void], modifier[public], parameter[newHollowStateEngine, newVersion]] begin[{]
if[call[keyIndex.isInitialized, parameter[]]] begin[{]
call[keyIndex.update, parameter[member[.latestHollowReadStateEngine], lite... | Keyword[public] Keyword[void] identifier[doubleSnapshotOccurred] operator[SEP] identifier[HollowReadStateEngine] identifier[newHollowStateEngine] , Keyword[long] identifier[newVersion] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[keyIndex] operator[SEP] identifier[isInitialized] operator[SEP... |
public void setClobValue(long locator, Clob data) throws PersistException, IOException {
if (data == null) {
deleteLob(locator);
return;
}
if (locator == 0) {
throw new IllegalArgumentException("Cannot use locator zero");
}
if (data... | class class_name[name] begin[{]
method[setClobValue, return_type[void], modifier[public], parameter[locator, data]] begin[{]
if[binary_operation[member[.data], ==, literal[null]]] begin[{]
call[.deleteLob, parameter[member[.locator]]]
return[None]
els... | Keyword[public] Keyword[void] identifier[setClobValue] operator[SEP] Keyword[long] identifier[locator] , identifier[Clob] identifier[data] operator[SEP] Keyword[throws] identifier[PersistException] , identifier[IOException] {
Keyword[if] operator[SEP] identifier[data] operator[==] Other[null] operator[SEP] {
... |
public int findHeaderPositionUnder(int x, int y) {
for (int i = 0; i < mHeaderRects.size(); i++) {
Rect rect = mHeaderRects.get(mHeaderRects.keyAt(i));
if (rect.contains(x, y)) {
return mHeaderRects.keyAt(i);
}
}
return -1;
} | class class_name[name] begin[{]
method[findHeaderPositionUnder, return_type[type[int]], modifier[public], parameter[x, y]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocati... | Keyword[public] Keyword[int] identifier[findHeaderPositionUnder] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[mHeaderRects] operator[SEP] identif... |
protected Set<Class<? extends S>> findInstanceAbleScript(Set<Class<? extends S>> scriptClazzs)
throws InstantiationException, IllegalAccessException {
Set<Class<? extends S>> result=new HashSet<>();
for (Class<? extends S> scriptClazz : scriptClazzs)
{
if(isInstanceAble(scriptClazz))
{
result... | class class_name[name] begin[{]
method[findInstanceAbleScript, return_type[type[Set]], modifier[protected], parameter[scriptClazzs]] begin[{]
local_variable[type[Set], result]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberRefere... | Keyword[protected] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[S] operator[>] operator[>] identifier[findInstanceAbleScript] operator[SEP] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[S] operator[>] operator[>] id... |
public static IntegerChromosome of(
final int min,
final int max,
final IntRange lengthRange
) {
final ISeq<IntegerGene> values = IntegerGene.seq(min, max, lengthRange);
return new IntegerChromosome(values, lengthRange);
} | class class_name[name] begin[{]
method[of, return_type[type[IntegerChromosome]], modifier[public static], parameter[min, max, lengthRange]] begin[{]
local_variable[type[ISeq], values]
return[ClassCreator(arguments=[MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualif... | Keyword[public] Keyword[static] identifier[IntegerChromosome] identifier[of] operator[SEP] Keyword[final] Keyword[int] identifier[min] , Keyword[final] Keyword[int] identifier[max] , Keyword[final] identifier[IntRange] identifier[lengthRange] operator[SEP] {
Keyword[final] identifier[ISeq] operator[<] identifi... |
private void writeName(DataOutputStream os, MLArray array) throws IOException
{
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
DataOutputStream bufferDOS = new DataOutputStream(buffer);
byte[] nameByteArray = array.getNameToByteArray();
buffer = new ByteArrayOutputStrea... | class class_name[name] begin[{]
method[writeName, return_type[void], modifier[private], parameter[os, array]] begin[{]
local_variable[type[ByteArrayOutputStream], buffer]
local_variable[type[DataOutputStream], bufferDOS]
local_variable[type[byte], nameByteArray]
assign[m... | Keyword[private] Keyword[void] identifier[writeName] operator[SEP] identifier[DataOutputStream] identifier[os] , identifier[MLArray] identifier[array] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[ByteArrayOutputStream] identifier[buffer] operator[=] Keyword[new] identifier[ByteArrayOutputS... |
@Override
public UpdateSSHPublicKeyResult updateSSHPublicKey(UpdateSSHPublicKeyRequest request) {
request = beforeClientExecution(request);
return executeUpdateSSHPublicKey(request);
} | class class_name[name] begin[{]
method[updateSSHPublicKey, return_type[type[UpdateSSHPublicKeyResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeUpdateSSHPublicKey, parameter[me... | annotation[@] identifier[Override] Keyword[public] identifier[UpdateSSHPublicKeyResult] identifier[updateSSHPublicKey] operator[SEP] identifier[UpdateSSHPublicKeyRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat... |
@Override
public boolean logModified(Logger log)
{
if (_depend.logModified(log)) {
return true;
}
else if (_sourcePath == null)
return false;
else if (_sourcePath.getLastModified() != _sourceLastModified) {
log.info("source modified time: " + _sourcePath +
" o... | class class_name[name] begin[{]
method[logModified, return_type[type[boolean]], modifier[public], parameter[log]] begin[{]
if[call[_depend.logModified, parameter[member[.log]]]] begin[{]
return[literal[true]]
else begin[{]
if[binary_operation[member[._sourcePath]... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[logModified] operator[SEP] identifier[Logger] identifier[log] operator[SEP] {
Keyword[if] operator[SEP] identifier[_depend] operator[SEP] identifier[logModified] operator[SEP] identifier[log] operator[SEP] operator[SEP] {
K... |
private void expect(JsonToken expected) throws IOException {
peek();
if (token != expected) {
throw new IllegalStateException("Expected " + expected + " but was " + peek());
}
advance();
} | class class_name[name] begin[{]
method[expect, return_type[void], modifier[private], parameter[expected]] begin[{]
call[.peek, parameter[]]
if[binary_operation[member[.token], !=, member[.expected]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOp... | Keyword[private] Keyword[void] identifier[expect] operator[SEP] identifier[JsonToken] identifier[expected] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[peek] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[token] operator[!=] identifier[expected] operator[SEP]... |
public Observable<Boolean> handleMessage(final ChatMessage message) {
String sender = message.getSentBy();
Observable<Boolean> replaceMessages = persistenceController.updateStoreWithNewMessage(message, noConversationListener);
if (!TextUtils.isEmpty(sender) && !sender.equals(getProfileId())) ... | class class_name[name] begin[{]
method[handleMessage, return_type[type[Observable]], modifier[public], parameter[message]] begin[{]
local_variable[type[String], sender]
local_variable[type[Observable], replaceMessages]
if[binary_operation[call[TextUtils.isEmpty, parameter[member... | Keyword[public] identifier[Observable] operator[<] identifier[Boolean] operator[>] identifier[handleMessage] operator[SEP] Keyword[final] identifier[ChatMessage] identifier[message] operator[SEP] {
identifier[String] identifier[sender] operator[=] identifier[message] operator[SEP] identifier[getSentBy] operator[... |
public ReplicatorDocument find() {
assertNotEmpty(replicatorDoc.getId(), "Doc id");
final URI uri = buildUri(dbURI).path(replicatorDoc.getId()).query("rev", replicatorDoc.getRevision()).build();
return dbc.get(uri, ReplicatorDocument.class);
} | class class_name[name] begin[{]
method[find, return_type[type[ReplicatorDocument]], modifier[public], parameter[]] begin[{]
call[.assertNotEmpty, parameter[call[replicatorDoc.getId, parameter[]], literal["Doc id"]]]
local_variable[type[URI], uri]
return[call[dbc.get, parameter[m... | Keyword[public] identifier[ReplicatorDocument] identifier[find] operator[SEP] operator[SEP] {
identifier[assertNotEmpty] operator[SEP] identifier[replicatorDoc] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[URI] identifier[uri... |
public static List<WordInfo> extractWords(String text, int size)
{
return extractWords(text, size, false);
} | class class_name[name] begin[{]
method[extractWords, return_type[type[List]], modifier[public static], parameter[text, size]] begin[{]
return[call[.extractWords, parameter[member[.text], member[.size], literal[false]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[WordInfo] operator[>] identifier[extractWords] operator[SEP] identifier[String] identifier[text] , Keyword[int] identifier[size] operator[SEP] {
Keyword[return] identifier[extractWords] operator[SEP] identifier[text] , identifier[size] , ... |
public void setArgumentResolvers(
List<HandlerMethodArgumentResolver> argumentResolvers) {
if (argumentResolvers == null) {
this.argumentResolvers.clear();
return;
}
this.argumentResolvers.addResolvers(argumentResolvers);
} | class class_name[name] begin[{]
method[setArgumentResolvers, return_type[void], modifier[public], parameter[argumentResolvers]] begin[{]
if[binary_operation[member[.argumentResolvers], ==, literal[null]]] begin[{]
THIS[member[None.argumentResolvers]call[None.clear, param... | Keyword[public] Keyword[void] identifier[setArgumentResolvers] operator[SEP] identifier[List] operator[<] identifier[HandlerMethodArgumentResolver] operator[>] identifier[argumentResolvers] operator[SEP] {
Keyword[if] operator[SEP] identifier[argumentResolvers] operator[==] Other[null] operator[SEP] {
... |
public void postProcessThisDirectory(File fileDir, Object objDirID)
{
if (DBConstants.TRUE.equalsIgnoreCase(this.getProperty("deleteDir")))
fileDir.delete();
} | class class_name[name] begin[{]
method[postProcessThisDirectory, return_type[void], modifier[public], parameter[fileDir, objDirID]] begin[{]
if[call[DBConstants.TRUE.equalsIgnoreCase, parameter[THIS[call[None.getProperty, parameter[literal["deleteDir"]]]]]]] begin[{]
call[fileDir.de... | Keyword[public] Keyword[void] identifier[postProcessThisDirectory] operator[SEP] identifier[File] identifier[fileDir] , identifier[Object] identifier[objDirID] operator[SEP] {
Keyword[if] operator[SEP] identifier[DBConstants] operator[SEP] identifier[TRUE] operator[SEP] identifier[equalsIgnoreCase] operator[SEP... |
public static com.liferay.commerce.product.model.CPOptionValue getCPOptionValueByUuidAndGroupId(
String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getCPOptionValueByUuidAndGroupId(uuid, groupId);
} | class class_name[name] begin[{]
method[getCPOptionValueByUuidAndGroupId, return_type[type[com]], modifier[public static], parameter[uuid, groupId]] begin[{]
return[call[.getService, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPOptionValue] identifier[getCPOptionValueByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , ... |
private WsByteBuffer getBuffer() {
WsByteBuffer buffer = this._output[this.outputIndex];
if (null == buffer) {
buffer = getNewByteBuffer();
buffer.clear();
this._output[this.outputIndex] = buffer;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabl... | class class_name[name] begin[{]
method[getBuffer, return_type[type[WsByteBuffer]], modifier[private], parameter[]] begin[{]
local_variable[type[WsByteBuffer], buffer]
if[binary_operation[literal[null], ==, member[.buffer]]] begin[{]
assign[member[.buffer], call[.... | Keyword[private] identifier[WsByteBuffer] identifier[getBuffer] operator[SEP] operator[SEP] {
identifier[WsByteBuffer] identifier[buffer] operator[=] Keyword[this] operator[SEP] identifier[_output] operator[SEP] Keyword[this] operator[SEP] identifier[outputIndex] operator[SEP] operator[SEP] Keyword[if] operator[... |
public void setLevNum(Integer newLevNum) {
Integer oldLevNum = levNum;
levNum = newLevNum;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.ATTRIBUTE_QUALIFIER__LEV_NUM, oldLevNum, levNum));
} | class class_name[name] begin[{]
method[setLevNum, return_type[void], modifier[public], parameter[newLevNum]] begin[{]
local_variable[type[Integer], oldLevNum]
assign[member[.levNum], member[.newLevNum]]
if[call[.eNotificationRequired, parameter[]]] begin[{]
c... | Keyword[public] Keyword[void] identifier[setLevNum] operator[SEP] identifier[Integer] identifier[newLevNum] operator[SEP] {
identifier[Integer] identifier[oldLevNum] operator[=] identifier[levNum] operator[SEP] identifier[levNum] operator[=] identifier[newLevNum] operator[SEP] Keyword[if] operator[SEP] identifie... |
public void sendCookie(String name, String value) {
RequestContext.getHttpResponse().addCookie(Cookie.toServletCookie(new Cookie(name, value)));
} | class class_name[name] begin[{]
method[sendCookie, return_type[void], modifier[public], parameter[name, value]] begin[{]
call[RequestContext.getHttpResponse, parameter[]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[sendCookie] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] {
identifier[RequestContext] operator[SEP] identifier[getHttpResponse] operator[SEP] operator[SEP] operator[SEP] identifier[addCookie] operator[SEP] identif... |
public ServiceFuture<List<DeletedKeyItem>> getDeletedKeysNextAsync(final String nextPageLink, final ServiceFuture<List<DeletedKeyItem>> serviceFuture, final ListOperationCallback<DeletedKeyItem> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
getDeletedKeysNextSinglePageAsync(nextPage... | class class_name[name] begin[{]
method[getDeletedKeysNextAsync, return_type[type[ServiceFuture]], modifier[public], parameter[nextPageLink, serviceFuture, serviceCallback]] begin[{]
return[call[AzureServiceFuture.fromPageResponse, parameter[call[.getDeletedKeysNextSinglePageAsync, parameter[member[.nex... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[DeletedKeyItem] operator[>] operator[>] identifier[getDeletedKeysNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] , Keyword[final] identifier[ServiceFuture] operator[<] identifier[List] oper... |
public static CommercePriceList fetchByLtD_S_Last(Date displayDate,
int status, OrderByComparator<CommercePriceList> orderByComparator) {
return getPersistence()
.fetchByLtD_S_Last(displayDate, status, orderByComparator);
} | class class_name[name] begin[{]
method[fetchByLtD_S_Last, return_type[type[CommercePriceList]], modifier[public static], parameter[displayDate, status, orderByComparator]] begin[{]
return[call[.getPersistence, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[CommercePriceList] identifier[fetchByLtD_S_Last] operator[SEP] identifier[Date] identifier[displayDate] , Keyword[int] identifier[status] , identifier[OrderByComparator] operator[<] identifier[CommercePriceList] operator[>] identifier[orderByComparator] operator[SEP] {
... |
public void set(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
this.points[0] = x1;
this.points[1] = y1;
this.points[2] = 0;
this.points[3] = x2;
this.points[4] = y2;
this.points[5] = 0;
th... | class class_name[name] begin[{]
method[set, return_type[void], modifier[public], parameter[x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4]] begin[{]
assign[THIS[member[None.points]ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], me... | Keyword[public] Keyword[void] identifier[set] operator[SEP] Keyword[float] identifier[x1] , Keyword[float] identifier[y1] , Keyword[float] identifier[z1] , Keyword[float] identifier[x2] , Keyword[float] identifier[y2] , Keyword[float] identifier[z2] , Keyword[float] identifier[x3] , Keyword[float] identifier[y3]... |
@Deprecated
public final void reset(String str)
{
int length = 0;
if (str != null) {
length = str.length();
}
reset(str, 0, length);
} | class class_name[name] begin[{]
method[reset, return_type[void], modifier[final public], parameter[str]] begin[{]
local_variable[type[int], length]
if[binary_operation[member[.str], !=, literal[null]]] begin[{]
assign[member[.length], call[str.length, parameter[]... | annotation[@] identifier[Deprecated] Keyword[public] Keyword[final] Keyword[void] identifier[reset] operator[SEP] identifier[String] identifier[str] operator[SEP] {
Keyword[int] identifier[length] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[str] operator[!=] Other[null] operator[SEP] ... |
public synchronized int getActualTotal(T actual) {
if (!matrix.containsKey(actual)) {
return 0;
} else {
int total = 0;
for (T elem : matrix.get(actual).elementSet()) {
total += matrix.get(actual).count(elem);
}
return total;
... | class class_name[name] begin[{]
method[getActualTotal, return_type[type[int]], modifier[synchronized public], parameter[actual]] begin[{]
if[call[matrix.containsKey, parameter[member[.actual]]]] begin[{]
return[literal[0]]
else begin[{]
local_variable[type[int], ... | Keyword[public] Keyword[synchronized] Keyword[int] identifier[getActualTotal] operator[SEP] identifier[T] identifier[actual] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[matrix] operator[SEP] identifier[containsKey] operator[SEP] identifier[actual] operator[SEP] operator[SEP] {
Key... |
public ActivityImpl findCompensationHandler() {
String compensationHandlerId = (String) getProperty(BpmnParse.PROPERTYNAME_COMPENSATION_HANDLER_ID);
if(compensationHandlerId != null) {
return getProcessDefinition().findActivity(compensationHandlerId);
} else {
return null;
}
} | class class_name[name] begin[{]
method[findCompensationHandler, return_type[type[ActivityImpl]], modifier[public], parameter[]] begin[{]
local_variable[type[String], compensationHandlerId]
if[binary_operation[member[.compensationHandlerId], !=, literal[null]]] begin[{]
retur... | Keyword[public] identifier[ActivityImpl] identifier[findCompensationHandler] operator[SEP] operator[SEP] {
identifier[String] identifier[compensationHandlerId] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[getProperty] operator[SEP] identifier[BpmnParse] operator[SEP] identifier[PROPERTYN... |
private Collection<ConfigAttribute> wrap(final AccessPredicate predicate) {
requireNonNull(predicate, "predicate");
if (predicate == AccessPredicates.PERMIT_ALL) {
return of(); // Empty collection => public invocation
}
return of(new AccessPredicateConfigAttribute(predicate))... | class class_name[name] begin[{]
method[wrap, return_type[type[Collection]], modifier[private], parameter[predicate]] begin[{]
call[.requireNonNull, parameter[member[.predicate], literal["predicate"]]]
if[binary_operation[member[.predicate], ==, member[AccessPredicates.PERMIT_ALL... | Keyword[private] identifier[Collection] operator[<] identifier[ConfigAttribute] operator[>] identifier[wrap] operator[SEP] Keyword[final] identifier[AccessPredicate] identifier[predicate] operator[SEP] {
identifier[requireNonNull] operator[SEP] identifier[predicate] , literal[String] operator[SEP] operator[SEP]... |
public List<JoinableResourceBundle> getResourceBundles(Properties properties) {
PropertiesConfigHelper props = new PropertiesConfigHelper(properties, resourceType);
String fileExtension = "." + resourceType;
// Initialize custom bundles
List<JoinableResourceBundle> customBundles = new ArrayList<>();
// Chec... | class class_name[name] begin[{]
method[getResourceBundles, return_type[type[List]], modifier[public], parameter[properties]] begin[{]
local_variable[type[PropertiesConfigHelper], props]
local_variable[type[String], fileExtension]
local_variable[type[List], customBundles]
... | Keyword[public] identifier[List] operator[<] identifier[JoinableResourceBundle] operator[>] identifier[getResourceBundles] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] {
identifier[PropertiesConfigHelper] identifier[props] operator[=] Keyword[new] identifier[PropertiesConfigHelper] o... |
public void load(ResourceLocation resourceLocation)
{
try
{
IResource res = Minecraft.getMinecraft().getResourceManager().getResource(resourceLocation);
load(res.getInputStream());
}
catch (IOException e)
{
MalisisCore.log.error("[ObjFileImporter] An error happened while reading the file : {}", reso... | class class_name[name] begin[{]
method[load, return_type[void], modifier[public], parameter[resourceLocation]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getMinecraft, postfix_ope... | Keyword[public] Keyword[void] identifier[load] operator[SEP] identifier[ResourceLocation] identifier[resourceLocation] operator[SEP] {
Keyword[try] {
identifier[IResource] identifier[res] operator[=] identifier[Minecraft] operator[SEP] identifier[getMinecraft] operator[SEP] operator[SEP] operator[SEP]... |
protected OperationResponse internalExecute(final ModelNode operation, final OperationMessageHandler handler, final OperationTransactionControl control,
final OperationAttachments attachments, final OperationStepHandler prepareStep, final boolean attemptLock, boolean part... | class class_name[name] begin[{]
method[internalExecute, return_type[type[OperationResponse]], modifier[protected], parameter[operation, handler, control, attachments, prepareStep, attemptLock, partialModel]] begin[{]
local_variable[type[SecurityManager], sm]
if[binary_operation[member[.... | Keyword[protected] identifier[OperationResponse] identifier[internalExecute] operator[SEP] Keyword[final] identifier[ModelNode] identifier[operation] , Keyword[final] identifier[OperationMessageHandler] identifier[handler] , Keyword[final] identifier[OperationTransactionControl] identifier[control] , Keyword[final] ... |
void writeArrayItemStart() throws IOException {
if (commaState.get(commaDepth)) {
output.append(',');
if (newLine.length() > 0) {
output.append(' ');
}
} else {
commaState.set(commaDepth);
}
} | class class_name[name] begin[{]
method[writeArrayItemStart, return_type[void], modifier[default], parameter[]] begin[{]
if[call[commaState.get, parameter[member[.commaDepth]]]] begin[{]
call[output.append, parameter[literal[',']]]
if[binary_operat... | Keyword[void] identifier[writeArrayItemStart] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[commaState] operator[SEP] identifier[get] operator[SEP] identifier[commaDepth] operator[SEP] operator[SEP] {
identifier[output] operator[SEP] identif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.