code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void setEntityAggregates(java.util.Collection<EntityAggregate> entityAggregates) {
if (entityAggregates == null) {
this.entityAggregates = null;
return;
}
this.entityAggregates = new java.util.ArrayList<EntityAggregate>(entityAggregates)... | public class class_name {
public void setEntityAggregates(java.util.Collection<EntityAggregate> entityAggregates) {
if (entityAggregates == null) {
this.entityAggregates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = ... |
public class class_name {
public static TreeSet<Integer> validateDuplicatedColumnNumber(final Class<?> beanType, final List<ColumnMapping> list) {
final TreeSet<Integer> checkedNumber = new TreeSet<>();
final TreeSet<Integer> duplicatedNumbers = new TreeSet<>();
for(ColumnMapping c... | public class class_name {
public static TreeSet<Integer> validateDuplicatedColumnNumber(final Class<?> beanType, final List<ColumnMapping> list) {
final TreeSet<Integer> checkedNumber = new TreeSet<>();
final TreeSet<Integer> duplicatedNumbers = new TreeSet<>();
for(ColumnMapping c... |
public class class_name {
public void marshall(HierarchyLevel hierarchyLevel, ProtocolMarshaller protocolMarshaller) {
if (hierarchyLevel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(hierarchyL... | public class class_name {
public void marshall(HierarchyLevel hierarchyLevel, ProtocolMarshaller protocolMarshaller) {
if (hierarchyLevel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(hierarchyL... |
public class class_name {
protected boolean renameClientObject (Name oldname, Name newname)
{
ClientObject clobj = _objmap.remove(oldname);
if (clobj == null) {
log.warning("Requested to rename unmapped client object", "username", oldname,
new Exception());
... | public class class_name {
protected boolean renameClientObject (Name oldname, Name newname)
{
ClientObject clobj = _objmap.remove(oldname);
if (clobj == null) {
log.warning("Requested to rename unmapped client object", "username", oldname,
new Exception()); // de... |
public class class_name {
private String getFieldName(String contentDisposition) {
String fieldName = null;
if (contentDisposition != null && contentDisposition.toLowerCase().startsWith(FORM_DATA)) {
ParameterParser parser = new ParameterParser();
parser.setLowerCaseNames(true);
// parameter parser can ... | public class class_name {
private String getFieldName(String contentDisposition) {
String fieldName = null;
if (contentDisposition != null && contentDisposition.toLowerCase().startsWith(FORM_DATA)) {
ParameterParser parser = new ParameterParser();
parser.setLowerCaseNames(true); // depends on control depend... |
public class class_name {
public final EObject ruleXOrExpression() throws RecognitionException {
EObject current = null;
EObject this_XAndExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalXbase.g:353:2: ( (this_XAndExpressi... | public class class_name {
public final EObject ruleXOrExpression() throws RecognitionException {
EObject current = null;
EObject this_XAndExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalXbase.g:353:2: ( (this_XAndExpressi... |
public class class_name {
public static void assertNotEquals(String message, float unexpected,
float actual, float delta) {
if (!floatIsDifferent(unexpected, actual, delta)) {
failEquals(message, actual);
}
} } | public class class_name {
public static void assertNotEquals(String message, float unexpected,
float actual, float delta) {
if (!floatIsDifferent(unexpected, actual, delta)) {
failEquals(message, actual); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public ServiceCall<EntityCollection> listEntities(ListEntitiesOptions listEntitiesOptions) {
Validator.notNull(listEntitiesOptions, "listEntitiesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "entities" };
String[] pathParameters = { listEntitiesOptions.works... | public class class_name {
public ServiceCall<EntityCollection> listEntities(ListEntitiesOptions listEntitiesOptions) {
Validator.notNull(listEntitiesOptions, "listEntitiesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "entities" };
String[] pathParameters = { listEntitiesOptions.works... |
public class class_name {
@Override
public boolean centerRootTopicIfFocusedMMD() {
boolean result = false;
final TabTitle title = this.getFocusedTab();
if (title != null && title.getProvider().getEditor().getEditorContentType() == EditorContentType.MINDMAP) {
SwingUtilities.invokeLater(new Runnable... | public class class_name {
@Override
public boolean centerRootTopicIfFocusedMMD() {
boolean result = false;
final TabTitle title = this.getFocusedTab();
if (title != null && title.getProvider().getEditor().getEditorContentType() == EditorContentType.MINDMAP) {
SwingUtilities.invokeLater(new Runnable... |
public class class_name {
public static void splitAssociated( List<AssociatedPair> pairs ,
List<Point2D_F64> view1 , List<Point2D_F64> view2 ) {
for( AssociatedPair p : pairs ) {
view1.add(p.p1);
view2.add(p.p2);
}
} } | public class class_name {
public static void splitAssociated( List<AssociatedPair> pairs ,
List<Point2D_F64> view1 , List<Point2D_F64> view2 ) {
for( AssociatedPair p : pairs ) {
view1.add(p.p1); // depends on control dependency: [for], data = [p]
view2.add(p.p2); // depends on control dependency: [f... |
public class class_name {
public static String generateFilterCondition(String propertyName, String operation, final byte[] value) {
StringBuilder sb = new StringBuilder();
Formatter formatter = new Formatter(sb);
for (byte b : value) {
formatter.format("%02x", b);
}
... | public class class_name {
public static String generateFilterCondition(String propertyName, String operation, final byte[] value) {
StringBuilder sb = new StringBuilder();
Formatter formatter = new Formatter(sb);
for (byte b : value) {
formatter.format("%02x", b); // depends on cont... |
public class class_name {
static void processReport(FSNamesystem namesystem, Collection<Block> toRetry,
BlockListAsLongs newReport, DatanodeDescriptor node,
ExecutorService initialBlockReportExecutor) throws IOException {
// spawn one thread for blocksPerShardBR blocks
int numShards = Math
... | public class class_name {
static void processReport(FSNamesystem namesystem, Collection<Block> toRetry,
BlockListAsLongs newReport, DatanodeDescriptor node,
ExecutorService initialBlockReportExecutor) throws IOException {
// spawn one thread for blocksPerShardBR blocks
int numShards = Math
... |
public class class_name {
protected void showBootLogging() {
if (logger.isInfoEnabled()) {
logger.info("[Objective Config]");
logger.info(" " + appResource + " extends " + extendsResourceList);
final boolean checkImplicitOverride = prop.isCheckImplicitOverride();
... | public class class_name {
protected void showBootLogging() {
if (logger.isInfoEnabled()) {
logger.info("[Objective Config]"); // depends on control dependency: [if], data = [none]
logger.info(" " + appResource + " extends " + extendsResourceList); // depends on control dependency: [if],... |
public class class_name {
public static base_responses update(nitro_service client, systemcmdpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemcmdpolicy updateresources[] = new systemcmdpolicy[resources.length];
for (int i=0;i<resource... | public class class_name {
public static base_responses update(nitro_service client, systemcmdpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemcmdpolicy updateresources[] = new systemcmdpolicy[resources.length];
for (int i=0;i<resource... |
public class class_name {
public void setViolationEvents(java.util.Collection<ViolationEvent> violationEvents) {
if (violationEvents == null) {
this.violationEvents = null;
return;
}
this.violationEvents = new java.util.ArrayList<ViolationEvent>(violationEvents);
} ... | public class class_name {
public void setViolationEvents(java.util.Collection<ViolationEvent> violationEvents) {
if (violationEvents == null) {
this.violationEvents = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public static boolean memcmp( byte[] a, int a_offset, byte[] b, int b_offset, int length ) {
if ((a == null) && (b == null)) {
return true;
}
if ((a == null) || (b == null)) {
return false;
}
for( int i = 0; i < length; ++i, ++... | public class class_name {
public static boolean memcmp( byte[] a, int a_offset, byte[] b, int b_offset, int length ) {
if ((a == null) && (b == null)) {
return true; // depends on control dependency: [if], data = [none]
}
if ((a == null) || (b == null)) {
return false; ... |
public class class_name {
public AttributeOverride<ManyToMany<T>> getOrCreateMapKeyAttributeOverride()
{
List<Node> nodeList = childNode.get("map-key-attribute-override");
if (nodeList != null && nodeList.size() > 0)
{
return new AttributeOverrideImpl<ManyToMany<T>>(this, "map-key-attrib... | public class class_name {
public AttributeOverride<ManyToMany<T>> getOrCreateMapKeyAttributeOverride()
{
List<Node> nodeList = childNode.get("map-key-attribute-override");
if (nodeList != null && nodeList.size() > 0)
{
return new AttributeOverrideImpl<ManyToMany<T>>(this, "map-key-attrib... |
public class class_name {
public static void main(String[] pArgs) throws IOException {
int iterations = 1000000;
byte[] bytes = "������ klashf lkash ljah lhaaklhghdfgu ksd".getBytes("UTF-8");
Decoder d;
long start;
long time;
Writer sink = new PrintWriter(new N... | public class class_name {
public static void main(String[] pArgs) throws IOException {
int iterations = 1000000;
byte[] bytes = "������ klashf lkash ljah lhaaklhghdfgu ksd".getBytes("UTF-8");
Decoder d;
long start;
long time;
Writer sink = new PrintWriter(new N... |
public class class_name {
public DescribeWorkspaceBundlesRequest withBundleIds(String... bundleIds) {
if (this.bundleIds == null) {
setBundleIds(new com.amazonaws.internal.SdkInternalList<String>(bundleIds.length));
}
for (String ele : bundleIds) {
this.bundleIds.add(ele... | public class class_name {
public DescribeWorkspaceBundlesRequest withBundleIds(String... bundleIds) {
if (this.bundleIds == null) {
setBundleIds(new com.amazonaws.internal.SdkInternalList<String>(bundleIds.length)); // depends on control dependency: [if], data = [none]
}
for (String... |
public class class_name {
@Override
public void setErrorMode(ErrorMode newErrorMode)
{
Preconditions.checkNotNull(lockPath, "lockPath cannot be null");
if ( newErrorMode == ErrorMode.REQUEUE )
{
log.warn("ErrorMode.REQUEUE requires ZooKeeper version 3.4.x+ - make sure y... | public class class_name {
@Override
public void setErrorMode(ErrorMode newErrorMode)
{
Preconditions.checkNotNull(lockPath, "lockPath cannot be null");
if ( newErrorMode == ErrorMode.REQUEUE )
{
log.warn("ErrorMode.REQUEUE requires ZooKeeper version 3.4.x+ - make sure y... |
public class class_name {
public void logException(LogLevel logLevel, Throwable throwable, Class clazz, String methodName) {
Date timeStamp = new Date();
char border[] = new char[logLevel.toString().length() + 4];
Arrays.fill(border, '*');
String message;
if (throwable.getMessage() != null) ... | public class class_name {
public void logException(LogLevel logLevel, Throwable throwable, Class clazz, String methodName) {
Date timeStamp = new Date();
char border[] = new char[logLevel.toString().length() + 4];
Arrays.fill(border, '*');
String message;
if (throwable.getMessage() != null) ... |
public class class_name {
public static void shutdownAndAwaitTermination() {
shutdown();
if (pool != null) {
try {
// wait a while for existing tasks to terminate
if (!pool.awaitTermination(60L, TimeUnit.SECONDS)) {
pool.shutdownNow(); // cancel currently executing tasks
// wait a while for ta... | public class class_name {
public static void shutdownAndAwaitTermination() {
shutdown();
if (pool != null) {
try {
// wait a while for existing tasks to terminate
if (!pool.awaitTermination(60L, TimeUnit.SECONDS)) {
pool.shutdownNow(); // cancel currently executing tasks // depends on control depen... |
public class class_name {
public long discharge(BitmapStorage container, long max) {
long index = 0;
while (true) {
if (index + getRunningLength() > max) {
final int offset = (int) (max - index);
container.addStreamOfEmptyWords(getRunningBit(), offset);
this.brlw.runningLength -= o... | public class class_name {
public long discharge(BitmapStorage container, long max) {
long index = 0;
while (true) {
if (index + getRunningLength() > max) {
final int offset = (int) (max - index);
container.addStreamOfEmptyWords(getRunningBit(), offset); // depends on control dependency: [... |
public class class_name {
private void updateProperties(T target, Map<String, Object> source) {
Map<String, PropertyDescriptor> mapTargetProps = MappingUtils.mapPropertyDescriptors(target.getClass());
for (String sourceKey : source.keySet()) {
if (mapTargetProps.containsKey(sourceKey) == t... | public class class_name {
private void updateProperties(T target, Map<String, Object> source) {
Map<String, PropertyDescriptor> mapTargetProps = MappingUtils.mapPropertyDescriptors(target.getClass());
for (String sourceKey : source.keySet()) {
if (mapTargetProps.containsKey(sourceKey) == t... |
public class class_name {
protected String decodePercent(String str) {
String decoded = null;
try {
decoded = URLDecoder.decode(str, "UTF8");
} catch (UnsupportedEncodingException ignored) {
}
return decoded;
} } | public class class_name {
protected String decodePercent(String str) {
String decoded = null;
try {
decoded = URLDecoder.decode(str, "UTF8"); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException ignored) {
} // depends on control depen... |
public class class_name {
public static int getFirstScreenWidth()
{
final GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment
.getLocalGraphicsEnvironment();
final GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();
int width = getScreenWidth();
for (final GraphicsDevice gr... | public class class_name {
public static int getFirstScreenWidth()
{
final GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment
.getLocalGraphicsEnvironment();
final GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();
int width = getScreenWidth();
for (final GraphicsDevice gr... |
public class class_name {
public static void main(String[] args) throws IOException {
if (!parseInputArgs(args)) {
usage();
System.exit(EXIT_FAILED);
}
if (sHelp) {
usage();
System.exit(EXIT_SUCCEEDED);
}
if (!sNoTimeout && !stdinHasData()) {
System.exit(EXIT_FAILED);
... | public class class_name {
public static void main(String[] args) throws IOException {
if (!parseInputArgs(args)) {
usage();
System.exit(EXIT_FAILED);
}
if (sHelp) {
usage();
System.exit(EXIT_SUCCEEDED);
}
if (!sNoTimeout && !stdinHasData()) {
System.exit(EXIT_FAILED);
... |
public class class_name {
public void marshall(DiskSnapshot diskSnapshot, ProtocolMarshaller protocolMarshaller) {
if (diskSnapshot == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(diskSnapshot.get... | public class class_name {
public void marshall(DiskSnapshot diskSnapshot, ProtocolMarshaller protocolMarshaller) {
if (diskSnapshot == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(diskSnapshot.get... |
public class class_name {
public LogEntry[] getEntriesBetween(long fromEntryIndex, long toEntryIndex) {
if (fromEntryIndex > toEntryIndex) {
throw new IllegalArgumentException("Illegal from entry index: " + fromEntryIndex + ", to entry index: "
+ toEntryIndex);
}
... | public class class_name {
public LogEntry[] getEntriesBetween(long fromEntryIndex, long toEntryIndex) {
if (fromEntryIndex > toEntryIndex) {
throw new IllegalArgumentException("Illegal from entry index: " + fromEntryIndex + ", to entry index: "
+ toEntryIndex);
}
... |
public class class_name {
public void disconnect() {
try {
mContext.unbindService(mConnection);
} catch (Exception e) {
Log.w(getClass().getSimpleName(), "Exception unbinding from service: ", e);
}
} } | public class class_name {
public void disconnect() {
try {
mContext.unbindService(mConnection); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
Log.w(getClass().getSimpleName(), "Exception unbinding from service: ", e);
} // depends on control dependency: [catch], data = [non... |
public class class_name {
public static void copy(Path sourcePath, Path targetPath, boolean executable) throws IOException {
// we unwrap the file system to get raw streams without safety net
FileSystem sFS = FileSystem.getUnguardedFileSystem(sourcePath.toUri());
FileSystem tFS = FileSystem.getUnguardedFileSyste... | public class class_name {
public static void copy(Path sourcePath, Path targetPath, boolean executable) throws IOException {
// we unwrap the file system to get raw streams without safety net
FileSystem sFS = FileSystem.getUnguardedFileSystem(sourcePath.toUri());
FileSystem tFS = FileSystem.getUnguardedFileSyste... |
public class class_name {
public synchronized void run() {
while (!shutdown) {
if (jobList.isEmpty()) {
linger();
} else {
ScheduledJobEntry sje = (ScheduledJobEntry) jobList.get(0);
long now = System.currentTimeMillis();
i... | public class class_name {
public synchronized void run() {
while (!shutdown) {
if (jobList.isEmpty()) {
linger(); // depends on control dependency: [if], data = [none]
} else {
ScheduledJobEntry sje = (ScheduledJobEntry) jobList.get(0);
lo... |
public class class_name {
public void load() {
ClassLoader loader;
Class c;
Method m;
Object[] tables;
if (isLoaded()) {
return;
}
loader = Mapper.class.getClassLoader();
try {
c = loader.loadClass(name);
} catch (ClassNot... | public class class_name {
public void load() {
ClassLoader loader;
Class c;
Method m;
Object[] tables;
if (isLoaded()) {
return; // depends on control dependency: [if], data = [none]
}
loader = Mapper.class.getClassLoader();
try {
... |
public class class_name {
public CollectionResult<double[]> run(Database database, Relation<O> rel) {
DistanceQuery<O> dq = rel.getDistanceQuery(getDistanceFunction());
int size = rel.size();
long pairs = (size * (long) size) >> 1;
final long ssize = sampling <= 1 ? (long) Math.ceil(sampling * pairs) ... | public class class_name {
public CollectionResult<double[]> run(Database database, Relation<O> rel) {
DistanceQuery<O> dq = rel.getDistanceQuery(getDistanceFunction());
int size = rel.size();
long pairs = (size * (long) size) >> 1;
final long ssize = sampling <= 1 ? (long) Math.ceil(sampling * pairs) ... |
public class class_name {
static ExecutorService createExecutorService(final String threads) {
final int threadCount;
if (threads.endsWith("C")) {
threadCount = Integer.parseInt(threads.substring(0, threads.length() - 1))
* Runtime.getRuntime().availableProcessors();
... | public class class_name {
static ExecutorService createExecutorService(final String threads) {
final int threadCount;
if (threads.endsWith("C")) {
threadCount = Integer.parseInt(threads.substring(0, threads.length() - 1))
* Runtime.getRuntime().availableProcessors(); // ... |
public class class_name {
Long getPrecisionAct() {
Integer temp = getPrecision();
if (temp == null) {
return ValuePool.getLong(Long.MAX_VALUE);
} else {
return ValuePool.getLong(temp.longValue());
}
} } | public class class_name {
Long getPrecisionAct() {
Integer temp = getPrecision();
if (temp == null) {
return ValuePool.getLong(Long.MAX_VALUE); // depends on control dependency: [if], data = [none]
} else {
return ValuePool.getLong(temp.longValue()); // depends on cont... |
public class class_name {
public BaseBuffer doSeek(String strSeekSign, FieldTable vectorTable, KeyAreaInfo keyArea) throws DBException
{
BaseBuffer buffer = null;
int iLowestMatch = -1; // For non-exact matches
keyArea.setupKeyBuffer(null, Constants.TEMP_KEY_AREA);
if (keyArea.getU... | public class class_name {
public BaseBuffer doSeek(String strSeekSign, FieldTable vectorTable, KeyAreaInfo keyArea) throws DBException
{
BaseBuffer buffer = null;
int iLowestMatch = -1; // For non-exact matches
keyArea.setupKeyBuffer(null, Constants.TEMP_KEY_AREA);
if (keyArea.getU... |
public class class_name {
public String getTemplateNameForResult(Route route, Result response) {
String template = response.template();
if (template == null) {
if (route != null) {
String controllerPath = RouterHelper.getReverseRouteFast(route.getController());
... | public class class_name {
public String getTemplateNameForResult(Route route, Result response) {
String template = response.template();
if (template == null) {
if (route != null) {
String controllerPath = RouterHelper.getReverseRouteFast(route.getController());
... |
public class class_name {
protected static XMemberFeatureCall getRootOfMemberFeatureCallSequence(EObject leaf, EObject container,
Procedure1<XMemberFeatureCall> feedback) {
EObject call = leaf;
EObject obj = EcoreUtil2.getContainerOfType(leaf.eContainer(), XExpression.class);
while (obj != null && (container ... | public class class_name {
protected static XMemberFeatureCall getRootOfMemberFeatureCallSequence(EObject leaf, EObject container,
Procedure1<XMemberFeatureCall> feedback) {
EObject call = leaf;
EObject obj = EcoreUtil2.getContainerOfType(leaf.eContainer(), XExpression.class);
while (obj != null && (container ... |
public class class_name {
public static boolean clearDirectory(File directory) {
if (directory.isDirectory()) {
for (File file : directory.listFiles()) {
if (!deleteRecursive(file)) {
return false;
}
}
}
return true;
} } | public class class_name {
public static boolean clearDirectory(File directory) {
if (directory.isDirectory()) {
for (File file : directory.listFiles()) {
if (!deleteRecursive(file)) {
return false; // depends on control dependency: [if], data = [none]
}
}
}
return true... |
public class class_name {
void calculateValueAt(double x) {
int len = points.size();
for (int i = 1; i < len; i++) {
Point p1 = points.get(i - 1);
Point p2 = points.get(i);
if (x >= p1.getX().doubleValue() && x <= p2.getX().doubleValue()) {
// calculate the slope intercept form
double m = (p2.get... | public class class_name {
void calculateValueAt(double x) {
int len = points.size();
for (int i = 1; i < len; i++) {
Point p1 = points.get(i - 1);
Point p2 = points.get(i);
if (x >= p1.getX().doubleValue() && x <= p2.getX().doubleValue()) {
// calculate the slope intercept form
double m = (p2.get... |
public class class_name {
public Mac acquire(String algorithm) {
Mac result = null;
Queue<Mac> pool = this.macPoolByAlgorithm.get(algorithm);
if (pool != null) {
result = pool.poll();
}
if (result != null) {
// it has to be synchronized, for the case th... | public class class_name {
public Mac acquire(String algorithm) {
Mac result = null;
Queue<Mac> pool = this.macPoolByAlgorithm.get(algorithm);
if (pool != null) {
result = pool.poll(); // depends on control dependency: [if], data = [none]
}
if (result != null) {
... |
public class class_name {
public HttpResponse doHttpCall(final String urlString,
final String stringToSend, final String user, final String pwd,
final String proxyHost, final int proxyPort,
final Map<String, String> httpHeaders) throws IOException {
HttpURLConnection connection = null;
HttpResponse resul... | public class class_name {
public HttpResponse doHttpCall(final String urlString,
final String stringToSend, final String user, final String pwd,
final String proxyHost, final int proxyPort,
final Map<String, String> httpHeaders) throws IOException {
HttpURLConnection connection = null;
HttpResponse resul... |
public class class_name {
public static boolean doesZipContainFileTypes(File file, String... fileTypes) {
// It must be a zip file with an XML file at it's root and a properties file in it
if (!file.getName().endsWith(".zip")) {
return false;
}
ZipFile zip = null;
tr... | public class class_name {
public static boolean doesZipContainFileTypes(File file, String... fileTypes) {
// It must be a zip file with an XML file at it's root and a properties file in it
if (!file.getName().endsWith(".zip")) {
return false; // depends on control dependency: [if], data = [... |
public class class_name {
private Connection getConnection(InetSocketAddress addr,
Class<?> protocol,
UserGroupInformation ticket,
int rpcTimeout,
Call call)
... | public class class_name {
private Connection getConnection(InetSocketAddress addr,
Class<?> protocol,
UserGroupInformation ticket,
int rpcTimeout,
Call call)
... |
public class class_name {
public void addValidator(final FieldValidator validator) {
WComponent labelField = findComponentForLabel(field);
if (labelField instanceof Input) {
((Input) labelField).addValidator(validator);
}
} } | public class class_name {
public void addValidator(final FieldValidator validator) {
WComponent labelField = findComponentForLabel(field);
if (labelField instanceof Input) {
((Input) labelField).addValidator(validator); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
void removeComputer(final Computer computer) {
Queue.withLock(new Runnable() {
@Override
public void run() {
Map<Node,Computer> computers = getComputerMap();
for (Map.Entry<Node, Computer> e : computers.entrySet()) {
... | public class class_name {
void removeComputer(final Computer computer) {
Queue.withLock(new Runnable() {
@Override
public void run() {
Map<Node,Computer> computers = getComputerMap();
for (Map.Entry<Node, Computer> e : computers.entrySet()) {
... |
public class class_name {
public Concatenator BR_CLOSE() {
if (((PredicateExpression)this.astNode).getParent() != null) {
Concatenator ret = new Concatenator(((PredicateExpression)this.astNode).getParent());
return ret;
} else
throw new RuntimeException("No matching open bracket");
} } | public class class_name {
public Concatenator BR_CLOSE() {
if (((PredicateExpression)this.astNode).getParent() != null) {
Concatenator ret = new Concatenator(((PredicateExpression)this.astNode).getParent());
return ret;
// depends on control dependency: [if], data = [none]
} else
throw new RuntimeExc... |
public class class_name {
public static IProcessingInstructionProcessor unwrap(final IProcessingInstructionProcessor processor) {
if (processor == null) {
return null;
}
if (processor instanceof AbstractProcessorWrapper) {
return (IProcessingInstructionProcessor)((Abstra... | public class class_name {
public static IProcessingInstructionProcessor unwrap(final IProcessingInstructionProcessor processor) {
if (processor == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (processor instanceof AbstractProcessorWrapper) {
... |
public class class_name {
private AuthenticationInfo getUncachedAuthenticationInfoForKey(String authenicationId) {
ApiKey apiKey = _authIdentityReader.getIdentityByAuthenticationId(authenicationId);
if (apiKey == null) {
return null;
}
return createAuthenticationInfo(authen... | public class class_name {
private AuthenticationInfo getUncachedAuthenticationInfoForKey(String authenicationId) {
ApiKey apiKey = _authIdentityReader.getIdentityByAuthenticationId(authenicationId);
if (apiKey == null) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@WillCloseWhenClosed
public static void sleepFor(long timeout, TimeUnit unit) {
try {
unit.sleep(timeout);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
} } | public class class_name {
@WillCloseWhenClosed
public static void sleepFor(long timeout, TimeUnit unit) {
try {
unit.sleep(timeout); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
} // dep... |
public class class_name {
private void processFileCompressionTypes() throws SnowflakeSQLException
{
// see what user has told us about the source file compression types
boolean autoDetect = true;
FileCompressionType userSpecifiedSourceCompression = null;
if (SOURCE_COMPRESSION_AUTO_DETECT.equalsIgno... | public class class_name {
private void processFileCompressionTypes() throws SnowflakeSQLException
{
// see what user has told us about the source file compression types
boolean autoDetect = true;
FileCompressionType userSpecifiedSourceCompression = null;
if (SOURCE_COMPRESSION_AUTO_DETECT.equalsIgno... |
public class class_name {
private AttributeDefinition renameAttribute(String currDefId, ExtendedAttributeDefinition oldAttribute, ExtendedAttributeDefinition newAttribute, boolean required) {
AttributeDefinitionSpecification result = new AttributeDefinitionSpecification();
// Set some original values... | public class class_name {
private AttributeDefinition renameAttribute(String currDefId, ExtendedAttributeDefinition oldAttribute, ExtendedAttributeDefinition newAttribute, boolean required) {
AttributeDefinitionSpecification result = new AttributeDefinitionSpecification();
// Set some original values... |
public class class_name {
public String[] lookupAllPrefixes(String uri)
{
java.util.ArrayList foundPrefixes = new java.util.ArrayList();
Enumeration prefixes = m_namespaces.keys();
while (prefixes.hasMoreElements())
{
String prefix = (String) prefixes.nextElement();
... | public class class_name {
public String[] lookupAllPrefixes(String uri)
{
java.util.ArrayList foundPrefixes = new java.util.ArrayList();
Enumeration prefixes = m_namespaces.keys();
while (prefixes.hasMoreElements())
{
String prefix = (String) prefixes.nextElement();
... |
public class class_name {
public String pageBody(int segment, String className, String parameters) {
if (segment == HTML_START) {
StringBuffer result = new StringBuffer(128);
result.append("</head>\n<body unselectable=\"on\"");
if (className != null) {
resul... | public class class_name {
public String pageBody(int segment, String className, String parameters) {
if (segment == HTML_START) {
StringBuffer result = new StringBuffer(128);
result.append("</head>\n<body unselectable=\"on\""); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public synchronized String getSubDomain()
{
if(m_imageUrlSubdomains==null || m_imageUrlSubdomains.length<=0) {
return null;
}
final String result = m_imageUrlSubdomains[m_subdomainsCounter];
if(m_subdomainsCounter<m_imageUrlSubdomains.length-1) {
m_subdomainsCounter++;
} els... | public class class_name {
public synchronized String getSubDomain()
{
if(m_imageUrlSubdomains==null || m_imageUrlSubdomains.length<=0) {
return null; // depends on control dependency: [if], data = [none]
}
final String result = m_imageUrlSubdomains[m_subdomainsCounter];
if(m_subdomainsCounter<m_imageUrlSu... |
public class class_name {
private void createNodes(DefaultMutableTreeNode top) {
// leaves
DefaultMutableTreeNode defaultMutableTreeNode = null;
// Train Files
DefaultMutableTreeNode trainCategory = new DefaultMutableTreeNode("Train");
top.add(trainCategory);
// Test Files
DefaultMutable... | public class class_name {
private void createNodes(DefaultMutableTreeNode top) {
// leaves
DefaultMutableTreeNode defaultMutableTreeNode = null;
// Train Files
DefaultMutableTreeNode trainCategory = new DefaultMutableTreeNode("Train");
top.add(trainCategory);
// Test Files
DefaultMutable... |
public class class_name {
public static void printMatrixData(double[][] matrix) {
int cols = matrix[0].length;
int rows = matrix.length;
for (int r = 0; r < rows; r++) {
for (int c = 0; c < cols; c++) {
printer.print(matrix[r][c]);
printer.print(separ... | public class class_name {
public static void printMatrixData(double[][] matrix) {
int cols = matrix[0].length;
int rows = matrix.length;
for (int r = 0; r < rows; r++) {
for (int c = 0; c < cols; c++) {
printer.print(matrix[r][c]); // depends on control dependency: [... |
public class class_name {
@Trivial
private void stateHalfOpen() {
halfOpenRunningExecutions = 0;
halfOpenSuccessfulExecutions = 0;
state.set(State.HALF_OPEN);
metricRecorder.reportCircuitHalfOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | public class class_name {
@Trivial
private void stateHalfOpen() {
halfOpenRunningExecutions = 0;
halfOpenSuccessfulExecutions = 0;
state.set(State.HALF_OPEN);
metricRecorder.reportCircuitHalfOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... |
public class class_name {
public final EObject ruleRichStringPart() throws RecognitionException {
EObject current = null;
EObject this_XExpressionOrVarDeclaration_0 = null;
EObject this_RichStringForLoop_1 = null;
EObject this_RichStringIf_2 = null;
enterRule();
... | public class class_name {
public final EObject ruleRichStringPart() throws RecognitionException {
EObject current = null;
EObject this_XExpressionOrVarDeclaration_0 = null;
EObject this_RichStringForLoop_1 = null;
EObject this_RichStringIf_2 = null;
enterRule();
... |
public class class_name {
@Override
public void removeByCommerceNotificationQueueEntryId(
long commerceNotificationQueueEntryId) {
for (CommerceNotificationAttachment commerceNotificationAttachment : findByCommerceNotificationQueueEntryId(
commerceNotificationQueueEntryId, QueryUtil.ALL_POS,
QueryUtil.ALL... | public class class_name {
@Override
public void removeByCommerceNotificationQueueEntryId(
long commerceNotificationQueueEntryId) {
for (CommerceNotificationAttachment commerceNotificationAttachment : findByCommerceNotificationQueueEntryId(
commerceNotificationQueueEntryId, QueryUtil.ALL_POS,
QueryUtil.ALL... |
public class class_name {
public final <T2, O> Mono<O> zipWith(Mono<? extends T2> other,
BiFunction<? super T, ? super T2, ? extends O> combinator) {
if (this instanceof MonoZip) {
@SuppressWarnings("unchecked") MonoZip<T, O> o = (MonoZip<T, O>) this;
Mono<O> result = o.zipAdditionalSource(other, combinator... | public class class_name {
public final <T2, O> Mono<O> zipWith(Mono<? extends T2> other,
BiFunction<? super T, ? super T2, ? extends O> combinator) {
if (this instanceof MonoZip) {
@SuppressWarnings("unchecked") MonoZip<T, O> o = (MonoZip<T, O>) this;
Mono<O> result = o.zipAdditionalSource(other, combinator... |
public class class_name {
private String formatValue(String[] value) {
String ret = "";
for(int i=0;i<value.length;i++) {
ret += value[i];
if(i<value.length-1) ret+="\n";
}
return ret;
} } | public class class_name {
private String formatValue(String[] value) {
String ret = "";
for(int i=0;i<value.length;i++) {
ret += value[i]; // depends on control dependency: [for], data = [i]
if(i<value.length-1) ret+="\n";
}
return ret;
} } |
public class class_name {
public void setExprList(ExprList exprList) {
int len = exprList.length();
if (len == 0) {
throw new ParseException("模板函数名不能缺失", location);
}
int index = 0;
Expr expr = exprList.getExpr(index);
if (expr instanceof Const && ((Const)expr).isBoolean()) {
if (len == 1... | public class class_name {
public void setExprList(ExprList exprList) {
int len = exprList.length();
if (len == 0) {
throw new ParseException("模板函数名不能缺失", location);
}
int index = 0;
Expr expr = exprList.getExpr(index);
if (expr instanceof Const && ((Const)expr).isBoolean()) {
if (len == 1... |
public class class_name {
private boolean setupEphemeralECDHKeys() {
int index = -1;
if (supportedCurves != null) {
// if the client sent the supported curves extension, pick the
// first one that we support;
for (int curveId : supportedCurves.curveIds()) {
... | public class class_name {
private boolean setupEphemeralECDHKeys() {
int index = -1;
if (supportedCurves != null) {
// if the client sent the supported curves extension, pick the
// first one that we support;
for (int curveId : supportedCurves.curveIds()) {
... |
public class class_name {
@Remote
public Challenge getChallenge(int captchaIndex) {
if (imagesRepositoryDir == null) {
log.debug("Simple CAPTCHA not properly initialized. Missing <captcha> section from application descriptor:\r\n" + //
"\t<captcha>\r\n" + //
"\t\t<property name=\"captcha.repositor... | public class class_name {
@Remote
public Challenge getChallenge(int captchaIndex) {
if (imagesRepositoryDir == null) {
log.debug("Simple CAPTCHA not properly initialized. Missing <captcha> section from application descriptor:\r\n" + //
"\t<captcha>\r\n" + //
"\t\t<property name=\"captcha.repositor... |
public class class_name {
public void flushAllLogs(final boolean force) {
Iterator<Log> iter = getLogIterator();
while (iter.hasNext()) {
Log log = iter.next();
try {
boolean needFlush = force;
if (!needFlush) {
long timeSinceL... | public class class_name {
public void flushAllLogs(final boolean force) {
Iterator<Log> iter = getLogIterator();
while (iter.hasNext()) {
Log log = iter.next();
try {
boolean needFlush = force;
if (!needFlush) {
long timeSinceL... |
public class class_name {
private AMethodWithItsArgs findBestMethodUsingParamNames(Set<Method> methods, Set<String> paramNames, ObjectNode paramNodes) {
ParameterCount max = new ParameterCount();
for (Method method : methods) {
List<Class<?>> parameterTypes = getParameterTypes(method);
int typeNameCou... | public class class_name {
private AMethodWithItsArgs findBestMethodUsingParamNames(Set<Method> methods, Set<String> paramNames, ObjectNode paramNodes) {
ParameterCount max = new ParameterCount();
for (Method method : methods) {
List<Class<?>> parameterTypes = getParameterTypes(method); // depends on control ... |
public class class_name {
public static final Parser<Double> instance() { // NOPMD it's thread save!
if (PercentDoubleParser.instanceParser == null) {
synchronized (PercentDoubleParser.class) {
if (PercentDoubleParser.instanceParser == null) {
PercentDoubleParser.instanceParser = new Percen... | public class class_name {
public static final Parser<Double> instance() { // NOPMD it's thread save!
if (PercentDoubleParser.instanceParser == null) {
synchronized (PercentDoubleParser.class) { // depends on control dependency: [if], data = [none]
if (PercentDoubleParser.instanceParser == null) {
... |
public class class_name {
public static GameMap createMapFromReplayFile(String gioReplayFileLocation) {
try {
Replay replay = OBJECT_MAPPER.readValue(new File(gioReplayFileLocation), Replay.class);
return createMapFromReplay(replay);
} catch (IOException e) {
throw n... | public class class_name {
public static GameMap createMapFromReplayFile(String gioReplayFileLocation) {
try {
Replay replay = OBJECT_MAPPER.readValue(new File(gioReplayFileLocation), Replay.class);
return createMapFromReplay(replay); // depends on control dependency: [try], data = [none... |
public class class_name {
public final void setCountryCode(final String pcountryCode, final Locale plocale) {
if (StringUtils.isEmpty(pcountryCode)) {
defaultCountryData = null;
} else {
defaultCountryData =
CreatePhoneCountryConstantsClass.create(plocale).countryMap().get(pcountryCode);
... | public class class_name {
public final void setCountryCode(final String pcountryCode, final Locale plocale) {
if (StringUtils.isEmpty(pcountryCode)) {
defaultCountryData = null; // depends on control dependency: [if], data = [none]
} else {
defaultCountryData =
CreatePhoneCountryConstants... |
public class class_name {
public boolean changePattern (FormationPattern<T> pattern) {
// Find out how many slots we have occupied
int occupiedSlots = slotAssignments.size;
// Check if the pattern supports one more slot
if (pattern.supportsSlots(occupiedSlots)) {
setPattern(pattern);
// Update the slot... | public class class_name {
public boolean changePattern (FormationPattern<T> pattern) {
// Find out how many slots we have occupied
int occupiedSlots = slotAssignments.size;
// Check if the pattern supports one more slot
if (pattern.supportsSlots(occupiedSlots)) {
setPattern(pattern); // depends on control ... |
public class class_name {
private boolean isSyncCollectionCreation(int seen) {
if (seen == Const.INVOKESPECIAL) {
if (Values.CONSTRUCTOR.equals(getNameConstantOperand())) {
return (syncCollections.contains(getClassConstantOperand()));
}
} else if ((seen == Const.... | public class class_name {
private boolean isSyncCollectionCreation(int seen) {
if (seen == Const.INVOKESPECIAL) {
if (Values.CONSTRUCTOR.equals(getNameConstantOperand())) {
return (syncCollections.contains(getClassConstantOperand())); // depends on control dependency: [if], data = [... |
public class class_name {
protected void initChildNodes(final Node newNode) {
if (childNodes == null) {
childNodes = new ArrayList<>();
}
if (ownerDocument != null) {
if (newNode.ownerDocument != ownerDocument) {
changeOwnerDocument(newNode, ownerDocument);
}
}
} } | public class class_name {
protected void initChildNodes(final Node newNode) {
if (childNodes == null) {
childNodes = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
if (ownerDocument != null) {
if (newNode.ownerDocument != ownerDocument) {
changeOwnerDocument(newNode, ownerDo... |
public class class_name {
public Object execute(final Object value, final CsvContext context) {
validateInputNotNull(value, context);
if( !(value instanceof String) ) {
throw new SuperCsvCellProcessorException(String.class, value, context, this);
}
final String stringValue = (String) value;
final Bo... | public class class_name {
public Object execute(final Object value, final CsvContext context) {
validateInputNotNull(value, context);
if( !(value instanceof String) ) {
throw new SuperCsvCellProcessorException(String.class, value, context, this);
}
final String stringValue = (String) value;
final Bo... |
public class class_name {
@Override
public List<ProposalPersonContract> getKeyPersons(ProposalDevelopmentDocumentContract pdDoc) {
List<ProposalPersonContract> keyPersons = new ArrayList<>();
if (pdDoc != null) {
for (ProposalPersonContract person : pdDoc.getDevelopmentProposal().getPro... | public class class_name {
@Override
public List<ProposalPersonContract> getKeyPersons(ProposalDevelopmentDocumentContract pdDoc) {
List<ProposalPersonContract> keyPersons = new ArrayList<>();
if (pdDoc != null) {
for (ProposalPersonContract person : pdDoc.getDevelopmentProposal().getPro... |
public class class_name {
public void addListeners()
{
super.addListeners();
// By default, all fields are disabled (enable the target fields).
for (int iFieldSeq = 0; iFieldSeq < this.getSFieldCount(); iFieldSeq++)
{
ScreenField sField = this.getSField(iFieldSeq);
... | public class class_name {
public void addListeners()
{
super.addListeners();
// By default, all fields are disabled (enable the target fields).
for (int iFieldSeq = 0; iFieldSeq < this.getSFieldCount(); iFieldSeq++)
{
ScreenField sField = this.getSField(iFieldSeq);
... |
public class class_name {
@SuppressWarnings("squid:S1067")
protected boolean isSymbolCharacter(Char ch) {
if (ch.isEndOfInput() || ch.isDigit() || ch.isLetter() || ch.isWhitepace()) {
return false;
}
char c = ch.getValue();
if (Character.isISOControl(c)) {
r... | public class class_name {
@SuppressWarnings("squid:S1067")
protected boolean isSymbolCharacter(Char ch) {
if (ch.isEndOfInput() || ch.isDigit() || ch.isLetter() || ch.isWhitepace()) {
return false; // depends on control dependency: [if], data = [none]
}
char c = ch.getValue();
... |
public class class_name {
private void initIndexTemplate(String type) {
String template = "template_" + type;
try {
if (doesResourceNotExist("/_template/" + template)) {
logger.info("Creating the index template '" + template + "'");
InputStream stream = Elast... | public class class_name {
private void initIndexTemplate(String type) {
String template = "template_" + type;
try {
if (doesResourceNotExist("/_template/" + template)) {
logger.info("Creating the index template '" + template + "'"); // depends on control dependency: [if], da... |
public class class_name {
public static ICommentProcessor wrap(final ICommentProcessor processor, final IProcessorDialect dialect) {
Validate.notNull(dialect, "Dialect cannot be null");
if (processor == null) {
return null;
}
return new CommentProcessorWrapper(processor, dia... | public class class_name {
public static ICommentProcessor wrap(final ICommentProcessor processor, final IProcessorDialect dialect) {
Validate.notNull(dialect, "Dialect cannot be null");
if (processor == null) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void ensureAvailableBytes(int amount) throws IOException {
if (!this.seekEnabled && amount > this.buffer.remaining()) {
this.bufferPosition += this.buffer.position();
this.buffer.compact();
int limit = this.buffer.position();
final int read = this.stream.read(this.buff... | public class class_name {
protected void ensureAvailableBytes(int amount) throws IOException {
if (!this.seekEnabled && amount > this.buffer.remaining()) {
this.bufferPosition += this.buffer.position();
this.buffer.compact();
int limit = this.buffer.position();
final int read = this.stream.read(this.buff... |
public class class_name {
@Override
public EClass getIfcMechanicalFastenerType() {
if (ifcMechanicalFastenerTypeEClass == null) {
ifcMechanicalFastenerTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(377);
}
return ifcMechanicalFastenerTypeEC... | public class class_name {
@Override
public EClass getIfcMechanicalFastenerType() {
if (ifcMechanicalFastenerTypeEClass == null) {
ifcMechanicalFastenerTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(377);
// depends on control dependency: [if], d... |
public class class_name {
public SignerConfig getSignerConfig(String serviceName, String regionName) {
if (serviceName == null)
throw new IllegalArgumentException();
SignerConfig signerConfig = null;
if (regionName != null) {
// Service+Region signer config has the highe... | public class class_name {
public SignerConfig getSignerConfig(String serviceName, String regionName) {
if (serviceName == null)
throw new IllegalArgumentException();
SignerConfig signerConfig = null;
if (regionName != null) {
// Service+Region signer config has the highe... |
public class class_name {
private void validateSchema(Schema schema) throws DDFException {
Set<String> columnSet = new HashSet<String>();
if(schema != null && schema.getColumns() != null) {
for (Column column : schema.getColumns()) {
if (columnSet.contains(column.getName())) {
throw new... | public class class_name {
private void validateSchema(Schema schema) throws DDFException {
Set<String> columnSet = new HashSet<String>();
if(schema != null && schema.getColumns() != null) {
for (Column column : schema.getColumns()) {
if (columnSet.contains(column.getName())) {
throw new... |
public class class_name {
public boolean transit(T transition){
S currentState = definition.getState(currentStateId.get());
if (currentState != null){
try{
Transition<S> transitionDef = definition.getTransition(currentState, transition);
return currentStateId.compareAndSet(transitionDef.fromStateId, tra... | public class class_name {
public boolean transit(T transition){
S currentState = definition.getState(currentStateId.get());
if (currentState != null){
try{
Transition<S> transitionDef = definition.getTransition(currentState, transition);
return currentStateId.compareAndSet(transitionDef.fromStateId, tra... |
public class class_name {
public final GitLabApi duplicate() {
Integer sudoUserId = this.getSudoAsId();
GitLabApi gitLabApi = new GitLabApi(apiVersion, gitLabServerUrl,
getTokenType(), getAuthToken(), getSecretToken(), clientConfigProperties);
if (sudoUserId != null) {
... | public class class_name {
public final GitLabApi duplicate() {
Integer sudoUserId = this.getSudoAsId();
GitLabApi gitLabApi = new GitLabApi(apiVersion, gitLabServerUrl,
getTokenType(), getAuthToken(), getSecretToken(), clientConfigProperties);
if (sudoUserId != null) {
... |
public class class_name {
public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getStartTime(), "startTime should NOT be empty.");
Interna... | public class class_name {
public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getStartTime(), "startTime should NOT be empty.");
Interna... |
public class class_name {
@SuppressWarnings({"JavaDoc"})
private void addParentDirs( ArchiveEntry archiveEntry, File baseDir, String entry, ZipArchiveOutputStream zOut,
String prefix )
throws IOException
{
if ( !doFilesonly && getIncludeEmptyDirs() )
{
... | public class class_name {
@SuppressWarnings({"JavaDoc"})
private void addParentDirs( ArchiveEntry archiveEntry, File baseDir, String entry, ZipArchiveOutputStream zOut,
String prefix )
throws IOException
{
if ( !doFilesonly && getIncludeEmptyDirs() )
{
... |
public class class_name {
DependencyInfo getDependencyInfo() {
if (dependencyInfo == null) {
dependencyInfo = generateDependencyInfo();
}
if (!extraRequires.isEmpty() || !extraProvides.isEmpty()) {
dependencyInfo =
SimpleDependencyInfo.builder(getName(), getName())
.setP... | public class class_name {
DependencyInfo getDependencyInfo() {
if (dependencyInfo == null) {
dependencyInfo = generateDependencyInfo(); // depends on control dependency: [if], data = [none]
}
if (!extraRequires.isEmpty() || !extraProvides.isEmpty()) {
dependencyInfo =
SimpleDependency... |
public class class_name {
private void sawInitOpcode(int seen) {
boolean isSyncCollection = false;
try {
stack.mergeJumps(this);
isSyncCollection = isSyncCollectionCreation(seen);
if (seen == Const.PUTFIELD) {
processCollectionStore();
}
... | public class class_name {
private void sawInitOpcode(int seen) {
boolean isSyncCollection = false;
try {
stack.mergeJumps(this); // depends on control dependency: [try], data = [none]
isSyncCollection = isSyncCollectionCreation(seen); // depends on control dependency: [try], dat... |
public class class_name {
public static Method findMethod(Object obj, String methodName, Object... params) {
Class<?>[] classArray = new Class<?>[params.length];
for (int i = 0; i < params.length; i++) {
classArray[i] = params[i].getClass();
}
try {
//look on all... | public class class_name {
public static Method findMethod(Object obj, String methodName, Object... params) {
Class<?>[] classArray = new Class<?>[params.length];
for (int i = 0; i < params.length; i++) {
classArray[i] = params[i].getClass();
}
try {
//look on all... |
public class class_name {
public synchronized Set<RegistrationPoint> getRegistrationPoints() {
Set<RegistrationPoint> result = new HashSet<>();
for (List<RegistrationPoint> registrationPoints : registrationPoints.values()) {
result.addAll(registrationPoints);
}
return Collec... | public class class_name {
public synchronized Set<RegistrationPoint> getRegistrationPoints() {
Set<RegistrationPoint> result = new HashSet<>();
for (List<RegistrationPoint> registrationPoints : registrationPoints.values()) {
result.addAll(registrationPoints); // depends on control dependenc... |
public class class_name {
public static boolean containsOnlyDigits(final CharSequence string) {
int size = string.length();
for (int i = 0; i < size; i++) {
char c = string.charAt(i);
if (!CharUtil.isDigit(c)) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean containsOnlyDigits(final CharSequence string) {
int size = string.length();
for (int i = 0; i < size; i++) {
char c = string.charAt(i);
if (!CharUtil.isDigit(c)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
... |
public class class_name {
@SuppressWarnings("unchecked")
protected void setParameters(PreparedStatement stmt, Object[] params) throws SQLException {
for (int i = 0; i < params.length; i++) {
if(params[i] == null){
stmt.setObject(i + 1, null);
} else {
... | public class class_name {
@SuppressWarnings("unchecked")
protected void setParameters(PreparedStatement stmt, Object[] params) throws SQLException {
for (int i = 0; i < params.length; i++) {
if(params[i] == null){
stmt.setObject(i + 1, null);
} else {
... |
public class class_name {
public static boolean verifyDir(File dir,Logger logger){
if (dir==null){
logger.error("El directorio es nulo.");
return false;
}
String fileName=dir.getAbsolutePath();
if (fileName==null){
return false;
}
if (!dir.exists()){
logger.error("El path '"+fileN... | public class class_name {
public static boolean verifyDir(File dir,Logger logger){
if (dir==null){
logger.error("El directorio es nulo.");
// depends on control dependency: [if], data = [none]
return false;
// depends on control dependency: [if], data = [none]
}
String fileName=dir.getAbsolutePath();
... |
public class class_name {
@Override
public String getRevisionId() {
if (isReload(REVISION_ID_RELOAD)) {
setReload(REVISION_ID_RELOAD);
sa.setRevisionId(read().getRevisionId());
}
return sa.getRevisionId();
} } | public class class_name {
@Override
public String getRevisionId() {
if (isReload(REVISION_ID_RELOAD)) {
setReload(REVISION_ID_RELOAD); // depends on control dependency: [if], data = [none]
sa.setRevisionId(read().getRevisionId()); // depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
public static PluralRules of(
Locale locale,
NumberType numType
) {
Map<String, PluralRules> map = getRuleMap(numType);
PluralRules rules = null;
if (!map.isEmpty()) {
String region = FormatUtils.getRegion(locale);
if (!reg... | public class class_name {
public static PluralRules of(
Locale locale,
NumberType numType
) {
Map<String, PluralRules> map = getRuleMap(numType);
PluralRules rules = null;
if (!map.isEmpty()) {
String region = FormatUtils.getRegion(locale);
if (!reg... |
public class class_name {
public static String termValue(String term) {
int i = term.indexOf(MtasToken.DELIMITER);
String value = null;
if (i >= 0) {
value = term.substring((i + MtasToken.DELIMITER.length()));
value = (value.length() > 0) ? value : null;
}
return (value == null) ? null ... | public class class_name {
public static String termValue(String term) {
int i = term.indexOf(MtasToken.DELIMITER);
String value = null;
if (i >= 0) {
value = term.substring((i + MtasToken.DELIMITER.length())); // depends on control dependency: [if], data = [(i]
value = (value.length() > 0) ? va... |
public class class_name {
public EClass getNewRevisionAdded() {
if (newRevisionAddedEClass == null) {
newRevisionAddedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI)
.getEClassifiers().get(10);
}
return newRevisionAddedEClass;
} } | public class class_name {
public EClass getNewRevisionAdded() {
if (newRevisionAddedEClass == null) {
newRevisionAddedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI)
.getEClassifiers().get(10);
// depends on control dependency: [if], data = [none]
}
return newRevisionAdd... |
public class class_name {
protected void startEngine() {
if (m_engineState != CmsPublishEngineState.ENGINE_STARTED) {
m_engineState = CmsPublishEngineState.ENGINE_STARTED;
// start publish job if jobs waiting
if ((m_currentPublishThread == null) && !m_publishQueue.isEmpty()... | public class class_name {
protected void startEngine() {
if (m_engineState != CmsPublishEngineState.ENGINE_STARTED) {
m_engineState = CmsPublishEngineState.ENGINE_STARTED; // depends on control dependency: [if], data = [none]
// start publish job if jobs waiting
if ((m_curr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.