code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void shutdown() {
ClassLoader origClassLoader = Thread.currentThread().getContextClassLoader();
try {
ClassLoader orientClassLoader = OIndexes.class.getClassLoader();
Thread.currentThread().setContextClassLoader(orientClassLoader);
gr... | public class class_name {
public void shutdown() {
ClassLoader origClassLoader = Thread.currentThread().getContextClassLoader();
try {
ClassLoader orientClassLoader = OIndexes.class.getClassLoader();
Thread.currentThread().setContextClassLoader(orientClassLoader); // depends on ... |
public class class_name {
private TransactionException labelTaken(SchemaConcept schemaConcept) {
if (Schema.MetaSchema.isMetaLabel(schemaConcept.label())) {
return TransactionException.reservedLabel(schemaConcept.label());
}
return PropertyNotUniqueException.cannotCreateProperty(sch... | public class class_name {
private TransactionException labelTaken(SchemaConcept schemaConcept) {
if (Schema.MetaSchema.isMetaLabel(schemaConcept.label())) {
return TransactionException.reservedLabel(schemaConcept.label()); // depends on control dependency: [if], data = [none]
}
retu... |
public class class_name {
public static Class<?> loadClass(String className) throws ClassNotFoundException {
try {
return Thread.currentThread().getContextClassLoader().loadClass(className);
} catch (ClassNotFoundException e) {
try {
return Class.forName(classNam... | public class class_name {
public static Class<?> loadClass(String className) throws ClassNotFoundException {
try {
return Thread.currentThread().getContextClassLoader().loadClass(className);
} catch (ClassNotFoundException e) {
try {
return Class.forName(classNam... |
public class class_name {
protected void closeLocalConnection(Connection connection) {
try {
if (connection != null && !connection.isClosed()) {
connection.close();
}
} catch (SQLException e) {
if (logger.isTraceEnabled()) {
logger.trace(e.getMessage());
}
}
} } | public class class_name {
protected void closeLocalConnection(Connection connection) {
try {
if (connection != null && !connection.isClosed()) {
connection.close(); // depends on control dependency: [if], data = [none]
}
} catch (SQLException e) {
if (logger.isTraceEnabled()) {
... |
public class class_name {
public int compareToPositional(ResidueNumber other) {
// sequence number
if (seqNum != null && other.seqNum != null) {
if (!seqNum.equals(other.seqNum)) return seqNum.compareTo(other.seqNum);
}
if (seqNum != null && other.seqNum == null) {
return 1;
} else if (seqNum == null &... | public class class_name {
public int compareToPositional(ResidueNumber other) {
// sequence number
if (seqNum != null && other.seqNum != null) {
if (!seqNum.equals(other.seqNum)) return seqNum.compareTo(other.seqNum);
}
if (seqNum != null && other.seqNum == null) {
return 1; // depends on control depende... |
public class class_name {
@Override
public void clear() throws IOException {
boolean rollback = false;
final OAtomicOperation atomicOperation = startAtomicOperation(true);
try {
final Lock lock = FILE_LOCK_MANAGER.acquireExclusiveLock(fileId);
try {
final Queue<OBonsaiBucketPointer> s... | public class class_name {
@Override
public void clear() throws IOException {
boolean rollback = false;
final OAtomicOperation atomicOperation = startAtomicOperation(true);
try {
final Lock lock = FILE_LOCK_MANAGER.acquireExclusiveLock(fileId);
try {
final Queue<OBonsaiBucketPointer> s... |
public class class_name {
public void setVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null;
return;
}
this.vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList<String>(v... | public class class_name {
public void setVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
public void close() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "close");
}
synchronized (closeSync) {
if (closeCalled) {
return;
}
closeCalled = true;
... | public class class_name {
public void close() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "close"); // depends on control dependency: [if], data = [none]
}
synchronized (closeSync) {
if (closeCalled) {
return; // dep... |
public class class_name {
public static void main(final String[] args) {
/*-
* use one of the pre-defined amis
* (all amis are pre-defined in aws-mock-default.properties or aws-mock.properties)
*/
String imageId = "ami-12345678";
final int runCount = 10;
List... | public class class_name {
public static void main(final String[] args) {
/*-
* use one of the pre-defined amis
* (all amis are pre-defined in aws-mock-default.properties or aws-mock.properties)
*/
String imageId = "ami-12345678";
final int runCount = 10;
List... |
public class class_name {
public DescribeReplicationSubnetGroupsResult withReplicationSubnetGroups(ReplicationSubnetGroup... replicationSubnetGroups) {
if (this.replicationSubnetGroups == null) {
setReplicationSubnetGroups(new java.util.ArrayList<ReplicationSubnetGroup>(replicationSubnetGroups.leng... | public class class_name {
public DescribeReplicationSubnetGroupsResult withReplicationSubnetGroups(ReplicationSubnetGroup... replicationSubnetGroups) {
if (this.replicationSubnetGroups == null) {
setReplicationSubnetGroups(new java.util.ArrayList<ReplicationSubnetGroup>(replicationSubnetGroups.leng... |
public class class_name {
static Optional<DistributerException> checkCode(Code code, String format, Object...args) {
if (code != Code.OK) {
KeeperException kex = KeeperException.create(code);
return Optional.of(loggedDistributerException(kex, format, args));
} else {
... | public class class_name {
static Optional<DistributerException> checkCode(Code code, String format, Object...args) {
if (code != Code.OK) {
KeeperException kex = KeeperException.create(code);
return Optional.of(loggedDistributerException(kex, format, args)); // depends on control depend... |
public class class_name {
private String getPath(CmsObject cms, HttpSession session) {
CmsQuickLaunchLocationCache locationCache = CmsQuickLaunchLocationCache.getLocationCache(session);
String page = locationCache.getPageEditorLocation(cms.getRequestContext().getSiteRoot());
if (page == null) ... | public class class_name {
private String getPath(CmsObject cms, HttpSession session) {
CmsQuickLaunchLocationCache locationCache = CmsQuickLaunchLocationCache.getLocationCache(session);
String page = locationCache.getPageEditorLocation(cms.getRequestContext().getSiteRoot());
if (page == null) ... |
public class class_name {
public static void close() {
if (storedClient == null) {
return;
}
storedClient.closeConnection();
storedClient = null;
// Allow the client to be auto initialized on the next use.
autoInitAttempted.set(false);
} } | public class class_name {
public static void close() {
if (storedClient == null) {
return; // depends on control dependency: [if], data = [none]
}
storedClient.closeConnection();
storedClient = null;
// Allow the client to be auto initialized on the next use.
... |
public class class_name {
public void removeAllBusHalts() {
for (final BusItineraryHalt bushalt : this.invalidHalts) {
bushalt.setContainer(null);
bushalt.setRoadSegmentIndex(-1);
bushalt.setPositionOnSegment(Float.NaN);
bushalt.checkPrimitiveValidity();
}
final BusItineraryHalt[] halts = new BusIt... | public class class_name {
public void removeAllBusHalts() {
for (final BusItineraryHalt bushalt : this.invalidHalts) {
bushalt.setContainer(null); // depends on control dependency: [for], data = [bushalt]
bushalt.setRoadSegmentIndex(-1); // depends on control dependency: [for], data = [bushalt]
bushalt.set... |
public class class_name {
@FFDCIgnore(Exception.class)
protected void initSigningKey(BuilderImpl jwtBuilder, JwtConfig jwtConfig) throws JwtTokenException {
String keyType = Constants.SIGNING_KEY_X509;
try {
if (jwtConfig.isJwkEnabled() && SIGNATURE_ALG_RS256.equals(signatureAlgorithm))... | public class class_name {
@FFDCIgnore(Exception.class)
protected void initSigningKey(BuilderImpl jwtBuilder, JwtConfig jwtConfig) throws JwtTokenException {
String keyType = Constants.SIGNING_KEY_X509;
try {
if (jwtConfig.isJwkEnabled() && SIGNATURE_ALG_RS256.equals(signatureAlgorithm))... |
public class class_name {
protected Resource<?> generateNavigation(final String targetDir)
throws IOException
{
WebResourcesFacet web = this.project.getFacet(WebResourcesFacet.class);
HtmlTag unorderedList = new HtmlTag("ul");
ResourceFilter filter = new ResourceFilter()
{
... | public class class_name {
protected Resource<?> generateNavigation(final String targetDir)
throws IOException
{
WebResourcesFacet web = this.project.getFacet(WebResourcesFacet.class);
HtmlTag unorderedList = new HtmlTag("ul");
ResourceFilter filter = new ResourceFilter()
{
... |
public class class_name {
public List<TagFileType<TldTaglibType<T>>> getAllTagFile()
{
List<TagFileType<TldTaglibType<T>>> list = new ArrayList<TagFileType<TldTaglibType<T>>>();
List<Node> nodeList = childNode.get("tag-file");
for(Node node: nodeList)
{
TagFileType<TldTaglibType<T>>... | public class class_name {
public List<TagFileType<TldTaglibType<T>>> getAllTagFile()
{
List<TagFileType<TldTaglibType<T>>> list = new ArrayList<TagFileType<TldTaglibType<T>>>();
List<Node> nodeList = childNode.get("tag-file");
for(Node node: nodeList)
{
TagFileType<TldTaglibType<T>>... |
public class class_name {
public static byte[] s2n(String string) {
if (string == null) {
return null;
}
byte[] stringBytes = string.getBytes(UTF8);
byte[] allBytes = new byte[stringBytes.length + 1];
System.arraycopy(stringBytes, 0, allBytes, 0, stringBytes.length);... | public class class_name {
public static byte[] s2n(String string) {
if (string == null) {
return null; // depends on control dependency: [if], data = [none]
}
byte[] stringBytes = string.getBytes(UTF8);
byte[] allBytes = new byte[stringBytes.length + 1];
System.array... |
public class class_name {
public void hubHeartbeat(UpdateServerHeartbeat updateServer,
UpdateRackHeartbeat updateRack,
UpdatePodSystem updatePod,
long sourceTime)
{
RackHeartbeat rack = getCluster().findRack(updateRack.getId());
... | public class class_name {
public void hubHeartbeat(UpdateServerHeartbeat updateServer,
UpdateRackHeartbeat updateRack,
UpdatePodSystem updatePod,
long sourceTime)
{
RackHeartbeat rack = getCluster().findRack(updateRack.getId());
... |
public class class_name {
@Benchmark
public ExampleClass benchmarkCglib() {
Enhancer enhancer = new Enhancer();
enhancer.setUseCache(false);
enhancer.setUseFactory(false);
enhancer.setInterceptDuringConstruction(true);
enhancer.setClassLoader(newClassLoader());
enhan... | public class class_name {
@Benchmark
public ExampleClass benchmarkCglib() {
Enhancer enhancer = new Enhancer();
enhancer.setUseCache(false);
enhancer.setUseFactory(false);
enhancer.setInterceptDuringConstruction(true);
enhancer.setClassLoader(newClassLoader());
enhan... |
public class class_name {
public void setIps(java.util.Collection<String> ips) {
if (ips == null) {
this.ips = null;
return;
}
this.ips = new com.amazonaws.internal.SdkInternalList<String>(ips);
} } | public class class_name {
public void setIps(java.util.Collection<String> ips) {
if (ips == null) {
this.ips = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.ips = new com.amazonaws.intern... |
public class class_name {
void setEndPoint(StandardRoadConnection desiredConnection) {
final StandardRoadConnection oldPoint = getEndPoint(StandardRoadConnection.class);
if (oldPoint != null) {
oldPoint.removeConnectedSegment(this, false);
}
this.lastConnection = desiredConnection;
if (desiredConnection !... | public class class_name {
void setEndPoint(StandardRoadConnection desiredConnection) {
final StandardRoadConnection oldPoint = getEndPoint(StandardRoadConnection.class);
if (oldPoint != null) {
oldPoint.removeConnectedSegment(this, false); // depends on control dependency: [if], data = [none]
}
this.lastCon... |
public class class_name {
public static String encode(Serializable o) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
ObjectOutputStream oos = new ObjectOutputStream(bos);
try {
oos.writeO... | public class class_name {
public static String encode(Serializable o) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
ObjectOutputStream oos = new ObjectOutputStream(bos);
try {
oos.writeO... |
public class class_name {
public void up(MessageBatch batch) {
for(Message msg: batch) {
if(msg.isFlagSet(Message.Flag.NO_TOTAL_ORDER) || msg.isFlagSet(Message.Flag.OOB) || msg.getHeader(id) == null)
continue;
batch.remove(msg);
// simplistic implementation
... | public class class_name {
public void up(MessageBatch batch) {
for(Message msg: batch) {
if(msg.isFlagSet(Message.Flag.NO_TOTAL_ORDER) || msg.isFlagSet(Message.Flag.OOB) || msg.getHeader(id) == null)
continue;
batch.remove(msg); // depends on control dependency: [for], d... |
public class class_name {
public void marshall(ListTagsForCertificateRequest listTagsForCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (listTagsForCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListTagsForCertificateRequest listTagsForCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (listTagsForCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static void computeOBBCenterAxisExtents(
Iterable<? extends Point3D> points,
Vector3f R, Vector3f S, Vector3f T, Point3f center,
double[] extents) {
assert (points != null);
assert (center != null);
assert (extents != null && extents.length >= 3);
Vector3f vecNull = n... | public class class_name {
public static void computeOBBCenterAxisExtents(
Iterable<? extends Point3D> points,
Vector3f R, Vector3f S, Vector3f T, Point3f center,
double[] extents) {
assert (points != null);
assert (center != null);
assert (extents != null && extents.length >= 3);
Vector3f vecNull = n... |
public class class_name {
public static MethodInvoker getMethodInvokerForInterface(Class<?> cls,
String methodName, Object object, Class<?>... paramTypes) {
if (cls.isAssignableFrom(object.getClass())) {
return MethodInvokerUtils.getMethodInvokerByName(object, methodName, true,
paramTypes);
}
else {
... | public class class_name {
public static MethodInvoker getMethodInvokerForInterface(Class<?> cls,
String methodName, Object object, Class<?>... paramTypes) {
if (cls.isAssignableFrom(object.getClass())) {
return MethodInvokerUtils.getMethodInvokerByName(object, methodName, true,
paramTypes); // depends on... |
public class class_name {
private static int hexToInt(char c) {
if ('0' <= c && c <= '9') {
return c - '0';
} else if ('a' <= c && c <= 'f') {
return 10 + (c - 'a');
} else if ('A' <= c && c <= 'F') {
return 10 + (c - 'A');
} else {
return... | public class class_name {
private static int hexToInt(char c) {
if ('0' <= c && c <= '9') {
return c - '0'; // depends on control dependency: [if], data = [none]
} else if ('a' <= c && c <= 'f') {
return 10 + (c - 'a'); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static void getXMLCMCLockAccessTimeout(long[] accessTimeouts, Method[] ejbMethods, Session sessionBean)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... | public class class_name {
public static void getXMLCMCLockAccessTimeout(long[] accessTimeouts, Method[] ejbMethods, Session sessionBean)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... |
public class class_name {
protected BufferedImage create_TICKMARKS_Image(final int WIDTH, final double FREE_AREA_ANGLE,
final double OFFSET, final double MIN_VALUE,
final double MAX_VALUE... | public class class_name {
protected BufferedImage create_TICKMARKS_Image(final int WIDTH, final double FREE_AREA_ANGLE,
final double OFFSET, final double MIN_VALUE,
final double MAX_VALUE... |
public class class_name {
private final void evictIfNeeded() {
if ( list.size() > evictSize ) {
final List<CacheEntry<KEY, VALUE>> killList = list.sortAndReturnPurgeList( 0.1f );
for ( CacheEntry<KEY, VALUE> cacheEntry : killList ) {
map.remove( cacheEntry.key );
... | public class class_name {
private final void evictIfNeeded() {
if ( list.size() > evictSize ) {
final List<CacheEntry<KEY, VALUE>> killList = list.sortAndReturnPurgeList( 0.1f );
for ( CacheEntry<KEY, VALUE> cacheEntry : killList ) {
map.remove( cacheEntry.key ); // de... |
public class class_name {
protected Properties initDefaultOptions() {
Properties defaultValues = new Properties();
defaultValues.putAll(defaults);
// See if there's an aggregator.properties in the class loader's root
ClassLoader cl = OptionsImpl.class.getClassLoader();
URL url = cl.getResource(getProp... | public class class_name {
protected Properties initDefaultOptions() {
Properties defaultValues = new Properties();
defaultValues.putAll(defaults);
// See if there's an aggregator.properties in the class loader's root
ClassLoader cl = OptionsImpl.class.getClassLoader();
URL url = cl.getResource(getProp... |
public class class_name {
@Override
public InputStream getResourceAsStream(String name) {
byte[] b = null;
try {
Asset resource = AssetCache.getAsset(mdwPackage.getName() + "/" + name);
if (resource != null)
b = resource.getRawContent();
if (b == ... | public class class_name {
@Override
public InputStream getResourceAsStream(String name) {
byte[] b = null;
try {
Asset resource = AssetCache.getAsset(mdwPackage.getName() + "/" + name);
if (resource != null)
b = resource.getRawContent();
if (b == ... |
public class class_name {
private void reconfigureAllConnectionsLocked() {
if (mAvailablePrimaryConnection != null) {
try {
mAvailablePrimaryConnection.reconfigure(mConfiguration); // might throw
} catch (RuntimeException ex) {
Log.e(TAG, "Failed to recon... | public class class_name {
private void reconfigureAllConnectionsLocked() {
if (mAvailablePrimaryConnection != null) {
try {
mAvailablePrimaryConnection.reconfigure(mConfiguration); // might throw // depends on control dependency: [try], data = [none]
} catch (RuntimeExce... |
public class class_name {
public static void setObjectToReadyOnly(Object target, SessionFactory sessionFactory) {
Object resource = TransactionSynchronizationManager.getResource(sessionFactory);
if(resource != null) {
Session session = sessionFactory.getCurrentSession();
if (can... | public class class_name {
public static void setObjectToReadyOnly(Object target, SessionFactory sessionFactory) {
Object resource = TransactionSynchronizationManager.getResource(sessionFactory);
if(resource != null) {
Session session = sessionFactory.getCurrentSession();
if (can... |
public class class_name {
private List<PROCLUSCluster> finalAssignment(List<Pair<double[], long[]>> dimensions, Relation<V> database) {
Map<Integer, ModifiableDBIDs> clusterIDs = new HashMap<>();
for(int i = 0; i < dimensions.size(); i++) {
clusterIDs.put(i, DBIDUtil.newHashSet());
}
for(DBIDIte... | public class class_name {
private List<PROCLUSCluster> finalAssignment(List<Pair<double[], long[]>> dimensions, Relation<V> database) {
Map<Integer, ModifiableDBIDs> clusterIDs = new HashMap<>();
for(int i = 0; i < dimensions.size(); i++) {
clusterIDs.put(i, DBIDUtil.newHashSet()); // depends on control ... |
public class class_name {
public static int hash(Object key[], FieldType fieldType[]) {
int hash = 0;
for (int i = 0; i < key.length; i++) {
hash *= 31;
hash ^= hash(key[i], fieldType[i]);
}
return hash;
} } | public class class_name {
public static int hash(Object key[], FieldType fieldType[]) {
int hash = 0;
for (int i = 0; i < key.length; i++) {
hash *= 31; // depends on control dependency: [for], data = [none]
hash ^= hash(key[i], fieldType[i]); // depends on control dependency: ... |
public class class_name {
private void setOfflinePresences() {
Presence packetUnavailable;
for (String user : presenceMap.keySet()) {
Map<String, Presence> resources = presenceMap.get(user);
if (resources != null) {
for (String resource : resources.keySet()) {
... | public class class_name {
private void setOfflinePresences() {
Presence packetUnavailable;
for (String user : presenceMap.keySet()) {
Map<String, Presence> resources = presenceMap.get(user);
if (resources != null) {
for (String resource : resources.keySet()) {
... |
public class class_name {
public void setContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions) {
if (containerDefinitions == null) {
this.containerDefinitions = null;
return;
}
this.containerDefinitions = new com.amazonaws.internal.SdkInte... | public class class_name {
public void setContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions) {
if (containerDefinitions == null) {
this.containerDefinitions = null; // depends on control dependency: [if], data = [none]
return; // depends on control depen... |
public class class_name {
public static BoxResourceIterable<Info> getAllFileCollaborations(final BoxAPIConnection api, String fileID,
int pageSize, String... fields) {
QueryStringBuilder builder = new QueryStringBuilder();
if (f... | public class class_name {
public static BoxResourceIterable<Info> getAllFileCollaborations(final BoxAPIConnection api, String fileID,
int pageSize, String... fields) {
QueryStringBuilder builder = new QueryStringBuilder();
if (f... |
public class class_name {
@Override
public Atom getAtom(int position) {
if ((position < 0)|| ( position >= atoms.size())) {
//throw new StructureException("No atom found at position "+position);
return null;
}
return atoms.get(position);
} } | public class class_name {
@Override
public Atom getAtom(int position) {
if ((position < 0)|| ( position >= atoms.size())) {
//throw new StructureException("No atom found at position "+position);
return null; // depends on control dependency: [if], data = [none]
}
return atoms.get(position);
} } |
public class class_name {
public final EObject ruleRichString() throws RecognitionException {
EObject current = null;
EObject lv_expressions_1_0 = null;
EObject lv_expressions_2_0 = null;
EObject lv_expressions_3_0 = null;
EObject lv_expressions_4_0 = null;
EObject ... | public class class_name {
public final EObject ruleRichString() throws RecognitionException {
EObject current = null;
EObject lv_expressions_1_0 = null;
EObject lv_expressions_2_0 = null;
EObject lv_expressions_3_0 = null;
EObject lv_expressions_4_0 = null;
EObject ... |
public class class_name {
private String spaces(int nb) {
StringBuilder sb = new StringBuilder();
for( int i=0; i<nb; i++ ) {
sb.append( ' ' );
}
return sb.toString();
} } | public class class_name {
private String spaces(int nb) {
StringBuilder sb = new StringBuilder();
for( int i=0; i<nb; i++ ) {
sb.append( ' ' ); // depends on control dependency: [for], data = [none]
}
return sb.toString();
} } |
public class class_name {
protected static Object convertBasicValue(String value, Class<?> type) {
if (type == null) {
throw new IllegalArgumentException("Type cannot be null");
}
if (String.class.equals(type)) {
return value;
}
if (value == nu... | public class class_name {
protected static Object convertBasicValue(String value, Class<?> type) {
if (type == null) {
throw new IllegalArgumentException("Type cannot be null");
}
if (String.class.equals(type)) {
return value;
// depends on control dependency: [i... |
public class class_name {
String[] split(String line, int assertLen, String usage) {
String[] ret = split(line);
if (ret.length != assertLen) {
error(usage);
return null;
}
return ret;
} } | public class class_name {
String[] split(String line, int assertLen, String usage) {
String[] ret = split(line);
if (ret.length != assertLen) {
error(usage); // depends on control dependency: [if], data = [none]
return null; // depends on control dependency: [if], data = [none]
}
return r... |
public class class_name {
public Set<Node> find(String host) {
Set<Node> resultSet = new HashSet<Node>();
if (host != null) {
for (Node node : socketToNodeMap.values()) {
if (host.equals(node.getHost())) {
resultSet.add(node);
}
}
}
return resultSet;
} } | public class class_name {
public Set<Node> find(String host) {
Set<Node> resultSet = new HashSet<Node>();
if (host != null) {
for (Node node : socketToNodeMap.values()) {
if (host.equals(node.getHost())) {
resultSet.add(node); // depends on control dependency: [if], data = [none]
}
}
}
ret... |
public class class_name {
@Override
public void prepare(final AbstractSQLInsertUpdate<?> _insertUpdate,
final Attribute _attribute,
final Object... _values)
throws SQLException
{
if (_attribute.getSqlColNames().size() == 3) {
checkSQL... | public class class_name {
@Override
public void prepare(final AbstractSQLInsertUpdate<?> _insertUpdate,
final Attribute _attribute,
final Object... _values)
throws SQLException
{
if (_attribute.getSqlColNames().size() == 3) {
checkSQL... |
public class class_name {
public int nextSetBit(int fromIndex) {
if(fromIndex < 0)
throw new IndexOutOfBoundsException("fromIndex: " + fromIndex);
if(fromIndex >= size)
return -1;
int u=wordIndex(fromIndex);
long word=words[u] & (WORD_MASK << fromIndex);
... | public class class_name {
public int nextSetBit(int fromIndex) {
if(fromIndex < 0)
throw new IndexOutOfBoundsException("fromIndex: " + fromIndex);
if(fromIndex >= size)
return -1;
int u=wordIndex(fromIndex);
long word=words[u] & (WORD_MASK << fromIndex);
... |
public class class_name {
private void readRelationships()
{
for (MapRow row : getTable("CONTAB"))
{
Task task1 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_1"));
Task task2 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_2"));
if (task1 != null && task... | public class class_name {
private void readRelationships()
{
for (MapRow row : getTable("CONTAB"))
{
Task task1 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_1"));
Task task2 = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID_2"));
if (task1 != null && task... |
public class class_name {
protected synchronized void unsetPermission(ServiceReference<JavaPermissionsConfiguration> permission) {
permissions.removeReference(permission);
if (wsjarUrlStreamHandlerAvailable) {
clearPermissions();
initializePermissions();
}
} } | public class class_name {
protected synchronized void unsetPermission(ServiceReference<JavaPermissionsConfiguration> permission) {
permissions.removeReference(permission);
if (wsjarUrlStreamHandlerAvailable) {
clearPermissions(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void addFilesToArchive(ZipArchiver archiver, File sourceDir, File packageXml) throws Exception
{
Collection<String> documentNames;
getLog().info(String.format("Using the existing package.xml descriptor at [%s]", packageXml.getPath()));
try {
doc... | public class class_name {
private void addFilesToArchive(ZipArchiver archiver, File sourceDir, File packageXml) throws Exception
{
Collection<String> documentNames;
getLog().info(String.format("Using the existing package.xml descriptor at [%s]", packageXml.getPath()));
try {
doc... |
public class class_name {
private Map<String, Object> sortColumns(Map<String, Object> next) {
Map<String, Object> sortedColumns = new LinkedHashMap<>();
if ( this.columns != null ) {
for ( String column : this.columns ) {
sortedColumns.put( column, next.get( column ) );
}
}
return sortedColumns;
} } | public class class_name {
private Map<String, Object> sortColumns(Map<String, Object> next) {
Map<String, Object> sortedColumns = new LinkedHashMap<>();
if ( this.columns != null ) {
for ( String column : this.columns ) {
sortedColumns.put( column, next.get( column ) ); // depends on control dependency: [fo... |
public class class_name {
public final void register(final TimeZone timezone, boolean update) {
if (update) {
try {
// load any available updates for the timezone..
timezones.put(timezone.getID(), new TimeZone(timeZoneLoader.loadVTimeZone(timezone.getID())));
... | public class class_name {
public final void register(final TimeZone timezone, boolean update) {
if (update) {
try {
// load any available updates for the timezone..
timezones.put(timezone.getID(), new TimeZone(timeZoneLoader.loadVTimeZone(timezone.getID()))); // depe... |
public class class_name {
protected void addOptions(final ParserData parserData, final IOptionsNode node, final String[] vars, final int startPos,
final String originalInput, int lineNumber) throws ParsingException {
// Process each variable in vars starting from the start position
for (int... | public class class_name {
protected void addOptions(final ParserData parserData, final IOptionsNode node, final String[] vars, final int startPos,
final String originalInput, int lineNumber) throws ParsingException {
// Process each variable in vars starting from the start position
for (int... |
public class class_name {
public void clear()
{
for (int i = 0; i < values.length; i++) {
keys[i] = DEAD_KEY;
flags[i] = 0;
values[i] = null;
}
size = 0;
} } | public class class_name {
public void clear()
{
for (int i = 0; i < values.length; i++) {
keys[i] = DEAD_KEY; // depends on control dependency: [for], data = [i]
flags[i] = 0; // depends on control dependency: [for], data = [i]
values[i] = null; // depends on control dependency: [for], data = [... |
public class class_name {
void changeState(String propertyName, Object newValue) {
try {
ObjectUtils.setField(this, getFieldName(propertyName), newValue);
}
catch (IllegalArgumentException e) {
throw new PropertyNotFoundException(String.format(
"The property (%1$s) corresponding to fiel... | public class class_name {
void changeState(String propertyName, Object newValue) {
try {
ObjectUtils.setField(this, getFieldName(propertyName), newValue); // depends on control dependency: [try], data = [none]
}
catch (IllegalArgumentException e) {
throw new PropertyNotFoundException(String.for... |
public class class_name {
public static int getPosition(Term subTerm, Term term) {
int startingIndex = -1;
int j = 0;
for(int i=0; i<term.getWords().size(); i++) {
if(term.getWords().get(i).equals(subTerm.getWords().get(j))) {
j++;
if(startingIndex == -1)
startingIndex = i;
} else {
start... | public class class_name {
public static int getPosition(Term subTerm, Term term) {
int startingIndex = -1;
int j = 0;
for(int i=0; i<term.getWords().size(); i++) {
if(term.getWords().get(i).equals(subTerm.getWords().get(j))) {
j++; // depends on control dependency: [if], data = [none]
if(startingIndex... |
public class class_name {
private static String getSetterName(Method m) {
String name = m.getName();
if (name.startsWith("set") && (name.length() >= 4)
&& m.getReturnType().equals(void.class)
&& (m.getParameterTypes().length == 1)
) {
return Character... | public class class_name {
private static String getSetterName(Method m) {
String name = m.getName();
if (name.startsWith("set") && (name.length() >= 4)
&& m.getReturnType().equals(void.class)
&& (m.getParameterTypes().length == 1)
) {
return Character... |
public class class_name {
@Override
protected void setProperty(final String _name,
final String _value)
throws CacheReloadException
{
if ("AskUser".equals(_name)) {
askUser = "true".equalsIgnoreCase(_value);
} else if ("DefaultSelected".equals(... | public class class_name {
@Override
protected void setProperty(final String _name,
final String _value)
throws CacheReloadException
{
if ("AskUser".equals(_name)) {
askUser = "true".equalsIgnoreCase(_value);
} else if ("DefaultSelected".equals(... |
public class class_name {
private static void moveMarkedWeakSources(JSModule weakModule, Iterable<CompilerInput> inputs) {
checkNotNull(weakModule);
ImmutableList<CompilerInput> allInputs = ImmutableList.copyOf(inputs);
for (CompilerInput i : allInputs) {
if (i.getSourceFile().isWeak()) {
JSM... | public class class_name {
private static void moveMarkedWeakSources(JSModule weakModule, Iterable<CompilerInput> inputs) {
checkNotNull(weakModule);
ImmutableList<CompilerInput> allInputs = ImmutableList.copyOf(inputs);
for (CompilerInput i : allInputs) {
if (i.getSourceFile().isWeak()) {
JSM... |
public class class_name {
private SeaGlassContext getContext(JComponent c, Region subregion, int state) {
SynthStyle style = null;
Class klass = SeaGlassContext.class;
if (subregion == Region.TABBED_PANE_TAB) {
style = tabStyle;
} else if (subregion == Region.TABBED_PA... | public class class_name {
private SeaGlassContext getContext(JComponent c, Region subregion, int state) {
SynthStyle style = null;
Class klass = SeaGlassContext.class;
if (subregion == Region.TABBED_PANE_TAB) {
style = tabStyle; // depends on control dependency: [if], data = [... |
public class class_name {
@Override
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createSession", new Object[] { transacted, acknowledgeMode });
JmsSess... | public class class_name {
@Override
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createSession", new Object[] { transacted, acknowledgeMode });
JmsSess... |
public class class_name {
public void marshall(DeleteBotVersionRequest deleteBotVersionRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteBotVersionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(DeleteBotVersionRequest deleteBotVersionRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteBotVersionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public InfoOperation getInfoOperation(final Field destination, final Field source) {
Class<?> dClass = destination.getType();
Class<?> sClass = source.getType();
Class<?> dItem = null;
Class<?> sItem = null;
InfoOperation operation = new InfoOperation().setConversionTyp... | public class class_name {
public InfoOperation getInfoOperation(final Field destination, final Field source) {
Class<?> dClass = destination.getType();
Class<?> sClass = source.getType();
Class<?> dItem = null;
Class<?> sItem = null;
InfoOperation operation = new InfoOperation().setConversionTyp... |
public class class_name {
private long getLongCheckSum(int start, int size) {
// All the tables here are aligned on four byte boundaries
// Add remainder to size if it's not a multiple of 4
int remainder = size % 4;
if (remainder != 0) {
size += remainder;
}
... | public class class_name {
private long getLongCheckSum(int start, int size) {
// All the tables here are aligned on four byte boundaries
// Add remainder to size if it's not a multiple of 4
int remainder = size % 4;
if (remainder != 0) {
size += remainder; // depends on cont... |
public class class_name {
public void setInstanceStates(java.util.Collection<String> instanceStates) {
if (instanceStates == null) {
this.instanceStates = null;
return;
}
this.instanceStates = new com.amazonaws.internal.SdkInternalList<String>(instanceStates);
} } | public class class_name {
public void setInstanceStates(java.util.Collection<String> instanceStates) {
if (instanceStates == null) {
this.instanceStates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public boolean addCustomLogger(Logger logger)
{
if (logger.getClass().getName().startsWith("java"))
return false;
Logger oldLogger = _localLoggers.get();
if (oldLogger != null)
return false;
_localLoggers.set(logger);
if (_parent != null) {
... | public class class_name {
public boolean addCustomLogger(Logger logger)
{
if (logger.getClass().getName().startsWith("java"))
return false;
Logger oldLogger = _localLoggers.get();
if (oldLogger != null)
return false;
_localLoggers.set(logger);
if (_parent != null) {
... |
public class class_name {
public void updateColumn(int c, TableColumn col)
{
int r = 0;
while (r < getRowCount())
{
TableCellBox cell = cells[c][r];
if (cell != null)
{
cell.setOwnerColumn(col);
//minimal width
... | public class class_name {
public void updateColumn(int c, TableColumn col)
{
int r = 0;
while (r < getRowCount())
{
TableCellBox cell = cells[c][r];
if (cell != null)
{
cell.setOwnerColumn(col); // depends on control dependency: [if], data = ... |
public class class_name {
private void setSelectedRadioButton(final E enumValue)
{
if (enumValue != null)
{
final JRadioButton radioButton = this.radioButtonMap.get(enumValue);
radioButton.setSelected(true);
}
else
{
for (final JRadioButton radioButton : this.radioButtonMap.values())
{
radio... | public class class_name {
private void setSelectedRadioButton(final E enumValue)
{
if (enumValue != null)
{
final JRadioButton radioButton = this.radioButtonMap.get(enumValue);
radioButton.setSelected(true); // depends on control dependency: [if], data = [none]
}
else
{
for (final JRadioButton radi... |
public class class_name {
public static List<String> parseDelimitedString(String value, char delimiter, boolean trim) {
if (value == null) {
value = "";
}
List<String> list = new ArrayList<String>();
StringBuilder sb = new StringBuilder();
int expecting = (CHAR | D... | public class class_name {
public static List<String> parseDelimitedString(String value, char delimiter, boolean trim) {
if (value == null) {
value = ""; // depends on control dependency: [if], data = [none]
}
List<String> list = new ArrayList<String>();
StringBuilder sb = n... |
public class class_name {
public static double[] timesPlusEquals(final double[] v1, final double s1, final double[] v2) {
assert v1.length == v2.length : ERR_VEC_DIMENSIONS;
for(int i = 0; i < v1.length; i++) {
v1[i] = v1[i] * s1 + v2[i];
}
return v1;
} } | public class class_name {
public static double[] timesPlusEquals(final double[] v1, final double s1, final double[] v2) {
assert v1.length == v2.length : ERR_VEC_DIMENSIONS;
for(int i = 0; i < v1.length; i++) {
v1[i] = v1[i] * s1 + v2[i]; // depends on control dependency: [for], data = [i]
}
retu... |
public class class_name {
protected static String adjustMappedUrl(SlingHttpServletRequest request, String url) {
// build a pattern with the (false) default port
Pattern defaultPortPattern = Pattern.compile(
URL_PATTERN_STRING.replaceFirst("\\(:\\\\d\\+\\)\\?", ":" + getDefaultPort(requ... | public class class_name {
protected static String adjustMappedUrl(SlingHttpServletRequest request, String url) {
// build a pattern with the (false) default port
Pattern defaultPortPattern = Pattern.compile(
URL_PATTERN_STRING.replaceFirst("\\(:\\\\d\\+\\)\\?", ":" + getDefaultPort(requ... |
public class class_name {
private List<AnalyzedToken> getImperativeForm(String word, List<String> sentenceTokens, int pos) {
int idx = sentenceTokens.indexOf(word);
String previousWord = "";
while (--idx > -1) {
previousWord = sentenceTokens.get(idx);
if (StringUtils.isWhitespace(previousWord))... | public class class_name {
private List<AnalyzedToken> getImperativeForm(String word, List<String> sentenceTokens, int pos) {
int idx = sentenceTokens.indexOf(word);
String previousWord = "";
while (--idx > -1) {
previousWord = sentenceTokens.get(idx); // depends on control dependency: [while], data =... |
public class class_name {
private void addJsString(Node n) {
String s = n.getString();
boolean useSlashV = n.getBooleanProp(Node.SLASH_V);
if (useSlashV) {
add(jsString(n.getString(), useSlashV));
} else {
String cached = escapedJsStrings.get(s);
if (cached == null) {
cached =... | public class class_name {
private void addJsString(Node n) {
String s = n.getString();
boolean useSlashV = n.getBooleanProp(Node.SLASH_V);
if (useSlashV) {
add(jsString(n.getString(), useSlashV)); // depends on control dependency: [if], data = [none]
} else {
String cached = escapedJsString... |
public class class_name {
public void marshall(CorsRule corsRule, ProtocolMarshaller protocolMarshaller) {
if (corsRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(corsRule.getAllowedOrigins()... | public class class_name {
public void marshall(CorsRule corsRule, ProtocolMarshaller protocolMarshaller) {
if (corsRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(corsRule.getAllowedOrigins()... |
public class class_name {
public static BufferedImage colorizeSign(ImageGray src, BufferedImage dst, double normalize) {
dst = checkInputs(src, dst);
if (normalize <= 0) {
normalize = GImageStatistics.maxAbs(src);
}
if (normalize == 0) {
// sets the output to black
ConvertBufferedImage.convertTo(src... | public class class_name {
public static BufferedImage colorizeSign(ImageGray src, BufferedImage dst, double normalize) {
dst = checkInputs(src, dst);
if (normalize <= 0) {
normalize = GImageStatistics.maxAbs(src); // depends on control dependency: [if], data = [none]
}
if (normalize == 0) {
// sets the... |
public class class_name {
private RESTResponse validateAndExecuteRequest(HttpServletRequest request) {
Map<String, String> variableMap = new HashMap<String, String>();
String query = extractQueryParam(request, variableMap);
Tenant tenant = getTenant(variableMap);
// Command matchi... | public class class_name {
private RESTResponse validateAndExecuteRequest(HttpServletRequest request) {
Map<String, String> variableMap = new HashMap<String, String>();
String query = extractQueryParam(request, variableMap);
Tenant tenant = getTenant(variableMap);
// Command matchi... |
public class class_name {
@VisibleForTesting
public boolean copyPartitionParams(String completeSourcePartitionName, String completeDestPartitionName,
List<String> whitelist, List<String> blacklist) {
Optional<Partition> sourcePartitionOptional = getPartitionObject(completeSourcePartitionName);
Optional... | public class class_name {
@VisibleForTesting
public boolean copyPartitionParams(String completeSourcePartitionName, String completeDestPartitionName,
List<String> whitelist, List<String> blacklist) {
Optional<Partition> sourcePartitionOptional = getPartitionObject(completeSourcePartitionName);
Optional... |
public class class_name {
private boolean isOnlyFolders(String types) {
boolean result = true;
for (String type : types.split("[, ]+")) {
try {
if (!OpenCms.getResourceManager().getResourceType(type).isFolder()) {
result = false;
brea... | public class class_name {
private boolean isOnlyFolders(String types) {
boolean result = true;
for (String type : types.split("[, ]+")) {
try {
if (!OpenCms.getResourceManager().getResourceType(type).isFolder()) {
result = false; // depends on control de... |
public class class_name {
public Object mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) {
final Class returnType = m.getReturnType();
final boolean isArray = returnType.isArray();
try {
if (isArray) {
final SQL methodSQL = c... | public class class_name {
public Object mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) {
final Class returnType = m.getReturnType();
final boolean isArray = returnType.isArray();
try {
if (isArray) {
final SQL methodSQL = c... |
public class class_name {
protected String protectSpecialChars(String str, boolean debugPrint) {
String result = str.replace("\\", "\\\\").replace("$", "\\$");
if (debugPrint) {
System.out.println(" In NonVoltDBBackend.protectSpecialChars:");
System.out.println(" str :... | public class class_name {
protected String protectSpecialChars(String str, boolean debugPrint) {
String result = str.replace("\\", "\\\\").replace("$", "\\$");
if (debugPrint) {
System.out.println(" In NonVoltDBBackend.protectSpecialChars:"); // depends on control dependency: [if], data ... |
public class class_name {
@XmlTransient
public void setFieldValue(String fieldNameParam, Object fieldValueParam) {
if(fieldNameParam == null || fieldNameParam.trim().length() == 0)
{
return;
}
if(this.getFormFields() == null || this.getFormFields().isEmpty())
{
this.setFormFields(new ArrayList());
... | public class class_name {
@XmlTransient
public void setFieldValue(String fieldNameParam, Object fieldValueParam) {
if(fieldNameParam == null || fieldNameParam.trim().length() == 0)
{
return; // depends on control dependency: [if], data = [none]
}
if(this.getFormFields() == null || this.getFormFields().isE... |
public class class_name {
protected GeometryEnvelope getEnvelope(GeoPackageGeometryData data) {
GeometryEnvelope envelope = null;
if (data != null) {
envelope = data.getOrBuildEnvelope();
}
return envelope;
} } | public class class_name {
protected GeometryEnvelope getEnvelope(GeoPackageGeometryData data) {
GeometryEnvelope envelope = null;
if (data != null) {
envelope = data.getOrBuildEnvelope(); // depends on control dependency: [if], data = [none]
}
return envelope;
} } |
public class class_name {
public void writeExternal(ObjectOutput out) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "writeExternal");
try {
// write magic
out.writeShort(EXTERNAL_MAGIC);
out.writeSho... | public class class_name {
public void writeExternal(ObjectOutput out) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "writeExternal");
try {
// write magic
out.writeShort(EXTERNAL_MAGIC);
out.writeSho... |
public class class_name {
public static WQConstraint decode(final String field, final String rawValue)
{
final WQFunctionType function;
final String value;
if (StringUtils.equalsIgnoreCase(rawValue, WQFunctionType.IS_NULL.getPrefix()))
return new WQConstraint(field, WQFunctionType.IS_NULL, null);
else if ... | public class class_name {
public static WQConstraint decode(final String field, final String rawValue)
{
final WQFunctionType function;
final String value;
if (StringUtils.equalsIgnoreCase(rawValue, WQFunctionType.IS_NULL.getPrefix()))
return new WQConstraint(field, WQFunctionType.IS_NULL, null);
else if ... |
public class class_name {
public void visit(Function<CmsTreeItem, Boolean> visitor) {
visitor.apply(this);
for (Widget child : m_children) {
((CmsTreeItem)child).visit(visitor);
}
} } | public class class_name {
public void visit(Function<CmsTreeItem, Boolean> visitor) {
visitor.apply(this);
for (Widget child : m_children) {
((CmsTreeItem)child).visit(visitor); // depends on control dependency: [for], data = [child]
}
} } |
public class class_name {
public void switchWarmup(Long channelId, Long pipelineId) {
String path = ManagePathUtils.getMainStem(channelId, pipelineId);
try {
while (true) {
Stat stat = new Stat();
byte[] bytes = zookeeper.readData(path, stat);
... | public class class_name {
public void switchWarmup(Long channelId, Long pipelineId) {
String path = ManagePathUtils.getMainStem(channelId, pipelineId);
try {
while (true) {
Stat stat = new Stat();
byte[] bytes = zookeeper.readData(path, stat);
... |
public class class_name {
public LocalDate plusWeeks(int weeks) {
if (weeks == 0) {
return this;
}
long instant = getChronology().weeks().add(getLocalMillis(), weeks);
return withLocalMillis(instant);
} } | public class class_name {
public LocalDate plusWeeks(int weeks) {
if (weeks == 0) {
return this; // depends on control dependency: [if], data = [none]
}
long instant = getChronology().weeks().add(getLocalMillis(), weeks);
return withLocalMillis(instant);
} } |
public class class_name {
public Observable<ServiceResponse<JsonSchemaInner>> getSchemaJsonWithServiceResponseAsync(String resourceGroupName, String workflowName, String triggerName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscription... | public class class_name {
public Observable<ServiceResponse<JsonSchemaInner>> getSchemaJsonWithServiceResponseAsync(String resourceGroupName, String workflowName, String triggerName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscription... |
public class class_name {
public static void updateMeasureSpec(
Spec spec,
float aspectRatio,
@Nullable ViewGroup.LayoutParams layoutParams,
int widthPadding,
int heightPadding) {
if (aspectRatio <= 0 || layoutParams == null) {
return;
}
if (shouldAdjust(layoutParams.hei... | public class class_name {
public static void updateMeasureSpec(
Spec spec,
float aspectRatio,
@Nullable ViewGroup.LayoutParams layoutParams,
int widthPadding,
int heightPadding) {
if (aspectRatio <= 0 || layoutParams == null) {
return; // depends on control dependency: [if], dat... |
public class class_name {
public FunctionLibrary getLibraryForPrefix(String functionPrefix) {
for (int i = 0; i < functionLibraries.size(); i++) {
if (((FunctionLibrary)functionLibraries.get(i)).getPrefix().equals(functionPrefix)) {
return (FunctionLibrary)functionLibraries.get(i);
... | public class class_name {
public FunctionLibrary getLibraryForPrefix(String functionPrefix) {
for (int i = 0; i < functionLibraries.size(); i++) {
if (((FunctionLibrary)functionLibraries.get(i)).getPrefix().equals(functionPrefix)) {
return (FunctionLibrary)functionLibraries.get(i); ... |
public class class_name {
public static String quoteWrap(String name) {
String quoteName = null;
if (name != null) {
if (name.startsWith("\"") && name.endsWith("\"")) {
quoteName = name;
} else {
quoteName = "\"" + name + "\"";
}
}
return quoteName;
} } | public class class_name {
public static String quoteWrap(String name) {
String quoteName = null;
if (name != null) {
if (name.startsWith("\"") && name.endsWith("\"")) {
quoteName = name; // depends on control dependency: [if], data = [none]
} else {
quoteName = "\"" + name + "\""; // depends on contr... |
public class class_name {
public DescribeInputResult withMediaConnectFlows(MediaConnectFlow... mediaConnectFlows) {
if (this.mediaConnectFlows == null) {
setMediaConnectFlows(new java.util.ArrayList<MediaConnectFlow>(mediaConnectFlows.length));
}
for (MediaConnectFlow ele : mediaCon... | public class class_name {
public DescribeInputResult withMediaConnectFlows(MediaConnectFlow... mediaConnectFlows) {
if (this.mediaConnectFlows == null) {
setMediaConnectFlows(new java.util.ArrayList<MediaConnectFlow>(mediaConnectFlows.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
boolean queryLineConnector(int vertex, Line line) {
int next = getNextVertex(vertex);
if (next == -1)
return false;
if (!m_b_has_attributes) {
Point2D pt = new Point2D();
getXY(vertex, pt);
line.setStartXY(pt);
getXY(next, pt);
line.setEndXY(pt);
} else {
Point p... | public class class_name {
boolean queryLineConnector(int vertex, Line line) {
int next = getNextVertex(vertex);
if (next == -1)
return false;
if (!m_b_has_attributes) {
Point2D pt = new Point2D();
getXY(vertex, pt); // depends on control dependency: [if], data = [none]
line.setStartXY(pt); // depend... |
public class class_name {
public String getArtist(int type)
{
if (allow(type&ID3V1))
{
return id3v1.getArtist();
}
if (allow(type&ID3V2))
{
return id3v2.getFrameDataString(ID3v2Frames.LEAD_PERFORMERS);
}
return null;
} } | public class class_name {
public String getArtist(int type)
{
if (allow(type&ID3V1))
{
return id3v1.getArtist(); // depends on control dependency: [if], data = [none]
}
if (allow(type&ID3V2))
{
return id3v2.getFrameDataString(ID3v2Frames.LEAD_PERFORMERS); // depends on control dependency: [if], data =... |
public class class_name {
public RunCommandParameters withRunCommandTargets(RunCommandTarget... runCommandTargets) {
if (this.runCommandTargets == null) {
setRunCommandTargets(new java.util.ArrayList<RunCommandTarget>(runCommandTargets.length));
}
for (RunCommandTarget ele : runComm... | public class class_name {
public RunCommandParameters withRunCommandTargets(RunCommandTarget... runCommandTargets) {
if (this.runCommandTargets == null) {
setRunCommandTargets(new java.util.ArrayList<RunCommandTarget>(runCommandTargets.length)); // depends on control dependency: [if], data = [none]... |
public class class_name {
public double getAtomOverlapScore(IAtomContainer ac, Vector overlappingAtoms) {
overlappingAtoms.removeAllElements();
IAtom atom1 = null;
IAtom atom2 = null;
Point2d p1 = null;
Point2d p2 = null;
double distance = 0;
double overlapScore ... | public class class_name {
public double getAtomOverlapScore(IAtomContainer ac, Vector overlappingAtoms) {
overlappingAtoms.removeAllElements();
IAtom atom1 = null;
IAtom atom2 = null;
Point2d p1 = null;
Point2d p2 = null;
double distance = 0;
double overlapScore ... |
public class class_name {
public static List<List<QValueResult>> parse(List<String> headers) {
final List<QValueResult> found = new ArrayList<>();
QValueResult current = null;
for (final String header : headers) {
final int l = header.length();
//we do not use a string b... | public class class_name {
public static List<List<QValueResult>> parse(List<String> headers) {
final List<QValueResult> found = new ArrayList<>();
QValueResult current = null;
for (final String header : headers) {
final int l = header.length();
//we do not use a string b... |
public class class_name {
public ServiceCall<LanguageModels> listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions) {
String[] pathSegments = { "v1/customizations" };
RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
Map<String, Stri... | public class class_name {
public ServiceCall<LanguageModels> listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions) {
String[] pathSegments = { "v1/customizations" };
RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
Map<String, Stri... |
public class class_name {
public static void setEnabled(Component component, boolean bEnabled)
{
if (component instanceof JPanel)
{
for (int i = 0; i < ((JPanel)component).getComponentCount(); i++)
{
JComponent componentSub = (JComponent)((JPanel)component).g... | public class class_name {
public static void setEnabled(Component component, boolean bEnabled)
{
if (component instanceof JPanel)
{
for (int i = 0; i < ((JPanel)component).getComponentCount(); i++)
{
JComponent componentSub = (JComponent)((JPanel)component).g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.