code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@GwtIncompatible("incompatible method")
private static void register(final Object value) {
Set<IDKey> registry = getRegistry();
if (registry == null) {
registry = new HashSet<>();
REGISTRY.set(registry);
}
registry.add(new IDKey(valu... | public class class_name {
@GwtIncompatible("incompatible method")
private static void register(final Object value) {
Set<IDKey> registry = getRegistry();
if (registry == null) {
registry = new HashSet<>(); // depends on control dependency: [if], data = [none]
REGISTRY.set(re... |
public class class_name {
protected void injectInstance(ManagedObject<?> managedObject, Object instance, InjectionTargetContext injectionContext) throws EJBException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "injectI... | public class class_name {
protected void injectInstance(ManagedObject<?> managedObject, Object instance, InjectionTargetContext injectionContext) throws EJBException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "injectI... |
public class class_name {
@Override
public EClass getIfcCompressor() {
if (ifcCompressorEClass == null) {
ifcCompressorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(115);
}
return ifcCompressorEClass;
} } | public class class_name {
@Override
public EClass getIfcCompressor() {
if (ifcCompressorEClass == null) {
ifcCompressorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(115);
// depends on control dependency: [if], data = [none]
}
return ifcCompre... |
public class class_name {
public void setBackupIds(java.util.Collection<String> backupIds) {
if (backupIds == null) {
this.backupIds = null;
return;
}
this.backupIds = new java.util.ArrayList<String>(backupIds);
} } | public class class_name {
public void setBackupIds(java.util.Collection<String> backupIds) {
if (backupIds == null) {
this.backupIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.backup... |
public class class_name {
public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == 0)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
keyArea.addKeyField(ID, DBConstants.ASCENDING);
}
if (iKeyArea == 1)
{
... | public class class_name {
public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == 0)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); // depends on control dependency: [if], data = [none]
keyArea.addKeyField(ID, DBConstants.ASCENDING); ... |
public class class_name {
public static String readString(ByteBuffer byteBuffer) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
int read;
while ((read = byteBuffer.get()) != 0) {
out.write(read);
}
return Utf8.convert(out.toByteArray());
} } | public class class_name {
public static String readString(ByteBuffer byteBuffer) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
int read;
while ((read = byteBuffer.get()) != 0) {
out.write(read); // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
private static boolean maybeInitMetaDataFromJsDoc(Builder builder, Node node) {
boolean messageHasDesc = false;
JSDocInfo info = node.getJSDocInfo();
if (info != null) {
String desc = info.getDescription();
if (desc != null) {
builder.setDesc(desc);
mes... | public class class_name {
private static boolean maybeInitMetaDataFromJsDoc(Builder builder, Node node) {
boolean messageHasDesc = false;
JSDocInfo info = node.getJSDocInfo();
if (info != null) {
String desc = info.getDescription();
if (desc != null) {
builder.setDesc(desc); // depends ... |
public class class_name {
public static void sendMimeMessage(MimeMessage mimeMessage) {
try {
Transport.send(mimeMessage);
} catch (MessagingException e) {
throw new IllegalStateException("Can not send message " + mimeMessage, e);
}
} } | public class class_name {
public static void sendMimeMessage(MimeMessage mimeMessage) {
try {
Transport.send(mimeMessage);
// depends on control dependency: [try], data = [none]
} catch (MessagingException e) {
throw new IllegalStateException("Can not send message " + mimeMe... |
public class class_name {
public void init(RecordOwnerParent parent, String strSourcePrefix)
{
super.init(parent, strSourcePrefix);
if (this.getProperty("dayOffset") != null)
dayOffset = Integer.parseInt(this.getProperty("dayOffset"));
if (this.getProperty("monthOffset") != null... | public class class_name {
public void init(RecordOwnerParent parent, String strSourcePrefix)
{
super.init(parent, strSourcePrefix);
if (this.getProperty("dayOffset") != null)
dayOffset = Integer.parseInt(this.getProperty("dayOffset"));
if (this.getProperty("monthOffset") != null... |
public class class_name {
public void install(@Observes(precedence = 90) CubeDockerConfiguration configuration,
ArquillianDescriptor arquillianDescriptor) {
DockerCompositions cubes = configuration.getDockerContainersContent();
final SeleniumContainers seleniumContainers =
Seleniu... | public class class_name {
public void install(@Observes(precedence = 90) CubeDockerConfiguration configuration,
ArquillianDescriptor arquillianDescriptor) {
DockerCompositions cubes = configuration.getDockerContainersContent();
final SeleniumContainers seleniumContainers =
Seleniu... |
public class class_name {
public Document makeGridForm() {
Element rootElem = new Element("gridForm");
Document doc = new Document(rootElem);
rootElem.setAttribute("location", gds.getLocation());
if (null != path)
rootElem.setAttribute("path", path);
// its all about grids
List<GridDatatype> gr... | public class class_name {
public Document makeGridForm() {
Element rootElem = new Element("gridForm");
Document doc = new Document(rootElem);
rootElem.setAttribute("location", gds.getLocation());
if (null != path)
rootElem.setAttribute("path", path);
// its all about grids
List<GridDatatype> gr... |
public class class_name {
public void get(final String path, final HttpResponseCallback callback) {
if (path == null) {
postCallbackOnMainThread(callback, new IllegalArgumentException("Path cannot be null"));
return;
}
final String url;
if (path.startsWith("http... | public class class_name {
public void get(final String path, final HttpResponseCallback callback) {
if (path == null) {
postCallbackOnMainThread(callback, new IllegalArgumentException("Path cannot be null")); // depends on control dependency: [if], data = [none]
return; // depends on co... |
public class class_name {
private void onTokenRefresh() {
if (enabledPushTypes == null) {
enabledPushTypes = this.deviceInfo.getEnabledPushTypes();
}
if (enabledPushTypes == null) return;
for (PushType pushType : enabledPushTypes) {
switch (pushType) {
... | public class class_name {
private void onTokenRefresh() {
if (enabledPushTypes == null) {
enabledPushTypes = this.deviceInfo.getEnabledPushTypes(); // depends on control dependency: [if], data = [none]
}
if (enabledPushTypes == null) return;
for (PushType pushType : enabledP... |
public class class_name {
private void removeInstancesFromContainers(PackingPlanBuilder packingPlanBuilder,
Map<String, Integer> componentsToScaleDown) {
for (String componentName : componentsToScaleDown.keySet()) {
int numInstancesToRemove = -componentsToScaleDown.get(componentName);
for (int j ... | public class class_name {
private void removeInstancesFromContainers(PackingPlanBuilder packingPlanBuilder,
Map<String, Integer> componentsToScaleDown) {
for (String componentName : componentsToScaleDown.keySet()) {
int numInstancesToRemove = -componentsToScaleDown.get(componentName);
for (int j ... |
public class class_name {
public void to(WebContext context) {
if (entity == null) {
return;
}
HttpServletResponse response = context.response();
try {
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-Type", mediaType);
if (status > 0) {
response.setStatus(status);
... | public class class_name {
public void to(WebContext context) {
if (entity == null) {
return; // depends on control dependency: [if], data = [none]
}
HttpServletResponse response = context.response();
try {
response.setCharacterEncoding("UTF-8"); // depends on control dependency: [try], data = [none... |
public class class_name {
public static Fraction of(final int whole, final int numerator, final int denominator, boolean reduce) {
if (denominator == 0) {
throw new ArithmeticException("The denominator must not be zero");
}
if (denominator < 0) {
throw new ArithmeticExc... | public class class_name {
public static Fraction of(final int whole, final int numerator, final int denominator, boolean reduce) {
if (denominator == 0) {
throw new ArithmeticException("The denominator must not be zero");
}
if (denominator < 0) {
throw new ArithmeticExc... |
public class class_name {
private static <L extends Annotation> String defineLimitStatement(final SQLiteModelMethod method, final JQL result, Class<L> annotation, Map<JQLDynamicStatementType, String> dynamicReplace) {
StringBuilder builder = new StringBuilder();
int pageSize = AnnotationUtility.extractAsInt(metho... | public class class_name {
private static <L extends Annotation> String defineLimitStatement(final SQLiteModelMethod method, final JQL result, Class<L> annotation, Map<JQLDynamicStatementType, String> dynamicReplace) {
StringBuilder builder = new StringBuilder();
int pageSize = AnnotationUtility.extractAsInt(metho... |
public class class_name {
public void marshall(SourceCredentialsInfo sourceCredentialsInfo, ProtocolMarshaller protocolMarshaller) {
if (sourceCredentialsInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(SourceCredentialsInfo sourceCredentialsInfo, ProtocolMarshaller protocolMarshaller) {
if (sourceCredentialsInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public void marshall(ListPhoneNumberOrdersRequest listPhoneNumberOrdersRequest, ProtocolMarshaller protocolMarshaller) {
if (listPhoneNumberOrdersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListPhoneNumberOrdersRequest listPhoneNumberOrdersRequest, ProtocolMarshaller protocolMarshaller) {
if (listPhoneNumberOrdersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Override
public int getBaseline(int width, int height) {
if (timeTextField.isVisible()) {
return timeTextField.getBaseline(width, height);
}
return super.getBaseline(width, height);
} } | public class class_name {
@Override
public int getBaseline(int width, int height) {
if (timeTextField.isVisible()) {
return timeTextField.getBaseline(width, height); // depends on control dependency: [if], data = [none]
}
return super.getBaseline(width, height);
} } |
public class class_name {
public static void generateInstructionsToUnpackArrayAccordingToDescriptor(MethodVisitor mv,
String toCallDescriptor,
int arrayVariableIndex) {
int arrayIndex = 0;
int descriptorIndex = 1;
char ch;
while ((ch = toCallDescriptor.charAt(descriptorIndex)) != ')') {
mv.visitVarIns... | public class class_name {
public static void generateInstructionsToUnpackArrayAccordingToDescriptor(MethodVisitor mv,
String toCallDescriptor,
int arrayVariableIndex) {
int arrayIndex = 0;
int descriptorIndex = 1;
char ch;
while ((ch = toCallDescriptor.charAt(descriptorIndex)) != ')') {
mv.visitVarIns... |
public class class_name {
public EClass getIfcPile() {
if (ifcPileEClass == null) {
ifcPileEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers()
.get(354);
}
return ifcPileEClass;
} } | public class class_name {
public EClass getIfcPile() {
if (ifcPileEClass == null) {
ifcPileEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers()
.get(354);
// depends on control dependency: [if], data = [none]
}
return ifcPileEClass;
} } |
public class class_name {
public DescribeFpgaImagesResult withFpgaImages(FpgaImage... fpgaImages) {
if (this.fpgaImages == null) {
setFpgaImages(new com.amazonaws.internal.SdkInternalList<FpgaImage>(fpgaImages.length));
}
for (FpgaImage ele : fpgaImages) {
this.fpgaImage... | public class class_name {
public DescribeFpgaImagesResult withFpgaImages(FpgaImage... fpgaImages) {
if (this.fpgaImages == null) {
setFpgaImages(new com.amazonaws.internal.SdkInternalList<FpgaImage>(fpgaImages.length)); // depends on control dependency: [if], data = [none]
}
for (Fp... |
public class class_name {
private static Method findMatchingMethod(Method originalMethod, String methodName, Type classToSearch, ResolutionContext ctx, Class<?> originalClass) {
// Check self
Method result = findMethodOnClass(originalMethod, methodName, classToSearch, ctx, originalClass);
// C... | public class class_name {
private static Method findMatchingMethod(Method originalMethod, String methodName, Type classToSearch, ResolutionContext ctx, Class<?> originalClass) {
// Check self
Method result = findMethodOnClass(originalMethod, methodName, classToSearch, ctx, originalClass);
// C... |
public class class_name {
public void setConf(Configuration conf) {
this.conf = conf;
String proxyStr = conf.get("hadoop.socks.server");
if ((proxyStr != null) && (proxyStr.length() > 0)) {
setProxy(proxyStr);
}
} } | public class class_name {
public void setConf(Configuration conf) {
this.conf = conf;
String proxyStr = conf.get("hadoop.socks.server");
if ((proxyStr != null) && (proxyStr.length() > 0)) {
setProxy(proxyStr); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public URL convert(String value) {
URL converted = null;
if (value != null) {
try {
converted = new URL(value);
} catch (MalformedURLException e) {
throw new IllegalArgumentException(e);
}
... | public class class_name {
@Override
public URL convert(String value) {
URL converted = null;
if (value != null) {
try {
converted = new URL(value); // depends on control dependency: [try], data = [none]
} catch (MalformedURLException e) {
thro... |
public class class_name {
public void setValue(String columnName, Object value) {
D6ModelClassFieldInfo fieldInfo = mFieldMap.get(columnName);
if (fieldInfo != null) {
fieldInfo.value = value;
}
else {
// case field info is null
fin... | public class class_name {
public void setValue(String columnName, Object value) {
D6ModelClassFieldInfo fieldInfo = mFieldMap.get(columnName);
if (fieldInfo != null) {
fieldInfo.value = value;
// depends on control dependency: [if], data = [none]
}
else {
... |
public class class_name {
public void addLocalizedFolder(String uri) {
m_localizedFolders.add(uri);
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_WORKPLACE_LOCALIZED_1, uri));
}
} } | public class class_name {
public void addLocalizedFolder(String uri) {
m_localizedFolders.add(uri);
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_WORKPLACE_LOCALIZED_1, uri)); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private static String nameWithoutPrefix(String name) {
if (name.startsWith("get")) {
name = name.substring(3);
} else {
assert name.startsWith("is");
name = name.substring(2);
}
return PropertyNames.decapitalizeLikeJavaBeans(name);
} } | public class class_name {
private static String nameWithoutPrefix(String name) {
if (name.startsWith("get")) {
name = name.substring(3); // depends on control dependency: [if], data = [none]
} else {
assert name.startsWith("is");
name = name.substring(2); // depends on control dependency: [if... |
public class class_name {
private StructureInterface findNcsRef(StructureInterface interf) {
if (!this.hasNcsOps()) {
return null;
}
String chainIName = interf.getMoleculeIds().getFirst();
String iOrigName = chainOrigNames.get(chainIName);
String chainJName = interf.getMoleculeIds().getSecond();
String... | public class class_name {
private StructureInterface findNcsRef(StructureInterface interf) {
if (!this.hasNcsOps()) {
return null; // depends on control dependency: [if], data = [none]
}
String chainIName = interf.getMoleculeIds().getFirst();
String iOrigName = chainOrigNames.get(chainIName);
String chai... |
public class class_name {
@Override
public int size() {
Iterator<E> iter = iterator();
int count = 0;
while (iter.hasNext()) {
iter.next();
count++;
}
return count;
} } | public class class_name {
@Override
public int size() {
Iterator<E> iter = iterator();
int count = 0;
while (iter.hasNext()) {
iter.next(); // depends on control dependency: [while], data = [none]
count++; // depends on control dependency: [while], data = [none]
}
ret... |
public class class_name {
public static String createSign(Map<String, String> packageParams, String signKey) {
SortedMap<String, String> sortedMap = new TreeMap<String, String>();
sortedMap.putAll(packageParams);
List<String> keys = new ArrayList<String>(packageParams.keySet());
C... | public class class_name {
public static String createSign(Map<String, String> packageParams, String signKey) {
SortedMap<String, String> sortedMap = new TreeMap<String, String>();
sortedMap.putAll(packageParams);
List<String> keys = new ArrayList<String>(packageParams.keySet());
C... |
public class class_name {
@PublicEvolving
public void setCharset(String charset) {
this.charsetName = Preconditions.checkNotNull(charset);
this.charset = null;
if (this.delimiterString != null) {
this.delimiter = delimiterString.getBytes(getCharset());
}
} } | public class class_name {
@PublicEvolving
public void setCharset(String charset) {
this.charsetName = Preconditions.checkNotNull(charset);
this.charset = null;
if (this.delimiterString != null) {
this.delimiter = delimiterString.getBytes(getCharset()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
void create(Insets defInsets) {
setLayout(new BorderLayout());
addKeyListener(this);
Panel p = new Panel(new GridLayout(6, 2, 10, 10));
p.addKeyListener(this);
p.setBackground(SystemColor.control);
p.add(createLabel("Type:"));
Choice... | public class class_name {
void create(Insets defInsets) {
setLayout(new BorderLayout());
addKeyListener(this);
Panel p = new Panel(new GridLayout(6, 2, 10, 10));
p.addKeyListener(this);
p.setBackground(SystemColor.control);
p.add(createLabel("Type:"));
Choice... |
public class class_name {
@Override
public void processMessage() {
VectorAggregation aggregation = new VectorAggregation(rowIndex, (short) voidConfiguration.getNumberOfShards(),
getShardIndex(), storage.getArray(key).getRow(rowIndex).dup());
aggregation.setOriginatorId(this.... | public class class_name {
@Override
public void processMessage() {
VectorAggregation aggregation = new VectorAggregation(rowIndex, (short) voidConfiguration.getNumberOfShards(),
getShardIndex(), storage.getArray(key).getRow(rowIndex).dup());
aggregation.setOriginatorId(this.... |
public class class_name {
public Object convert(Object model) {
if (model == null)
return null;
if (type == null)
return model;
// obj是基本数据类型或String
if (!(model instanceof Map) && !(model instanceof Iterable)) {
return Castors.me().castTo(model, Lang.... | public class class_name {
public Object convert(Object model) {
if (model == null)
return null;
if (type == null)
return model;
// obj是基本数据类型或String
if (!(model instanceof Map) && !(model instanceof Iterable)) {
return Castors.me().castTo(model, Lang.... |
public class class_name {
public void autoAttachStatsStorageBySessionId(Function<String, StatsStorage> statsStorageProvider) {
if (statsStorageProvider != null) {
this.statsStorageLoader = new StatsStorageLoader(statsStorageProvider);
}
} } | public class class_name {
public void autoAttachStatsStorageBySessionId(Function<String, StatsStorage> statsStorageProvider) {
if (statsStorageProvider != null) {
this.statsStorageLoader = new StatsStorageLoader(statsStorageProvider); // depends on control dependency: [if], data = [(statsStoragePro... |
public class class_name {
public static void load(
final CmsUUID structureId,
final boolean includeTargets,
final CmsUUID detailContentId,
final String startTab,
final Map<String, String> context,
final CloseHandler<PopupPanel> closeHandler) {
CmsRpcActi... | public class class_name {
public static void load(
final CmsUUID structureId,
final boolean includeTargets,
final CmsUUID detailContentId,
final String startTab,
final Map<String, String> context,
final CloseHandler<PopupPanel> closeHandler) {
CmsRpcActi... |
public class class_name {
public boolean detectBlackBerryHigh() {
//Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser
if (detectBlackBerryWebKit()) {
return false;
}
if (detectBlackBerry()) {
if (detectBlackBerryTouch()
|| (userAgent... | public class class_name {
public boolean detectBlackBerryHigh() {
//Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser
if (detectBlackBerryWebKit()) {
return false;
// depends on control dependency: [if], data = [none]
}
if (detectBlackBerry()) {
if (... |
public class class_name {
@Override
public boolean isCompleteRequest(ByteBuffer buffer) {
DataInputStream inputStream = new DataInputStream(new ByteBufferBackedInputStream(buffer));
try {
int dataSize = inputStream.readInt();
if(logger.isTraceEnabled())
log... | public class class_name {
@Override
public boolean isCompleteRequest(ByteBuffer buffer) {
DataInputStream inputStream = new DataInputStream(new ByteBufferBackedInputStream(buffer));
try {
int dataSize = inputStream.readInt();
if(logger.isTraceEnabled())
log... |
public class class_name {
public static <X, Y> Map<Y, X> invert(Map<X, Y> map) {
Map<Y, X> invertedMap = new HashMap<Y, X>();
for (Map.Entry<X, Y> entry : map.entrySet()) {
X key = entry.getKey();
Y value = entry.getValue();
invertedMap.put(value, key);
}
return invertedMap;
... | public class class_name {
public static <X, Y> Map<Y, X> invert(Map<X, Y> map) {
Map<Y, X> invertedMap = new HashMap<Y, X>();
for (Map.Entry<X, Y> entry : map.entrySet()) {
X key = entry.getKey();
Y value = entry.getValue();
invertedMap.put(value, key);
// depends on control dependency:... |
public class class_name {
protected boolean updateFileWindow(Dim.SourceInfo sourceInfo) {
String fileName = sourceInfo.url();
FileWindow w = getFileWindow(fileName);
if (w != null) {
w.updateText(sourceInfo);
w.show();
return true;
}
return fa... | public class class_name {
protected boolean updateFileWindow(Dim.SourceInfo sourceInfo) {
String fileName = sourceInfo.url();
FileWindow w = getFileWindow(fileName);
if (w != null) {
w.updateText(sourceInfo); // depends on control dependency: [if], data = [none]
w.show()... |
public class class_name {
protected final void indexSubclasses(Class<?>... classes) {
for (Class<?> klass : classes) {
indexedSuperclasses.add(klass.getCanonicalName());
}
annotationDriven = false;
} } | public class class_name {
protected final void indexSubclasses(Class<?>... classes) {
for (Class<?> klass : classes) {
indexedSuperclasses.add(klass.getCanonicalName()); // depends on control dependency: [for], data = [klass]
}
annotationDriven = false;
} } |
public class class_name {
public static Class<?> loadClass(String className,
ClassLoader classLoader) {
Class cls = (Class) classes.get( className );
if ( cls == null ) {
try {
cls = Class.forName( className );
} catch ( Excep... | public class class_name {
public static Class<?> loadClass(String className,
ClassLoader classLoader) {
Class cls = (Class) classes.get( className );
if ( cls == null ) {
try {
cls = Class.forName( className );
} catch ( Excep... |
public class class_name {
public static void initExceptionHandler(Context context) {
Log.d("AppRate", "Init AppRate ExceptionHandler");
Thread.UncaughtExceptionHandler currentHandler = Thread.getDefaultUncaughtExceptionHandler();
// Don't register again if already registered.
if (!(c... | public class class_name {
public static void initExceptionHandler(Context context) {
Log.d("AppRate", "Init AppRate ExceptionHandler");
Thread.UncaughtExceptionHandler currentHandler = Thread.getDefaultUncaughtExceptionHandler();
// Don't register again if already registered.
if (!(c... |
public class class_name {
private ImmutableNode toNode(final Builder builder, final Object obj) {
assert !(obj instanceof List);
if (obj instanceof Map) {
return mapToNode(builder, (Map<String, Object>) obj);
} else {
return valueToNode(builder, obj);
}
} } | public class class_name {
private ImmutableNode toNode(final Builder builder, final Object obj) {
assert !(obj instanceof List);
if (obj instanceof Map) {
return mapToNode(builder, (Map<String, Object>) obj); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
static int mergeBasicConstraints(X509Certificate cert, int maxPathLength) {
int pathLenConstraint = cert.getBasicConstraints();
if (!X509CertImpl.isSelfIssued(cert)) {
maxPathLength--;
}
if (pathLenConstraint < maxPathLength) {
maxPat... | public class class_name {
static int mergeBasicConstraints(X509Certificate cert, int maxPathLength) {
int pathLenConstraint = cert.getBasicConstraints();
if (!X509CertImpl.isSelfIssued(cert)) {
maxPathLength--; // depends on control dependency: [if], data = [none]
}
if (p... |
public class class_name {
@Override
void encode(byte[] in, int inPos, int inAvail) {
if (eof) {
return;
}
// inAvail < 0 is how we're informed of EOF in the underlying data we're
// encoding.
if (inAvail < 0) {
eof = true;
if (0 == modulus... | public class class_name {
@Override
void encode(byte[] in, int inPos, int inAvail) {
if (eof) {
return; // depends on control dependency: [if], data = [none]
}
// inAvail < 0 is how we're informed of EOF in the underlying data we're
// encoding.
if (inAvail < 0) ... |
public class class_name {
public final Object get(String key) {
try {
this.mutex.acquire();
return this.valueMap.get(key);
} finally {
try {
this.mutex.release();
} catch (Exception ignore) {
}
}
} } | public class class_name {
public final Object get(String key) {
try {
this.mutex.acquire(); // depends on control dependency: [try], data = [none]
return this.valueMap.get(key); // depends on control dependency: [try], data = [none]
} finally {
try {
this.mutex.release(); // depends on control depend... |
public class class_name {
public final String getConfigurationValue(String key)
{
//format property key
String propertyKey=key;
if(this.PROPERTY_PART!=null)
{
propertyKey=MessageFormat.format(key,new Object[]{this.PROPERTY_PART});
}
//get value
S... | public class class_name {
public final String getConfigurationValue(String key)
{
//format property key
String propertyKey=key;
if(this.PROPERTY_PART!=null)
{
propertyKey=MessageFormat.format(key,new Object[]{this.PROPERTY_PART}); // depends on control dependency: [if], ... |
public class class_name {
protected final ClassFile getClassFile(String className)
{
ClassFile cf=null;
String filePath=null;
if(className!=null && !className.isEmpty())
{
String rootPath=getClassRootDir();
if(rootPath.endsWith("/")||rootPath.endsWith("\\"))
{
}else
{
rootPath=rootPath+File... | public class class_name {
protected final ClassFile getClassFile(String className)
{
ClassFile cf=null;
String filePath=null;
if(className!=null && !className.isEmpty())
{
String rootPath=getClassRootDir();
if(rootPath.endsWith("/")||rootPath.endsWith("\\"))
{
}else
{
rootPath=rootPath+File... |
public class class_name {
public synchronized boolean freeSegment(Segment seg) throws IOException {
if (seg == null)
return false;
int segId = seg.getSegmentId();
if (segId < _segList.size() && _segList.get(segId) == seg) {
_segList.set(segId, null);
seg.clo... | public class class_name {
public synchronized boolean freeSegment(Segment seg) throws IOException {
if (seg == null)
return false;
int segId = seg.getSegmentId();
if (segId < _segList.size() && _segList.get(segId) == seg) {
_segList.set(segId, null);
seg.clo... |
public class class_name {
public final void primitiveType() throws RecognitionException {
int primitiveType_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 51) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:537:5: ( 'boolean' | '... | public class class_name {
public final void primitiveType() throws RecognitionException {
int primitiveType_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 51) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drools/compil... |
public class class_name {
private void changeState() {
if (m_state == State.RESTORE) {
fetchSnapshotTxnId();
exitRestore();
m_state = State.REPLAY;
/*
* Add the interest here so that we can use the barriers in replay
* agent to synchro... | public class class_name {
private void changeState() {
if (m_state == State.RESTORE) {
fetchSnapshotTxnId(); // depends on control dependency: [if], data = [none]
exitRestore(); // depends on control dependency: [if], data = [none]
m_state = State.REPLAY; // depends on cont... |
public class class_name {
public RetrievalPerformanceResult run(Database database, Relation<O> relation, Relation<?> lrelation) {
final DistanceQuery<O> distQuery = database.getDistanceQuery(relation, getDistanceFunction());
final DBIDs ids = DBIDUtil.randomSample(relation.getDBIDs(), sampling, random);
/... | public class class_name {
public RetrievalPerformanceResult run(Database database, Relation<O> relation, Relation<?> lrelation) {
final DistanceQuery<O> distQuery = database.getDistanceQuery(relation, getDistanceFunction());
final DBIDs ids = DBIDUtil.randomSample(relation.getDBIDs(), sampling, random);
/... |
public class class_name {
public boolean isOnSameRack( Node node1, Node node2) {
if (node1 == null || node2 == null) {
return false;
}
netlock.readLock().lock();
try {
return node1.getParent()==node2.getParent();
} finally {
netlock.readLock().unlock();
}
} } | public class class_name {
public boolean isOnSameRack( Node node1, Node node2) {
if (node1 == null || node2 == null) {
return false; // depends on control dependency: [if], data = [none]
}
netlock.readLock().lock();
try {
return node1.getParent()==node2.getParent(); // depends on co... |
public class class_name {
public static Multimap<String, PathOperation> groupOperationsByTag(List<PathOperation> allOperations, Comparator<PathOperation> operationOrdering) {
Multimap<String, PathOperation> operationsGroupedByTag;
if (operationOrdering == null) {
operationsGroupedByTag = L... | public class class_name {
public static Multimap<String, PathOperation> groupOperationsByTag(List<PathOperation> allOperations, Comparator<PathOperation> operationOrdering) {
Multimap<String, PathOperation> operationsGroupedByTag;
if (operationOrdering == null) {
operationsGroupedByTag = L... |
public class class_name {
@Override
public EEnum getIfcConstraintEnum() {
if (ifcConstraintEnumEEnum == null) {
ifcConstraintEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(942);
}
return ifcConstraintEnumEEnum;
} } | public class class_name {
@Override
public EEnum getIfcConstraintEnum() {
if (ifcConstraintEnumEEnum == null) {
ifcConstraintEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(942);
// depends on control dependency: [if], data = [none]
}
return i... |
public class class_name {
@Override
public Object fromString(Class targetClass, String s)
{
try
{
if (s == null)
{
return null;
}
Object o = (Object) s;
return o;
}
catch (NumberFormatExcepti... | public class class_name {
@Override
public Object fromString(Class targetClass, String s)
{
try
{
if (s == null)
{
return null;
// depends on control dependency: [if], data = [none]
}
Object o = (Object) s;
re... |
public class class_name {
public static String toMethodDescriptor(Method method, boolean ignoreFirstParameter) {
Class<?>[] params = method.getParameterTypes();
if (ignoreFirstParameter && params.length < 1) {
throw new IllegalStateException("Cannot ignore the first parameter when there are none. method=" + me... | public class class_name {
public static String toMethodDescriptor(Method method, boolean ignoreFirstParameter) {
Class<?>[] params = method.getParameterTypes();
if (ignoreFirstParameter && params.length < 1) {
throw new IllegalStateException("Cannot ignore the first parameter when there are none. method=" + me... |
public class class_name {
protected void highlightNode(IHighlightedPositionAcceptor acceptor, INode node, String... styleIds) {
if (node == null)
return;
if (node instanceof ILeafNode) {
ITextRegion textRegion = node.getTextRegion();
acceptor.addPosition(textRegion.getOffset(), textRegion.getLength(), sty... | public class class_name {
protected void highlightNode(IHighlightedPositionAcceptor acceptor, INode node, String... styleIds) {
if (node == null)
return;
if (node instanceof ILeafNode) {
ITextRegion textRegion = node.getTextRegion();
acceptor.addPosition(textRegion.getOffset(), textRegion.getLength(), sty... |
public class class_name {
org.robolectric.res.android.ZipFileRO.ZipEntryRO findEntryByName(final String entryName)
{
ZipEntryRO data = new ZipEntryRO();
data.name = String(entryName);
final Ref<ZipEntry> zipEntryRef = new Ref<>(data.entry);
final int error = FindEntry(mHandle, data.name, zipEntryRe... | public class class_name {
org.robolectric.res.android.ZipFileRO.ZipEntryRO findEntryByName(final String entryName)
{
ZipEntryRO data = new ZipEntryRO();
data.name = String(entryName);
final Ref<ZipEntry> zipEntryRef = new Ref<>(data.entry);
final int error = FindEntry(mHandle, data.name, zipEntryRe... |
public class class_name {
public static void main(String[] args) {
// Add a shutdown hook
final Thread mainThread = Thread.currentThread();
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
progress.cancel();
try {
mainThread.join();
} catch (InterruptedException e) {
... | public class class_name {
public static void main(String[] args) {
// Add a shutdown hook
final Thread mainThread = Thread.currentThread();
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
progress.cancel();
try {
mainThread.join(); // depends on control dependency: [try],... |
public class class_name {
@Override
public void visit(final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) {
final int lastSlash = name.lastIndexOf('/');
this.thisReference = name;
this.superName = superName;
this.nextSupername = su... | public class class_name {
@Override
public void visit(final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) {
final int lastSlash = name.lastIndexOf('/');
this.thisReference = name;
this.superName = superName;
this.nextSupername = su... |
public class class_name {
private void registerMBean() {
if (wroConfiguration.isJmxEnabled()) {
try {
mbeanServer = getMBeanServer();
final ObjectName name = getMBeanObjectName();
if (!mbeanServer.isRegistered(name)) {
mbeanServer.registerMBean(wroConfiguration, name);
... | public class class_name {
private void registerMBean() {
if (wroConfiguration.isJmxEnabled()) {
try {
mbeanServer = getMBeanServer(); // depends on control dependency: [try], data = [none]
final ObjectName name = getMBeanObjectName();
if (!mbeanServer.isRegistered(name)) {
m... |
public class class_name {
public FlowItemExecuteResult compileFlowStepViewRuleAndExecute(
String viewRuleSyntaxParam, FluidItem fluidItemToExecuteOnParam)
{
FlowStepRule flowStepRule = new FlowStepRule();
flowStepRule.setRule(viewRuleSyntaxParam);
FlowItemExecutePacket toPost =... | public class class_name {
public FlowItemExecuteResult compileFlowStepViewRuleAndExecute(
String viewRuleSyntaxParam, FluidItem fluidItemToExecuteOnParam)
{
FlowStepRule flowStepRule = new FlowStepRule();
flowStepRule.setRule(viewRuleSyntaxParam);
FlowItemExecutePacket toPost =... |
public class class_name {
public JobPriority getJobPriority() {
String prio = get("mapred.job.priority");
if(prio == null) {
return JobPriority.NORMAL;
}
return JobPriority.valueOf(prio);
} } | public class class_name {
public JobPriority getJobPriority() {
String prio = get("mapred.job.priority");
if(prio == null) {
return JobPriority.NORMAL; // depends on control dependency: [if], data = [none]
}
return JobPriority.valueOf(prio);
} } |
public class class_name {
public void compute()
{
if (!computable) {
throw new RuntimeException("can't re-'compute' experiment results after a 'restore'");
}
expt = new MatchExpt[blockers.size()][learners.size()][datasets.size()];
for (int i=0; i<blockers.size(); i++) {
Blocker blocker = (Blocker)block... | public class class_name {
public void compute()
{
if (!computable) {
throw new RuntimeException("can't re-'compute' experiment results after a 'restore'");
}
expt = new MatchExpt[blockers.size()][learners.size()][datasets.size()];
for (int i=0; i<blockers.size(); i++) {
Blocker blocker = (Blocker)block... |
public class class_name {
private void loadFeatureWeight(BufferedReader br, int[] statusCoven,
TreeMap<Integer, Pair<String, String>> featureNames) throws Exception {
featureTree = new SmartForest<float[]>();
int tag = 0; // 赏析按标签为用来转换
int len = 0; // 权重数组的大小
Str... | public class class_name {
private void loadFeatureWeight(BufferedReader br, int[] statusCoven,
TreeMap<Integer, Pair<String, String>> featureNames) throws Exception {
featureTree = new SmartForest<float[]>();
int tag = 0; // 赏析按标签为用来转换
int len = 0; // 权重数组的大小
Str... |
public class class_name {
public void closeReader(BitReader reader) throws IllegalArgumentException, BitStreamException {
if (reader == null) throw new IllegalArgumentException("null reader");
if (reader instanceof InputStreamBitReader) {
try {
((InputStreamBitReader) reader).getInputStream().close();
} ... | public class class_name {
public void closeReader(BitReader reader) throws IllegalArgumentException, BitStreamException {
if (reader == null) throw new IllegalArgumentException("null reader");
if (reader instanceof InputStreamBitReader) {
try {
((InputStreamBitReader) reader).getInputStream().close(); // de... |
public class class_name {
public boolean isValid (Object target)
{
TileSet set = (TileSet)target;
boolean valid = true;
// check for the 'name' attribute
if (StringUtil.isBlank(set.getName())) {
log.warning("Tile set definition missing 'name' attribute " +
... | public class class_name {
public boolean isValid (Object target)
{
TileSet set = (TileSet)target;
boolean valid = true;
// check for the 'name' attribute
if (StringUtil.isBlank(set.getName())) {
log.warning("Tile set definition missing 'name' attribute " +
... |
public class class_name {
protected static String getFinalTarget(ResourceHandle resource, List<String> trace)
throws RedirectLoopException {
String finalTarget = null;
if (resource.isValid()) {
String path = resource.getPath();
if (trace.contains(path)) {
... | public class class_name {
protected static String getFinalTarget(ResourceHandle resource, List<String> trace)
throws RedirectLoopException {
String finalTarget = null;
if (resource.isValid()) {
String path = resource.getPath();
if (trace.contains(path)) {
... |
public class class_name {
public ArrayList<ProgressSource> getProgressSources() {
ArrayList<ProgressSource> snapshot = new ArrayList<ProgressSource>();
try {
synchronized(progressSourceList) {
for (Iterator<ProgressSource> iter = progressSourceList.iterator(); iter.ha... | public class class_name {
public ArrayList<ProgressSource> getProgressSources() {
ArrayList<ProgressSource> snapshot = new ArrayList<ProgressSource>();
try {
synchronized(progressSourceList) { // depends on control dependency: [try], data = [none]
for (Iterator<Progre... |
public class class_name {
public int getZoomLevel() {
Projection projection = getProjection();
if (projection == null) {
throw new GeoPackageException(
"No projection was set which is required to determine the zoom level");
}
int zoomLevel = 0;
BoundingBox boundingBox = getBoundingBox();
if (boundi... | public class class_name {
public int getZoomLevel() {
Projection projection = getProjection();
if (projection == null) {
throw new GeoPackageException(
"No projection was set which is required to determine the zoom level");
}
int zoomLevel = 0;
BoundingBox boundingBox = getBoundingBox();
if (boundi... |
public class class_name {
public void invokeErrorListener(int what, int extra) {
// Calling doStop() un-schedules the next event and
// stops normal event flow from continuing.
doStop();
state = ERROR;
boolean handled = errorListener != null
&& errorListener.onError(player, what, extra);
... | public class class_name {
public void invokeErrorListener(int what, int extra) {
// Calling doStop() un-schedules the next event and
// stops normal event flow from continuing.
doStop();
state = ERROR;
boolean handled = errorListener != null
&& errorListener.onError(player, what, extra);
... |
public class class_name {
private void handleLeadershipChange(NotificationContext changeContext) {
if (this.helixManager.isPresent() && this.helixManager.get().isLeader()) {
LOGGER.info("Leader notification for {} HM.isLeader {}", this.helixManager.get().getInstanceName(),
this.helixManager.get().... | public class class_name {
private void handleLeadershipChange(NotificationContext changeContext) {
if (this.helixManager.isPresent() && this.helixManager.get().isLeader()) {
LOGGER.info("Leader notification for {} HM.isLeader {}", this.helixManager.get().getInstanceName(),
this.helixManager.get().... |
public class class_name {
public synchronized void writeToLog(Session session, String statement) {
if (logStatements && log != null) {
log.writeStatement(session, statement);
}
} } | public class class_name {
public synchronized void writeToLog(Session session, String statement) {
if (logStatements && log != null) {
log.writeStatement(session, statement); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public FutureData<Identity> create(String label, boolean active, boolean master) {
if (label == null || label.isEmpty()) {
throw new IllegalArgumentException("A label is required");
}
String activeStr = active ? "active" : "disabled";
FutureData<Ide... | public class class_name {
public FutureData<Identity> create(String label, boolean active, boolean master) {
if (label == null || label.isEmpty()) {
throw new IllegalArgumentException("A label is required");
}
String activeStr = active ? "active" : "disabled";
FutureData<Ide... |
public class class_name {
@Override
public synchronized void resolve(JingleSession session) throws XMPPException, SmackException, InterruptedException {
this.setResolveInit();
for (TransportCandidate candidate : this.getCandidatesList()) {
if (candidate instanceof ICECandidate) {
... | public class class_name {
@Override
public synchronized void resolve(JingleSession session) throws XMPPException, SmackException, InterruptedException {
this.setResolveInit();
for (TransportCandidate candidate : this.getCandidatesList()) {
if (candidate instanceof ICECandidate) {
... |
public class class_name {
static void onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency)
throws InternalProvisionException {
// Hack to allow null parameters to @Provides methods, for backwards compatibility.
if (dependency.getInjectionPoint().getMember() instanceof Method) ... | public class class_name {
static void onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency)
throws InternalProvisionException {
// Hack to allow null parameters to @Provides methods, for backwards compatibility.
if (dependency.getInjectionPoint().getMember() instanceof Method) ... |
public class class_name {
@Override
public T transformElement(Tuple2<AerospikeKey, AerospikeRecord> tuple, DeepJobConfig<T, ? extends DeepJobConfig> config) {
try {
return (T) UtilAerospike.getObjectFromAerospikeRecord(config.getEntityClass(), tuple._2(),
(AerospikeDeepJobCo... | public class class_name {
@Override
public T transformElement(Tuple2<AerospikeKey, AerospikeRecord> tuple, DeepJobConfig<T, ? extends DeepJobConfig> config) {
try {
return (T) UtilAerospike.getObjectFromAerospikeRecord(config.getEntityClass(), tuple._2(),
(AerospikeDeepJobCo... |
public class class_name {
@Override
public void elemAdd(MVec addend) {
if (addend instanceof VTensor) {
elemAdd((VTensor)addend);
} else {
throw new IllegalArgumentException("Addend must be of type " + this.getClass());
}
} } | public class class_name {
@Override
public void elemAdd(MVec addend) {
if (addend instanceof VTensor) {
elemAdd((VTensor)addend); // depends on control dependency: [if], data = [none]
} else {
throw new IllegalArgumentException("Addend must be of type " + this.getClass());
... |
public class class_name {
public static String getChineseZodiac(Calendar calendar) {
if (null == calendar) {
return null;
}
return getChineseZodiac(calendar.get(Calendar.YEAR));
} } | public class class_name {
public static String getChineseZodiac(Calendar calendar) {
if (null == calendar) {
return null;
// depends on control dependency: [if], data = [none]
}
return getChineseZodiac(calendar.get(Calendar.YEAR));
} } |
public class class_name {
public static Date lastModifiedTime(File file) {
if (!exist(file)) {
return null;
}
return new Date(file.lastModified());
} } | public class class_name {
public static Date lastModifiedTime(File file) {
if (!exist(file)) {
return null;
// depends on control dependency: [if], data = [none]
}
return new Date(file.lastModified());
} } |
public class class_name {
@NullSafe
public static boolean isLetters(String value) {
for (char chr : toCharArray(value)) {
if (!Character.isLetter(chr)) {
return false;
}
}
return hasText(value);
} } | public class class_name {
@NullSafe
public static boolean isLetters(String value) {
for (char chr : toCharArray(value)) {
if (!Character.isLetter(chr)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return hasText(value);
} } |
public class class_name {
public static byte[] bytes(String s) {
try {
return s.getBytes(ENCODING);
} catch (UnsupportedEncodingException e) {
log.error("UnsupportedEncodingException ", e);
throw new RuntimeException(e);
}
} } | public class class_name {
public static byte[] bytes(String s) {
try {
return s.getBytes(ENCODING); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
log.error("UnsupportedEncodingException ", e);
throw new RuntimeException(e);
} // depends ... |
public class class_name {
@Override
public final boolean hasNext() {
// assure, that preceding is not evaluated on an attribute or a
// namespace
if (mIsFirst) {
mIsFirst = false;
if (getNode().getKind() == IConstants.ATTRIBUTE
// || getTransaction().isN... | public class class_name {
@Override
public final boolean hasNext() {
// assure, that preceding is not evaluated on an attribute or a
// namespace
if (mIsFirst) {
mIsFirst = false; // depends on control dependency: [if], data = [none]
if (getNode().getKind() == ICons... |
public class class_name {
public ConnectionListener getConnectionListener(Credential credential) throws ResourceException
{
log.tracef("getConnectionListener(%s)", credential);
ConnectionListener cl = null;
ManagedConnectionPool mcp = getManagedConnectionPool(credential);
if (isShutdown())... | public class class_name {
public ConnectionListener getConnectionListener(Credential credential) throws ResourceException
{
log.tracef("getConnectionListener(%s)", credential);
ConnectionListener cl = null;
ManagedConnectionPool mcp = getManagedConnectionPool(credential);
if (isShutdown())... |
public class class_name {
public File newStagingFile(String entryName, long modTime) {
File file = new File(stagingDirectory, entryName);
if (modTime != 0) {
file.setLastModified(modTime);
}
file.getParentFile().mkdirs();
return file;
} } | public class class_name {
public File newStagingFile(String entryName, long modTime) {
File file = new File(stagingDirectory, entryName);
if (modTime != 0) {
file.setLastModified(modTime); // depends on control dependency: [if], data = [(modTime]
}
file.get... |
public class class_name {
public synchronized void removeElement(T element) {
List<T> origList = ref.get().list;
boolean isPresent = origList.contains(element);
if (!isPresent) {
return;
}
List<T> newList = new ArrayList<T>(origList);
newList.remove(element);
swapWithList(newList);
} } | public class class_name {
public synchronized void removeElement(T element) {
List<T> origList = ref.get().list;
boolean isPresent = origList.contains(element);
if (!isPresent) {
return; // depends on control dependency: [if], data = [none]
}
List<T> newList = new ArrayList<T>(origList);
newList.remo... |
public class class_name {
private boolean checkPattern(Mtp2Buffer frame, int sltmLen, byte[] pattern) {
if (sltmLen != pattern.length) {
return false;
}
for (int i = 0; i < pattern.length; i++) {
if (frame.frame[i + PATTERN_OFFSET] != pattern[i]) {
return... | public class class_name {
private boolean checkPattern(Mtp2Buffer frame, int sltmLen, byte[] pattern) {
if (sltmLen != pattern.length) {
return false; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < pattern.length; i++) {
if (frame.frame[i + P... |
public class class_name {
protected static DataBuffer createValueBuffer(float[] values) {
checkNotNull(values);
if (values.length == 0){
return Nd4j.createBuffer(1);
}
return Nd4j.createBuffer(values);
} } | public class class_name {
protected static DataBuffer createValueBuffer(float[] values) {
checkNotNull(values);
if (values.length == 0){
return Nd4j.createBuffer(1); // depends on control dependency: [if], data = [none]
}
return Nd4j.createBuffer(values);
} } |
public class class_name {
public static List<CSNodeWrapper> getAllChildrenNodes(final CSNodeWrapper csNode) {
final List<CSNodeWrapper> nodes = new LinkedList<CSNodeWrapper>();
if (csNode.getChildren() != null) {
final List<CSNodeWrapper> childrenNodes = csNode.getChildren().getItems();
... | public class class_name {
public static List<CSNodeWrapper> getAllChildrenNodes(final CSNodeWrapper csNode) {
final List<CSNodeWrapper> nodes = new LinkedList<CSNodeWrapper>();
if (csNode.getChildren() != null) {
final List<CSNodeWrapper> childrenNodes = csNode.getChildren().getItems();
... |
public class class_name {
@Override
public Account verify(Credential credential) {
assertMechanism(AuthMechanism.CLIENT_CERT, AuthMechanism.KERBEROS);
final AuthorizingCallbackHandler ach;
final Principal user;
if (credential instanceof X509CertificateCredential) {
X509... | public class class_name {
@Override
public Account verify(Credential credential) {
assertMechanism(AuthMechanism.CLIENT_CERT, AuthMechanism.KERBEROS);
final AuthorizingCallbackHandler ach;
final Principal user;
if (credential instanceof X509CertificateCredential) {
X509... |
public class class_name {
public void open() {
acquireWriteLock();
try {
if (!Files.exists(osFile)) {
throw new FileNotFoundException("File: " + osFile);
}
acquireExclusiveAccess();
openChannel();
init();
OLogManager.instance().debug(this, "Checking file integrity... | public class class_name {
public void open() {
acquireWriteLock();
try {
if (!Files.exists(osFile)) {
throw new FileNotFoundException("File: " + osFile);
}
acquireExclusiveAccess(); // depends on control dependency: [try], data = [none]
openChannel(); // depends on control dep... |
public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
if (recClassInfo != null)
{
record.setKeyArea(FieldData.FIELD_FILE_NAME_KEY);
... | public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
if (recClassInfo != null)
{
record.setKeyArea(FieldData.FIELD_FILE_NAME_KEY); // de... |
public class class_name {
public void encodeEnd(FacesContext facesContext, UIComponent component)
throws IOException
{
RendererUtils.checkParamValidity(facesContext, component, null);
Map<String, List<ClientBehavior>> behaviors = null;
if (component instanceof ClientBeh... | public class class_name {
public void encodeEnd(FacesContext facesContext, UIComponent component)
throws IOException
{
RendererUtils.checkParamValidity(facesContext, component, null);
Map<String, List<ClientBehavior>> behaviors = null;
if (component instanceof ClientBeh... |
public class class_name {
@Override
public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults)
{
if (log.isInfoEnabled())
{
log.info("On populate relation via JPQL");
}
List<EnhanceEntity> ls = null;
List<String> relationName... | public class class_name {
@Override
public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults)
{
if (log.isInfoEnabled())
{
log.info("On populate relation via JPQL"); // depends on control dependency: [if], data = [none]
}
List<Enhan... |
public class class_name {
public void createObjectPool(final ServiceID serviceID, final SbbComponent sbbComponent,
final SleeTransactionManager sleeTransactionManager) {
if (logger.isTraceEnabled()) {
logger.trace("Creating Pool for " + serviceID +" and "+ sbbComponent);
}
createObjectPool(serv... | public class class_name {
public void createObjectPool(final ServiceID serviceID, final SbbComponent sbbComponent,
final SleeTransactionManager sleeTransactionManager) {
if (logger.isTraceEnabled()) {
logger.trace("Creating Pool for " + serviceID +" and "+ sbbComponent); // depends on control depend... |
public class class_name {
@SuppressWarnings("static-method")
protected void printDetailedDescription(SynopsisHelpAppender out, String detailedDescription) {
if (!Strings.isNullOrEmpty(detailedDescription)) {
out.printSectionName(DETAILED_DESCRIPTION);
out.printLongDescription(detailedDescription.split("[\r\n\... | public class class_name {
@SuppressWarnings("static-method")
protected void printDetailedDescription(SynopsisHelpAppender out, String detailedDescription) {
if (!Strings.isNullOrEmpty(detailedDescription)) {
out.printSectionName(DETAILED_DESCRIPTION); // depends on control dependency: [if], data = [none]
out.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.