code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
final Channel channel = new Channel(getType());
channel.setStyleSheet(getStyleSheet(rssRoot.getDocument()));
final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
... | public class class_name {
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
final Channel channel = new Channel(getType());
channel.setStyleSheet(getStyleSheet(rssRoot.getDocument()));
final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
... |
public class class_name {
public boolean monitorAndPrintJob(JobConf conf,
RunningJob job
) throws IOException, InterruptedException {
String lastReport = null;
TaskStatusFilter filter;
filter = getTaskOutputFilter(conf);
JobID jobId = job.getID();
LOG.info("Run... | public class class_name {
public boolean monitorAndPrintJob(JobConf conf,
RunningJob job
) throws IOException, InterruptedException {
String lastReport = null;
TaskStatusFilter filter;
filter = getTaskOutputFilter(conf);
JobID jobId = job.getID();
LOG.info("Run... |
public class class_name {
@Override
public void clear() {
if (bean == null) {
return;
}
try {
bean = beanClass.newInstance();
} catch (Exception e) {
throw new UnsupportedOperationException("Could not create new instance of class: " + beanClass);... | public class class_name {
@Override
public void clear() {
if (bean == null) {
return; // depends on control dependency: [if], data = [none]
}
try {
bean = beanClass.newInstance(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {... |
public class class_name {
private void deliver() {
try {
deliverUnsafe();
} catch (Throwable t) {
// This should never happen. If does, it means we are in an inconsistent state and should
// close the stream and further processing should be prevented. This is accomplished by
// purposef... | public class class_name {
private void deliver() {
try {
deliverUnsafe(); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
// This should never happen. If does, it means we are in an inconsistent state and should
// close the stream and further processing should ... |
public class class_name {
public void cleanup() {
ArrayList<ProducerReference> producerReferences = new ArrayList<ProducerReference>(registry.values());
for (ProducerReference p : producerReferences) {
try {
if (p.get() != null)
unregisterProducer(p.get()... | public class class_name {
public void cleanup() {
ArrayList<ProducerReference> producerReferences = new ArrayList<ProducerReference>(registry.values());
for (ProducerReference p : producerReferences) {
try {
if (p.get() != null)
unregisterProducer(p.get()... |
public class class_name {
public static <A extends Annotation> List<Annotation> getIndirectlyPresentAnnotations(
final A maybeContainerAnnotation) {
try {
final Method method = maybeContainerAnnotation.annotationType().getMethod("value");
final Object o = method.invoke(maybeContainerAnnotation);
... | public class class_name {
public static <A extends Annotation> List<Annotation> getIndirectlyPresentAnnotations(
final A maybeContainerAnnotation) {
try {
final Method method = maybeContainerAnnotation.annotationType().getMethod("value");
final Object o = method.invoke(maybeContainerAnnotation);
... |
public class class_name {
public static <T, C extends Collection<T>> Supplier<? extends C> reuse(final Supplier<? extends C> supplier) {
return new Supplier<C>() {
private C c;
@Override
public C get() {
if (c == null) {
c = suppli... | public class class_name {
public static <T, C extends Collection<T>> Supplier<? extends C> reuse(final Supplier<? extends C> supplier) {
return new Supplier<C>() {
private C c;
@Override
public C get() {
if (c == null) {
c = suppli... |
public class class_name {
private static double calculateHBondEnergy(SecStrucGroup one,
SecStrucGroup two) {
Atom N = one.getN();
Atom H = one.getH();
Atom O = two.getO();
Atom C = two.getC();
double dno = Calc.getDistance(O,N);
double dhc = Calc.getDistance(C,H);
double dho = Calc.getDistance(O,H)... | public class class_name {
private static double calculateHBondEnergy(SecStrucGroup one,
SecStrucGroup two) {
Atom N = one.getN();
Atom H = one.getH();
Atom O = two.getO();
Atom C = two.getC();
double dno = Calc.getDistance(O,N);
double dhc = Calc.getDistance(C,H);
double dho = Calc.getDistance(O,H)... |
public class class_name {
@Requires({
"elements != null",
"!elements.contains(null)",
"clazz != null",
"kinds != null"
})
@SuppressWarnings("unchecked")
public static <T extends ElementModel> List<? extends T> filter(
List<? extends ElementModel> elements, Class<T> clazz,
ElementKind.... | public class class_name {
@Requires({
"elements != null",
"!elements.contains(null)",
"clazz != null",
"kinds != null"
})
@SuppressWarnings("unchecked")
public static <T extends ElementModel> List<? extends T> filter(
List<? extends ElementModel> elements, Class<T> clazz,
ElementKind.... |
public class class_name {
public boolean containAll(String... containWith) {
for (String contain : containWith) {
if (!contain(contain)) {
return false;
}
}
return true;
} } | public class class_name {
public boolean containAll(String... containWith) {
for (String contain : containWith) {
if (!contain(contain)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
public static synchronized POSIX jnr() {
if (posix == null) {
posix = POSIXFactory.getPOSIX(new DefaultPOSIXHandler() {
@Override public void error(Errno error, String extraData) {
throw new PosixException("native error " + error.descrip... | public class class_name {
public static synchronized POSIX jnr() {
if (posix == null) {
posix = POSIXFactory.getPOSIX(new DefaultPOSIXHandler() {
@Override public void error(Errno error, String extraData) {
throw new PosixException("native error " + error.descrip... |
public class class_name {
public static String getAttributeValue(final Element element, final String name) {
final Node node = element.getAttributes().getNamedItem(name);
if (node != null) {
return node.getNodeValue();
}
return null;
} } | public class class_name {
public static String getAttributeValue(final Element element, final String name) {
final Node node = element.getAttributes().getNamedItem(name);
if (node != null) {
return node.getNodeValue(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private Plan selectPlanAtRandom() {
Plan plan = null;
Set<Belief> vars = null;
int index = rand.nextInt(size());
int idx = 0;
boolean bindingsExist = false;
for (Plan p : bindings.keySet()) {
vars = bindings.get(p);
bindingsExist = (vars != null && !vars.is... | public class class_name {
private Plan selectPlanAtRandom() {
Plan plan = null;
Set<Belief> vars = null;
int index = rand.nextInt(size());
int idx = 0;
boolean bindingsExist = false;
for (Plan p : bindings.keySet()) {
vars = bindings.get(p); // depends on control dependency: [for], data =... |
public class class_name {
protected List<CmsRelation> findRelationsFromTargetToSource() throws CmsException {
List<CmsRelation> relations = m_cms.readRelations(
CmsRelationFilter.SOURCES.filterPath(m_targetPath).filterIncludeChildren());
List<CmsRelation> result = new ArrayList<CmsRelation... | public class class_name {
protected List<CmsRelation> findRelationsFromTargetToSource() throws CmsException {
List<CmsRelation> relations = m_cms.readRelations(
CmsRelationFilter.SOURCES.filterPath(m_targetPath).filterIncludeChildren());
List<CmsRelation> result = new ArrayList<CmsRelation... |
public class class_name {
@Override
public void close() {
Iterator<Map.Entry<Path, OpenCryptoFile>> iter = openCryptoFiles.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry<Path, OpenCryptoFile> entry = iter.next();
iter.remove(); // remove before invoking close() to avoid concurrent modificati... | public class class_name {
@Override
public void close() {
Iterator<Map.Entry<Path, OpenCryptoFile>> iter = openCryptoFiles.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry<Path, OpenCryptoFile> entry = iter.next();
iter.remove(); // remove before invoking close() to avoid concurrent modificati... |
public class class_name {
private int isCentered(Area area, boolean askBefore, boolean askAfter)
{
Area parent = area.getParent();
if (parent != null)
{
int left = area.getX1() - parent.getX1();
int right = parent.getX2() - area.getX2();
int limit = (int)... | public class class_name {
private int isCentered(Area area, boolean askBefore, boolean askAfter)
{
Area parent = area.getParent();
if (parent != null)
{
int left = area.getX1() - parent.getX1();
int right = parent.getX2() - area.getX2();
int limit = (int)... |
public class class_name {
void installAdditional(final File installedFile, final String fileExt, final String payload, final boolean chop)
throws MojoExecutionException {
File additionalFile = null;
if (chop) {
String path = installedFile.getAbsolutePath();
addi... | public class class_name {
void installAdditional(final File installedFile, final String fileExt, final String payload, final boolean chop)
throws MojoExecutionException {
File additionalFile = null;
if (chop) {
String path = installedFile.getAbsolutePath();
addi... |
public class class_name {
@Pure
public static String formatHex(int amount, int digits) {
final StringBuffer hex = new StringBuffer(Integer.toHexString(amount));
while (hex.length() < digits) {
hex.insert(0, "0"); //$NON-NLS-1$
}
return hex.toString();
} } | public class class_name {
@Pure
public static String formatHex(int amount, int digits) {
final StringBuffer hex = new StringBuffer(Integer.toHexString(amount));
while (hex.length() < digits) {
hex.insert(0, "0"); //$NON-NLS-1$ // depends on control dependency: [while], data = [none]
}
return hex.toString()... |
public class class_name {
public void record(String metric, double value) {
mTimeSeries.compute(metric, (metricName, timeSeries) -> {
if (timeSeries == null) {
timeSeries = new TimeSeries(metricName);
}
timeSeries.record(value);
return timeSeries;
});
} } | public class class_name {
public void record(String metric, double value) {
mTimeSeries.compute(metric, (metricName, timeSeries) -> {
if (timeSeries == null) {
timeSeries = new TimeSeries(metricName); // depends on control dependency: [if], data = [none]
}
timeSeries.record(value);
... |
public class class_name {
protected static KDistanceResult calculateKDistance(int kn, List<DistanceResult> distances)
{
// 算出した距離を用いてK距離とK距離近傍データのIDを算出
int countedDataNum = 0;
List<String> idList = new ArrayList<>();
double nowDistance = 0.0d;
// K値の値までIDのカウントを行い、距離を設定する。
... | public class class_name {
protected static KDistanceResult calculateKDistance(int kn, List<DistanceResult> distances)
{
// 算出した距離を用いてK距離とK距離近傍データのIDを算出
int countedDataNum = 0;
List<String> idList = new ArrayList<>();
double nowDistance = 0.0d;
// K値の値までIDのカウントを行い、距離を設定する。
... |
public class class_name {
private void updateImage() {
if (!over) {
currentImage = normalImage;
currentColor = normalColor;
state = NORMAL;
mouseUp = false;
} else {
if (mouseDown) {
if ((state != MOUSE_DOWN) && (mouseUp)) {
if (mouseDownSound != null) {
mouseDownSound.play(... | public class class_name {
private void updateImage() {
if (!over) {
currentImage = normalImage;
// depends on control dependency: [if], data = [none]
currentColor = normalColor;
// depends on control dependency: [if], data = [none]
state = NORMAL;
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public static boolean tableContainsString(VoltTable t, String s, boolean caseSenstive) {
if (t.getRowCount() == 0) {
return false;
}
if (!caseSenstive) {
s = s.toLowerCase();
}
VoltTableRow row = t.fetchRow(0);
do {
... | public class class_name {
public static boolean tableContainsString(VoltTable t, String s, boolean caseSenstive) {
if (t.getRowCount() == 0) {
return false; // depends on control dependency: [if], data = [none]
}
if (!caseSenstive) {
s = s.toLowerCase(); // depends on co... |
public class class_name {
public static String separatorsToSystem(final String path) {
if (path == null) {
return null;
}
if (SYSTEM_SEPARATOR == WINDOWS_SEPARATOR) {
return separatorsToWindows(path);
} else {
return separatorsToUnix(path);
}
} } | public class class_name {
public static String separatorsToSystem(final String path) {
if (path == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (SYSTEM_SEPARATOR == WINDOWS_SEPARATOR) {
return separatorsToWindows(path); // depends on control dependency: [if], data = [none... |
public class class_name {
public void setAppendix(final String pAppendix)
{
appendix = pAppendix;
if (pAppendix != null && pAppendix.length() > 0) {
getInputs().property("appendix", pAppendix);
setDescription(
"Create file '" + pluginPomProps.getName() + "' f... | public class class_name {
public void setAppendix(final String pAppendix)
{
appendix = pAppendix;
if (pAppendix != null && pAppendix.length() > 0) {
getInputs().property("appendix", pAppendix); // depends on control dependency: [if], data = [none]
setDescription(
... |
public class class_name {
public static Invoker getInvoker(Object proxyObject, String proxyType) {
try {
ExtensionClass<Proxy> ext = ExtensionLoaderFactory.getExtensionLoader(Proxy.class)
.getExtensionClass(proxyType);
if (ext == null) {
throw ExceptionUt... | public class class_name {
public static Invoker getInvoker(Object proxyObject, String proxyType) {
try {
ExtensionClass<Proxy> ext = ExtensionLoaderFactory.getExtensionLoader(Proxy.class)
.getExtensionClass(proxyType);
if (ext == null) {
throw ExceptionUt... |
public class class_name {
public EClass getIfcMaterialDefinitionRepresentation() {
if (ifcMaterialDefinitionRepresentationEClass == null) {
ifcMaterialDefinitionRepresentationEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(308);
}
return ifcM... | public class class_name {
public EClass getIfcMaterialDefinitionRepresentation() {
if (ifcMaterialDefinitionRepresentationEClass == null) {
ifcMaterialDefinitionRepresentationEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(308);
// depends on cont... |
public class class_name {
@SuppressWarnings("unchecked")
protected Object messageToTuple(FieldDescriptor fieldDescriptor, Object fieldValue) {
if (fieldValue == null) {
// protobufs unofficially ensures values are not null. just in case:
return null;
}
assert fieldDescriptor.getType() == Fiel... | public class class_name {
@SuppressWarnings("unchecked")
protected Object messageToTuple(FieldDescriptor fieldDescriptor, Object fieldValue) {
if (fieldValue == null) {
// protobufs unofficially ensures values are not null. just in case:
return null; // depends on control dependency: [if], data = [no... |
public class class_name {
public Collection<EndpointInfo> getEndpointInfos() {
ArrayList<EndpointInfo> values = new ArrayList<EndpointInfo>();
Iterator<String> it = getEndpointNames().iterator();
// for each endpoint name, iterate over it's list of endpoints and add to values
while (i... | public class class_name {
public Collection<EndpointInfo> getEndpointInfos() {
ArrayList<EndpointInfo> values = new ArrayList<EndpointInfo>();
Iterator<String> it = getEndpointNames().iterator();
// for each endpoint name, iterate over it's list of endpoints and add to values
while (i... |
public class class_name {
@Override
public final String getIndexName() {
final Source source = sourceRenderer.getGedObject();
if (!source.isSet()) {
return "";
}
final String nameHtml = sourceRenderer.getTitleString();
return "<a href=\"source?db=" + source.get... | public class class_name {
@Override
public final String getIndexName() {
final Source source = sourceRenderer.getGedObject();
if (!source.isSet()) {
return ""; // depends on control dependency: [if], data = [none]
}
final String nameHtml = sourceRenderer.getTitleString(... |
public class class_name {
public static void returnByteArray(final byte[] b)
{
if (b==null)
return;
byte[][] pool = (byte[][])__pools.get();
for (int i=pool.length;i-->0;)
{
if (pool[i]==null)
{
pool[i]=b;
... | public class class_name {
public static void returnByteArray(final byte[] b)
{
if (b==null)
return;
byte[][] pool = (byte[][])__pools.get();
for (int i=pool.length;i-->0;)
{
if (pool[i]==null)
{
pool[i]=b; // depends on co... |
public class class_name {
static void rcvCreateBifurcatedSess(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnab... | public class class_name {
static void rcvCreateBifurcatedSess(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnab... |
public class class_name {
private boolean backrefMatchAtNestedLevel(boolean ignoreCase, int caseFoldFlag,
int nest, int memNum, int memp) {
int pend = -1;
int level = 0;
int k = stk - 1;
while (k >= 0) {
StackEntry e = stack[k];... | public class class_name {
private boolean backrefMatchAtNestedLevel(boolean ignoreCase, int caseFoldFlag,
int nest, int memNum, int memp) {
int pend = -1;
int level = 0;
int k = stk - 1;
while (k >= 0) {
StackEntry e = stack[k];... |
public class class_name {
public List<Node> parseWrapper(String raw) {
// holds literal text as we parse
StringBuilder buf = new StringBuilder();
// indicates we're inside a quote.
boolean inquote = false;
// indicates we're inside a {x} tag.
boolean intag = false;
// length of input pat... | public class class_name {
public List<Node> parseWrapper(String raw) {
// holds literal text as we parse
StringBuilder buf = new StringBuilder();
// indicates we're inside a quote.
boolean inquote = false;
// indicates we're inside a {x} tag.
boolean intag = false;
// length of input pat... |
public class class_name {
protected boolean internalCanExpire()
{
boolean can = super.internalCanExpire();
if (can && _referenceCount > 0)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "preventing expiry as references remain");
... | public class class_name {
protected boolean internalCanExpire()
{
boolean can = super.internalCanExpire();
if (can && _referenceCount > 0)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "preventing expiry as references remain");
... |
public class class_name {
private List<Word> toWords(Node node){
Stack<String> stack = new Stack<>();
while(node != null){
stack.push(node.getText());
node = node.getParent();
}
int len = stack.size();
List<Word> list = new ArrayList<>(len);
for(i... | public class class_name {
private List<Word> toWords(Node node){
Stack<String> stack = new Stack<>();
while(node != null){
stack.push(node.getText()); // depends on control dependency: [while], data = [(node]
node = node.getParent(); // depends on control dependency: [while], da... |
public class class_name {
public static SequenceSchema inferSequenceMulti(List<List<List<Writable>>> record) {
SequenceSchema.Builder builder = new SequenceSchema.Builder();
int minSequenceLength = record.get(0).size();
int maxSequenceLength = record.get(0).size();
for (int i = 0; i < r... | public class class_name {
public static SequenceSchema inferSequenceMulti(List<List<List<Writable>>> record) {
SequenceSchema.Builder builder = new SequenceSchema.Builder();
int minSequenceLength = record.get(0).size();
int maxSequenceLength = record.get(0).size();
for (int i = 0; i < r... |
public class class_name {
private void manageBlockEntity( DwgObject entity, double[] bPoint, Point2D insPoint,
double[] scale, double rot, int id, Vector dwgObjectsWithoutBlocks ) {
if (entity instanceof DwgArc) {
// System.out.println("Encuentra un arco dentro de un bloque ...");
... | public class class_name {
private void manageBlockEntity( DwgObject entity, double[] bPoint, Point2D insPoint,
double[] scale, double rot, int id, Vector dwgObjectsWithoutBlocks ) {
if (entity instanceof DwgArc) {
// System.out.println("Encuentra un arco dentro de un bloque ...");
... |
public class class_name {
public String getParameterByReflection(Object obj, String param)
{
Object value = null;
try {
java.lang.reflect.Method method = obj.getClass().getMethod("getParameter", String.class);
if (method != null)
value = method.i... | public class class_name {
public String getParameterByReflection(Object obj, String param)
{
Object value = null;
try {
java.lang.reflect.Method method = obj.getClass().getMethod("getParameter", String.class);
if (method != null)
value = method.i... |
public class class_name {
private boolean readAndUpdateVersion(CurrentInProgressMetadataWritable target)
throws IOException {
Stat stat = new Stat();
try {
byte[] data = zooKeeper.getData(fullyQualifiedZNode, false, stat);
expectedZNodeVersion.set(stat.getVersion());
if (data != null) {... | public class class_name {
private boolean readAndUpdateVersion(CurrentInProgressMetadataWritable target)
throws IOException {
Stat stat = new Stat();
try {
byte[] data = zooKeeper.getData(fullyQualifiedZNode, false, stat);
expectedZNodeVersion.set(stat.getVersion());
if (data != null) {... |
public class class_name {
@NotNull
public final List<GeneratorConfig> findGeneratorsForParser(@NotNull final String parserName) {
Contract.requireArgNotNull("parserName", parserName);
final List<GeneratorConfig> list = new ArrayList<>();
final List<GeneratorConfig> gcList = generators... | public class class_name {
@NotNull
public final List<GeneratorConfig> findGeneratorsForParser(@NotNull final String parserName) {
Contract.requireArgNotNull("parserName", parserName);
final List<GeneratorConfig> list = new ArrayList<>();
final List<GeneratorConfig> gcList = generators... |
public class class_name {
public void marshall(ConnectionsList connectionsList, ProtocolMarshaller protocolMarshaller) {
if (connectionsList == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(connect... | public class class_name {
public void marshall(ConnectionsList connectionsList, ProtocolMarshaller protocolMarshaller) {
if (connectionsList == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(connect... |
public class class_name {
public boolean isRangeSet() {
for (int i = 0; i < getDimensions(); i++) {
if( valueMin[i] == 0 && valueMax[i] == 0 ) {
return false;
}
}
return true;
} } | public class class_name {
public boolean isRangeSet() {
for (int i = 0; i < getDimensions(); i++) {
if( valueMin[i] == 0 && valueMax[i] == 0 ) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
@Override
public boolean[] existsAll(List<Get> gets) throws IOException {
LOG.trace("existsAll(Get)");
try (Scope scope = TRACER.spanBuilder("BigtableTable.existsAll").startScopedSpan()) {
addBatchSizeAnnotation(gets);
List<Get> existGets = new ArrayList<>(gets.size());
... | public class class_name {
@Override
public boolean[] existsAll(List<Get> gets) throws IOException {
LOG.trace("existsAll(Get)");
try (Scope scope = TRACER.spanBuilder("BigtableTable.existsAll").startScopedSpan()) {
addBatchSizeAnnotation(gets);
List<Get> existGets = new ArrayList<>(gets.size());
... |
public class class_name {
public void wrapDescription(StringBuilder out, int indent, int currentLineIndent, String description) {
int max = commander.getColumnSize();
String[] words = description.split(" ");
int current = currentLineIndent;
for (int i = 0; i < words.length; i++) {
... | public class class_name {
public void wrapDescription(StringBuilder out, int indent, int currentLineIndent, String description) {
int max = commander.getColumnSize();
String[] words = description.split(" ");
int current = currentLineIndent;
for (int i = 0; i < words.length; i++) {
... |
public class class_name {
private Class loadTagFile(Compiler compiler,
String tagFilePath, TagInfo tagInfo,
PageInfo parentPageInfo)
throws JasperException {
JspCompilationContext ctxt = compiler.getCompilationContext();
JspRuntimeCon... | public class class_name {
private Class loadTagFile(Compiler compiler,
String tagFilePath, TagInfo tagInfo,
PageInfo parentPageInfo)
throws JasperException {
JspCompilationContext ctxt = compiler.getCompilationContext();
JspRuntimeCon... |
public class class_name {
public static void convolve(Kernel2D_F32 kernel,
InterleavedF32 input, InterleavedF32 output , ImageBorder_IL_F32 border ) {
InputSanityCheck.checkSameShapeB(input, output);
boolean processed = BOverrideConvolveImage.invokeNativeConvolve(kernel,input,output,border);
if( !pro... | public class class_name {
public static void convolve(Kernel2D_F32 kernel,
InterleavedF32 input, InterleavedF32 output , ImageBorder_IL_F32 border ) {
InputSanityCheck.checkSameShapeB(input, output);
boolean processed = BOverrideConvolveImage.invokeNativeConvolve(kernel,input,output,border);
if( !pro... |
public class class_name {
JcrPropertyDefinition findPropertyDefinition( JcrSession session,
Name primaryTypeName,
Collection<Name> mixinTypeNames,
Name propertyName,
... | public class class_name {
JcrPropertyDefinition findPropertyDefinition( JcrSession session,
Name primaryTypeName,
Collection<Name> mixinTypeNames,
Name propertyName,
... |
public class class_name {
private boolean checkUrl(String url) {
try {
URI uri = new URI(url);
return uri.isAbsolute();
} catch (URISyntaxException e) {
return false;
}
} } | public class class_name {
private boolean checkUrl(String url) {
try {
URI uri = new URI(url);
return uri.isAbsolute(); // depends on control dependency: [try], data = [none]
} catch (URISyntaxException e) {
return false;
} // depends on control dependency: [... |
public class class_name {
private static <K, V> Collection<Entry<K, V>> constrainedEntries(
Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) {
if (entries instanceof Set) {
return constrainedEntrySet((Set<Entry<K, V>>) entries, constraint);
}
return new Constrain... | public class class_name {
private static <K, V> Collection<Entry<K, V>> constrainedEntries(
Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) {
if (entries instanceof Set) {
return constrainedEntrySet((Set<Entry<K, V>>) entries, constraint); // depends on control dependen... |
public class class_name {
public void marshall(GetCompatibleElasticsearchVersionsRequest getCompatibleElasticsearchVersionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getCompatibleElasticsearchVersionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... | public class class_name {
public void marshall(GetCompatibleElasticsearchVersionsRequest getCompatibleElasticsearchVersionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getCompatibleElasticsearchVersionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... |
public class class_name {
public Property<Properties<T>> getOrCreateProperty()
{
List<Node> nodeList = childNode.get("property");
if (nodeList != null && nodeList.size() > 0)
{
return new PropertyImpl<Properties<T>>(this, "property", childNode, nodeList.get(0));
}
return crea... | public class class_name {
public Property<Properties<T>> getOrCreateProperty()
{
List<Node> nodeList = childNode.get("property");
if (nodeList != null && nodeList.size() > 0)
{
return new PropertyImpl<Properties<T>>(this, "property", childNode, nodeList.get(0)); // depends on control dep... |
public class class_name {
@SuppressWarnings("deprecation")
public static boolean isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d) {
d = new java.sql.Time(d.getHours(), d.getMinutes(), d.getSeconds());
if (start == null || end == null) {
return false;
}
... | public class class_name {
@SuppressWarnings("deprecation")
public static boolean isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d) {
d = new java.sql.Time(d.getHours(), d.getMinutes(), d.getSeconds());
if (start == null || end == null) {
return false; // depends on c... |
public class class_name {
public void marshall(DisablePolicyTypeRequest disablePolicyTypeRequest, ProtocolMarshaller protocolMarshaller) {
if (disablePolicyTypeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(DisablePolicyTypeRequest disablePolicyTypeRequest, ProtocolMarshaller protocolMarshaller) {
if (disablePolicyTypeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public static LocaleWrapper findLocaleFromString(final CollectionWrapper<LocaleWrapper> locales, final String localeString) {
if (localeString == null) return null;
for (final LocaleWrapper locale : locales.getItems()) {
if (localeString.equals(locale.getValue()))... | public class class_name {
public static LocaleWrapper findLocaleFromString(final CollectionWrapper<LocaleWrapper> locales, final String localeString) {
if (localeString == null) return null;
for (final LocaleWrapper locale : locales.getItems()) {
if (localeString.equals(locale.getValue()))... |
public class class_name {
public void start () {
if (config.activationKey != null) {
input().keyboardEvents.connect(new Slot<Keyboard.Event>() {
public void onEmit (Keyboard.Event event) {
if (event instanceof Keyboard.KeyEvent) {
Keyboard.KeyEvent kevent = (Keyboard.KeyEvent)ev... | public class class_name {
public void start () {
if (config.activationKey != null) {
input().keyboardEvents.connect(new Slot<Keyboard.Event>() {
public void onEmit (Keyboard.Event event) {
if (event instanceof Keyboard.KeyEvent) {
Keyboard.KeyEvent kevent = (Keyboard.KeyEvent)ev... |
public class class_name {
public static InterleavedU8 nv21ToInterleaved( byte[] data , int width , int height ,
InterleavedU8 output ) {
if( output == null ) {
output = new InterleavedU8(width,height,3);
} else {
output.reshape(width, height, 3);
}
if(BoofConcurrency.USE_CONCURRENT ) {
... | public class class_name {
public static InterleavedU8 nv21ToInterleaved( byte[] data , int width , int height ,
InterleavedU8 output ) {
if( output == null ) {
output = new InterleavedU8(width,height,3); // depends on control dependency: [if], data = [none]
} else {
output.reshape(width, heigh... |
public class class_name {
public void addPostEffect(GVRMaterial postEffectData) {
GVRContext ctx = getGVRContext();
if (mPostEffects == null)
{
mPostEffects = new GVRRenderData(ctx, postEffectData);
GVRMesh dummyMesh = new GVRMesh(getGVRContext(),"float3 a_position floa... | public class class_name {
public void addPostEffect(GVRMaterial postEffectData) {
GVRContext ctx = getGVRContext();
if (mPostEffects == null)
{
mPostEffects = new GVRRenderData(ctx, postEffectData); // depends on control dependency: [if], data = [none]
GVRMesh dummyMesh... |
public class class_name {
private void setupMetricBundleAdjustment(List<AssociatedTriple> inliers) {
// Construct bundle adjustment data structure
structure = new SceneStructureMetric(false);
observations = new SceneObservations(3);
structure.initialize(3,3,inliers.size());
for (int i = 0; i < listPinhole.s... | public class class_name {
private void setupMetricBundleAdjustment(List<AssociatedTriple> inliers) {
// Construct bundle adjustment data structure
structure = new SceneStructureMetric(false);
observations = new SceneObservations(3);
structure.initialize(3,3,inliers.size());
for (int i = 0; i < listPinhole.s... |
public class class_name {
private Map<UUID, List<DateRange>> processDayTypes(List<MapRow> types)
{
Map<UUID, List<DateRange>> map = new HashMap<UUID, List<DateRange>>();
for (MapRow row : types)
{
List<DateRange> ranges = new ArrayList<DateRange>();
for (MapRow range : row.getRow... | public class class_name {
private Map<UUID, List<DateRange>> processDayTypes(List<MapRow> types)
{
Map<UUID, List<DateRange>> map = new HashMap<UUID, List<DateRange>>();
for (MapRow row : types)
{
List<DateRange> ranges = new ArrayList<DateRange>();
for (MapRow range : row.getRow... |
public class class_name {
public static <T> void randomDraw(List<T> dataSet, int numSample,
List<T> initialSample, Random rand) {
initialSample.clear();
for (int i = 0; i < numSample; i++) {
// index of last element that has not been selected
int indexLast = dataSet.size()-i-1;
// randomly sel... | public class class_name {
public static <T> void randomDraw(List<T> dataSet, int numSample,
List<T> initialSample, Random rand) {
initialSample.clear();
for (int i = 0; i < numSample; i++) {
// index of last element that has not been selected
int indexLast = dataSet.size()-i-1;
// randomly sel... |
public class class_name {
protected static ICUResourceBundle getAliasedResource(
ICUResourceBundle base, String[] keys, int depth,
String key, int _resource,
HashMap<String, String> aliasesVisited,
UResourceBundle requested) {
WholeBundle wholeBundle = base.whole... | public class class_name {
protected static ICUResourceBundle getAliasedResource(
ICUResourceBundle base, String[] keys, int depth,
String key, int _resource,
HashMap<String, String> aliasesVisited,
UResourceBundle requested) {
WholeBundle wholeBundle = base.whole... |
public class class_name {
public static void printStackTrace(SQLException e, PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw);
next = next.getNextException();
if (next != null) {
pw.println("Next SQLException:"... | public class class_name {
public static void printStackTrace(SQLException e, PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw); // depends on control dependency: [while], data = [none]
next = next.getNextException(); // depends on control ... |
public class class_name {
public final int getIdleCount(IdleStatus status) {
if (getConfig().getIdleTime(status) == 0) {
if (status == IdleStatus.BOTH_IDLE) {
idleCountForBoth.set(0);
}
if (status == IdleStatus.READER_IDLE) {
idleCountForRead... | public class class_name {
public final int getIdleCount(IdleStatus status) {
if (getConfig().getIdleTime(status) == 0) {
if (status == IdleStatus.BOTH_IDLE) {
idleCountForBoth.set(0); // depends on control dependency: [if], data = [none]
}
if (status == Idle... |
public class class_name {
public int parseIntegerString(String numberString) {
StringReader sr = new StringReader(numberString);
StreamTokenizer st = new StreamTokenizer(sr);
st.parseNumbers();
int tokenType;
int returnValue = 0;
try {
if ((tokenType = st.ne... | public class class_name {
public int parseIntegerString(String numberString) {
StringReader sr = new StringReader(numberString);
StreamTokenizer st = new StreamTokenizer(sr);
st.parseNumbers();
int tokenType;
int returnValue = 0;
try {
if ((tokenType = st.ne... |
public class class_name {
protected String convertDigestEncoding(String value) {
byte[] data = new byte[value.length() / 2];
for (int i = 0; i < data.length; i++) {
data[i] = (byte)(Integer.parseInt(value.substring(i * 2, (i * 2) + 2), 16) - 128);
}
return new String(Base6... | public class class_name {
protected String convertDigestEncoding(String value) {
byte[] data = new byte[value.length() / 2];
for (int i = 0; i < data.length; i++) {
data[i] = (byte)(Integer.parseInt(value.substring(i * 2, (i * 2) + 2), 16) - 128); // depends on control dependency: [for], ... |
public class class_name {
public RiakNode setMinConnections(int minConnections)
{
stateCheck(State.CREATED, State.RUNNING, State.HEALTH_CHECKING);
if (minConnections <= getMaxConnections())
{
this.minConnections = minConnections;
}
else
{
thro... | public class class_name {
public RiakNode setMinConnections(int minConnections)
{
stateCheck(State.CREATED, State.RUNNING, State.HEALTH_CHECKING);
if (minConnections <= getMaxConnections())
{
this.minConnections = minConnections; // depends on control dependency: [if], data = [n... |
public class class_name {
public static Class<?> getClass(String classname) {
Class<?> clazz = null;
try {
clazz = Class.forName(classname);
} catch (Exception e) {
// Try the second approach
}
if (null == clazz) {
Exception classNotFoundEx = null;
try {
clazz = Class.forName(classname, true... | public class class_name {
public static Class<?> getClass(String classname) {
Class<?> clazz = null;
try {
clazz = Class.forName(classname);
} catch (Exception e) {
// Try the second approach
}
if (null == clazz) {
Exception classNotFoundEx = null;
try {
clazz = Class.forName(classname, true... |
public class class_name {
public void createControlAdapter()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlAdapter");
DestinationHandler dh = null;
try
{
ItemStream is = getItemStream();
// TODO - This method is using th... | public class class_name {
public void createControlAdapter()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlAdapter");
DestinationHandler dh = null;
try
{
ItemStream is = getItemStream();
// TODO - This method is using th... |
public class class_name {
static IDataModel toDataModel(final Workbook workbook) {
if (workbook == null) { return null; }
//add custom functions information
workbook.addToolPack(getUdfFinder());
Sheet s = workbook.getSheetAt(0); //TODO: only one sheet is supported
... | public class class_name {
static IDataModel toDataModel(final Workbook workbook) {
if (workbook == null) { return null; } // depends on control dependency: [if], data = [none]
//add custom functions information
workbook.addToolPack(getUdfFinder());
Sheet s = workbook.g... |
public class class_name {
@Override
protected <T> T create(Class<T> type, Map<String, String> mapConfig) {
try {
Constructor<T> constructor = type.getConstructor(Vertx.class, VertxEngineConfig.class, Map.class);
return constructor.newInstance(vertx, engineConfig, mapConfig);
... | public class class_name {
@Override
protected <T> T create(Class<T> type, Map<String, String> mapConfig) {
try {
Constructor<T> constructor = type.getConstructor(Vertx.class, VertxEngineConfig.class, Map.class);
return constructor.newInstance(vertx, engineConfig, mapConfig); // depe... |
public class class_name {
public byte[] getLevels(int[] linebreaks) {
// Note that since the previous processing has removed all
// P, S, and WS values from resultTypes, the values referred to
// in these rules are the initial types, before any processing
// has been applied (i... | public class class_name {
public byte[] getLevels(int[] linebreaks) {
// Note that since the previous processing has removed all
// P, S, and WS values from resultTypes, the values referred to
// in these rules are the initial types, before any processing
// has been applied (i... |
public class class_name {
@Override
public void notifyForeignWatch(byte[] key, String serverId)
{
ClusterServiceKraken proxy = _podKraken.getProxy(serverId);
if (proxy != null) {
proxy.notifyLocalWatch(_table.getKey(), key);
}
} } | public class class_name {
@Override
public void notifyForeignWatch(byte[] key, String serverId)
{
ClusterServiceKraken proxy = _podKraken.getProxy(serverId);
if (proxy != null) {
proxy.notifyLocalWatch(_table.getKey(), key); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public long getLength(String path)
{
try {
ZipEntry entry = getZipEntry(path);
long length = entry != null ? entry.getSize() : -1;
return length;
} catch (IOException e) {
log.log(Level.FINE, e.toString(), e);
return -1;
}
} } | public class class_name {
public long getLength(String path)
{
try {
ZipEntry entry = getZipEntry(path);
long length = entry != null ? entry.getSize() : -1;
return length; // depends on control dependency: [try], data = [none]
} catch (IOException e) {
log.log(Level.FINE, e.to... |
public class class_name {
public static String formatCurrency(ITemplate template, Object data, String currencyCode, Locale locale) {
if (null == data) throw new NullPointerException();
Number number;
if (data instanceof Number) {
number = (Number)data;
} else {
n... | public class class_name {
public static String formatCurrency(ITemplate template, Object data, String currencyCode, Locale locale) {
if (null == data) throw new NullPointerException();
Number number;
if (data instanceof Number) {
number = (Number)data; // depends on control dependen... |
public class class_name {
protected static List<Token> tokenize(String requirement, Semver.SemverType type) {
Map<Character, Token> specialChars = SPECIAL_CHARS.get(type);
// Replace the tokens made of 2 chars
if (type == Semver.SemverType.COCOAPODS) {
requirement = requirement.rep... | public class class_name {
protected static List<Token> tokenize(String requirement, Semver.SemverType type) {
Map<Character, Token> specialChars = SPECIAL_CHARS.get(type);
// Replace the tokens made of 2 chars
if (type == Semver.SemverType.COCOAPODS) {
requirement = requirement.rep... |
public class class_name {
public java.util.List<AppCookieStickinessPolicy> getAppCookieStickinessPolicies() {
if (appCookieStickinessPolicies == null) {
appCookieStickinessPolicies = new com.amazonaws.internal.SdkInternalList<AppCookieStickinessPolicy>();
}
return appCookieStickines... | public class class_name {
public java.util.List<AppCookieStickinessPolicy> getAppCookieStickinessPolicies() {
if (appCookieStickinessPolicies == null) {
appCookieStickinessPolicies = new com.amazonaws.internal.SdkInternalList<AppCookieStickinessPolicy>(); // depends on control dependency: [if], dat... |
public class class_name {
public Record getTargetRecord(Map<String,Object> properties, String strParam)
{
String strRecordName = (String)properties.get(strParam);
Record record = null;
if ((strRecordName != null) && (strRecordName.length() > 0))
{
String strTableName = s... | public class class_name {
public Record getTargetRecord(Map<String,Object> properties, String strParam)
{
String strRecordName = (String)properties.get(strParam);
Record record = null;
if ((strRecordName != null) && (strRecordName.length() > 0))
{
String strTableName = s... |
public class class_name {
protected void updatePredecessorsWithCheckMode(TreePath tp, boolean check) {
TreePath parentPath = tp.getParentPath();
// If it is the root, stop the recursive calls and return
if (parentPath == null) {
return;
}
CheckedNode parentChe... | public class class_name {
protected void updatePredecessorsWithCheckMode(TreePath tp, boolean check) {
TreePath parentPath = tp.getParentPath();
// If it is the root, stop the recursive calls and return
if (parentPath == null) {
return; // depends on control dependency: [if], data =... |
public class class_name {
private <T> Callback createHandler(final Class<T> serviceInterface, final MethodCall call,
final Callback handler) {
final ClassMeta<T> clsMeta = ClassMeta.classMeta(serviceInterface);
final MethodAccess method = clsMeta.method(call.name... | public class class_name {
private <T> Callback createHandler(final Class<T> serviceInterface, final MethodCall call,
final Callback handler) {
final ClassMeta<T> clsMeta = ClassMeta.classMeta(serviceInterface);
final MethodAccess method = clsMeta.method(call.name... |
public class class_name {
protected final int initTargetAndStg(){
this.target = this.optionTarget.getValue();
if(this.target==null){
System.err.println(this.getAppName() + ": no target set");
return -1;
}
String fileName = this.optionStgFile.getValue();
try{
this.stg = new STGroupFile(fileName);
... | public class class_name {
protected final int initTargetAndStg(){
this.target = this.optionTarget.getValue();
if(this.target==null){
System.err.println(this.getAppName() + ": no target set"); // depends on control dependency: [if], data = [none]
return -1; // depends on control dependency: [if], data = [none... |
public class class_name {
public GetInvitationConfigurationResult withPrivateSkillIds(String... privateSkillIds) {
if (this.privateSkillIds == null) {
setPrivateSkillIds(new java.util.ArrayList<String>(privateSkillIds.length));
}
for (String ele : privateSkillIds) {
this... | public class class_name {
public GetInvitationConfigurationResult withPrivateSkillIds(String... privateSkillIds) {
if (this.privateSkillIds == null) {
setPrivateSkillIds(new java.util.ArrayList<String>(privateSkillIds.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static int lengthOf(WsByteBuffer[] src, int startIndex) {
int length = 0;
if (null != src) {
for (int i = startIndex; i < src.length && null != src[i]; i++) {
length += src[i].remaining();
}
}
return length;
} ... | public class class_name {
public static int lengthOf(WsByteBuffer[] src, int startIndex) {
int length = 0;
if (null != src) {
for (int i = startIndex; i < src.length && null != src[i]; i++) {
length += src[i].remaining(); // depends on control dependency: [for], data = [i]
... |
public class class_name {
@Check
public void checkContainerType(SarlBehavior behavior) {
final XtendTypeDeclaration declaringType = behavior.getDeclaringType();
if (declaringType != null) {
final String name = canonicalName(declaringType);
assert name != null;
error(MessageFormat.format(Messages.SARLVali... | public class class_name {
@Check
public void checkContainerType(SarlBehavior behavior) {
final XtendTypeDeclaration declaringType = behavior.getDeclaringType();
if (declaringType != null) {
final String name = canonicalName(declaringType);
assert name != null;
error(MessageFormat.format(Messages.SARLVali... |
public class class_name {
public synchronized boolean advanceToLastPostedRunnable() {
long currentMaxTime = currentTime;
for (ScheduledRunnable scheduled : runnables) {
if (currentMaxTime < scheduled.scheduledTime) {
currentMaxTime = scheduled.scheduledTime;
}
}
return advanceTo(cur... | public class class_name {
public synchronized boolean advanceToLastPostedRunnable() {
long currentMaxTime = currentTime;
for (ScheduledRunnable scheduled : runnables) {
if (currentMaxTime < scheduled.scheduledTime) {
currentMaxTime = scheduled.scheduledTime; // depends on control dependency: [if]... |
public class class_name {
public static DoubleVector copyOf(DoubleVector source) {
if (source == null)
return null;
DoubleVector result = null;
if (source instanceof SparseDoubleVector) {
result = new CompactSparseVector(source.length());
copyFromSparseVecto... | public class class_name {
public static DoubleVector copyOf(DoubleVector source) {
if (source == null)
return null;
DoubleVector result = null;
if (source instanceof SparseDoubleVector) {
result = new CompactSparseVector(source.length()); // depends on control dependenc... |
public class class_name {
private String getIdentifier(final int columnIndex) {
final int index = getTable().convertColumnIndexToView(columnIndex);
// selon MTable.addColumn, l'identifier est de type String
final Object identifier = getTable().getColumnModel().getColumn(index).getIdentifier();
if (identifi... | public class class_name {
private String getIdentifier(final int columnIndex) {
final int index = getTable().convertColumnIndexToView(columnIndex);
// selon MTable.addColumn, l'identifier est de type String
final Object identifier = getTable().getColumnModel().getColumn(index).getIdentifier();
if (identifi... |
public class class_name {
public static MonthDay randomMonthDay(boolean includeLeapDay) {
Month month = randomMonth();
int dayOfMonth = RandomUtils.nextInt(1, month.maxLength() + 1);
MonthDay monthDay = MonthDay.of(month, dayOfMonth);
if (!includeLeapDay && DateUtils.isLeapDay(monthDay)) {
return... | public class class_name {
public static MonthDay randomMonthDay(boolean includeLeapDay) {
Month month = randomMonth();
int dayOfMonth = RandomUtils.nextInt(1, month.maxLength() + 1);
MonthDay monthDay = MonthDay.of(month, dayOfMonth);
if (!includeLeapDay && DateUtils.isLeapDay(monthDay)) {
return... |
public class class_name {
public static String localHostName() {
try {
InetAddress localhost = InetAddress.getLocalHost();
return localhost.getHostName();
} catch (Exception e) {
InternalLogFactory.getLog(AwsHostNameUtils.class)
.debug(
... | public class class_name {
public static String localHostName() {
try {
InetAddress localhost = InetAddress.getLocalHost();
return localhost.getHostName(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
InternalLogFactory.getLog(AwsHost... |
public class class_name {
public static String get(final String key, final String def) {
try {
return systemRoot.get(fixKey(key), def);
} catch (final Exception e) {
// just eat the exception to avoid any system crash on system issues
return def;
}
} } | public class class_name {
public static String get(final String key, final String def) {
try {
return systemRoot.get(fixKey(key), def); // depends on control dependency: [try], data = [none]
} catch (final Exception e) {
// just eat the exception to avoid any system crash on system issues
return def;
} ... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11")
public List<Interessent.Wunsch> getWunsch() {
if (wunsch == null) {
wunsch = new ArrayList<Interessent.Wunsch>();
}
return this.wunsch;
... | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11")
public List<Interessent.Wunsch> getWunsch() {
if (wunsch == null) {
wunsch = new ArrayList<Interessent.Wunsch>(); // depends on control dependency: [if], da... |
public class class_name {
public Observable<ServiceResponseWithHeaders<Page<NodeAgentSku>, AccountListNodeAgentSkusHeaders>> listNodeAgentSkusWithServiceResponseAsync() {
return listNodeAgentSkusSinglePageAsync()
.concatMap(new Func1<ServiceResponseWithHeaders<Page<NodeAgentSku>, AccountListNodeAge... | public class class_name {
public Observable<ServiceResponseWithHeaders<Page<NodeAgentSku>, AccountListNodeAgentSkusHeaders>> listNodeAgentSkusWithServiceResponseAsync() {
return listNodeAgentSkusSinglePageAsync()
.concatMap(new Func1<ServiceResponseWithHeaders<Page<NodeAgentSku>, AccountListNodeAge... |
public class class_name {
public void marshall(Grantee grantee, ProtocolMarshaller protocolMarshaller) {
if (grantee == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(grantee.getType(), TYPE_BINDING... | public class class_name {
public void marshall(Grantee grantee, ProtocolMarshaller protocolMarshaller) {
if (grantee == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(grantee.getType(), TYPE_BINDING... |
public class class_name {
public boolean offer(Task task)
{
try
{
return this.offer(task, 0, TimeUnit.SECONDS);
}
catch (InterruptedException e)
{
return false;
}
} } | public class class_name {
public boolean offer(Task task)
{
try
{
return this.offer(task, 0, TimeUnit.SECONDS);
// depends on control dependency: [try], data = [none]
}
catch (InterruptedException e)
{
return false;
}
// depends on control dependency: ... |
public class class_name {
public void setServices(java.util.Collection<ErrorRootCauseService> services) {
if (services == null) {
this.services = null;
return;
}
this.services = new java.util.ArrayList<ErrorRootCauseService>(services);
} } | public class class_name {
public void setServices(java.util.Collection<ErrorRootCauseService> services) {
if (services == null) {
this.services = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private MapReduceCommand parseMapReduceCommand(String jsonClause)
{
String collectionName = jsonClause.replaceFirst("(?ms).*?\\.\\s*(.+?)\\s*\\.\\s*mapReduce\\s*\\(.*", "$1");
if (collectionName.contains("getCollection"))
{
collectionName = collectionNa... | public class class_name {
private MapReduceCommand parseMapReduceCommand(String jsonClause)
{
String collectionName = jsonClause.replaceFirst("(?ms).*?\\.\\s*(.+?)\\s*\\.\\s*mapReduce\\s*\\(.*", "$1");
if (collectionName.contains("getCollection"))
{
collectionName = collectionNa... |
public class class_name {
private final static void pass2(ShortBuffer data) {
int tmp0, tmp1, tmp2, tmp3;
int tmp10, tmp11, tmp12, tmp13;
int z1, z2, z3, z4, z5;
int d0, d1, d2, d3, d4, d5, d6, d7;
ShortBuffer dataptr = data.duplicate();
/* Pass 2: process columns. */
... | public class class_name {
private final static void pass2(ShortBuffer data) {
int tmp0, tmp1, tmp2, tmp3;
int tmp10, tmp11, tmp12, tmp13;
int z1, z2, z3, z4, z5;
int d0, d1, d2, d3, d4, d5, d6, d7;
ShortBuffer dataptr = data.duplicate();
/* Pass 2: process columns. */
... |
public class class_name {
@AfterBatch
public void afterDeliver()
{
SegmentStream nodeStream = _nodeStream;
if (nodeStream != null) {
if (_isBlobDirty) {
_isBlobDirty = false;
// nodeStream.flush(null);
nodeStream.fsync(Result.ignore());
}
else {
nodeS... | public class class_name {
@AfterBatch
public void afterDeliver()
{
SegmentStream nodeStream = _nodeStream;
if (nodeStream != null) {
if (_isBlobDirty) {
_isBlobDirty = false; // depends on control dependency: [if], data = [none]
// nodeStream.flush(null);
nodeStream.fsyn... |
public class class_name {
private void findPockets() {
int[] dim = gridGenerator.getDim();
// logger.debug(" FIND POCKETS>dimx:" + dim[0] + " dimy:" + dim[1]
// + " dimz:" + dim[2] + " linkageRadius>" + linkageRadius
// + " latticeConstant>" + latticeConstant + " pocketSize:"
... | public class class_name {
private void findPockets() {
int[] dim = gridGenerator.getDim();
// logger.debug(" FIND POCKETS>dimx:" + dim[0] + " dimy:" + dim[1]
// + " dimz:" + dim[2] + " linkageRadius>" + linkageRadius
// + " latticeConstant>" + latticeConstant + " pocketSize:"
... |
public class class_name {
public static String generateTxtJobTable(Collection<JobInProgress> jobs,
JobTracker tracker) throws IOException {
char colSeparator = '\t';
char rowSeparator = '\n';
StringBuffer sb = new StringBuffer();
sb.append("01.JOBID" + colSeparator +
"02.START" + col... | public class class_name {
public static String generateTxtJobTable(Collection<JobInProgress> jobs,
JobTracker tracker) throws IOException {
char colSeparator = '\t';
char rowSeparator = '\n';
StringBuffer sb = new StringBuffer();
sb.append("01.JOBID" + colSeparator +
"02.START" + col... |
public class class_name {
public ColorImg scaleChannelToUnitRange(int channel) {
double min=getMinValue(channel), max=getMaxValue(channel);
double range = max-min;
if(range != 0){
double[] channelData = getData()[channel];
for(int i=0; i<channelData.length; i++){
channelData[i] = (channelData[i]-min)/r... | public class class_name {
public ColorImg scaleChannelToUnitRange(int channel) {
double min=getMinValue(channel), max=getMaxValue(channel);
double range = max-min;
if(range != 0){
double[] channelData = getData()[channel];
for(int i=0; i<channelData.length; i++){
channelData[i] = (channelData[i]-min)/r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.