code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
ServerSessionManager registerConnection(String client, Connection connection) {
ServerSessionContext session = clients.get(client);
if (session != null) {
session.setConnection(connection);
}
connections.put(client, connection);
return this;
} } | public class class_name {
ServerSessionManager registerConnection(String client, Connection connection) {
ServerSessionContext session = clients.get(client);
if (session != null) {
session.setConnection(connection); // depends on control dependency: [if], data = [none]
}
connections.put(client, c... |
public class class_name {
public void setTagOptions(java.util.Collection<TagOptionDetail> tagOptions) {
if (tagOptions == null) {
this.tagOptions = null;
return;
}
this.tagOptions = new java.util.ArrayList<TagOptionDetail>(tagOptions);
} } | public class class_name {
public void setTagOptions(java.util.Collection<TagOptionDetail> tagOptions) {
if (tagOptions == null) {
this.tagOptions = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void setResult(Object result) {
if (resultSent) {
throw new RuntimeException("You can only set the result once.");
}
this.resultSent = true;
Channel channel = this.channel.get();
if (channel == null) {
log.warn("The... | public class class_name {
public void setResult(Object result) {
if (resultSent) {
throw new RuntimeException("You can only set the result once.");
}
this.resultSent = true;
Channel channel = this.channel.get();
if (channel == null) {
log.warn("The... |
public class class_name {
public Set<String> getArtifactIds( String groupId )
{
Entry parentEntry = backing.get( groupId.replace( '.', '/' ) );
if ( !( parentEntry instanceof DirectoryEntry ) )
{
return Collections.emptySet();
}
DirectoryEntry parentDir = (Direct... | public class class_name {
public Set<String> getArtifactIds( String groupId )
{
Entry parentEntry = backing.get( groupId.replace( '.', '/' ) );
if ( !( parentEntry instanceof DirectoryEntry ) )
{
return Collections.emptySet(); // depends on control dependency: [if], data = [none... |
public class class_name {
protected void fireChange() {
Object[] listeners = listenerList.getListenerList();
ChangeEvent event = new ChangeEvent(this);
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == ChangeListener.class) {
((ChangeListener)listeners[i + 1]).stateChanged(event);
... | public class class_name {
protected void fireChange() {
Object[] listeners = listenerList.getListenerList();
ChangeEvent event = new ChangeEvent(this);
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == ChangeListener.class) {
((ChangeListener)listeners[i + 1]).stateChanged(event); /... |
public class class_name {
public JSONObject basicGeneral(byte[] image, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
String base64Content = Base64Util.encode(image);
request.addBody("image", base64Content);
if (options ... | public class class_name {
public JSONObject basicGeneral(byte[] image, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
String base64Content = Base64Util.encode(image);
request.addBody("image", base64Content);
if (options ... |
public class class_name {
@Override
public T addHandlers(ArchiveEventHandler... handlers) {
for (ArchiveEventHandler handler : handlers) {
this.handlers.add(handler);
}
return covariantReturn();
} } | public class class_name {
@Override
public T addHandlers(ArchiveEventHandler... handlers) {
for (ArchiveEventHandler handler : handlers) {
this.handlers.add(handler); // depends on control dependency: [for], data = [handler]
}
return covariantReturn();
} } |
public class class_name {
public String write(Geometry geometry)
{
try
{
JSONStringer b = new JSONStringer();
if (geometry.getClass().equals(GeometryCollection.class))
{
writeFeatureCollection(b, (GeometryCollection) geometry);
}
else
{
writeFeature(b, geometry);
}
return b.toStrin... | public class class_name {
public String write(Geometry geometry)
{
try
{
JSONStringer b = new JSONStringer();
if (geometry.getClass().equals(GeometryCollection.class))
{
writeFeatureCollection(b, (GeometryCollection) geometry); // depends on control dependency: [if], data = [none]
}
else
{
... |
public class class_name {
public Response sendTransaction(Transaction transaction) throws PeerException {
logger.debug("peer.sendTransaction");
// Send the transaction to the peer node via grpc
// The rpc specification on the peer side is:
// rpc ProcessTransaction(Transaction) re... | public class class_name {
public Response sendTransaction(Transaction transaction) throws PeerException {
logger.debug("peer.sendTransaction");
// Send the transaction to the peer node via grpc
// The rpc specification on the peer side is:
// rpc ProcessTransaction(Transaction) re... |
public class class_name {
public static String convert(String source, Charset srcCharset, Charset destCharset) {
if(null == srcCharset) {
srcCharset = StandardCharsets.ISO_8859_1;
}
if(null == destCharset) {
destCharset = StandardCharsets.UTF_8;
}
if (StrUtil.isBlank(source) || srcCharse... | public class class_name {
public static String convert(String source, Charset srcCharset, Charset destCharset) {
if(null == srcCharset) {
srcCharset = StandardCharsets.ISO_8859_1;
// depends on control dependency: [if], data = [none]
}
if(null == destCharset) {
destCharset = StandardCharsets.UTF_8... |
public class class_name {
@Override
protected Object doExec(Element element, Object scope, String propertyPath, Object... arguments) throws TemplateException {
if (!propertyPath.equals(".") && ConverterRegistry.hasType(scope.getClass())) {
throw new TemplateException("Operand is property path but scope is not... | public class class_name {
@Override
protected Object doExec(Element element, Object scope, String propertyPath, Object... arguments) throws TemplateException {
if (!propertyPath.equals(".") && ConverterRegistry.hasType(scope.getClass())) {
throw new TemplateException("Operand is property path but scope is not... |
public class class_name {
public void registerExecutor(
String appId,
String execId,
ExecutorShuffleInfo executorInfo) {
AppExecId fullId = new AppExecId(appId, execId);
logger.info("Registered executor {} with {}", fullId, executorInfo);
if (!knownManagers.contains(executorInfo.shuffleMa... | public class class_name {
public void registerExecutor(
String appId,
String execId,
ExecutorShuffleInfo executorInfo) {
AppExecId fullId = new AppExecId(appId, execId);
logger.info("Registered executor {} with {}", fullId, executorInfo);
if (!knownManagers.contains(executorInfo.shuffleMa... |
public class class_name {
private void handleEvent(XMLEvent event) {
if(event.getEventType() == XMLStreamConstants.CHARACTERS) {
Characters c = event.asCharacters();
lastContents += c.getData();
} else if(event.getEventType() == XMLStreamConstants.START_ELEMENT
&& isSpreadsheetTag(event.asS... | public class class_name {
private void handleEvent(XMLEvent event) {
if(event.getEventType() == XMLStreamConstants.CHARACTERS) {
Characters c = event.asCharacters();
lastContents += c.getData(); // depends on control dependency: [if], data = [none]
} else if(event.getEventType() == XMLStreamConstan... |
public class class_name {
@Nullable
public static Node findNode(@NotNull final Node rootNode, @NotNull final XPath xPath,
@NotNull final String expression) {
Contract.requireArgNotNull("rootNode", rootNode);
Contract.requireArgNotNull("xPath", xPath);
Contract.requireArgNotNull(... | public class class_name {
@Nullable
public static Node findNode(@NotNull final Node rootNode, @NotNull final XPath xPath,
@NotNull final String expression) {
Contract.requireArgNotNull("rootNode", rootNode);
Contract.requireArgNotNull("xPath", xPath);
Contract.requireArgNotNull(... |
public class class_name {
public void marshall(ProjectStatus projectStatus, ProtocolMarshaller protocolMarshaller) {
if (projectStatus == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(projectStatus... | public class class_name {
public void marshall(ProjectStatus projectStatus, ProtocolMarshaller protocolMarshaller) {
if (projectStatus == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(projectStatus... |
public class class_name {
public static void arrayCopy(ByteBuffer src, int srcPos, ByteBuffer dst, int dstPos, int length)
{
if (src.hasArray() && dst.hasArray())
{
System.arraycopy(src.array(),
src.arrayOffset() + srcPos,
... | public class class_name {
public static void arrayCopy(ByteBuffer src, int srcPos, ByteBuffer dst, int dstPos, int length)
{
if (src.hasArray() && dst.hasArray())
{
System.arraycopy(src.array(),
src.arrayOffset() + srcPos,
... |
public class class_name {
public static <T> T getLast(T[] objectArray)
{
if (ArrayIterate.notEmpty(objectArray))
{
return objectArray[objectArray.length - 1];
}
return null;
} } | public class class_name {
public static <T> T getLast(T[] objectArray)
{
if (ArrayIterate.notEmpty(objectArray))
{
return objectArray[objectArray.length - 1]; // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static int getPackedPositionType(final long packedPosition) {
if (packedPosition == PACKED_POSITION_VALUE_NULL) {
return PACKED_POSITION_TYPE_NULL;
}
return (packedPosition & PACKED_POSITION_MASK_TYPE) == PACKED_POSITION_MASK_TYPE ?
... | public class class_name {
public static int getPackedPositionType(final long packedPosition) {
if (packedPosition == PACKED_POSITION_VALUE_NULL) {
return PACKED_POSITION_TYPE_NULL; // depends on control dependency: [if], data = [none]
}
return (packedPosition & PACKED_POSITION_MASK... |
public class class_name {
protected void handleComputeFields(int julianDay) {
long d = julianDay - 347997;
long m = (d * DAY_PARTS) / MONTH_PARTS; // Months (approx)
int year = (int)((19 * m + 234) / 235) + 1; // Years (approx)
long ys = startOfYear(year); ... | public class class_name {
protected void handleComputeFields(int julianDay) {
long d = julianDay - 347997;
long m = (d * DAY_PARTS) / MONTH_PARTS; // Months (approx)
int year = (int)((19 * m + 234) / 235) + 1; // Years (approx)
long ys = startOfYear(year); ... |
public class class_name {
private void associateF2F()
{
quadViews.reset();
for( int i = 0; i < detector.getNumberOfSets(); i++ ) {
SetMatches matches = setMatches[i];
// old left to new left
assocSame.setSource(featsLeft0.location[i],featsLeft0.description[i]);
assocSame.setDestination(featsLeft1.lo... | public class class_name {
private void associateF2F()
{
quadViews.reset();
for( int i = 0; i < detector.getNumberOfSets(); i++ ) {
SetMatches matches = setMatches[i];
// old left to new left
assocSame.setSource(featsLeft0.location[i],featsLeft0.description[i]); // depends on control dependency: [for], ... |
public class class_name {
private boolean hasSelectedChildren(CmsTreeItem item) {
for (String childId : m_childrens.get(item.getId())) {
CmsTreeItem child = m_categories.get(childId);
if (child.getCheckBox().isChecked() || hasSelectedChildren(child)) {
return true;... | public class class_name {
private boolean hasSelectedChildren(CmsTreeItem item) {
for (String childId : m_childrens.get(item.getId())) {
CmsTreeItem child = m_categories.get(childId);
if (child.getCheckBox().isChecked() || hasSelectedChildren(child)) {
return true;... |
public class class_name {
public void setAsText(final String text)
{
StringTokenizer stok = new StringTokenizer(text, ",\r\n");
int[] theValue = new int[stok.countTokens()];
int i = 0;
while (stok.hasMoreTokens())
{
theValue[i++] = Integer.decode(stok.nextToken()).intValue();
... | public class class_name {
public void setAsText(final String text)
{
StringTokenizer stok = new StringTokenizer(text, ",\r\n");
int[] theValue = new int[stok.countTokens()];
int i = 0;
while (stok.hasMoreTokens())
{
theValue[i++] = Integer.decode(stok.nextToken()).intValue(); ... |
public class class_name {
public void addChildren( AstNode first,
AstNode second ) {
if (first != null) {
this.addLastChild(first);
}
if (second != null) {
this.addLastChild(second);
}
} } | public class class_name {
public void addChildren( AstNode first,
AstNode second ) {
if (first != null) {
this.addLastChild(first); // depends on control dependency: [if], data = [(first]
}
if (second != null) {
this.addLastChild(second); // ... |
public class class_name {
protected void fireReleased(Command command) {
getState(command).down = false;
if (!isActive()) {
return;
}
for (int i = 0; i < listeners.size(); i++) {
((InputProviderListener) listeners.get(i)).controlReleased(command);
}
} } | public class class_name {
protected void fireReleased(Command command) {
getState(command).down = false;
if (!isActive()) {
return; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < listeners.size(); i++) {
((InputProviderListener) listeners.get(i)).controlReleased(command); /... |
public class class_name {
private Component createImageButton() {
CssLayout layout = new CssLayout();
layout.addStyleName(OpenCmsTheme.USER_IMAGE);
Image userImage = new Image();
userImage.setSource(
new ExternalResource(
OpenCms.getWorkplaceAppManager().get... | public class class_name {
private Component createImageButton() {
CssLayout layout = new CssLayout();
layout.addStyleName(OpenCmsTheme.USER_IMAGE);
Image userImage = new Image();
userImage.setSource(
new ExternalResource(
OpenCms.getWorkplaceAppManager().get... |
public class class_name {
@Override
public boolean releasePeerLease(String recoveryIdentity) throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "releasePeerLease", new Object[] { recoveryIdentity, this });
// Release the lock - if it is not null!
FileLock fLock = null;
... | public class class_name {
@Override
public boolean releasePeerLease(String recoveryIdentity) throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "releasePeerLease", new Object[] { recoveryIdentity, this });
// Release the lock - if it is not null!
FileLock fLock = null;
... |
public class class_name {
private void addFilters(MpxjTreeNode parentNode, List<Filter> filters)
{
for (Filter field : filters)
{
final Filter f = field;
MpxjTreeNode childNode = new MpxjTreeNode(field)
{
@Override public String toString()
{
... | public class class_name {
private void addFilters(MpxjTreeNode parentNode, List<Filter> filters)
{
for (Filter field : filters)
{
final Filter f = field;
MpxjTreeNode childNode = new MpxjTreeNode(field)
{
@Override public String toString()
{
... |
public class class_name {
public void setLabel(String label) {
this.label.setText(label);
if (!getPlaceholder().isEmpty()) {
this.label.setStyleName(CssName.ACTIVE);
}
} } | public class class_name {
public void setLabel(String label) {
this.label.setText(label);
if (!getPlaceholder().isEmpty()) {
this.label.setStyleName(CssName.ACTIVE); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static ByteBuffer putPaddedInt32AsString(ByteBuffer buffer, int value, int length)
{
// Ensure there is sufficient space in the buffer to hold the result.
int charsRequired = BitHackUtils.getCharacterCountInt32(value);
length = (charsRequired < length) ? len... | public class class_name {
public static ByteBuffer putPaddedInt32AsString(ByteBuffer buffer, int value, int length)
{
// Ensure there is sufficient space in the buffer to hold the result.
int charsRequired = BitHackUtils.getCharacterCountInt32(value);
length = (charsRequired < length) ? len... |
public class class_name {
public static String ticket(String key, String type) {
if (isKeyParam(key)) {
String[] keys = key.split(KEY_JOIN);
if (keys.length == 2) {
return apiHandler.ticket(keys[0], keys[1], type);
} else if (keys.length == 1) {
return apiHandler.ticket(keys[0], type);
}
... | public class class_name {
public static String ticket(String key, String type) {
if (isKeyParam(key)) {
String[] keys = key.split(KEY_JOIN);
if (keys.length == 2) {
return apiHandler.ticket(keys[0], keys[1], type);
// depends on control dependency: [if], data = [none]
} else if (keys.length == 1) {... |
public class class_name {
public static void set_value(final Object[] valueArray, final Attribute attribute,
final int dimX, final int dimY) throws DevFailed {
if (valueArray.length > 0 && dimX == 1 && dimY == 0) {
AttributeHelper.set_value(valueArray[0], attribute);
} else if (valueArray.length > 1) {
... | public class class_name {
public static void set_value(final Object[] valueArray, final Attribute attribute,
final int dimX, final int dimY) throws DevFailed {
if (valueArray.length > 0 && dimX == 1 && dimY == 0) {
AttributeHelper.set_value(valueArray[0], attribute);
} else if (valueArray.length > 1) {
... |
public class class_name {
private void accumulateNormal(final Element center, final Element pre,
final Element post) {
double cx = center.getDouble("x");
double cy = center.getDouble("y");
double cz = center.getDouble("z");
double ax = post.getDouble("x") - cx;
doub... | public class class_name {
private void accumulateNormal(final Element center, final Element pre,
final Element post) {
double cx = center.getDouble("x");
double cy = center.getDouble("y");
double cz = center.getDouble("z");
double ax = post.getDouble("x") - cx;
doub... |
public class class_name {
public static Color randomColor(Random random) {
if (null == random) {
random = RandomUtil.getRandom();
}
return new Color(random.nextInt(255), random.nextInt(255), random.nextInt(255));
} } | public class class_name {
public static Color randomColor(Random random) {
if (null == random) {
random = RandomUtil.getRandom();
// depends on control dependency: [if], data = [none]
}
return new Color(random.nextInt(255), random.nextInt(255), random.nextInt(255));
} } |
public class class_name {
private void adaptDividerMargin(@Nullable final Divider divider) {
if (divider != null) {
ViewGroup.LayoutParams layoutParams = divider.getLayoutParams();
if (layoutParams instanceof LayoutParams) {
((LayoutParams) layoutParams).leftMargin = di... | public class class_name {
private void adaptDividerMargin(@Nullable final Divider divider) {
if (divider != null) {
ViewGroup.LayoutParams layoutParams = divider.getLayoutParams();
if (layoutParams instanceof LayoutParams) {
((LayoutParams) layoutParams).leftMargin = di... |
public class class_name {
public Optional<Sense> getSense(@NonNull String word, @NonNull POS pos, int senseNum, @NonNull Language language) {
for (String lemma : Lemmatizers
.getLemmatizer(language)
.allPossibleLemmas(word, pos)) {
for... | public class class_name {
public Optional<Sense> getSense(@NonNull String word, @NonNull POS pos, int senseNum, @NonNull Language language) {
for (String lemma : Lemmatizers
.getLemmatizer(language)
.allPossibleLemmas(word, pos)) {
for... |
public class class_name {
public static void cursorDoubleToContentValuesIfPresent(Cursor cursor, ContentValues values,
String column) {
final int index = cursor.getColumnIndex(column);
if (index != -1 && !cursor.isNull(index)) {
values.put(column, cursor.getDouble(index));
... | public class class_name {
public static void cursorDoubleToContentValuesIfPresent(Cursor cursor, ContentValues values,
String column) {
final int index = cursor.getColumnIndex(column);
if (index != -1 && !cursor.isNull(index)) {
values.put(column, cursor.getDouble(index)); // de... |
public class class_name {
public static NaryTreebank readTreesInPtbFormat(Reader reader) throws IOException {
NaryTreebank trees = new NaryTreebank();
while (true) {
NaryTree tree = NaryTree.readTreeInPtbFormat(reader);
if (tree != null) {
tree.intern();
... | public class class_name {
public static NaryTreebank readTreesInPtbFormat(Reader reader) throws IOException {
NaryTreebank trees = new NaryTreebank();
while (true) {
NaryTree tree = NaryTree.readTreeInPtbFormat(reader);
if (tree != null) {
tree.intern(); // depen... |
public class class_name {
public void assertSubscriptions() {
for (String channel : subscribers.keySet()) {
try {
subscribers.put(channel, null);
subscribe(channel);
} catch (Throwable e) {
break;
}
}
} } | public class class_name {
public void assertSubscriptions() {
for (String channel : subscribers.keySet()) {
try {
subscribers.put(channel, null); // depends on control dependency: [try], data = [none]
subscribe(channel); // depends on control dependency: [try], data ... |
public class class_name {
public static Map<String, State> getDatasetSpecificProps(Iterable<String> datasets, State state) {
if (!Strings.isNullOrEmpty(state.getProp(DATASET_SPECIFIC_PROPS))
|| !Strings.isNullOrEmpty(state.getProp(KAFKA_TOPIC_SPECIFIC_STATE))) {
Map<String, State> datasetSpecificConf... | public class class_name {
public static Map<String, State> getDatasetSpecificProps(Iterable<String> datasets, State state) {
if (!Strings.isNullOrEmpty(state.getProp(DATASET_SPECIFIC_PROPS))
|| !Strings.isNullOrEmpty(state.getProp(KAFKA_TOPIC_SPECIFIC_STATE))) {
Map<String, State> datasetSpecificConf... |
public class class_name {
public static synchronized void addDefaultResource(String name) {
if(!defaultResources.contains(name)) {
defaultResources.add(name);
for(Configuration conf : REGISTRY.keySet()) {
if(conf.loadDefaults) {
conf.reloadConfiguration();
}
}
}
} } | public class class_name {
public static synchronized void addDefaultResource(String name) {
if(!defaultResources.contains(name)) {
defaultResources.add(name); // depends on control dependency: [if], data = [none]
for(Configuration conf : REGISTRY.keySet()) {
if(conf.loadDefaults) {
conf.reloadConfigur... |
public class class_name {
@Sensitive
public Map<String, Object> obtainAccessToken(SocialLoginConfig config, String requestToken, String verifierOrPinValue) {
String endpointUrl = config.getTokenEndpoint();
try {
SocialUtil.validateEndpointWithQuery(endpointUrl);
} catch (Social... | public class class_name {
@Sensitive
public Map<String, Object> obtainAccessToken(SocialLoginConfig config, String requestToken, String verifierOrPinValue) {
String endpointUrl = config.getTokenEndpoint();
try {
SocialUtil.validateEndpointWithQuery(endpointUrl); // depends on control d... |
public class class_name {
protected void dispatchOnRangeSelected(@NonNull final List<CalendarDay> days) {
if (rangeListener != null) {
rangeListener.onRangeSelected(MaterialCalendarView.this, days);
}
} } | public class class_name {
protected void dispatchOnRangeSelected(@NonNull final List<CalendarDay> days) {
if (rangeListener != null) {
rangeListener.onRangeSelected(MaterialCalendarView.this, days); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public int compare(Object objA, Object objB)
{
if (!(objA instanceof DefBase) || !(objB instanceof DefBase))
{
return 0;
}
else
{
return ((DefBase)objA).getName().compareTo(((DefBase)objB).getName());
}
... | public class class_name {
public int compare(Object objA, Object objB)
{
if (!(objA instanceof DefBase) || !(objB instanceof DefBase))
{
return 0;
// depends on control dependency: [if], data = [none]
}
else
{
return ((DefBase)objA).getName().... |
public class class_name {
public void propertiesToControls()
{
m_comboSource.setSelectedItem(m_properties.getProperty(SOURCE_PARAM));
if (m_comboSource.getSelectedIndex() == -1)
{
m_comboSource.setSelectedIndex(0);
m_properties.setProperty(SOURCE_PARAM, m_comboSource.getSelectedItem().toString());
}
m... | public class class_name {
public void propertiesToControls()
{
m_comboSource.setSelectedItem(m_properties.getProperty(SOURCE_PARAM));
if (m_comboSource.getSelectedIndex() == -1)
{
m_comboSource.setSelectedIndex(0); // depends on control dependency: [if], data = [none]
m_properties.setProperty(SOURCE_PARAM... |
public class class_name {
public ProxySelector proxySelector() {
DefaultProxySelector dps = new DefaultProxySelector();
for (Proxy proxy : settings.getProxies()) {
dps.add(MavenConverter.asProxy(proxy), proxy.getNonProxyHosts());
}
return dps;
} } | public class class_name {
public ProxySelector proxySelector() {
DefaultProxySelector dps = new DefaultProxySelector();
for (Proxy proxy : settings.getProxies()) {
dps.add(MavenConverter.asProxy(proxy), proxy.getNonProxyHosts()); // depends on control dependency: [for], data = [proxy]
... |
public class class_name {
public IpcLogEntry withHttpStatus(int httpStatus) {
if (httpStatus >= 100 && httpStatus < 600) {
this.httpStatus = httpStatus;
if (status == null) {
status = IpcStatus.forHttpStatus(httpStatus);
}
if (result == null) {
result = status.result();
... | public class class_name {
public IpcLogEntry withHttpStatus(int httpStatus) {
if (httpStatus >= 100 && httpStatus < 600) {
this.httpStatus = httpStatus; // depends on control dependency: [if], data = [none]
if (status == null) {
status = IpcStatus.forHttpStatus(httpStatus); // depends on contro... |
public class class_name {
public JobScheduleEnableOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public JobScheduleEnableOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if... |
public class class_name {
public void assertIsNotInstanceOfAny(Description description, Object actual, Class<?>[] types) {
checkNotNullOrEmpty(types);
if (isInstanceOfAny(actual, types)) {
String format = "expecting <%s> not to be an instance of any of:<%s>";
throw failures.failure(description,... | public class class_name {
public void assertIsNotInstanceOfAny(Description description, Object actual, Class<?>[] types) {
checkNotNullOrEmpty(types);
if (isInstanceOfAny(actual, types)) {
String format = "expecting <%s> not to be an instance of any of:<%s>";
// depends on control dependency: [if], d... |
public class class_name {
public final List<Metric> poll(MetricFilter filter, boolean reset) {
Map<String, Future<List<Metric>>> futures = new HashMap<>();
for (Map.Entry<String, MetricPoller> e : pollers.entrySet()) {
PollCallable task = new PollCallable(e.getValue(), filter, reset);
futures.put(e... | public class class_name {
public final List<Metric> poll(MetricFilter filter, boolean reset) {
Map<String, Future<List<Metric>>> futures = new HashMap<>();
for (Map.Entry<String, MetricPoller> e : pollers.entrySet()) {
PollCallable task = new PollCallable(e.getValue(), filter, reset);
futures.put(e... |
public class class_name {
private String footprint(Test test) {
StringBuilder sb = new StringBuilder();
sb
.append(test.getCategory())
.append(test.getName())
.append(test.getFlags());
for (String tag : test.getTags()) {
sb.append(tag);
}
for (String ticket : test.getTickets()) {
sb.a... | public class class_name {
private String footprint(Test test) {
StringBuilder sb = new StringBuilder();
sb
.append(test.getCategory())
.append(test.getName())
.append(test.getFlags());
for (String tag : test.getTags()) {
sb.append(tag); // depends on control dependency: [for], data = [tag]
}
... |
public class class_name {
@Override
public void remove(final TreeNode child) {
if (children != null) {
children.remove(child);
if (child instanceof AbstractTreeNode) {
((AbstractTreeNode) child).parent = null;
}
}
} } | public class class_name {
@Override
public void remove(final TreeNode child) {
if (children != null) {
children.remove(child); // depends on control dependency: [if], data = [none]
if (child instanceof AbstractTreeNode) {
((AbstractTreeNode) child).parent = null; // depends on control dependency: [if], d... |
public class class_name {
public static void main(String[] args)
{
Map<String,Object> properties = null;
if (args != null)
{
properties = new Hashtable<String,Object>();
Utility.parseArgs(properties, args);
}
Application app = new MainApplication(null... | public class class_name {
public static void main(String[] args)
{
Map<String,Object> properties = null;
if (args != null)
{
properties = new Hashtable<String,Object>(); // depends on control dependency: [if], data = [none]
Utility.parseArgs(properties, args); // dep... |
public class class_name {
@Override public void store(Value v) {
assert !v.isPersisted();
new File(_dir, getIceDirectory(v._key)).mkdirs();
// Nuke any prior file.
FileOutputStream s = null;
try {
s = new FileOutputStream(getFile(v));
} catch( FileNotFoundException e ) {
String info... | public class class_name {
@Override public void store(Value v) {
assert !v.isPersisted();
new File(_dir, getIceDirectory(v._key)).mkdirs();
// Nuke any prior file.
FileOutputStream s = null;
try {
s = new FileOutputStream(getFile(v)); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private static List<ILexLocation> removeDuplicates(List<ILexLocation> locations)
{
// Map merging function
BinaryOperator<Vector<ILexLocation>> merge = (old, latest)-> {
for (ILexLocation location : latest)
{
if (location.getHits() > 0)
{
// Remove obje... | public class class_name {
private static List<ILexLocation> removeDuplicates(List<ILexLocation> locations)
{
// Map merging function
BinaryOperator<Vector<ILexLocation>> merge = (old, latest)-> {
for (ILexLocation location : latest)
{
if (location.getHits() > 0)
{
// Remove obje... |
public class class_name {
@Override
public DataSet<Vertex<K, VV>> createResult() {
if (this.initialVertices == null) {
throw new IllegalStateException("The input data set has not been set.");
}
// prepare the type information
TypeInformation<K> keyType = ((TupleTypeInfo<?>) initialVertices.getType()).getT... | public class class_name {
@Override
public DataSet<Vertex<K, VV>> createResult() {
if (this.initialVertices == null) {
throw new IllegalStateException("The input data set has not been set.");
}
// prepare the type information
TypeInformation<K> keyType = ((TupleTypeInfo<?>) initialVertices.getType()).getT... |
public class class_name {
public Observable<ServiceResponse<ServerConnectionPolicyInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, ServerConnectionType connectionType) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parame... | public class class_name {
public Observable<ServiceResponse<ServerConnectionPolicyInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, ServerConnectionType connectionType) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parame... |
public class class_name {
private int convertFocusDirectionToLayoutDirectionExpose(int focusDirection) {
int orientation = getOrientation();
switch (focusDirection) {
case View.FOCUS_BACKWARD:
return LayoutState.LAYOUT_START;
case View.FOCUS_FORWARD:
... | public class class_name {
private int convertFocusDirectionToLayoutDirectionExpose(int focusDirection) {
int orientation = getOrientation();
switch (focusDirection) {
case View.FOCUS_BACKWARD:
return LayoutState.LAYOUT_START;
case View.FOCUS_FORWARD:
... |
public class class_name {
public static <T> Iterator<T> each(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure) {
while (self.hasNext()) {
Object arg = self.next();
closure.call(arg);
}
return self;
} } | public class class_name {
public static <T> Iterator<T> each(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure) {
while (self.hasNext()) {
Object arg = self.next();
closure.call(arg); // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
public static final void main(String [] args) {
if (args.length != 2) {
printUsage();
return;
}
String cmd = args[0];
String input = args[1];
if ("encrypt".equals(cmd)) { //$NON-NLS-1$
System.out.println(AesEncrypter.... | public class class_name {
public static final void main(String [] args) {
if (args.length != 2) {
printUsage(); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
String cmd = args[0];
String inpu... |
public class class_name {
public EventImpl publishEvent(Event event, boolean async) {
EventImpl eventImpl = (EventImpl) event;
eventImpl.setReadOnly(true);
EventImpl currentEvent = (EventImpl) CurrentEvent.get();
if (null != currentEvent) {
eventImpl.setParent(currentEvent);... | public class class_name {
public EventImpl publishEvent(Event event, boolean async) {
EventImpl eventImpl = (EventImpl) event;
eventImpl.setReadOnly(true);
EventImpl currentEvent = (EventImpl) CurrentEvent.get();
if (null != currentEvent) {
eventImpl.setParent(currentEvent);... |
public class class_name {
public void resetLabels() {
AbstractInsnNode insn = first;
while (insn != null) {
if (insn instanceof LabelNode) {
((LabelNode) insn).resetLabel();
}
insn = insn.next;
}
} } | public class class_name {
public void resetLabels() {
AbstractInsnNode insn = first;
while (insn != null) {
if (insn instanceof LabelNode) {
((LabelNode) insn).resetLabel(); // depends on control dependency: [if], data = [none]
}
insn = insn.next; // ... |
public class class_name {
@SuppressWarnings( "unchecked" )
@Override
public ConcurrentMap<String, Object> deserializeAttributes(final byte[] data ) {
final Kryo kryo = _kryoPool.borrow();
Input in = null;
try {
in = kryo.getStreamFactory().getInput(data);
return ... | public class class_name {
@SuppressWarnings( "unchecked" )
@Override
public ConcurrentMap<String, Object> deserializeAttributes(final byte[] data ) {
final Kryo kryo = _kryoPool.borrow();
Input in = null;
try {
in = kryo.getStreamFactory().getInput(data); // depends on contr... |
public class class_name {
public String toECharts() {
TriFunction<Integer, Integer, List<Stopwatch>, String> formatLevel = (
totalDepth, depth, items) -> {
float factor = 100.0f / (totalDepth + 1);
float showFactor = 1 + (totalDepth - depth) / (float) depth;
... | public class class_name {
public String toECharts() {
TriFunction<Integer, Integer, List<Stopwatch>, String> formatLevel = (
totalDepth, depth, items) -> {
float factor = 100.0f / (totalDepth + 1);
float showFactor = 1 + (totalDepth - depth) / (float) depth;
... |
public class class_name {
public void free(Connection connection) {
try {
if (!connection.isClosed()){
// ensure connections returned to pool as read-only
setConnectionReadOnly(connection, true);
connection.close();
} else {
... | public class class_name {
public void free(Connection connection) {
try {
if (!connection.isClosed()){
// ensure connections returned to pool as read-only
setConnectionReadOnly(connection, true); // depends on control dependency: [if], data = [none]
c... |
public class class_name {
private char checkKey(Object key) {
if (key == null) {
throw new NullPointerException("key cannot be null");
} else if (!(key instanceof Character)) {
throw new IllegalArgumentException("key must be an Character");
}
else {
return ((Character)key).charValue();
}
} } | public class class_name {
private char checkKey(Object key) {
if (key == null) {
throw new NullPointerException("key cannot be null");
} else if (!(key instanceof Character)) {
throw new IllegalArgumentException("key must be an Character");
}
else {
return ((Character)key).charValue(); // depends on... |
public class class_name {
public void marshall(Connector connector, ProtocolMarshaller protocolMarshaller) {
if (connector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(connector.getConnectorId(... | public class class_name {
public void marshall(Connector connector, ProtocolMarshaller protocolMarshaller) {
if (connector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(connector.getConnectorId(... |
public class class_name {
private void initialize(
Collection<String> toRemove,
Collection<String> toAdd,
String siteRoot,
boolean removeAllNonExplicitlyAdded) {
m_removeAllNonExplicitlyAdded = removeAllNonExplicitlyAdded;
for (String removeKey : toRemove) {
... | public class class_name {
private void initialize(
Collection<String> toRemove,
Collection<String> toAdd,
String siteRoot,
boolean removeAllNonExplicitlyAdded) {
m_removeAllNonExplicitlyAdded = removeAllNonExplicitlyAdded;
for (String removeKey : toRemove) {
... |
public class class_name {
public synchronized String getSignature() {
if (signature == null) {
CachedClass [] parameters = getParameterTypes();
final String name = getName();
StringBuilder buf = new StringBuilder(name.length()+parameters.length*10);
buf.append(ge... | public class class_name {
public synchronized String getSignature() {
if (signature == null) {
CachedClass [] parameters = getParameterTypes();
final String name = getName();
StringBuilder buf = new StringBuilder(name.length()+parameters.length*10);
buf.append(ge... |
public class class_name {
private <T> String serializeToCsv(T obj) {
if(obj == null) {
return "";
}
for (Method method: obj.getClass().getMethods()) {
if ("java.util.List".equals(method.getReturnType().getName())) {
try {
@SuppressWarnings("rawtypes")
java.util.List ite... | public class class_name {
private <T> String serializeToCsv(T obj) {
if(obj == null) {
return ""; // depends on control dependency: [if], data = [none]
}
for (Method method: obj.getClass().getMethods()) {
if ("java.util.List".equals(method.getReturnType().getName())) {
try {
... |
public class class_name {
public static void capture(Logger logger, Object callingObject, String methodName, FFDCProbeId probeId, Throwable throwable, Object[] data) {
long ffdcTimestamp = System.currentTimeMillis();
final String className = logger.getName();
final StringBuilder sb = new StringBuilder();
... | public class class_name {
public static void capture(Logger logger, Object callingObject, String methodName, FFDCProbeId probeId, Throwable throwable, Object[] data) {
long ffdcTimestamp = System.currentTimeMillis();
final String className = logger.getName();
final StringBuilder sb = new StringBuilder();
... |
public class class_name {
Token parseRegex() throws ParseException {
Token tok = this.parseTerm();
Token parent = null;
while (this.read() == T_OR) {
this.next(); // '|'
if (parent == null) {
parent = Token.createUnion();
parent.addChild(tok);
tok = parent;
}
tok.addChild(this.p... | public class class_name {
Token parseRegex() throws ParseException {
Token tok = this.parseTerm();
Token parent = null;
while (this.read() == T_OR) {
this.next(); // '|'
if (parent == null) {
parent = Token.createUnion();
// depends on control dependency: [if], data = [none]
parent.addChild(... |
public class class_name {
public void setBoardEnabled(boolean enable) {
if (mEnabled != enable) {
if (DBG) Log.v(TAG, "enable - " + enable);
mEnabled = enable;
}
} } | public class class_name {
public void setBoardEnabled(boolean enable) {
if (mEnabled != enable) {
if (DBG) Log.v(TAG, "enable - " + enable);
mEnabled = enable; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
RBBINode cloneTree() {
RBBINode n;
if (fType == RBBINode.varRef) {
// If the current node is a variable reference, skip over it
// and clone the definition of the variable instead.
n = fLeftChild.cloneTree();
} else if (fType == R... | public class class_name {
RBBINode cloneTree() {
RBBINode n;
if (fType == RBBINode.varRef) {
// If the current node is a variable reference, skip over it
// and clone the definition of the variable instead.
n = fLeftChild.cloneTree(); // depends on control depende... |
public class class_name {
public JtxTransaction maybeRequestTransaction(final JtxTransactionMode txMode, final Object scope) {
if (txMode == null) {
return null;
}
JtxTransaction currentTx = txManager.getTransaction();
JtxTransaction requestedTx = txManager.requestTransaction(txMode, scope);
if (currentTx... | public class class_name {
public JtxTransaction maybeRequestTransaction(final JtxTransactionMode txMode, final Object scope) {
if (txMode == null) {
return null; // depends on control dependency: [if], data = [none]
}
JtxTransaction currentTx = txManager.getTransaction();
JtxTransaction requestedTx = txMana... |
public class class_name {
public void marshall(RelationalDatabaseBlueprint relationalDatabaseBlueprint, ProtocolMarshaller protocolMarshaller) {
if (relationalDatabaseBlueprint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(RelationalDatabaseBlueprint relationalDatabaseBlueprint, ProtocolMarshaller protocolMarshaller) {
if (relationalDatabaseBlueprint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void extractValidationComponents(CharSequence content, File inputFile,
Procedure1<Map<Tag, List<MutableTriple<File, Integer, String>>>> observer) {
//
// STEP 1: Extract the raw text
//
final Map<Tag, List<MutableTriple<File, Integer, String>>> components = new TreeMap<... | public class class_name {
public void extractValidationComponents(CharSequence content, File inputFile,
Procedure1<Map<Tag, List<MutableTriple<File, Integer, String>>>> observer) {
//
// STEP 1: Extract the raw text
//
final Map<Tag, List<MutableTriple<File, Integer, String>>> components = new TreeMap<... |
public class class_name {
public final boolean isPositiveUp(GridRecord gr) {
int type = gr.getLevelType1();
if ((type == 1) || (type == 5)) {
return false;
}
return true;
} } | public class class_name {
public final boolean isPositiveUp(GridRecord gr) {
int type = gr.getLevelType1();
if ((type == 1) || (type == 5)) {
return false; // depends on control dependency: [if], data = [none]
}
return true;
} } |
public class class_name {
protected boolean checkIfModelMatches ( String groupId, String artifactId, String version, Model model )
{
// try these first.
String modelGroup = model.getGroupId();
String modelArtifactId = model.getArtifactId();
String modelVersion = model.getVersion();
... | public class class_name {
protected boolean checkIfModelMatches ( String groupId, String artifactId, String version, Model model )
{
// try these first.
String modelGroup = model.getGroupId();
String modelArtifactId = model.getArtifactId();
String modelVersion = model.getVersion();
... |
public class class_name {
public final QueryProgram grandQuery() throws RecognitionException {
QueryProgram program = null;
Token j=null;
Token a=null;
QueryMeta s1 =null;
QueryMeta s2 =null;
program = null;
try {
// druidG.g:136:2: ( (s1= queryStmnt ) ( WS j= ( JOIN | LEFT_JOIN | RIGHT_JOIN ) ( ... | public class class_name {
public final QueryProgram grandQuery() throws RecognitionException {
QueryProgram program = null;
Token j=null;
Token a=null;
QueryMeta s1 =null;
QueryMeta s2 =null;
program = null;
try {
// druidG.g:136:2: ( (s1= queryStmnt ) ( WS j= ( JOIN | LEFT_JOIN | RIGHT_JOIN ) ( ... |
public class class_name {
public static DependsOn findAllowedByName(final List<DependsOn> allowed, final String pkgName) {
if (allowed == null) {
return null;
}
Utils4J.checkNotNull("pkgName", pkgName);
for (int i = 0; i < allowed.size(); i++) {
final Depen... | public class class_name {
public static DependsOn findAllowedByName(final List<DependsOn> allowed, final String pkgName) {
if (allowed == null) {
return null;
// depends on control dependency: [if], data = [none]
}
Utils4J.checkNotNull("pkgName", pkgName);
for (int i = ... |
public class class_name {
private void run() {
onStart();
while (!isStopping && crawlFrontier.hasNextCandidate()) {
CrawlCandidate currentCandidate = crawlFrontier.getNextCandidate();
String candidateUrl = currentCandidate.getRequestUrl().toString();
HttpClien... | public class class_name {
private void run() {
onStart();
while (!isStopping && crawlFrontier.hasNextCandidate()) {
CrawlCandidate currentCandidate = crawlFrontier.getNextCandidate();
String candidateUrl = currentCandidate.getRequestUrl().toString();
HttpClien... |
public class class_name {
@Deprecated
public static void markForDeletion(UIComponent component)
{
// flag this component as deleted
component.getAttributes().put(MARK_DELETED, Boolean.TRUE);
Iterator<UIComponent> iter = component.getFacetsAndChildren();
while (iter.hasNext())
... | public class class_name {
@Deprecated
public static void markForDeletion(UIComponent component)
{
// flag this component as deleted
component.getAttributes().put(MARK_DELETED, Boolean.TRUE);
Iterator<UIComponent> iter = component.getFacetsAndChildren();
while (iter.hasNext())
... |
public class class_name {
@Override
public boolean visit(VariableDeclarationStatement node)
{
for (int i = 0; i < node.fragments().size(); ++i)
{
String nodeType = node.getType().toString();
VariableDeclarationFragment frag = (VariableDeclarationFragment) node.fragments(... | public class class_name {
@Override
public boolean visit(VariableDeclarationStatement node)
{
for (int i = 0; i < node.fragments().size(); ++i)
{
String nodeType = node.getType().toString();
VariableDeclarationFragment frag = (VariableDeclarationFragment) node.fragments(... |
public class class_name {
public void parseServiceList(String message) {
// We expect the service list to be in this format:
// *245 service-list window-manager,core,ecmascript-service
List<String> services;
try {
services = ImmutableList.copyOf(Splitter.on(',').split(message.split(" ")[2]));
... | public class class_name {
public void parseServiceList(String message) {
// We expect the service list to be in this format:
// *245 service-list window-manager,core,ecmascript-service
List<String> services;
try {
services = ImmutableList.copyOf(Splitter.on(',').split(message.split(" ")[2])); ... |
public class class_name {
public static String getCanonicalPath(String path) {
if (Strings.isBlank(path))
return path;
String[] pa = Strings.splitIgnoreBlank(path, "[\\\\/]");
LinkedList<String> paths = new LinkedList<String>();
for (String s : pa) {
if (".... | public class class_name {
public static String getCanonicalPath(String path) {
if (Strings.isBlank(path))
return path;
String[] pa = Strings.splitIgnoreBlank(path, "[\\\\/]");
LinkedList<String> paths = new LinkedList<String>();
for (String s : pa) {
if (".... |
public class class_name {
public static void setDefaultTooltipManager(final TooltipManager tooltipManager) {
try {
TooltipManager.getInstance();
Reflection.setFieldValue(ClassReflection.getDeclaredField(TooltipManager.class, "instance"), null,
tooltipManager);
... | public class class_name {
public static void setDefaultTooltipManager(final TooltipManager tooltipManager) {
try {
TooltipManager.getInstance(); // depends on control dependency: [try], data = [none]
Reflection.setFieldValue(ClassReflection.getDeclaredField(TooltipManager.class, "instan... |
public class class_name {
static void switchDollarSignPropsToBrackets(Node def, final AbstractCompiler compiler) {
checkState(def.isObjectLit() || def.isClassMembers());
for (Node keyNode : def.children()) {
Node value = keyNode.getFirstChild();
if (value != null && value.isFunction()) {
No... | public class class_name {
static void switchDollarSignPropsToBrackets(Node def, final AbstractCompiler compiler) {
checkState(def.isObjectLit() || def.isClassMembers());
for (Node keyNode : def.children()) {
Node value = keyNode.getFirstChild();
if (value != null && value.isFunction()) {
No... |
public class class_name {
public void addEmbeddedColumnInfo(EmbeddedColumnInfo embdColumnInfo)
{
if (this.embeddedColumnMetadatas == null)
{
this.embeddedColumnMetadatas = new ArrayList<EmbeddedColumnInfo>();
}
if (!embeddedColumnMetadatas.contains(embdColumnInfo))
... | public class class_name {
public void addEmbeddedColumnInfo(EmbeddedColumnInfo embdColumnInfo)
{
if (this.embeddedColumnMetadatas == null)
{
this.embeddedColumnMetadatas = new ArrayList<EmbeddedColumnInfo>(); // depends on control dependency: [if], data = [none]
}
if (!e... |
public class class_name {
public void add(Object msg, ChannelPromise promise) {
assert ctx.executor().inEventLoop();
if (msg == null) {
throw new NullPointerException("msg");
}
if (promise == null) {
throw new NullPointerException("promise");
}
//... | public class class_name {
public void add(Object msg, ChannelPromise promise) {
assert ctx.executor().inEventLoop();
if (msg == null) {
throw new NullPointerException("msg");
}
if (promise == null) {
throw new NullPointerException("promise");
}
//... |
public class class_name {
public Observable<ServiceResponse<CommandPropertiesInner>> commandWithServiceResponseAsync(String groupName, String serviceName, String projectName, String taskName, CommandPropertiesInner parameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentE... | public class class_name {
public Observable<ServiceResponse<CommandPropertiesInner>> commandWithServiceResponseAsync(String groupName, String serviceName, String projectName, String taskName, CommandPropertiesInner parameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentE... |
public class class_name {
public List<String> localText() {
List<String> answer = new ArrayList<String>();
for (Iterator iter = InvokerHelper.asIterator(value); iter.hasNext(); ) {
Object child = iter.next();
if (!(child instanceof Node)) {
answer.add(child.toStr... | public class class_name {
public List<String> localText() {
List<String> answer = new ArrayList<String>();
for (Iterator iter = InvokerHelper.asIterator(value); iter.hasNext(); ) {
Object child = iter.next();
if (!(child instanceof Node)) {
answer.add(child.toStr... |
public class class_name {
public Maybe<ApplicationInfo> getApplicationInfo(String clientId) {
return db.findClientCredentials(clientId).map(creds -> {
ApplicationInfo appInfo = null;
if (creds != null) {
appInfo = ApplicationInfo.loadFromClientCredentials(creds);
... | public class class_name {
public Maybe<ApplicationInfo> getApplicationInfo(String clientId) {
return db.findClientCredentials(clientId).map(creds -> {
ApplicationInfo appInfo = null;
if (creds != null) {
appInfo = ApplicationInfo.loadFromClientCredentials(creds); // depe... |
public class class_name {
@PUT
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{alertId}/notifications/{notificationId}")
@Description("Updates a notification having the given notification ID if associated with the given alert ID.")
public NotificationDto updateNotificationById... | public class class_name {
@PUT
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{alertId}/notifications/{notificationId}")
@Description("Updates a notification having the given notification ID if associated with the given alert ID.")
public NotificationDto updateNotificationById... |
public class class_name {
private void startPartitions(List<Integer> partitionsToExecute,
List<Integer> startedPartitions,
List<Integer> finishedPartitions,
PartitionPlanDescriptor currentPlan) {
while (startedP... | public class class_name {
private void startPartitions(List<Integer> partitionsToExecute,
List<Integer> startedPartitions,
List<Integer> finishedPartitions,
PartitionPlanDescriptor currentPlan) {
while (startedP... |
public class class_name {
@Override
protected void configure() {
try {
InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());
File appRoot = new File(System.getProperty(CadmiumListener.BASE_PATH_ENV), "maven");
FileUtils.forceMkdir(appRoot);
String remoteMavenRepo = System.get... | public class class_name {
@Override
protected void configure() {
try {
InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory()); // depends on control dependency: [try], data = [none]
File appRoot = new File(System.getProperty(CadmiumListener.BASE_PATH_ENV), "maven");
FileUtils.forceMk... |
public class class_name {
@Override
public void destroy(
SourcePipe originPipe,
List<PipeRunner> pipeRunners,
BadRecordsHandler badRecordsHandler,
StatsAggregationHandler statsAggregationHandler
) throws StageException, PipelineRuntimeException {
// We're no longer running
running = false;
... | public class class_name {
@Override
public void destroy(
SourcePipe originPipe,
List<PipeRunner> pipeRunners,
BadRecordsHandler badRecordsHandler,
StatsAggregationHandler statsAggregationHandler
) throws StageException, PipelineRuntimeException {
// We're no longer running
running = false;
... |
public class class_name {
public java.util.List<String> getTagKeyList() {
if (tagKeyList == null) {
tagKeyList = new com.amazonaws.internal.SdkInternalList<String>();
}
return tagKeyList;
} } | public class class_name {
public java.util.List<String> getTagKeyList() {
if (tagKeyList == null) {
tagKeyList = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return tagKeyList;
} } |
public class class_name {
public void setColor(Color newColor) {
if (newColor != null) {
color.set(newColor);
} else {
color.set(DefaultColor);
}
colorF = color.toFloatBits();
if (staticLight) dirty = true;
} } | public class class_name {
public void setColor(Color newColor) {
if (newColor != null) {
color.set(newColor); // depends on control dependency: [if], data = [(newColor]
} else {
color.set(DefaultColor); // depends on control dependency: [if], data = [none]
}
colorF = color.toFloatBits();
if (staticLigh... |
public class class_name {
private void collectVertices(final AbstractJobVertex jv, final List<AbstractJobVertex> collector) {
if (jv == null) {
final Iterator<AbstractJobInputVertex> iter = getInputVertices();
while (iter.hasNext()) {
collectVertices(iter.next(), collector);
}
} else {
if (!colle... | public class class_name {
private void collectVertices(final AbstractJobVertex jv, final List<AbstractJobVertex> collector) {
if (jv == null) {
final Iterator<AbstractJobInputVertex> iter = getInputVertices();
while (iter.hasNext()) {
collectVertices(iter.next(), collector); // depends on control dependen... |
public class class_name {
public JmxMessage parameter(Object arg, Class<?> argType) {
if (mbeanInvocation == null) {
throw new CitrusRuntimeException("Invalid access to operation parameter for JMX message");
}
if (mbeanInvocation.getOperation() == null) {
throw new Citr... | public class class_name {
public JmxMessage parameter(Object arg, Class<?> argType) {
if (mbeanInvocation == null) {
throw new CitrusRuntimeException("Invalid access to operation parameter for JMX message");
}
if (mbeanInvocation.getOperation() == null) {
throw new Citr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.