code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public File execute( JnlpDependencyConfig config, File file )
throws JnlpDependencyTaskException
{
SignConfig sign = config.getSign();
boolean signVerify = sign.isVerify();
File signedJar = new File( file.getParentFile(), file.getName() + ".sign" );
try
{
... | class class_name[name] begin[{]
method[execute, return_type[type[File]], modifier[public], parameter[config, file]] begin[{]
local_variable[type[SignConfig], sign]
local_variable[type[boolean], signVerify]
local_variable[type[File], signedJar]
TryStatement(block=[StatementExpres... | Keyword[public] identifier[File] identifier[execute] operator[SEP] identifier[JnlpDependencyConfig] identifier[config] , identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[JnlpDependencyTaskException] {
identifier[SignConfig] identifier[sign] operator[=] identifier[config] operator[SEP] ... |
public static void pipeMagnitude( double[] magnitude, double[] whereDrain, IHMProgressMonitor pm ) {
int count = 0;
/* whereDrain Contiene gli indici degli stati riceventi. */
/* magnitude Contiene la magnitude dei vari stati. */
int length = magnitude.length;
/* Per ogni stat... | class class_name[name] begin[{]
method[pipeMagnitude, return_type[void], modifier[public static], parameter[magnitude, whereDrain, pm]] begin[{]
local_variable[type[int], count]
local_variable[type[int], length]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpressio... | Keyword[public] Keyword[static] Keyword[void] identifier[pipeMagnitude] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[magnitude] , Keyword[double] operator[SEP] operator[SEP] identifier[whereDrain] , identifier[IHMProgressMonitor] identifier[pm] operator[SEP] {
Keyword[int] identifier[co... |
@Override
public EClass getIfcModulusOfLinearSubgradeReactionMeasure() {
if (ifcModulusOfLinearSubgradeReactionMeasureEClass == null) {
ifcModulusOfLinearSubgradeReactionMeasureEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(839);
}
return ifcMod... | class class_name[name] begin[{]
method[getIfcModulusOfLinearSubgradeReactionMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcModulusOfLinearSubgradeReactionMeasureEClass], ==, literal[null]]] begin[{]
assign[membe... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcModulusOfLinearSubgradeReactionMeasure] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcModulusOfLinearSubgradeReactionMeasureEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcModu... |
@Override
public Object map(Object input) {
Number n = (Number) input;
double val = n.doubleValue();
if (Double.isNaN(val))
return new DoubleWritable(0);
return normMean(val);
} | class class_name[name] begin[{]
method[map, return_type[type[Object]], modifier[public], parameter[input]] begin[{]
local_variable[type[Number], n]
local_variable[type[double], val]
if[call[Double.isNaN, parameter[member[.val]]]] begin[{]
return[ClassCreator(arguments=[Literal(p... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[map] operator[SEP] identifier[Object] identifier[input] operator[SEP] {
identifier[Number] identifier[n] operator[=] operator[SEP] identifier[Number] operator[SEP] identifier[input] operator[SEP] Keyword[double] identifier[val] oper... |
@Override
public boolean performOk() {
reportConfigurationTab.performOk();
boolean analysisSettingsChanged = false;
boolean reporterSettingsChanged = false;
boolean needRedisplayMarkers = false;
if (workspaceSettingsTab != null) {
workspaceSettingsTab.performOK();... | class class_name[name] begin[{]
method[performOk, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
call[reportConfigurationTab.performOk, parameter[]]
local_variable[type[boolean], analysisSettingsChanged]
local_variable[type[boolean], reporterSettingsChanged]... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[performOk] operator[SEP] operator[SEP] {
identifier[reportConfigurationTab] operator[SEP] identifier[performOk] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[analysisSettingsChanged] operator[=] literal[boolean... |
@SuppressWarnings("unchecked")
@Override // override for Javadoc
public <R> R query(TemporalQuery<R> query) {
if (query == TemporalQueries.localDate()) {
return (R) date;
}
return ChronoLocalDateTime.super.query(query);
} | class class_name[name] begin[{]
method[query, return_type[type[R]], modifier[public], parameter[query]] begin[{]
if[binary_operation[member[.query], ==, call[TemporalQueries.localDate, parameter[]]]] begin[{]
return[Cast(expression=MemberReference(member=date, postfix_operators=[], ... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] operator[<] identifier[R] operator[>] identifier[R] identifier[query] operator[SEP] identifier[TemporalQuery] operator[<] identifier[R] operator[>] identifier[query] operator[SEP] {... |
void recordPreparedOperation(final TransactionalProtocolClient.PreparedOperation<ServerTaskExecutor.ServerOperation> preparedOperation) {
recordPreparedTask(new ServerTaskExecutor.ServerPreparedResponse(preparedOperation));
} | class class_name[name] begin[{]
method[recordPreparedOperation, return_type[void], modifier[default], parameter[preparedOperation]] begin[{]
call[.recordPreparedTask, parameter[ClassCreator(arguments=[MemberReference(member=preparedOperation, postfix_operators=[], prefix_operators=[], qualifier... | Keyword[void] identifier[recordPreparedOperation] operator[SEP] Keyword[final] identifier[TransactionalProtocolClient] operator[SEP] identifier[PreparedOperation] operator[<] identifier[ServerTaskExecutor] operator[SEP] identifier[ServerOperation] operator[>] identifier[preparedOperation] operator[SEP] {
identif... |
private static List<Parameter> convert(Map<String, Object> map) {
Set<Entry<String, Object>> entries = map.entrySet();
List<Parameter> parameters = new ArrayList<>(entries.size());
for (Entry<String, Object> entry : entries) {
if (entry.getValue() != null) {
parameters.add(new Parameter(entry.getKey(), ent... | class class_name[name] begin[{]
method[convert, return_type[type[List]], modifier[private static], parameter[map]] begin[{]
local_variable[type[Set], entries]
local_variable[type[List], parameters]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOper... | Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Parameter] operator[>] identifier[convert] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] operator[SEP] {
identifier[Set] operator[<] identifier[Entry] operator[<] identifier[S... |
public Object execute(Method method, Object targetObj, Object[] p_args) throws Throwable {
try {
if ((method == null) || (targetObj == null))
Debug.logError("[JdonFramework] no method or target, please check your configure", module);
if (p_args == null)
p_args = new Object[0];
Debug.logVerbose(... | class class_name[name] begin[{]
method[execute, return_type[type[Object]], modifier[public], parameter[method, targetObj, p_args]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=method, postfix_operators=[], prefix_operators=[... | Keyword[public] identifier[Object] identifier[execute] operator[SEP] identifier[Method] identifier[method] , identifier[Object] identifier[targetObj] , identifier[Object] operator[SEP] operator[SEP] identifier[p_args] operator[SEP] Keyword[throws] identifier[Throwable] {
Keyword[try] {
Keyword[if] o... |
public DescribeConditionalForwardersResult withConditionalForwarders(ConditionalForwarder... conditionalForwarders) {
if (this.conditionalForwarders == null) {
setConditionalForwarders(new com.amazonaws.internal.SdkInternalList<ConditionalForwarder>(conditionalForwarders.length));
}
... | class class_name[name] begin[{]
method[withConditionalForwarders, return_type[type[DescribeConditionalForwardersResult]], modifier[public], parameter[conditionalForwarders]] begin[{]
if[binary_operation[THIS[member[None.conditionalForwarders]], ==, literal[null]]] begin[{]
... | Keyword[public] identifier[DescribeConditionalForwardersResult] identifier[withConditionalForwarders] operator[SEP] identifier[ConditionalForwarder] operator[...] identifier[conditionalForwarders] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[conditionalForwarders] operator[==]... |
public Map<String, Object> getEntityFromDocument(Class<?> entityClass, Object entity, EntityMetadata m,
DBObject document, List<String> relations, Map<String, Object> relationValue,
final KunderaMetadata kunderaMetadata)
{
// Map to hold property-name=>foreign-entity relations
... | class class_name[name] begin[{]
method[getEntityFromDocument, return_type[type[Map]], modifier[public], parameter[entityClass, entity, m, document, relations, relationValue, kunderaMetadata]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimension... | Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getEntityFromDocument] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[entityClass] , identifier[Object] identifier[entity] , identifier[EntityMetadata] identifier[m] , identifie... |
public static double blackScholesGeneralizedOptionVega(
double forward,
double volatility,
double optionMaturity,
double optionStrike,
double payoffUnit)
{
if(optionStrike <= 0.0 || optionMaturity <= 0.0)
{
// The Black-Scholes model does not consider it being an option
return 0.0;
}
else
... | class class_name[name] begin[{]
method[blackScholesGeneralizedOptionVega, return_type[type[double]], modifier[public static], parameter[forward, volatility, optionMaturity, optionStrike, payoffUnit]] begin[{]
if[binary_operation[binary_operation[member[.optionStrike], <=, literal[0.0]], ||, bin... | Keyword[public] Keyword[static] Keyword[double] identifier[blackScholesGeneralizedOptionVega] operator[SEP] Keyword[double] identifier[forward] , Keyword[double] identifier[volatility] , Keyword[double] identifier[optionMaturity] , Keyword[double] identifier[optionStrike] , Keyword[double] identifier[payoffUnit] op... |
public boolean hasNextBigDecimal() {
setRadix(10);
boolean result = hasNext(decimalPattern());
if (result) { // Cache it
try {
String s = processFloatToken(hasNextResult);
typeCache = new BigDecimal(s);
} catch (NumberFormatException nfe) {... | class class_name[name] begin[{]
method[hasNextBigDecimal, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
call[.setRadix, parameter[literal[10]]]
local_variable[type[boolean], result]
if[member[.result]] begin[{]
TryStatement(block=[LocalV... | Keyword[public] Keyword[boolean] identifier[hasNextBigDecimal] operator[SEP] operator[SEP] {
identifier[setRadix] operator[SEP] Other[10] operator[SEP] operator[SEP] Keyword[boolean] identifier[result] operator[=] identifier[hasNext] operator[SEP] identifier[decimalPattern] operator[SEP] operator[SEP] operator[S... |
public static appflowaction get(nitro_service service, String name) throws Exception{
appflowaction obj = new appflowaction();
obj.set_name(name);
appflowaction response = (appflowaction) obj.get_resource(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[appflowaction]], modifier[public static], parameter[service, name]] begin[{]
local_variable[type[appflowaction], obj]
call[obj.set_name, parameter[member[.name]]]
local_variable[type[appflowaction], response]
r... | Keyword[public] Keyword[static] identifier[appflowaction] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[appflowaction] identifier[obj] operator[=] Keyword[new] identifier[appflowa... |
private static boolean polylineOverlapsPolyline_(Polyline polyline_a,
Polyline polyline_b, double tolerance,
ProgressTracker progress_tracker) {
// Quick rasterize test to see whether the the geometries are disjoint.
if (tryRasterizedContainsOrDisjoint_(polyline_a, polyline_b, tolerance,
false) == Relatio... | class class_name[name] begin[{]
method[polylineOverlapsPolyline_, return_type[type[boolean]], modifier[private static], parameter[polyline_a, polyline_b, tolerance, progress_tracker]] begin[{]
if[binary_operation[call[.tryRasterizedContainsOrDisjoint_, parameter[member[.polyline_a], member[.pol... | Keyword[private] Keyword[static] Keyword[boolean] identifier[polylineOverlapsPolyline_] operator[SEP] identifier[Polyline] identifier[polyline_a] , identifier[Polyline] identifier[polyline_b] , Keyword[double] identifier[tolerance] , identifier[ProgressTracker] identifier[progress_tracker] operator[SEP] {
Key... |
public final <R> Mono<R> handle(BiConsumer<? super T, SynchronousSink<R>> handler) {
if (this instanceof Fuseable) {
return onAssembly(new MonoHandleFuseable<>(this, handler));
}
return onAssembly(new MonoHandle<>(this, handler));
} | class class_name[name] begin[{]
method[handle, return_type[type[Mono]], modifier[final public], parameter[handler]] begin[{]
if[binary_operation[THIS[], instanceof, type[Fuseable]]] begin[{]
return[call[.onAssembly, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix... | Keyword[public] Keyword[final] operator[<] identifier[R] operator[>] identifier[Mono] operator[<] identifier[R] operator[>] identifier[handle] operator[SEP] identifier[BiConsumer] operator[<] operator[?] Keyword[super] identifier[T] , identifier[SynchronousSink] operator[<] identifier[R] operator[>] operator[>] identi... |
public static Color valueOf(String color) {
Objects.requireNonNull(color, "color");
Throwable cause = null;
try {
Color hexColor = parseHexString(color);
if (hexColor != null) {
return hexColor;
} else {
String upperColor = BasicHelper.toUpperCase(color);
Color nam... | class class_name[name] begin[{]
method[valueOf, return_type[type[Color]], modifier[public static], parameter[color]] begin[{]
call[Objects.requireNonNull, parameter[member[.color], literal["color"]]]
local_variable[type[Throwable], cause]
TryStatement(block=[LocalVariableDeclara... | Keyword[public] Keyword[static] identifier[Color] identifier[valueOf] operator[SEP] identifier[String] identifier[color] operator[SEP] {
identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[color] , literal[String] operator[SEP] operator[SEP] identifier[Throwable] identifier[cau... |
public void setTargetedAdUnits(com.google.api.ads.admanager.axis.v201808.AdUnitTargeting[] targetedAdUnits) {
this.targetedAdUnits = targetedAdUnits;
} | class class_name[name] begin[{]
method[setTargetedAdUnits, return_type[void], modifier[public], parameter[targetedAdUnits]] begin[{]
assign[THIS[member[None.targetedAdUnits]], member[.targetedAdUnits]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setTargetedAdUnits] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[AdUnitTarg... |
public static ByteArrayDocument from(ByteArrayDocument doc, String id, byte[] content) {
return ByteArrayDocument.create(id, doc.expiry(), content, doc.cas(), doc.mutationToken());
} | class class_name[name] begin[{]
method[from, return_type[type[ByteArrayDocument]], modifier[public static], parameter[doc, id, content]] begin[{]
return[call[ByteArrayDocument.create, parameter[member[.id], call[doc.expiry, parameter[]], member[.content], call[doc.cas, parameter[]], call[doc.mutationTo... | Keyword[public] Keyword[static] identifier[ByteArrayDocument] identifier[from] operator[SEP] identifier[ByteArrayDocument] identifier[doc] , identifier[String] identifier[id] , Keyword[byte] operator[SEP] operator[SEP] identifier[content] operator[SEP] {
Keyword[return] identifier[ByteArrayDocument] operator[S... |
public void put(K key, E element) {
final String methodName = "put(): ";
stateLock.writeLock().lock();
try {
Integer index = actualIndices.remove(key);
if (index == null)
throw new IllegalArgumentException("unknown key: " + key);
elements[index... | class class_name[name] begin[{]
method[put, return_type[void], modifier[public], parameter[key, element]] begin[{]
local_variable[type[String], methodName]
call[stateLock.writeLock, parameter[]]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDe... | Keyword[public] Keyword[void] identifier[put] operator[SEP] identifier[K] identifier[key] , identifier[E] identifier[element] operator[SEP] {
Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] identifier[stateLock] operator[SEP] identifier[writeLock] operator[SEP]... |
public com.sun.javadoc.Type[] interfaceTypes() {
//### Cache result here?
return TypeMaker.getTypes(env, env.types.interfaces(type));
} | class class_name[name] begin[{]
method[interfaceTypes, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[call[TypeMaker.getTypes, parameter[member[.env], call[env.types.interfaces, parameter[member[.type]]]]]]
end[}]
END[}] | Keyword[public] identifier[com] operator[SEP] identifier[sun] operator[SEP] identifier[javadoc] operator[SEP] identifier[Type] operator[SEP] operator[SEP] identifier[interfaceTypes] operator[SEP] operator[SEP] {
Keyword[return] identifier[TypeMaker] operator[SEP] identifier[getTypes] operator[SEP] identifier[env... |
private void initDataSource(final Plugins plugins) {
final Map<String, Properties> dbConfig = GojaConfig.loadDBConfig(GojaConfig.getConfigProps());
for (String db_config : dbConfig.keySet()) {
final Properties db_props = dbConfig.get(db_config);
if (db_props != null && !db_props... | class class_name[name] begin[{]
method[initDataSource, return_type[void], modifier[private], parameter[plugins]] begin[{]
local_variable[type[Map], dbConfig]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensi... | Keyword[private] Keyword[void] identifier[initDataSource] operator[SEP] Keyword[final] identifier[Plugins] identifier[plugins] operator[SEP] {
Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Properties] operator[>] identifier[dbConfig] operator[=] identifier[GojaConfig] operator[SEP] ... |
protected void addNeighborToOrdering(TrustGraphNodeId neighbor) {
int position = rng.nextInt(orderedNeighbors.size()+1);
if (position == orderedNeighbors.size()) {
orderedNeighbors.add(neighbor);
}
else {
orderedNeighbors.add(position, neighbor);
... | class class_name[name] begin[{]
method[addNeighborToOrdering, return_type[void], modifier[protected], parameter[neighbor]] begin[{]
local_variable[type[int], position]
if[binary_operation[member[.position], ==, call[orderedNeighbors.size, parameter[]]]] begin[{]
... | Keyword[protected] Keyword[void] identifier[addNeighborToOrdering] operator[SEP] identifier[TrustGraphNodeId] identifier[neighbor] operator[SEP] {
Keyword[int] identifier[position] operator[=] identifier[rng] operator[SEP] identifier[nextInt] operator[SEP] identifier[orderedNeighbors] operator[SEP] identifier[si... |
@java.lang.Deprecated
public java.util.Map<java.lang.String, alluxio.grpc.TierList> getAddedBlocksOnTiers() {
return getAddedBlocksOnTiersMap();
} | class class_name[name] begin[{]
method[getAddedBlocksOnTiers, return_type[type[java]], modifier[public], parameter[]] begin[{]
return[call[.getAddedBlocksOnTiersMap, parameter[]]]
end[}]
END[}] | annotation[@] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Deprecated] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] , identifier[alluxio] operator[SE... |
protected IWord[] getNextMatch(char[] chars, int index)
{
ArrayList<IWord> mList = new ArrayList<IWord>(8);
//StringBuilder isb = new StringBuilder();
isb.clear();
char c = chars[index];
isb.append(c);
String temp = isb.toString();
if ( dic.match(ILexico... | class class_name[name] begin[{]
method[getNextMatch, return_type[type[IWord]], modifier[protected], parameter[chars, index]] begin[{]
local_variable[type[ArrayList], mList]
call[isb.clear, parameter[]]
local_variable[type[char], c]
call[isb.append, parameter[memb... | Keyword[protected] identifier[IWord] operator[SEP] operator[SEP] identifier[getNextMatch] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[chars] , Keyword[int] identifier[index] operator[SEP] {
identifier[ArrayList] operator[<] identifier[IWord] operator[>] identifier[mList] operator[=] Keywo... |
private void updateMonomerStore(MonomerStore monomerStore)
throws MonomerLoadingException, IOException, MonomerException, ChemistryException {
for (Monomer monomer : monomerStore.getAllMonomersList()) {
MonomerFactory.getInstance().getMonomerStore().addNewMonomer(monomer);
// save monomer db to local fil... | class class_name[name] begin[{]
method[updateMonomerStore, return_type[void], modifier[private], parameter[monomerStore]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=getInstance, postfix_operators=[], prefix_oper... | Keyword[private] Keyword[void] identifier[updateMonomerStore] operator[SEP] identifier[MonomerStore] identifier[monomerStore] operator[SEP] Keyword[throws] identifier[MonomerLoadingException] , identifier[IOException] , identifier[MonomerException] , identifier[ChemistryException] {
Keyword[for] operator[SEP]... |
public List<Pair<EnumFacing, Point>> intersect(AxisAlignedBB aabb)
{
double ix = intersectX(aabb.minX);
double iX = intersectX(aabb.maxX);
double iy = intersectY(aabb.minY);
double iY = intersectY(aabb.maxY);
double iz = intersectZ(aabb.minZ);
double iZ = intersectZ(aabb.maxZ);
Point interx = ix >= 0 ? g... | class class_name[name] begin[{]
method[intersect, return_type[type[List]], modifier[public], parameter[aabb]] begin[{]
local_variable[type[double], ix]
local_variable[type[double], iX]
local_variable[type[double], iy]
local_variable[type[double], iY]
local_variable[type[... | Keyword[public] identifier[List] operator[<] identifier[Pair] operator[<] identifier[EnumFacing] , identifier[Point] operator[>] operator[>] identifier[intersect] operator[SEP] identifier[AxisAlignedBB] identifier[aabb] operator[SEP] {
Keyword[double] identifier[ix] operator[=] identifier[intersectX] operator[S... |
protected String getReferencePath(final IValueMap attributes) {
String refPath = (String) attributes.get(JawrConstant.HREF_ATTR);
if(StringUtils.isEmpty(refPath)){
refPath = (String) attributes.get(JawrConstant.SRC_ATTR);
}
return refPath;
} | class class_name[name] begin[{]
method[getReferencePath, return_type[type[String]], modifier[protected], parameter[attributes]] begin[{]
local_variable[type[String], refPath]
if[call[StringUtils.isEmpty, parameter[member[.refPath]]]] begin[{]
assign[member[.refPa... | Keyword[protected] identifier[String] identifier[getReferencePath] operator[SEP] Keyword[final] identifier[IValueMap] identifier[attributes] operator[SEP] {
identifier[String] identifier[refPath] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[attributes] operator[SEP] identifier[get] opera... |
@Override
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered()) {
return;
}
OpenStreetMap openStreetMap = (OpenStreetMap) component;
ResponseWriter rw = context.getResponseWriter();
String clientIdRaw = openStreetMap.getClientId();
String cl... | class class_name[name] begin[{]
method[encodeEnd, return_type[void], modifier[public], parameter[context, component]] begin[{]
if[call[component.isRendered, parameter[]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[OpenStreetMap], open... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[encodeEnd] operator[SEP] identifier[FacesContext] identifier[context] , identifier[UIComponent] identifier[component] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] operator[!] identifier[component] op... |
public void insert(final Object value) throws DevFailed {
logger.debug(LOG_INSERTING, this);
attributeImpl.insert(value);
} | class class_name[name] begin[{]
method[insert, return_type[void], modifier[public], parameter[value]] begin[{]
call[logger.debug, parameter[member[.LOG_INSERTING], THIS[]]]
call[attributeImpl.insert, parameter[member[.value]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[insert] operator[SEP] Keyword[final] identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[DevFailed] {
identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[LOG_INSERTING] , Keyword[this] operator[SEP] operator[SEP] identifi... |
static Integer integer(String value) {
Integer result;
if (value != null) {
value = value.trim();
Matcher matcher = INTEGER_PATTERN.matcher(value);
if (matcher.matches()) {
result = Integer.parseInt(matcher.group(1).replace(" ", ""));
} els... | class class_name[name] begin[{]
method[integer, return_type[type[Integer]], modifier[static], parameter[value]] begin[{]
local_variable[type[Integer], result]
if[binary_operation[member[.value], !=, literal[null]]] begin[{]
assign[member[.value], call[value.trim,... | Keyword[static] identifier[Integer] identifier[integer] operator[SEP] identifier[String] identifier[value] operator[SEP] {
identifier[Integer] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] {
identifier[value] operator[=] identifier[... |
@Override
public List<CommerceSubscriptionEntry> findByGroupId(long groupId) {
return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | class class_name[name] begin[{]
method[findByGroupId, return_type[type[List]], modifier[public], parameter[groupId]] begin[{]
return[call[.findByGroupId, parameter[member[.groupId], member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceSubscriptionEntry] operator[>] identifier[findByGroupId] operator[SEP] Keyword[long] identifier[groupId] operator[SEP] {
Keyword[return] identifier[findByGroupId] operator[SEP] identifier[groupId] , identifier[Que... |
@BetaApi
public final Operation setSslCertificatesTargetSslProxy(
String targetSslProxy,
TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource) {
SetSslCertificatesTargetSslProxyHttpRequest request =
SetSslCertificatesTargetSslProxyHttpRequest.newBuilder(... | class class_name[name] begin[{]
method[setSslCertificatesTargetSslProxy, return_type[type[Operation]], modifier[final public], parameter[targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource]] begin[{]
local_variable[type[SetSslCertificatesTargetSslProxyHttpRequest], request]
return... | annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[Operation] identifier[setSslCertificatesTargetSslProxy] operator[SEP] identifier[String] identifier[targetSslProxy] , identifier[TargetSslProxiesSetSslCertificatesRequest] identifier[targetSslProxiesSetSslCertificatesRequestResource] operator[... |
public static String read(InputStream input) throws IOException, NotFoundException {
BufferedImage image = ImageIO.read(input);
return read(image);
} | class class_name[name] begin[{]
method[read, return_type[type[String]], modifier[public static], parameter[input]] begin[{]
local_variable[type[BufferedImage], image]
return[call[.read, parameter[member[.image]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[String] identifier[read] operator[SEP] identifier[InputStream] identifier[input] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NotFoundException] {
identifier[BufferedImage] identifier[image] operator[=] identifier[ImageIO] operator[SEP] identifier... |
public void setIORNTION(Integer newIORNTION) {
Integer oldIORNTION = iorntion;
iorntion = newIORNTION;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.STO__IORNTION, oldIORNTION, iorntion));
} | class class_name[name] begin[{]
method[setIORNTION, return_type[void], modifier[public], parameter[newIORNTION]] begin[{]
local_variable[type[Integer], oldIORNTION]
assign[member[.iorntion], member[.newIORNTION]]
if[call[.eNotificationRequired, parameter[]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setIORNTION] operator[SEP] identifier[Integer] identifier[newIORNTION] operator[SEP] {
identifier[Integer] identifier[oldIORNTION] operator[=] identifier[iorntion] operator[SEP] identifier[iorntion] operator[=] identifier[newIORNTION] operator[SEP] Keyword[if] operator[SE... |
public void setEncoding(GriddedCoverageEncodingType encoding) {
if (encoding == null) {
encoding = GriddedCoverageEncodingType.CENTER;
}
this.encoding = encoding;
} | class class_name[name] begin[{]
method[setEncoding, return_type[void], modifier[public], parameter[encoding]] begin[{]
if[binary_operation[member[.encoding], ==, literal[null]]] begin[{]
assign[member[.encoding], member[GriddedCoverageEncodingType.CENTER]]
else b... | Keyword[public] Keyword[void] identifier[setEncoding] operator[SEP] identifier[GriddedCoverageEncodingType] identifier[encoding] operator[SEP] {
Keyword[if] operator[SEP] identifier[encoding] operator[==] Other[null] operator[SEP] {
identifier[encoding] operator[=] identifier[GriddedCoverageEncodingTy... |
public ContainerInstance add(Container container, boolean replicateContainerRelationships) {
ContainerInstance containerInstance = getModel().addContainerInstance(this, container, replicateContainerRelationships);
this.containerInstances.add(containerInstance);
return containerInstance;
} | class class_name[name] begin[{]
method[add, return_type[type[ContainerInstance]], modifier[public], parameter[container, replicateContainerRelationships]] begin[{]
local_variable[type[ContainerInstance], containerInstance]
THIS[member[None.containerInstances]call[None.add, parameter[mem... | Keyword[public] identifier[ContainerInstance] identifier[add] operator[SEP] identifier[Container] identifier[container] , Keyword[boolean] identifier[replicateContainerRelationships] operator[SEP] {
identifier[ContainerInstance] identifier[containerInstance] operator[=] identifier[getModel] operator[SEP] operat... |
public void setDeliveryStreamNames(java.util.Collection<String> deliveryStreamNames) {
if (deliveryStreamNames == null) {
this.deliveryStreamNames = null;
return;
}
this.deliveryStreamNames = new java.util.ArrayList<String>(deliveryStreamNames);
} | class class_name[name] begin[{]
method[setDeliveryStreamNames, return_type[void], modifier[public], parameter[deliveryStreamNames]] begin[{]
if[binary_operation[member[.deliveryStreamNames], ==, literal[null]]] begin[{]
assign[THIS[member[None.deliveryStreamNames]], lite... | Keyword[public] Keyword[void] identifier[setDeliveryStreamNames] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[deliveryStreamNames] operator[SEP] {
Keyword[if] operator[SEP] identifier[deliveryStreamNames] ... |
public static <E> E copy(E dest, Object... sources) {
if (dest == null || sources == null || sources.length == 0) {
return dest;
}
for (Object obj : sources) {
if (dest == obj) {
continue;
}
copy(dest, obj);
}
return... | class class_name[name] begin[{]
method[copy, return_type[type[E]], modifier[public static], parameter[dest, sources]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.dest], ==, literal[null]], ||, binary_operation[member[.sources], ==, literal[null]]], ||, binary_operatio... | Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[E] identifier[copy] operator[SEP] identifier[E] identifier[dest] , identifier[Object] operator[...] identifier[sources] operator[SEP] {
Keyword[if] operator[SEP] identifier[dest] operator[==] Other[null] operator[||] identifier[sou... |
public static Resource newResource(URL url)
throws IOException
{
if (url==null)
return null;
String urls=url.toExternalForm();
if( urls.startsWith( "file:"))
{
try
{
FileResource fileResource= new FileResource(url);
... | class class_name[name] begin[{]
method[newResource, return_type[type[Resource]], modifier[public static], parameter[url]] begin[{]
if[binary_operation[member[.url], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[String], ... | Keyword[public] Keyword[static] identifier[Resource] identifier[newResource] operator[SEP] identifier[URL] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[url] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[... |
public static <T> List<T> repeatEachToSize(final Collection<T> c, final int size) {
N.checkArgNotNegative(size, "size");
checkArgument(size == 0 || notNullOrEmpty(c), "Collection can not be empty or null when size > 0");
if (size == 0 || isNullOrEmpty(c)) {
return new ArrayList... | class class_name[name] begin[{]
method[repeatEachToSize, return_type[type[List]], modifier[public static], parameter[c, size]] begin[{]
call[N.checkArgNotNegative, parameter[member[.size], literal["size"]]]
call[.checkArgument, parameter[binary_operation[binary_operation[member[... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[repeatEachToSize] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[T] operator[>] identifier[c] , Keyword[final] Keyword[int] identifier[size] operator[SEP] ... |
public void setOrganizationSummaries(java.util.Collection<OrganizationSummary> organizationSummaries) {
if (organizationSummaries == null) {
this.organizationSummaries = null;
return;
}
this.organizationSummaries = new java.util.ArrayList<OrganizationSummary>(organizatio... | class class_name[name] begin[{]
method[setOrganizationSummaries, return_type[void], modifier[public], parameter[organizationSummaries]] begin[{]
if[binary_operation[member[.organizationSummaries], ==, literal[null]]] begin[{]
assign[THIS[member[None.organizationSummaries... | Keyword[public] Keyword[void] identifier[setOrganizationSummaries] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[OrganizationSummary] operator[>] identifier[organizationSummaries] operator[SEP] {
Keyword[if] operator[SEP] identifier[orga... |
public static Bitmap getBitmap(Drawable drawable) {
if (drawable == null)
return null;
if (drawable instanceof BitmapDrawable) {
return ((BitmapDrawable) drawable).getBitmap();
} else {
Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawabl... | class class_name[name] begin[{]
method[getBitmap, return_type[type[Bitmap]], modifier[public static], parameter[drawable]] begin[{]
if[binary_operation[member[.drawable], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
if[binary_opera... | Keyword[public] Keyword[static] identifier[Bitmap] identifier[getBitmap] operator[SEP] identifier[Drawable] identifier[drawable] operator[SEP] {
Keyword[if] operator[SEP] identifier[drawable] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[dra... |
protected void handleHeaderLinks(HttpResponse response, Map<String, Map<URI, String>> links, Map<String, String> linkTemplates) {
getLinkHeaders(response).forEach(header -> {
if (header.getRel() == null) {
return;
}
if (header.isTemplated()) {
... | class class_name[name] begin[{]
method[handleHeaderLinks, return_type[void], modifier[protected], parameter[response, links, linkTemplates]] begin[{]
call[.getLinkHeaders, parameter[member[.response]]]
end[}]
END[}] | Keyword[protected] Keyword[void] identifier[handleHeaderLinks] operator[SEP] identifier[HttpResponse] identifier[response] , identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[URI] , identifier[String] operator[>] operator[>] identifier[links] , identifier[Map] operator[<] ident... |
static Map<String, Object> parseTextFormat(String type, String rdata) {
if ("A".equals(type)) {
return AData.create(rdata);
} else if ("AAAA".equals(type)) {
return AAAAData.create(rdata);
} else if ("CNAME".equals(type)) {
return CNAMEData.create(rdata);
} else if ("MX".equals(type)) ... | class class_name[name] begin[{]
method[parseTextFormat, return_type[type[Map]], modifier[static], parameter[type, rdata]] begin[{]
if[literal["A"]] begin[{]
return[call[AData.create, parameter[member[.rdata]]]]
else begin[{]
if[literal["AAAA"]] begin[{]
... | Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[parseTextFormat] operator[SEP] identifier[String] identifier[type] , identifier[String] identifier[rdata] operator[SEP] {
Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operato... |
@CheckReturnValue
Context transitionToState(HtmlContext state) {
Context.Builder builder = toBuilder().withState(state).withUriPart(UriPart.NONE);
if (uriPart != UriPart.NONE) {
// Only reset the URI type if we're leaving a URI; intentionally, URI type needs to
// remain prior to the URI, for exam... | class class_name[name] begin[{]
method[transitionToState, return_type[type[Context]], modifier[default], parameter[state]] begin[{]
local_variable[type[Context], builder]
if[binary_operation[member[.uriPart], !=, member[UriPart.NONE]]] begin[{]
call[builder.withU... | annotation[@] identifier[CheckReturnValue] identifier[Context] identifier[transitionToState] operator[SEP] identifier[HtmlContext] identifier[state] operator[SEP] {
identifier[Context] operator[SEP] identifier[Builder] identifier[builder] operator[=] identifier[toBuilder] operator[SEP] operator[SEP] operator[SEP... |
@SuppressWarnings("unchecked")
protected void importUsers() throws CmsImportExportException {
List<Node> userNodes;
List<Node> groupNodes;
List<String> userGroups;
Element currentElement, currentGroup;
Map<String, Object> userInfo = null;
String name, description, fl... | class class_name[name] begin[{]
method[importUsers, return_type[void], modifier[protected], parameter[]] begin[{]
local_variable[type[List], userNodes]
local_variable[type[List], groupNodes]
local_variable[type[List], userGroups]
local_variable[type[Element], currentElement]
... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[void] identifier[importUsers] operator[SEP] operator[SEP] Keyword[throws] identifier[CmsImportExportException] {
identifier[List] operator[<] identifier[Node] operator[>] identifier[userNodes] operat... |
@Override
public void printStackTrace(final PrintStream s) {
super.printStackTrace(s);
if (mRootCause != null) {
s.println("--- ROOT CAUSE ---");
mRootCause.printStackTrace(s);
}
} | class class_name[name] begin[{]
method[printStackTrace, return_type[void], modifier[public], parameter[s]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=printStackTrace, postfix_operators=[], pre... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[printStackTrace] operator[SEP] Keyword[final] identifier[PrintStream] identifier[s] operator[SEP] {
Keyword[super] operator[SEP] identifier[printStackTrace] operator[SEP] identifier[s] operator[SEP] operator[SEP] Keyword[if] operator[SEP... |
@VisibleForTesting
protected ProctorResult determineBucketsInternal(final TestType testType, final String identifier, final Map<String, Object> context) {
final Map<String, Integer> forcedGroups = Collections.emptyMap();
final Identifiers identifiers = new Identifiers(testType, identifier);
... | class class_name[name] begin[{]
method[determineBucketsInternal, return_type[type[ProctorResult]], modifier[protected], parameter[testType, identifier, context]] begin[{]
local_variable[type[Map], forcedGroups]
local_variable[type[Identifiers], identifiers]
return[call[.determineBuckets... | annotation[@] identifier[VisibleForTesting] Keyword[protected] identifier[ProctorResult] identifier[determineBucketsInternal] operator[SEP] Keyword[final] identifier[TestType] identifier[testType] , Keyword[final] identifier[String] identifier[identifier] , Keyword[final] identifier[Map] operator[<] identifier[String... |
@SuppressWarnings("unchecked")
public static <T> boolean hasNull(T... array) {
if (isNotEmpty(array)) {
for (T element : array) {
if (null == element) {
return true;
}
}
}
return false;
} | class class_name[name] begin[{]
method[hasNull, return_type[type[boolean]], modifier[public static], parameter[array]] begin[{]
if[call[.isNotEmpty, parameter[member[.array]]]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(op... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[hasNull] operator[SEP] identifier[T] operator[...] identifier[array] operator[SEP] {
Keyword[if] operator[SEP] identifier[isNotE... |
public final AsyncTask<Params, Progress, Result> execute(Params... params) {
return executeOnExecutor(sDefaultExecutor, params);
} | class class_name[name] begin[{]
method[execute, return_type[type[AsyncTask]], modifier[final public], parameter[params]] begin[{]
return[call[.executeOnExecutor, parameter[member[.sDefaultExecutor], member[.params]]]]
end[}]
END[}] | Keyword[public] Keyword[final] identifier[AsyncTask] operator[<] identifier[Params] , identifier[Progress] , identifier[Result] operator[>] identifier[execute] operator[SEP] identifier[Params] operator[...] identifier[params] operator[SEP] {
Keyword[return] identifier[executeOnExecutor] operator[SEP] identifie... |
private void reset(boolean skipBuffer) { // expected diff with AnsiOutputStream.java
if (!skipBuffer) {
ps.write(buffer, 0, pos); // expected diff with AnsiOutputStream.java
}
pos = 0;
startOfValue = 0;
options.clear();
state = LOOKING_FOR_FIRST_ESC_CHAR;
... | class class_name[name] begin[{]
method[reset, return_type[void], modifier[private], parameter[skipBuffer]] begin[{]
if[member[.skipBuffer]] begin[{]
call[ps.write, parameter[member[.buffer], literal[0], member[.pos]]]
else begin[{]
None
end[}]
... | Keyword[private] Keyword[void] identifier[reset] operator[SEP] Keyword[boolean] identifier[skipBuffer] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[skipBuffer] operator[SEP] {
identifier[ps] operator[SEP] identifier[write] operator[SEP] identifier[buffer] , Other[0] , identifier[... |
public boolean check(final char c)
{
current = current.get(c);
if (current == null) {
reset();
}
return current.isKeyword();
} | class class_name[name] begin[{]
method[check, return_type[type[boolean]], modifier[public], parameter[c]] begin[{]
assign[member[.current], call[current.get, parameter[member[.c]]]]
if[binary_operation[member[.current], ==, literal[null]]] begin[{]
call[.... | Keyword[public] Keyword[boolean] identifier[check] operator[SEP] Keyword[final] Keyword[char] identifier[c] operator[SEP] {
identifier[current] operator[=] identifier[current] operator[SEP] identifier[get] operator[SEP] identifier[c] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[current] opera... |
public synchronized void installJAASConfiguration(ConcurrentServiceReferenceMap<String, JAASLoginContextEntry> jaasLoginContextEntries) {
jaasConfiguration = jaasConfigurationRef.getServiceWithException();
jaasConfiguration.setJaasLoginContextEntries(jaasLoginContextEntries);
Map<String, List<Ap... | class class_name[name] begin[{]
method[installJAASConfiguration, return_type[void], modifier[synchronized public], parameter[jaasLoginContextEntries]] begin[{]
assign[member[.jaasConfiguration], call[jaasConfigurationRef.getServiceWithException, parameter[]]]
call[jaasConfigurat... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[installJAASConfiguration] operator[SEP] identifier[ConcurrentServiceReferenceMap] operator[<] identifier[String] , identifier[JAASLoginContextEntry] operator[>] identifier[jaasLoginContextEntries] operator[SEP] {
identifier[jaasConfiguration] operat... |
public <CTX> SafeHtml sanitize(
@Nullable String html,
@Nullable HtmlChangeListener<CTX> listener, @Nullable CTX context) {
if (html == null) { return SafeHtml.EMPTY; }
return UncheckedConversions.safeHtmlFromStringKnownToSatisfyTypeContract(
f.sanitize(html, listener, context));
} | class class_name[name] begin[{]
method[sanitize, return_type[type[SafeHtml]], modifier[public], parameter[html, listener, context]] begin[{]
if[binary_operation[member[.html], ==, literal[null]]] begin[{]
return[member[SafeHtml.EMPTY]]
else begin[{]
None
end[}]
... | Keyword[public] operator[<] identifier[CTX] operator[>] identifier[SafeHtml] identifier[sanitize] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[html] , annotation[@] identifier[Nullable] identifier[HtmlChangeListener] operator[<] identifier[CTX] operator[>] identifier[listener] , anno... |
private void registerPopup(boolean allowCsvExport) {
this.setComponentPopupMenu(popup);
JMenuItem itemCopy = new JMenuItem("Copy Image to Clipboard");
itemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/copy.png")));
JMenuItem itemSave = new JMenuItem("S... | class class_name[name] begin[{]
method[registerPopup, return_type[void], modifier[private], parameter[allowCsvExport]] begin[{]
THIS[call[None.setComponentPopupMenu, parameter[member[.popup]]]]
local_variable[type[JMenuItem], itemCopy]
call[itemCopy.setIcon, parameter[Cl... | Keyword[private] Keyword[void] identifier[registerPopup] operator[SEP] Keyword[boolean] identifier[allowCsvExport] operator[SEP] {
Keyword[this] operator[SEP] identifier[setComponentPopupMenu] operator[SEP] identifier[popup] operator[SEP] operator[SEP] identifier[JMenuItem] identifier[itemCopy] operator[=] Keywo... |
protected void updateRadioList(PageElement pageElement, String valueKeyOrKey, Map<String, String> printedValues) throws TechnicalException, FailureException {
final String valueKey = Context.getValue(valueKeyOrKey) != null ? Context.getValue(valueKeyOrKey) : valueKeyOrKey;
try {
final Lis... | class class_name[name] begin[{]
method[updateRadioList, return_type[void], modifier[protected], parameter[pageElement, valueKeyOrKey, printedValues]] begin[{]
local_variable[type[String], valueKey]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dime... | Keyword[protected] Keyword[void] identifier[updateRadioList] operator[SEP] identifier[PageElement] identifier[pageElement] , identifier[String] identifier[valueKeyOrKey] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[printedValues] operator[SEP] Keyword[throws] identifie... |
public Object parseObject(String source, ParsePosition pos) {
pos.setIndex(0);
pos.setErrorIndex(0);
return null;
} | class class_name[name] begin[{]
method[parseObject, return_type[type[Object]], modifier[public], parameter[source, pos]] begin[{]
call[pos.setIndex, parameter[literal[0]]]
call[pos.setErrorIndex, parameter[literal[0]]]
return[literal[null]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[parseObject] operator[SEP] identifier[String] identifier[source] , identifier[ParsePosition] identifier[pos] operator[SEP] {
identifier[pos] operator[SEP] identifier[setIndex] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[pos] operator[SEP] identifie... |
private boolean isDownPosition(HumanInputEvent<?> event) {
if (clickedPosition != null) {
Coordinate location = getLocation(event, RenderSpace.SCREEN);
if (MathService.distance(clickedPosition, location) < clickDelta) {
return true;
}
}
return false;
} | class class_name[name] begin[{]
method[isDownPosition, return_type[type[boolean]], modifier[private], parameter[event]] begin[{]
if[binary_operation[member[.clickedPosition], !=, literal[null]]] begin[{]
local_variable[type[Coordinate], location]
if[binary_op... | Keyword[private] Keyword[boolean] identifier[isDownPosition] operator[SEP] identifier[HumanInputEvent] operator[<] operator[?] operator[>] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] identifier[clickedPosition] operator[!=] Other[null] operator[SEP] {
identifier[Coordinate] identifier[... |
public static String valueOf(String source, int offset16) {
switch (bounds(source, offset16)) {
case LEAD_SURROGATE_BOUNDARY:
return source.substring(offset16, offset16 + 2);
case TRAIL_SURROGATE_BOUNDARY:
return source.substring(offset16 - 1, offset16 + 1);
defau... | class class_name[name] begin[{]
method[valueOf, return_type[type[String]], modifier[public static], parameter[source, offset16]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['LEAD_SURROGATE_BOUNDARY'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(membe... | Keyword[public] Keyword[static] identifier[String] identifier[valueOf] operator[SEP] identifier[String] identifier[source] , Keyword[int] identifier[offset16] operator[SEP] {
Keyword[switch] operator[SEP] identifier[bounds] operator[SEP] identifier[source] , identifier[offset16] operator[SEP] operator[SEP] {
... |
@Override
public void write(T result, HttpServerRequest request, HttpServerResponse response) {
if (result != null) {
response.end(JsonUtils.toJson(result, io.vertx.core.json.Json.mapper));
}
else {
response.end();
}
} | class class_name[name] begin[{]
method[write, return_type[void], modifier[public], parameter[result, request, response]] begin[{]
if[binary_operation[member[.result], !=, literal[null]]] begin[{]
call[response.end, parameter[call[JsonUtils.toJson, parameter[member[.resul... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[T] identifier[result] , identifier[HttpServerRequest] identifier[request] , identifier[HttpServerResponse] identifier[response] operator[SEP] {
Keyword[if] operator[SEP] identifier[result] operator[!=] O... |
BBContainer asBBContainer() {
m_buffer.b().order(ByteOrder.LITTLE_ENDIAN);
m_buffer.b().putLong(SEQUENCE_NUMBER_OFFSET, startSequenceNumber());
m_buffer.b().putLong(COMMIT_SEQUENCE_NUMBER_OFFSET, committedSequenceNumber());
m_buffer.b().putInt(ROW_NUMBER_OFFSET, rowCount());
m_bu... | class class_name[name] begin[{]
method[asBBContainer, return_type[type[BBContainer]], modifier[default], parameter[]] begin[{]
call[m_buffer.b, parameter[]]
call[m_buffer.b, parameter[]]
call[m_buffer.b, parameter[]]
call[m_buffer.b, parameter[]]
... | identifier[BBContainer] identifier[asBBContainer] operator[SEP] operator[SEP] {
identifier[m_buffer] operator[SEP] identifier[b] operator[SEP] operator[SEP] operator[SEP] identifier[order] operator[SEP] identifier[ByteOrder] operator[SEP] identifier[LITTLE_ENDIAN] operator[SEP] operator[SEP] identifier[m_buffer]... |
public static String unescapeJava(String str) {
if (str == null) {
return null;
}
try {
Writer writer = new StringBuilderWriter(str.length());
unescapeJava(writer, str);
return writer.toString();
} catch (IOException ioe) {
// t... | class class_name[name] begin[{]
method[unescapeJava, return_type[type[String]], modifier[public static], parameter[str]] begin[{]
if[binary_operation[member[.str], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
TryStatement(block... | Keyword[public] Keyword[static] identifier[String] identifier[unescapeJava] operator[SEP] identifier[String] identifier[str] operator[SEP] {
Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
Keyword[try] {
... |
private ClassLoader createModuleChildClassLoader(String moduleDomain, ModuleInfo moduleInfo, List<ContainerInfo> moduleClassesContainers) {
String moduleName = moduleInfo.getName();
String j2eeModuleName = moduleInfo.getURI();
List<Container> containers = new ArrayList<Container>();
for... | class class_name[name] begin[{]
method[createModuleChildClassLoader, return_type[type[ClassLoader]], modifier[private], parameter[moduleDomain, moduleInfo, moduleClassesContainers]] begin[{]
local_variable[type[String], moduleName]
local_variable[type[String], j2eeModuleName]
local_vari... | Keyword[private] identifier[ClassLoader] identifier[createModuleChildClassLoader] operator[SEP] identifier[String] identifier[moduleDomain] , identifier[ModuleInfo] identifier[moduleInfo] , identifier[List] operator[<] identifier[ContainerInfo] operator[>] identifier[moduleClassesContainers] operator[SEP] {
id... |
public void addProgressListener(ProgressListener pListener) {
if (pListener == null) {
return;
}
if (listeners == null) {
listeners = new CopyOnWriteArrayList<ProgressListener>();
}
listeners.add(pListener);
} | class class_name[name] begin[{]
method[addProgressListener, return_type[void], modifier[public], parameter[pListener]] begin[{]
if[binary_operation[member[.pListener], ==, literal[null]]] begin[{]
return[None]
else begin[{]
None
end[}]
if[binary_opera... | Keyword[public] Keyword[void] identifier[addProgressListener] operator[SEP] identifier[ProgressListener] identifier[pListener] operator[SEP] {
Keyword[if] operator[SEP] identifier[pListener] operator[==] Other[null] operator[SEP] {
Keyword[return] operator[SEP]
}
Keyword[if] operator[SEP... |
public Matrix4d add(Matrix4dc other, Matrix4d dest) {
dest.m00 = m00 + other.m00();
dest.m01 = m01 + other.m01();
dest.m02 = m02 + other.m02();
dest.m03 = m03 + other.m03();
dest.m10 = m10 + other.m10();
dest.m11 = m11 + other.m11();
dest.m12 = m12 + other.m12();
... | class class_name[name] begin[{]
method[add, return_type[type[Matrix4d]], modifier[public], parameter[other, dest]] begin[{]
assign[member[dest.m00], binary_operation[member[.m00], +, call[other.m00, parameter[]]]]
assign[member[dest.m01], binary_operation[member[.m01], +, call[o... | Keyword[public] identifier[Matrix4d] identifier[add] operator[SEP] identifier[Matrix4dc] identifier[other] , identifier[Matrix4d] identifier[dest] operator[SEP] {
identifier[dest] operator[SEP] identifier[m00] operator[=] identifier[m00] operator[+] identifier[other] operator[SEP] identifier[m00] operator[SEP] ... |
public OvhOrder cdn_dedicated_serviceName_quota_duration_GET(String serviceName, String duration, OvhOrderQuotaEnum quota) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/quota/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "quota", quota);
String resp = ex... | class class_name[name] begin[{]
method[cdn_dedicated_serviceName_quota_duration_GET, return_type[type[OvhOrder]], modifier[public], parameter[serviceName, duration, quota]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
call[.query, paramete... | Keyword[public] identifier[OvhOrder] identifier[cdn_dedicated_serviceName_quota_duration_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[duration] , identifier[OvhOrderQuotaEnum] identifier[quota] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[S... |
@SuppressWarnings("unchecked")
public T clearQueue(String name) {
for (Element e : elements()) {
queue(e, name, null).clear();
}
return (T) this;
} | class class_name[name] begin[{]
method[clearQueue, return_type[type[T]], modifier[public], parameter[name]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], q... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[T] identifier[clearQueue] operator[SEP] identifier[String] identifier[name] operator[SEP] {
Keyword[for] operator[SEP] identifier[Element] identifier[e] operator[:] identifier[elements] operator[SEP... |
public List<List<String>> getFilteredPolicy(int fieldIndex, String... fieldValues) {
return getFilteredNamedPolicy("p", fieldIndex, fieldValues);
} | class class_name[name] begin[{]
method[getFilteredPolicy, return_type[type[List]], modifier[public], parameter[fieldIndex, fieldValues]] begin[{]
return[call[.getFilteredNamedPolicy, parameter[literal["p"], member[.fieldIndex], member[.fieldValues]]]]
end[}]
END[}] | Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[getFilteredPolicy] operator[SEP] Keyword[int] identifier[fieldIndex] , identifier[String] operator[...] identifier[fieldValues] operator[SEP] {
Keyword[return] identifier[getFilteredNa... |
public Object saveEntityPost(SaveEntityRequest request) throws ApiException {
ApiResponse<Object> resp = saveEntityPostWithHttpInfo(request);
return resp.getData();
} | class class_name[name] begin[{]
method[saveEntityPost, return_type[type[Object]], modifier[public], parameter[request]] begin[{]
local_variable[type[ApiResponse], resp]
return[call[resp.getData, parameter[]]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[saveEntityPost] operator[SEP] identifier[SaveEntityRequest] identifier[request] operator[SEP] Keyword[throws] identifier[ApiException] {
identifier[ApiResponse] operator[<] identifier[Object] operator[>] identifier[resp] operator[=] identifier[saveEntityPostWithHttpI... |
public void save() throws IOException {
if (!file.exists()) file.createFile(true);
OutputStream out = IOUtil.toBufferedOutputStream(file.getOutputStream());
Iterator it = sections.keySet().iterator();
PrintWriter output = new PrintWriter(out);
try {
while (it.hasNext()) {
String strSection = (String) it.nex... | class class_name[name] begin[{]
method[save, return_type[void], modifier[public], parameter[]] begin[{]
if[call[file.exists, parameter[]]] begin[{]
call[file.createFile, parameter[literal[true]]]
else begin[{]
None
end[}]
local_variable[type[OutputStream], ou... | Keyword[public] Keyword[void] identifier[save] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] operator[!] identifier[file] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] identifier[file] operator[SEP] identifier[createFile] operator[SEP... |
protected Boolean _hasSideEffects(XForLoopExpression expression, ISideEffectContext context) {
context.open();
if (hasSideEffects(expression.getForExpression(), context)) {
return true;
}
context.close();
return hasSideEffects(expression.getEachExpression(), context.branch());
} | class class_name[name] begin[{]
method[_hasSideEffects, return_type[type[Boolean]], modifier[protected], parameter[expression, context]] begin[{]
call[context.open, parameter[]]
if[call[.hasSideEffects, parameter[call[expression.getForExpression, parameter[]], member[.context]]]... | Keyword[protected] identifier[Boolean] identifier[_hasSideEffects] operator[SEP] identifier[XForLoopExpression] identifier[expression] , identifier[ISideEffectContext] identifier[context] operator[SEP] {
identifier[context] operator[SEP] identifier[open] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope... |
private static UsbDevice findDeviceByNameLowLevel(final String name) throws KNXException
{
final List<String> list = getDeviceDescriptionsLowLevel();
if (name.isEmpty())
list.removeIf(i -> !isKnxInterfaceId(i.substring(i.indexOf("ID") + 3, i.indexOf("\n"))));
else
list.removeIf(i -> i.toLowerCase().indexOf... | class class_name[name] begin[{]
method[findDeviceByNameLowLevel, return_type[type[UsbDevice]], modifier[private static], parameter[name]] begin[{]
local_variable[type[List], list]
if[call[name.isEmpty, parameter[]]] begin[{]
call[list.removeIf, parameter[LambdaExpression(bod... | Keyword[private] Keyword[static] identifier[UsbDevice] identifier[findDeviceByNameLowLevel] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[KNXException] {
Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[list] operato... |
public void setContext(final String context) {
// Assertions.
if (context == null) {
String msg = "Argument 'context' cannot be null.";
throw new IllegalArgumentException(msg);
}
if (this.context != null) {
String msg = "Property 'context' may... | class class_name[name] begin[{]
method[setContext, return_type[void], modifier[public], parameter[context]] begin[{]
if[binary_operation[member[.context], ==, literal[null]]] begin[{]
local_variable[type[String], msg]
ThrowStatement(expression=ClassCreator(arguments=[Mem... | Keyword[public] Keyword[void] identifier[setContext] operator[SEP] Keyword[final] identifier[String] identifier[context] operator[SEP] {
Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] {
identifier[String] identifier[msg] operator[=] literal[String] operator[SEP] K... |
public @Nonnull RangeSet getRangeSet(String jobFullName) {
RangeSet r = usages.get(jobFullName);
if(r==null) r = new RangeSet();
return r;
} | class class_name[name] begin[{]
method[getRangeSet, return_type[type[RangeSet]], modifier[public], parameter[jobFullName]] begin[{]
local_variable[type[RangeSet], r]
if[binary_operation[member[.r], ==, literal[null]]] begin[{]
assign[member[.r], ClassCreator(arguments=[], bo... | Keyword[public] annotation[@] identifier[Nonnull] identifier[RangeSet] identifier[getRangeSet] operator[SEP] identifier[String] identifier[jobFullName] operator[SEP] {
identifier[RangeSet] identifier[r] operator[=] identifier[usages] operator[SEP] identifier[get] operator[SEP] identifier[jobFullName] operator[SE... |
public boolean invoke() {
if (mClickListener != null &&
mClickListener.onMenuItemClick(this)) {
return true;
}
if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) {
return true;
}
if (mItemCallback != null) {
mItemCallb... | class class_name[name] begin[{]
method[invoke, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
if[binary_operation[binary_operation[member[.mClickListener], !=, literal[null]], &&, call[mClickListener.onMenuItemClick, parameter[THIS[]]]]] begin[{]
return[literal[... | Keyword[public] Keyword[boolean] identifier[invoke] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[mClickListener] operator[!=] Other[null] operator[&&] identifier[mClickListener] operator[SEP] identifier[onMenuItemClick] operator[SEP] Keyword[this] operator[SEP] operator[SEP] {
Ke... |
public static final <T> Transformer<T, List<T>> bufferUntil(Func1<? super T, Boolean> predicate,
int capacityHint) {
return new OperatorBufferPredicateBoundary<T>(predicate, RxRingBuffer.SIZE, capacityHint,
true);
} | class class_name[name] begin[{]
method[bufferUntil, return_type[type[Transformer]], modifier[final public static], parameter[predicate, capacityHint]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=predicate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRe... | Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] operator[>] identifier[Transformer] operator[<] identifier[T] , identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[bufferUntil] operator[SEP] identifier[Func1] operator[<] operator[?] Keyword[super] identifier[T] , ide... |
public void activate(StatefulBeanO beanO, BeanMetaData bmd) // d648122
throws RemoteException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) //130050
Tr.entry(tc, "activate: " + beanO);
Object sb = null; // d367572.7
... | class class_name[name] begin[{]
method[activate, return_type[void], modifier[public], parameter[beanO, bmd]] begin[{]
local_variable[type[boolean], isTraceOn]
if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[Tr.entry, parameter... | Keyword[public] Keyword[void] identifier[activate] operator[SEP] identifier[StatefulBeanO] identifier[beanO] , identifier[BeanMetaData] identifier[bmd] operator[SEP] Keyword[throws] identifier[RemoteException] {
Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operato... |
public synchronized void setOption(String key, String value)
{
if (key == null || value == null) {
return;
}
config.put(key, value);
} | class class_name[name] begin[{]
method[setOption, return_type[void], modifier[synchronized public], parameter[key, value]] begin[{]
if[binary_operation[binary_operation[member[.key], ==, literal[null]], ||, binary_operation[member[.value], ==, literal[null]]]] begin[{]
return[None]
... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[setOption] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[||] identifier[value] operator[==] Other[null] operator[SE... |
public static <K, N> InternalTimersSnapshotWriter getWriterForVersion(
int version,
InternalTimersSnapshot<K, N> timersSnapshot,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer) {
switch (version) {
case NO_VERSION:
return new InternalTimersSnapshotWriterPreVersioned<>(timer... | class class_name[name] begin[{]
method[getWriterForVersion, return_type[type[InternalTimersSnapshotWriter]], modifier[public static], parameter[version, timersSnapshot, keySerializer, namespaceSerializer]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['NO_VERSION'], statements=[ReturnStatem... | Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[N] operator[>] identifier[InternalTimersSnapshotWriter] identifier[getWriterForVersion] operator[SEP] Keyword[int] identifier[version] , identifier[InternalTimersSnapshot] operator[<] identifier[K] , identifier[N] operator[>] identifier[timersSna... |
public static void dump(Appendable appendable, Iterable<?> items) {
try {
for(Object item: items) {
appendable.append(String.valueOf(item));
appendable.append("\n");
}
} catch (IOException e) {
throw new RuntimeException("An error occured while appending", e);
}
} | class class_name[name] begin[{]
method[dump, return_type[void], modifier[public static], parameter[appendable, items]] begin[{]
TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberRefer... | Keyword[public] Keyword[static] Keyword[void] identifier[dump] operator[SEP] identifier[Appendable] identifier[appendable] , identifier[Iterable] operator[<] operator[?] operator[>] identifier[items] operator[SEP] {
Keyword[try] {
Keyword[for] operator[SEP] identifier[Object] identifier[item] operato... |
@Override
public List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId,
int start, int end) {
return findByCommerceOrderId(commerceOrderId, start, end, null);
} | class class_name[name] begin[{]
method[findByCommerceOrderId, return_type[type[List]], modifier[public], parameter[commerceOrderId, start, end]] begin[{]
return[call[.findByCommerceOrderId, parameter[member[.commerceOrderId], member[.start], member[.end], literal[null]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceOrderNote] operator[>] identifier[findByCommerceOrderId] operator[SEP] Keyword[long] identifier[commerceOrderId] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] {
Keyword[return] ide... |
@Override
public INDArray[] executeGraph(SameDiff sd) {
return executeGraph(sd, ExecutorConfiguration.builder().outputMode(OutputMode.IMPLICIT).executionMode(ExecutionMode.SEQUENTIAL).profilingMode(OpExecutioner.ProfilingMode.DISABLED).build());
} | class class_name[name] begin[{]
method[executeGraph, return_type[type[INDArray]], modifier[public], parameter[sd]] begin[{]
return[call[.executeGraph, parameter[member[.sd], call[ExecutorConfiguration.builder, parameter[]]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[INDArray] operator[SEP] operator[SEP] identifier[executeGraph] operator[SEP] identifier[SameDiff] identifier[sd] operator[SEP] {
Keyword[return] identifier[executeGraph] operator[SEP] identifier[sd] , identifier[ExecutorConfiguration] operator[SEP] i... |
@Override
public DeleteGroupMembershipResult deleteGroupMembership(DeleteGroupMembershipRequest request) {
request = beforeClientExecution(request);
return executeDeleteGroupMembership(request);
} | class class_name[name] begin[{]
method[deleteGroupMembership, return_type[type[DeleteGroupMembershipResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDeleteGroupMembership, par... | annotation[@] identifier[Override] Keyword[public] identifier[DeleteGroupMembershipResult] identifier[deleteGroupMembership] operator[SEP] identifier[DeleteGroupMembershipRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[reques... |
public static FileBatch forFiles(List<File> files) throws IOException {
List<String> origPaths = new ArrayList<>(files.size());
List<byte[]> bytes = new ArrayList<>(files.size());
for (File f : files) {
bytes.add(FileUtils.readFileToByteArray(f));
origPaths.add(f.toURI().... | class class_name[name] begin[{]
method[forFiles, return_type[type[FileBatch]], modifier[public static], parameter[files]] begin[{]
local_variable[type[List], origPaths]
local_variable[type[List], bytes]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(express... | Keyword[public] Keyword[static] identifier[FileBatch] identifier[forFiles] operator[SEP] identifier[List] operator[<] identifier[File] operator[>] identifier[files] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[List] operator[<] identifier[String] operator[>] identifier[origPaths] operator[=... |
public void setSections(final List<TimeSection> SECTIONS) {
sections.setAll(SECTIONS);
Collections.sort(sections, new TimeSectionComparator());
fireUpdateEvent(SECTION_EVENT);
} | class class_name[name] begin[{]
method[setSections, return_type[void], modifier[public], parameter[SECTIONS]] begin[{]
call[sections.setAll, parameter[member[.SECTIONS]]]
call[Collections.sort, parameter[member[.sections], ClassCreator(arguments=[], body=None, constructor_type_a... | Keyword[public] Keyword[void] identifier[setSections] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[TimeSection] operator[>] identifier[SECTIONS] operator[SEP] {
identifier[sections] operator[SEP] identifier[setAll] operator[SEP] identifier[SECTIONS] operator[SEP] operator[SEP] identifier[... |
private float crossCheckHorizontal(int startJ, int centerI, int maxCount,
int originalStateCountTotal) {
BitMatrix image = this.image;
int maxJ = image.getWidth();
int[] stateCount = getCrossCheckStateCount();
int j = startJ;
while (j >= 0 && image.get(j, centerI)) {
stateCount[2]++;
... | class class_name[name] begin[{]
method[crossCheckHorizontal, return_type[type[float]], modifier[private], parameter[startJ, centerI, maxCount, originalStateCountTotal]] begin[{]
local_variable[type[BitMatrix], image]
local_variable[type[int], maxJ]
local_variable[type[int], stateCount]
... | Keyword[private] Keyword[float] identifier[crossCheckHorizontal] operator[SEP] Keyword[int] identifier[startJ] , Keyword[int] identifier[centerI] , Keyword[int] identifier[maxCount] , Keyword[int] identifier[originalStateCountTotal] operator[SEP] {
identifier[BitMatrix] identifier[image] operator[=] Keyword[t... |
public static int[] parseSequence(CharSequence sequenceDef)
{
// Match the sequence definition against the regular expression for sequences.
Matcher matcher = SEQUENCE_PATTERN.matcher(sequenceDef);
// Check that the argument is of the right format accepted by this method.
if (!match... | class class_name[name] begin[{]
method[parseSequence, return_type[type[int]], modifier[public static], parameter[sequenceDef]] begin[{]
local_variable[type[Matcher], matcher]
if[call[matcher.matches, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Li... | Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[parseSequence] operator[SEP] identifier[CharSequence] identifier[sequenceDef] operator[SEP] {
identifier[Matcher] identifier[matcher] operator[=] identifier[SEQUENCE_PATTERN] operator[SEP] identifier[matcher] operator[SEP] identi... |
public void commit(String logMessage) throws ServerException {
assertNotInvalidated();
m_mgr.doCommit(Server.USE_DEFINITIVE_STORE,
m_context,
m_obj,
logMessage,
m_pendingRemoval);
m_committed = true;
... | class class_name[name] begin[{]
method[commit, return_type[void], modifier[public], parameter[logMessage]] begin[{]
call[.assertNotInvalidated, parameter[]]
call[m_mgr.doCommit, parameter[member[Server.USE_DEFINITIVE_STORE], member[.m_context], member[.m_obj], member[.logMessage... | Keyword[public] Keyword[void] identifier[commit] operator[SEP] identifier[String] identifier[logMessage] operator[SEP] Keyword[throws] identifier[ServerException] {
identifier[assertNotInvalidated] operator[SEP] operator[SEP] operator[SEP] identifier[m_mgr] operator[SEP] identifier[doCommit] operator[SEP] identi... |
public static <T> T objectDeepCopyWithWhiteList(Object from, Object to, String... copyFields) {
return (T) to.getClass().cast(objDeepCopy(from, to, copyFields));
} | class class_name[name] begin[{]
method[objectDeepCopyWithWhiteList, return_type[type[T]], modifier[public static], parameter[from, to, copyFields]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=to, selectors=[MethodI... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[objectDeepCopyWithWhiteList] operator[SEP] identifier[Object] identifier[from] , identifier[Object] identifier[to] , identifier[String] operator[...] identifier[copyFields] operator[SEP] {
Keyword[return] operator[SE... |
public static Split start(SimonClock clock) {
Split split = new Split(true, clock);
split.running = true;
return split;
} | class class_name[name] begin[{]
method[start, return_type[type[Split]], modifier[public static], parameter[clock]] begin[{]
local_variable[type[Split], split]
assign[member[split.running], literal[true]]
return[member[.split]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[Split] identifier[start] operator[SEP] identifier[SimonClock] identifier[clock] operator[SEP] {
identifier[Split] identifier[split] operator[=] Keyword[new] identifier[Split] operator[SEP] literal[boolean] , identifier[clock] operator[SEP] operator[SEP] identifier[spli... |
public void setup() {
JadeAgentIntrospector.getMyInstance(this);
LogActivator.logToFile(logger, this.getName(), Level.ALL);
this.template = MessageTemplate.MatchAll();
addBehaviour(new RequestServer());
} | class class_name[name] begin[{]
method[setup, return_type[void], modifier[public], parameter[]] begin[{]
call[JadeAgentIntrospector.getMyInstance, parameter[THIS[]]]
call[LogActivator.logToFile, parameter[member[.logger], THIS[call[None.getName, parameter[]]], member[Level.ALL]]... | Keyword[public] Keyword[void] identifier[setup] operator[SEP] operator[SEP] {
identifier[JadeAgentIntrospector] operator[SEP] identifier[getMyInstance] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[LogActivator] operator[SEP] identifier[logToFile] operator[SEP] identifier[logger] , Keyword[... |
public static boolean match(SkippableIterator o1, SkippableIterator o2) {
while (o1.getCurrentWordOffset() != o2.getCurrentWordOffset()) {
if (o1.getCurrentWordOffset() < o2.getCurrentWordOffset()) {
o1.advanceUntil(o2.getCurrentWordOffset());
if (!o1.hasValue())
return false;
}
if (o1.getCurren... | class class_name[name] begin[{]
method[match, return_type[type[boolean]], modifier[public static], parameter[o1, o2]] begin[{]
while[binary_operation[call[o1.getCurrentWordOffset, parameter[]], !=, call[o2.getCurrentWordOffset, parameter[]]]] begin[{]
if[binary_operation... | Keyword[public] Keyword[static] Keyword[boolean] identifier[match] operator[SEP] identifier[SkippableIterator] identifier[o1] , identifier[SkippableIterator] identifier[o2] operator[SEP] {
Keyword[while] operator[SEP] identifier[o1] operator[SEP] identifier[getCurrentWordOffset] operator[SEP] operator[SEP] oper... |
public <T extends Widget & Checkable> boolean addOnCheckChangedListener
(OnCheckChangedListener listener) {
final boolean added;
synchronized (mListeners) {
added = mListeners.add(listener);
}
if (added) {
List<T> c = getCheckableChildren();
... | class class_name[name] begin[{]
method[addOnCheckChangedListener, return_type[type[boolean]], modifier[public], parameter[listener]] begin[{]
local_variable[type[boolean], added]
SYNCHRONIZED[member[.mListeners]] BEGIN[{]
assign[member[.added], call[mListeners.ad... | Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Widget] operator[&] identifier[Checkable] operator[>] Keyword[boolean] identifier[addOnCheckChangedListener] operator[SEP] identifier[OnCheckChangedListener] identifier[listener] operator[SEP] {
Keyword[final] Keyword[boolean] identifier[added... |
public Date getEndDate()
{
if ((m_startTime != null) && (m_endTime != null))
{
if (m_endTime.before(m_startTime))
return m_startTime;
}
return m_endTime;
} | class class_name[name] begin[{]
method[getEndDate, return_type[type[Date]], modifier[public], parameter[]] begin[{]
if[binary_operation[binary_operation[member[.m_startTime], !=, literal[null]], &&, binary_operation[member[.m_endTime], !=, literal[null]]]] begin[{]
if[ca... | Keyword[public] identifier[Date] identifier[getEndDate] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[SEP] identifier[m_startTime] operator[!=] Other[null] operator[SEP] operator[&&] operator[SEP] identifier[m_endTime] operator[!=] Other[null] operator[SEP] operator[SEP] {
Keyword[i... |
public EClass getIfcStructuralLoadTemperature() {
if (ifcStructuralLoadTemperatureEClass == null) {
ifcStructuralLoadTemperatureEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(554);
}
return ifcStructuralLoadTemperatureEClass;
} | class class_name[name] begin[{]
method[getIfcStructuralLoadTemperature, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcStructuralLoadTemperatureEClass], ==, literal[null]]] begin[{]
assign[member[.ifcStructuralLoadTemper... | Keyword[public] identifier[EClass] identifier[getIfcStructuralLoadTemperature] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcStructuralLoadTemperatureEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcStructuralLoadTemperatureEClass] operator[=] operator[SEP] identi... |
protected boolean isLikelyAValidConstraintBound(JvmTypeReference constraintBound) {
if (constraintBound == null)
return true;
if (constraintBound instanceof JvmSpecializedTypeReference) {
JvmTypeReference equivalent = (JvmTypeReference) constraintBound.eGet(TypesPackage.Literals.JVM_SPECIALIZED_TYPE_REFERENCE... | class class_name[name] begin[{]
method[isLikelyAValidConstraintBound, return_type[type[boolean]], modifier[protected], parameter[constraintBound]] begin[{]
if[binary_operation[member[.constraintBound], ==, literal[null]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
... | Keyword[protected] Keyword[boolean] identifier[isLikelyAValidConstraintBound] operator[SEP] identifier[JvmTypeReference] identifier[constraintBound] operator[SEP] {
Keyword[if] operator[SEP] identifier[constraintBound] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[... |
protected void registerScrollBarAttributes() {
addAttributeProcessor(new ScrollBarsOnTopLmlAttribute(), "barsOnTop", "scrollbarsOnTop");
addAttributeProcessor(new ScrollBarsPositionsLmlAttribute(), "barsPositions", "scrollBarsPositions");
addAttributeProcessor(new ScrollCancelTouchFocusLmlAttrib... | class class_name[name] begin[{]
method[registerScrollBarAttributes, return_type[void], modifier[protected], parameter[]] begin[{]
call[.addAttributeProcessor, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=No... | Keyword[protected] Keyword[void] identifier[registerScrollBarAttributes] operator[SEP] operator[SEP] {
identifier[addAttributeProcessor] operator[SEP] Keyword[new] identifier[ScrollBarsOnTopLmlAttribute] operator[SEP] operator[SEP] , literal[String] , literal[String] operator[SEP] operator[SEP] identifier[addA... |
public static boolean verify(SignerInformation signer,
CertifiedPublicKey certKey, BcContentVerifierProviderBuilder contentVerifierProviderBuilder,
DigestFactory digestProvider) throws CMSException
{
if (certKey == null) {
throw new CMSException("No certified key for proceeding t... | class class_name[name] begin[{]
method[verify, return_type[type[boolean]], modifier[public static], parameter[signer, certKey, contentVerifierProviderBuilder, digestProvider]] begin[{]
if[binary_operation[member[.certKey], ==, literal[null]]] begin[{]
ThrowStatement(expression=Class... | Keyword[public] Keyword[static] Keyword[boolean] identifier[verify] operator[SEP] identifier[SignerInformation] identifier[signer] , identifier[CertifiedPublicKey] identifier[certKey] , identifier[BcContentVerifierProviderBuilder] identifier[contentVerifierProviderBuilder] , identifier[DigestFactory] identifier[dige... |
public static ns_conf_download_policy update(nitro_service client, ns_conf_download_policy resource) throws Exception
{
resource.validate("modify");
return ((ns_conf_download_policy[]) resource.update_resource(client))[0];
} | class class_name[name] begin[{]
method[update, return_type[type[ns_conf_download_policy]], modifier[public static], parameter[client, resource]] begin[{]
call[resource.validate, parameter[literal["modify"]]]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=clien... | Keyword[public] Keyword[static] identifier[ns_conf_download_policy] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[ns_conf_download_policy] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[resource] operator[SEP] identifier[validat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.