code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static InternationalFixedDate from(TemporalAccessor temporal) {
if (temporal instanceof InternationalFixedDate) {
return (InternationalFixedDate) temporal;
}
return InternationalFixedDate.ofEpochDay(temporal.getLong(ChronoField.EPOCH_DAY));
} } | public class class_name {
public static InternationalFixedDate from(TemporalAccessor temporal) {
if (temporal instanceof InternationalFixedDate) {
return (InternationalFixedDate) temporal; // depends on control dependency: [if], data = [none]
}
return InternationalFixedDate.ofEpochD... |
public class class_name {
public CloudhopperBuilder port(String... port) {
for (String p : port) {
if (port != null) {
ports.add(p);
}
}
return this;
} } | public class class_name {
public CloudhopperBuilder port(String... port) {
for (String p : port) {
if (port != null) {
ports.add(p); // depends on control dependency: [if], data = [none]
}
}
return this;
} } |
public class class_name {
public final void synpred31_InternalXbase_fragment() throws RecognitionException {
// InternalXbase.g:4199:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalXbase.g:4199:7: ( () ( ( ( ruleJvmFormalParameter ) ) ... | public class class_name {
public final void synpred31_InternalXbase_fragment() throws RecognitionException {
// InternalXbase.g:4199:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalXbase.g:4199:7: ( () ( ( ( ruleJvmFormalParameter ) ) ... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public synchronized void stop() {
if (isRunning()) {
MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener);
running.set(false);
pendingUpdates.clear();
queueHandler.interrupt();
... | public class class_name {
@SuppressWarnings("WeakerAccess")
public synchronized void stop() {
if (isRunning()) {
MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener); // depends on control dependency: [if], data = [none]
running.set(false); // depends on contro... |
public class class_name {
@Override
protected boolean initiateClient()
{
for (String host : hosts)
{
if (host == null || !StringUtils.isNumeric(port) || port.isEmpty())
{
logger.error("Host or port should not be null / port should be numeric");
... | public class class_name {
@Override
protected boolean initiateClient()
{
for (String host : hosts)
{
if (host == null || !StringUtils.isNumeric(port) || port.isEmpty())
{
logger.error("Host or port should not be null / port should be numeric"); // depends... |
public class class_name {
public static String encode(byte[] data) {
if (data.length == 0) {
return "";
}
final byte[] bytes = copyOfRange(data, 0, data.length);
// Count leading zeroes.
int zeroCount = 0;
while (zeroCount < bytes.length && bytes[zeroCount] =... | public class class_name {
public static String encode(byte[] data) {
if (data.length == 0) {
return ""; // depends on control dependency: [if], data = [none]
}
final byte[] bytes = copyOfRange(data, 0, data.length);
// Count leading zeroes.
int zeroCount = 0;
... |
public class class_name {
private String getTableDefinition(Function atom, AliasIndex index, String indent) {
if (atom.isAlgebraFunction()) {
Predicate functionSymbol = atom.getFunctionSymbol();
ImmutableList<Function> joinAtoms = convert(atom.getTerms());
if (functionSymbol.equals(datalogFactory.getSparql... | public class class_name {
private String getTableDefinition(Function atom, AliasIndex index, String indent) {
if (atom.isAlgebraFunction()) {
Predicate functionSymbol = atom.getFunctionSymbol();
ImmutableList<Function> joinAtoms = convert(atom.getTerms());
if (functionSymbol.equals(datalogFactory.getSparql... |
public class class_name {
public void setValue(final Object targetObj, final Object value) {
ArgUtils.notNull(targetObj, "targetObj");
if(targetSetter.isPresent()) {
try {
targetSetter.get().invoke(targetObj, value);
} catch (IllegalAccessException... | public class class_name {
public void setValue(final Object targetObj, final Object value) {
ArgUtils.notNull(targetObj, "targetObj");
if(targetSetter.isPresent()) {
try {
targetSetter.get().invoke(targetObj, value);
// depends on control dependency: [try], da... |
public class class_name {
public AnnotationValueBuilder<T> member(String name, int... ints) {
if (ints != null) {
values.put(name, ints);
}
return this;
} } | public class class_name {
public AnnotationValueBuilder<T> member(String name, int... ints) {
if (ints != null) {
values.put(name, ints); // depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
@Override
public void onValueUnRestricted(final String value) {
this.restrictedColumns.remove(value);
// Check single column used in data set -> it cannot be unselected.
if (listEditor.getList().size() == 1) {
setEditorEnabled(0 ,false, DataSet... | public class class_name {
@Override
public void onValueUnRestricted(final String value) {
this.restrictedColumns.remove(value);
// Check single column used in data set -> it cannot be unselected.
if (listEditor.getList().size() == 1) {
setEditorEnabled(0 ,false, DataSet... |
public class class_name {
private static Field tryGetFieldWithoutExp(Class<?> clazz, String itemName) {
try {
return clazz.getDeclaredField(itemName);
} catch (Exception e) {
return null;
}
} } | public class class_name {
private static Field tryGetFieldWithoutExp(Class<?> clazz, String itemName) {
try {
return clazz.getDeclaredField(itemName); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
return null;
} // depends on control d... |
public class class_name {
public void setDividerPadding(float padding, final Axis axis) {
if (!equal(mDividerPadding.get(axis), padding)) {
mDividerPadding.set(padding, axis);
if (mContainer != null) {
mContainer.onLayoutChanged(this);
}
}
} } | public class class_name {
public void setDividerPadding(float padding, final Axis axis) {
if (!equal(mDividerPadding.get(axis), padding)) {
mDividerPadding.set(padding, axis); // depends on control dependency: [if], data = [none]
if (mContainer != null) {
mContainer.onLa... |
public class class_name {
public void marshall(PolicyVersion policyVersion, ProtocolMarshaller protocolMarshaller) {
if (policyVersion == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(policyVersion... | public class class_name {
public void marshall(PolicyVersion policyVersion, ProtocolMarshaller protocolMarshaller) {
if (policyVersion == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(policyVersion... |
public class class_name {
static Namespace parseUnknown(List<String> unknown) {
Map<String, Object> attrs = new HashMap<>();
String attr = null;
for (String arg : unknown) {
if (arg.startsWith("--")) {
int splitIndex = arg.indexOf('=');
if (splitIndex == -1) {
attr = arg.sub... | public class class_name {
static Namespace parseUnknown(List<String> unknown) {
Map<String, Object> attrs = new HashMap<>();
String attr = null;
for (String arg : unknown) {
if (arg.startsWith("--")) {
int splitIndex = arg.indexOf('=');
if (splitIndex == -1) {
attr = arg.sub... |
public class class_name {
@Override
public RandomVariable getVolatility(int timeIndex, int liborIndex) {
// Create a very simple volatility model here
double time = getTimeDiscretization().getTime(timeIndex);
double maturity = getLiborPeriodDiscretization().getTime(liborIndex);
double time... | public class class_name {
@Override
public RandomVariable getVolatility(int timeIndex, int liborIndex) {
// Create a very simple volatility model here
double time = getTimeDiscretization().getTime(timeIndex);
double maturity = getLiborPeriodDiscretization().getTime(liborIndex);
double time... |
public class class_name {
private void convertAudits() {
// Only do this if ADMID values were found in the object.
if (m_dsADMIDs.size() > 0) {
// Look at datastreams to see if there are audit records for them.
// NOTE: we do not look at disseminators because in pre-2.0
... | public class class_name {
private void convertAudits() {
// Only do this if ADMID values were found in the object.
if (m_dsADMIDs.size() > 0) {
// Look at datastreams to see if there are audit records for them.
// NOTE: we do not look at disseminators because in pre-2.0
... |
public class class_name {
public static void write(CharSequence content, File file, String encoding) {
OutputStream os = null;
try {
os = new FileOutputStream(file);
PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(os, encoding));
printWriter.print(co... | public class class_name {
public static void write(CharSequence content, File file, String encoding) {
OutputStream os = null;
try {
os = new FileOutputStream(file); // depends on control dependency: [try], data = [none]
PrintWriter printWriter = new PrintWriter(new OutputStream... |
public class class_name {
public static Object callMethod(Context cx, Scriptable obj,
String methodName,
Object[] args)
{
Object funObj = getProperty(obj, methodName);
if (!(funObj instanceof Function)) {
throw Scri... | public class class_name {
public static Object callMethod(Context cx, Scriptable obj,
String methodName,
Object[] args)
{
Object funObj = getProperty(obj, methodName);
if (!(funObj instanceof Function)) {
throw Scri... |
public class class_name {
@Override
public EClass getIfcStructuralLoadSingleForceWarping() {
if (ifcStructuralLoadSingleForceWarpingEClass == null) {
ifcStructuralLoadSingleForceWarpingEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(650);
}
retu... | public class class_name {
@Override
public EClass getIfcStructuralLoadSingleForceWarping() {
if (ifcStructuralLoadSingleForceWarpingEClass == null) {
ifcStructuralLoadSingleForceWarpingEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(650);
// depends ... |
public class class_name {
private void removeFromServerContextBindingMap(String bindingName,
boolean explicit)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeFromServerContextBindingMap : " + bindingName ... | public class class_name {
private void removeFromServerContextBindingMap(String bindingName,
boolean explicit)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeFromServerContextBindingMap : " + bindingName ... |
public class class_name {
private String processExpression(String expressionString) {
expressionString = expressionString == null ? "" : expressionString.trim();
if (expressionString.isEmpty()) {
if (isAttributeBinding(currentAttribute)) {
logger.error(
"Empty expression in template p... | public class class_name {
private String processExpression(String expressionString) {
expressionString = expressionString == null ? "" : expressionString.trim();
if (expressionString.isEmpty()) {
if (isAttributeBinding(currentAttribute)) {
logger.error(
"Empty expression in template p... |
public class class_name {
public static <T extends ImageBase<T>> ImageDistort<T,T>
rectifyImage(CameraPinholeBrown param, FMatrixRMaj rectify , BorderType borderType, ImageType<T> imageType)
{
boolean skip = borderType == BorderType.SKIP;
if( skip ) {
borderType = BorderType.EXTENDED;
}
InterpolatePixel<T... | public class class_name {
public static <T extends ImageBase<T>> ImageDistort<T,T>
rectifyImage(CameraPinholeBrown param, FMatrixRMaj rectify , BorderType borderType, ImageType<T> imageType)
{
boolean skip = borderType == BorderType.SKIP;
if( skip ) {
borderType = BorderType.EXTENDED; // depends on control de... |
public class class_name {
public int lengthOf(String value) {
int length = 0;
if (value != null) {
length = value.length();
}
return length;
} } | public class class_name {
public int lengthOf(String value) {
int length = 0;
if (value != null) {
length = value.length(); // depends on control dependency: [if], data = [none]
}
return length;
} } |
public class class_name {
public void marshall(DatabaseInput databaseInput, ProtocolMarshaller protocolMarshaller) {
if (databaseInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(databaseInput... | public class class_name {
public void marshall(DatabaseInput databaseInput, ProtocolMarshaller protocolMarshaller) {
if (databaseInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(databaseInput... |
public class class_name {
public static List<HttpRequestBase> parseJobCallbackProperties(final Props props,
final JobCallbackStatusEnum status, final Map<String, String> contextInfo,
final int maxNumCallback, final Logger privateLogger) {
String callbackUrl = null;
if (!isThereJobCallbackProperty(... | public class class_name {
public static List<HttpRequestBase> parseJobCallbackProperties(final Props props,
final JobCallbackStatusEnum status, final Map<String, String> contextInfo,
final int maxNumCallback, final Logger privateLogger) {
String callbackUrl = null;
if (!isThereJobCallbackProperty(... |
public class class_name {
public static String validate(String zahl) {
try {
return Geldbetrag.valueOf(zahl).toString();
} catch (IllegalArgumentException ex) {
throw new InvalidValueException(zahl, "money_amount", ex);
}
} } | public class class_name {
public static String validate(String zahl) {
try {
return Geldbetrag.valueOf(zahl).toString(); // depends on control dependency: [try], data = [none]
} catch (IllegalArgumentException ex) {
throw new InvalidValueException(zahl, "money_amount", ex);
... |
public class class_name {
public String get(final String aMessage, final File... aFileArray) {
final String[] details = new String[aFileArray.length];
for (int index = 0; index < details.length; index++) {
details[index] = aFileArray[index].getAbsolutePath();
}
LOGGER.debu... | public class class_name {
public String get(final String aMessage, final File... aFileArray) {
final String[] details = new String[aFileArray.length];
for (int index = 0; index < details.length; index++) {
details[index] = aFileArray[index].getAbsolutePath(); // depends on control dependen... |
public class class_name {
protected Boolean isOverWritingInherited(int flags) {
if ((flags & CmsAccessControlEntry.ACCESS_FLAGS_OVERWRITE) > 0) {
return Boolean.TRUE;
}
return Boolean.FALSE;
} } | public class class_name {
protected Boolean isOverWritingInherited(int flags) {
if ((flags & CmsAccessControlEntry.ACCESS_FLAGS_OVERWRITE) > 0) {
return Boolean.TRUE; // depends on control dependency: [if], data = [none]
}
return Boolean.FALSE;
} } |
public class class_name {
private List<XMLFilter> getProcessingPipe(final URI fileToParse) {
final List<XMLFilter> pipe = new ArrayList<>();
if (forceUnique) {
forceUniqueFilter = new ForceUniqueFilter();
forceUniqueFilter.setLogger(logger);
forceUniqueFilter.setJob... | public class class_name {
private List<XMLFilter> getProcessingPipe(final URI fileToParse) {
final List<XMLFilter> pipe = new ArrayList<>();
if (forceUnique) {
forceUniqueFilter = new ForceUniqueFilter(); // depends on control dependency: [if], data = [none]
forceUniqueFilter.s... |
public class class_name {
protected void loadDefaultConfigurations() {
if (JK.getURL(DEFAULT_LABLES_FILE_NAME) != null) {
logger.debug("Load default lables from : " + DEFAULT_LABLES_FILE_NAME);
addLables(JKIOUtil.readPropertiesFile(DEFAULT_LABLES_FILE_NAME));
}
} } | public class class_name {
protected void loadDefaultConfigurations() {
if (JK.getURL(DEFAULT_LABLES_FILE_NAME) != null) {
logger.debug("Load default lables from : " + DEFAULT_LABLES_FILE_NAME);
// depends on control dependency: [if], data = [none]
addLables(JKIOUtil.readPropertiesFile(DEFAULT_LABLES_FILE_NA... |
public class class_name {
public void garbageCollection() {
// number of tiles to remove from cache
int toBeRemoved = Integer.MAX_VALUE; // MAX_VALUE for stressed memory case
final int size = mCachedTiles.size();
if (!mStressedMemory) {
toBeRemoved = size - mCapacity;
if (toBeRemoved <= 0) {
return;
... | public class class_name {
public void garbageCollection() {
// number of tiles to remove from cache
int toBeRemoved = Integer.MAX_VALUE; // MAX_VALUE for stressed memory case
final int size = mCachedTiles.size();
if (!mStressedMemory) {
toBeRemoved = size - mCapacity; // depends on control dependency: [if],... |
public class class_name {
public final boolean onActivityResult(Activity currentActivity, int requestCode, int resultCode, Intent data) {
Validate.notNull(currentActivity, "currentActivity");
initializeStaticContext(currentActivity);
synchronized (lock) {
if (pendingAuthorizationR... | public class class_name {
public final boolean onActivityResult(Activity currentActivity, int requestCode, int resultCode, Intent data) {
Validate.notNull(currentActivity, "currentActivity");
initializeStaticContext(currentActivity);
synchronized (lock) {
if (pendingAuthorizationR... |
public class class_name {
public static String prettyMethodSignature(ClassSymbol origin, MethodSymbol m) {
StringBuilder sb = new StringBuilder();
if (m.isConstructor()) {
Name name = m.owner.enclClass().getSimpleName();
if (name.isEmpty()) {
// use the superclass name of anonymous classes
... | public class class_name {
public static String prettyMethodSignature(ClassSymbol origin, MethodSymbol m) {
StringBuilder sb = new StringBuilder();
if (m.isConstructor()) {
Name name = m.owner.enclClass().getSimpleName();
if (name.isEmpty()) {
// use the superclass name of anonymous classes
... |
public class class_name {
public static KeyStroke fromString(String keyStr) {
String keyStrLC = keyStr.toLowerCase();
KeyStroke k;
if (keyStr.length() == 1) {
k = new KeyStroke(KeyType.Character, keyStr.charAt(0), false, false, false);
} else if (keyStr.startsWith("<") && ke... | public class class_name {
public static KeyStroke fromString(String keyStr) {
String keyStrLC = keyStr.toLowerCase();
KeyStroke k;
if (keyStr.length() == 1) {
k = new KeyStroke(KeyType.Character, keyStr.charAt(0), false, false, false); // depends on control dependency: [if], data = ... |
public class class_name {
public PatchRuleGroup withPatchRules(PatchRule... patchRules) {
if (this.patchRules == null) {
setPatchRules(new com.amazonaws.internal.SdkInternalList<PatchRule>(patchRules.length));
}
for (PatchRule ele : patchRules) {
this.patchRules.add(ele)... | public class class_name {
public PatchRuleGroup withPatchRules(PatchRule... patchRules) {
if (this.patchRules == null) {
setPatchRules(new com.amazonaws.internal.SdkInternalList<PatchRule>(patchRules.length)); // depends on control dependency: [if], data = [none]
}
for (PatchRule el... |
public class class_name {
private PVPanel createVisualization(final ProtovisWidget graphWidget) {
final PVPanel vis = graphWidget.getPVPanel()
.width(400)
.height(30)
.margin(20)
.left(100) // translate(_,y)
.top(
... | public class class_name {
private PVPanel createVisualization(final ProtovisWidget graphWidget) {
final PVPanel vis = graphWidget.getPVPanel()
.width(400)
.height(30)
.margin(20)
.left(100) // translate(_,y)
.top(
... |
public class class_name {
public INDArray inferVector(LabelledDocument document, double learningRate, double minLearningRate,
int iterations) {
if (document.getReferencedContent() != null && !document.getReferencedContent().isEmpty()) {
return inferVector(document.getReferencedC... | public class class_name {
public INDArray inferVector(LabelledDocument document, double learningRate, double minLearningRate,
int iterations) {
if (document.getReferencedContent() != null && !document.getReferencedContent().isEmpty()) {
return inferVector(document.getReferencedC... |
public class class_name {
public static NumberFormat getNumberFormat(final Element element) {
if (XMLTags.FORMAT.equals(element.getName())) {
return createNumberFormat(element);
}
Element child = element.getChild(XMLTags.FORMAT);
if (child != null) {
return createNumberFormat(child);
}
return... | public class class_name {
public static NumberFormat getNumberFormat(final Element element) {
if (XMLTags.FORMAT.equals(element.getName())) {
return createNumberFormat(element);
// depends on control dependency: [if], data = [none]
}
Element child = element.getChild(XMLTags.FORMAT);
if (child != null) ... |
public class class_name {
public void marshall(UpdateServerRequest updateServerRequest, ProtocolMarshaller protocolMarshaller) {
if (updateServerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(UpdateServerRequest updateServerRequest, ProtocolMarshaller protocolMarshaller) {
if (updateServerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public static void pack(ZipEntrySource[] entries, File zip) {
if (log.isDebugEnabled()) {
log.debug("Creating '{}' from {}.", zip, Arrays.asList(entries));
}
OutputStream out = null;
try {
out = new BufferedOutputStream(new FileOutputStream(zip));
pack(entri... | public class class_name {
public static void pack(ZipEntrySource[] entries, File zip) {
if (log.isDebugEnabled()) {
log.debug("Creating '{}' from {}.", zip, Arrays.asList(entries)); // depends on control dependency: [if], data = [none]
}
OutputStream out = null;
try {
out = new BufferedOut... |
public class class_name {
private static Map<Object, Object> getAllFieldsByClassIntern (Class<?> pvClass, Map<Object, Object> pvFieldsMap) {
putAllFieldsIntern( pvClass.getFields(), pvFieldsMap) ;
putAllFieldsIntern( pvClass.getDeclaredFields(), pvFieldsMap);
if (!(pvClass.getSuperclass().equals(Object.... | public class class_name {
private static Map<Object, Object> getAllFieldsByClassIntern (Class<?> pvClass, Map<Object, Object> pvFieldsMap) {
putAllFieldsIntern( pvClass.getFields(), pvFieldsMap) ;
putAllFieldsIntern( pvClass.getDeclaredFields(), pvFieldsMap);
if (!(pvClass.getSuperclass().equals(Object.... |
public class class_name {
@Deprecated
public CursorIterator<T> iterate(final Txn<T> txn, final T key,
final IteratorType type) {
if (SHOULD_CHECK) {
requireNonNull(type);
}
final KeyRange<T> range;
if (type == FORWARD) {
range = key == null ? all() : at... | public class class_name {
@Deprecated
public CursorIterator<T> iterate(final Txn<T> txn, final T key,
final IteratorType type) {
if (SHOULD_CHECK) {
requireNonNull(type); // depends on control dependency: [if], data = [none]
}
final KeyRange<T> range;
if (typ... |
public class class_name {
public Apptentive.DateTime getTimeAtInstallTotal() {
// Simply return the first item's timestamp, if there is one.
if (versionHistoryItems.size() > 0) {
return new Apptentive.DateTime(versionHistoryItems.get(0).getTimestamp());
}
return new Apptentive.DateTime(Util.currentTimeSecon... | public class class_name {
public Apptentive.DateTime getTimeAtInstallTotal() {
// Simply return the first item's timestamp, if there is one.
if (versionHistoryItems.size() > 0) {
return new Apptentive.DateTime(versionHistoryItems.get(0).getTimestamp()); // depends on control dependency: [if], data = [0)]
}
... |
public class class_name {
@Override
public boolean isCDIEnabled(String bdaId) {
boolean hasBeans = false;
//the top level isCDIEnabled can fail faster
if (isCDIEnabled()) {
Boolean hasBeansBoolean = cdiStatusMap.get(bdaId);
if (hasBeansBoolean == null) {
... | public class class_name {
@Override
public boolean isCDIEnabled(String bdaId) {
boolean hasBeans = false;
//the top level isCDIEnabled can fail faster
if (isCDIEnabled()) {
Boolean hasBeansBoolean = cdiStatusMap.get(bdaId);
if (hasBeansBoolean == null) {
... |
public class class_name {
private void readMessage() throws IOException {
while (true) {
if (closed) throw new IOException("closed");
if (frameLength > 0) {
source.readFully(messageFrameBuffer, frameLength);
if (!isClient) {
messageFrameBuffer.readAndWriteUnsafe(maskCursor);... | public class class_name {
private void readMessage() throws IOException {
while (true) {
if (closed) throw new IOException("closed");
if (frameLength > 0) {
source.readFully(messageFrameBuffer, frameLength); // depends on control dependency: [if], data = [none]
if (!isClient) {
... |
public class class_name {
private BudgetSummary getBudgetSummary(BudgetSummaryDto budgetSummaryData) {
BudgetSummary budgetSummary = BudgetSummary.Factory.newInstance();
SummaryDataType summaryPersonnel = SummaryDataType.Factory.newInstance();
SummaryDataType summarySeniorKey = SummaryDataType... | public class class_name {
private BudgetSummary getBudgetSummary(BudgetSummaryDto budgetSummaryData) {
BudgetSummary budgetSummary = BudgetSummary.Factory.newInstance();
SummaryDataType summaryPersonnel = SummaryDataType.Factory.newInstance();
SummaryDataType summarySeniorKey = SummaryDataType... |
public class class_name {
public static void dumpNodeAnim(AiNodeAnim nodeAnim) {
for (int i = 0; i < nodeAnim.getNumPosKeys(); i++) {
System.out.println(i + ": " + nodeAnim.getPosKeyTime(i) +
" ticks, " + nodeAnim.getPosKeyVector(i, Jassimp.BUILTIN));
}
} } | public class class_name {
public static void dumpNodeAnim(AiNodeAnim nodeAnim) {
for (int i = 0; i < nodeAnim.getNumPosKeys(); i++) {
System.out.println(i + ": " + nodeAnim.getPosKeyTime(i) +
" ticks, " + nodeAnim.getPosKeyVector(i, Jassimp.BUILTIN)); // depends on control depe... |
public class class_name {
public void setInstructions(String instructions) {
// Split the instructions into multiple instructions for each existent newline
ArrayList<String> instructionsList = new ArrayList<>();
StringTokenizer st = new StringTokenizer(instructions, "\n");
while (st.has... | public class class_name {
public void setInstructions(String instructions) {
// Split the instructions into multiple instructions for each existent newline
ArrayList<String> instructionsList = new ArrayList<>();
StringTokenizer st = new StringTokenizer(instructions, "\n");
while (st.has... |
public class class_name {
protected String buildDefaultMavenCoordinates() {
StringBuilder sb = new StringBuilder();
sb.append(getGroupId()).append(":");
sb.append(getArtifactId());
if (StringUtils.isNotBlank(getType())) {
sb.append(":").append(getType());
}
i... | public class class_name {
protected String buildDefaultMavenCoordinates() {
StringBuilder sb = new StringBuilder();
sb.append(getGroupId()).append(":");
sb.append(getArtifactId());
if (StringUtils.isNotBlank(getType())) {
sb.append(":").append(getType()); // depends on contr... |
public class class_name {
private static int[] distributedSizes(List formSpecs,
int totalSize, int totalPrefSize,
int[] inputSizes) {
double totalFreeSpace = totalSize - totalPrefSize;
// Do nothing if there's no free space.
if (totalFreeSpace < 0) {
return i... | public class class_name {
private static int[] distributedSizes(List formSpecs,
int totalSize, int totalPrefSize,
int[] inputSizes) {
double totalFreeSpace = totalSize - totalPrefSize;
// Do nothing if there's no free space.
if (totalFreeSpace < 0) {
return i... |
public class class_name {
public long updateGameInfo(GameInfo gameInfo){
HMSAgentLog.i("updateGameInfo:gameInfo=" + StrUtils.objDesc(gameInfo));
HuaweiApiClient client = ApiClientMgr.INST.getApiClient();
if (client == null || !ApiClientMgr.INST.isConnect(client)) {
HMSAgentLog... | public class class_name {
public long updateGameInfo(GameInfo gameInfo){
HMSAgentLog.i("updateGameInfo:gameInfo=" + StrUtils.objDesc(gameInfo));
HuaweiApiClient client = ApiClientMgr.INST.getApiClient();
if (client == null || !ApiClientMgr.INST.isConnect(client)) {
HMSAgentLog... |
public class class_name {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
if (!completed && !cancelled) {
stop();
cancelled = true;
return true;
}
return false;
} } | public class class_name {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
if (!completed && !cancelled) {
stop(); // depends on control dependency: [if], data = [none]
cancelled = true; // depends on control dependency: [if], data = [none]
return true; /... |
public class class_name {
public String getReplyString() {
Object replyString = getHeader(FtpMessageHeaders.FTP_REPLY_STRING);
if (replyString != null) {
return replyString.toString();
}
return null;
} } | public class class_name {
public String getReplyString() {
Object replyString = getHeader(FtpMessageHeaders.FTP_REPLY_STRING);
if (replyString != null) {
return replyString.toString(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public String[] generateFieldNameCodes(final String objectName, final String field) {
final List<String> codeList = new ArrayList<String>();
codeList.addAll(Arrays.asList(generateCodes(null, objectName, field, null)));
// オブジェクト名の最後の値を取得する
... | public class class_name {
public String[] generateFieldNameCodes(final String objectName, final String field) {
final List<String> codeList = new ArrayList<String>();
codeList.addAll(Arrays.asList(generateCodes(null, objectName, field, null)));
// オブジェクト名の最後の値を取得する
... |
public class class_name {
private void setupResponse(ByteArrayOutputStream response, Call call, Status status, IOReadableWritable rv,
String errorClass, String error) throws IOException {
response.reset();
DataOutputStream out = new DataOutputStream(response);
out.writeInt(call.id); // write call id
out.wri... | public class class_name {
private void setupResponse(ByteArrayOutputStream response, Call call, Status status, IOReadableWritable rv,
String errorClass, String error) throws IOException {
response.reset();
DataOutputStream out = new DataOutputStream(response);
out.writeInt(call.id); // write call id
out.wri... |
public class class_name {
@SuppressWarnings("unchecked")
private boolean isAnySecureTransportAddressAvailable(Map<String, Object> extraConfig) {
Map<String, List<TransportAddress>> addrMap = (Map<String, List<TransportAddress>>) extraConfig.get(ADDR_KEY);
if (addrMap != null) {
Set<Stri... | public class class_name {
@SuppressWarnings("unchecked")
private boolean isAnySecureTransportAddressAvailable(Map<String, Object> extraConfig) {
Map<String, List<TransportAddress>> addrMap = (Map<String, List<TransportAddress>>) extraConfig.get(ADDR_KEY);
if (addrMap != null) {
Set<Stri... |
public class class_name {
@Nonnull
private static Configuration _unmarshallConfiguration (@WillClose @Nonnull final InputStream aIS)
{
ValueEnforcer.notNull (aIS, "InputStream");
try
{
final JAXBContext ctx = JAXBContextCache.getInstance ()
.getFromC... | public class class_name {
@Nonnull
private static Configuration _unmarshallConfiguration (@WillClose @Nonnull final InputStream aIS)
{
ValueEnforcer.notNull (aIS, "InputStream");
try
{
final JAXBContext ctx = JAXBContextCache.getInstance ()
.getFromC... |
public class class_name {
private <T extends BaseProxy> AutoBean<T> cloneBeanAndCollections(final AutoBean<T> toClone) {
final AutoBean<T> clone = toClone.getFactory().create(toClone.getType());
clone.setTag(STABLE_ID, toClone.getTag(STABLE_ID));
clone.setTag(Constants.VERSION_PROPERTY_B64, toClone.getTag(... | public class class_name {
private <T extends BaseProxy> AutoBean<T> cloneBeanAndCollections(final AutoBean<T> toClone) {
final AutoBean<T> clone = toClone.getFactory().create(toClone.getType());
clone.setTag(STABLE_ID, toClone.getTag(STABLE_ID));
clone.setTag(Constants.VERSION_PROPERTY_B64, toClone.getTag(... |
public class class_name {
private void detectImplmentedExtension() {
if (isImplExtRegistered == false) {
Object o = getThis();
Class thisClass = o.getClass();
// superclass interfaces
Class[] declared = thisClass.getSuperclass().getInterfaces();
... | public class class_name {
private void detectImplmentedExtension() {
if (isImplExtRegistered == false) {
Object o = getThis();
Class thisClass = o.getClass();
// superclass interfaces
Class[] declared = thisClass.getSuperclass().getInterfaces();
... |
public class class_name {
@SuppressWarnings("unchecked")
private <T> Optional<T> getValue(Object object, Supplier<Object> method, Class<T> cls) {
T source = null;
if (cls.isInstance(method.get())) {
source = (T) method.get();
} else {
if (CoreParameters.DEVELOPER_MO... | public class class_name {
@SuppressWarnings("unchecked")
private <T> Optional<T> getValue(Object object, Supplier<Object> method, Class<T> cls) {
T source = null;
if (cls.isInstance(method.get())) {
source = (T) method.get(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public KeePassFile openDatabase(String password, InputStream keyFileStream) {
if (password == null) {
throw new IllegalArgumentException(MSG_EMPTY_MASTER_KEY);
}
if (keyFileStream == null) {
throw new IllegalArgumentException("You must prov... | public class class_name {
public KeePassFile openDatabase(String password, InputStream keyFileStream) {
if (password == null) {
throw new IllegalArgumentException(MSG_EMPTY_MASTER_KEY);
}
if (keyFileStream == null) {
throw new IllegalArgumentException("You must prov... |
public class class_name {
public static void addThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.add(tis);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "A ThreadIdentityService implementation ... | public class class_name {
public static void addThreadIdentityService(ThreadIdentityService tis) {
if (tis != null) {
threadIdentityServices.add(tis); // depends on control dependency: [if], data = [(tis]
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... |
public class class_name {
private static String getWindowsUserShell()
{
if( null != m_SHELL )
{
return m_SHELL;
}
if( -1 != OSNAME.indexOf( "98" )
|| -1 != OSNAME.indexOf( "95" )
|| -1 != OSNAME.indexOf( "Me" ) )
{
m_SHELL = "... | public class class_name {
private static String getWindowsUserShell()
{
if( null != m_SHELL )
{
return m_SHELL; // depends on control dependency: [if], data = [none]
}
if( -1 != OSNAME.indexOf( "98" )
|| -1 != OSNAME.indexOf( "95" )
|| -1 != OSNA... |
public class class_name {
public EClass getIfcSectionReinforcementProperties() {
if (ifcSectionReinforcementPropertiesEClass == null) {
ifcSectionReinforcementPropertiesEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(505);
}
return ifcSection... | public class class_name {
public EClass getIfcSectionReinforcementProperties() {
if (ifcSectionReinforcementPropertiesEClass == null) {
ifcSectionReinforcementPropertiesEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(505);
// depends on control de... |
public class class_name {
@ForbiddenWhenBuilding
@Override
public String getVar() {
fwba.checkNotForbidden();
if (cachedVar != null) {
return cachedVar;
} else {
cachedVar = StringUtil.escape(columnConfig.getFieldName());
return cachedVar;
}
... | public class class_name {
@ForbiddenWhenBuilding
@Override
public String getVar() {
fwba.checkNotForbidden();
if (cachedVar != null) {
return cachedVar; // depends on control dependency: [if], data = [none]
} else {
cachedVar = StringUtil.escape(columnConfig.getF... |
public class class_name {
public static AWSCredentialsProvider getCredentialsProvider(
AmazonWebServiceRequest req,
AWSCredentialsProvider base) {
if (req != null && req.getRequestCredentialsProvider() != null) {
return req.getRequestCredentialsProvider();
}
... | public class class_name {
public static AWSCredentialsProvider getCredentialsProvider(
AmazonWebServiceRequest req,
AWSCredentialsProvider base) {
if (req != null && req.getRequestCredentialsProvider() != null) {
return req.getRequestCredentialsProvider(); // depends on con... |
public class class_name {
public static final DoubleMatrix1D zMult(final DoubleMatrix2D A, final DoubleMatrix1D a, final DoubleMatrix1D b, final double beta){
if(A.columns()!=a.size()){
throw new IllegalArgumentException("Wrong matrix dimensions. Number of columns must be " + a.size() + ", found: " + A.column... | public class class_name {
public static final DoubleMatrix1D zMult(final DoubleMatrix2D A, final DoubleMatrix1D a, final DoubleMatrix1D b, final double beta){
if(A.columns()!=a.size()){
throw new IllegalArgumentException("Wrong matrix dimensions. Number of columns must be " + a.size() + ", found: " + A.column... |
public class class_name {
public boolean isAllowed(final ModelNode operationObject) {
if(alternatives != null) {
for(final String alternative : alternatives) {
if(operationObject.hasDefined(alternative)) {
return false;
}
}
}
... | public class class_name {
public boolean isAllowed(final ModelNode operationObject) {
if(alternatives != null) {
for(final String alternative : alternatives) {
if(operationObject.hasDefined(alternative)) {
return false; // depends on control dependency: [if], dat... |
public class class_name {
private List<EthereumTransaction> parseRLPTransactions(RLPList rlpTransactions) {
ArrayList<EthereumTransaction> result = new ArrayList<>(rlpTransactions.getRlpList().size());
for (int i=0;i<rlpTransactions.getRlpList().size();i++) {
RLPList currenTransactionRLP = (RLPList) rlpTransact... | public class class_name {
private List<EthereumTransaction> parseRLPTransactions(RLPList rlpTransactions) {
ArrayList<EthereumTransaction> result = new ArrayList<>(rlpTransactions.getRlpList().size());
for (int i=0;i<rlpTransactions.getRlpList().size();i++) {
RLPList currenTransactionRLP = (RLPList) rlpTransact... |
public class class_name {
private static InputStream findFileInClasspath(String fileName) {
InputStream is = null;
try {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
is = classLoader.getResourceAsStream(fileName);
return is;
} catch (Exception ex) {
log.error(String.... | public class class_name {
private static InputStream findFileInClasspath(String fileName) {
InputStream is = null;
try {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
is = classLoader.getResourceAsStream(fileName); // depends on control dependency: [try], data = [none]
retur... |
public class class_name {
@Override
public void visitCode(Code obj) {
fbInfo.clear();
loadedReg = -1;
CodeException[] exc = obj.getExceptionTable();
if (exc != null) {
for (CodeException ce : exc) {
if ((ce.getCatchType() == 0) && (ce.getStartPC() == ce.... | public class class_name {
@Override
public void visitCode(Code obj) {
fbInfo.clear();
loadedReg = -1;
CodeException[] exc = obj.getExceptionTable();
if (exc != null) {
for (CodeException ce : exc) {
if ((ce.getCatchType() == 0) && (ce.getStartPC() == ce.... |
public class class_name {
private boolean canScanNode(StructuralNode node) {
if (node == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring null node");
}
return false;
}
HistoryReference hRef = node.getHistoryReference();
... | public class class_name {
private boolean canScanNode(StructuralNode node) {
if (node == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring null node");
// depends on control dependency: [if], data = [none]
}
return false;
// depends on control dep... |
public class class_name {
private void enhanceFAB(final FloatingActionButton fab, int dx, int dy) {
if (isEnhancedFAB() && getFab() != null) {
final FloatingActionButton mFloatingActionButton = this.fab;
if (getLinearLayoutManager() != null) {
if (dy > 0) {
... | public class class_name {
private void enhanceFAB(final FloatingActionButton fab, int dx, int dy) {
if (isEnhancedFAB() && getFab() != null) {
final FloatingActionButton mFloatingActionButton = this.fab;
if (getLinearLayoutManager() != null) {
if (dy > 0) {
... |
public class class_name {
public static Double getDiskUsage() {
if (!OSInfo.isLinux() && !OSInfo.isMac()) {
return 0.0;
}
try {
String output = SystemOperation.exec("df -h " + duHome);
if (output != null) {
String[] lines = output.split("[\\r\... | public class class_name {
public static Double getDiskUsage() {
if (!OSInfo.isLinux() && !OSInfo.isMac()) {
return 0.0; // depends on control dependency: [if], data = [none]
}
try {
String output = SystemOperation.exec("df -h " + duHome);
if (output != null) ... |
public class class_name {
public static Predicate suffixes(final String... paths) {
if(paths.length == 1) {
return suffix(paths[0]);
}
final PathSuffixPredicate[] predicates = new PathSuffixPredicate[paths.length];
for (int i = 0; i < paths.length; ++i) {
predica... | public class class_name {
public static Predicate suffixes(final String... paths) {
if(paths.length == 1) {
return suffix(paths[0]); // depends on control dependency: [if], data = [none]
}
final PathSuffixPredicate[] predicates = new PathSuffixPredicate[paths.length];
for (i... |
public class class_name {
public static List<Annotation> loadDAOGeneratorAnnotations(Field field) {
// Liste des annotations retrouvees
List<Annotation> daoAnnotations = new ArrayList<Annotation>();
// Si l'objet est null
if(field == null) {
// On retourne une liste vide
return daoAnno... | public class class_name {
public static List<Annotation> loadDAOGeneratorAnnotations(Field field) {
// Liste des annotations retrouvees
List<Annotation> daoAnnotations = new ArrayList<Annotation>();
// Si l'objet est null
if(field == null) {
// On retourne une liste vide
return daoAnno... |
public class class_name {
private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
throw new Error(message);
} } | public class class_name {
private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
// depends on control dependency: [try], data = [none]
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
// depends... |
public class class_name {
public static Expression attributeValue(Data data, TagLibTag tag, String type, boolean parseExpression, boolean isNonName, Expression noExpression) throws TemplateException {
Expression expr;
try {
ExprTransformer transfomer = null;
if (parseExpression) {
transfomer = tag.getTag... | public class class_name {
public static Expression attributeValue(Data data, TagLibTag tag, String type, boolean parseExpression, boolean isNonName, Expression noExpression) throws TemplateException {
Expression expr;
try {
ExprTransformer transfomer = null;
if (parseExpression) {
transfomer = tag.getTag... |
public class class_name {
@SuppressWarnings("PMD.GuardLogStatementJavaUtil")
@Override
public final void create(final Events event, final String userId) {
Validate.notNull(event, "The validated object 'event' is null");
Validate.notBlank(userId, "The validated character sequence 'userId' is nu... | public class class_name {
@SuppressWarnings("PMD.GuardLogStatementJavaUtil")
@Override
public final void create(final Events event, final String userId) {
Validate.notNull(event, "The validated object 'event' is null");
Validate.notBlank(userId, "The validated character sequence 'userId' is nu... |
public class class_name {
public void calcOffset(Container compAnchor, Point offset)
{
offset.x = 0;
offset.y = 0;
Container parent = this;
while (parent != null)
{
offset.x -= parent.getLocation().x;
offset.y -= parent.getLocation().y;
pa... | public class class_name {
public void calcOffset(Container compAnchor, Point offset)
{
offset.x = 0;
offset.y = 0;
Container parent = this;
while (parent != null)
{
offset.x -= parent.getLocation().x; // depends on control dependency: [while], data = [none]
... |
public class class_name {
public void setBarBorderColor(final Color COLOR) {
if (null == barBorderColor) {
_barBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
barBorderColor.set(COLOR);
}
} } | public class class_name {
public void setBarBorderColor(final Color COLOR) {
if (null == barBorderColor) {
_barBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR; // depends on control dependency: [if], data = [none]
fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: ... |
public class class_name {
public EClass getIfcStructuredDimensionCallout() {
if (ifcStructuredDimensionCalloutEClass == null) {
ifcStructuredDimensionCalloutEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(568);
}
return ifcStructuredDimension... | public class class_name {
public EClass getIfcStructuredDimensionCallout() {
if (ifcStructuredDimensionCalloutEClass == null) {
ifcStructuredDimensionCalloutEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(568);
// depends on control dependency: [i... |
public class class_name {
public static <T extends Enum<T> & HeaderKey> Map<T, StandardField> readHeaderEntries(
Class<T> clazz, SpecificationFormat specFormat,
List<String[]> specification, byte[] headerbytes, long headerOffset) {
assert clazz != null && specFormat != null && headerbytes != null;
/* initia... | public class class_name {
public static <T extends Enum<T> & HeaderKey> Map<T, StandardField> readHeaderEntries(
Class<T> clazz, SpecificationFormat specFormat,
List<String[]> specification, byte[] headerbytes, long headerOffset) {
assert clazz != null && specFormat != null && headerbytes != null;
/* initia... |
public class class_name {
protected void collectQueryParameters(HttpRequest request, HttpParameters out) {
String url = request.getRequestUrl();
int q = url.indexOf('?');
if (q >= 0) {
// Combine the URL query string with the other parameters:
out.putAll(OAuth.decodeFor... | public class class_name {
protected void collectQueryParameters(HttpRequest request, HttpParameters out) {
String url = request.getRequestUrl();
int q = url.indexOf('?');
if (q >= 0) {
// Combine the URL query string with the other parameters:
out.putAll(OAuth.decodeFor... |
public class class_name {
private static String mapUDTagSetToKaf(final String postag) {
if (postag.equalsIgnoreCase("ADV")) {
return "A"; // adverb
} else if (postag.equalsIgnoreCase("CONJ") || postag.equalsIgnoreCase("SCONJ")) {
return "C"; // conjunction
} else if (postag.equalsIgnoreCase("DE... | public class class_name {
private static String mapUDTagSetToKaf(final String postag) {
if (postag.equalsIgnoreCase("ADV")) {
return "A"; // adverb // depends on control dependency: [if], data = [none]
} else if (postag.equalsIgnoreCase("CONJ") || postag.equalsIgnoreCase("SCONJ")) {
return "C"; // ... |
public class class_name {
public @Nullable T invoke(@NotNull Object... args) {
checkNotNull(args);
Method method = target();
boolean accessible = method.isAccessible();
try {
makeAccessible(method);
Object returnValue = method.invoke(target, args);
return castSafely(returnValue, check... | public class class_name {
public @Nullable T invoke(@NotNull Object... args) {
checkNotNull(args);
Method method = target();
boolean accessible = method.isAccessible();
try {
makeAccessible(method); // depends on control dependency: [try], data = [none]
Object returnValue = method.invoke(ta... |
public class class_name {
protected Future<T> addToListeners(
final GenericCompletionListener<? extends Future<T>> listener) {
if (listener == null) {
throw new IllegalArgumentException("The listener can't be null.");
}
synchronized(this) {
listeners.add(listener);
}
if(isDone()) ... | public class class_name {
protected Future<T> addToListeners(
final GenericCompletionListener<? extends Future<T>> listener) {
if (listener == null) {
throw new IllegalArgumentException("The listener can't be null.");
}
synchronized(this) {
listeners.add(listener);
}
if(isDone()) ... |
public class class_name {
private void activateFirstOnlyAliasOfKeyStore(int ksIndex) {
if (ksIndex < 0 || ksIndex >= keyStoreList.getModel().getSize()) {
return;
}
keyStoreList.setSelectedIndex(ksIndex);
if (aliasTable.getRowCount() != 0) {
aliasTable.setRowSelectionInterval(0, 0);
if (alia... | public class class_name {
private void activateFirstOnlyAliasOfKeyStore(int ksIndex) {
if (ksIndex < 0 || ksIndex >= keyStoreList.getModel().getSize()) {
return;
// depends on control dependency: [if], data = [none]
}
keyStoreList.setSelectedIndex(ksIndex);
if (aliasTable.getRowCount() != 0) {
al... |
public class class_name {
public boolean cancel(boolean setFlag) {
final AtomicInteger stateRef = this.stateRef;
int oldVal, newVal;
do {
oldVal = stateRef.get();
if (oldVal == ST_WAITING) {
newVal = ST_CANCELLED;
} else if (oldVal == ST_CANCE... | public class class_name {
public boolean cancel(boolean setFlag) {
final AtomicInteger stateRef = this.stateRef;
int oldVal, newVal;
do {
oldVal = stateRef.get();
if (oldVal == ST_WAITING) {
newVal = ST_CANCELLED; // depends on control dependency: [if], d... |
public class class_name {
public boolean collectionExists(final String collectionName) {
Set<String> collectionNames = getCollectionNames();
for (final String name : collectionNames) {
if (name.equalsIgnoreCase(collectionName)) {
return true;
}
}
... | public class class_name {
public boolean collectionExists(final String collectionName) {
Set<String> collectionNames = getCollectionNames();
for (final String name : collectionNames) {
if (name.equalsIgnoreCase(collectionName)) {
return true; // depends on control dependency... |
public class class_name {
int readReferenceOrNull (Input input, Class type, boolean mayBeNull) {
if (type.isPrimitive()) type = getWrapperClass(type);
boolean referencesSupported = referenceResolver.useReferences(type);
int id;
if (mayBeNull) {
id = input.readVarInt(true);
if (id == NULL) {
if... | public class class_name {
int readReferenceOrNull (Input input, Class type, boolean mayBeNull) {
if (type.isPrimitive()) type = getWrapperClass(type);
boolean referencesSupported = referenceResolver.useReferences(type);
int id;
if (mayBeNull) {
id = input.readVarInt(true);
// depends on control depend... |
public class class_name {
public static byte[] stringUToByteArr(String s) {
char c;
byte[] b = new byte[2 * s.length()];
for (int i = 0; i < s.length(); i++) {
c = s.charAt(i);
b[2 * i + 1] = (byte) c;
b[2 * i] = (byte) (c >> 8);
}
return b;
} } | public class class_name {
public static byte[] stringUToByteArr(String s) {
char c;
byte[] b = new byte[2 * s.length()];
for (int i = 0; i < s.length(); i++) {
c = s.charAt(i);
// depends on control dependency: [for], data = [i]
b[2 * i + 1] = (byte) c;
// depends on control dependency: [... |
public class class_name {
public void marshall(Radios radios, ProtocolMarshaller protocolMarshaller) {
if (radios == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(radios.getWifi(), WIFI_BINDING);
... | public class class_name {
public void marshall(Radios radios, ProtocolMarshaller protocolMarshaller) {
if (radios == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(radios.getWifi(), WIFI_BINDING); /... |
public class class_name {
public void marshall(CreateDirectoryRequest createDirectoryRequest, ProtocolMarshaller protocolMarshaller) {
if (createDirectoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(CreateDirectoryRequest createDirectoryRequest, ProtocolMarshaller protocolMarshaller) {
if (createDirectoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
@Override
public Collection<Event> findEvents(SearchCriteria criteria) {
ensureInitialized();
Preconditions.checkNotNull(criteria, "criteria must be non-null");
Collection<Event> matches = new ArrayList<>();
User user = criteria.getUser();
DetectionPoint detectionPoin... | public class class_name {
@Override
public Collection<Event> findEvents(SearchCriteria criteria) {
ensureInitialized();
Preconditions.checkNotNull(criteria, "criteria must be non-null");
Collection<Event> matches = new ArrayList<>();
User user = criteria.getUser();
DetectionPoint detectionPoin... |
public class class_name {
protected synchronized WriterPoolMember makeNewWriterIfAppropriate() {
long now = System.currentTimeMillis();
lastWriterNeededTime = now;
if(currentActive < maxActive) {
currentActive++;
lastWriterRolloverTime = now;
return makeWriter();... | public class class_name {
protected synchronized WriterPoolMember makeNewWriterIfAppropriate() {
long now = System.currentTimeMillis();
lastWriterNeededTime = now;
if(currentActive < maxActive) {
currentActive++; // depends on control dependency: [if], data = [none]
lastWrite... |
public class class_name {
void computeSyndromes( GrowQueue_I8 input ,
GrowQueue_I8 ecc ,
GrowQueue_I8 syndromes)
{
syndromes.resize(syndromeLength());
for (int i = 0; i < syndromes.size; i++) {
int val = math.power(2,i);
syndromes.data[i] = (byte)math.polyEval(input,val);
syndromes.data... | public class class_name {
void computeSyndromes( GrowQueue_I8 input ,
GrowQueue_I8 ecc ,
GrowQueue_I8 syndromes)
{
syndromes.resize(syndromeLength());
for (int i = 0; i < syndromes.size; i++) {
int val = math.power(2,i);
syndromes.data[i] = (byte)math.polyEval(input,val); // depends on con... |
public class class_name {
public static JedisCluster newJedisCluster(String hostsAndPorts, String password,
long timeoutMs) {
final int maxTotal = Runtime.getRuntime().availableProcessors();
final int maxIdle = maxTotal / 2;
JedisPoolConfig poolConfig = new JedisPoolConfig();
... | public class class_name {
public static JedisCluster newJedisCluster(String hostsAndPorts, String password,
long timeoutMs) {
final int maxTotal = Runtime.getRuntime().availableProcessors();
final int maxIdle = maxTotal / 2;
JedisPoolConfig poolConfig = new JedisPoolConfig();
... |
public class class_name {
private V replaceNoCopyOrAwait(K key, V value) {
requireNonNull(value);
V copy = copyOf(value);
@SuppressWarnings("unchecked")
V[] replaced = (V[]) new Object[1];
cache.asMap().computeIfPresent(key, (k, expirable) -> {
if (!expirable.isEternal() && expirable.hasExpir... | public class class_name {
private V replaceNoCopyOrAwait(K key, V value) {
requireNonNull(value);
V copy = copyOf(value);
@SuppressWarnings("unchecked")
V[] replaced = (V[]) new Object[1];
cache.asMap().computeIfPresent(key, (k, expirable) -> {
if (!expirable.isEternal() && expirable.hasExpir... |
public class class_name {
@Override
public synchronized void processConnect(WebSocketChannel channel, WSURI uri, String[] protocols) {
LOG.entering(CLASS_NAME, "processConnect", new Object[] { uri, protocols });
try {
WebSocketNativeChannel nativeChannel = (WebSocketNativeChannel)chann... | public class class_name {
@Override
public synchronized void processConnect(WebSocketChannel channel, WSURI uri, String[] protocols) {
LOG.entering(CLASS_NAME, "processConnect", new Object[] { uri, protocols });
try {
WebSocketNativeChannel nativeChannel = (WebSocketNativeChannel)chann... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.