code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static boolean intersectLineCircle(float a, float b, float c, float centerX, float centerY, float radius, Vector3f intersectionCenterAndHL) {
float invDenom = 1.0f / (float) Math.sqrt(a * a + b * b);
float dist = (a * centerX + b * centerY + c) * invDenom;
if (-... | public class class_name {
public static boolean intersectLineCircle(float a, float b, float c, float centerX, float centerY, float radius, Vector3f intersectionCenterAndHL) {
float invDenom = 1.0f / (float) Math.sqrt(a * a + b * b);
float dist = (a * centerX + b * centerY + c) * invDenom;
if (-... |
public class class_name {
void handleFileItemClick(ItemClickEvent event) {
if (isEditing()) {
stopEdit();
} else if (!event.isCtrlKey() && !event.isShiftKey()) {
// don't interfere with multi-selection using control key
String itemId = (String)event.getItemId();
... | public class class_name {
void handleFileItemClick(ItemClickEvent event) {
if (isEditing()) {
stopEdit(); // depends on control dependency: [if], data = [none]
} else if (!event.isCtrlKey() && !event.isShiftKey()) {
// don't interfere with multi-selection using control key
... |
public class class_name {
@Override
protected void parse(Node node) {
NamedNodeMap attributes = node.getAttributes();
version = getValueRecursive(attributes.getNamedItem("version"));
tilemapservice = getValueRecursive(attributes.getNamedItem("tilemapservice"));
NodeList childNodes = node.getChildNodes();
f... | public class class_name {
@Override
protected void parse(Node node) {
NamedNodeMap attributes = node.getAttributes();
version = getValueRecursive(attributes.getNamedItem("version"));
tilemapservice = getValueRecursive(attributes.getNamedItem("tilemapservice"));
NodeList childNodes = node.getChildNodes();
f... |
public class class_name {
@Override
public MultiDataSet next() {
val features = new ArrayList<INDArray>();
val labels = new ArrayList<INDArray>();
val featuresMask = new ArrayList<INDArray>();
val labelsMask = new ArrayList<INDArray>();
boolean hasFM = false;
boolea... | public class class_name {
@Override
public MultiDataSet next() {
val features = new ArrayList<INDArray>();
val labels = new ArrayList<INDArray>();
val featuresMask = new ArrayList<INDArray>();
val labelsMask = new ArrayList<INDArray>();
boolean hasFM = false;
boolea... |
public class class_name {
public TerminateDriverFlyweight tokenBuffer(
final DirectBuffer tokenBuffer, final int tokenOffset, final int tokenLength)
{
buffer.putInt(TOKEN_LENGTH_OFFSET, tokenLength);
if (null != tokenBuffer && tokenLength > 0)
{
buffer.putBytes(tokenBuff... | public class class_name {
public TerminateDriverFlyweight tokenBuffer(
final DirectBuffer tokenBuffer, final int tokenOffset, final int tokenLength)
{
buffer.putInt(TOKEN_LENGTH_OFFSET, tokenLength);
if (null != tokenBuffer && tokenLength > 0)
{
buffer.putBytes(tokenBuff... |
public class class_name {
static void releaseInstance(final StatefulSessionComponentInstance instance, boolean toDiscard) {
try {
if (!instance.isDiscarded() && !toDiscard) {
// mark the SFSB instance as no longer in use
instance.getComponent().getCache().release(ins... | public class class_name {
static void releaseInstance(final StatefulSessionComponentInstance instance, boolean toDiscard) {
try {
if (!instance.isDiscarded() && !toDiscard) {
// mark the SFSB instance as no longer in use
instance.getComponent().getCache().release(ins... |
public class class_name {
@SuppressWarnings("PMD.AvoidDeeplyNestedIfStmts")
private @Nullable V getOrLoad(K key) {
boolean statsEnabled = statistics.isEnabled();
long start = statsEnabled ? ticker.read() : 0L;
long millis = 0L;
Expirable<V> expirable = cache.getIfPresent(key);
if ((expirable != ... | public class class_name {
@SuppressWarnings("PMD.AvoidDeeplyNestedIfStmts")
private @Nullable V getOrLoad(K key) {
boolean statsEnabled = statistics.isEnabled();
long start = statsEnabled ? ticker.read() : 0L;
long millis = 0L;
Expirable<V> expirable = cache.getIfPresent(key);
if ((expirable != ... |
public class class_name {
private List<CmsSelectWidgetOption> createComboConfigurationEncodingChoice() {
List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
SortedMap<String, Charset> csMap = Charset.availableCharsets();
// default charset: see http://java.sun.com/j2s... | public class class_name {
private List<CmsSelectWidgetOption> createComboConfigurationEncodingChoice() {
List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
SortedMap<String, Charset> csMap = Charset.availableCharsets();
// default charset: see http://java.sun.com/j2s... |
public class class_name {
public static void enableHelpKey (Component component, String id) {
if (component instanceof JComponent) {
JComponent jComponent = (JComponent) component;
if (componentsWithHelp == null) {
componentsWithHelp = new WeakHashMap<>();
}
componentsWithHelp.put(jComponent, id);
... | public class class_name {
public static void enableHelpKey (Component component, String id) {
if (component instanceof JComponent) {
JComponent jComponent = (JComponent) component;
if (componentsWithHelp == null) {
componentsWithHelp = new WeakHashMap<>(); // depends on control dependency: [if], data = [no... |
public class class_name {
private synchronized PrintStream getPrintStream(long numNewChars) {
switch (currentStatus) {
case INIT:
if (!newLogsOnStart) {
// Check if we can fill into an existing file (including a new log header).
File primary... | public class class_name {
private synchronized PrintStream getPrintStream(long numNewChars) {
switch (currentStatus) {
case INIT:
if (!newLogsOnStart) {
// Check if we can fill into an existing file (including a new log header).
File primary... |
public class class_name {
public void marshall(InitiateDocumentVersionUploadRequest initiateDocumentVersionUploadRequest, ProtocolMarshaller protocolMarshaller) {
if (initiateDocumentVersionUploadRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... | public class class_name {
public void marshall(InitiateDocumentVersionUploadRequest initiateDocumentVersionUploadRequest, ProtocolMarshaller protocolMarshaller) {
if (initiateDocumentVersionUploadRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... |
public class class_name {
public static boolean isPrimes(int n) {
Assert.isTrue(n > 1, "The number must be > 1");
for (int i = 2; i <= Math.sqrt(n); i++) {
if (n % i == 0) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean isPrimes(int n) {
Assert.isTrue(n > 1, "The number must be > 1");
for (int i = 2; i <= Math.sqrt(n); i++) {
if (n % i == 0) {
return false;
// depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
private void checkMultiLevelKeys(final Map<String, KeyDef> keysDefMap, final Map<String, String> keysRefMap) {
String key;
KeyDef value;
// tempMap storing values to avoid ConcurrentModificationException
final Map<String, KeyDef> tempMap = new HashMap<>();
... | public class class_name {
private void checkMultiLevelKeys(final Map<String, KeyDef> keysDefMap, final Map<String, String> keysRefMap) {
String key;
KeyDef value;
// tempMap storing values to avoid ConcurrentModificationException
final Map<String, KeyDef> tempMap = new HashMap<>();
... |
public class class_name {
public final void setApplicationName(String... applicationNames) {
synchronized (lock) {
if (applicationNames == null) {
serviceProperties.remove(APPLICATION_NAME);
} else {
serviceProperties.put(APPLICATION_NAME, applicationName... | public class class_name {
public final void setApplicationName(String... applicationNames) {
synchronized (lock) {
if (applicationNames == null) {
serviceProperties.remove(APPLICATION_NAME); // depends on control dependency: [if], data = [none]
} else {
s... |
public class class_name {
public static String getVersion(String reportFile) {
try {
String text = readAsString(reportFile);
return getVersionFromText(text);
} catch (IOException e) {
LOG.error(e.getMessage(), e);
return null;
}
} } | public class class_name {
public static String getVersion(String reportFile) {
try {
String text = readAsString(reportFile);
return getVersionFromText(text); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
LOG.error(e.getMessage(), e);
return null;
} // depends on con... |
public class class_name {
public static final CThreadContext getInstance() {
SoftReference ref = (SoftReference)CThreadContext.contextLocal
.get(Thread.currentThread());
CThreadContext context = null;
if ((ref == null) || (ref.get() == null)) {
context = new CThreadContext();
ref = new SoftReference(co... | public class class_name {
public static final CThreadContext getInstance() {
SoftReference ref = (SoftReference)CThreadContext.contextLocal
.get(Thread.currentThread());
CThreadContext context = null;
if ((ref == null) || (ref.get() == null)) {
context = new CThreadContext(); // depends on control depende... |
public class class_name {
public static List<byte[]> getTagPairsFromTSUID(final byte[] tsuid) {
if (tsuid == null) {
throw new IllegalArgumentException("Missing TSUID");
}
if (tsuid.length <= TSDB.metrics_width()) {
throw new IllegalArgumentException(
"TSUID is too short, may be missi... | public class class_name {
public static List<byte[]> getTagPairsFromTSUID(final byte[] tsuid) {
if (tsuid == null) {
throw new IllegalArgumentException("Missing TSUID");
}
if (tsuid.length <= TSDB.metrics_width()) {
throw new IllegalArgumentException(
"TSUID is too short, may be missi... |
public class class_name {
public static Map<String, Object> toMap(Object object) {
if (object == null) {
return null;
}
return toMap(toJSONString(object));
} } | public class class_name {
public static Map<String, Object> toMap(Object object) {
if (object == null) {
return null; // depends on control dependency: [if], data = [none]
}
return toMap(toJSONString(object));
} } |
public class class_name {
@Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node, so get a plf ghost
// node, set its attribute, then add... | public class class_name {
@Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node, so get a plf ghost
// node, set its attribute, then add... |
public class class_name {
public static boolean hasWildcardCharacters( String expression ) {
Objects.requireNonNull(expression);
CharacterIterator iter = new StringCharacterIterator(expression);
boolean skipNext = false;
for (char c = iter.first(); c != CharacterIterator.DONE; c = iter.... | public class class_name {
public static boolean hasWildcardCharacters( String expression ) {
Objects.requireNonNull(expression);
CharacterIterator iter = new StringCharacterIterator(expression);
boolean skipNext = false;
for (char c = iter.first(); c != CharacterIterator.DONE; c = iter.... |
public class class_name {
protected final List<String> getExtraneousArguments() {
if (commandLine == null) {
return emptyList();
}
String[] args = commandLine.getArgs();
if (noItems(args)) {
return emptyList();
}
return asList(args);
} } | public class class_name {
protected final List<String> getExtraneousArguments() {
if (commandLine == null) {
return emptyList(); // depends on control dependency: [if], data = [none]
}
String[] args = commandLine.getArgs();
if (noItems(args)) {
return emptyList()... |
public class class_name {
public static DirLock tryLock(FileSystem fs, Path dir) throws IOException {
Path lockFile = getDirLockFile(dir);
try {
FSDataOutputStream ostream = HdfsUtils.tryCreateFile(fs, lockFile);
if (ostream!=null) {
LOG.debug("Thread ({}) Acquired lock on dir {}", threadI... | public class class_name {
public static DirLock tryLock(FileSystem fs, Path dir) throws IOException {
Path lockFile = getDirLockFile(dir);
try {
FSDataOutputStream ostream = HdfsUtils.tryCreateFile(fs, lockFile);
if (ostream!=null) {
LOG.debug("Thread ({}) Acquired lock on dir {}", threadI... |
public class class_name {
public Source getAssociatedStylesheet()
{
int sz = m_stylesheets.size();
if (sz > 0)
{
Source source = (Source) m_stylesheets.elementAt(sz-1);
return source;
}
else
return null;
} } | public class class_name {
public Source getAssociatedStylesheet()
{
int sz = m_stylesheets.size();
if (sz > 0)
{
Source source = (Source) m_stylesheets.elementAt(sz-1);
return source; // depends on control dependency: [if], data = [none]
}
else
return null;
} } |
public class class_name {
public AttachmentMessageBuilder addQuickReply(String title, String payload) {
if (this.quickReplies == null) {
this.quickReplies = new ArrayList<QuickReply>();
}
this.quickReplies.add(new QuickReply(title, payload));
return this;
} } | public class class_name {
public AttachmentMessageBuilder addQuickReply(String title, String payload) {
if (this.quickReplies == null) {
this.quickReplies = new ArrayList<QuickReply>(); // depends on control dependency: [if], data = [none]
}
this.quickReplies.add(new QuickReply(title, payload));
return this... |
public class class_name {
@Override
public void setPrinter(WikiPrinter printer)
{
// If the printer is already a XWiki Syntax Escape printer don't wrap it again. This case happens when
// the createChainingListenerInstance() method is called, ie when this renderer's state is stacked
// ... | public class class_name {
@Override
public void setPrinter(WikiPrinter printer)
{
// If the printer is already a XWiki Syntax Escape printer don't wrap it again. This case happens when
// the createChainingListenerInstance() method is called, ie when this renderer's state is stacked
// ... |
public class class_name {
public void visit(final WebAppFilter webAppFilter) {
NullArgumentException.validateNotNull(webAppFilter, "Web app filter");
String filterName = webAppFilter.getFilterName();
if (filterName != null) {
//CHECKSTYLE:OFF
try {
webContainer.unregisterFilter(filterName);
... | public class class_name {
public void visit(final WebAppFilter webAppFilter) {
NullArgumentException.validateNotNull(webAppFilter, "Web app filter");
String filterName = webAppFilter.getFilterName();
if (filterName != null) {
//CHECKSTYLE:OFF
try {
webContainer.unregisterFilter(filterName);
//... |
public class class_name {
private static void propagateProperties(
final Collection<String> vargs, final boolean copyNull, final String... propNames) {
for (final String propName : propNames) {
final String propValue = System.getProperty(propName);
if (propValue == null || propValue.isEmpty()) {
... | public class class_name {
private static void propagateProperties(
final Collection<String> vargs, final boolean copyNull, final String... propNames) {
for (final String propName : propNames) {
final String propValue = System.getProperty(propName);
if (propValue == null || propValue.isEmpty()) {
... |
public class class_name {
protected <T extends DObject> void registerObjectAndNotify (ObjectResponse<T> orsp)
{
// let the object know that we'll be managing it
T obj = orsp.getObject();
obj.setManager(this);
// stick the object into the proxy object table
_ocache.put(obj.g... | public class class_name {
protected <T extends DObject> void registerObjectAndNotify (ObjectResponse<T> orsp)
{
// let the object know that we'll be managing it
T obj = orsp.getObject();
obj.setManager(this);
// stick the object into the proxy object table
_ocache.put(obj.g... |
public class class_name {
public static File getMountSource(Closeable handle) {
if (handle instanceof MountHandle) { return MountHandle.class.cast(handle).getMountSource(); }
return null;
} } | public class class_name {
public static File getMountSource(Closeable handle) {
if (handle instanceof MountHandle) { return MountHandle.class.cast(handle).getMountSource(); } // depends on control dependency: [if], data = [none]
return null;
} } |
public class class_name {
private List<Pair<Integer, Integer>> doGenerateEdgesSimpler() {
final int numberOfNodes = getConfiguration().getNumberOfNodes();
final long numberOfEdges = getConfiguration().getNumberOfEdges();
final Set<Pair<Integer, Integer>> edges = new HashSet<>();
while... | public class class_name {
private List<Pair<Integer, Integer>> doGenerateEdgesSimpler() {
final int numberOfNodes = getConfiguration().getNumberOfNodes();
final long numberOfEdges = getConfiguration().getNumberOfEdges();
final Set<Pair<Integer, Integer>> edges = new HashSet<>();
while... |
public class class_name {
@DefinedBy(Api.COMPILER)
public long getLineNumber() {
if (sourcePosition == null) {
sourcePosition = new SourcePosition();
}
return sourcePosition.getLineNumber();
} } | public class class_name {
@DefinedBy(Api.COMPILER)
public long getLineNumber() {
if (sourcePosition == null) {
sourcePosition = new SourcePosition(); // depends on control dependency: [if], data = [none]
}
return sourcePosition.getLineNumber();
} } |
public class class_name {
@Override
public void handleLoadInstruction(LoadInstruction obj) {
int numProduced = obj.produceStack(cpg);
if (numProduced == Const.UNPREDICTABLE) {
throw new InvalidBytecodeException("Unpredictable stack production");
}
if (numProduced != 1) ... | public class class_name {
@Override
public void handleLoadInstruction(LoadInstruction obj) {
int numProduced = obj.produceStack(cpg);
if (numProduced == Const.UNPREDICTABLE) {
throw new InvalidBytecodeException("Unpredictable stack production");
}
if (numProduced != 1) ... |
public class class_name {
public final void importDeclaration() throws RecognitionException {
int importDeclaration_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:281:5: ( 'impor... | public class class_name {
public final void importDeclaration() throws RecognitionException {
int importDeclaration_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drools... |
public class class_name {
public void marshall(InstanceAssociationOutputUrl instanceAssociationOutputUrl, ProtocolMarshaller protocolMarshaller) {
if (instanceAssociationOutputUrl == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(InstanceAssociationOutputUrl instanceAssociationOutputUrl, ProtocolMarshaller protocolMarshaller) {
if (instanceAssociationOutputUrl == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public List<Resource> list(String path) {
try {
final List<Resource> ret = new ArrayList<>();
Resource res = deploymentResourceManager.getResource(path);
if (res != null) {
for (Resource child : res.list()) {
ret... | public class class_name {
public List<Resource> list(String path) {
try {
final List<Resource> ret = new ArrayList<>();
Resource res = deploymentResourceManager.getResource(path);
if (res != null) {
for (Resource child : res.list()) {
ret... |
public class class_name {
public ThreddsMetadata getInheritableMetadata() {
ThreddsMetadata tmi = (ThreddsMetadata) get(Dataset.ThreddsMetadataInheritable);
if (tmi == null) {
tmi = new ThreddsMetadata();
put(Dataset.ThreddsMetadataInheritable, tmi);
}
return tmi;
} } | public class class_name {
public ThreddsMetadata getInheritableMetadata() {
ThreddsMetadata tmi = (ThreddsMetadata) get(Dataset.ThreddsMetadataInheritable);
if (tmi == null) {
tmi = new ThreddsMetadata(); // depends on control dependency: [if], data = [none]
put(Dataset.ThreddsMetadataInheritable, ... |
public class class_name {
private void reConnect(ConnectInfo connectInfo, boolean isHelp) {
if (loopGroup == null) {
return;
}
if (!isHelp && response.isSupportRange()) {
connectInfo.setStartPosition(connectInfo.getStartPosition() + connectInfo.getDownSize());
}
connectInfo.setDownSize(... | public class class_name {
private void reConnect(ConnectInfo connectInfo, boolean isHelp) {
if (loopGroup == null) {
return; // depends on control dependency: [if], data = [none]
}
if (!isHelp && response.isSupportRange()) {
connectInfo.setStartPosition(connectInfo.getStartPosition() + connectI... |
public class class_name {
private String getObjectInfoFromSerializedObject() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObjectInfoFromSerializedObject");
String oscDesc;
byte[] data = new byte[0];
try {
data = objMsg.getSeria... | public class class_name {
private String getObjectInfoFromSerializedObject() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObjectInfoFromSerializedObject");
String oscDesc;
byte[] data = new byte[0];
try {
data = objMsg.getSeria... |
public class class_name {
public static String simplifyPath(String pathname) {
checkNotNull(pathname);
if (pathname.length() == 0) {
return ".";
}
// split the path apart
Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
List<String> path = new ArrayList<... | public class class_name {
public static String simplifyPath(String pathname) {
checkNotNull(pathname);
if (pathname.length() == 0) {
return "."; // depends on control dependency: [if], data = [none]
}
// split the path apart
Iterable<String> components = Splitter.on('/').omitEmptyStrings().s... |
public class class_name {
public static String formatDate(Long timestamp, String format, Locale loc) {
if (StringUtils.isBlank(format)) {
format = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.getPattern();
}
if (timestamp == null) {
timestamp = timestamp();
}
if (loc == null) {
loc = Locale.US;
}... | public class class_name {
public static String formatDate(Long timestamp, String format, Locale loc) {
if (StringUtils.isBlank(format)) {
format = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.getPattern(); // depends on control dependency: [if], data = [none]
}
if (timestamp == null) {
timestamp = timesta... |
public class class_name {
private void render(SVG.Group obj)
{
debug("Group render");
updateStyleForElement(state, obj);
if (!display())
return;
if (obj.transform != null) {
canvas.concat(obj.transform);
}
checkForClipPath(obj);
boolean... | public class class_name {
private void render(SVG.Group obj)
{
debug("Group render");
updateStyleForElement(state, obj);
if (!display())
return;
if (obj.transform != null) {
canvas.concat(obj.transform);
// depends on control dependency: [if], data = [(obj.tra... |
public class class_name {
private void notifyStatus(final Task task, final TaskStatus taskStatus, String reasonFormat, Object... args)
{
giant.lock();
try {
Preconditions.checkNotNull(task, "task");
Preconditions.checkNotNull(taskStatus, "status");
Preconditions.checkState(active, "Queue i... | public class class_name {
private void notifyStatus(final Task task, final TaskStatus taskStatus, String reasonFormat, Object... args)
{
giant.lock();
try {
Preconditions.checkNotNull(task, "task"); // depends on control dependency: [try], data = [none]
Preconditions.checkNotNull(taskStatus, "st... |
public class class_name {
public String encode(byte[] in, int off, int len)
{
checkBounds(in, off, len);
StringBuilder sb = new StringBuilder(maxEncodedLength(len));
int accu = 0;
int count = 0;
int b = alphabet.bitsPerChar();
for (int i = off; i < off + len; i++) {
accu = (accu << 8) | (in[i] & 0xFF);... | public class class_name {
public String encode(byte[] in, int off, int len)
{
checkBounds(in, off, len);
StringBuilder sb = new StringBuilder(maxEncodedLength(len));
int accu = 0;
int count = 0;
int b = alphabet.bitsPerChar();
for (int i = off; i < off + len; i++) {
accu = (accu << 8) | (in[i] & 0xFF);... |
public class class_name {
public boolean intersects(Geometry geometry) {
if (isEmpty()) {
return false;
}
for (Point point : points) {
if (point.intersects(geometry)) {
return true;
}
}
return false;
} } | public class class_name {
public boolean intersects(Geometry geometry) {
if (isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
for (Point point : points) {
if (point.intersects(geometry)) {
return true; // depends on control dependency: [if], data = [none]
}
}
re... |
public class class_name {
public void delete( Key job_key, float dummy ) {
if( _key != null ) {
Log.debug(Log.Tag.Sys.LOCKS,"lock-then-delete "+_key+" by job "+job_key);
new PriorWriteLock(job_key).invoke(_key);
}
Futures fs = new Futures();
delete_impl(fs);
if( _key != null ) DKV.remo... | public class class_name {
public void delete( Key job_key, float dummy ) {
if( _key != null ) {
Log.debug(Log.Tag.Sys.LOCKS,"lock-then-delete "+_key+" by job "+job_key); // depends on control dependency: [if], data = [none]
new PriorWriteLock(job_key).invoke(_key); // depends on control dependency: [i... |
public class class_name {
private DoubleDBIDList initialRange(DBIDRef obj, DBIDs cands, PrimitiveDistanceFunction<? super NumberVector> df, double eps, KernelDensityEstimator kernel, ModifiableDoubleDBIDList n) {
n.clear();
NumberVector o = kernel.relation.get(obj);
final double twoeps = eps * 2;
int m... | public class class_name {
private DoubleDBIDList initialRange(DBIDRef obj, DBIDs cands, PrimitiveDistanceFunction<? super NumberVector> df, double eps, KernelDensityEstimator kernel, ModifiableDoubleDBIDList n) {
n.clear();
NumberVector o = kernel.relation.get(obj);
final double twoeps = eps * 2;
int m... |
public class class_name {
private void skip(boolean stopAtImport, boolean stopAtMemberDecl, boolean stopAtIdentifier, boolean stopAtStatement) {
while (true) {
switch (token.kind) {
case SEMI:
nextToken();
return;
case PUBLIC... | public class class_name {
private void skip(boolean stopAtImport, boolean stopAtMemberDecl, boolean stopAtIdentifier, boolean stopAtStatement) {
while (true) {
switch (token.kind) {
case SEMI:
nextToken();
return;
case PUBLIC... |
public class class_name {
public <T> BroadcastVariableMaterialization<T, ?> materializeBroadcastVariable(String name, int superstep, BatchTask<?, ?> holder,
MutableReader<?> reader, TypeSerializerFactory<T> serializerFactory) throws IOException {
final BroadcastVariableKey key = new BroadcastVariableKey(holder.ge... | public class class_name {
public <T> BroadcastVariableMaterialization<T, ?> materializeBroadcastVariable(String name, int superstep, BatchTask<?, ?> holder,
MutableReader<?> reader, TypeSerializerFactory<T> serializerFactory) throws IOException {
final BroadcastVariableKey key = new BroadcastVariableKey(holder.ge... |
public class class_name {
private static XColor getXColorFromRgbClr(final CTSRgbColor ctrColor) {
XSSFColor bcolor = null;
try {
byte[] rgb = ctrColor.getVal();
bcolor = new XSSFColor(rgb);
} catch (Exception ex) {
LOG.log(Level.SEVERE, "Cannot get rgb color error = "
+ ex.getLocalizedMessag... | public class class_name {
private static XColor getXColorFromRgbClr(final CTSRgbColor ctrColor) {
XSSFColor bcolor = null;
try {
byte[] rgb = ctrColor.getVal();
bcolor = new XSSFColor(rgb);
// depends on control dependency: [try], data = [none]
} catch (Exception ex) {
LOG.log(Level.SEVERE, "Canno... |
public class class_name {
public void addItem (int index, T item)
{
if (_items == null) {
return;
}
_items.add(index, item);
} } | public class class_name {
public void addItem (int index, T item)
{
if (_items == null) {
return; // depends on control dependency: [if], data = [none]
}
_items.add(index, item);
} } |
public class class_name {
public static boolean isValidNmtoken(String nmtoken) {
final int length = nmtoken.length();
if (length == 0) {
return false;
}
for (int i = 0; i < length; ++i) {
char ch = nmtoken.charAt(i);
if (!isName(ch)) {
return false;
}
}
return tr... | public class class_name {
public static boolean isValidNmtoken(String nmtoken) {
final int length = nmtoken.length();
if (length == 0) {
return false; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < length; ++i) {
char ch = nmtoken.charAt(i);
if (!isName(ch... |
public class class_name {
public void disableInlineEditing(CmsContainerPageElementPanel notThisOne) {
removeEditButtonsPositionTimer();
if (isGroupcontainerEditing()) {
for (Widget element : m_groupEditor.getGroupContainerWidget()) {
if ((element instanceof CmsContainerPage... | public class class_name {
public void disableInlineEditing(CmsContainerPageElementPanel notThisOne) {
removeEditButtonsPositionTimer();
if (isGroupcontainerEditing()) {
for (Widget element : m_groupEditor.getGroupContainerWidget()) {
if ((element instanceof CmsContainerPage... |
public class class_name {
public String getValidationScript(TestContext context) {
try {
if (validationScriptResourcePath != null) {
return context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(validationScriptResourcePath, context),
... | public class class_name {
public String getValidationScript(TestContext context) {
try {
if (validationScriptResourcePath != null) {
return context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(validationScriptResourcePath, context),
... |
public class class_name {
private static void registerFromClasspath(
String beanName, String deserName, Map<Class<?>, SerDeserializer> map) throws Exception {
Class<? extends Bean> beanClass = Class.forName(beanName).asSubclass(Bean.class);
Class<?> deserClass = Class.forName(deserName);
... | public class class_name {
private static void registerFromClasspath(
String beanName, String deserName, Map<Class<?>, SerDeserializer> map) throws Exception {
Class<? extends Bean> beanClass = Class.forName(beanName).asSubclass(Bean.class);
Class<?> deserClass = Class.forName(deserName);
... |
public class class_name {
@Override
public int countByG_C_C_DS(long groupId, long classNameId, long classPK,
boolean defaultShipping) {
FinderPath finderPath = FINDER_PATH_COUNT_BY_G_C_C_DS;
Object[] finderArgs = new Object[] {
groupId, classNameId, classPK, defaultShipping
};
Long count = (Long)find... | public class class_name {
@Override
public int countByG_C_C_DS(long groupId, long classNameId, long classPK,
boolean defaultShipping) {
FinderPath finderPath = FINDER_PATH_COUNT_BY_G_C_C_DS;
Object[] finderArgs = new Object[] {
groupId, classNameId, classPK, defaultShipping
};
Long count = (Long)find... |
public class class_name {
private void search(Node node, E q, int k, List<Neighbor<E, E>> neighbors) {
int d = (int) distance.d(node.object, q);
if (d <= k) {
if (node.object != q || !identicalExcluded) {
neighbors.add(new Neighbor<>(node.object, node.object, node.index, d)... | public class class_name {
private void search(Node node, E q, int k, List<Neighbor<E, E>> neighbors) {
int d = (int) distance.d(node.object, q);
if (d <= k) {
if (node.object != q || !identicalExcluded) {
neighbors.add(new Neighbor<>(node.object, node.object, node.index, d)... |
public class class_name {
protected void updateA( int w )
{
final double u[] = dataQR[w];
for( int j = w+1; j < numCols; j++ ) {
final double colQ[] = dataQR[j];
double val = colQ[w];
for( int k = w+1; k < numRows; k++ ) {
val += u[k]*colQ[k];
... | public class class_name {
protected void updateA( int w )
{
final double u[] = dataQR[w];
for( int j = w+1; j < numCols; j++ ) {
final double colQ[] = dataQR[j];
double val = colQ[w];
for( int k = w+1; k < numRows; k++ ) {
val += u[k]*colQ[k]; ... |
public class class_name {
public static Content content(String somePlainText) {
Content c = null;
try {
c = new Content("text/plain; charset=UTF-8", somePlainText.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) { /* UTF-8 is never unsupported */
}
return c;
} } | public class class_name {
public static Content content(String somePlainText) {
Content c = null;
try {
c = new Content("text/plain; charset=UTF-8", somePlainText.getBytes("UTF-8")); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) { /* UTF-8 is never unsupported... |
public class class_name {
void heartbeatCheck() {
if (!getNameNode().shouldCheckHeartbeat()) {
// not to check dead nodes.
return;
}
boolean allAlive = false;
while (!allAlive) {
boolean foundDead = false;
DatanodeID nodeID = null;
// locate the first dead node.
syn... | public class class_name {
void heartbeatCheck() {
if (!getNameNode().shouldCheckHeartbeat()) {
// not to check dead nodes.
return; // depends on control dependency: [if], data = [none]
}
boolean allAlive = false;
while (!allAlive) {
boolean foundDead = false;
DatanodeID nodeID =... |
public class class_name {
@Nullable
private static Resource merge(@Nullable Resource resource, @Nullable Resource otherResource) {
if (otherResource == null) {
return resource;
}
if (resource == null) {
return otherResource;
}
String mergedType = resource.getType() != null ? resource... | public class class_name {
@Nullable
private static Resource merge(@Nullable Resource resource, @Nullable Resource otherResource) {
if (otherResource == null) {
return resource; // depends on control dependency: [if], data = [none]
}
if (resource == null) {
return otherResource; // depends on ... |
public class class_name {
private static String buildParentString(final String tag,
final String tail) {
if (tail.isEmpty()) {
return tag;
} else {
return tag + " " + tail;
}
} } | public class class_name {
private static String buildParentString(final String tag,
final String tail) {
if (tail.isEmpty()) {
return tag; // depends on control dependency: [if], data = [none]
} else {
return tag + " " + tail; // depends on control dependency: [if], ... |
public class class_name {
public String buildResourceList() {
// check how many resources are selected to decide using a div or not
boolean scroll = (getResourceList().size() > 6);
StringBuffer result = new StringBuffer(1024);
result.append(dialogWhiteBoxStart());
// if the ... | public class class_name {
public String buildResourceList() {
// check how many resources are selected to decide using a div or not
boolean scroll = (getResourceList().size() > 6);
StringBuffer result = new StringBuffer(1024);
result.append(dialogWhiteBoxStart());
// if the ... |
public class class_name {
public String resolveLastaEnvPath(String envPath) {
if (envPath == null) {
throw new IllegalArgumentException("The argument 'envPath' should not be null.");
}
final String lastaEnv = getLastaEnv();
if (lastaEnv != null && envPath.contains("_env.")) ... | public class class_name {
public String resolveLastaEnvPath(String envPath) {
if (envPath == null) {
throw new IllegalArgumentException("The argument 'envPath' should not be null.");
}
final String lastaEnv = getLastaEnv();
if (lastaEnv != null && envPath.contains("_env.")) ... |
public class class_name {
public static int indexOfDifference(final String a, final String b) {
if (N.equals(a, b) || (N.isNullOrEmpty(a) && N.isNullOrEmpty(b))) {
return N.INDEX_NOT_FOUND;
}
if (N.isNullOrEmpty(a) || N.isNullOrEmpty(b)) {
return 0;
}
... | public class class_name {
public static int indexOfDifference(final String a, final String b) {
if (N.equals(a, b) || (N.isNullOrEmpty(a) && N.isNullOrEmpty(b))) {
return N.INDEX_NOT_FOUND;
// depends on control dependency: [if], data = [none]
}
if (N.isNullOrEmpty(a) || N.isN... |
public class class_name {
protected void openFile() {
try {
FileAccess fa = isDump ? FileUtil.getDefaultInstance()
: database.getFileAccess();
OutputStream fos = fa.openOutputStreamElement(outFile);
outDescriptor = fa.getFileSync(fo... | public class class_name {
protected void openFile() {
try {
FileAccess fa = isDump ? FileUtil.getDefaultInstance()
: database.getFileAccess();
OutputStream fos = fa.openOutputStreamElement(outFile);
outDescriptor = fa.getFileSync(fo... |
public class class_name {
private void copyRequireFeatureToRequireFeatureWithTolerates() {
Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates();
if (rfwt != null) {
// Both fields (with and without tolerates) should exist, as
... | public class class_name {
private void copyRequireFeatureToRequireFeatureWithTolerates() {
Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates();
if (rfwt != null) {
// Both fields (with and without tolerates) should exist, as
... |
public class class_name {
public boolean lock(boolean shared, boolean block)
{
if (shared && !_canRead) {
// Invalid request for a shared "read" lock on a write only stream.
return false;
}
if (!shared && !_canWrite) {
// Invalid request for an exclusive "write" lock on a read only st... | public class class_name {
public boolean lock(boolean shared, boolean block)
{
if (shared && !_canRead) {
// Invalid request for a shared "read" lock on a write only stream.
return false; // depends on control dependency: [if], data = [none]
}
if (!shared && !_canWrite) {
// Invalid r... |
public class class_name {
protected String callBridge(RestHttpHelper restHelper, String bridgeURL) {
log.info("Making bridge call to get snapshot contents. URL: {}", bridgeURL);
try {
RestHttpHelper.HttpResponse response = restHelper.get(bridgeURL);
int statusCode = response.ge... | public class class_name {
protected String callBridge(RestHttpHelper restHelper, String bridgeURL) {
log.info("Making bridge call to get snapshot contents. URL: {}", bridgeURL);
try {
RestHttpHelper.HttpResponse response = restHelper.get(bridgeURL);
int statusCode = response.ge... |
public class class_name {
public static <T extends ContentMeta> ResourceSelector<T> exactMetadataResourceSelector(final Map<String,
String> required, final boolean requireAll) {
return new ResourceSelector<T>() {
@Override
public boolean matchesContent(T content) {
... | public class class_name {
public static <T extends ContentMeta> ResourceSelector<T> exactMetadataResourceSelector(final Map<String,
String> required, final boolean requireAll) {
return new ResourceSelector<T>() {
@Override
public boolean matchesContent(T content) {
... |
public class class_name {
public void marshall(EventDetailsErrorItem eventDetailsErrorItem, ProtocolMarshaller protocolMarshaller) {
if (eventDetailsErrorItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(EventDetailsErrorItem eventDetailsErrorItem, ProtocolMarshaller protocolMarshaller) {
if (eventDetailsErrorItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
static String removePrivateuseVariant(String privuseVal) {
StringTokenIterator itr = new StringTokenIterator(privuseVal, LanguageTag.SEP);
// Note: privateuse value "abc-lvariant" is unchanged
// because no subtags after "lvariant".
int prefixStart = -1;
... | public class class_name {
static String removePrivateuseVariant(String privuseVal) {
StringTokenIterator itr = new StringTokenIterator(privuseVal, LanguageTag.SEP);
// Note: privateuse value "abc-lvariant" is unchanged
// because no subtags after "lvariant".
int prefixStart = -1;
... |
public class class_name {
public @Nonnull String getRootUrlFromRequest() {
StaplerRequest req = Stapler.getCurrentRequest();
if (req == null) {
throw new IllegalStateException("cannot call getRootUrlFromRequest from outside a request handling thread");
}
StringBuilder buf = ... | public class class_name {
public @Nonnull String getRootUrlFromRequest() {
StaplerRequest req = Stapler.getCurrentRequest();
if (req == null) {
throw new IllegalStateException("cannot call getRootUrlFromRequest from outside a request handling thread");
}
StringBuilder buf = ... |
public class class_name {
protected Control createContents(Composite parent)
{
setTitle("TODO: property title (VdmBreakpointPropertyPage)");
noDefaultAndApplyButton();
Composite mainComposite = createComposite(parent, 1);
createLabels(mainComposite);
try
{
createEnabledButton(mainComposite);
createH... | public class class_name {
protected Control createContents(Composite parent)
{
setTitle("TODO: property title (VdmBreakpointPropertyPage)");
noDefaultAndApplyButton();
Composite mainComposite = createComposite(parent, 1);
createLabels(mainComposite);
try
{
createEnabledButton(mainComposite); // depends... |
public class class_name {
private static int[][] findAromaticRings(int[][] cycles, int[] contribution, int[] dbs) {
// loop control variables, the while loop continual checks all cycles
// until no changes are found
boolean found;
boolean[] checked = new boolean[cycles.length];
... | public class class_name {
private static int[][] findAromaticRings(int[][] cycles, int[] contribution, int[] dbs) {
// loop control variables, the while loop continual checks all cycles
// until no changes are found
boolean found;
boolean[] checked = new boolean[cycles.length];
... |
public class class_name {
private String getPassword(ISecurityContext baseContext) {
String password = null;
IOpaqueCredentials oc = baseContext.getOpaqueCredentials();
if (oc instanceof NotSoOpaqueCredentials) {
NotSoOpaqueCredentials nsoc = (NotSoOpaqueCredentials) oc;
... | public class class_name {
private String getPassword(ISecurityContext baseContext) {
String password = null;
IOpaqueCredentials oc = baseContext.getOpaqueCredentials();
if (oc instanceof NotSoOpaqueCredentials) {
NotSoOpaqueCredentials nsoc = (NotSoOpaqueCredentials) oc;
... |
public class class_name {
private Boolean toBoolean(Object value) {
if (value == null) {
return null;
} else if (value instanceof Boolean) {
return (Boolean) value;
} else if (value instanceof String) {
return Boolean.parseBoolean((String) value);
} else if (value instanceof Short) {
return (Short)... | public class class_name {
private Boolean toBoolean(Object value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (value instanceof Boolean) {
return (Boolean) value; // depends on control dependency: [if], data = [none]
} else if (value instanceof String... |
public class class_name {
public byte[] decrypt(final byte[] encryptedContent) {
FastByteBuffer fbb = new FastByteBuffer();
int length = encryptedContent.length;
int blockCount = length / blockSizeInBytes;
int offset = 0;
for (int i = 0; i < blockCount - 1; i++) {
byte[] decrypted = decryptBlock(encrypt... | public class class_name {
public byte[] decrypt(final byte[] encryptedContent) {
FastByteBuffer fbb = new FastByteBuffer();
int length = encryptedContent.length;
int blockCount = length / blockSizeInBytes;
int offset = 0;
for (int i = 0; i < blockCount - 1; i++) {
byte[] decrypted = decryptBlock(encrypt... |
public class class_name {
public void setBaselineBugs(File baselineBugs) {
if (baselineBugs != null && baselineBugs.length() > 0) {
this.baselineBugs = baselineBugs;
} else {
if (baselineBugs != null) {
log("Warning: baseline bugs file " + baselineBugs
... | public class class_name {
public void setBaselineBugs(File baselineBugs) {
if (baselineBugs != null && baselineBugs.length() > 0) {
this.baselineBugs = baselineBugs; // depends on control dependency: [if], data = [none]
} else {
if (baselineBugs != null) {
log("W... |
public class class_name {
protected void parseSql() {
int commentStartPos = sql.indexOf("/*", position);
int lineCommentStartPos = sql.indexOf("--", position);
int bindVariableStartPos = sql.indexOf("?", position);
int elseCommentStartPos = -1;
if (lineCommentStartPos >= 0) {
int skipPos = skipWhitespace(... | public class class_name {
protected void parseSql() {
int commentStartPos = sql.indexOf("/*", position);
int lineCommentStartPos = sql.indexOf("--", position);
int bindVariableStartPos = sql.indexOf("?", position);
int elseCommentStartPos = -1;
if (lineCommentStartPos >= 0) {
int skipPos = skipWhitespace(... |
public class class_name {
public void randomize() {
numKnots = 4 + (int)(6*Math.random());
xKnots = new int[numKnots];
yKnots = new int[numKnots];
knotTypes = new byte[numKnots];
for (int i = 0; i < numKnots; i++) {
xKnots[i] = (int)(255 * Math.random());
yKnots[i] = 0xff000000 | ((int)(255 * Math.rand... | public class class_name {
public void randomize() {
numKnots = 4 + (int)(6*Math.random());
xKnots = new int[numKnots];
yKnots = new int[numKnots];
knotTypes = new byte[numKnots];
for (int i = 0; i < numKnots; i++) {
xKnots[i] = (int)(255 * Math.random()); // depends on control dependency: [for], data = [i... |
public class class_name {
protected void initIdGenerator() {
if (idGenerator == null) {
CommandExecutor idGeneratorCommandExecutor = null;
if (idGeneratorDataSource != null) {
ProcessEngineConfigurationImpl processEngineConfiguration = new StandaloneProcessEngineConfiguration();
process... | public class class_name {
protected void initIdGenerator() {
if (idGenerator == null) {
CommandExecutor idGeneratorCommandExecutor = null;
if (idGeneratorDataSource != null) {
ProcessEngineConfigurationImpl processEngineConfiguration = new StandaloneProcessEngineConfiguration();
process... |
public class class_name {
public void setUnknownTokenBoundaries() {
if ( children==null ) {
if ( startIndex<0 || stopIndex<0 ) {
startIndex = stopIndex = token.getTokenIndex();
}
return;
}
for (int i=0; i<children.size(); i++) {
((CommonTr... | public class class_name {
public void setUnknownTokenBoundaries() {
if ( children==null ) {
if ( startIndex<0 || stopIndex<0 ) {
startIndex = stopIndex = token.getTokenIndex(); // depends on control dependency: [if], data = [none]
}
return; // depends on control d... |
public class class_name {
@Override
public EEnum getIfcBuildingSystemTypeEnum() {
if (ifcBuildingSystemTypeEnumEEnum == null) {
ifcBuildingSystemTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(926);
}
return ifcBuildingSystemTypeEnumEEnum;... | public class class_name {
@Override
public EEnum getIfcBuildingSystemTypeEnum() {
if (ifcBuildingSystemTypeEnumEEnum == null) {
ifcBuildingSystemTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(926);
// depends on control dependency: [if], data ... |
public class class_name {
private static String getRealDeptId(String deptId){
int start=deptId.indexOf("[");
String realKey=deptId;
if(start>0){
realKey=deptId.substring(0,start);
}
return realKey;
} } | public class class_name {
private static String getRealDeptId(String deptId){
int start=deptId.indexOf("[");
String realKey=deptId;
if(start>0){
realKey=deptId.substring(0,start);
// depends on control dependency: [if], data = [none]
}
return realKey;
} } |
public class class_name {
@Override
@SuppressWarnings("unchecked")
protected Enumeration<URL> findResources(String name) {
final List<Enumeration<URL>> enumerations = new ArrayList<>();
for (WeakReference<Bundle> ref : bundles) {
final Bundle bundle = ref.get();
if (bundle != null ... | public class class_name {
@Override
@SuppressWarnings("unchecked")
protected Enumeration<URL> findResources(String name) {
final List<Enumeration<URL>> enumerations = new ArrayList<>();
for (WeakReference<Bundle> ref : bundles) {
final Bundle bundle = ref.get();
if (bundle != null ... |
public class class_name {
public Result<Void> createPerm(AuthzTrans trans, PermDAO.Data perm, boolean fromApproval) {
String user = trans.user();
// Next, see if User is allowed to Manage Parent Permission
Result<NsDAO.Data> rnsd;
if (!fromApproval) {
rnsd = q.mayUser(trans, user, perm, Access.write);
i... | public class class_name {
public Result<Void> createPerm(AuthzTrans trans, PermDAO.Data perm, boolean fromApproval) {
String user = trans.user();
// Next, see if User is allowed to Manage Parent Permission
Result<NsDAO.Data> rnsd;
if (!fromApproval) {
rnsd = q.mayUser(trans, user, perm, Access.write); // d... |
public class class_name {
public void link(String from, String to) throws AccessDeniedException, StorageClientException {
// a link places a pointer to the content in the parent of from, but
// does not delete or modify the structure of to.
// read from is required and write to.
long t ... | public class class_name {
public void link(String from, String to) throws AccessDeniedException, StorageClientException {
// a link places a pointer to the content in the parent of from, but
// does not delete or modify the structure of to.
// read from is required and write to.
long t ... |
public class class_name {
protected void moveSelectionUp() {
final IStructuredSelection selection = this.list.getStructuredSelection();
final int index = this.conversions.indexOf(selection.getFirstElement());
if (index > 0) {
final ConversionMapping previous = this.conversions.remove(index - 1);
this.conve... | public class class_name {
protected void moveSelectionUp() {
final IStructuredSelection selection = this.list.getStructuredSelection();
final int index = this.conversions.indexOf(selection.getFirstElement());
if (index > 0) {
final ConversionMapping previous = this.conversions.remove(index - 1);
this.conve... |
public class class_name {
protected String resolveHttpMethodFromMethodName(final String methodName) {
int i = 0;
while (i < methodName.length()) {
if (CharUtil.isUppercaseAlpha(methodName.charAt(i))) {
break;
}
i++;
}
final String name = methodName.substring(0, i).toUpperCase();
for (final Ht... | public class class_name {
protected String resolveHttpMethodFromMethodName(final String methodName) {
int i = 0;
while (i < methodName.length()) {
if (CharUtil.isUppercaseAlpha(methodName.charAt(i))) {
break;
}
i++; // depends on control dependency: [while], data = [none]
}
final String name = m... |
public class class_name {
public void append(final float element) {
if (offset - buffer.length >= 0) {
grow(offset);
}
buffer[offset++] = element;
} } | public class class_name {
public void append(final float element) {
if (offset - buffer.length >= 0) {
grow(offset); // depends on control dependency: [if], data = [none]
}
buffer[offset++] = element;
} } |
public class class_name {
protected void countPoiTags(TDNode poi) {
if (poi == null || poi.getTags() == null) {
return;
}
for (short tag : poi.getTags().keySet()) {
this.histogramPoiTags.adjustOrPutValue(tag, 1, 1);
}
} } | public class class_name {
protected void countPoiTags(TDNode poi) {
if (poi == null || poi.getTags() == null) {
return; // depends on control dependency: [if], data = [none]
}
for (short tag : poi.getTags().keySet()) {
this.histogramPoiTags.adjustOrPutValue(tag, 1, 1); /... |
public class class_name {
private Collection<String> getCertServerNames(X509Certificate x509)
throws CertificateParsingException {
Collection<String> serverNames = new LinkedHashSet<>();
/* Add CN for the certificate */
String certCN = getCertCN(x509);
serverNames.add(certCN);... | public class class_name {
private Collection<String> getCertServerNames(X509Certificate x509)
throws CertificateParsingException {
Collection<String> serverNames = new LinkedHashSet<>();
/* Add CN for the certificate */
String certCN = getCertCN(x509);
serverNames.add(certCN);... |
public class class_name {
public void afterPropertiesSet() throws Exception {
Resource portletXml = resourceLoader.getResource("/WEB-INF/portlet.xml");
Document doc = getDocument(portletXml.getInputStream());
final XPathExpression roleNamesExpression;
if (portletConfig == null)... | public class class_name {
public void afterPropertiesSet() throws Exception {
Resource portletXml = resourceLoader.getResource("/WEB-INF/portlet.xml");
Document doc = getDocument(portletXml.getInputStream());
final XPathExpression roleNamesExpression;
if (portletConfig == null)... |
public class class_name {
public void marshall(Eac3Settings eac3Settings, ProtocolMarshaller protocolMarshaller) {
if (eac3Settings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(eac3Settings.get... | public class class_name {
public void marshall(Eac3Settings eac3Settings, ProtocolMarshaller protocolMarshaller) {
if (eac3Settings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(eac3Settings.get... |
public class class_name {
public void start(final int timeout, boolean daemon) throws IOException {
this.myServerSocket = this.getServerSocketFactory().create();
this.myServerSocket.setReuseAddress(true);
ServerRunnable serverRunnable = createServerRunnable(timeout);
this.myThread = ne... | public class class_name {
public void start(final int timeout, boolean daemon) throws IOException {
this.myServerSocket = this.getServerSocketFactory().create();
this.myServerSocket.setReuseAddress(true);
ServerRunnable serverRunnable = createServerRunnable(timeout);
this.myThread = ne... |
public class class_name {
public static String rot13(String _input) {
if (_input == null) {
return null;
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < _input.length(); i++) {
char c = _input.charAt(i);
if (c >= 'a' && c <= 'm') {
... | public class class_name {
public static String rot13(String _input) {
if (_input == null) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < _input.length(); i++) {
char c = _input.ch... |
public class class_name {
protected synchronized MessageDigest getDigest() {
if (this.digest == null) {
try {
this.digest = MessageDigest.getInstance(algorithm);
} catch (NoSuchAlgorithmException e) {
try {
this.digest = MessageDigest.... | public class class_name {
protected synchronized MessageDigest getDigest() {
if (this.digest == null) {
try {
this.digest = MessageDigest.getInstance(algorithm); // depends on control dependency: [try], data = [none]
} catch (NoSuchAlgorithmException e) {
... |
public class class_name {
public InjectionNode analyze(final InjectionSignature signature, final InjectionSignature concreteType, final AnalysisContext context) {
InjectionNode injectionNode;
if (context.isDependent(concreteType.getType())) {
//if this type is a dependency of itself, we'v... | public class class_name {
public InjectionNode analyze(final InjectionSignature signature, final InjectionSignature concreteType, final AnalysisContext context) {
InjectionNode injectionNode;
if (context.isDependent(concreteType.getType())) {
//if this type is a dependency of itself, we'v... |
public class class_name {
public List<String> asLabels() {
List<String> labels = new ArrayList<>();
for (T element : getElements()) {
labels.add(element.getLabel());
}
return labels;
} } | public class class_name {
public List<String> asLabels() {
List<String> labels = new ArrayList<>();
for (T element : getElements()) {
labels.add(element.getLabel()); // depends on control dependency: [for], data = [element]
}
return labels;
} } |
public class class_name {
public ExecutionVertex getInputExecutionVertex(int index) {
final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator();
while (it.hasNext()) {
final ExecutionGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
final int numberOfMembers = groupVe... | public class class_name {
public ExecutionVertex getInputExecutionVertex(int index) {
final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator();
while (it.hasNext()) {
final ExecutionGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
final int numberOfMembers = groupVe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.