code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
protected final void parseQuoted(String name, char quoteChar, TextBuffer tbuf)
throws XMLStreamException
{
if (quoteChar != '"' && quoteChar != '\'') {
throwUnexpectedChar(quoteChar, " in xml declaration; waited ' or \" to start a value for pseudo-attribute '"+name+"'");
}
... | class class_name[name] begin[{]
method[parseQuoted, return_type[void], modifier[final protected], parameter[name, quoteChar, tbuf]] begin[{]
if[binary_operation[binary_operation[member[.quoteChar], !=, literal['"']], &&, binary_operation[member[.quoteChar], !=, literal['\'']]]] begin[{]
... | Keyword[protected] Keyword[final] Keyword[void] identifier[parseQuoted] operator[SEP] identifier[String] identifier[name] , Keyword[char] identifier[quoteChar] , identifier[TextBuffer] identifier[tbuf] operator[SEP] Keyword[throws] identifier[XMLStreamException] {
Keyword[if] operator[SEP] identifier[quoteChar... |
public static wisite_translationinternalip_binding[] get(nitro_service service, String sitepath) throws Exception{
wisite_translationinternalip_binding obj = new wisite_translationinternalip_binding();
obj.set_sitepath(sitepath);
wisite_translationinternalip_binding response[] = (wisite_translationinternalip_bind... | class class_name[name] begin[{]
method[get, return_type[type[wisite_translationinternalip_binding]], modifier[public static], parameter[service, sitepath]] begin[{]
local_variable[type[wisite_translationinternalip_binding], obj]
call[obj.set_sitepath, parameter[member[.sitepath]]]
... | Keyword[public] Keyword[static] identifier[wisite_translationinternalip_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[sitepath] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[wisite_translationin... |
protected List<TypeVariableName> getTypeVariables(TypeName t) {
return match(t)
.when(typeOf(TypeVariableName.class)).get(
v -> {
if (v.bounds.isEmpty()) {
return ImmutableList.of(v);
} else {
return Stream.concat(
S... | class class_name[name] begin[{]
method[getTypeVariables, return_type[type[List]], modifier[protected], parameter[t]] begin[{]
return[call[.match, parameter[member[.t]]]]
end[}]
END[}] | Keyword[protected] identifier[List] operator[<] identifier[TypeVariableName] operator[>] identifier[getTypeVariables] operator[SEP] identifier[TypeName] identifier[t] operator[SEP] {
Keyword[return] identifier[match] operator[SEP] identifier[t] operator[SEP] operator[SEP] identifier[when] operator[SEP] identifie... |
private BasicUrl findUrl(TextCursor cursor, int limit) {
for (int i = cursor.currentOffset; i < limit; i++) {
if (!isGoodAnchor(cursor.text, i - 1)) {
continue;
}
String currentText = cursor.text.substring(i, limit);
MatcherCompat matcher = Pattern... | class class_name[name] begin[{]
method[findUrl, return_type[type[BasicUrl]], modifier[private], parameter[cursor, limit]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=text, postfix_operators=[], prefix_operato... | Keyword[private] identifier[BasicUrl] identifier[findUrl] operator[SEP] identifier[TextCursor] identifier[cursor] , Keyword[int] identifier[limit] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[cursor] operator[SEP] identifier[currentOffset] operator[SEP] identifier... |
@NonNull
protected View getMainView() {
final TextView text = new TextView(this);
final String dialogText = dialogConfiguration.text();
if (dialogText != null) {
text.setText(dialogText);
}
return text;
} | class class_name[name] begin[{]
method[getMainView, return_type[type[View]], modifier[protected], parameter[]] begin[{]
local_variable[type[TextView], text]
local_variable[type[String], dialogText]
if[binary_operation[member[.dialogText], !=, literal[null]]] begin[{]
... | annotation[@] identifier[NonNull] Keyword[protected] identifier[View] identifier[getMainView] operator[SEP] operator[SEP] {
Keyword[final] identifier[TextView] identifier[text] operator[=] Keyword[new] identifier[TextView] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[final] identifier[String] ... |
public void writeTo (@Nonnull @WillNotClose final OutputStream aOS) throws IOException
{
aOS.write (m_aBuf, 0, m_nCount);
} | class class_name[name] begin[{]
method[writeTo, return_type[void], modifier[public], parameter[aOS]] begin[{]
call[aOS.write, parameter[member[.m_aBuf], literal[0], member[.m_nCount]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[writeTo] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[WillNotClose] Keyword[final] identifier[OutputStream] identifier[aOS] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[aOS] operator[SEP] identifier[write] operator[SEP] id... |
public <T> T[] validIndex(final T[] array, final int index, final String message, final Object... values) {
notNull(array);
if (index < 0 || index >= array.length) {
failIndexOutOfBounds(String.format(message, values));
}
return array;
} | class class_name[name] begin[{]
method[validIndex, return_type[type[T]], modifier[public], parameter[array, index, message, values]] begin[{]
call[.notNull, parameter[member[.array]]]
if[binary_operation[binary_operation[member[.index], <, literal[0]], ||, binary_operation[membe... | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[validIndex] operator[SEP] Keyword[final] identifier[T] operator[SEP] operator[SEP] identifier[array] , Keyword[final] Keyword[int] identifier[index] , Keyword[final] identifier[String] identifier[message] , Key... |
public static List<Character> asList(char... backingArray) {
if (backingArray.length == 0) {
return Collections.emptyList();
}
return new CharArrayAsList(backingArray);
} | class class_name[name] begin[{]
method[asList, return_type[type[List]], modifier[public static], parameter[backingArray]] begin[{]
if[binary_operation[member[backingArray.length], ==, literal[0]]] begin[{]
return[call[Collections.emptyList, parameter[]]]
else begin[{]
None
... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Character] operator[>] identifier[asList] operator[SEP] Keyword[char] operator[...] identifier[backingArray] operator[SEP] {
Keyword[if] operator[SEP] identifier[backingArray] operator[SEP] identifier[length] operator[==] Other[0] operator[S... |
public void getDataFromClient(HttpRequestBase httpget, OutputStream streamOut) throws ClientProtocolException, IOException
{
HttpClient httpclient = new DefaultHttpClient();
// Execute the request
HttpResponse response = httpclient.execute(httpget);
// Get the response ent... | class class_name[name] begin[{]
method[getDataFromClient, return_type[void], modifier[public], parameter[httpget, streamOut]] begin[{]
local_variable[type[HttpClient], httpclient]
local_variable[type[HttpResponse], response]
local_variable[type[HttpEntity], entity]
if[bi... | Keyword[public] Keyword[void] identifier[getDataFromClient] operator[SEP] identifier[HttpRequestBase] identifier[httpget] , identifier[OutputStream] identifier[streamOut] operator[SEP] Keyword[throws] identifier[ClientProtocolException] , identifier[IOException] {
identifier[HttpClient] identifier[httpclient] ... |
protected boolean forwardAdvertisement(TrustGraphAdvertisement message) {
// don't forward if the forwarding policy rejects
if (!shouldForward(message)) {
return false;
}
// determine the next hop to send to
TrustGraphNodeId nextHop = getRoutingTable().getNe... | class class_name[name] begin[{]
method[forwardAdvertisement, return_type[type[boolean]], modifier[protected], parameter[message]] begin[{]
if[call[.shouldForward, parameter[member[.message]]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
local_va... | Keyword[protected] Keyword[boolean] identifier[forwardAdvertisement] operator[SEP] identifier[TrustGraphAdvertisement] identifier[message] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[shouldForward] operator[SEP] identifier[message] operator[SEP] operator[SEP] {
Keyword[return] lit... |
public EClass getIfcFeatureElementAddition() {
if (ifcFeatureElementAdditionEClass == null) {
ifcFeatureElementAdditionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(232);
}
return ifcFeatureElementAdditionEClass;
} | class class_name[name] begin[{]
method[getIfcFeatureElementAddition, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcFeatureElementAdditionEClass], ==, literal[null]]] begin[{]
assign[member[.ifcFeatureElementAdditionECla... | Keyword[public] identifier[EClass] identifier[getIfcFeatureElementAddition] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcFeatureElementAdditionEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcFeatureElementAdditionEClass] operator[=] operator[SEP] identifier[ECla... |
public int getEventCount()
{
int count = _events.size();
if (_superEventSet != null)
count += _superEventSet.getEventCount();
return count;
} | class class_name[name] begin[{]
method[getEventCount, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[int], count]
if[binary_operation[member[._superEventSet], !=, literal[null]]] begin[{]
assign[member[.count], call[_superEventSet.getEven... | Keyword[public] Keyword[int] identifier[getEventCount] operator[SEP] operator[SEP] {
Keyword[int] identifier[count] operator[=] identifier[_events] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_superEventSet] operator[!=] Other[null] operator[SEP] ... |
public static int run(String[] args, PrintWriter out) {
JavahTask t = new JavahTask();
t.setLog(out);
return t.run(args);
} | class class_name[name] begin[{]
method[run, return_type[type[int]], modifier[public static], parameter[args, out]] begin[{]
local_variable[type[JavahTask], t]
call[t.setLog, parameter[member[.out]]]
return[call[t.run, parameter[member[.args]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[int] identifier[run] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] , identifier[PrintWriter] identifier[out] operator[SEP] {
identifier[JavahTask] identifier[t] operator[=] Keyword[new] identifier[JavahTask] operator[SEP] operator[SEP] oper... |
public static java.util.List<com.liferay.commerce.model.CommerceOrderItem> getCommerceOrderItems(
int start, int end) {
return getService().getCommerceOrderItems(start, end);
} | class class_name[name] begin[{]
method[getCommerceOrderItems, return_type[type[java]], modifier[public static], parameter[start, end]] begin[{]
return[call[.getService, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[model] operator[SEP] identifier[CommerceOrderItem] operator[>] identifier[getCommerceOr... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.GSLJ__LINEJOIN:
return getLINEJOIN();
}
return super.eGet(featureID, resolve, coreType);
} | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSLJ__LINEJOIN, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selecto... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
public List<List<IN>> classify(String str) {
ObjectBank<List<IN>> documents =
makeObjectBankFromString(str, plainTextReaderAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
classify(document);
List<IN> sentence = new ArrayList<IN... | class class_name[name] begin[{]
method[classify, return_type[type[List]], modifier[public], parameter[str]] begin[{]
local_variable[type[ObjectBank], documents]
local_variable[type[List], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Met... | Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[IN] operator[>] operator[>] identifier[classify] operator[SEP] identifier[String] identifier[str] operator[SEP] {
identifier[ObjectBank] operator[<] identifier[List] operator[<] identifier[IN] operator[>] operator[>] identifier[... |
@Override
public void initEntryFact(TaintFrame fact) {
fact.setValid();
fact.clearStack();
boolean inMainMethod = isInMainMethod();
int numSlots = fact.getNumSlots();
int numLocals = fact.getNumLocals();
for (int i = 0; i < numSlots; ++i) {
Taint value = n... | class class_name[name] begin[{]
method[initEntryFact, return_type[void], modifier[public], parameter[fact]] begin[{]
call[fact.setValid, parameter[]]
call[fact.clearStack, parameter[]]
local_variable[type[boolean], inMainMethod]
local_variable[type[int], numSlots... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initEntryFact] operator[SEP] identifier[TaintFrame] identifier[fact] operator[SEP] {
identifier[fact] operator[SEP] identifier[setValid] operator[SEP] operator[SEP] operator[SEP] identifier[fact] operator[SEP] identifier[clearStack] oper... |
boolean isModifiedBy(long txNum) {
internalLock.writeLock().lock();
try {
return modifiedBy.contains(txNum);
} finally {
internalLock.writeLock().unlock();
}
} | class class_name[name] begin[{]
method[isModifiedBy, return_type[type[boolean]], modifier[default], parameter[txNum]] begin[{]
call[internalLock.writeLock, parameter[]]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=txNum, postfix_opera... | Keyword[boolean] identifier[isModifiedBy] operator[SEP] Keyword[long] identifier[txNum] operator[SEP] {
identifier[internalLock] operator[SEP] identifier[writeLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
Keyword[return] ident... |
public AVIMConversationsQuery whereLessThanOrEqualsTo(String key, Object value) {
conditions.whereLessThanOrEqualTo(key, value);
return this;
} | class class_name[name] begin[{]
method[whereLessThanOrEqualsTo, return_type[type[AVIMConversationsQuery]], modifier[public], parameter[key, value]] begin[{]
call[conditions.whereLessThanOrEqualTo, parameter[member[.key], member[.value]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[AVIMConversationsQuery] identifier[whereLessThanOrEqualsTo] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[value] operator[SEP] {
identifier[conditions] operator[SEP] identifier[whereLessThanOrEqualTo] operator[SEP] identifier[key] , identifier[value... |
public static <T, U> DictionaryFeatureVectorGenerator<T, U> createFromData(Collection<T> data,
FeatureGenerator<T, U> generator, boolean ignoreOovFeatures) {
IndexedList<U> features = new IndexedList<U>();
for (T datum : data) {
features.addAll(generator.generateFeatures(datum).keySet());
}
... | class class_name[name] begin[{]
method[createFromData, return_type[type[DictionaryFeatureVectorGenerator]], modifier[public static], parameter[data, generator, ignoreOovFeatures]] begin[{]
local_variable[type[IndexedList], features]
ForStatement(body=BlockStatement(label=None, statements=[State... | Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] operator[>] identifier[DictionaryFeatureVectorGenerator] operator[<] identifier[T] , identifier[U] operator[>] identifier[createFromData] operator[SEP] identifier[Collection] operator[<] identifier[T] operator[>] identifier[data] , identifier[... |
public static String toHex(int color) {
validateRGB(color);
String hex = Integer.toHexString(color).toUpperCase();
if (hex.length() == 1) {
hex = "0" + hex;
}
return hex;
} | class class_name[name] begin[{]
method[toHex, return_type[type[String]], modifier[public static], parameter[color]] begin[{]
call[.validateRGB, parameter[member[.color]]]
local_variable[type[String], hex]
if[binary_operation[call[hex.length, parameter[]], ==, literal[1]]... | Keyword[public] Keyword[static] identifier[String] identifier[toHex] operator[SEP] Keyword[int] identifier[color] operator[SEP] {
identifier[validateRGB] operator[SEP] identifier[color] operator[SEP] operator[SEP] identifier[String] identifier[hex] operator[=] identifier[Integer] operator[SEP] identifier[toHexSt... |
@Override
public void updateTimestamp(final String columnLabel, final Timestamp x) throws SQLException {
wrapped.updateTimestamp(columnLabel, x);
} | class class_name[name] begin[{]
method[updateTimestamp, return_type[void], modifier[public], parameter[columnLabel, x]] begin[{]
call[wrapped.updateTimestamp, parameter[member[.columnLabel], member[.x]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[updateTimestamp] operator[SEP] Keyword[final] identifier[String] identifier[columnLabel] , Keyword[final] identifier[Timestamp] identifier[x] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[wrapped] operator[SEP] ide... |
public void deleteRewrites(List<CmsRewriteAliasTableRow> rowsToDelete) {
List<CmsRewriteAliasTableRow> liveData = m_view.getRewriteData();
liveData.removeAll(rowsToDelete);
m_view.getRewriteTable().getSelectionModel().clear();
updateValidationStatus();
} | class class_name[name] begin[{]
method[deleteRewrites, return_type[void], modifier[public], parameter[rowsToDelete]] begin[{]
local_variable[type[List], liveData]
call[liveData.removeAll, parameter[member[.rowsToDelete]]]
call[m_view.getRewriteTable, parameter[]]
... | Keyword[public] Keyword[void] identifier[deleteRewrites] operator[SEP] identifier[List] operator[<] identifier[CmsRewriteAliasTableRow] operator[>] identifier[rowsToDelete] operator[SEP] {
identifier[List] operator[<] identifier[CmsRewriteAliasTableRow] operator[>] identifier[liveData] operator[=] identifier[m_v... |
public Result<SingleValue> readSingleValue(Series series, DateTime timestamp) {
return readSingleValue(series, timestamp, DateTimeZone.getDefault(), Direction.EXACT);
} | class class_name[name] begin[{]
method[readSingleValue, return_type[type[Result]], modifier[public], parameter[series, timestamp]] begin[{]
return[call[.readSingleValue, parameter[member[.series], member[.timestamp], call[DateTimeZone.getDefault, parameter[]], member[Direction.EXACT]]]]
end[}]
END[... | Keyword[public] identifier[Result] operator[<] identifier[SingleValue] operator[>] identifier[readSingleValue] operator[SEP] identifier[Series] identifier[series] , identifier[DateTime] identifier[timestamp] operator[SEP] {
Keyword[return] identifier[readSingleValue] operator[SEP] identifier[series] , identifi... |
public void setRequiresAttributes(java.util.Collection<Attribute> requiresAttributes) {
if (requiresAttributes == null) {
this.requiresAttributes = null;
return;
}
this.requiresAttributes = new com.amazonaws.internal.SdkInternalList<Attribute>(requiresAttributes);
} | class class_name[name] begin[{]
method[setRequiresAttributes, return_type[void], modifier[public], parameter[requiresAttributes]] begin[{]
if[binary_operation[member[.requiresAttributes], ==, literal[null]]] begin[{]
assign[THIS[member[None.requiresAttributes]], literal[... | Keyword[public] Keyword[void] identifier[setRequiresAttributes] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Attribute] operator[>] identifier[requiresAttributes] operator[SEP] {
Keyword[if] operator[SEP] identifier[requiresAttributes] ... |
public <T extends Table> T setHeaders(boolean strictPosition, final String... headers) {
List<WebLocator> list = new ArrayList<>();
for (int i = 0; i < headers.length; i++) {
WebLocator headerEL = new WebLocator(this).setClasses("x-column-header").
setText(headers[i], Sea... | class class_name[name] begin[{]
method[setHeaders, return_type[type[T]], modifier[public], parameter[strictPosition, headers]] begin[{]
local_variable[type[List], list]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclara... | Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Table] operator[>] identifier[T] identifier[setHeaders] operator[SEP] Keyword[boolean] identifier[strictPosition] , Keyword[final] identifier[String] operator[...] identifier[headers] operator[SEP] {
identifier[List] operator[<] identifier[We... |
public final static String cleanSequence(String sequence, Set<Character> cSet){
Set<Character> invalidCharSet = new HashSet<Character>();
StringBuilder cleanSeq = new StringBuilder();
if(cSet == null) cSet = PeptideProperties.standardAASet;
for(char c:sequence.toCharArray()){
if(!cSet.contains(c)){
clean... | class class_name[name] begin[{]
method[cleanSequence, return_type[type[String]], modifier[final public static], parameter[sequence, cSet]] begin[{]
local_variable[type[Set], invalidCharSet]
local_variable[type[StringBuilder], cleanSeq]
if[binary_operation[member[.cSet], ==, lite... | Keyword[public] Keyword[final] Keyword[static] identifier[String] identifier[cleanSequence] operator[SEP] identifier[String] identifier[sequence] , identifier[Set] operator[<] identifier[Character] operator[>] identifier[cSet] operator[SEP] {
identifier[Set] operator[<] identifier[Character] operator[>] identif... |
public static boolean handleIfMatch(final String ifMatch, final List<ETag> etags, boolean allowWeak) {
if (ifMatch == null) {
return true;
}
if (ifMatch.equals("*")) {
return true; //todo: how to tell if there is a current entity for the request
}
List<ETa... | class class_name[name] begin[{]
method[handleIfMatch, return_type[type[boolean]], modifier[public static], parameter[ifMatch, etags, allowWeak]] begin[{]
if[binary_operation[member[.ifMatch], ==, literal[null]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}... | Keyword[public] Keyword[static] Keyword[boolean] identifier[handleIfMatch] operator[SEP] Keyword[final] identifier[String] identifier[ifMatch] , Keyword[final] identifier[List] operator[<] identifier[ETag] operator[>] identifier[etags] , Keyword[boolean] identifier[allowWeak] operator[SEP] {
Keyword[if] operat... |
public static ArrayList<HashMap<String, String>> splittingSoillayer(HashMap data, boolean isICLayer, String fstLyrThk, String sndLyrThk) {
if (isICLayer) {
return splittingLayers(ExperimentHelper.getICLayer(data), "icbl", fstLyrThk, sndLyrThk);
} else {
return splittingLayers(get... | class class_name[name] begin[{]
method[splittingSoillayer, return_type[type[ArrayList]], modifier[public static], parameter[data, isICLayer, fstLyrThk, sndLyrThk]] begin[{]
if[member[.isICLayer]] begin[{]
return[call[.splittingLayers, parameter[call[ExperimentHelper.getICLayer, para... | Keyword[public] Keyword[static] identifier[ArrayList] operator[<] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[splittingSoillayer] operator[SEP] identifier[HashMap] identifier[data] , Keyword[boolean] identifier[isICLayer] , identifier[String] identifier[... |
@BetaApi
public final Operation insertRegionDisk(ProjectRegionName region, Disk diskResource) {
InsertRegionDiskHttpRequest request =
InsertRegionDiskHttpRequest.newBuilder()
.setRegion(region == null ? null : region.toString())
.setDiskResource(diskResource)
.build();... | class class_name[name] begin[{]
method[insertRegionDisk, return_type[type[Operation]], modifier[final public], parameter[region, diskResource]] begin[{]
local_variable[type[InsertRegionDiskHttpRequest], request]
return[call[.insertRegionDisk, parameter[member[.request]]]]
end[}]
END[}] | annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[Operation] identifier[insertRegionDisk] operator[SEP] identifier[ProjectRegionName] identifier[region] , identifier[Disk] identifier[diskResource] operator[SEP] {
identifier[InsertRegionDiskHttpRequest] identifier[request] operator[=] i... |
private static int minLen(String... patterns) {
int minLen = patterns[0].length();
for (String str : patterns) {
if (str.length() < minLen) {
minLen = str.length();
}
}
return minLen;
} | class class_name[name] begin[{]
method[minLen, return_type[type[int]], modifier[private static], parameter[patterns]] begin[{]
local_variable[type[int], minLen]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[],... | Keyword[private] Keyword[static] Keyword[int] identifier[minLen] operator[SEP] identifier[String] operator[...] identifier[patterns] operator[SEP] {
Keyword[int] identifier[minLen] operator[=] identifier[patterns] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] o... |
private void showHorizontalBar()
{
// Left vertical bar.
Component bar = factory.createGripPanel(layout.getConsoleHeightResizer(), false);
frame.getContentPane().add(bar, DesktopAppLayout.STATUS_BAR);
} | class class_name[name] begin[{]
method[showHorizontalBar, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[Component], bar]
call[frame.getContentPane, parameter[]]
end[}]
END[}] | Keyword[private] Keyword[void] identifier[showHorizontalBar] operator[SEP] operator[SEP] {
identifier[Component] identifier[bar] operator[=] identifier[factory] operator[SEP] identifier[createGripPanel] operator[SEP] identifier[layout] operator[SEP] identifier[getConsoleHeightResizer] operator[SEP] operator[SEP]... |
public static Specification<JpaSoftwareModule> likeNameOrVersion(final String subString) {
return (targetRoot, query, cb) -> cb.or(
cb.like(cb.lower(targetRoot.<String> get(JpaSoftwareModule_.name)), subString.toLowerCase()),
cb.like(cb.lower(targetRoot.<String> get(JpaSoftwareMo... | class class_name[name] begin[{]
method[likeNameOrVersion, return_type[type[Specification]], modifier[public static], parameter[subString]] begin[{]
return[LambdaExpression(body=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReferenc... | Keyword[public] Keyword[static] identifier[Specification] operator[<] identifier[JpaSoftwareModule] operator[>] identifier[likeNameOrVersion] operator[SEP] Keyword[final] identifier[String] identifier[subString] operator[SEP] {
Keyword[return] operator[SEP] identifier[targetRoot] , identifier[query] , identifi... |
protected static final int generateVersionNumber(String s) {
int i = -1;
StringTokenizer stringtokenizer = new StringTokenizer(s, "VRM", false);
if (stringtokenizer.countTokens() == 3) {
String s1 = stringtokenizer.nextToken();
s1 = s1 + stringtokenizer.nextToken();
... | class class_name[name] begin[{]
method[generateVersionNumber, return_type[type[int]], modifier[final static protected], parameter[s]] begin[{]
local_variable[type[int], i]
local_variable[type[StringTokenizer], stringtokenizer]
if[binary_operation[call[stringtokenizer.countTokens... | Keyword[protected] Keyword[static] Keyword[final] Keyword[int] identifier[generateVersionNumber] operator[SEP] identifier[String] identifier[s] operator[SEP] {
Keyword[int] identifier[i] operator[=] operator[-] Other[1] operator[SEP] identifier[StringTokenizer] identifier[stringtokenizer] operator[=] Keyword[new... |
private Collection<DependencyInfo> mergeDependencyInfos(AgentProjectInfo projectInfo) {
Map<String, DependencyInfo> infoMap = new HashedMap();
Collection<DependencyInfo> dependencyInfos = new LinkedList<>();
if (projectInfo != null) {
Collection<DependencyInfo> dependencies = project... | class class_name[name] begin[{]
method[mergeDependencyInfos, return_type[type[Collection]], modifier[private], parameter[projectInfo]] begin[{]
local_variable[type[Map], infoMap]
local_variable[type[Collection], dependencyInfos]
if[binary_operation[member[.projectInfo], !=, lite... | Keyword[private] identifier[Collection] operator[<] identifier[DependencyInfo] operator[>] identifier[mergeDependencyInfos] operator[SEP] identifier[AgentProjectInfo] identifier[projectInfo] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[DependencyInfo] operator[>] identifier[infoMa... |
public boolean storeUserData(long instanceid, long data)
throws IOException,
FileManagerException
{
if ( instanceid == 0 ) {
return false;
}
for ( int i = 0; i < NUM_USER_WORDS; i++ ) {
if ( userData[i][0] == instanceid ) {
userData[i][1] = dat... | class class_name[name] begin[{]
method[storeUserData, return_type[type[boolean]], modifier[public], parameter[instanceid, data]] begin[{]
if[binary_operation[member[.instanceid], ==, literal[0]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
ForSt... | Keyword[public] Keyword[boolean] identifier[storeUserData] operator[SEP] Keyword[long] identifier[instanceid] , Keyword[long] identifier[data] operator[SEP] Keyword[throws] identifier[IOException] , identifier[FileManagerException] {
Keyword[if] operator[SEP] identifier[instanceid] operator[==] Other[0] operat... |
public Connector merge(Connector connector, AnnotationRepository annotationRepository, ClassLoader classLoader)
throws Exception
{
// Process annotations
if (connector == null || (connector.getVersion() == Version.V_16 || connector.getVersion() == Version.V_17))
{
boolean isMetadataC... | class class_name[name] begin[{]
method[merge, return_type[type[Connector]], modifier[public], parameter[connector, annotationRepository, classLoader]] begin[{]
if[binary_operation[binary_operation[member[.connector], ==, literal[null]], ||, binary_operation[binary_operation[call[connector.getVe... | Keyword[public] identifier[Connector] identifier[merge] operator[SEP] identifier[Connector] identifier[connector] , identifier[AnnotationRepository] identifier[annotationRepository] , identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[if] operator[SEP]... |
private static Class<? extends HelpViewBase> getViewClass(HelpViewType viewType) {
switch (viewType) {
case TOC:
return HelpViewContents.class;
case KEYWORD:
return HelpViewIndex.class;
case INDEX:
retu... | class class_name[name] begin[{]
method[getViewClass, return_type[type[Class]], modifier[private static], parameter[viewType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['TOC'], statements=[ReturnStatement(expression=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, se... | Keyword[private] Keyword[static] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[HelpViewBase] operator[>] identifier[getViewClass] operator[SEP] identifier[HelpViewType] identifier[viewType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[viewType] operator[SEP] {
Keywo... |
public static void assertGroupsAreCompatible(GroupType fileType, GroupType projection) {
List<Type> fields = projection.getFields();
for (Type otherType : fields) {
if (fileType.containsField(otherType.getName())) {
Type thisType = fileType.getType(otherType.getName());
assertAreCompatible... | class class_name[name] begin[{]
method[assertGroupsAreCompatible, return_type[void], modifier[public static], parameter[fileType, projection]] begin[{]
local_variable[type[List], fields]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[M... | Keyword[public] Keyword[static] Keyword[void] identifier[assertGroupsAreCompatible] operator[SEP] identifier[GroupType] identifier[fileType] , identifier[GroupType] identifier[projection] operator[SEP] {
identifier[List] operator[<] identifier[Type] operator[>] identifier[fields] operator[=] identifier[projecti... |
public void setDetails(com.google.api.ads.adwords.axis.v201809.cm.TargetingSettingDetail[] details) {
this.details = details;
} | class class_name[name] begin[{]
method[setDetails, return_type[void], modifier[public], parameter[details]] begin[{]
assign[THIS[member[None.details]], member[.details]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setDetails] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] id... |
@Stop(priority = 110)
public void stop() {
if (trace) {
log.tracef("Stopping LocalTopologyManager on %s", transport.getAddress());
}
running = false;
for (LocalCacheStatus cache : runningCaches.values()) {
cache.getTopologyUpdatesExecutor().shutdownNow();
}
withi... | class class_name[name] begin[{]
method[stop, return_type[void], modifier[public], parameter[]] begin[{]
if[member[.trace]] begin[{]
call[log.tracef, parameter[literal["Stopping LocalTopologyManager on %s"], call[transport.getAddress, parameter[]]]]
else begin[{]
... | annotation[@] identifier[Stop] operator[SEP] identifier[priority] operator[=] Other[110] operator[SEP] Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[trace] operator[SEP] {
identifier[log] operator[SEP] identifier[tracef] operator[SEP]... |
public void detect(final String... packageNames) throws IOException {
final String[] pkgNameFilter = new String[packageNames.length];
for (int i = 0; i < pkgNameFilter.length; ++i) {
pkgNameFilter[i] = packageNames[i].replace('.', '/');
if (!pkgNameFilter[i].endsWith("/")) {
... | class class_name[name] begin[{]
method[detect, return_type[void], modifier[public], parameter[packageNames]] begin[{]
local_variable[type[String], pkgNameFilter]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member... | Keyword[public] Keyword[void] identifier[detect] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[packageNames] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[pkgNameFilter] operator[=] Keyword[new] identifi... |
public static int truncatedCompareTo(final Date date1, final Date date2, final int field) {
final Date truncatedDate1 = truncate(date1, field);
final Date truncatedDate2 = truncate(date2, field);
return truncatedDate1.compareTo(truncatedDate2);
} | class class_name[name] begin[{]
method[truncatedCompareTo, return_type[type[int]], modifier[public static], parameter[date1, date2, field]] begin[{]
local_variable[type[Date], truncatedDate1]
local_variable[type[Date], truncatedDate2]
return[call[truncatedDate1.compareTo, parameter[memb... | Keyword[public] Keyword[static] Keyword[int] identifier[truncatedCompareTo] operator[SEP] Keyword[final] identifier[Date] identifier[date1] , Keyword[final] identifier[Date] identifier[date2] , Keyword[final] Keyword[int] identifier[field] operator[SEP] {
Keyword[final] identifier[Date] identifier[truncatedDat... |
public static Set<String> getLocalizationProblems( Class<?> i18nClass,
Locale locale ) {
CheckArg.isNotNull(i18nClass, "i18nClass");
Map<Class<?>, Set<String>> classToProblemsMap = LOCALE_TO_CLASS_TO_PROBLEMS_MAP.get(locale == null ? Locale.getDefau... | class class_name[name] begin[{]
method[getLocalizationProblems, return_type[type[Set]], modifier[public static], parameter[i18nClass, locale]] begin[{]
call[CheckArg.isNotNull, parameter[member[.i18nClass], literal["i18nClass"]]]
local_variable[type[Map], classToProblemsMap]
... | Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[getLocalizationProblems] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[i18nClass] , identifier[Locale] identifier[locale] operator[SEP] {
identifier[CheckArg] operator[SEP] iden... |
public void readLines(LineHandler lineHandler) throws IORuntimeException{
BufferedReader reader = null;
try {
reader = FileUtil.getReader(file, charset);
IoUtil.readLines(reader, lineHandler);
} finally {
IoUtil.close(reader);
}
} | class class_name[name] begin[{]
method[readLines, return_type[void], modifier[public], parameter[lineHandler]] begin[{]
local_variable[type[BufferedReader], reader]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=reader, postfix_operators=[], pre... | Keyword[public] Keyword[void] identifier[readLines] operator[SEP] identifier[LineHandler] identifier[lineHandler] operator[SEP] Keyword[throws] identifier[IORuntimeException] {
identifier[BufferedReader] identifier[reader] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[reader] operato... |
public static <T> List<T> concat(List<List<T>> lists) {
List<T> list = new ArrayList<T>();
for (List<? extends T> l : lists) {
list.addAll(l);
}
return list;
} | class class_name[name] begin[{]
method[concat, return_type[type[List]], modifier[public static], parameter[lists]] begin[{]
local_variable[type[List], list]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[concat] operator[SEP] identifier[List] operator[<] identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[lists] operator[SEP] {
identifier[List] operator... |
private void rescheduleRtcp(TxTask task, long timestamp) {
// Cancel current execution of the task
this.reportTaskFuture.cancel(true);
// Re-schedule task execution
long interval = resolveInterval(timestamp);
try {
this.reportTaskFuture = this.scheduler.sched... | class class_name[name] begin[{]
method[rescheduleRtcp, return_type[void], modifier[private], parameter[task, timestamp]] begin[{]
THIS[member[None.reportTaskFuture]call[None.cancel, parameter[literal[true]]]]
local_variable[type[long], interval]
TryStatement(block=[StatementExpr... | Keyword[private] Keyword[void] identifier[rescheduleRtcp] operator[SEP] identifier[TxTask] identifier[task] , Keyword[long] identifier[timestamp] operator[SEP] {
Keyword[this] operator[SEP] identifier[reportTaskFuture] operator[SEP] identifier[cancel] operator[SEP] literal[boolean] operator[SEP] operator[SEP] K... |
public void propertiesToControls()
{
super.propertiesToControls();
String strPathname = m_properties.getProperty(ZIPOUT_PATHNAME_PARAM);
m_tfRootPathname.setText(strPathname);
String strFilename = m_properties.getProperty(ZIPOUT_FILENAME_PARAM);
m_tfFilename.setText(strFilename);
String strMaxSize = m_pr... | class class_name[name] begin[{]
method[propertiesToControls, return_type[void], modifier[public], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=propertiesToControls, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
local_va... | Keyword[public] Keyword[void] identifier[propertiesToControls] operator[SEP] operator[SEP] {
Keyword[super] operator[SEP] identifier[propertiesToControls] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strPathname] operator[=] identifier[m_properties] operator[SEP] identifier[getProperty... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.GSLE__LINEEND:
return getLINEEND();
}
return super.eGet(featureID, resolve, coreType);
} | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSLE__LINEEND, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selector... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
@Override
public Collection<Object> getMeasureKeys() {
HashSet<Object> keys = new HashSet<>();
keys.addAll(pullers.keySet());
keys.addAll(pushers.keySet());
return keys;
} | class class_name[name] begin[{]
method[getMeasureKeys, return_type[type[Collection]], modifier[public], parameter[]] begin[{]
local_variable[type[HashSet], keys]
call[keys.addAll, parameter[call[pullers.keySet, parameter[]]]]
call[keys.addAll, parameter[call[pushers.keyS... | annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[Object] operator[>] identifier[getMeasureKeys] operator[SEP] operator[SEP] {
identifier[HashSet] operator[<] identifier[Object] operator[>] identifier[keys] operator[=] Keyword[new] identifier[HashSet] operator[<] op... |
public static void shutDownRedundancyZone(String redundancyZone)
{
if (redundancyZone == null || redundancyZone.length() == 0)
throw new IllegalArgumentException("redundancyZone required");
String objectNamePattern = "GemFire:type=Member,member=*";
QueryExp exp = Query.eq(Query.attr("Redundancy... | class class_name[name] begin[{]
method[shutDownRedundancyZone, return_type[void], modifier[public static], parameter[redundancyZone]] begin[{]
if[binary_operation[binary_operation[member[.redundancyZone], ==, literal[null]], ||, binary_operation[call[redundancyZone.length, parameter[]], ==, lit... | Keyword[public] Keyword[static] Keyword[void] identifier[shutDownRedundancyZone] operator[SEP] identifier[String] identifier[redundancyZone] operator[SEP] {
Keyword[if] operator[SEP] identifier[redundancyZone] operator[==] Other[null] operator[||] identifier[redundancyZone] operator[SEP] identifier[length] opera... |
public void localCommit()
{
if (log.isDebugEnabled()) log.debug("commit was called");
if (!this.isInLocalTransaction)
{
throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
}
try
{
if(!broker... | class class_name[name] begin[{]
method[localCommit, return_type[void], modifier[public], parameter[]] begin[{]
if[call[log.isDebugEnabled, parameter[]]] begin[{]
call[log.debug, parameter[literal["commit was called"]]]
else begin[{]
None
end[}]
if[THI... | Keyword[public] Keyword[void] identifier[localCommit] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP... |
public static void post(String path, String acceptType, Route route) {
getInstance().post(path, acceptType, route);
} | class class_name[name] begin[{]
method[post, return_type[void], modifier[public static], parameter[path, acceptType, route]] begin[{]
call[.getInstance, parameter[]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[post] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[acceptType] , identifier[Route] identifier[route] operator[SEP] {
identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[post] operator[SEP] ide... |
public static <I> InputValidator<I> checkNotNull(@Nullable I input, ValidationMessage message)
throws ValidationException {
if (input == null) {
throw new ValidationException(message.format(input));
}
return new InputValidator<>(input);
} | class class_name[name] begin[{]
method[checkNotNull, return_type[type[InputValidator]], modifier[public static], parameter[input, message]] begin[{]
if[binary_operation[member[.input], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(ar... | Keyword[public] Keyword[static] operator[<] identifier[I] operator[>] identifier[InputValidator] operator[<] identifier[I] operator[>] identifier[checkNotNull] operator[SEP] annotation[@] identifier[Nullable] identifier[I] identifier[input] , identifier[ValidationMessage] identifier[message] operator[SEP] Keyword[thro... |
protected int readBytes(Socket s, byte[] b) throws Exception {
int bytesRead = 0;
int bytesExpected = b.length;
InputStream is = s.getInputStream();
while (bytesRead < bytesExpected) {
int n = is.read(b, bytesRead, bytesExpected - bytesRead);
if (n < 0) {
return n;
}
byte... | class class_name[name] begin[{]
method[readBytes, return_type[type[int]], modifier[protected], parameter[s, b]] begin[{]
local_variable[type[int], bytesRead]
local_variable[type[int], bytesExpected]
local_variable[type[InputStream], is]
while[binary_operation[member[.byt... | Keyword[protected] Keyword[int] identifier[readBytes] operator[SEP] identifier[Socket] identifier[s] , Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[int] identifier[bytesRead] operator[=] Other[0] operator[SEP] Keyword[int] identifier[bytes... |
@SuppressWarnings("unchecked")
public final <T2> Flux<Tuple2<T, T2>> zipWithIterable(Iterable<? extends T2> iterable) {
return zipWithIterable(iterable, tuple2Function());
} | class class_name[name] begin[{]
method[zipWithIterable, return_type[type[Flux]], modifier[final public], parameter[iterable]] begin[{]
return[call[.zipWithIterable, parameter[member[.iterable], call[.tuple2Function, parameter[]]]]]
end[}]
END[}] | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] operator[<] identifier[T2] operator[>] identifier[Flux] operator[<] identifier[Tuple2] operator[<] identifier[T] , identifier[T2] operator[>] operator[>] identifier[zipWithIterable] operator[SEP] ident... |
@Override
public void removeField(final String name) {
template.execute(solrClient -> {
try {
UpdateResponse response = new SchemaRequest.DeleteField(name).process(solrClient, collection);
if (hasErrors(response)) {
throw new SchemaModificationException(
String.format("Removing field with na... | class class_name[name] begin[{]
method[removeField, return_type[void], modifier[public], parameter[name]] begin[{]
call[template.execute, parameter[LambdaExpression(body=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Clas... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeField] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] {
identifier[template] operator[SEP] identifier[execute] operator[SEP] identifier[solrClient] operator[->] {
Keyword[try] {
... |
@Override
public StringBuffer postProcessBundle(BundleProcessingStatus status, StringBuffer bundleData) {
StringBuffer processedBundle = null;
try {
if (LOGGER.isDebugEnabled())
LOGGER.debug("postprocessing bundle:" + status.getCurrentBundle().getId());
processedBundle = doPostProcessBundle(status, bundl... | class class_name[name] begin[{]
method[postProcessBundle, return_type[type[StringBuffer]], modifier[public], parameter[status, bundleData]] begin[{]
local_variable[type[StringBuffer], processedBundle]
TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled... | annotation[@] identifier[Override] Keyword[public] identifier[StringBuffer] identifier[postProcessBundle] operator[SEP] identifier[BundleProcessingStatus] identifier[status] , identifier[StringBuffer] identifier[bundleData] operator[SEP] {
identifier[StringBuffer] identifier[processedBundle] operator[=] Other[n... |
private static boolean looksLikeHelp(String taskname) {
if (taskname == null)
return false; // applied paranoia, since this isn't in a performance path
int start = 0, len = taskname.length();
while (start < len && !Character.isLetter(taskname.charAt(start)))
++start;
... | class class_name[name] begin[{]
method[looksLikeHelp, return_type[type[boolean]], modifier[private static], parameter[taskname]] begin[{]
if[binary_operation[member[.taskname], ==, literal[null]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
local_variable[t... | Keyword[private] Keyword[static] Keyword[boolean] identifier[looksLikeHelp] operator[SEP] identifier[String] identifier[taskname] operator[SEP] {
Keyword[if] operator[SEP] identifier[taskname] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[int] identifier[start] ope... |
public final void setGuaranteedCrossBusSourceBusUUID(SIBUuid8 value) {
if (value != null)
jmo.setField(ControlAccess.GUARANTEEDXBUS_SET_SOURCEBUSUUID, value.toByteArray());
else
jmo.setField(ControlAccess.GUARANTEEDXBUS_SET_SOURCEBUSUUID, null);
} | class class_name[name] begin[{]
method[setGuaranteedCrossBusSourceBusUUID, return_type[void], modifier[final public], parameter[value]] begin[{]
if[binary_operation[member[.value], !=, literal[null]]] begin[{]
call[jmo.setField, parameter[member[ControlAccess.GUARANTEEDXBUS_SET_SOUR... | Keyword[public] Keyword[final] Keyword[void] identifier[setGuaranteedCrossBusSourceBusUUID] operator[SEP] identifier[SIBUuid8] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] identifier[jmo] operator[SEP] identifier[setField] operator[SEP] iden... |
@BeforeBenchClass
public void generateData() {
final Random ran = new Random();
intData = new int[ARRAYSIZE];
int counter = 0;
while (counter < ARRAYSIZE) {
intData[counter] = ran.nextInt();
counter++;
}
} | class class_name[name] begin[{]
method[generateData, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Random], ran]
assign[member[.intData], ArrayCreator(dimensions=[MemberReference(member=ARRAYSIZE, postfix_operators=[], prefix_operators=[], qualifier=, se... | annotation[@] identifier[BeforeBenchClass] Keyword[public] Keyword[void] identifier[generateData] operator[SEP] operator[SEP] {
Keyword[final] identifier[Random] identifier[ran] operator[=] Keyword[new] identifier[Random] operator[SEP] operator[SEP] operator[SEP] identifier[intData] operator[=] Keyword[new] Keyw... |
public void createPartControl(Composite parent) {
viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
viewer.setContentProvider(new ViewContentProvider());
viewer.setLabelProvider(new ViewLabelProvider());
viewer.setInput(createDummyModel());
} | class class_name[name] begin[{]
method[createPartControl, return_type[void], modifier[public], parameter[parent]] begin[{]
assign[member[.viewer], ClassCreator(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operand... | Keyword[public] Keyword[void] identifier[createPartControl] operator[SEP] identifier[Composite] identifier[parent] operator[SEP] {
identifier[viewer] operator[=] Keyword[new] identifier[TreeViewer] operator[SEP] identifier[parent] , identifier[SWT] operator[SEP] identifier[MULTI] operator[|] identifier[SWT] ope... |
private static int getClosestPowerOf2(int value) {
if (value <= 0)
throw new IllegalArgumentException("Undefined for " + value);
final int hob = Integer.highestOneBit(value);
return Integer.numberOfTrailingZeros(hob) +
(((hob >>> 1) & value) == 0 ? 0 : 1);
} | class class_name[name] begin[{]
method[getClosestPowerOf2, return_type[type[int]], modifier[private static], parameter[value]] begin[{]
if[binary_operation[member[.value], <=, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operat... | Keyword[private] Keyword[static] Keyword[int] identifier[getClosestPowerOf2] operator[SEP] Keyword[int] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[<=] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] ... |
private static void onViaEmbeddable(EntityType entityType, Attribute column, EntityMetadata m, Object entity,
EmbeddableType embeddable, JsonObject jsonObj)
{
Field embeddedField = (Field) column.getJavaMember();
JsonElement embeddedDocumentObject = jsonObj.get(((AbstractAttribute) colum... | class class_name[name] begin[{]
method[onViaEmbeddable, return_type[void], modifier[private static], parameter[entityType, column, m, entity, embeddable, jsonObj]] begin[{]
local_variable[type[Field], embeddedField]
local_variable[type[JsonElement], embeddedDocumentObject]
if[ca... | Keyword[private] Keyword[static] Keyword[void] identifier[onViaEmbeddable] operator[SEP] identifier[EntityType] identifier[entityType] , identifier[Attribute] identifier[column] , identifier[EntityMetadata] identifier[m] , identifier[Object] identifier[entity] , identifier[EmbeddableType] identifier[embeddable] , ... |
public static Integer hexToIntObject(@Nullable String str, Integer defaultValue) {
if (StringUtils.isEmpty(str)) {
return defaultValue;
}
try {
return Integer.decode(str);
} catch (final NumberFormatException nfe) {
return defaultValue;
}
} | class class_name[name] begin[{]
method[hexToIntObject, return_type[type[Integer]], modifier[public static], parameter[str, defaultValue]] begin[{]
if[call[StringUtils.isEmpty, parameter[member[.str]]]] begin[{]
return[member[.defaultValue]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] identifier[Integer] identifier[hexToIntObject] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[str] , identifier[Integer] identifier[defaultValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] op... |
public static List <String[]> getAllStaticResolutions() {
synchronized (hostToResolved) {
Set <Entry <String, String>>entries = hostToResolved.entrySet();
if (entries.size() == 0) {
return null;
}
List <String[]> l = new ArrayList<String[]>(entries.size());
for (Entry<String, S... | class class_name[name] begin[{]
method[getAllStaticResolutions, return_type[type[List]], modifier[public static], parameter[]] begin[{]
SYNCHRONIZED[member[.hostToResolved]] BEGIN[{]
local_variable[type[Set], entries]
if[binary_operation[call[entries.size, pa... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[SEP] operator[SEP] operator[>] identifier[getAllStaticResolutions] operator[SEP] operator[SEP] {
Keyword[synchronized] operator[SEP] identifier[hostToResolved] operator[SEP] {
identifier[Set] operator[<] identifie... |
public void putProperties(DescriptorProperties otherProperties) {
for (Map.Entry<String, String> otherProperty : otherProperties.properties.entrySet()) {
put(otherProperty.getKey(), otherProperty.getValue());
}
} | class class_name[name] begin[{]
method[putProperties, return_type[void], modifier[public], parameter[otherProperties]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_opera... | Keyword[public] Keyword[void] identifier[putProperties] operator[SEP] identifier[DescriptorProperties] identifier[otherProperties] operator[SEP] {
Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] identifier[otherProperty] ... |
public void accessRestriction_u2f_id_enable_POST(Long id, String clientData, String signatureData) throws IOException {
String qPath = "/me/accessRestriction/u2f/{id}/enable";
StringBuilder sb = path(qPath, id);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "clientData", clientData);
ad... | class class_name[name] begin[{]
method[accessRestriction_u2f_id_enable_POST, return_type[void], modifier[public], parameter[id, clientData, signatureData]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
local_variable[type[HashMap], o]
... | Keyword[public] Keyword[void] identifier[accessRestriction_u2f_id_enable_POST] operator[SEP] identifier[Long] identifier[id] , identifier[String] identifier[clientData] , identifier[String] identifier[signatureData] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[qPath] op... |
public double[][] getR() {
double[][] R = new double[n][n];
for(int i = 0; i < n; i++) {
System.arraycopy(QR[i], i + 1, R[i], i + 1, n - i - 1);
R[i][i] = Rdiag[i];
}
return R;
} | class class_name[name] begin[{]
method[getR, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[double], R]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=QR, postfix_... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getR] operator[SEP] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[R] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[n] operator[SEP] operator[... |
public DynamicType.Builder<T> merge(Collection<? extends ModifierContributor.ForType> modifierContributors) {
throw new UnsupportedOperationException("Cannot change modifiers of decorated type: " + instrumentedType);
} | class class_name[name] begin[{]
method[merge, return_type[type[DynamicType]], modifier[public], parameter[modifierContributors]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Ca... | Keyword[public] identifier[DynamicType] operator[SEP] identifier[Builder] operator[<] identifier[T] operator[>] identifier[merge] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[ModifierContributor] operator[SEP] identifier[ForType] operator[>] identifier[modifierContributors] o... |
private String getPathToFluidSpecificTrustStore() {
String fluidSystemTrustStore =
System.getProperty(SYSTEM_PROP_FLUID_TRUST_STORE);
if(fluidSystemTrustStore == null || fluidSystemTrustStore.trim().isEmpty()) {
return null;
}
File certFile = new File(fluidSystemTrustStore);
if(certFile.exists() && c... | class class_name[name] begin[{]
method[getPathToFluidSpecificTrustStore, return_type[type[String]], modifier[private], parameter[]] begin[{]
local_variable[type[String], fluidSystemTrustStore]
if[binary_operation[binary_operation[member[.fluidSystemTrustStore], ==, literal[null]], ||, c... | Keyword[private] identifier[String] identifier[getPathToFluidSpecificTrustStore] operator[SEP] operator[SEP] {
identifier[String] identifier[fluidSystemTrustStore] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[SYSTEM_PROP_FLUID_TRUST_STORE] operator[SEP] operator[S... |
public ServiceFuture<Job> getJobDetailsAsync(String teamName, String jobId, final ServiceCallback<Job> serviceCallback) {
return ServiceFuture.fromResponse(getJobDetailsWithServiceResponseAsync(teamName, jobId), serviceCallback);
} | class class_name[name] begin[{]
method[getJobDetailsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[teamName, jobId, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.getJobDetailsWithServiceResponseAsync, parameter[member[.teamName], member[.jobId]... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[Job] operator[>] identifier[getJobDetailsAsync] operator[SEP] identifier[String] identifier[teamName] , identifier[String] identifier[jobId] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Job] operator[>] identifier[serviceCallback]... |
public BaseBuffer doSeek(String strSeekSign, FieldTable table, KeyAreaInfo keyArea) throws DBException
{
return null;
} | class class_name[name] begin[{]
method[doSeek, return_type[type[BaseBuffer]], modifier[public], parameter[strSeekSign, table, keyArea]] begin[{]
return[literal[null]]
end[}]
END[}] | Keyword[public] identifier[BaseBuffer] identifier[doSeek] operator[SEP] identifier[String] identifier[strSeekSign] , identifier[FieldTable] identifier[table] , identifier[KeyAreaInfo] identifier[keyArea] operator[SEP] Keyword[throws] identifier[DBException] {
Keyword[return] Other[null] operator[SEP]
}
|
public static <T extends Comparable<? super T>> Ix<T> orderedMerge(Iterable<? extends Iterable<? extends T>> sources) {
return orderedMerge(sources, SelfComparator.INSTANCE);
} | class class_name[name] begin[{]
method[orderedMerge, return_type[type[Ix]], modifier[public static], parameter[sources]] begin[{]
return[call[.orderedMerge, parameter[member[.sources], member[SelfComparator.INSTANCE]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[T] operator[>] operator[>] identifier[Ix] operator[<] identifier[T] operator[>] identifier[orderedMerge] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[... |
public static void ensureLocationExists(
DatasetDescriptor descriptor, Configuration conf) {
Preconditions.checkNotNull(descriptor.getLocation(),
"Cannot get FileSystem for a descriptor with no location");
Path dataPath = new Path(descriptor.getLocation().toString());
FileSystem fs = null;
... | class class_name[name] begin[{]
method[ensureLocationExists, return_type[void], modifier[public static], parameter[descriptor, conf]] begin[{]
call[Preconditions.checkNotNull, parameter[call[descriptor.getLocation, parameter[]], literal["Cannot get FileSystem for a descriptor with no location"]... | Keyword[public] Keyword[static] Keyword[void] identifier[ensureLocationExists] operator[SEP] identifier[DatasetDescriptor] identifier[descriptor] , identifier[Configuration] identifier[conf] operator[SEP] {
identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[descriptor] ope... |
@Override
public final int encode(ValueReference<ByteBuffer> data, int size)
{
int bufferSize = size;
ByteBuffer buf = data.get();
if (buf == null) {
buf = this.buffer;
bufferSize = this.bufferSize;
buffer.clear();
}
if (inProgress == ... | class class_name[name] begin[{]
method[encode, return_type[type[int]], modifier[final public], parameter[data, size]] begin[{]
local_variable[type[int], bufferSize]
local_variable[type[ByteBuffer], buf]
if[binary_operation[member[.buf], ==, literal[null]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[int] identifier[encode] operator[SEP] identifier[ValueReference] operator[<] identifier[ByteBuffer] operator[>] identifier[data] , Keyword[int] identifier[size] operator[SEP] {
Keyword[int] identifier[bufferSize] operator[=] identifier[si... |
public Task updateDocument(Task task) throws ConflictException, DocumentStoreException {
DocumentRevision rev = task.getDocumentRevision();
rev.setBody(DocumentBodyFactory.create(task.asMap()));
try {
DocumentRevision updated = this.mDocumentStore.database().update(rev);
... | class class_name[name] begin[{]
method[updateDocument, return_type[type[Task]], modifier[public], parameter[task]] begin[{]
local_variable[type[DocumentRevision], rev]
call[rev.setBody, parameter[call[DocumentBodyFactory.create, parameter[call[task.asMap, parameter[]]]]]]
TrySta... | Keyword[public] identifier[Task] identifier[updateDocument] operator[SEP] identifier[Task] identifier[task] operator[SEP] Keyword[throws] identifier[ConflictException] , identifier[DocumentStoreException] {
identifier[DocumentRevision] identifier[rev] operator[=] identifier[task] operator[SEP] identifier[getDoc... |
public Number deserializeNumber(String s) {
if(s.indexOf('.') >= 0 || s.indexOf('e') >= 0 || s.indexOf('E') >= 0) {
return Double.valueOf(s);
} else {
Long l = Long.valueOf(s);
if(l > Integer.MAX_VALUE || l <Integer.MIN_VALUE) {
return l;
} else {
return new Integer(l.intValue());
}
}
} | class class_name[name] begin[{]
method[deserializeNumber, return_type[type[Number]], modifier[public], parameter[s]] begin[{]
if[binary_operation[binary_operation[binary_operation[call[s.indexOf, parameter[literal['.']]], >=, literal[0]], ||, binary_operation[call[s.indexOf, parameter[literal['... | Keyword[public] identifier[Number] identifier[deserializeNumber] operator[SEP] identifier[String] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[>=] Other[0] operator[||] identifier[s] operator[SEP] iden... |
@XmlElementDecl(namespace = "http://www.immoxml.de", name = "versteigerungstermin")
@XmlJavaTypeAdapter(Adapter4 .class)
public JAXBElement<Calendar> createVersteigerungstermin(Calendar value) {
return new JAXBElement<Calendar>(_Versteigerungstermin_QNAME, Calendar.class, null, value);
} | class class_name[name] begin[{]
method[createVersteigerungstermin, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_Versteigerungstermin_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassR... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] annotation[@] identifier[XmlJavaTypeAdapter] operator[SEP] identifier[Adapter4] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAX... |
public static dnscnamerec[] get(nitro_service service) throws Exception{
dnscnamerec obj = new dnscnamerec();
dnscnamerec[] response = (dnscnamerec[])obj.get_resources(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[dnscnamerec]], modifier[public static], parameter[service]] begin[{]
local_variable[type[dnscnamerec], obj]
local_variable[type[dnscnamerec], response]
return[member[.response]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[dnscnamerec] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[dnscnamerec] identifier[obj] operator[=] Keyword[new] identifier[dnscnamerec] operator[S... |
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case XbasePackage.XCONSTRUCTOR_CALL__CONSTRUCTOR:
setConstructor((JvmConstructor)newValue);
return;
case XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS:
getArguments().clear();
getArg... | class class_name[name] begin[{]
method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=XCONSTRUCTOR_CALL__CONSTRUCTOR, postfix_operators=[], prefix_operators=[], qualifier=XbasePackage, selectors... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] {
Keyword[switch] operator[SEP] identi... |
public <T extends Object> T getObject(final String columnLabel,
final Class<T> clazz)
throws SQLException {
throw new RuntimeException("Not implemented");
} | class class_name[name] begin[{]
method[getObject, return_type[type[T]], modifier[public], parameter[columnLabel, clazz]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Not implemented")], body=None, cons... | Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Object] operator[>] identifier[T] identifier[getObject] operator[SEP] Keyword[final] identifier[String] identifier[columnLabel] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] Keyword[throws] ... |
public static List<DrMemoryError> parse(File file, String charset) {
List<DrMemoryError> result = new ArrayList<>();
List<String> elements = getElements(file, charset);
for (String element : elements) {
Matcher m = RX_MESSAGE_FINDER.matcher(element);
if (m.find()) {
DrMemoryError err... | class class_name[name] begin[{]
method[parse, return_type[type[List]], modifier[public static], parameter[file, charset]] begin[{]
local_variable[type[List], result]
local_variable[type[List], elements]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(an... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[DrMemoryError] operator[>] identifier[parse] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[charset] operator[SEP] {
identifier[List] operator[<] identifier[DrMemoryError] operator[>] identifier[result] oper... |
protected static boolean defaultIgnoreNullValue(Object obj) {
if(obj instanceof CharSequence || obj instanceof JSONTokener || obj instanceof Map) {
return false;
}
return true;
} | class class_name[name] begin[{]
method[defaultIgnoreNullValue, return_type[type[boolean]], modifier[static protected], parameter[obj]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.obj], instanceof, type[CharSequence]], ||, binary_operation[member[.obj], instanceof, typ... | Keyword[protected] Keyword[static] Keyword[boolean] identifier[defaultIgnoreNullValue] operator[SEP] identifier[Object] identifier[obj] operator[SEP] {
Keyword[if] operator[SEP] identifier[obj] Keyword[instanceof] identifier[CharSequence] operator[||] identifier[obj] Keyword[instanceof] identifier[JSONTokener] o... |
@Override
public void initialize(URI path, Configuration config) throws IOException {
initialize(path, config, /* initSuperclass= */ true);
} | class class_name[name] begin[{]
method[initialize, return_type[void], modifier[public], parameter[path, config]] begin[{]
call[.initialize, parameter[member[.path], member[.config], literal[true]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[URI] identifier[path] , identifier[Configuration] identifier[config] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[initialize] operator[SEP] identifier[path] , identifier[config... |
private List<EventColumn> translateColumns(EventData data, List<EventColumn> columns, DataMediaPair dataMediaPair,
Multimap<String, String> translateColumnNames,
TableInfoHolder tableHolder) {
List<EventColumn> tcolumn... | class class_name[name] begin[{]
method[translateColumns, return_type[type[List]], modifier[private], parameter[data, columns, dataMediaPair, translateColumnNames, tableHolder]] begin[{]
local_variable[type[List], tcolumns]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDe... | Keyword[private] identifier[List] operator[<] identifier[EventColumn] operator[>] identifier[translateColumns] operator[SEP] identifier[EventData] identifier[data] , identifier[List] operator[<] identifier[EventColumn] operator[>] identifier[columns] , identifier[DataMediaPair] identifier[dataMediaPair] , identifier... |
public void marshall(EntityRecognizerMetadata entityRecognizerMetadata, ProtocolMarshaller protocolMarshaller) {
if (entityRecognizerMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(entityR... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[entityRecognizerMetadata, protocolMarshaller]] begin[{]
if[binary_operation[member[.entityRecognizerMetadata], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(argument... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[EntityRecognizerMetadata] identifier[entityRecognizerMetadata] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[entityRecognizerMetadata] operator[==] Other[null] opera... |
public static String toLowerCaseFirstOne(String s) {
if (Character.isLowerCase(s.charAt(0)))
return s;
else
return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString();
} | class class_name[name] begin[{]
method[toLowerCaseFirstOne, return_type[type[String]], modifier[public static], parameter[s]] begin[{]
if[call[Character.isLowerCase, parameter[call[s.charAt, parameter[literal[0]]]]]] begin[{]
return[member[.s]]
else begin[{]
return[ClassCreator(argument... | Keyword[public] Keyword[static] identifier[String] identifier[toLowerCaseFirstOne] operator[SEP] identifier[String] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] identifier[Character] operator[SEP] identifier[isLowerCase] operator[SEP] identifier[s] operator[SEP] identifier[charAt] operator[SEP] Other[... |
private void init() {
jsFactory = new JsonFactory();
jsFactory.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
jsFactory.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
jsFactory.configure(JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS, true);
} | class class_name[name] begin[{]
method[init, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.jsFactory], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(... | Keyword[private] Keyword[void] identifier[init] operator[SEP] operator[SEP] {
identifier[jsFactory] operator[=] Keyword[new] identifier[JsonFactory] operator[SEP] operator[SEP] operator[SEP] identifier[jsFactory] operator[SEP] identifier[configure] operator[SEP] identifier[JsonParser] operator[SEP] identifier[Fe... |
public static String getFilenameExtension(String path) {
if (path == null) {
return null;
}
int extIndex = path.lastIndexOf(".");
if (extIndex == -1) {
return null;
}
return path.substring(extIndex + 1);
} | class class_name[name] begin[{]
method[getFilenameExtension, return_type[type[String]], modifier[public static], parameter[path]] begin[{]
if[binary_operation[member[.path], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_va... | Keyword[public] Keyword[static] identifier[String] identifier[getFilenameExtension] operator[SEP] identifier[String] identifier[path] operator[SEP] {
Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
Keyword[in... |
public void registerVerbHandlers(Verb verb, IVerbHandler verbHandler)
{
assert !verbHandlers.containsKey(verb);
verbHandlers.put(verb, verbHandler);
} | class class_name[name] begin[{]
method[registerVerbHandlers, return_type[void], modifier[public], parameter[verb, verbHandler]] begin[{]
AssertStatement(condition=MethodInvocation(arguments=[MemberReference(member=verb, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=conta... | Keyword[public] Keyword[void] identifier[registerVerbHandlers] operator[SEP] identifier[Verb] identifier[verb] , identifier[IVerbHandler] identifier[verbHandler] operator[SEP] {
Keyword[assert] operator[!] identifier[verbHandlers] operator[SEP] identifier[containsKey] operator[SEP] identifier[verb] operator[SEP... |
public synchronized Number convertToNumber(String s,
NumberType numberType) {
Number number;
boolean minus = false;
Type type;
reset(s);
resetState();
scanWhitespace();
scanToken();
scanWhitespace();
if (token.tokenType == Tokens... | class class_name[name] begin[{]
method[convertToNumber, return_type[type[Number]], modifier[synchronized public], parameter[s, numberType]] begin[{]
local_variable[type[Number], number]
local_variable[type[boolean], minus]
local_variable[type[Type], type]
call[.reset, pa... | Keyword[public] Keyword[synchronized] identifier[Number] identifier[convertToNumber] operator[SEP] identifier[String] identifier[s] , identifier[NumberType] identifier[numberType] operator[SEP] {
identifier[Number] identifier[number] operator[SEP] Keyword[boolean] identifier[minus] operator[=] literal[boolean] ... |
protected void generateErrorAndRequiredClass(UIInput input, ResponseWriter rw, String clientId,
String additionalClass1, String additionalClass2, String additionalClass3) throws IOException {
String styleClass = getErrorAndRequiredClass(input, clientId);
if (null != additionalClass1) {
additionalClass1 = ... | class class_name[name] begin[{]
method[generateErrorAndRequiredClass, return_type[void], modifier[protected], parameter[input, rw, clientId, additionalClass1, additionalClass2, additionalClass3]] begin[{]
local_variable[type[String], styleClass]
if[binary_operation[literal[null], !=, me... | Keyword[protected] Keyword[void] identifier[generateErrorAndRequiredClass] operator[SEP] identifier[UIInput] identifier[input] , identifier[ResponseWriter] identifier[rw] , identifier[String] identifier[clientId] , identifier[String] identifier[additionalClass1] , identifier[String] identifier[additionalClass2] , ... |
public static Object createShutdownProxy(Object o,
Class[] interfaces,
Shutdown shutdown)
{
if(interfaces == null)
interfaces = ReflectUtils.extractAllInterfaces(o);
return Proxy.newProxyInstance(o.getClass().getClass... | class class_name[name] begin[{]
method[createShutdownProxy, return_type[type[Object]], modifier[public static], parameter[o, interfaces, shutdown]] begin[{]
if[binary_operation[member[.interfaces], ==, literal[null]]] begin[{]
assign[member[.interfaces], call[ReflectUtils.extractAll... | Keyword[public] Keyword[static] identifier[Object] identifier[createShutdownProxy] operator[SEP] identifier[Object] identifier[o] , identifier[Class] operator[SEP] operator[SEP] identifier[interfaces] , identifier[Shutdown] identifier[shutdown] operator[SEP] {
Keyword[if] operator[SEP] identifier[interfaces] o... |
public void setGroups(java.util.Collection<GroupInformation> groups) {
if (groups == null) {
this.groups = null;
return;
}
this.groups = new java.util.ArrayList<GroupInformation>(groups);
} | class class_name[name] begin[{]
method[setGroups, return_type[void], modifier[public], parameter[groups]] begin[{]
if[binary_operation[member[.groups], ==, literal[null]]] begin[{]
assign[THIS[member[None.groups]], literal[null]]
return[None]
else beg... | Keyword[public] Keyword[void] identifier[setGroups] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[GroupInformation] operator[>] identifier[groups] operator[SEP] {
Keyword[if] operator[SEP] identifier[groups] operator[==] Other[null] oper... |
private <T, U> U queryStreamWithNamedParams(
String sql,
SqlParameterSource sps,
RowMapper<T> mapper,
Function<? super Stream<T>, U> handleStream) {
SQLExceptionTranslator excTranslator = jdbcTemplate.getExceptionTranslator();
ResultSetExtractor<U> extract... | class class_name[name] begin[{]
method[queryStreamWithNamedParams, return_type[type[U]], modifier[private], parameter[sql, sps, mapper, handleStream]] begin[{]
local_variable[type[SQLExceptionTranslator], excTranslator]
local_variable[type[ResultSetExtractor], extractor]
return[call[nam... | Keyword[private] operator[<] identifier[T] , identifier[U] operator[>] identifier[U] identifier[queryStreamWithNamedParams] operator[SEP] identifier[String] identifier[sql] , identifier[SqlParameterSource] identifier[sps] , identifier[RowMapper] operator[<] identifier[T] operator[>] identifier[mapper] , identifier[... |
public void reload()
{
entries.clear();
indexByLeadershipTermIdMap.clear();
indexByLeadershipTermIdMap.compact();
nextEntryIndex = 0;
byteBuffer.clear();
try
{
while (true)
{
final int bytes = fileChannel.read(byteBuff... | class class_name[name] begin[{]
method[reload, return_type[void], modifier[public], parameter[]] begin[{]
call[entries.clear, parameter[]]
call[indexByLeadershipTermIdMap.clear, parameter[]]
call[indexByLeadershipTermIdMap.compact, parameter[]]
as... | Keyword[public] Keyword[void] identifier[reload] operator[SEP] operator[SEP] {
identifier[entries] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[indexByLeadershipTermIdMap] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[indexByLeadershi... |
private void modifyMachine(TaskAssignment taskAssignment, Machine oldMachine, Machine newMachine) {
if (Objects.equals(oldMachine, newMachine)) {
return;
}
Integer startPeriod = taskAssignment.getStartPeriod();
if (startPeriod == null) {
return;
}
... | class class_name[name] begin[{]
method[modifyMachine, return_type[void], modifier[private], parameter[taskAssignment, oldMachine, newMachine]] begin[{]
if[call[Objects.equals, parameter[member[.oldMachine], member[.newMachine]]]] begin[{]
return[None]
else begin[{]
None
... | Keyword[private] Keyword[void] identifier[modifyMachine] operator[SEP] identifier[TaskAssignment] identifier[taskAssignment] , identifier[Machine] identifier[oldMachine] , identifier[Machine] identifier[newMachine] operator[SEP] {
Keyword[if] operator[SEP] identifier[Objects] operator[SEP] identifier[equals] o... |
public static long count(nitro_service service, String servicename) throws Exception{
sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding();
obj.set_servicename(servicename);
options option = new options();
option.set_count(true);
sslservice_sslciphersuite_binding response[] = (sslse... | class class_name[name] begin[{]
method[count, return_type[type[long]], modifier[public static], parameter[service, servicename]] begin[{]
local_variable[type[sslservice_sslciphersuite_binding], obj]
call[obj.set_servicename, parameter[member[.servicename]]]
local_variable[type[o... | Keyword[public] Keyword[static] Keyword[long] identifier[count] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[servicename] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[sslservice_sslciphersuite_binding] identifier[obj] operator[=] Keyword[new] id... |
public void marshall(SetCognitoEventsRequest setCognitoEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (setCognitoEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(setCognito... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[setCognitoEventsRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.setCognitoEventsRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[SetCognitoEventsRequest] identifier[setCognitoEventsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[setCognitoEventsRequest] operator[==] Other[null] operator... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.