code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static DMatrixRMaj transpose(DMatrixRMaj A, DMatrixRMaj A_tran)
{
if( A_tran == null ) {
A_tran = new DMatrixRMaj(A.numCols,A.numRows);
} else {
if( A.numRows != A_tran.numCols || A.numCols != A_tran.numRows ) {
throw new Matr... | public class class_name {
public static DMatrixRMaj transpose(DMatrixRMaj A, DMatrixRMaj A_tran)
{
if( A_tran == null ) {
A_tran = new DMatrixRMaj(A.numCols,A.numRows); // depends on control dependency: [if], data = [none]
} else {
if( A.numRows != A_tran.numCols || A.numCol... |
public class class_name {
protected JSONObject getDetectorOptions(Configuration pConfig, LogHandler pLogHandler) {
String options = pConfig.get(ConfigKey.DETECTOR_OPTIONS);
try {
if (options != null) {
JSONObject opts = (JSONObject) new JSONParser().parse(options);
... | public class class_name {
protected JSONObject getDetectorOptions(Configuration pConfig, LogHandler pLogHandler) {
String options = pConfig.get(ConfigKey.DETECTOR_OPTIONS);
try {
if (options != null) {
JSONObject opts = (JSONObject) new JSONParser().parse(options);
... |
public class class_name {
public boolean onDelete()
{
Record record = this.getMainRecord();
if (record == null)
return false;
if (record.getEditMode() == Constants.EDIT_NONE)
return true;
if (record.getEditMode() == Constants.EDIT_ADD)
{ // If they... | public class class_name {
public boolean onDelete()
{
Record record = this.getMainRecord();
if (record == null)
return false;
if (record.getEditMode() == Constants.EDIT_NONE)
return true;
if (record.getEditMode() == Constants.EDIT_ADD)
{ // If they... |
public class class_name {
public Proxy setType( String type )
{
if ( this.type.equals( type ) || ( type == null && this.type.length() <= 0 ) )
{
return this;
}
return new Proxy( type, host, port, auth );
} } | public class class_name {
public Proxy setType( String type )
{
if ( this.type.equals( type ) || ( type == null && this.type.length() <= 0 ) )
{
return this; // depends on control dependency: [if], data = [none]
}
return new Proxy( type, host, port, auth );
} } |
public class class_name {
@Operation(name = JpaConstants.OPERATION_PROCESS_MESSAGE, idempotent = false)
public IBaseBundle processMessage(
HttpServletRequest theServletRequest,
RequestDetails theRequestDetails,
@OperationParam(name = "content", min = 1, max = 1)
@Description(formalDefinition = "The message t... | public class class_name {
@Operation(name = JpaConstants.OPERATION_PROCESS_MESSAGE, idempotent = false)
public IBaseBundle processMessage(
HttpServletRequest theServletRequest,
RequestDetails theRequestDetails,
@OperationParam(name = "content", min = 1, max = 1)
@Description(formalDefinition = "The message t... |
public class class_name {
public static void disableTlsServerCertificateCheck(Client client) {
if (!(client.getConduit() instanceof HTTPConduit)) {
log.warn("Conduit not of type HTTPConduit (" + client.getConduit().getClass().getName() + ") , skip disabling server certification validation.");
return;
}
... | public class class_name {
public static void disableTlsServerCertificateCheck(Client client) {
if (!(client.getConduit() instanceof HTTPConduit)) {
log.warn("Conduit not of type HTTPConduit (" + client.getConduit().getClass().getName() + ") , skip disabling server certification validation."); // depends on con... |
public class class_name {
public static final double[] replaceValues(double[] v, double oldValue, double newValue) {
double[] ret = new double[v.length];
for (int i = 0; i < v.length; i++) {
double vi = v[i];
if (Double.compare(oldValue, vi) != 0) {
// no substitution
ret[i] = vi;
} else {
... | public class class_name {
public static final double[] replaceValues(double[] v, double oldValue, double newValue) {
double[] ret = new double[v.length];
for (int i = 0; i < v.length; i++) {
double vi = v[i];
if (Double.compare(oldValue, vi) != 0) {
// no substitution
ret[i] = vi;
// depends o... |
public class class_name {
public static boolean isValidId(String id) {
if(id == null) return false;
int len = id.length();
if(len == 0) return false;
// First character must be [A-Za-z]
char ch = id.charAt(0);
if(
(ch<'A' || ch>'Z')
&& (ch<'a' || ch>'z')
) {
return false;
}
// Remaining char... | public class class_name {
public static boolean isValidId(String id) {
if(id == null) return false;
int len = id.length();
if(len == 0) return false;
// First character must be [A-Za-z]
char ch = id.charAt(0);
if(
(ch<'A' || ch>'Z')
&& (ch<'a' || ch>'z')
) {
return false; // depends on control d... |
public class class_name {
public CompoundTag add(Tag ch) {
subElements.put(ch.getName(), ch);
long sz = getSize() + ch.totalSize();
byte length = 1;
long v = (sz + 1) >> BIT_IN_BYTE;
while (v > 0) {
length++;
v = v >> BIT_IN_BYTE;
}
size =... | public class class_name {
public CompoundTag add(Tag ch) {
subElements.put(ch.getName(), ch);
long sz = getSize() + ch.totalSize();
byte length = 1;
long v = (sz + 1) >> BIT_IN_BYTE;
while (v > 0) {
length++; // depends on control dependency: [while], data = [none]
... |
public class class_name {
public void setMax(int max) {
if (!(max <= 0)) { // Check to make sure it's greater than zero
if (max <= mProgress) {
mProgress = 0; // If the new max is less than current progress, set progress to zero
if (mOnCircularSeekBarChangeListener !... | public class class_name {
public void setMax(int max) {
if (!(max <= 0)) { // Check to make sure it's greater than zero
if (max <= mProgress) {
mProgress = 0; // If the new max is less than current progress, set progress to zero // depends on control dependency: [if], data = [none]
... |
public class class_name {
private boolean optimizeSort(OClass iSchemaClass) {
OIndexCursor cursor = getOptimizedSortCursor(iSchemaClass);
if (cursor != null) {
fetchValuesFromIndexCursor(cursor);
return true;
}
return false;
} } | public class class_name {
private boolean optimizeSort(OClass iSchemaClass) {
OIndexCursor cursor = getOptimizedSortCursor(iSchemaClass);
if (cursor != null) {
fetchValuesFromIndexCursor(cursor);
// depends on control dependency: [if], data = [(cursor]
return true;
// depends on control depend... |
public class class_name {
void removeOutStandingDatanodes(boolean logOutStandingOnly) {
try {
removeOutstandingDatanodesInternal(outStandingHeartbeats, logOutStandingOnly);
removeOutstandingDatanodesInternal(outStandingReports, logOutStandingOnly);
} catch (Exception e) {
LOG.warn(
... | public class class_name {
void removeOutStandingDatanodes(boolean logOutStandingOnly) {
try {
removeOutstandingDatanodesInternal(outStandingHeartbeats, logOutStandingOnly); // depends on control dependency: [try], data = [none]
removeOutstandingDatanodesInternal(outStandingReports, logOutStandingOnly);... |
public class class_name {
public static final Parser<Date> instance() { // NOPMD it's thread save!
if (DateTimeLocalParser.instanceParser == null) {
synchronized (DateTimeLocalParser.class) {
if (DateTimeLocalParser.instanceParser == null) {
DateTimeLocalParser.instanceParser = new DateTime... | public class class_name {
public static final Parser<Date> instance() { // NOPMD it's thread save!
if (DateTimeLocalParser.instanceParser == null) {
synchronized (DateTimeLocalParser.class) { // depends on control dependency: [if], data = [none]
if (DateTimeLocalParser.instanceParser == null) {
... |
public class class_name {
private Vector getAllTables() {
Vector result = new Vector(20);
try {
if (cConn == null) {
return null;
}
dbmeta = cConn.getMetaData();
String[] tableTypes = { "TABLE" };
ResultSet allTables = dbme... | public class class_name {
private Vector getAllTables() {
Vector result = new Vector(20);
try {
if (cConn == null) {
return null; // depends on control dependency: [if], data = [none]
}
dbmeta = cConn.getMetaData(); // depends on control dependency... |
public class class_name {
public void update(ChannelData channelData) {
synchronized (this.udpChannelConfig) {
// can't do two updates at the same time
try {
this.udpChannelConfig.setChannelData(channelData);
} catch (ChannelException e) {
if ... | public class class_name {
public void update(ChannelData channelData) {
synchronized (this.udpChannelConfig) {
// can't do two updates at the same time
try {
this.udpChannelConfig.setChannelData(channelData); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public synchronized void write(int b) throws IOException {
eventStartWrite();
try {
sum.update(b);
buf[count++] = (byte) b;
if (bytesSentInChunk + count == buf.length) {
flushBuffer(true, shouldKeepPartialChunkData());
}
} finally {
eventEndW... | public class class_name {
public synchronized void write(int b) throws IOException {
eventStartWrite();
try {
sum.update(b);
buf[count++] = (byte) b;
if (bytesSentInChunk + count == buf.length) {
flushBuffer(true, shouldKeepPartialChunkData()); // depends on control dependency: [if],... |
public class class_name {
public static String compressChars(final String s, final char c) {
int len = s.length();
StringBuilder sb = new StringBuilder(len);
boolean wasChar = false;
for (int i = 0; i < len; i++) {
char c1 = s.charAt(i);
if (c1 == c) {
if (wasChar) {
continue;
}
wasChar ... | public class class_name {
public static String compressChars(final String s, final char c) {
int len = s.length();
StringBuilder sb = new StringBuilder(len);
boolean wasChar = false;
for (int i = 0; i < len; i++) {
char c1 = s.charAt(i);
if (c1 == c) {
if (wasChar) {
continue;
}
wasChar ... |
public class class_name {
public String getStepProperty(String nameParam)
{
if(this.getStepProperties() == null || this.getStepProperties().isEmpty())
{
return null;
}
if(nameParam == null || nameParam.trim().isEmpty())
{
return null;
}
... | public class class_name {
public String getStepProperty(String nameParam)
{
if(this.getStepProperties() == null || this.getStepProperties().isEmpty())
{
return null; // depends on control dependency: [if], data = [none]
}
if(nameParam == null || nameParam.trim().isEmpty... |
public class class_name {
public Double getColumnValueAsDouble(final int col, final double defaultValue) {
Double value = getColumnValueAsDouble(col);
if (value == null) {
value = defaultValue;
}
return value;
} } | public class class_name {
public Double getColumnValueAsDouble(final int col, final double defaultValue) {
Double value = getColumnValueAsDouble(col);
if (value == null) {
value = defaultValue;
// depends on control dependency: [if], data = [none]
}
return value;
} } |
public class class_name {
private void installShutdownHook() {
if (shutdownHook == null) {
this.shutdownHook = ShutdownHookUtil.addShutdownHook(this::dispose, getClass().getSimpleName(), LOG);
}
} } | public class class_name {
private void installShutdownHook() {
if (shutdownHook == null) {
this.shutdownHook = ShutdownHookUtil.addShutdownHook(this::dispose, getClass().getSimpleName(), LOG); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected static String getMethodSignature(String methodName, Class<?>[] parameterTypes, Class<?> returnType) {
StringBuilder buffer = new StringBuilder(methodName);
buffer.append("(");
if (parameterTypes != null) {
int index = 0;
for (Class<?> parameterType : par... | public class class_name {
protected static String getMethodSignature(String methodName, Class<?>[] parameterTypes, Class<?> returnType) {
StringBuilder buffer = new StringBuilder(methodName);
buffer.append("(");
if (parameterTypes != null) {
int index = 0;
for (Class<?> parameterType : par... |
public class class_name {
@Override
protected final void initialize(boolean reactivate) throws RemoteException, InvocationTargetException {
// ---------------------------------------------------------
// Set state to PRE_CREATE so only methods that we permitted
// to be called during depend... | public class class_name {
@Override
protected final void initialize(boolean reactivate) throws RemoteException, InvocationTargetException {
// ---------------------------------------------------------
// Set state to PRE_CREATE so only methods that we permitted
// to be called during depend... |
public class class_name {
public void setWidgetSnapClosedSize(Widget child, int snapClosedSize) {
assertIsChild(child);
Splitter splitter = getAssociatedSplitter(child);
// The splitter is null for the center element.
if (splitter != null) {
splitter.setSnapClosedSize(snapCl... | public class class_name {
public void setWidgetSnapClosedSize(Widget child, int snapClosedSize) {
assertIsChild(child);
Splitter splitter = getAssociatedSplitter(child);
// The splitter is null for the center element.
if (splitter != null) {
splitter.setSnapClosedSize(snapCl... |
public class class_name {
@Override
public Bundle getBundle(String bundleName) {
final String sourceMethod = "getBundle"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(FallbackBundleResolver.class.getName(), sourceMethod, new Object[]{bundleName})... | public class class_name {
@Override
public Bundle getBundle(String bundleName) {
final String sourceMethod = "getBundle"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(FallbackBundleResolver.class.getName(), sourceMethod, new Object[]{bundleName})... |
public class class_name {
public Embeddable<OrmDescriptor> getOrCreateEmbeddable()
{
List<Node> nodeList = model.get("embeddable");
if (nodeList != null && nodeList.size() > 0)
{
return new EmbeddableImpl<OrmDescriptor>(this, "embeddable", model, nodeList.get(0));
}
return cr... | public class class_name {
public Embeddable<OrmDescriptor> getOrCreateEmbeddable()
{
List<Node> nodeList = model.get("embeddable");
if (nodeList != null && nodeList.size() > 0)
{
return new EmbeddableImpl<OrmDescriptor>(this, "embeddable", model, nodeList.get(0)); // depends on control d... |
public class class_name {
public static java.sql.Timestamp toTimestamp(Object value) {
if (value == null) {
return null;
} else if (value instanceof java.sql.Timestamp) {
return (java.sql.Timestamp) value;
} else if (value instanceof java.util.Date) {
return ne... | public class class_name {
public static java.sql.Timestamp toTimestamp(Object value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (value instanceof java.sql.Timestamp) {
return (java.sql.Timestamp) value; // depends on contro... |
public class class_name {
@When("^I execute an elasticsearch query over index '(.*?)' and mapping '(.*?)' and column '(.*?)' with value '(.*?)' to '(.*?)'$")
public void elasticSearchQueryWithFilter(String indexName, String mappingName, String
columnName, String filterType, String value) {
try ... | public class class_name {
@When("^I execute an elasticsearch query over index '(.*?)' and mapping '(.*?)' and column '(.*?)' with value '(.*?)' to '(.*?)'$")
public void elasticSearchQueryWithFilter(String indexName, String mappingName, String
columnName, String filterType, String value) {
try ... |
public class class_name {
public static void setExtension(Element element, boolean modifier, String uri, Type value) throws FHIRException {
if (value == null) {
// deleting the extension
if (element instanceof BackboneElement)
for (Extension e : ((BackboneElement) element).getModifierExtension()) ... | public class class_name {
public static void setExtension(Element element, boolean modifier, String uri, Type value) throws FHIRException {
if (value == null) {
// deleting the extension
if (element instanceof BackboneElement)
for (Extension e : ((BackboneElement) element).getModifierExtension()) ... |
public class class_name {
public void setContainers(java.util.Collection<ModelPackageContainerDefinition> containers) {
if (containers == null) {
this.containers = null;
return;
}
this.containers = new java.util.ArrayList<ModelPackageContainerDefinition>(containers);
... | public class class_name {
public void setContainers(java.util.Collection<ModelPackageContainerDefinition> containers) {
if (containers == null) {
this.containers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected R setCollectionId(String id) {
JsonArray jsonArray = new JsonArray();
if (!TextUtils.isEmpty(id)) {
BoxCollection col = BoxCollection.createFromId(id);
jsonArray.add(col.toJsonObject());
}
mBodyMap.put(FIELD_COLLECTIONS, jsonAr... | public class class_name {
protected R setCollectionId(String id) {
JsonArray jsonArray = new JsonArray();
if (!TextUtils.isEmpty(id)) {
BoxCollection col = BoxCollection.createFromId(id);
jsonArray.add(col.toJsonObject()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean isJavaInheritance()
{
if(javaInheritance == null)
{
javaInheritance = getClassDescriptor().getSuperClassDescriptor().getClassOfObject()
.isAssignableFrom(getClassDescriptor().getClassOfObject()) ? Boolean.TRUE : Boolean.F... | public class class_name {
public boolean isJavaInheritance()
{
if(javaInheritance == null)
{
javaInheritance = getClassDescriptor().getSuperClassDescriptor().getClassOfObject()
.isAssignableFrom(getClassDescriptor().getClassOfObject()) ? Boolean.TRUE : Boolean.F... |
public class class_name {
public synchronized Table<V> setCellSelection(boolean cellSelection) {
this.cellSelection = cellSelection;
if(cellSelection && selectedColumn == -1) {
selectedColumn = 0;
}
else if(!cellSelection) {
selectedColumn = -1;
}
... | public class class_name {
public synchronized Table<V> setCellSelection(boolean cellSelection) {
this.cellSelection = cellSelection;
if(cellSelection && selectedColumn == -1) {
selectedColumn = 0; // depends on control dependency: [if], data = [none]
}
else if(!cellSelection... |
public class class_name {
public void transmit(final int msgTypeId, final DirectBuffer srcBuffer, final int srcIndex, final int length)
{
checkTypeId(msgTypeId);
checkMessageLength(length);
final AtomicBuffer buffer = this.buffer;
long currentTail = buffer.getLong(tailCounterIndex)... | public class class_name {
public void transmit(final int msgTypeId, final DirectBuffer srcBuffer, final int srcIndex, final int length)
{
checkTypeId(msgTypeId);
checkMessageLength(length);
final AtomicBuffer buffer = this.buffer;
long currentTail = buffer.getLong(tailCounterIndex)... |
public class class_name {
private void searchMatchSpace(
SIMPMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... | public class class_name {
private void searchMatchSpace(
SIMPMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... |
public class class_name {
@Override
@Pure
public double getDistance(Point2D<?, ?> point) {
double mind = Double.MAX_VALUE;
for (final Point2d p : points()) {
final double d = p.getDistance(point);
if (d < mind) {
mind = d;
}
}
return mind;
} } | public class class_name {
@Override
@Pure
public double getDistance(Point2D<?, ?> point) {
double mind = Double.MAX_VALUE;
for (final Point2d p : points()) {
final double d = p.getDistance(point);
if (d < mind) {
mind = d; // depends on control dependency: [if], data = [none]
}
}
return mind;
}... |
public class class_name {
private static boolean spanWillOverlap(Spannable spanText, URLSpan[] spanList, int start,
int end) {
if (start == end) {
// empty span, ignore
return false;
}
for (URLSpan span : spanList) {
... | public class class_name {
private static boolean spanWillOverlap(Spannable spanText, URLSpan[] spanList, int start,
int end) {
if (start == end) {
// empty span, ignore
return false; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public void setContract(Contract c) {
super.setContract(c);
for (Field f : params) {
f.setContract(c);
}
if (returns != null) {
returns.setContract(c);
}
} } | public class class_name {
@Override
public void setContract(Contract c) {
super.setContract(c);
for (Field f : params) {
f.setContract(c); // depends on control dependency: [for], data = [f]
}
if (returns != null) {
returns.setContract(c); // depends on contr... |
public class class_name {
public void marshall(KinesisFirehoseInputDescription kinesisFirehoseInputDescription, ProtocolMarshaller protocolMarshaller) {
if (kinesisFirehoseInputDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(KinesisFirehoseInputDescription kinesisFirehoseInputDescription, ProtocolMarshaller protocolMarshaller) {
if (kinesisFirehoseInputDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public static List<PostAggregator> pruneDependentPostAgg(List<PostAggregator> postAggregatorList, String postAggName)
{
ArrayList<PostAggregator> rv = new ArrayList<>();
Set<String> deps = new HashSet<>();
deps.add(postAggName);
// Iterate backwards to find the last calculat... | public class class_name {
public static List<PostAggregator> pruneDependentPostAgg(List<PostAggregator> postAggregatorList, String postAggName)
{
ArrayList<PostAggregator> rv = new ArrayList<>();
Set<String> deps = new HashSet<>();
deps.add(postAggName);
// Iterate backwards to find the last calculat... |
public class class_name {
protected void BuildGSubrsUsed(int Font)
{
int LBias = 0;
int SizeOfNonCIDSubrsUsed = 0;
if (fonts[Font].privateSubrs>=0)
{
LBias = CalcBias(fonts[Font].privateSubrs,Font);
SizeOfNonCIDSubrsUsed = lSubrsUsedNonCID.size();
}
// For each global subr used
for (int i=0;i<... | public class class_name {
protected void BuildGSubrsUsed(int Font)
{
int LBias = 0;
int SizeOfNonCIDSubrsUsed = 0;
if (fonts[Font].privateSubrs>=0)
{
LBias = CalcBias(fonts[Font].privateSubrs,Font); // depends on control dependency: [if], data = [(fonts[Font].privateSubrs]
SizeOfNonCIDSubrsUsed = lSubrs... |
public class class_name {
public String build(final UrlMapping urlMapping, final boolean encodeUrl, final List<UIParameter> parameters)
{
String result = "";
if (urlMapping != null)
{
URLPatternParser parser = urlMapping.getPatternParser();
List<String> pathParams = new ArrayList... | public class class_name {
public String build(final UrlMapping urlMapping, final boolean encodeUrl, final List<UIParameter> parameters)
{
String result = "";
if (urlMapping != null)
{
URLPatternParser parser = urlMapping.getPatternParser();
List<String> pathParams = new ArrayList... |
public class class_name {
@Nullable
public static String getURLValue (@Nullable final String sValue)
{
if (isURLValue (sValue))
{
return CSSParseHelper.trimUrl (sValue);
}
return null;
} } | public class class_name {
@Nullable
public static String getURLValue (@Nullable final String sValue)
{
if (isURLValue (sValue))
{
return CSSParseHelper.trimUrl (sValue); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void marshall(MeshData meshData, ProtocolMarshaller protocolMarshaller) {
if (meshData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(meshData.getMeshName(), MESH... | public class class_name {
public void marshall(MeshData meshData, ProtocolMarshaller protocolMarshaller) {
if (meshData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(meshData.getMeshName(), MESH... |
public class class_name {
public void execBackwards(Map<String,INDArray> placeholders){
if (getFunction("grad") == null) {
createGradFunction();
}
//Collect (unique) list of gradient names...
Set<String> varGradNames = new HashSet<>();
for(Variable v : variables.val... | public class class_name {
public void execBackwards(Map<String,INDArray> placeholders){
if (getFunction("grad") == null) {
createGradFunction(); // depends on control dependency: [if], data = [none]
}
//Collect (unique) list of gradient names...
Set<String> varGradNames = n... |
public class class_name {
public static void reorderVisually(byte[] levels,
int levelStart,
Object[] objects,
int objectStart,
int count)
{
byte[] reorderLevels = new byte[count];
System.arraycopy(levels, levelStart, reorderLevels, 0, count);
... | public class class_name {
public static void reorderVisually(byte[] levels,
int levelStart,
Object[] objects,
int objectStart,
int count)
{
byte[] reorderLevels = new byte[count];
System.arraycopy(levels, levelStart, reorderLevels, 0, count);
... |
public class class_name {
public void setRefreshCompleteHook(PtrUIHandlerHook hook) {
mRefreshCompleteHook = hook;
hook.setResumeAction(new Runnable() {
@Override
public void run() {
if (DEBUG) {
PtrCLog.d(LOG_TAG, "mRefreshCompleteHook resume... | public class class_name {
public void setRefreshCompleteHook(PtrUIHandlerHook hook) {
mRefreshCompleteHook = hook;
hook.setResumeAction(new Runnable() {
@Override
public void run() {
if (DEBUG) {
PtrCLog.d(LOG_TAG, "mRefreshCompleteHook resume... |
public class class_name {
@Override
public EClass getIfcFanType() {
if (ifcFanTypeEClass == null) {
ifcFanTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(262);
}
return ifcFanTypeEClass;
} } | public class class_name {
@Override
public EClass getIfcFanType() {
if (ifcFanTypeEClass == null) {
ifcFanTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(262);
// depends on control dependency: [if], data = [none]
}
return ifcFanTypeEClass;
... |
public class class_name {
private void remapEdges(ProtoNetwork protoNetwork1,
ProtoNetwork protoNetwork2, int documentId,
Map<Integer, Integer> termMap, int newStatementIndex,
List<TableProtoEdge> edges, Set<Integer> edgeIndices) {
ProtoNodeTable nt = protoNetwork2.getProtoN... | public class class_name {
private void remapEdges(ProtoNetwork protoNetwork1,
ProtoNetwork protoNetwork2, int documentId,
Map<Integer, Integer> termMap, int newStatementIndex,
List<TableProtoEdge> edges, Set<Integer> edgeIndices) {
ProtoNodeTable nt = protoNetwork2.getProtoN... |
public class class_name {
public synchronized boolean addDriveListener(final IUSBDriveListener listener) {
if (listeners.contains(listener)) {
return false;
}
listeners.add(listener);
start();
return true;
} } | public class class_name {
public synchronized boolean addDriveListener(final IUSBDriveListener listener) {
if (listeners.contains(listener)) {
return false; // depends on control dependency: [if], data = [none]
}
listeners.add(listener);
start();
return true;
} ... |
public class class_name {
public static Object beanClone(Object obj, Set<String> ignoreProperties) throws CloneNotSupportedException {
final Class<?> clazz = obj.getClass();
try {
final Object clonedBean = clazz.newInstance();
final List<PropertyDescriptor> propertyDescripto... | public class class_name {
public static Object beanClone(Object obj, Set<String> ignoreProperties) throws CloneNotSupportedException {
final Class<?> clazz = obj.getClass();
try {
final Object clonedBean = clazz.newInstance();
final List<PropertyDescriptor> propertyDescripto... |
public class class_name {
public void emmitCode(ByteBuffer buffer, WAMMachine machine, WAMCallPoint callPoint) throws LinkageException
{
// Ensure that the size of the instruction listing does not exceed max int (highly unlikely).
if (sizeof() > Integer.MAX_VALUE)
{
throw new Il... | public class class_name {
public void emmitCode(ByteBuffer buffer, WAMMachine machine, WAMCallPoint callPoint) throws LinkageException
{
// Ensure that the size of the instruction listing does not exceed max int (highly unlikely).
if (sizeof() > Integer.MAX_VALUE)
{
throw new Il... |
public class class_name {
public Collection<Parameter<?>> getParameters() {
if (_parameters == null) {
return Collections.<Parameter<?>>emptyList();
}
return Collections.unmodifiableCollection(_parameters);
} } | public class class_name {
public Collection<Parameter<?>> getParameters() {
if (_parameters == null) {
return Collections.<Parameter<?>>emptyList(); // depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableCollection(_parameters);
} } |
public class class_name {
private void stripTrailingDelimiters(StringBuilder buffer)
{
int index = buffer.length() - 1;
while (index > 0 && buffer.charAt(index) == m_delimiter)
{
--index;
}
buffer.setLength(index + 1);
} } | public class class_name {
private void stripTrailingDelimiters(StringBuilder buffer)
{
int index = buffer.length() - 1;
while (index > 0 && buffer.charAt(index) == m_delimiter)
{
--index; // depends on control dependency: [while], data = [none]
}
buffer.setLength(index + 1);... |
public class class_name {
protected XExpression _generate(XIfExpression ifStatement, IAppendable it, IExtraLanguageGeneratorContext context) {
it.append("if "); //$NON-NLS-1$
generate(ifStatement.getIf(), it, context);
it.append(":"); //$NON-NLS-1$
it.increaseIndentation().newLine();
if (ifStatement.getThen(... | public class class_name {
protected XExpression _generate(XIfExpression ifStatement, IAppendable it, IExtraLanguageGeneratorContext context) {
it.append("if "); //$NON-NLS-1$
generate(ifStatement.getIf(), it, context);
it.append(":"); //$NON-NLS-1$
it.increaseIndentation().newLine();
if (ifStatement.getThen(... |
public class class_name {
public static int getConsoleWidth() {
if(width > 0) {
return width;
}
final int default_termwidth = 78;
try {
final String env = System.getenv("COLUMNS");
if(env != null) {
int columns = ParseUtil.parseIntBase10(env);
return width = (columns >... | public class class_name {
public static int getConsoleWidth() {
if(width > 0) {
return width; // depends on control dependency: [if], data = [none]
}
final int default_termwidth = 78;
try {
final String env = System.getenv("COLUMNS");
if(env != null) {
int columns = ParseUtil.... |
public class class_name {
public String toIcal() {
StringBuilder buf = new StringBuilder();
buf.append(this.getName().toUpperCase());
buf.append(";TZID=\"").append(tzid.getID()).append('"');
buf.append(";VALUE=").append(valueType.toIcal());
if (hasExtParams()) {
for ... | public class class_name {
public String toIcal() {
StringBuilder buf = new StringBuilder();
buf.append(this.getName().toUpperCase());
buf.append(";TZID=\"").append(tzid.getID()).append('"');
buf.append(";VALUE=").append(valueType.toIcal());
if (hasExtParams()) {
for ... |
public class class_name {
public void addPhoto(Photo photo) {
Photo.PhotoType type = photo.getType();
if (postType != null && !postType.equals(type)) {
throw new IllegalArgumentException("Photos must all be the same type (source or data)");
}
if (pendingPhotos == null) {
... | public class class_name {
public void addPhoto(Photo photo) {
Photo.PhotoType type = photo.getType();
if (postType != null && !postType.equals(type)) {
throw new IllegalArgumentException("Photos must all be the same type (source or data)");
}
if (pendingPhotos == null) {
... |
public class class_name {
public static byte[] readBytes(File file) throws IOException {
FileInputStream fis = null;
ByteArrayOutputStream bos = null;
if (file == null) {
throw new FileNotFoundException("No file specified");
}
try {
fis = new FileInputStr... | public class class_name {
public static byte[] readBytes(File file) throws IOException {
FileInputStream fis = null;
ByteArrayOutputStream bos = null;
if (file == null) {
throw new FileNotFoundException("No file specified");
}
try {
fis = new FileInputStr... |
public class class_name {
public static <T, C extends Collection<T>> Map<T, C> makeElementsToContainersMap(
final Iterable<C> collections) {
final ImmutableMap.Builder<T, C> ret = ImmutableMap.builder();
for (final C collection : collections) {
for (final T item : collection) {
ret.put(ite... | public class class_name {
public static <T, C extends Collection<T>> Map<T, C> makeElementsToContainersMap(
final Iterable<C> collections) {
final ImmutableMap.Builder<T, C> ret = ImmutableMap.builder();
for (final C collection : collections) {
for (final T item : collection) {
ret.put(ite... |
public class class_name {
@Deprecated
public void setFrom(String from) {
Jid jid;
try {
jid = JidCreate.from(from);
}
catch (XmppStringprepException e) {
throw new IllegalArgumentException(e);
}
setFrom(jid);
} } | public class class_name {
@Deprecated
public void setFrom(String from) {
Jid jid;
try {
jid = JidCreate.from(from); // depends on control dependency: [try], data = [none]
}
catch (XmppStringprepException e) {
throw new IllegalArgumentException(e);
} /... |
public class class_name {
static Tuple<String, Class> splitClassAndName(String classLabel) {
String[] stringNameSplit = classLabel.split("@");
// If i don't have a @, then no name is provided, use the class as the name.
if (stringNameSplit.length == 1) {
try {
return new Tuple<>(classLabel, Class.forName(... | public class class_name {
static Tuple<String, Class> splitClassAndName(String classLabel) {
String[] stringNameSplit = classLabel.split("@");
// If i don't have a @, then no name is provided, use the class as the name.
if (stringNameSplit.length == 1) {
try {
return new Tuple<>(classLabel, Class.forName(... |
public class class_name {
@Override
public AbstractIoBufferEx limit(int newLimit) {
autoExpand(newLimit, 0);
buf().limit(newLimit);
if (mark > newLimit) {
mark = -1;
}
return this;
} } | public class class_name {
@Override
public AbstractIoBufferEx limit(int newLimit) {
autoExpand(newLimit, 0);
buf().limit(newLimit);
if (mark > newLimit) {
mark = -1; // depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
public static void addComment(TapElement element, String comment) {
if (comment != null && comment.trim().length() > 0) {
element.setComment(new Comment(comment, true));
}
} } | public class class_name {
public static void addComment(TapElement element, String comment) {
if (comment != null && comment.trim().length() > 0) {
element.setComment(new Comment(comment, true)); // depends on control dependency: [if], data = [(comment]
}
} } |
public class class_name {
protected void removeAll()
{
List<LockData> locks = getLockList();
for (LockData lockData : locks)
{
removeLock(lockData.getNodeIdentifier());
}
} } | public class class_name {
protected void removeAll()
{
List<LockData> locks = getLockList();
for (LockData lockData : locks)
{
removeLock(lockData.getNodeIdentifier()); // depends on control dependency: [for], data = [lockData]
}
} } |
public class class_name {
private synchronized Producer<CloseableReference<CloseableImage>> getDataFetchSequence() {
if (mDataFetchSequence == null) {
Producer<EncodedImage> inputProducer = mProducerFactory.newDataFetchProducer();
if (WebpSupportStatus.sIsWebpSupportRequired &&
(!mWebpSupport... | public class class_name {
private synchronized Producer<CloseableReference<CloseableImage>> getDataFetchSequence() {
if (mDataFetchSequence == null) {
Producer<EncodedImage> inputProducer = mProducerFactory.newDataFetchProducer();
if (WebpSupportStatus.sIsWebpSupportRequired &&
(!mWebpSupport... |
public class class_name {
protected synchronized void flushSenders() {
if(flushingSenders) {
throw UndertowMessages.MESSAGES.recursiveCallToFlushingSenders();
}
flushingSenders = true;
try {
int toSend = 0;
while (!newFrames.isEmpty()) {
... | public class class_name {
protected synchronized void flushSenders() {
if(flushingSenders) {
throw UndertowMessages.MESSAGES.recursiveCallToFlushingSenders();
}
flushingSenders = true;
try {
int toSend = 0;
while (!newFrames.isEmpty()) {
... |
public class class_name {
public AppIdentity getAppIdentity(final String applicationName) {
if (isCached(applicationName)) {
return applicationIdentityCache.get(applicationName).getAppIdentity();
} else {
// Update environment detail with new configured application name
final EnvironmentDetail updatedEnv... | public class class_name {
public AppIdentity getAppIdentity(final String applicationName) {
if (isCached(applicationName)) {
return applicationIdentityCache.get(applicationName).getAppIdentity(); // depends on control dependency: [if], data = [none]
} else {
// Update environment detail with new configured ... |
public class class_name {
public T add(T setting) {
String key = key(setting);
if (settings.containsKey(key)) {
T instance = settings.get(key);
if (instance.getClass() == setting.getClass()) {
return instance;
}
}
// we could not ad... | public class class_name {
public T add(T setting) {
String key = key(setting);
if (settings.containsKey(key)) {
T instance = settings.get(key);
if (instance.getClass() == setting.getClass()) {
return instance; // depends on control dependency: [if], data = [non... |
public class class_name {
@Override
public void setup(AbstractInvokable parent) {
@SuppressWarnings("unchecked")
final ReduceFunction<IT> red = BatchTask.instantiateUserCode(this.config, userCodeClassLoader, ReduceFunction.class);
this.reducer = red;
FunctionUtils.setFunctionRuntimeContext(red, getUdfRuntimeC... | public class class_name {
@Override
public void setup(AbstractInvokable parent) {
@SuppressWarnings("unchecked")
final ReduceFunction<IT> red = BatchTask.instantiateUserCode(this.config, userCodeClassLoader, ReduceFunction.class);
this.reducer = red;
FunctionUtils.setFunctionRuntimeContext(red, getUdfRuntimeC... |
public class class_name {
public void marshall(ListAvailableManagementCidrRangesRequest listAvailableManagementCidrRangesRequest, ProtocolMarshaller protocolMarshaller) {
if (listAvailableManagementCidrRangesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... | public class class_name {
public void marshall(ListAvailableManagementCidrRangesRequest listAvailableManagementCidrRangesRequest, ProtocolMarshaller protocolMarshaller) {
if (listAvailableManagementCidrRangesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... |
public class class_name {
public String keyWithParams(String keyName) {
if (keyName.indexOf('|') == -1) {
// no separator found, key has no parameters
return key(keyName, false);
} else {
// this key contains parameters
String[] values = CmsStringUtil.sp... | public class class_name {
public String keyWithParams(String keyName) {
if (keyName.indexOf('|') == -1) {
// no separator found, key has no parameters
return key(keyName, false); // depends on control dependency: [if], data = [none]
} else {
// this key contains par... |
public class class_name {
public void addMithraNotificationEvent(String databaseIdentifier, String classname, byte databaseOperation,
List mithraObjects, Object sourceAttribute)
{
MithraDataObject[] dataObjects = new MithraDataObject[mithraObjects.size()];
... | public class class_name {
public void addMithraNotificationEvent(String databaseIdentifier, String classname, byte databaseOperation,
List mithraObjects, Object sourceAttribute)
{
MithraDataObject[] dataObjects = new MithraDataObject[mithraObjects.size()];
... |
public class class_name {
public void setFooter(HeaderFooter footer) {
this.footer = footer;
DocListener listener;
for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
listener = (DocListener) iterator.next();
listener.setFooter(footer);
}
} } | public class class_name {
public void setFooter(HeaderFooter footer) {
this.footer = footer;
DocListener listener;
for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
listener = (DocListener) iterator.next(); // depends on control dependency: [for], data = [iterator]
... |
public class class_name {
@Override
protected ModelNode convertParameterExpressions(ModelNode parameter) {
ModelNode result = parameter;
List<Property> asList;
try {
asList = parameter.asPropertyList();
} catch (IllegalArgumentException iae) {
// We can't co... | public class class_name {
@Override
protected ModelNode convertParameterExpressions(ModelNode parameter) {
ModelNode result = parameter;
List<Property> asList;
try {
asList = parameter.asPropertyList(); // depends on control dependency: [try], data = [none]
} catch (Ill... |
public class class_name {
public Deferred<Boolean> storeTree(final TSDB tsdb, final boolean overwrite) {
if (tree_id < 1 || tree_id > 65535) {
throw new IllegalArgumentException("Invalid Tree ID");
}
// if there aren't any changes, save time and bandwidth by not writing to
// storage
boo... | public class class_name {
public Deferred<Boolean> storeTree(final TSDB tsdb, final boolean overwrite) {
if (tree_id < 1 || tree_id > 65535) {
throw new IllegalArgumentException("Invalid Tree ID");
}
// if there aren't any changes, save time and bandwidth by not writing to
// storage
boo... |
public class class_name {
public void marshall(DetectFacesRequest detectFacesRequest, ProtocolMarshaller protocolMarshaller) {
if (detectFacesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(DetectFacesRequest detectFacesRequest, ProtocolMarshaller protocolMarshaller) {
if (detectFacesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
private boolean checkObjectId(int dtx, int dty)
{
final int tw = transformable.getWidth() / map.getTileWidth();
final int th = transformable.getHeight() / map.getTileHeight();
for (int tx = dtx; tx < dtx + tw; tx++)
{
for (int ty = dty; ty < dty... | public class class_name {
private boolean checkObjectId(int dtx, int dty)
{
final int tw = transformable.getWidth() / map.getTileWidth();
final int th = transformable.getHeight() / map.getTileHeight();
for (int tx = dtx; tx < dtx + tw; tx++)
{
for (int ty = dty; ty < dty... |
public class class_name {
public Long getInsertNumber() {
Long insertNumber = 0L;
if (items.size() != 0) {
for (TableStat item : items) {
insertNumber += item.getInsertCount();
}
}
return insertNumber;
} } | public class class_name {
public Long getInsertNumber() {
Long insertNumber = 0L;
if (items.size() != 0) {
for (TableStat item : items) {
insertNumber += item.getInsertCount(); // depends on control dependency: [for], data = [item]
}
}
return inse... |
public class class_name {
public DomainCommandBuilder addProcessControllerJavaOption(final String arg) {
if (arg != null && !arg.trim().isEmpty()) {
final Argument argument = Arguments.parse(arg);
if (argument.getKey().equals(SECURITY_MANAGER_PROP)) {
setUseSecurityManag... | public class class_name {
public DomainCommandBuilder addProcessControllerJavaOption(final String arg) {
if (arg != null && !arg.trim().isEmpty()) {
final Argument argument = Arguments.parse(arg);
if (argument.getKey().equals(SECURITY_MANAGER_PROP)) {
setUseSecurityManag... |
public class class_name {
public static InputStream inputStream(File file) {
// workaround http://stackoverflow.com/questions/36880692/java-file-does-not-exists-but-file-getabsolutefile-exists
if (!file.exists()) {
file = file.getAbsoluteFile();
}
if (!file.exists()) {
... | public class class_name {
public static InputStream inputStream(File file) {
// workaround http://stackoverflow.com/questions/36880692/java-file-does-not-exists-but-file-getabsolutefile-exists
if (!file.exists()) {
file = file.getAbsoluteFile(); // depends on control dependency: [if], data ... |
public class class_name {
public int previousNode()
{
if (!m_cacheNodes)
throw new RuntimeException(
XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_ITERATE, null)); //"This NodeSetDTM can not iterate to a previous node!");
if ((m_next - 1) > 0)
{
m_next--;
... | public class class_name {
public int previousNode()
{
if (!m_cacheNodes)
throw new RuntimeException(
XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_ITERATE, null)); //"This NodeSetDTM can not iterate to a previous node!");
if ((m_next - 1) > 0)
{
m_next--; /... |
public class class_name {
@VisibleForTesting
static ProcessIdentifier getProcessIdentifier(String jvmName, Timestamp censusTimestamp) {
String hostname;
int pid;
// jvmName should be something like '<pid>@<hostname>', at least in Oracle and OpenJdk JVMs
int delimiterIndex = jvmName.indexOf('@');
... | public class class_name {
@VisibleForTesting
static ProcessIdentifier getProcessIdentifier(String jvmName, Timestamp censusTimestamp) {
String hostname;
int pid;
// jvmName should be something like '<pid>@<hostname>', at least in Oracle and OpenJdk JVMs
int delimiterIndex = jvmName.indexOf('@');
... |
public class class_name {
public void marshall(SplunkRetryOptions splunkRetryOptions, ProtocolMarshaller protocolMarshaller) {
if (splunkRetryOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(SplunkRetryOptions splunkRetryOptions, ProtocolMarshaller protocolMarshaller) {
if (splunkRetryOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public T validationCallback(ValidationCallback callback) {
if (callback instanceof ApplicationContextAware) {
((ApplicationContextAware) callback).setApplicationContext(applicationContext);
}
getAction().setValidationCallback(callback);
return self... | public class class_name {
public T validationCallback(ValidationCallback callback) {
if (callback instanceof ApplicationContextAware) {
((ApplicationContextAware) callback).setApplicationContext(applicationContext); // depends on control dependency: [if], data = [none]
}
getAction(... |
public class class_name {
public void addDeprecationInfo(Content div) {
List<? extends DocTree> deprs = utils.getBlockTags(packageElement, DocTree.Kind.DEPRECATED);
if (utils.isDeprecated(packageElement)) {
CommentHelper ch = utils.getCommentHelper(packageElement);
HtmlTree depr... | public class class_name {
public void addDeprecationInfo(Content div) {
List<? extends DocTree> deprs = utils.getBlockTags(packageElement, DocTree.Kind.DEPRECATED);
if (utils.isDeprecated(packageElement)) {
CommentHelper ch = utils.getCommentHelper(packageElement);
HtmlTree depr... |
public class class_name {
private void pdb_ATOM_Handler(String line) {
if ( params.isHeaderOnly())
return;
// let's first get the chain name which will serve to identify if we are starting a new molecule
String chainName = line.substring(21,22);
if (chainName.equals(" ")) {
blankChainIdsPresent ... | public class class_name {
private void pdb_ATOM_Handler(String line) {
if ( params.isHeaderOnly())
return;
// let's first get the chain name which will serve to identify if we are starting a new molecule
String chainName = line.substring(21,22);
if (chainName.equals(" ")) {
blankChainIdsPresent ... |
public class class_name {
public void initialize(Subject newSubject, CallbackHandler newCallbackHandler,
Map<String, ?> sharedState, Map<String, ?> options) {
log.debug("Initializing YubikeyLoginModule");
this.subject = newSubject;
this.callbackHandler = newCallbackHandler;
/* Yubico verification client *... | public class class_name {
public void initialize(Subject newSubject, CallbackHandler newCallbackHandler,
Map<String, ?> sharedState, Map<String, ?> options) {
log.debug("Initializing YubikeyLoginModule");
this.subject = newSubject;
this.callbackHandler = newCallbackHandler;
/* Yubico verification client *... |
public class class_name {
public String buildAsHex(BuilderMode builderMode) {
byte[] ret = build(builderMode);
if (Validator.isEmpty(ret)) {
return null;
}
return DatatypeConverter.printHexBinary(ret);
} } | public class class_name {
public String buildAsHex(BuilderMode builderMode) {
byte[] ret = build(builderMode);
if (Validator.isEmpty(ret)) {
return null; // depends on control dependency: [if], data = [none]
}
return DatatypeConverter.printHexBinary(ret);
} } |
public class class_name {
public void uninstallProfileSpecification(ProfileSpecificationComponent component) throws UnrecognizedProfileSpecificationException {
Collection<String> profileTableNames = getDeclaredProfileTableNames(component.getProfileSpecificationID());
for(String profileTableName:profileTableNam... | public class class_name {
public void uninstallProfileSpecification(ProfileSpecificationComponent component) throws UnrecognizedProfileSpecificationException {
Collection<String> profileTableNames = getDeclaredProfileTableNames(component.getProfileSpecificationID());
for(String profileTableName:profileTableNam... |
public class class_name {
public void printStackTrace() {
if (detail == null) {
super.printStackTrace();
} else {
synchronized(System.err) {
System.err.println(super.getMessage() + "; nested exception is:");
detail.printStackTrace();
}... | public class class_name {
public void printStackTrace() {
if (detail == null) {
super.printStackTrace(); // depends on control dependency: [if], data = [none]
} else {
synchronized(System.err) { // depends on control dependency: [if], data = [none]
System.err.pri... |
public class class_name {
static void serialize(DataOutput out, Serializers serializers)
throws IOException {
StringBuilder msg = new StringBuilder(String.format("Serialize %d serializer classes:", serializers.serializers.values().size()));
int size = serializers.serializers.values().size();
out.wri... | public class class_name {
static void serialize(DataOutput out, Serializers serializers)
throws IOException {
StringBuilder msg = new StringBuilder(String.format("Serialize %d serializer classes:", serializers.serializers.values().size()));
int size = serializers.serializers.values().size();
out.wri... |
public class class_name {
public static String[] removeNull(String[] in) {
if (in == null) {
return new String[0];
}
ArrayList<String> arr = new ArrayList();
for (int i = 0; i < in.length; i++) {
if (in[i] != null) {
arr.add(in[i]);
}
... | public class class_name {
public static String[] removeNull(String[] in) {
if (in == null) {
return new String[0]; // depends on control dependency: [if], data = [none]
}
ArrayList<String> arr = new ArrayList();
for (int i = 0; i < in.length; i++) {
if (in[i] != ... |
public class class_name {
private CompletableFuture<Void> bind(Bootstrap bootstrap) {
CompletableFuture<Void> future = new CompletableFuture<>();
int port = config.getPort() != null ? config.getPort() : address.port();
if (config.getInterfaces().isEmpty()) {
bind(bootstrap, Lists.newArrayList("0.0.0.... | public class class_name {
private CompletableFuture<Void> bind(Bootstrap bootstrap) {
CompletableFuture<Void> future = new CompletableFuture<>();
int port = config.getPort() != null ? config.getPort() : address.port();
if (config.getInterfaces().isEmpty()) {
bind(bootstrap, Lists.newArrayList("0.0.0.... |
public class class_name {
public java.util.List<ClientVpnConnection> getConnections() {
if (connections == null) {
connections = new com.amazonaws.internal.SdkInternalList<ClientVpnConnection>();
}
return connections;
} } | public class class_name {
public java.util.List<ClientVpnConnection> getConnections() {
if (connections == null) {
connections = new com.amazonaws.internal.SdkInternalList<ClientVpnConnection>(); // depends on control dependency: [if], data = [none]
}
return connections;
} } |
public class class_name {
public void appendTextContent(final Appendable appendable) {
if (nodeValue != null) {
if ((nodeType == NodeType.TEXT) || (nodeType == NodeType.CDATA)) {
try {
appendable.append(nodeValue);
} catch (IOException ioex) {
throw new LagartoDOMException(ioex);
}
}
}
... | public class class_name {
public void appendTextContent(final Appendable appendable) {
if (nodeValue != null) {
if ((nodeType == NodeType.TEXT) || (nodeType == NodeType.CDATA)) {
try {
appendable.append(nodeValue); // depends on control dependency: [try], data = [none]
} catch (IOException ioex) {
... |
public class class_name {
private void dispatchServerChannelChangeOverwrittenPermissionsEvent(
ServerChannel channel, Permissions newPermissions, Permissions oldPermissions, DiscordEntity entity) {
if (newPermissions.equals(oldPermissions)) {
// This can be caused by adding a user/role ... | public class class_name {
private void dispatchServerChannelChangeOverwrittenPermissionsEvent(
ServerChannel channel, Permissions newPermissions, Permissions oldPermissions, DiscordEntity entity) {
if (newPermissions.equals(oldPermissions)) {
// This can be caused by adding a user/role ... |
public class class_name {
public void startWrite() {
SynchronizationPoint<NoException> sp;
synchronized (this) {
// if nobody is using the resource, we can start writing
if (readers == 0 && !writer) {
writer = true;
return;
}
// someone is doing something, we need to block
sp = new Synchroni... | public class class_name {
public void startWrite() {
SynchronizationPoint<NoException> sp;
synchronized (this) {
// if nobody is using the resource, we can start writing
if (readers == 0 && !writer) {
writer = true; // depends on control dependency: [if], data = [none]
return; // depends on control d... |
public class class_name {
public synchronized void pushMetric(final MetricsRecord mr) {
if (changed) {
try {
mr.setMetric(getName(), value);
} catch (Exception e) {
LOG.info("pushMetric failed for " + getName() + "\n" +
StringUtils.stringifyException(e));
}
}
c... | public class class_name {
public synchronized void pushMetric(final MetricsRecord mr) {
if (changed) {
try {
mr.setMetric(getName(), value); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOG.info("pushMetric failed for " + getName() + "\n" +
... |
public class class_name {
public boolean hasMembersToDocument() {
if (classDoc instanceof AnnotationTypeDoc) {
return ((AnnotationTypeDoc) classDoc).elements().length > 0;
}
for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; i++) {
VisibleMemberMap members = visibleM... | public class class_name {
public boolean hasMembersToDocument() {
if (classDoc instanceof AnnotationTypeDoc) {
return ((AnnotationTypeDoc) classDoc).elements().length > 0; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; ... |
public class class_name {
public static MOAObject fromCommandLine(Class requiredType, String commandline) {
MOAObject result;
String[] tmpOptions;
String classname;
try {
tmpOptions = Utils.splitOptions(commandline);
classname = tmpOptions[0];
tmpOptions[0] = "";
try {
... | public class class_name {
public static MOAObject fromCommandLine(Class requiredType, String commandline) {
MOAObject result;
String[] tmpOptions;
String classname;
try {
tmpOptions = Utils.splitOptions(commandline); // depends on control dependency: [try], data = [none]
classname ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.