code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public List<String> getTables() {
ContentsDao contentDao = getContentsDao();
List<String> tables;
try {
tables = contentDao.getTables();
} catch (SQLException e) {
throw new GeoPackageException("Failed to retrieve tables", e);
}
return tables;
} } | public class class_name {
@Override
public List<String> getTables() {
ContentsDao contentDao = getContentsDao();
List<String> tables;
try {
tables = contentDao.getTables(); // depends on control dependency: [try], data = [none]
} catch (SQLException e) {
throw new GeoPackageException("Failed to retrieve... |
public class class_name {
public boolean isAfterRange(Range<T> otherRange) {
if (otherRange == null) { return false; }
return isAfter(otherRange.max);
} } | public class class_name {
public boolean isAfterRange(Range<T> otherRange) {
if (otherRange == null) { return false; } // depends on control dependency: [if], data = [none]
return isAfter(otherRange.max);
} } |
public class class_name {
protected Content getFrameDetails() {
HtmlTree frameset = HtmlTree.FRAMESET("20%,80%", null, "Documentation frame",
"top.loadFrames()");
if (noOfPackages <= 1) {
addAllClassesFrameTag(frameset);
} else if (noOfPackages > 1) {
Htm... | public class class_name {
protected Content getFrameDetails() {
HtmlTree frameset = HtmlTree.FRAMESET("20%,80%", null, "Documentation frame",
"top.loadFrames()");
if (noOfPackages <= 1) {
addAllClassesFrameTag(frameset); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setGroups(java.util.Collection<SegmentGroup> groups) {
if (groups == null) {
this.groups = null;
return;
}
this.groups = new java.util.ArrayList<SegmentGroup>(groups);
} } | public class class_name {
public void setGroups(java.util.Collection<SegmentGroup> groups) {
if (groups == null) {
this.groups = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.groups = new... |
public class class_name {
static Positions newDisjointPositions(Matches matches, int position) {
if (matches == null) throw new IllegalArgumentException("null matches");
if (position < 0L) throw new IllegalArgumentException();
//TODO consider restoring dedicated size accessor on matches
if (position > matches.... | public class class_name {
static Positions newDisjointPositions(Matches matches, int position) {
if (matches == null) throw new IllegalArgumentException("null matches");
if (position < 0L) throw new IllegalArgumentException();
//TODO consider restoring dedicated size accessor on matches
if (position > matches.... |
public class class_name {
public Matrix getP() {
Matrix P = new DenseMatrix(jpvt.length, jpvt.length);
for (int i = 0; i < jpvt.length; i++) {
P.set(jpvt[i], i, 1);
}
return P;
} } | public class class_name {
public Matrix getP() {
Matrix P = new DenseMatrix(jpvt.length, jpvt.length);
for (int i = 0; i < jpvt.length; i++) {
P.set(jpvt[i], i, 1); // depends on control dependency: [for], data = [i]
}
return P;
} } |
public class class_name {
public void setInputs(java.util.Collection<JobInput> inputs) {
if (inputs == null) {
this.inputs = null;
return;
}
this.inputs = new com.amazonaws.internal.SdkInternalList<JobInput>(inputs);
} } | public class class_name {
public void setInputs(java.util.Collection<JobInput> inputs) {
if (inputs == null) {
this.inputs = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.inputs = new com... |
public class class_name {
public static UByte[] ubyte_a(byte... values) {
UByte[] array = new UByte[values.length];
for (int i = 0; i < values.length; i++) {
array[i] = ubyte(values[i]);
}
return array;
} } | public class class_name {
public static UByte[] ubyte_a(byte... values) {
UByte[] array = new UByte[values.length];
for (int i = 0; i < values.length; i++) {
array[i] = ubyte(values[i]);
// depends on control dependency: [for], data = [i]
}
return array;
} } |
public class class_name {
public Object createAnyPreferLegacyOrder(Properties props, String dataSourceID) throws Exception {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.r... | public class class_name {
public Object createAnyPreferLegacyOrder(Properties props, String dataSourceID) throws Exception {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.r... |
public class class_name {
void attachMetadataCacheInternal(SlotReference slot, MetadataCache cache) {
MetadataCache oldCache = metadataCacheFiles.put(slot, cache);
if (oldCache != null) {
try {
oldCache.close();
} catch (IOException e) {
logger.er... | public class class_name {
void attachMetadataCacheInternal(SlotReference slot, MetadataCache cache) {
MetadataCache oldCache = metadataCacheFiles.put(slot, cache);
if (oldCache != null) {
try {
oldCache.close(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public EncryptionAlgorithmOptions withAllowedValues(EncryptionAlgorithm... allowedValues) {
java.util.ArrayList<String> allowedValuesCopy = new java.util.ArrayList<String>(allowedValues.length);
for (EncryptionAlgorithm value : allowedValues) {
allowedValuesCopy.ad... | public class class_name {
public EncryptionAlgorithmOptions withAllowedValues(EncryptionAlgorithm... allowedValues) {
java.util.ArrayList<String> allowedValuesCopy = new java.util.ArrayList<String>(allowedValues.length);
for (EncryptionAlgorithm value : allowedValues) {
allowedValuesCopy.ad... |
public class class_name {
@Override
protected void validateComponent(final List<Diagnostic> diags) {
String text1 = field1.getText();
String text2 = field2.getText();
String text3 = field3.getText();
if (text1 != null && text1.length() > 0 && text1.equals(text2)) {
// Note that this error will hyperlink t... | public class class_name {
@Override
protected void validateComponent(final List<Diagnostic> diags) {
String text1 = field1.getText();
String text2 = field2.getText();
String text3 = field3.getText();
if (text1 != null && text1.length() > 0 && text1.equals(text2)) {
// Note that this error will hyperlink t... |
public class class_name {
private long computeConfigurationLastModified(List<Resource> configurations) {
long result = 0;
for (Resource configuration : configurations) {
try {
long currentConfigurationLastModified = configuration.lastModified();
if (currentConfi... | public class class_name {
private long computeConfigurationLastModified(List<Resource> configurations) {
long result = 0;
for (Resource configuration : configurations) {
try {
long currentConfigurationLastModified = configuration.lastModified();
if (currentConfi... |
public class class_name {
public static void copy(int[][] x, int[][] y) {
if (x.length != y.length || x[0].length != y[0].length) {
throw new IllegalArgumentException(String.format("Matrices have different rows: %d x %d vs %d x %d", x.length, x[0].length, y.length, y[0].length));
}
... | public class class_name {
public static void copy(int[][] x, int[][] y) {
if (x.length != y.length || x[0].length != y[0].length) {
throw new IllegalArgumentException(String.format("Matrices have different rows: %d x %d vs %d x %d", x.length, x[0].length, y.length, y[0].length));
}
... |
public class class_name {
@Override
public boolean intersects(IVersionRange yourRange)
{
for (IVersionRange range : ranges) {
if (range.intersects(yourRange)) {
return true;
}
}
return false;
} } | public class class_name {
@Override
public boolean intersects(IVersionRange yourRange)
{
for (IVersionRange range : ranges) {
if (range.intersects(yourRange)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
String tableToString(Table table)
{
StringBuilder strb = new StringBuilder();
for(int row = 0; row < table.getRowCount(); row++)
{
for(int col = 0; col < table.getColumnCount(); col++)
{
strb.append(table.get(row, col));
strb.append(" ");
... | public class class_name {
String tableToString(Table table)
{
StringBuilder strb = new StringBuilder();
for(int row = 0; row < table.getRowCount(); row++)
{
for(int col = 0; col < table.getColumnCount(); col++)
{
strb.append(table.get(row, col));
// depends on control depe... |
public class class_name {
public DatasourceConnection getDatasourceConnection(Config config, DataSource datasource, String user, String pass) throws PageException {
config = ThreadLocalPageContext.getConfig(config);
if (StringUtil.isEmpty(user)) {
user = datasource.getUsername();
pass = datasource.getPass... | public class class_name {
public DatasourceConnection getDatasourceConnection(Config config, DataSource datasource, String user, String pass) throws PageException {
config = ThreadLocalPageContext.getConfig(config);
if (StringUtil.isEmpty(user)) {
user = datasource.getUsername();
pass = datasource.getPass... |
public class class_name {
public void markInitialState() {
if (!attachedObjects.isEmpty()) {
for (T t : attachedObjects) {
if (t instanceof PartialStateHolder) {
((PartialStateHolder) t).markInitialState();
}
}
}
initi... | public class class_name {
public void markInitialState() {
if (!attachedObjects.isEmpty()) {
for (T t : attachedObjects) {
if (t instanceof PartialStateHolder) {
((PartialStateHolder) t).markInitialState(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest, ProtocolMarshaller protocolMarshaller) {
if (stopDominantLanguageDetectionJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... | public class class_name {
public void marshall(StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest, ProtocolMarshaller protocolMarshaller) {
if (stopDominantLanguageDetectionJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... |
public class class_name {
private void addEmptyElements() {
for (Node node : nodes) {
boolean empty = true;
if(node instanceof NestableNode) {
List<Node> nl = ((NestableNode) node).getChildren();
for (Node n : nl) {
if (n instanceof Elemen... | public class class_name {
private void addEmptyElements() {
for (Node node : nodes) {
boolean empty = true;
if(node instanceof NestableNode) {
List<Node> nl = ((NestableNode) node).getChildren();
for (Node n : nl) {
if (n instanceof Elemen... |
public class class_name {
public E extractMin() {
if (isEmpty()) {
throw new NoSuchElementException();
}
HeapEntry<E> minEntry = indexToEntry.get(0);
int lastIndex = size() - 1;
if (lastIndex > 0) {
HeapEntry<E> lastEntry = indexToEntry.get(lastIndex);
swap(lastEntry, min... | public class class_name {
public E extractMin() {
if (isEmpty()) {
throw new NoSuchElementException();
}
HeapEntry<E> minEntry = indexToEntry.get(0);
int lastIndex = size() - 1;
if (lastIndex > 0) {
HeapEntry<E> lastEntry = indexToEntry.get(lastIndex);
swap(lastEntry, min... |
public class class_name {
@Override
public Object beforeGettingConnection(Subject subject, ConnectionRequestInfo reqInfo) throws ResourceException {
if (tc.isEntryEnabled())
Tr.entry(this, tc, "beforeGettingConnection", getSubjectString(subject), reqInfo);
Object retObject = null;
... | public class class_name {
@Override
public Object beforeGettingConnection(Subject subject, ConnectionRequestInfo reqInfo) throws ResourceException {
if (tc.isEntryEnabled())
Tr.entry(this, tc, "beforeGettingConnection", getSubjectString(subject), reqInfo);
Object retObject = null;
... |
public class class_name {
protected final File createDirectoryArtifact(final File outputDirectory,
final String artifact) {
// Construct artifact path based on output directory
String path = asPath(outputDirectory.getAbsolutePath(), artifact);
final File ret = new File(path);
... | public class class_name {
protected final File createDirectoryArtifact(final File outputDirectory,
final String artifact) {
// Construct artifact path based on output directory
String path = asPath(outputDirectory.getAbsolutePath(), artifact);
final File ret = new File(path);
... |
public class class_name {
private void addIndexLink(DeprecatedAPIListBuilder builder,
DeprElementKind kind, Content contentTree) {
if (builder.hasDocumentation(kind)) {
Content li = HtmlTree.LI(getHyperLink(getAnchorName(kind),
contents.getContent(getHeadingKey(kind)... | public class class_name {
private void addIndexLink(DeprecatedAPIListBuilder builder,
DeprElementKind kind, Content contentTree) {
if (builder.hasDocumentation(kind)) {
Content li = HtmlTree.LI(getHyperLink(getAnchorName(kind),
contents.getContent(getHeadingKey(kind)... |
public class class_name {
public static String getInternalType(String type) {
String internalType = null;
if ( "byte".equals( type ) ) {
internalType = "B";
} else if ( "char".equals( type ) ) {
internalType = "C";
} else if ( "double".equals( type ) ) {
... | public class class_name {
public static String getInternalType(String type) {
String internalType = null;
if ( "byte".equals( type ) ) {
internalType = "B"; // depends on control dependency: [if], data = [none]
} else if ( "char".equals( type ) ) {
internalType = "C"; /... |
public class class_name {
void markKnownViewsInvalid() {
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
final ViewHolder holder = getChildViewHolderInt(getChildAt(i));
if (holder != null) {
holder.addFlags(ViewHolder.FLAG_UPDATE |... | public class class_name {
void markKnownViewsInvalid() {
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
final ViewHolder holder = getChildViewHolderInt(getChildAt(i));
if (holder != null) {
holder.addFlags(ViewHolder.FLAG_UPDATE |... |
public class class_name {
public void trim(int ntrees) {
if (ntrees < 1) {
throw new IllegalArgumentException("Invalid new model size: " + ntrees);
}
if (k == 2) {
if (ntrees > trees.length) {
throw new IllegalArgumentException("The new model size is lar... | public class class_name {
public void trim(int ntrees) {
if (ntrees < 1) {
throw new IllegalArgumentException("Invalid new model size: " + ntrees);
}
if (k == 2) {
if (ntrees > trees.length) {
throw new IllegalArgumentException("The new model size is lar... |
public class class_name {
private int registerBlockInstance() {
int blockInstNo = blockInstTabCnt++;
if (blockInstTab == null) {
blockInstTab = new BlockInstTabRec[64];
}
if (blockInstTabCnt > blockInstTab.length) {
blockInstTab = (BlockInstTabRec[]) MiniTe... | public class class_name {
private int registerBlockInstance() {
int blockInstNo = blockInstTabCnt++;
if (blockInstTab == null) {
blockInstTab = new BlockInstTabRec[64];
// depends on control dependency: [if], data = [none]
}
if (blockInstTabCnt > blockInstTab.length) {
... |
public class class_name {
void chooseExcessReplicates(Collection<DatanodeDescriptor> nonExcess,
Block b, short replication,
DatanodeDescriptor addedNode,
DatanodeDescriptor delNodeHint,
INodeFile ino... | public class class_name {
void chooseExcessReplicates(Collection<DatanodeDescriptor> nonExcess,
Block b, short replication,
DatanodeDescriptor addedNode,
DatanodeDescriptor delNodeHint,
INodeFile ino... |
public class class_name {
public Integer getInt(int index) {
Number n = (Number) content.get(index);
if (n == null) {
return null;
} else if (n instanceof Integer) {
return (Integer) n;
} else {
return n.intValue(); //autoboxing to Integer
}
... | public class class_name {
public Integer getInt(int index) {
Number n = (Number) content.get(index);
if (n == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (n instanceof Integer) {
return (Integer) n; // depends on control dependenc... |
public class class_name {
@Override
public int countByLtE_S(Date expirationDate, int status) {
FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_LTE_S;
Object[] finderArgs = new Object[] { _getTime(expirationDate), status };
Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
... | public class class_name {
@Override
public int countByLtE_S(Date expirationDate, int status) {
FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_LTE_S;
Object[] finderArgs = new Object[] { _getTime(expirationDate), status };
Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
... |
public class class_name {
public final void typeArguments() throws RecognitionException {
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:5: ( LESS typeArgument ( COMMA typeArgument )* GREATER )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:7: LESS typeArgument... | public class class_name {
public final void typeArguments() throws RecognitionException {
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:5: ( LESS typeArgument ( COMMA typeArgument )* GREATER )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:7: LESS typeArgument... |
public class class_name {
public WindowsFileSystemConfiguration withMaintenanceOperationsInProgress(FileSystemMaintenanceOperation... maintenanceOperationsInProgress) {
java.util.ArrayList<String> maintenanceOperationsInProgressCopy = new java.util.ArrayList<String>(maintenanceOperationsInProgress.length);
... | public class class_name {
public WindowsFileSystemConfiguration withMaintenanceOperationsInProgress(FileSystemMaintenanceOperation... maintenanceOperationsInProgress) {
java.util.ArrayList<String> maintenanceOperationsInProgressCopy = new java.util.ArrayList<String>(maintenanceOperationsInProgress.length);
... |
public class class_name {
private void fillNodeList(P parent) {
P prt = parent;
if ((prt != null) && (prt.isLeaf())) {
return;
}
while (prt != null) {
if (!prt.isLeaf()) {
if (!this.expandedNodes.contains(prt)) {
this.expandedNodes.add(prt);
for (int i = prt.getChildCount() - 1; i >= 0; --i... | public class class_name {
private void fillNodeList(P parent) {
P prt = parent;
if ((prt != null) && (prt.isLeaf())) {
return; // depends on control dependency: [if], data = [none]
}
while (prt != null) {
if (!prt.isLeaf()) {
if (!this.expandedNodes.contains(prt)) {
this.expandedNodes.add(prt); ... |
public class class_name {
public boolean getBracketedToken(char start, char end, TextProvider textProvider)
{
clearLastToken(textProvider);
clearLeadingSpaces(textProvider);
mark(textProvider);
if (m_debug)
debug("testing " + start + " " + end,textProvider);
StringBuilder... | public class class_name {
public boolean getBracketedToken(char start, char end, TextProvider textProvider)
{
clearLastToken(textProvider);
clearLeadingSpaces(textProvider);
mark(textProvider);
if (m_debug)
debug("testing " + start + " " + end,textProvider);
StringBuilder... |
public class class_name {
public static HiveWorkUnit viewMaterializationWorkUnit(HiveDataset dataset, HiveConverterUtils.StorageFormat storageFormat,
StageableTableMetadata destinationTable, @Nullable String partitionName) {
HiveWorkUnit workUnit = new HiveWorkUnit(dataset);
workUnit.setProp(MATERIALIZER... | public class class_name {
public static HiveWorkUnit viewMaterializationWorkUnit(HiveDataset dataset, HiveConverterUtils.StorageFormat storageFormat,
StageableTableMetadata destinationTable, @Nullable String partitionName) {
HiveWorkUnit workUnit = new HiveWorkUnit(dataset);
workUnit.setProp(MATERIALIZER... |
public class class_name {
public int getPrevOpcode(int offset) {
if (offset < 0) {
throw new IllegalArgumentException("offset (" + offset + ") must be nonnegative");
}
if (offset >= prevOpcode.length || offset > sizePrevOpcodeBuffer) {
return Const.NOP;
}
... | public class class_name {
public int getPrevOpcode(int offset) {
if (offset < 0) {
throw new IllegalArgumentException("offset (" + offset + ") must be nonnegative");
}
if (offset >= prevOpcode.length || offset > sizePrevOpcodeBuffer) {
return Const.NOP; // depends on con... |
public class class_name {
private void markSubroutines() {
BitSet anyvisited = new BitSet();
// First walk the main subroutine and find all those instructions which
// can be reached without invoking any JSR at all
markSubroutineWalk(mainSubroutine, 0, anyvisited);
// Go throu... | public class class_name {
private void markSubroutines() {
BitSet anyvisited = new BitSet();
// First walk the main subroutine and find all those instructions which
// can be reached without invoking any JSR at all
markSubroutineWalk(mainSubroutine, 0, anyvisited);
// Go throu... |
public class class_name {
protected List<InetAddress> lookupHostAddress0(DnsName name, List<HostAddress> failedAddresses, DnssecMode dnssecMode) {
// Default implementation of a DNS name lookup for A/AAAA records. It is assumed that this method does never
// support DNSSEC. Subclasses are free to overr... | public class class_name {
protected List<InetAddress> lookupHostAddress0(DnsName name, List<HostAddress> failedAddresses, DnssecMode dnssecMode) {
// Default implementation of a DNS name lookup for A/AAAA records. It is assumed that this method does never
// support DNSSEC. Subclasses are free to overr... |
public class class_name {
public void start(boolean pLazy) {
Restrictor restrictor = createRestrictor();
backendManager = new BackendManager(configuration, logHandler, restrictor, pLazy);
requestHandler = new HttpRequestHandler(configuration, backendManager, logHandler);
if (listenForDi... | public class class_name {
public void start(boolean pLazy) {
Restrictor restrictor = createRestrictor();
backendManager = new BackendManager(configuration, logHandler, restrictor, pLazy);
requestHandler = new HttpRequestHandler(configuration, backendManager, logHandler);
if (listenForDi... |
public class class_name {
public void eInit(SarlScript script, String name, IJvmTypeProvider context) {
setTypeResolutionContext(context);
if (this.sarlAgent == null) {
this.sarlAgent = SarlFactory.eINSTANCE.createSarlAgent();
script.getXtendTypes().add(this.sarlAgent);
this.sarlAgent.setAnnotationInfo(Xt... | public class class_name {
public void eInit(SarlScript script, String name, IJvmTypeProvider context) {
setTypeResolutionContext(context);
if (this.sarlAgent == null) {
this.sarlAgent = SarlFactory.eINSTANCE.createSarlAgent(); // depends on control dependency: [if], data = [none]
script.getXtendTypes().add(t... |
public class class_name {
public QRCode toFile(File qrcodeFile) {
try {
if (!qrcodeFile.exists()) {
Files.createParentDirs(qrcodeFile);
qrcodeFile.createNewFile();
}
if (!ImageIO.write(this.qrcodeImage,
getSuffixName(qrcod... | public class class_name {
public QRCode toFile(File qrcodeFile) {
try {
if (!qrcodeFile.exists()) {
Files.createParentDirs(qrcodeFile); // depends on control dependency: [if], data = [none]
qrcodeFile.createNewFile(); // depends on control dependency: [if], data = [n... |
public class class_name {
private void updateMeaning(DoubleVector meaning,
Queue<String> prevWords,
Queue<String> nextWords) {
// Generate the semantics of the context using summation of index
// vectors.
if (semanticType == Semantic... | public class class_name {
private void updateMeaning(DoubleVector meaning,
Queue<String> prevWords,
Queue<String> nextWords) {
// Generate the semantics of the context using summation of index
// vectors.
if (semanticType == Semantic... |
public class class_name {
private void mergerByScore(Term fromTerm, int to, boolean asc) {
Term term = null;
if (terms[to] != null) {
term = terms[to];
while (term != null) {
// 关系式to.set(from)
term.setPathSelfScore(fromTerm, asc);
term = term.next();
}
}
} } | public class class_name {
private void mergerByScore(Term fromTerm, int to, boolean asc) {
Term term = null;
if (terms[to] != null) {
term = terms[to]; // depends on control dependency: [if], data = [none]
while (term != null) {
// 关系式to.set(from)
term.setPathSelfScore(fromTerm, asc); // depends on c... |
public class class_name {
public static String getCompactServerStatus(final ODistributedServerManager manager, final ODocument distribCfg) {
final StringBuilder buffer = new StringBuilder();
final Collection<ODocument> members = distribCfg.field("members");
if (members != null) {
buffer.append(memb... | public class class_name {
public static String getCompactServerStatus(final ODistributedServerManager manager, final ODocument distribCfg) {
final StringBuilder buffer = new StringBuilder();
final Collection<ODocument> members = distribCfg.field("members");
if (members != null) {
buffer.append(memb... |
public class class_name {
public List<String> descriptionsForIds(List<String> _ids, boolean payload, boolean pretty) {
List<String> descriptions = new ArrayList<String>();
for (ServiceWrapper s : _cache) {
if (_ids.isEmpty() || _ids.contains(s.id)) {
StringBuffer buf = serviceDesciption(payloa... | public class class_name {
public List<String> descriptionsForIds(List<String> _ids, boolean payload, boolean pretty) {
List<String> descriptions = new ArrayList<String>();
for (ServiceWrapper s : _cache) {
if (_ids.isEmpty() || _ids.contains(s.id)) {
StringBuffer buf = serviceDesciption(payloa... |
public class class_name {
public Object getObject(int index)
{
try (InputStream is = openInputStream(index)) {
if (is == null) {
return null;
}
try (InH3 in = serializer().in(is)) {
return in.readObject();
}
} catch (IOException e) {
throw new RuntimeExcep... | public class class_name {
public Object getObject(int index)
{
try (InputStream is = openInputStream(index)) {
if (is == null) {
return null; // depends on control dependency: [if], data = [none]
}
try (InH3 in = serializer().in(is)) {
return in.readObject();
}
... |
public class class_name {
public long getLong(String key, long defaultValue) {
if (containsKey(key)) {
return Long.parseLong(get(key));
} else {
return defaultValue;
}
} } | public class class_name {
public long getLong(String key, long defaultValue) {
if (containsKey(key)) {
return Long.parseLong(get(key)); // depends on control dependency: [if], data = [none]
} else {
return defaultValue; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
@JsonIgnore
public Map<String, OptionalConfigurationComponent<?>> getValidationMap() {
// Use getDeclaredFields as the fields will probably be private
final Field[] fields = getClass().getDeclaredFields();
final Map<String, OptionalConfigurationCompon... | public class class_name {
@Override
@JsonIgnore
public Map<String, OptionalConfigurationComponent<?>> getValidationMap() {
// Use getDeclaredFields as the fields will probably be private
final Field[] fields = getClass().getDeclaredFields();
final Map<String, OptionalConfigurationCompon... |
public class class_name {
public static char[] encodeHex(byte[] data) {
int l = data.length;
char[] out = new char[l << 1];
// two characters form the hex value.
for (int i = 0, j = 0; i < l; i++) {
out[j++] = DIGITS[(0xF0 & data[i]) >>> 4 ];
ou... | public class class_name {
public static char[] encodeHex(byte[] data) {
int l = data.length;
char[] out = new char[l << 1];
// two characters form the hex value.
for (int i = 0, j = 0; i < l; i++) {
out[j++] = DIGITS[(0xF0 & data[i]) >>> 4 ]; // depends on con... |
public class class_name {
protected void getTablesAndIndexesFromSubqueries(Map<String, StmtTargetTableScan> tablesRead,
Collection<String> indexes) {
for(AbstractExpression expr : findAllSubquerySubexpressions()) {
assert(expr instanceof AbstractSubqueryExpression);
Abstract... | public class class_name {
protected void getTablesAndIndexesFromSubqueries(Map<String, StmtTargetTableScan> tablesRead,
Collection<String> indexes) {
for(AbstractExpression expr : findAllSubquerySubexpressions()) {
assert(expr instanceof AbstractSubqueryExpression); // depends on contro... |
public class class_name {
public LoggingEvent rewrite(final LoggingEvent source) {
if (!properties.isEmpty()) {
Map rewriteProps = new HashMap(source.getProperties());
for(Iterator iter = properties.entrySet().iterator();
iter.hasNext();
) {
... | public class class_name {
public LoggingEvent rewrite(final LoggingEvent source) {
if (!properties.isEmpty()) {
Map rewriteProps = new HashMap(source.getProperties());
for(Iterator iter = properties.entrySet().iterator();
iter.hasNext();
) {
... |
public class class_name {
public com.google.protobuf.ByteString
getOrganizationBytes() {
java.lang.Object ref = organization_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
... | public class class_name {
public com.google.protobuf.ByteString
getOrganizationBytes() {
java.lang.Object ref = organization_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
... |
public class class_name {
@Override
public Response resynchronize( String applicationName ) {
this.logger.fine( "Request: resynchronize all the agents." );
String lang = lang( this.manager );
Response response = Response.ok().build();
try {
ManagedApplication ma = this.manager.applicationMngr().findManage... | public class class_name {
@Override
public Response resynchronize( String applicationName ) {
this.logger.fine( "Request: resynchronize all the agents." );
String lang = lang( this.manager );
Response response = Response.ok().build();
try {
ManagedApplication ma = this.manager.applicationMngr().findManage... |
public class class_name {
private void makeMSGgeostationary() {
double Lat0 = gds.getDouble(GridDefRecord.LAP); // sub-satellite point lat
double Lon0 = gds.getDouble(GridDefRecord.LOP); // sub-satellite point lon
//int nx = gds.getInt(GridDefRecord.NX);
int ny = gds.getInt(GridDefRecord.NY);
in... | public class class_name {
private void makeMSGgeostationary() {
double Lat0 = gds.getDouble(GridDefRecord.LAP); // sub-satellite point lat
double Lon0 = gds.getDouble(GridDefRecord.LOP); // sub-satellite point lon
//int nx = gds.getInt(GridDefRecord.NX);
int ny = gds.getInt(GridDefRecord.NY);
in... |
public class class_name {
public static void clearThreadPool() {
for (ExecutorService pool:threadPool) {
pool.shutdown();
}
for (ExecutorService pool:threadPool) {
try {
pool.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
threadPo... | public class class_name {
public static void clearThreadPool() {
for (ExecutorService pool:threadPool) {
pool.shutdown(); // depends on control dependency: [for], data = [pool]
}
for (ExecutorService pool:threadPool) {
try {
pool.awaitTermination(10, TimeUnit.SECONDS); // depends on control dependen... |
public class class_name {
public Dialog dimAmount(float amount){
Window window = getWindow();
if(amount > 0f){
window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
WindowManager.LayoutParams lp = window.getAttributes();
lp.dimAmount = amount;
wind... | public class class_name {
public Dialog dimAmount(float amount){
Window window = getWindow();
if(amount > 0f){
window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); // depends on control dependency: [if], data = [none]
WindowManager.LayoutParams lp = window.getAttributes(... |
public class class_name {
public static void main(String[] args) {
java.util.Random r = new java.util.Random();
Bits bits = new Bits();
for (int i=0; i<125; i++) {
int k;
do {
k = r.nextInt(250);
} while (bits.isMember(k));
System.... | public class class_name {
public static void main(String[] args) {
java.util.Random r = new java.util.Random();
Bits bits = new Bits();
for (int i=0; i<125; i++) {
int k;
do {
k = r.nextInt(250);
} while (bits.isMember(k));
System.... |
public class class_name {
private void uninstallLayout(JRootPane root) {
if (savedOldLayout != null) {
root.setLayout(savedOldLayout);
savedOldLayout = null;
}
} } | public class class_name {
private void uninstallLayout(JRootPane root) {
if (savedOldLayout != null) {
root.setLayout(savedOldLayout); // depends on control dependency: [if], data = [(savedOldLayout]
savedOldLayout = null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public EClass getIfcStyleModel() {
if (ifcStyleModelEClass == null) {
ifcStyleModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(665);
}
return ifcStyleModelEClass;
} } | public class class_name {
@Override
public EClass getIfcStyleModel() {
if (ifcStyleModelEClass == null) {
ifcStyleModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(665);
// depends on control dependency: [if], data = [none]
}
return ifcStyleM... |
public class class_name {
@Override
public void replace(List<ApiType> list, String resourceVersion) {
lock.lock();
try {
Map<String, ApiType> newItems = new HashMap<>();
for (ApiType item : list) {
String key = keyFunc.apply(item);
newItems.put(key, item);
}
this.items... | public class class_name {
@Override
public void replace(List<ApiType> list, String resourceVersion) {
lock.lock();
try {
Map<String, ApiType> newItems = new HashMap<>();
for (ApiType item : list) {
String key = keyFunc.apply(item);
newItems.put(key, item); // depends on control de... |
public class class_name {
public Observable<Integer> deleteOrphanedEvents(String[] ids) {
return Observable.fromCallable(() -> {
SQLiteDatabase writable = dbHelper.getWritableDatabase();
if (ids.length > 0) {
int numberOfRows = writable.delete(DbOrphanedEvent.TABLE_NAME... | public class class_name {
public Observable<Integer> deleteOrphanedEvents(String[] ids) {
return Observable.fromCallable(() -> {
SQLiteDatabase writable = dbHelper.getWritableDatabase();
if (ids.length > 0) {
int numberOfRows = writable.delete(DbOrphanedEvent.TABLE_NAME... |
public class class_name {
private Account readAccountFromDescriptionNode(Element element)
throws Exception {
Account account = new Account();
// This is the hash
account.setId(element.getAttribute("RDF:about").trim());
account.setName(element.getAttribute("NS1:name").trim()... | public class class_name {
private Account readAccountFromDescriptionNode(Element element)
throws Exception {
Account account = new Account();
// This is the hash
account.setId(element.getAttribute("RDF:about").trim());
account.setName(element.getAttribute("NS1:name").trim()... |
public class class_name {
private void adaptWindowBackgroundAndInset() {
DialogRootView rootView = getRootView();
if (rootView != null) {
rootView.setWindowBackgroundAndInset(windowBackground, windowInsets);
}
} } | public class class_name {
private void adaptWindowBackgroundAndInset() {
DialogRootView rootView = getRootView();
if (rootView != null) {
rootView.setWindowBackgroundAndInset(windowBackground, windowInsets); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public double[] getVotesForInstance(Instance inst) {
if (m_weights == null) {
return new double[inst.numAttributes() + 1];
}
double[] result = new double[2];
double wx = dotProd(inst, m_weights, inst.classIndex());// * m_wScale;
... | public class class_name {
@Override
public double[] getVotesForInstance(Instance inst) {
if (m_weights == null) {
return new double[inst.numAttributes() + 1]; // depends on control dependency: [if], data = [none]
}
double[] result = new double[2];
double wx = dotProd(... |
public class class_name {
public Observable<ServiceResponse<Page<JobStreamInner>>> listByJobWithServiceResponseAsync(final String resourceGroupName, final String automationAccountName, final String jobId) {
return listByJobSinglePageAsync(resourceGroupName, automationAccountName, jobId)
.concatMap(... | public class class_name {
public Observable<ServiceResponse<Page<JobStreamInner>>> listByJobWithServiceResponseAsync(final String resourceGroupName, final String automationAccountName, final String jobId) {
return listByJobSinglePageAsync(resourceGroupName, automationAccountName, jobId)
.concatMap(... |
public class class_name {
protected SITransaction getTransaction() {
if (TRACE.isEntryEnabled()) {
final String methodName = "getTransaction";
SibTr.entry(this, TRACE, methodName);
SibTr.exit(this, TRACE, methodName, null);
}
return null;
} } | public class class_name {
protected SITransaction getTransaction() {
if (TRACE.isEntryEnabled()) {
final String methodName = "getTransaction";
SibTr.entry(this, TRACE, methodName); // depends on control dependency: [if], data = [none]
SibTr.exit(this, TRACE, methodName, nul... |
public class class_name {
public boolean containsNaN() {
for (int c = 0; c < this.size(); c++) {
if (s.isNaN(this.getValue(c))) {
return true;
}
}
return false;
} } | public class class_name {
public boolean containsNaN() {
for (int c = 0; c < this.size(); c++) {
if (s.isNaN(this.getValue(c))) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public void aggregateQueryStringParams(String additionalQueryString, boolean setQS)
{
// 321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"aggregateQueryStringParams", "entry qs -... | public class class_name {
public void aggregateQueryStringParams(String additionalQueryString, boolean setQS)
{
// 321485
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"aggregateQueryStringParams", "entry qs -... |
public class class_name {
public T extractFromHeader(String headerName, String variable) {
if (headerExtractor == null) {
headerExtractor = new MessageHeaderVariableExtractor();
getAction().getVariableExtractors().add(headerExtractor);
}
headerExtractor.getHead... | public class class_name {
public T extractFromHeader(String headerName, String variable) {
if (headerExtractor == null) {
headerExtractor = new MessageHeaderVariableExtractor(); // depends on control dependency: [if], data = [none]
getAction().getVariableExtractors().add(headerExtracto... |
public class class_name {
public synchronized static void close() throws IOException {
if (initialized) {
initialized = false;
reader = null;
if (terminal != null) {
try {
terminal.close();
} finally {
t... | public class class_name {
public synchronized static void close() throws IOException {
if (initialized) {
initialized = false;
reader = null;
if (terminal != null) {
try {
terminal.close(); // depends on control dependency: [try], data = [... |
public class class_name {
private static String numToString(int num, int width) {
String str = Integer.toString(num);
int len = str.length();
if (len >= width) {
return str.substring(len - width, len);
}
StringBuilder sb = new StringBuilder(width);
for (int i... | public class class_name {
private static String numToString(int num, int width) {
String str = Integer.toString(num);
int len = str.length();
if (len >= width) {
return str.substring(len - width, len); // depends on control dependency: [if], data = [(len]
}
StringBui... |
public class class_name {
@Override
public boolean hasNext() {
if (!isForward) {
currentRec = currentRec - pointerSize;
isForward = true;
}
return currentRec > 0 || blk.number() > 0;
} } | public class class_name {
@Override
public boolean hasNext() {
if (!isForward) {
currentRec = currentRec - pointerSize;
// depends on control dependency: [if], data = [none]
isForward = true;
// depends on control dependency: [if], data = [none]
}
return currentRec > 0 || blk.number() > 0;
} } |
public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WStyledText text = (WStyledText) component;
XmlStringBuilder xml = renderContext.getWriter();
String textString = text.getText();
if (textString != null && textString.length() > 0) ... | public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WStyledText text = (WStyledText) component;
XmlStringBuilder xml = renderContext.getWriter();
String textString = text.getText();
if (textString != null && textString.length() > 0) ... |
public class class_name {
@SuppressWarnings("unchecked")
public void filterTable(String search) {
m_container.removeAllContainerFilters();
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) {
m_container.addContainerFilter(
new Or(
new SimpleStrin... | public class class_name {
@SuppressWarnings("unchecked")
public void filterTable(String search) {
m_container.removeAllContainerFilters();
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) {
m_container.addContainerFilter(
new Or(
new SimpleStrin... |
public class class_name {
private void init(Symtab syms, boolean definitive) {
if (classes != null) return;
if (definitive) {
Assert.check(packages == null || packages == syms.packages);
packages = syms.packages;
Assert.check(classes == null || classes == syms.class... | public class class_name {
private void init(Symtab syms, boolean definitive) {
if (classes != null) return;
if (definitive) {
Assert.check(packages == null || packages == syms.packages); // depends on control dependency: [if], data = [none]
packages = syms.packages; // depends ... |
public class class_name {
public boolean contains(int partitionId) {
if (lowerID < upperID) { //"Proper" id range
return lowerID <= partitionId && upperID > partitionId;
} else { //Id range "wraps around"
return (lowerID <= partitionId && partitionId < idUpperBound) ||
... | public class class_name {
public boolean contains(int partitionId) {
if (lowerID < upperID) { //"Proper" id range
return lowerID <= partitionId && upperID > partitionId; // depends on control dependency: [if], data = [none]
} else { //Id range "wraps around"
return (lowerID <= p... |
public class class_name {
public int[] getReferenceNumbers() {
Iterator it = m_tunes.keySet().iterator();
int[] refNb = new int[m_tunes.size()];
int index = 0;
while (it.hasNext()) {
refNb[index] = (Integer) it.next();
index++;
}
return refNb;
} } | public class class_name {
public int[] getReferenceNumbers() {
Iterator it = m_tunes.keySet().iterator();
int[] refNb = new int[m_tunes.size()];
int index = 0;
while (it.hasNext()) {
refNb[index] = (Integer) it.next();
// depends on control dependency: [while], data = [none]
index++;
// depends on... |
public class class_name {
@Override
public EClass getIfcConnectedFaceSet() {
if (ifcConnectedFaceSetEClass == null) {
ifcConnectedFaceSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(120);
}
return ifcConnectedFaceSetEClass;
} } | public class class_name {
@Override
public EClass getIfcConnectedFaceSet() {
if (ifcConnectedFaceSetEClass == null) {
ifcConnectedFaceSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(120);
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
static <T> T loadService(Class<T> ofType) {
List<String> implClasses = loadServicesImplementations(ofType);
for (String implClass : implClasses) {
T result = attemptLoad(ofType, implClass);
if (result != null) {
if (LOG.isLoggable(Level.... | public class class_name {
static <T> T loadService(Class<T> ofType) {
List<String> implClasses = loadServicesImplementations(ofType);
for (String implClass : implClasses) {
T result = attemptLoad(ofType, implClass);
if (result != null) {
if (LOG.isLoggable(Level.... |
public class class_name {
static public ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset) throws IOException {
ThreddsDataFactory.Result result = null;
try {
result = new ThreddsDataFactory().openFeatureDataset(threddsDataset, null);
if (result.fatalError) {
System.... | public class class_name {
static public ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset) throws IOException {
ThreddsDataFactory.Result result = null;
try {
result = new ThreddsDataFactory().openFeatureDataset(threddsDataset, null);
if (result.fatalError) {
System.... |
public class class_name {
public static Transformer setOutputProperties(Transformer transformer, boolean omitXMLDeclaration, int indentAmount, String encoding){
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, omitXMLDeclaration ? "yes" : "no");
// indentation
if(indentAmount>0){... | public class class_name {
public static Transformer setOutputProperties(Transformer transformer, boolean omitXMLDeclaration, int indentAmount, String encoding){
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, omitXMLDeclaration ? "yes" : "no");
// indentation
if(indentAmount>0){... |
public class class_name {
private void reloadDescendants(QPath parentOld, QPath parent) throws RepositoryException
{
List<ItemImpl> items = itemsPool.getDescendats(parentOld);
for (ItemImpl item : items)
{
ItemData oldItemData = item.getData();
ItemData newItemData = updatePath... | public class class_name {
private void reloadDescendants(QPath parentOld, QPath parent) throws RepositoryException
{
List<ItemImpl> items = itemsPool.getDescendats(parentOld);
for (ItemImpl item : items)
{
ItemData oldItemData = item.getData();
ItemData newItemData = updatePath... |
public class class_name {
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mShapeBadgeItem != null) {
mShapeBadgeItem.draw(canvas);
}
} } | public class class_name {
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mShapeBadgeItem != null) {
mShapeBadgeItem.draw(canvas); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Deprecated
public static List<String> trim(List<String> values) {
List<String> trimmed = new ArrayList<>();
for (String value : values) {
trimmed.add(value.trim());
}
return trimmed;
} } | public class class_name {
@Deprecated
public static List<String> trim(List<String> values) {
List<String> trimmed = new ArrayList<>();
for (String value : values) {
trimmed.add(value.trim()); // depends on control dependency: [for], data = [value]
}
return trimmed;
}... |
public class class_name {
private Symbol addConstantDynamicOrInvokeDynamicReference(
final int tag, final String name, final String descriptor, final int bootstrapMethodIndex) {
int hashCode = hash(tag, name, descriptor, bootstrapMethodIndex);
Entry entry = get(hashCode);
while (entry != null) {
... | public class class_name {
private Symbol addConstantDynamicOrInvokeDynamicReference(
final int tag, final String name, final String descriptor, final int bootstrapMethodIndex) {
int hashCode = hash(tag, name, descriptor, bootstrapMethodIndex);
Entry entry = get(hashCode);
while (entry != null) {
... |
public class class_name {
public void commit(boolean force) {
if (checkSession()) {
return;
}
if (log.isDebugEnabled()) {
ToStringBuilder tsb = new ToStringBuilder(String.format("Committing transactional %s@%x",
sqlSession.getClass().getSimpleName(),... | public class class_name {
public void commit(boolean force) {
if (checkSession()) {
return; // depends on control dependency: [if], data = [none]
}
if (log.isDebugEnabled()) {
ToStringBuilder tsb = new ToStringBuilder(String.format("Committing transactional %s@%x",
... |
public class class_name {
public void log(ServiceReference sr, int level, String message, Throwable exception) {
switch (level) {
case LOG_DEBUG:
if (delegate.isDebugEnabled()) {
delegate.debug(createMessage(sr, message), exception);
}
break;
... | public class class_name {
public void log(ServiceReference sr, int level, String message, Throwable exception) {
switch (level) {
case LOG_DEBUG:
if (delegate.isDebugEnabled()) {
delegate.debug(createMessage(sr, message), exception); // depends on control dependency: [if], ... |
public class class_name {
public static final String addQuotes(String szTableNames, char charStart, char charEnd)
{
String strFileName = szTableNames;
if (charStart == -1)
charStart = DBConstants.SQL_START_QUOTE;
if (charEnd == -1)
charEnd = DBConstants.SQL_END_QUOTE... | public class class_name {
public static final String addQuotes(String szTableNames, char charStart, char charEnd)
{
String strFileName = szTableNames;
if (charStart == -1)
charStart = DBConstants.SQL_START_QUOTE;
if (charEnd == -1)
charEnd = DBConstants.SQL_END_QUOTE... |
public class class_name {
public Float getFloat(final String key) {
Number number = (Number) map.get(key);
if (number == null) {
return null;
}
if (number instanceof Float) {
return (Float) number;
}
return number.floatValue();
} } | public class class_name {
public Float getFloat(final String key) {
Number number = (Number) map.get(key);
if (number == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (number instanceof Float) {
return (Float) number; // depends on control dependency: [if], data = [none... |
public class class_name {
protected Message getSendMessage( String name )
{
PlainOldFixture plainOldFixture = new PlainOldFixture( target );
if ( plainOldFixture.canSend( name ) )
{
return plainOldFixture.send( name );
}
return getMessage(name, false, true);
} } | public class class_name {
protected Message getSendMessage( String name )
{
PlainOldFixture plainOldFixture = new PlainOldFixture( target );
if ( plainOldFixture.canSend( name ) )
{
return plainOldFixture.send( name ); // depends on control dependency: [if], data = [none]
}
return getMessage(n... |
public class class_name {
@Provides
@Singleton
@Named(GuiceProperties.REST_SERVICES_PREFIX)
public String getRestServicesPrefix(ServletContext context)
{
String restPath = context.getInitParameter(RESTEASY_MAPPING_PREFIX);
if (restPath == null || restPath.isEmpty() || restPath.equals("/"))
{
return "";
... | public class class_name {
@Provides
@Singleton
@Named(GuiceProperties.REST_SERVICES_PREFIX)
public String getRestServicesPrefix(ServletContext context)
{
String restPath = context.getInitParameter(RESTEASY_MAPPING_PREFIX);
if (restPath == null || restPath.isEmpty() || restPath.equals("/"))
{
return ""; /... |
public class class_name {
@Override
public void persistJoinTable(JoinTableData joinTableData)
{
String joinTableName = joinTableData.getJoinTableName();
String joinColumnName = joinTableData.getJoinColumnName();
String invJoinColumnName = joinTableData.getInverseJoinColumnName();
... | public class class_name {
@Override
public void persistJoinTable(JoinTableData joinTableData)
{
String joinTableName = joinTableData.getJoinTableName();
String joinColumnName = joinTableData.getJoinColumnName();
String invJoinColumnName = joinTableData.getInverseJoinColumnName();
... |
public class class_name {
public static int decodeBitWidth(int n)
{
if (n >= ONE.ordinal() && n <= TWENTY_FOUR.ordinal()) {
return n + 1;
}
else if (n == TWENTY_SIX.ordinal()) {
return 26;
}
else if (n == TWENTY_EIGHT.ordinal()) {
return 2... | public class class_name {
public static int decodeBitWidth(int n)
{
if (n >= ONE.ordinal() && n <= TWENTY_FOUR.ordinal()) {
return n + 1; // depends on control dependency: [if], data = [none]
}
else if (n == TWENTY_SIX.ordinal()) {
return 26; // depends on control de... |
public class class_name {
private ResponseWrapper fetchContentFromCacheIfAvailable(
final RenderRequest req, final String serviceUrl) {
ResponseWrapper rslt = null; // default
final List<CacheTuple> cacheKeysToTry = new ArrayList<>();
// Don't use private-scope caching for anonymo... | public class class_name {
private ResponseWrapper fetchContentFromCacheIfAvailable(
final RenderRequest req, final String serviceUrl) {
ResponseWrapper rslt = null; // default
final List<CacheTuple> cacheKeysToTry = new ArrayList<>();
// Don't use private-scope caching for anonymo... |
public class class_name {
private void initializeFloatingActionButton() {
floatingActionButton = findViewById(R.id.floating_action_button);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
floatingActionButton.show();
floatingActionButton.setOnClickListener(createFl... | public class class_name {
private void initializeFloatingActionButton() {
floatingActionButton = findViewById(R.id.floating_action_button);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
floatingActionButton.show(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static void init(Map configProperties){
if(configProperties != null && configProperties.size() > 0){
ElasticSearchPropertiesFilePlugin.configProperties = configProperties;
initType = 1;
}
} } | public class class_name {
public static void init(Map configProperties){
if(configProperties != null && configProperties.size() > 0){
ElasticSearchPropertiesFilePlugin.configProperties = configProperties; // depends on control dependency: [if], data = [none]
initType = 1; // depends on control dependency: [if]... |
public class class_name {
@Override
public void tellThreadsToStop() {
super.tellThreadsToStop();
for (DynamicThread thread : poolThreads) {
stopThread(thread.getThreadName(), true);
}
} } | public class class_name {
@Override
public void tellThreadsToStop() {
super.tellThreadsToStop();
for (DynamicThread thread : poolThreads) {
stopThread(thread.getThreadName(), true); // depends on control dependency: [for], data = [thread]
}
} } |
public class class_name {
public final void close(final int retryCloseTimeoutMs, final Consumer<Thread> closeFailAction)
{
isRunning = false;
final Thread thread = this.thread.getAndSet(TOMBSTONE);
if (null == thread)
{
try
{
agent.onClose();... | public class class_name {
public final void close(final int retryCloseTimeoutMs, final Consumer<Thread> closeFailAction)
{
isRunning = false;
final Thread thread = this.thread.getAndSet(TOMBSTONE);
if (null == thread)
{
try
{
agent.onClose();... |
public class class_name {
public static ASN1OctetString getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1OctetString)
{
return (ASN1OctetString)obj;
}
if (obj instanceof ASN1TaggedObject)
{
return getInstance(((ASN1... | public class class_name {
public static ASN1OctetString getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1OctetString)
{
return (ASN1OctetString)obj;
// depends on control dependency: [if], data = [none]
}
if (obj instanceof ASN1TaggedObj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.