code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Tree<T> findPreOrderNext(){
if( hasChildren() ){
return getFirstChild();
}
if( hasNext() ){
return getNext();
}
Tree<T> parent = getParent();
while( parent != null ){
if( parent.hasNext() ){
... | public class class_name {
public Tree<T> findPreOrderNext(){
if( hasChildren() ){
return getFirstChild(); // depends on control dependency: [if], data = [none]
}
if( hasNext() ){
return getNext(); // depends on control dependency: [if], data = [none]
}
Tr... |
public class class_name {
public HyperParameterTuningJobWarmStartConfig withParentHyperParameterTuningJobs(ParentHyperParameterTuningJob... parentHyperParameterTuningJobs) {
if (this.parentHyperParameterTuningJobs == null) {
setParentHyperParameterTuningJobs(new java.util.ArrayList<ParentHyperParam... | public class class_name {
public HyperParameterTuningJobWarmStartConfig withParentHyperParameterTuningJobs(ParentHyperParameterTuningJob... parentHyperParameterTuningJobs) {
if (this.parentHyperParameterTuningJobs == null) {
setParentHyperParameterTuningJobs(new java.util.ArrayList<ParentHyperParam... |
public class class_name {
private AMethodWithItsArgs findBestMethodByParamsNode(Set<Method> methods, JsonNode paramsNode) {
if (hasNoParameters(paramsNode)) {
return findBestMethodUsingParamIndexes(methods, 0, null);
}
AMethodWithItsArgs matchedMethod;
if (paramsNode.isArray()) {
matchedMethod = findBest... | public class class_name {
private AMethodWithItsArgs findBestMethodByParamsNode(Set<Method> methods, JsonNode paramsNode) {
if (hasNoParameters(paramsNode)) {
return findBestMethodUsingParamIndexes(methods, 0, null); // depends on control dependency: [if], data = [none]
}
AMethodWithItsArgs matchedMethod;
i... |
public class class_name {
public static String deidentify(String text, int left, int right, int fromLeft, int fromRight) {
if (left == 0 && right == 0 && fromLeft == 0 && fromRight == 0) {
return StringUtils.repeat('*', text.length());
} else if (left > 0 && right == 0 && fromLeft == 0 && fromRight == 0) {
r... | public class class_name {
public static String deidentify(String text, int left, int right, int fromLeft, int fromRight) {
if (left == 0 && right == 0 && fromLeft == 0 && fromRight == 0) {
return StringUtils.repeat('*', text.length()); // depends on control dependency: [if], data = [none]
} else if (left > 0 &&... |
public class class_name {
public void logDebug(@Nullable final String text) {
if (text != null && this.preprocessorLogger != null) {
this.preprocessorLogger.debug(text);
}
} } | public class class_name {
public void logDebug(@Nullable final String text) {
if (text != null && this.preprocessorLogger != null) {
this.preprocessorLogger.debug(text); // depends on control dependency: [if], data = [(text]
}
} } |
public class class_name {
public void marshall(AudioPidSelection audioPidSelection, ProtocolMarshaller protocolMarshaller) {
if (audioPidSelection == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(a... | public class class_name {
public void marshall(AudioPidSelection audioPidSelection, ProtocolMarshaller protocolMarshaller) {
if (audioPidSelection == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(a... |
public class class_name {
private void processBeanPoolLimits(BeanMetaData bmd) throws EJBConfigurationException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "processBeanPoolLimits");
}
boolean checkA... | public class class_name {
private void processBeanPoolLimits(BeanMetaData bmd) throws EJBConfigurationException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "processBeanPoolLimits");
}
boolean checkA... |
public class class_name {
private int getSelectedTab() {
String theme = "default";
List<PageParameters.NamedPair> pairs = getPageParameters().getAllNamed();
theme = pairs.get(0).getValue();
if ("grid".equals(theme)) {
return 1;
} else if ("skies".equals(theme)) {
... | public class class_name {
private int getSelectedTab() {
String theme = "default";
List<PageParameters.NamedPair> pairs = getPageParameters().getAllNamed();
theme = pairs.get(0).getValue();
if ("grid".equals(theme)) {
return 1; // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public void close() {
if (minor != null)
minor.cancel(true);
if (major != null)
major.cancel(true);
executor.shutdown();
try {
executor.awaitTermination(30, TimeUnit.SECONDS);
} catch (InterruptedException e) {
}
} } | public class class_name {
@Override
public void close() {
if (minor != null)
minor.cancel(true);
if (major != null)
major.cancel(true);
executor.shutdown();
try {
executor.awaitTermination(30, TimeUnit.SECONDS); // depends on control dependency: [try], data = [none]
} catch (In... |
public class class_name {
private JobTaskVertex createSingleInputVertex(SingleInputPlanNode node) throws CompilerException {
final String taskName = node.getNodeName();
final DriverStrategy ds = node.getDriverStrategy();
// check, whether chaining is possible
boolean chaining = false;
{
Channel inConn ... | public class class_name {
private JobTaskVertex createSingleInputVertex(SingleInputPlanNode node) throws CompilerException {
final String taskName = node.getNodeName();
final DriverStrategy ds = node.getDriverStrategy();
// check, whether chaining is possible
boolean chaining = false;
{
Channel inConn ... |
public class class_name {
@Override
public int compareTo(Object other) {
if (other == null) {
return -1;
}
FlowKey otherKey = (FlowKey)other;
return new CompareToBuilder()
.appendSuper(super.compareTo(other))
.append(getEncodedRunId(), otherKey.getEncodedRunId())
.toComp... | public class class_name {
@Override
public int compareTo(Object other) {
if (other == null) {
return -1; // depends on control dependency: [if], data = [none]
}
FlowKey otherKey = (FlowKey)other;
return new CompareToBuilder()
.appendSuper(super.compareTo(other))
.append(getEncod... |
public class class_name {
@SuppressWarnings("unused")
private String getTextValue(Element ele, String tagName) {
String textVal = null;
NodeList nl = ele.getElementsByTagName(tagName);
if(nl != null && nl.getLength() > 0) {
Element el = (Element)nl.item(0);
textVal = el.getFirstChild().getNodeValue(... | public class class_name {
@SuppressWarnings("unused")
private String getTextValue(Element ele, String tagName) {
String textVal = null;
NodeList nl = ele.getElementsByTagName(tagName);
if(nl != null && nl.getLength() > 0) {
Element el = (Element)nl.item(0);
textVal = el.getFirstChild().getNodeValue(... |
public class class_name {
void evictAll(EntityType entityType) {
CombinedEntityCache entityCache = caches.get();
if (entityCache != null) {
LOG.trace("Removing all entities from L1 cache that belong to {}", entityType.getId());
entityCache.evictAll(entityType);
}
} } | public class class_name {
void evictAll(EntityType entityType) {
CombinedEntityCache entityCache = caches.get();
if (entityCache != null) {
LOG.trace("Removing all entities from L1 cache that belong to {}", entityType.getId()); // depends on control dependency: [if], data = [none]
entityCache.evict... |
public class class_name {
public List<PortletType<PortletAppType<T>>> getAllPortlet()
{
List<PortletType<PortletAppType<T>>> list = new ArrayList<PortletType<PortletAppType<T>>>();
List<Node> nodeList = childNode.get("portlet");
for(Node node: nodeList)
{
PortletType<PortletAppType<... | public class class_name {
public List<PortletType<PortletAppType<T>>> getAllPortlet()
{
List<PortletType<PortletAppType<T>>> list = new ArrayList<PortletType<PortletAppType<T>>>();
List<Node> nodeList = childNode.get("portlet");
for(Node node: nodeList)
{
PortletType<PortletAppType<... |
public class class_name {
public static boolean isSafeString(String string0) {
for (int i = 0; i < string0.length(); i++) {
if (!isSafeChar(string0.charAt(i))) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean isSafeString(String string0) {
for (int i = 0; i < string0.length(); i++) {
if (!isSafeChar(string0.charAt(i))) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
public Actions contextClick() {
if (isBuildingActions()) {
action.addAction(new ContextClickAction(jsonMouse, null));
}
return clickInTicks(RIGHT);
} } | public class class_name {
public Actions contextClick() {
if (isBuildingActions()) {
action.addAction(new ContextClickAction(jsonMouse, null)); // depends on control dependency: [if], data = [none]
}
return clickInTicks(RIGHT);
} } |
public class class_name {
@Override
public void contextInitialized(ServletContextEvent sce) {
try {
ServletContext sc;
synchronized(servletContextLock) {
servletContext = sce.getServletContext();
sc = servletContext;
}
// Find the top level directory
String gitToplevelPath = sc.getInitParamet... | public class class_name {
@Override
public void contextInitialized(ServletContextEvent sce) {
try {
ServletContext sc;
synchronized(servletContextLock) { // depends on control dependency: [try], data = [none]
servletContext = sce.getServletContext();
sc = servletContext;
}
// Find the top level ... |
public class class_name {
private String checkSkipBuildInString(Map<Pattern, String> patterns, String string) {
// check for skip build phrase in the passed string
if (!patterns.isEmpty() && StringUtils.isNotBlank(string)) {
for (Map.Entry<Pattern, String> e : patterns.entrySet()) {
... | public class class_name {
private String checkSkipBuildInString(Map<Pattern, String> patterns, String string) {
// check for skip build phrase in the passed string
if (!patterns.isEmpty() && StringUtils.isNotBlank(string)) {
for (Map.Entry<Pattern, String> e : patterns.entrySet()) {
... |
public class class_name {
public static Map<String, Map<String, Expression>> getConstraintMetadata(final ClosureExpression closureExpression) {
final List<MethodCallExpression> methodExpressions = new ArrayList<MethodCallExpression>();
final Map<String, Map<String, Expression>> results = new LinkedHa... | public class class_name {
public static Map<String, Map<String, Expression>> getConstraintMetadata(final ClosureExpression closureExpression) {
final List<MethodCallExpression> methodExpressions = new ArrayList<MethodCallExpression>();
final Map<String, Map<String, Expression>> results = new LinkedHa... |
public class class_name {
public static void setSearchArgumentKryo(Configuration conf, String searchArgumentKryo) {
if (searchArgumentKryo != null) {
conf.set(SEARCH_ARGUMENT, searchArgumentKryo);
}
} } | public class class_name {
public static void setSearchArgumentKryo(Configuration conf, String searchArgumentKryo) {
if (searchArgumentKryo != null) {
conf.set(SEARCH_ARGUMENT, searchArgumentKryo); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static boolean failSafeRemove(Node parent, Element child) {
//noinspection SimplifiableIfStatement
if (parent != null && child != null && parent.contains(child)) {
return parent.removeChild(child) != null;
}
return false;
} } | public class class_name {
public static boolean failSafeRemove(Node parent, Element child) {
//noinspection SimplifiableIfStatement
if (parent != null && child != null && parent.contains(child)) {
return parent.removeChild(child) != null; // depends on control dependency: [if], data = [none... |
public class class_name {
int removeExpired(TimeoutHandler expireHandler)
{
// ensure the clock never goes backwards
long t = ticker.currentTimeMillis();
int expired = 0;
for (int i = 0; i < slotCount; i++)
{
expired += slots[i].removeExpired(t, expireHandler);
... | public class class_name {
int removeExpired(TimeoutHandler expireHandler)
{
// ensure the clock never goes backwards
long t = ticker.currentTimeMillis();
int expired = 0;
for (int i = 0; i < slotCount; i++)
{
expired += slots[i].removeExpired(t, expireHandler); ... |
public class class_name {
public static double[][] plusEquals(final double[][] m1, final double[][] m2) {
final int rowdim = m1.length, coldim = getColumnDimensionality(m1);
assert getRowDimensionality(m1) == getRowDimensionality(m2) && coldim == getColumnDimensionality(m2) : ERR_MATRIX_DIMENSIONS;
for(int... | public class class_name {
public static double[][] plusEquals(final double[][] m1, final double[][] m2) {
final int rowdim = m1.length, coldim = getColumnDimensionality(m1);
assert getRowDimensionality(m1) == getRowDimensionality(m2) && coldim == getColumnDimensionality(m2) : ERR_MATRIX_DIMENSIONS;
for(int... |
public class class_name {
protected Boolean _hasSideEffects(XTryCatchFinallyExpression expression, ISideEffectContext context) {
final List<Map<String, List<XExpression>>> buffers = new ArrayList<>();
Map<String, List<XExpression>> buffer = context.createVariableAssignmentBufferForBranch();
if (hasSideEffects(ex... | public class class_name {
protected Boolean _hasSideEffects(XTryCatchFinallyExpression expression, ISideEffectContext context) {
final List<Map<String, List<XExpression>>> buffers = new ArrayList<>();
Map<String, List<XExpression>> buffer = context.createVariableAssignmentBufferForBranch();
if (hasSideEffects(ex... |
public class class_name {
public static long byteArrayToLongLE( byte[] data ) {
if (data == null)
return 0x0;
long accum = 0;
int shiftBy = 0;
for( byte b : data ) {
accum |= (long) (b & 0xff) << shiftBy;
shiftBy += 8;
}
return accum;
... | public class class_name {
public static long byteArrayToLongLE( byte[] data ) {
if (data == null)
return 0x0;
long accum = 0;
int shiftBy = 0;
for( byte b : data ) {
accum |= (long) (b & 0xff) << shiftBy; // depends on control dependency: [for], data = [b]
... |
public class class_name {
public DescribeRetentionConfigurationsRequest withRetentionConfigurationNames(String... retentionConfigurationNames) {
if (this.retentionConfigurationNames == null) {
setRetentionConfigurationNames(new com.amazonaws.internal.SdkInternalList<String>(retentionConfigurationNa... | public class class_name {
public DescribeRetentionConfigurationsRequest withRetentionConfigurationNames(String... retentionConfigurationNames) {
if (this.retentionConfigurationNames == null) {
setRetentionConfigurationNames(new com.amazonaws.internal.SdkInternalList<String>(retentionConfigurationNa... |
public class class_name {
public void marshall(LogGroup logGroup, ProtocolMarshaller protocolMarshaller) {
if (logGroup == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(logGroup.getLogGroupName(), ... | public class class_name {
public void marshall(LogGroup logGroup, ProtocolMarshaller protocolMarshaller) {
if (logGroup == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(logGroup.getLogGroupName(), ... |
public class class_name {
public TransformersSubRegistration registerSubsystemTransformers(final String name, final ModelVersionRange range, final ResourceTransformer subsystemTransformer, final OperationTransformer operationTransformer, boolean placeholder) {
final PathAddress subsystemAddress = PathAddress.E... | public class class_name {
public TransformersSubRegistration registerSubsystemTransformers(final String name, final ModelVersionRange range, final ResourceTransformer subsystemTransformer, final OperationTransformer operationTransformer, boolean placeholder) {
final PathAddress subsystemAddress = PathAddress.E... |
public class class_name {
public void marshall(ListResourcesRequest listResourcesRequest, ProtocolMarshaller protocolMarshaller) {
if (listResourcesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(ListResourcesRequest listResourcesRequest, ProtocolMarshaller protocolMarshaller) {
if (listResourcesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
@Override
void completeCandidates(CommandContext ctx, String buffer, int cursor, List<String> candidates) {
if (candidates.isEmpty()) {
if (buffer.startsWith("\"") && buffer.length() >= 2) {
// Quotes are added back by super class.
buffe... | public class class_name {
@Override
void completeCandidates(CommandContext ctx, String buffer, int cursor, List<String> candidates) {
if (candidates.isEmpty()) {
if (buffer.startsWith("\"") && buffer.length() >= 2) {
// Quotes are added back by super class.
buffe... |
public class class_name {
public void removeServletTimer(ServletTimer servletTimer, boolean updateAppSessionReadyToInvalidateState){
if(servletTimers != null) {
servletTimers.remove(servletTimer.getId());
}
if(updateAppSessionReadyToInvalidateState) {
updateReadyToInvalidateState();
}
} } | public class class_name {
public void removeServletTimer(ServletTimer servletTimer, boolean updateAppSessionReadyToInvalidateState){
if(servletTimers != null) {
servletTimers.remove(servletTimer.getId());
// depends on control dependency: [if], data = [none]
}
if(updateAppSessionReadyToInvalidateState) {
... |
public class class_name {
void encode(
DEROutputStream out)
throws IOException
{
if (out instanceof ASN1OutputStream || out instanceof BEROutputStream)
{
out.write(SEQUENCE | CONSTRUCTED);
out.write(0x80);
Enumeration e = get... | public class class_name {
void encode(
DEROutputStream out)
throws IOException
{
if (out instanceof ASN1OutputStream || out instanceof BEROutputStream)
{
out.write(SEQUENCE | CONSTRUCTED);
out.write(0x80);
Enumeration e = get... |
public class class_name {
private void adjustRequest(GetObjectRequest req) {
long[] range = req.getRange();
long lastByte = range[1];
long totalBytesToDownload = lastByte - this.origStartingByte + 1;
if (dstfile.exists()) {
if (!FileLocks.lock(dstfile)) {
th... | public class class_name {
private void adjustRequest(GetObjectRequest req) {
long[] range = req.getRange();
long lastByte = range[1];
long totalBytesToDownload = lastByte - this.origStartingByte + 1;
if (dstfile.exists()) {
if (!FileLocks.lock(dstfile)) {
th... |
public class class_name {
public static Set<String> getFixedURLs(final ContentSpec contentSpec) {
final Set<String> fixedUrls = new HashSet<String>();
for (final Node childNode : contentSpec.getNodes()) {
if (childNode instanceof SpecNode) {
final SpecNode specNode = ((Spec... | public class class_name {
public static Set<String> getFixedURLs(final ContentSpec contentSpec) {
final Set<String> fixedUrls = new HashSet<String>();
for (final Node childNode : contentSpec.getNodes()) {
if (childNode instanceof SpecNode) {
final SpecNode specNode = ((Spec... |
public class class_name {
public java.util.List<String> getVersions() {
if (versions == null) {
versions = new com.amazonaws.internal.SdkInternalList<String>();
}
return versions;
} } | public class class_name {
public java.util.List<String> getVersions() {
if (versions == null) {
versions = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return versions;
} } |
public class class_name {
protected void addDirectory( JarArchiver jarArchiver, File directory, String prefix )
{
if ( directory != null && directory.exists() )
{
final DefaultFileSet fileSet = new DefaultFileSet();
fileSet.setPrefix( endWithSlash( prefix ) );
fi... | public class class_name {
protected void addDirectory( JarArchiver jarArchiver, File directory, String prefix )
{
if ( directory != null && directory.exists() )
{
final DefaultFileSet fileSet = new DefaultFileSet();
fileSet.setPrefix( endWithSlash( prefix ) ); // depends on ... |
public class class_name {
public final EObject ruleXEqualityExpression() throws RecognitionException {
EObject current = null;
EObject this_XRelationalExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalSARL.g:12510:2: ( (thi... | public class class_name {
public final EObject ruleXEqualityExpression() throws RecognitionException {
EObject current = null;
EObject this_XRelationalExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalSARL.g:12510:2: ( (thi... |
public class class_name {
public void createChildAccessors(ClassIndex index, ClassPlan plan, JavaClassSource javaClass) {
Inflector inflector = new Inflector();
ResourceMetaData resourceMetaData = plan.getMetaData();
final JavaClassSource subresourceClass = getOrCreateSubresourceClass(plan, ... | public class class_name {
public void createChildAccessors(ClassIndex index, ClassPlan plan, JavaClassSource javaClass) {
Inflector inflector = new Inflector();
ResourceMetaData resourceMetaData = plan.getMetaData();
final JavaClassSource subresourceClass = getOrCreateSubresourceClass(plan, ... |
public class class_name {
public CmsObject getOfflineCmsObject(CmsObject cms) {
CmsObject res = null;
try {
if (!cms.getRequestContext().getCurrentProject().isOnlineProject()) {
return OpenCms.initCmsObject(cms);
}
res = OpenCms.initCmsObject(cms);
... | public class class_name {
public CmsObject getOfflineCmsObject(CmsObject cms) {
CmsObject res = null;
try {
if (!cms.getRequestContext().getCurrentProject().isOnlineProject()) {
return OpenCms.initCmsObject(cms); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Response invokeSignedRequest(Client apiClient, String accessKey, String secretKey,
String httpMethod, String endpointURL, String reqPath, Map<String, String> headers,
MultivaluedMap<String, String> params, Entity<?> entity) {
byte[] jsonEntity = null;
if (entity != null) {
... | public class class_name {
public Response invokeSignedRequest(Client apiClient, String accessKey, String secretKey,
String httpMethod, String endpointURL, String reqPath, Map<String, String> headers,
MultivaluedMap<String, String> params, Entity<?> entity) {
byte[] jsonEntity = null;
if (entity != null) {
... |
public class class_name {
public FieldElement invert() {
FieldElement t0, t1, t2, t3;
// 2 == 2 * 1
t0 = square();
// 4 == 2 * 2
t1 = t0.square();
// 8 == 2 * 4
t1 = t1.square();
// 9 == 8 + 1
t1 = multiply(t1);
// 11 == 9 + 2
t0 = t0.multiply(t1);
// 22 == 2 * 11
... | public class class_name {
public FieldElement invert() {
FieldElement t0, t1, t2, t3;
// 2 == 2 * 1
t0 = square();
// 4 == 2 * 2
t1 = t0.square();
// 8 == 2 * 4
t1 = t1.square();
// 9 == 8 + 1
t1 = multiply(t1);
// 11 == 9 + 2
t0 = t0.multiply(t1);
// 22 == 2 * 11
... |
public class class_name {
public void init(Record record, String startFieldName, BaseField fldStart, String endFieldName, BaseField fldEnd, int iPadfldEnd)
{
super.init(record);
this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE); // This runs on the slave (if there is a slave)
m_fldStart... | public class class_name {
public void init(Record record, String startFieldName, BaseField fldStart, String endFieldName, BaseField fldEnd, int iPadfldEnd)
{
super.init(record);
this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE); // This runs on the slave (if there is a slave)
m_fldStart... |
public class class_name {
protected void processSprintData(Feature feature, Sprint sprint) {
// sSprintChangeDate - does not exist in Jira
feature.setsSprintChangeDate("");
// sSprintIsDeleted - does not exist in Jira
feature.setsSprintIsDeleted("False");
feature.setsSprintID(... | public class class_name {
protected void processSprintData(Feature feature, Sprint sprint) {
// sSprintChangeDate - does not exist in Jira
feature.setsSprintChangeDate("");
// sSprintIsDeleted - does not exist in Jira
feature.setsSprintIsDeleted("False");
feature.setsSprintID(... |
public class class_name {
@Override
public synchronized void stopNow() { // can be called if unscheduled, disappeared, so don't use mutable variable
verifyCanStopState();
final List<TaskExecutor> executorList = findNativeExecutorList();
if (JobChangeLog.isEnabled()) {
JobChangeL... | public class class_name {
@Override
public synchronized void stopNow() { // can be called if unscheduled, disappeared, so don't use mutable variable
verifyCanStopState();
final List<TaskExecutor> executorList = findNativeExecutorList();
if (JobChangeLog.isEnabled()) {
JobChangeL... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public WohnungKategorienTyp getWohnungKategorie() {
if (wohnungKategorie == null) {
return WohnungKategorienTyp.KEINE_ANGABE;
} else {
r... | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public WohnungKategorienTyp getWohnungKategorie() {
if (wohnungKategorie == null) {
return WohnungKategorienTyp.KEINE_ANGABE; // depends on control dependen... |
public class class_name {
public float floatValue(){
if(intCompact != INFLATED) {
if (scale == 0) {
return (float)intCompact;
} else {
/*
* If both intCompact and the scale can be exactly
* represented as float values, pe... | public class class_name {
public float floatValue(){
if(intCompact != INFLATED) {
if (scale == 0) {
return (float)intCompact; // depends on control dependency: [if], data = [none]
} else {
/*
* If both intCompact and the scale can be exac... |
public class class_name {
private void doRedBlackDeleteFixup(final Node<K,V> replacementNode,
final int index) {
Node<K,V> currentNode = replacementNode;
while ((currentNode != rootNode[index])
&& (isBlack(currentNode, index))) {
... | public class class_name {
private void doRedBlackDeleteFixup(final Node<K,V> replacementNode,
final int index) {
Node<K,V> currentNode = replacementNode;
while ((currentNode != rootNode[index])
&& (isBlack(currentNode, index))) {
... |
public class class_name {
protected boolean deleteProxy(
DestinationHandler destination,
MESubscription subscription,
Neighbour neighbour,
SIBUuid12 topicSpace,
String topic,
boolean wasRecovered,
boolean deleteHandler )
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | public class class_name {
protected boolean deleteProxy(
DestinationHandler destination,
MESubscription subscription,
Neighbour neighbour,
SIBUuid12 topicSpace,
String topic,
boolean wasRecovered,
boolean deleteHandler )
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... |
public class class_name {
protected ResourceBundle getResourceBundle(String basename, Locale locale) {
if (this.cacheMillis >= 0) {
// Fresh ResourceBundle.getBundle call in order to let ResourceBundle
// do its native caching, at the expense of more extensive lookup steps.
... | public class class_name {
protected ResourceBundle getResourceBundle(String basename, Locale locale) {
if (this.cacheMillis >= 0) {
// Fresh ResourceBundle.getBundle call in order to let ResourceBundle
// do its native caching, at the expense of more extensive lookup steps.
... |
public class class_name {
private static String addScriptDirectives(Element scriptElement) throws IOException, DocumentTemplateException {
String scriptReplacement = "";
List scriptParts = parseScriptParts(scriptElement.getValue());
for (int index = 0; index < scriptParts.size(); index++) {
ScriptPa... | public class class_name {
private static String addScriptDirectives(Element scriptElement) throws IOException, DocumentTemplateException {
String scriptReplacement = "";
List scriptParts = parseScriptParts(scriptElement.getValue());
for (int index = 0; index < scriptParts.size(); index++) {
ScriptPa... |
public class class_name {
public double[] solve(double[] b) {
if(b.length != m) {
throw new IllegalArgumentException(ERR_MATRIX_DIMENSIONS);
}
if(!this.isNonsingular()) {
throw new ArithmeticException(ERR_SINGULAR);
}
double[] bc = new double[piv.length];
for(int i = 0; i < piv.leng... | public class class_name {
public double[] solve(double[] b) {
if(b.length != m) {
throw new IllegalArgumentException(ERR_MATRIX_DIMENSIONS);
}
if(!this.isNonsingular()) {
throw new ArithmeticException(ERR_SINGULAR);
}
double[] bc = new double[piv.length];
for(int i = 0; i < piv.leng... |
public class class_name {
public OSchemaHelper oDocument(String pkField, Object pkValue)
{
checkOClass();
List<ODocument> docs = db.query(new OSQLSynchQuery<ODocument>("select from "+lastClass.getName()+" where "+pkField+" = ?", 1), pkValue);
if(docs!=null && !docs.isEmpty())
{
lastDocument = docs.get(0);
... | public class class_name {
public OSchemaHelper oDocument(String pkField, Object pkValue)
{
checkOClass();
List<ODocument> docs = db.query(new OSQLSynchQuery<ODocument>("select from "+lastClass.getName()+" where "+pkField+" = ?", 1), pkValue);
if(docs!=null && !docs.isEmpty())
{
lastDocument = docs.get(0); ... |
public class class_name {
synchronized void trimList(int toLimit){
int listSize = errorList.size();
List<CaughtError> newList = new CopyOnWriteArrayList<CaughtError>();
for (int i=listSize - toLimit; i<listSize; i++){
newList.add(errorList.get(i));
}
errorList = newList;
} } | public class class_name {
synchronized void trimList(int toLimit){
int listSize = errorList.size();
List<CaughtError> newList = new CopyOnWriteArrayList<CaughtError>();
for (int i=listSize - toLimit; i<listSize; i++){
newList.add(errorList.get(i)); // depends on control dependency: [for], data = [i]
}
err... |
public class class_name {
private List<DoubleSolution> getNonDominatedSolutions(ExperimentProblem<?> problem) throws FileNotFoundException {
NonDominatedSolutionListArchive<DoubleSolution> nonDominatedSolutionArchive =
new NonDominatedSolutionListArchive<DoubleSolution>() ;
for (ExperimentAlgorithm<?,... | public class class_name {
private List<DoubleSolution> getNonDominatedSolutions(ExperimentProblem<?> problem) throws FileNotFoundException {
NonDominatedSolutionListArchive<DoubleSolution> nonDominatedSolutionArchive =
new NonDominatedSolutionListArchive<DoubleSolution>() ;
for (ExperimentAlgorithm<?,... |
public class class_name {
public void setRotation(String rotation) {
if (rotation != null) {
try {
setRotation(Integer.parseInt(rotation));
} catch (NumberFormatException e) {
setRotation(-1);
}
}
} } | public class class_name {
public void setRotation(String rotation) {
if (rotation != null) {
try {
setRotation(Integer.parseInt(rotation));
// depends on control dependency: [try], data = [none]
} catch (NumberFormatException e) {
setRotation(-1);
... |
public class class_name {
public void registerTable(String tableName,
GeoPackageCursorWrapper cursorWrapper) {
// Remove an existing cursor wrapper
tableCursors.remove(tableName);
// Add the wrapper
tableCursors.put(tableName, cursorWrapper);
Stri... | public class class_name {
public void registerTable(String tableName,
GeoPackageCursorWrapper cursorWrapper) {
// Remove an existing cursor wrapper
tableCursors.remove(tableName);
// Add the wrapper
tableCursors.put(tableName, cursorWrapper);
Stri... |
public class class_name {
public static ManagedEntity[] createManagedEntities(ServerConnection sc, ManagedObjectReference[] mors) {
if (mors == null) {
return new ManagedEntity[0];
}
ManagedEntity[] mes = new ManagedEntity[mors.length];
for (int i = 0; i < mors.length... | public class class_name {
public static ManagedEntity[] createManagedEntities(ServerConnection sc, ManagedObjectReference[] mors) {
if (mors == null) {
return new ManagedEntity[0];
// depends on control dependency: [if], data = [none]
}
ManagedEntity[] mes = new ManagedEntity[mo... |
public class class_name {
private void recordTokenString(Vector targetStrings)
{
int tokPos = getTokenQueuePosFromMap(m_patternMapSize - 1);
resetTokenMark(tokPos + 1);
if (m_processor.lookahead('(', 1))
{
int tok = getKeywordToken(m_processor.m_token);
switch (tok)
{
case... | public class class_name {
private void recordTokenString(Vector targetStrings)
{
int tokPos = getTokenQueuePosFromMap(m_patternMapSize - 1);
resetTokenMark(tokPos + 1);
if (m_processor.lookahead('(', 1))
{
int tok = getKeywordToken(m_processor.m_token);
switch (tok)
{
case... |
public class class_name {
private static BigInteger bigForString(String str, int sigchars)
{
assert str.length() <= sigchars;
BigInteger big = BigInteger.ZERO;
for (int i = 0; i < str.length(); i++)
{
int charpos = 16 * (sigchars - (i + 1));
BigInteger charb... | public class class_name {
private static BigInteger bigForString(String str, int sigchars)
{
assert str.length() <= sigchars;
BigInteger big = BigInteger.ZERO;
for (int i = 0; i < str.length(); i++)
{
int charpos = 16 * (sigchars - (i + 1));
BigInteger charb... |
public class class_name {
public static List<Tuple2<Se3_F64,Vector3D_F64>> decomposeHomography( DMatrixRMaj H ) {
DecomposeHomography d = new DecomposeHomography();
d.decompose(H);
List<Vector3D_F64> solutionsN = d.getSolutionsN();
List<Se3_F64> solutionsSe = d.getSolutionsSE();
List<Tuple2<Se3_F64,Vector... | public class class_name {
public static List<Tuple2<Se3_F64,Vector3D_F64>> decomposeHomography( DMatrixRMaj H ) {
DecomposeHomography d = new DecomposeHomography();
d.decompose(H);
List<Vector3D_F64> solutionsN = d.getSolutionsN();
List<Se3_F64> solutionsSe = d.getSolutionsSE();
List<Tuple2<Se3_F64,Vector... |
public class class_name {
public static RealMatrix shuffleRows (RealMatrix matrix, RandomGenerator randomGenerator) {
// Create an index vector to be shuffled:
int[] index = MathArrays.sequence(matrix.getRowDimension(), 0, 1);
MathArrays.shuffle(index, randomGenerator);
// Create a new... | public class class_name {
public static RealMatrix shuffleRows (RealMatrix matrix, RandomGenerator randomGenerator) {
// Create an index vector to be shuffled:
int[] index = MathArrays.sequence(matrix.getRowDimension(), 0, 1);
MathArrays.shuffle(index, randomGenerator);
// Create a new... |
public class class_name {
private void addPostParams(final Request request) {
if (reservationStatus != null) {
request.addPostParam("ReservationStatus", reservationStatus.toString());
}
if (workerActivitySid != null) {
request.addPostParam("WorkerActivitySid", workerAct... | public class class_name {
private void addPostParams(final Request request) {
if (reservationStatus != null) {
request.addPostParam("ReservationStatus", reservationStatus.toString()); // depends on control dependency: [if], data = [none]
}
if (workerActivitySid != null) {
... |
public class class_name {
public String getValue() {
String value = null;
if (fixedValue != null) {
value = fixedValue;
} else if (currentValue != null) {
value = currentValue;
} else if (constraint != null) {
value = constraint.initValues(null);
}
if (value == null) {
value = "";
... | public class class_name {
public String getValue() {
String value = null;
if (fixedValue != null) {
value = fixedValue;
// depends on control dependency: [if], data = [none]
} else if (currentValue != null) {
value = currentValue;
// depends on control dependency: [if], data = [none]
} else if (con... |
public class class_name {
static private StringBuilder serializeChannel(StringBuilder buffer, OutboundChannelDefinition ocd, int order) throws NotSerializableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Serializing channel: " + order + " " + ocd.getOu... | public class class_name {
static private StringBuilder serializeChannel(StringBuilder buffer, OutboundChannelDefinition ocd, int order) throws NotSerializableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Serializing channel: " + order + " " + ocd.getOu... |
public class class_name {
public Date getNextInvalidTimeAfter(final Date date) {
long difference = 999;
//move back to the nearest second so differences will be accurate
final Calendar adjustCal = Calendar.getInstance(getTimeZone());
adjustCal.setTime(date);
adjustCal.set(Calen... | public class class_name {
public Date getNextInvalidTimeAfter(final Date date) {
long difference = 999;
//move back to the nearest second so differences will be accurate
final Calendar adjustCal = Calendar.getInstance(getTimeZone());
adjustCal.setTime(date);
adjustCal.set(Calen... |
public class class_name {
public E poll() {
lock.lock();
try {
if (open) {
if (elements.size() > 0) {
return elements.removeFirst();
} else {
return null;
}
} else {
throw new IllegalStateException("queue is closed");
}
} finally {
lock.unlock();
}
} } | public class class_name {
public E poll() {
lock.lock();
try {
if (open) {
if (elements.size() > 0) {
return elements.removeFirst(); // depends on control dependency: [if], data = [none]
} else {
return null; // depends on control dependency: [if], data = [none]
}
} else {
throw new... |
public class class_name {
private void init(Context context, AttributeSet attrs, int defStyle) {
// Initialize paint objects
paint = new Paint();
paint.setAntiAlias(true);
paintBorder = new Paint();
paintBorder.setAntiAlias(true);
paintBorder.setStyle(Paint.Style.STROKE);
paintSelectorBorder = new Paint(... | public class class_name {
private void init(Context context, AttributeSet attrs, int defStyle) {
// Initialize paint objects
paint = new Paint();
paint.setAntiAlias(true);
paintBorder = new Paint();
paintBorder.setAntiAlias(true);
paintBorder.setStyle(Paint.Style.STROKE);
paintSelectorBorder = new Paint(... |
public class class_name {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (position == super.getCount() && isEnableRefreshing()) {
return (mFooter);
}
return (super.getView(position, convertView, parent));
} } | public class class_name {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (position == super.getCount() && isEnableRefreshing()) {
return (mFooter); // depends on control dependency: [if], data = [none]
}
return (super.getView(position, conve... |
public class class_name {
protected void processStop(Endpoint endpoint, EventTypeEnum eventType) {
if (!sendLifecycleEvent) {
return;
}
Event event = createEvent(endpoint, eventType);
monitoringServiceClient.putEvents(Collections.singletonList(event));
if (LOG.isLog... | public class class_name {
protected void processStop(Endpoint endpoint, EventTypeEnum eventType) {
if (!sendLifecycleEvent) {
return; // depends on control dependency: [if], data = [none]
}
Event event = createEvent(endpoint, eventType);
monitoringServiceClient.putEvents(Co... |
public class class_name {
public boolean recordReturnType(JSTypeExpression jsType) {
if (jsType != null && currentInfo.getReturnType() == null
&& !hasAnySingletonTypeTags()) {
currentInfo.setReturnType(jsType);
populated = true;
return true;
} else {
return false;
}
} } | public class class_name {
public boolean recordReturnType(JSTypeExpression jsType) {
if (jsType != null && currentInfo.getReturnType() == null
&& !hasAnySingletonTypeTags()) {
currentInfo.setReturnType(jsType); // depends on control dependency: [if], data = [(jsType]
populated = true; // depend... |
public class class_name {
@Override
public void parse(final String... parameters) {
if (parameters.length >= 1) {
pathProperty().set(parameters[0]);
}
if (parameters.length >= 2) {
nameProperty().set(parameters[1]);
}
if (parameters.length == ... | public class class_name {
@Override
public void parse(final String... parameters) {
if (parameters.length >= 1) {
pathProperty().set(parameters[0]);
// depends on control dependency: [if], data = [none]
}
if (parameters.length >= 2) {
nameProperty().set(paramet... |
public class class_name {
public ListResourceDefinitionsResult withDefinitions(DefinitionInformation... definitions) {
if (this.definitions == null) {
setDefinitions(new java.util.ArrayList<DefinitionInformation>(definitions.length));
}
for (DefinitionInformation ele : definitions) ... | public class class_name {
public ListResourceDefinitionsResult withDefinitions(DefinitionInformation... definitions) {
if (this.definitions == null) {
setDefinitions(new java.util.ArrayList<DefinitionInformation>(definitions.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static boolean isNullOrWhiteSpace(String arg) {
if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) {
return true;
}
return false;
} } | public class class_name {
public static boolean isNullOrWhiteSpace(String arg) {
if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
protected void addLabel(ResponseWriter rw, String clientId, SelectOneMenu menu, String outerClientId)
throws IOException {
String label = menu.getLabel();
{
if (!menu.isRenderLabel()) {
label = null;
}
}
if (label != null) {
rw.startElement("label", menu);
rw.writeA... | public class class_name {
protected void addLabel(ResponseWriter rw, String clientId, SelectOneMenu menu, String outerClientId)
throws IOException {
String label = menu.getLabel();
{
if (!menu.isRenderLabel()) {
label = null; // depends on control dependency: [if], data = [none]
}
}
if (label != n... |
public class class_name {
public boolean isEmpty(short sessionId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty", ""+sessionId);
boolean queueEmpty = false;
synchronized (this)
{
synchronized(queue)
{
queueEmpty = queu... | public class class_name {
public boolean isEmpty(short sessionId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty", ""+sessionId);
boolean queueEmpty = false;
synchronized (this)
{
synchronized(queue)
{
queueEmpty = queu... |
public class class_name {
public static Set<String> getUsers()
{
final Set<String> ret = new HashSet<>();
for (final UserSession userSession : RegistryManager.getCache().values()) {
ret.add(userSession.getUserName());
}
return ret;
} } | public class class_name {
public static Set<String> getUsers()
{
final Set<String> ret = new HashSet<>();
for (final UserSession userSession : RegistryManager.getCache().values()) {
ret.add(userSession.getUserName()); // depends on control dependency: [for], data = [userSession]
... |
public class class_name {
public void addEntry(CatalogEntry entry) {
int type = entry.getEntryType();
if (type == BASE) {
String value = entry.getEntryArg(0);
URL newbase = null;
catalogManager.debug.message(5, "BASE CUR", base.toString());
catalogManager.debug.message(4, "BASE STR", ... | public class class_name {
public void addEntry(CatalogEntry entry) {
int type = entry.getEntryType();
if (type == BASE) {
String value = entry.getEntryArg(0);
URL newbase = null;
catalogManager.debug.message(5, "BASE CUR", base.toString()); // depends on control dependency: [if], data = [no... |
public class class_name {
public static boolean isValidPropertyNotNull(final GraphObject node, final PropertyKey key, final ErrorBuffer errorBuffer) {
final String type = node.getType();
if (key == null) {
errorBuffer.add(new EmptyPropertyToken(type, UnknownType));
return false;
}
final Object value ... | public class class_name {
public static boolean isValidPropertyNotNull(final GraphObject node, final PropertyKey key, final ErrorBuffer errorBuffer) {
final String type = node.getType();
if (key == null) {
errorBuffer.add(new EmptyPropertyToken(type, UnknownType)); // depends on control dependency: [if], dat... |
public class class_name {
@SuppressWarnings("rawtypes")
public static boolean isPropertyInherited(Class clz, String propertyName) {
if (clz == null) return false;
Assert.isTrue(StringUtils.hasText(propertyName), "Argument [propertyName] cannot be null or blank");
Class<?> superClass = clz.... | public class class_name {
@SuppressWarnings("rawtypes")
public static boolean isPropertyInherited(Class clz, String propertyName) {
if (clz == null) return false;
Assert.isTrue(StringUtils.hasText(propertyName), "Argument [propertyName] cannot be null or blank");
Class<?> superClass = clz.... |
public class class_name {
public void configure(CompilerConfiguration configuration) {
super.configure(configuration);
this.debug = configuration.getDebug();
if (!this.configured && this.classLoader instanceof GroovyClassLoader) {
appendCompilerConfigurationClasspathToClassLoader(c... | public class class_name {
public void configure(CompilerConfiguration configuration) {
super.configure(configuration);
this.debug = configuration.getDebug();
if (!this.configured && this.classLoader instanceof GroovyClassLoader) {
appendCompilerConfigurationClasspathToClassLoader(c... |
public class class_name {
public static Map<String,ExportedVariable> findExportedVariables( String exportedVariablesDecl, File sourceFile, int lineNumber ) {
Map<String,ExportedVariable> result = new HashMap<> ();
Pattern pattern = Pattern.compile( ParsingConstants.PROPERTY_GRAPH_RANDOM_PATTERN, Pattern.CASE_INSE... | public class class_name {
public static Map<String,ExportedVariable> findExportedVariables( String exportedVariablesDecl, File sourceFile, int lineNumber ) {
Map<String,ExportedVariable> result = new HashMap<> ();
Pattern pattern = Pattern.compile( ParsingConstants.PROPERTY_GRAPH_RANDOM_PATTERN, Pattern.CASE_INSE... |
public class class_name {
private static Object stringTypeToPig(Object value) {
if (value instanceof String) {
return value;
}
if (value instanceof byte[]) {
byte[] buf = (byte[])value;
return new DataByteArray(Arrays.copyOf(buf, buf.length));
}
if (value instanceof ByteBuffer) {
... | public class class_name {
private static Object stringTypeToPig(Object value) {
if (value instanceof String) {
return value; // depends on control dependency: [if], data = [none]
}
if (value instanceof byte[]) {
byte[] buf = (byte[])value;
return new DataByteArray(Arrays.copyOf(buf, buf.l... |
public class class_name {
public String getGeometryProperty(TableRef tableRef) {
TableMapping tableMapping = mappedClasses.get(tableRef);
if (tableMapping == null) {
return null;
}
for (ColumnMetaData columnMetaData : tableMapping.getMappedColumns()) {
if (column... | public class class_name {
public String getGeometryProperty(TableRef tableRef) {
TableMapping tableMapping = mappedClasses.get(tableRef);
if (tableMapping == null) {
return null; // depends on control dependency: [if], data = [none]
}
for (ColumnMetaData columnMetaData : tab... |
public class class_name {
public static String relativize(final String path,
final File parentDir,
final boolean removeInitialFileSep) {
// Check sanity
Validate.notNull(path, "path");
Validate.notNull(parentDir, "parentDi... | public class class_name {
public static String relativize(final String path,
final File parentDir,
final boolean removeInitialFileSep) {
// Check sanity
Validate.notNull(path, "path");
Validate.notNull(parentDir, "parentDi... |
public class class_name {
private void setListIdForColumn(CmsListColumnDefinition col) {
col.setListId(getListId());
// default actions
Iterator<CmsListDefaultAction> itDefaultActions = col.getDefaultActions().iterator();
while (itDefaultActions.hasNext()) {
itDefaultAction... | public class class_name {
private void setListIdForColumn(CmsListColumnDefinition col) {
col.setListId(getListId());
// default actions
Iterator<CmsListDefaultAction> itDefaultActions = col.getDefaultActions().iterator();
while (itDefaultActions.hasNext()) {
itDefaultAction... |
public class class_name {
private synchronized void defaultInit()
{
if (!_initialized)
{
_initialized = true;
String sinkClasses = System.getProperty("LOG_SINKS","org.browsermob.proxy.jetty.log.OutputStreamLogSink");
StringTokenizer sinkTokens = new StringTokeni... | public class class_name {
private synchronized void defaultInit()
{
if (!_initialized)
{
_initialized = true; // depends on control dependency: [if], data = [none]
String sinkClasses = System.getProperty("LOG_SINKS","org.browsermob.proxy.jetty.log.OutputStreamLogSink");
... |
public class class_name {
public int countCurrentDockerSlaves(final DockerSlaveTemplate template) throws Exception {
int count = 0;
List<Container> containers = getClient().listContainersCmd().exec();
for (Container container : containers) {
final Map<String, String> labels = conta... | public class class_name {
public int countCurrentDockerSlaves(final DockerSlaveTemplate template) throws Exception {
int count = 0;
List<Container> containers = getClient().listContainersCmd().exec();
for (Container container : containers) {
final Map<String, String> labels = conta... |
public class class_name {
static <T> Entry<T> applyQuery(Entry<T> entry, Query<T> query) {
requireNonNull(query, "query");
entry.content(); // Ensure that content is not null.
final EntryType entryType = entry.type();
final QueryType queryType = query.type();
if (!queryType.sup... | public class class_name {
static <T> Entry<T> applyQuery(Entry<T> entry, Query<T> query) {
requireNonNull(query, "query");
entry.content(); // Ensure that content is not null.
final EntryType entryType = entry.type();
final QueryType queryType = query.type();
if (!queryType.sup... |
public class class_name {
public MockResponse setChunkedBody(String body, int maxChunkSize) {
try {
return setChunkedBody(body.getBytes("UTF-8"), maxChunkSize);
} catch (UnsupportedEncodingException e) {
throw new AssertionError();
}
} } | public class class_name {
public MockResponse setChunkedBody(String body, int maxChunkSize) {
try {
return setChunkedBody(body.getBytes("UTF-8"), maxChunkSize); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
throw new AssertionE... |
public class class_name {
public static void bindStateStyle (Value<Boolean> value, final String onStyle,
final String offStyle, final Widget... targets)
{
value.addListenerAndTrigger(new Value.Listener<Boolean>() {
public void valueChanged (Boolean value) ... | public class class_name {
public static void bindStateStyle (Value<Boolean> value, final String onStyle,
final String offStyle, final Widget... targets)
{
value.addListenerAndTrigger(new Value.Listener<Boolean>() {
public void valueChanged (Boolean value) ... |
public class class_name {
public static INDArray toMatrix(List<Row> rows) {
INDArray ret = Nd4j.create(rows.size(), rows.get(0).size());
for (int i = 0; i < ret.rows(); i++) {
for (int j = 0; j < ret.columns(); j++) {
ret.putScalar(i, j, rows.get(i).getDouble(j));
... | public class class_name {
public static INDArray toMatrix(List<Row> rows) {
INDArray ret = Nd4j.create(rows.size(), rows.get(0).size());
for (int i = 0; i < ret.rows(); i++) {
for (int j = 0; j < ret.columns(); j++) {
ret.putScalar(i, j, rows.get(i).getDouble(j)); // depends... |
public class class_name {
@Override
public boolean isMatch(final CommonCell cell) {
if(!cell.isNumber()) {
return false;
}
final long zeroTime = ExcelDateUtils.getExcelZeroDateTime(cell.isDateStart1904());
final Date date = cell.getDateCellValue();
final... | public class class_name {
@Override
public boolean isMatch(final CommonCell cell) {
if(!cell.isNumber()) {
return false;
// depends on control dependency: [if], data = [none]
}
final long zeroTime = ExcelDateUtils.getExcelZeroDateTime(cell.isDateStart1904());
fin... |
public class class_name {
public static String trimWhitespace(String str) {
if (!hasLength(str)) {
return str;
}
StringBuilder buf = new StringBuilder(str);
while (buf.length() > 0 && Character.isWhitespace(buf.charAt(0))) {
buf.deleteCharAt(0);
}
... | public class class_name {
public static String trimWhitespace(String str) {
if (!hasLength(str)) {
return str; // depends on control dependency: [if], data = [none]
}
StringBuilder buf = new StringBuilder(str);
while (buf.length() > 0 && Character.isWhitespace(buf.charAt(0))... |
public class class_name {
private void checkMQLinkExists(boolean condition, String mqlinkName)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
... | public class class_name {
private void checkMQLinkExists(boolean condition, String mqlinkName)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
... |
public class class_name {
@Override
public void validate(ValidationHelper helper, Context context, String key, Parameter t) {
if (t != null) {
String reference = t.getRef();
if (reference != null && !reference.isEmpty()) {
ValidatorUtils.referenceValidatorHelper(r... | public class class_name {
@Override
public void validate(ValidationHelper helper, Context context, String key, Parameter t) {
if (t != null) {
String reference = t.getRef();
if (reference != null && !reference.isEmpty()) {
ValidatorUtils.referenceValidatorHelper(r... |
public class class_name {
@Deprecated
@Override
public boolean getFlag(int flagType) {
boolean val = false;
boolean leftFlag = left.getFlag(flagType);
if (right != null) {
if ("and".equals(operator) && leftFlag) {
boolean rightFlag = right.getFlag(flagType);
... | public class class_name {
@Deprecated
@Override
public boolean getFlag(int flagType) {
boolean val = false;
boolean leftFlag = left.getFlag(flagType);
if (right != null) {
if ("and".equals(operator) && leftFlag) {
boolean rightFlag = right.getFlag(flagType);
... |
public class class_name {
public ExtendedSwidProcessor setExtendedInformation(final JAXBElement<Object>... extendedInformationList) {
ExtendedInformationComplexType eict = new ExtendedInformationComplexType();
if (extendedInformationList.length > 0) {
for (JAXBElement<Object> extendedInform... | public class class_name {
public ExtendedSwidProcessor setExtendedInformation(final JAXBElement<Object>... extendedInformationList) {
ExtendedInformationComplexType eict = new ExtendedInformationComplexType();
if (extendedInformationList.length > 0) {
for (JAXBElement<Object> extendedInform... |
public class class_name {
public static synchronized Random getThreadLocalRandom() {
if(threadLocalRandom == null) {
threadLocalRandom = new ThreadLocal<Random>() {
/**
* Builds a Random object using the globalSeed (if available).
*
... | public class class_name {
public static synchronized Random getThreadLocalRandom() {
if(threadLocalRandom == null) {
threadLocalRandom = new ThreadLocal<Random>() {
/**
* Builds a Random object using the globalSeed (if available).
*
... |
public class class_name {
@Override
public EClass getIfcShapeRepresentation() {
if (ifcShapeRepresentationEClass == null) {
ifcShapeRepresentationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(597);
}
return ifcShapeRepresentationEClass;
} } | public class class_name {
@Override
public EClass getIfcShapeRepresentation() {
if (ifcShapeRepresentationEClass == null) {
ifcShapeRepresentationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(597);
// depends on control dependency: [if], data = [no... |
public class class_name {
public static void error(Object obj) {
if (obj instanceof Throwable) {
Throwable e = (Throwable) obj;
error(e, e.getMessage());
} else {
error("{}", obj);
}
} } | public class class_name {
public static void error(Object obj) {
if (obj instanceof Throwable) {
Throwable e = (Throwable) obj;
error(e, e.getMessage());
// depends on control dependency: [if], data = [none]
} else {
error("{}", obj);
// depends on control dependency: [if], data = [none]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.