code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public ValidationMode getValidationMode()
{
// Convert this ValidationMode from the class defined
// in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType)
// to JPA (javax.persistence.ValidationMode).
ValidationMode rtnMode = nul... | public class class_name {
@Override
public ValidationMode getValidationMode()
{
// Convert this ValidationMode from the class defined
// in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType)
// to JPA (javax.persistence.ValidationMode).
ValidationMode rtnMode = nul... |
public class class_name {
protected ConnectionWrapper checkOutFreePool(Transaction tx) {
if (freePool.isEmpty()) {
return null;
}
final FreeItem item = (FreeItem) freePool.removeLast();
final ConnectionWrapper wrapper = item.getConnection();
wrapper.init(tx);
... | public class class_name {
protected ConnectionWrapper checkOutFreePool(Transaction tx) {
if (freePool.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
final FreeItem item = (FreeItem) freePool.removeLast();
final ConnectionWrapper wrapper = i... |
public class class_name {
public String getLink(CmsObject cms) {
if (m_internal) {
// if we have a local link, leave it unchanged
// cms may be null for unit tests
if ((cms == null) || (m_uri.length() == 0) || (m_uri.charAt(0) == '#')) {
return m_uri;
... | public class class_name {
public String getLink(CmsObject cms) {
if (m_internal) {
// if we have a local link, leave it unchanged
// cms may be null for unit tests
if ((cms == null) || (m_uri.length() == 0) || (m_uri.charAt(0) == '#')) {
return m_uri; // dep... |
public class class_name {
public static <T extends Number> double getAverage(Collection<T> values, AVERAGE_TYPE type) {
switch(type) {
case ARITHMETIC:
double sum = 0.0;
for(T t: values) {
sum += t.doubleValue();
}
return sum/values.size();
default: throw new IllegalArgumentExcepti... | public class class_name {
public static <T extends Number> double getAverage(Collection<T> values, AVERAGE_TYPE type) {
switch(type) {
case ARITHMETIC:
double sum = 0.0;
for(T t: values) {
sum += t.doubleValue();
// depends on control dependency: [for], data = [t]
}
return sum/values.s... |
public class class_name {
protected String classifyWarning(final String message) {
if (StringUtils.contains(message, "proprietary")) {
return PROPRIETARY_API;
}
if (StringUtils.contains(message, "deprecated")) {
return DEPRECATION;
}
return StringUtils.EM... | public class class_name {
protected String classifyWarning(final String message) {
if (StringUtils.contains(message, "proprietary")) {
return PROPRIETARY_API; // depends on control dependency: [if], data = [none]
}
if (StringUtils.contains(message, "deprecated")) {
retur... |
public class class_name {
private Response partialUpdateEntityAttrByGuid(String guid, String property, HttpServletRequest request) {
String value = null;
try {
Preconditions.checkNotNull(property, "Entity property cannot be null");
value = Servlets.getRequestPayload(request);
... | public class class_name {
private Response partialUpdateEntityAttrByGuid(String guid, String property, HttpServletRequest request) {
String value = null;
try {
Preconditions.checkNotNull(property, "Entity property cannot be null"); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public void run()
{
while (true) {
final long start = System.currentTimeMillis();
long remaining;
Cache c;
synchronized (lock) {
c = cache;
remaining = sweepInterval * 1000;
while (remaining > 0 && cache != null) {
try {
lock.wait(remaining);
... | public class class_name {
public void run()
{
while (true) {
final long start = System.currentTimeMillis();
long remaining;
Cache c;
synchronized (lock) {
// depends on control dependency: [while], data = [none]
c = cache;
remaining = sweepInterval * 1000;
while (remaining > 0 && ca... |
public class class_name {
public static void premain(String agentArgument, Instrumentation instrumentation) {
// We cannot do sanity checks for slf4j here as the jars loaded
// by the application are not visible here.
LogTransformer.Builder builder = new LogTransformer.Builder();
buil... | public class class_name {
public static void premain(String agentArgument, Instrumentation instrumentation) {
// We cannot do sanity checks for slf4j here as the jars loaded
// by the application are not visible here.
LogTransformer.Builder builder = new LogTransformer.Builder();
buil... |
public class class_name {
public void generateFiles(File directory) throws IOException {
if (packageName != null && !packageName.trim().isEmpty()) {
String packageDir = packageName.replace(".", File.separator);
if (!directory.getAbsolutePath().endsWith(packageDir)) {
dir... | public class class_name {
public void generateFiles(File directory) throws IOException {
if (packageName != null && !packageName.trim().isEmpty()) {
String packageDir = packageName.replace(".", File.separator);
if (!directory.getAbsolutePath().endsWith(packageDir)) {
dir... |
public class class_name {
public void onStoreUpdate( @Observes final ArtifactStorePreUpdateEvent event )
{
logger.trace( "Got store-update event: {}", event );
if ( ArtifactStoreUpdateType.UPDATE == event.getType() )
{
for ( ArtifactStore store : event )
{
... | public class class_name {
public void onStoreUpdate( @Observes final ArtifactStorePreUpdateEvent event )
{
logger.trace( "Got store-update event: {}", event );
if ( ArtifactStoreUpdateType.UPDATE == event.getType() )
{
for ( ArtifactStore store : event )
{
... |
public class class_name {
private void processDefinition(DestinationAliasDefinition definition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processDefinition", definition);
_definition = definition; // Null for BusHandler (foreign bus)
/... | public class class_name {
private void processDefinition(DestinationAliasDefinition definition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processDefinition", definition);
_definition = definition; // Null for BusHandler (foreign bus)
/... |
public class class_name {
public AbstractPrintQuery addAttribute(final String... _attrNames)
throws EFapsException
{
final Type type = getMainType();
if (type != null) {
for (final String attrName : _attrNames) {
final Attribute attr = type.getAttribute(attrName)... | public class class_name {
public AbstractPrintQuery addAttribute(final String... _attrNames)
throws EFapsException
{
final Type type = getMainType();
if (type != null) {
for (final String attrName : _attrNames) {
final Attribute attr = type.getAttribute(attrName)... |
public class class_name {
@Nullable V removeNoWriter(Object key) {
Node<K, V> node = data.remove(nodeFactory.newLookupKey(key));
if (node == null) {
return null;
}
V oldValue;
synchronized (node) {
oldValue = node.getValue();
if (node.isAlive()) {
node.retire();
}
... | public class class_name {
@Nullable V removeNoWriter(Object key) {
Node<K, V> node = data.remove(nodeFactory.newLookupKey(key));
if (node == null) {
return null; // depends on control dependency: [if], data = [none]
}
V oldValue;
synchronized (node) {
oldValue = node.getValue();
... |
public class class_name {
private int readRawVarint32(ByteBuffer bytes) {
byte tmp = bytes.get();
if (tmp >= 0) {
return tmp;
}
int result = tmp & 0x7f;
if ((tmp = bytes.get()) >= 0) {
result |= tmp << 7;
} else {
result |= (tmp & 0x7f) << 7;
if ((tmp = bytes.get()) >= 0... | public class class_name {
private int readRawVarint32(ByteBuffer bytes) {
byte tmp = bytes.get();
if (tmp >= 0) {
return tmp; // depends on control dependency: [if], data = [none]
}
int result = tmp & 0x7f;
if ((tmp = bytes.get()) >= 0) {
result |= tmp << 7; // depends on control depend... |
public class class_name {
@Override
public void show(
Context context,
final Entity entity,
final SocialNetworkListener socialNetworkListener,
final ShareDialogListener shareDialoglistener,
final int displayOptions) {
showDialog(context,
new BeanCreationListener<SharePanelView>() {
... | public class class_name {
@Override
public void show(
Context context,
final Entity entity,
final SocialNetworkListener socialNetworkListener,
final ShareDialogListener shareDialoglistener,
final int displayOptions) {
showDialog(context,
new BeanCreationListener<SharePanelView>() {
... |
public class class_name {
public static void warning(String message, Throwable e) {
if(message == null && e != null) {
message = e.getMessage();
}
logExpensive(Level.WARNING, message, e);
} } | public class class_name {
public static void warning(String message, Throwable e) {
if(message == null && e != null) {
message = e.getMessage(); // depends on control dependency: [if], data = [none]
}
logExpensive(Level.WARNING, message, e);
} } |
public class class_name {
@Override
public String doOCR(List<IIOImage> imageList, String filename, Rectangle rect) throws TesseractException {
init();
setTessVariables();
try {
StringBuilder sb = new StringBuilder();
int pageNum = 0;
for (IIOIm... | public class class_name {
@Override
public String doOCR(List<IIOImage> imageList, String filename, Rectangle rect) throws TesseractException {
init();
setTessVariables();
try {
StringBuilder sb = new StringBuilder();
int pageNum = 0;
for (IIOIm... |
public class class_name {
@Override
public void messageReceived(T message) {
if (responseReceived != null) {
if (responseReceived) {
log.warn("Received more than one synchronous message reply!");
}
else {
log.warn("Received response messag... | public class class_name {
@Override
public void messageReceived(T message) {
if (responseReceived != null) {
if (responseReceived) {
log.warn("Received more than one synchronous message reply!"); // depends on control dependency: [if], data = [none]
}
els... |
public class class_name {
public String getRequiredString(String name) {
String value = getString(name, null);
if (value != null) {
return value.trim();
}
throw new PippoRuntimeException("Setting '{}' has not been configured!", name);
} } | public class class_name {
public String getRequiredString(String name) {
String value = getString(name, null);
if (value != null) {
return value.trim(); // depends on control dependency: [if], data = [none]
}
throw new PippoRuntimeException("Setting '{}' has not been configu... |
public class class_name {
@Override
protected String getFirst() {
if (!rules_first.containsKey(getClass())) {
for (Method method : getClass().getDeclaredMethods()) {
if (method.getDeclaredAnnotation(First.class) != null) {
rules_first.put(getClass(), method.g... | public class class_name {
@Override
protected String getFirst() {
if (!rules_first.containsKey(getClass())) {
for (Method method : getClass().getDeclaredMethods()) {
if (method.getDeclaredAnnotation(First.class) != null) {
rules_first.put(getClass(), method.g... |
public class class_name {
public static synchronized void checkMissingConfig() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Checking for missing config");
}
if (delayedConfig.isEmpty()) {
return;
}
delayCheckSignaled ... | public class class_name {
public static synchronized void checkMissingConfig() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Checking for missing config"); // depends on control dependency: [if], data = [none]
}
if (delayedConfig.isEmpty()) {
... |
public class class_name {
public boolean distributeEnd(int flags) {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd", Util.printFlag(flags));
boolean result = true;
for (int i = _resourceObjects.size(); --i >= 0;) {
final JTAResource resource = _resourceObjects.ge... | public class class_name {
public boolean distributeEnd(int flags) {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd", Util.printFlag(flags));
boolean result = true;
for (int i = _resourceObjects.size(); --i >= 0;) {
final JTAResource resource = _resourceObjects.ge... |
public class class_name {
protected void initDataSource() {
if (dataSource == null) {
if (dataSourceJndiName != null) {
try {
dataSource = (DataSource) new InitialContext().lookup(dataSourceJndiName);
} catch (Exception e) {
throw new ProcessEngineException("couldn't looku... | public class class_name {
protected void initDataSource() {
if (dataSource == null) {
if (dataSourceJndiName != null) {
try {
dataSource = (DataSource) new InitialContext().lookup(dataSourceJndiName); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
... |
public class class_name {
private CmsAccessControlList getAccessControlList(
CmsDbContext dbc,
CmsResource resource,
boolean inheritedOnly,
boolean forFolder,
int depth)
throws CmsException {
String cacheKey = getCacheKey(
new String[] {
... | public class class_name {
private CmsAccessControlList getAccessControlList(
CmsDbContext dbc,
CmsResource resource,
boolean inheritedOnly,
boolean forFolder,
int depth)
throws CmsException {
String cacheKey = getCacheKey(
new String[] {
... |
public class class_name {
@Override
protected void preparePaintComponent(final Request request) {
super.preparePaintComponent(request);
if (!isInitialised()) {
rb2.setSelected(true);
rb3.setToolTip("This is disabled.");
setInitialised(true);
}
} } | public class class_name {
@Override
protected void preparePaintComponent(final Request request) {
super.preparePaintComponent(request);
if (!isInitialised()) {
rb2.setSelected(true); // depends on control dependency: [if], data = [none]
rb3.setToolTip("This is disabled."); // depends on control dependency:... |
public class class_name {
private int determineHeartbeatInterval(Map properties)
{
// How often should we heartbeat?
int heartbeatInterval = JFapChannelConstants.DEFAULT_HEARTBEAT_INTERVAL;
try
{
heartbeatInterval = Integer.parseInt(RuntimeInfo.getProperty(JFapChannelCon... | public class class_name {
private int determineHeartbeatInterval(Map properties)
{
// How often should we heartbeat?
int heartbeatInterval = JFapChannelConstants.DEFAULT_HEARTBEAT_INTERVAL;
try
{
heartbeatInterval = Integer.parseInt(RuntimeInfo.getProperty(JFapChannelCon... |
public class class_name {
public void importGit(ProgressMonitor... monitors) throws IOException {
if (inProgress)
throw new IOException("Asset already in progress...");
try {
inProgress = true;
Props props = new Props(this);
VcInfo vcInfo = new VcInfo(ge... | public class class_name {
public void importGit(ProgressMonitor... monitors) throws IOException {
if (inProgress)
throw new IOException("Asset already in progress...");
try {
inProgress = true; // depends on control dependency: [try], data = [none]
Props props = new... |
public class class_name {
public static int getIdFor(Class<? extends Tag> clazz) {
if(!tagToId.containsKey(clazz)) {
return -1;
}
return tagToId.get(clazz);
} } | public class class_name {
public static int getIdFor(Class<? extends Tag> clazz) {
if(!tagToId.containsKey(clazz)) {
return -1; // depends on control dependency: [if], data = [none]
}
return tagToId.get(clazz);
} } |
public class class_name {
public List<WordLemmaTag> getStanfordWordLemmaTags() {
List<AgigaToken> tokens = getTokens();
List<WordLemmaTag> labels = new ArrayList<WordLemmaTag>();
for (int i = 0; i < tokens.size(); i++) {
AgigaToken at = tokens.get(i);
WordLemmaTag curTok... | public class class_name {
public List<WordLemmaTag> getStanfordWordLemmaTags() {
List<AgigaToken> tokens = getTokens();
List<WordLemmaTag> labels = new ArrayList<WordLemmaTag>();
for (int i = 0; i < tokens.size(); i++) {
AgigaToken at = tokens.get(i);
WordLemmaTag curTok... |
public class class_name {
private List<Event> filterEvents(List<Event> events) {
List<Event> filteredEvents = new ArrayList<Event>();
for (Event event : events) {
if (!filter(event)) {
filteredEvents.add(event);
}
}
return filteredEvents;
} } | public class class_name {
private List<Event> filterEvents(List<Event> events) {
List<Event> filteredEvents = new ArrayList<Event>();
for (Event event : events) {
if (!filter(event)) {
filteredEvents.add(event); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(ListEventSubscriptionsRequest listEventSubscriptionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listEventSubscriptionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListEventSubscriptionsRequest listEventSubscriptionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listEventSubscriptionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private Object resolveObject(String aKey, UResourceBundle requested) {
if (getType() == STRING) {
return getString();
}
UResourceBundle obj = handleGet(aKey, null, requested);
if (obj != null) {
if (obj.getType() == STRING) {
... | public class class_name {
private Object resolveObject(String aKey, UResourceBundle requested) {
if (getType() == STRING) {
return getString(); // depends on control dependency: [if], data = [none]
}
UResourceBundle obj = handleGet(aKey, null, requested);
if (obj != null) {
... |
public class class_name {
@SuppressWarnings("unchecked")
public void scrollToTop() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollToTop()");
}
View recyclerView = viewFetcher.getRecyclerView(true, 0);
if(recyclerView != null){
waiter.waitForViews(true, AbsListView.class, ScrollVi... | public class class_name {
@SuppressWarnings("unchecked")
public void scrollToTop() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollToTop()"); // depends on control dependency: [if], data = [none]
}
View recyclerView = viewFetcher.getRecyclerView(true, 0);
if(recyclerView != null){
... |
public class class_name {
@Override
public void engineReloaded(Object newEngine) {
if (TraceComponent.isAnyTracingEnabled()
&& tc.isEntryEnabled())
SibTr.entry(tc, "engineReloaded", newEngine);
// At this point, a dynamic configuartion change has occurred, admin
// h... | public class class_name {
@Override
public void engineReloaded(Object newEngine) {
if (TraceComponent.isAnyTracingEnabled()
&& tc.isEntryEnabled())
SibTr.entry(tc, "engineReloaded", newEngine);
// At this point, a dynamic configuartion change has occurred, admin
// h... |
public class class_name {
@Override
public Object getDraggableObjectAtPoint(final PointInfo pt) {
if (this.isAnimating()) {
// Zoom animations use the mMultiTouchScale variables to perform their animations so we
// don't want to step on that.
return null;
} else {
setMultiTouchScaleInitPoint(pt.getX()... | public class class_name {
@Override
public Object getDraggableObjectAtPoint(final PointInfo pt) {
if (this.isAnimating()) {
// Zoom animations use the mMultiTouchScale variables to perform their animations so we
// don't want to step on that.
return null; // depends on control dependency: [if], data = [non... |
public class class_name {
@Nullable
public <R, A> R collect(@NotNull Collector<? super T, A, R> collector) {
A container = collector.supplier().get();
while (iterator.hasNext()) {
final T value = iterator.next();
collector.accumulator().accept(container, value);
}
... | public class class_name {
@Nullable
public <R, A> R collect(@NotNull Collector<? super T, A, R> collector) {
A container = collector.supplier().get();
while (iterator.hasNext()) {
final T value = iterator.next();
collector.accumulator().accept(container, value); // depends o... |
public class class_name {
protected Entry<K, V> get(K k) {
Entry<K, V> currentNode = mStart;
while (currentNode != null) {
if (currentNode.mKey.equals(k)) {
break;
}
currentNode = currentNode.mNext;
}
return currentNode;
} } | public class class_name {
protected Entry<K, V> get(K k) {
Entry<K, V> currentNode = mStart;
while (currentNode != null) {
if (currentNode.mKey.equals(k)) {
break;
}
currentNode = currentNode.mNext; // depends on control dependency: [while], data = [n... |
public class class_name {
public static String buildSelectSQL(BeanDescFactory beanDescFactory, EntityOperator entityOperator, Class<?> clazz, NameConverter nameConverter){
StringBuilder sb = new StringBuilder();
BeanDesc beanDesc = beanDescFactory.getBeanDesc(clazz);
sb.append("SELECT * FR... | public class class_name {
public static String buildSelectSQL(BeanDescFactory beanDescFactory, EntityOperator entityOperator, Class<?> clazz, NameConverter nameConverter){
StringBuilder sb = new StringBuilder();
BeanDesc beanDesc = beanDescFactory.getBeanDesc(clazz);
sb.append("SELECT * FR... |
public class class_name {
protected void before(HttpServletRequest request, HttpServletResponse response) {
final StringBuilder sb = new StringBuilder();
final String beginDecoration;
if (isSubRequestUrl(request)) {
beginDecoration = "- - - - - - - - - - {SUB BEGIN}: ";
} el... | public class class_name {
protected void before(HttpServletRequest request, HttpServletResponse response) {
final StringBuilder sb = new StringBuilder();
final String beginDecoration;
if (isSubRequestUrl(request)) {
beginDecoration = "- - - - - - - - - - {SUB BEGIN}: "; // depends o... |
public class class_name {
public static String addResourcePathToPackagePath(Class<?> clazz, String resourceName) {
Preconditions.checkNotNull(resourceName, "Resource name must not be null");
if (!resourceName.startsWith("/")) {
return classPackageAsResourcePath(clazz) + "/" + resourceName;
... | public class class_name {
public static String addResourcePathToPackagePath(Class<?> clazz, String resourceName) {
Preconditions.checkNotNull(resourceName, "Resource name must not be null");
if (!resourceName.startsWith("/")) {
return classPackageAsResourcePath(clazz) + "/" + resourceName; ... |
public class class_name {
@Pure
public List<File> getClassPath() {
if (this.classpath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.classpath);
} } | public class class_name {
@Pure
public List<File> getClassPath() {
if (this.classpath == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableList(this.classpath);
} } |
public class class_name {
public void controlEventHandler(final ControlEventHandler controlEventHandler) {
env.setControlEventHandler(new ControlEventHandler() {
@Override
public void onEvent(ChannelFlowController flowController, ByteBuf event) {
if (DcpSnapshotMarkerRequest.is(event)) {
... | public class class_name {
public void controlEventHandler(final ControlEventHandler controlEventHandler) {
env.setControlEventHandler(new ControlEventHandler() {
@Override
public void onEvent(ChannelFlowController flowController, ByteBuf event) {
if (DcpSnapshotMarkerRequest.is(event)) {
... |
public class class_name {
private boolean expandCompositCharAtNear(char[] dest,int start, int length,
int yehHamzaOption, int seenTailOption, int lamAlefOption){
boolean spaceNotFound = false;
if (isNormalizedLamAlefChar(dest[start])) {
spaceNotFound = t... | public class class_name {
private boolean expandCompositCharAtNear(char[] dest,int start, int length,
int yehHamzaOption, int seenTailOption, int lamAlefOption){
boolean spaceNotFound = false;
if (isNormalizedLamAlefChar(dest[start])) {
spaceNotFound = t... |
public class class_name {
public OnLineStatistics[] getOnlineColumnStats(boolean useWeights)
{
OnLineStatistics[] stats = new OnLineStatistics[numNumerVals];
for(int i = 0; i < stats.length; i++)
stats[i] = new OnLineStatistics();
double totalSoW = 0.0;
... | public class class_name {
public OnLineStatistics[] getOnlineColumnStats(boolean useWeights)
{
OnLineStatistics[] stats = new OnLineStatistics[numNumerVals];
for(int i = 0; i < stats.length; i++)
stats[i] = new OnLineStatistics();
double totalSoW = 0.0;
... |
public class class_name {
private List<DiffEntry> blockingCompareTrees(RevTree treeA, RevTree treeB) {
if (cache == null) {
return blockingCompareTreesUncached(treeA, treeB, TreeFilter.ALL);
}
final CacheableCompareTreesCall key = new CacheableCompareTreesCall(this, treeA, treeB);
... | public class class_name {
private List<DiffEntry> blockingCompareTrees(RevTree treeA, RevTree treeB) {
if (cache == null) {
return blockingCompareTreesUncached(treeA, treeB, TreeFilter.ALL); // depends on control dependency: [if], data = [none]
}
final CacheableCompareTreesCall key... |
public class class_name {
public boolean matches(String name) {
if (name == null) {
return pattern.equals("");
}
if (all != null) {
return all.equals(name);
}
if (middle != null) {
return name.contains(middle);
}
if (start != null && !name.startsWith(start)) {
return false;
}
return end ... | public class class_name {
public boolean matches(String name) {
if (name == null) {
return pattern.equals(""); // depends on control dependency: [if], data = [none]
}
if (all != null) {
return all.equals(name); // depends on control dependency: [if], data = [none]
}
if (middle != null) {
return name... |
public class class_name {
public void addRegistry(Registry... registries){
for (Registry registry: registries){
registryList.add(registryList.size()-1, registry);
}
} } | public class class_name {
public void addRegistry(Registry... registries){
for (Registry registry: registries){
registryList.add(registryList.size()-1, registry);
// depends on control dependency: [for], data = [registry]
}
} } |
public class class_name {
public static SecretKey generateKey(String algorithm, int keySize) {
KeyGenerator secretKeyGenerator;
try {
secretKeyGenerator = KeyGenerator.getInstance(algorithm);
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException(e);
... | public class class_name {
public static SecretKey generateKey(String algorithm, int keySize) {
KeyGenerator secretKeyGenerator;
try {
secretKeyGenerator = KeyGenerator.getInstance(algorithm); // depends on control dependency: [try], data = [none]
} catch (NoSuchAlgorithmException e)... |
public class class_name {
public static final int floorDivide(int n, int d, int[] r) {
if (n >= 0) {
r[0] = n % d;
return n / d;
}
int q = ((n + 1) / d) - 1;
r[0] = n - (q * d);
return q;
} } | public class class_name {
public static final int floorDivide(int n, int d, int[] r) {
if (n >= 0) {
r[0] = n % d; // depends on control dependency: [if], data = [none]
return n / d; // depends on control dependency: [if], data = [none]
}
int q = ((n + 1) / d) - 1;
... |
public class class_name {
protected void handleIoException(int attempt, IOException ioException) throws IOException {
if (channel != null && channel.isOpen()) {
try {
channel.close();
} catch (IOException e) {
LOGGER.warn("Failed to close channel aft... | public class class_name {
protected void handleIoException(int attempt, IOException ioException) throws IOException {
if (channel != null && channel.isOpen()) {
try {
channel.close();
// depends on control dependency: [try], data = [none]
} catch (IOException e) {
... |
public class class_name {
public static <StoredObjectType, ResultSetType> Pagination createPagination(PageCriteria pageCriteria)
{
String id = pageCriteria.getId();
if(id == null || id.length() == 0)
{
return null;
}
Pagination pagination = ClassPath.newInstance(paginationClas... | public class class_name {
public static <StoredObjectType, ResultSetType> Pagination createPagination(PageCriteria pageCriteria)
{
String id = pageCriteria.getId();
if(id == null || id.length() == 0)
{
return null; // depends on control dependency: [if], data = [none]
}
Pagina... |
public class class_name {
public boolean isAssociatedTo(Class<? extends Model> targetModelClass) {
if(targetModelClass == null){
throw new NullPointerException();
}
for (Association association : associations) {
if (association.getTargetClass().getName().equals(target... | public class class_name {
public boolean isAssociatedTo(Class<? extends Model> targetModelClass) {
if(targetModelClass == null){
throw new NullPointerException();
}
for (Association association : associations) {
if (association.getTargetClass().getName().equals(target... |
public class class_name {
public ScanSpecPathMatch dirWhitelistMatchStatus(final String relativePath) {
// In blacklisted path
if (pathWhiteBlackList.isBlacklisted(relativePath)) {
// The directory is blacklisted.
return ScanSpecPathMatch.HAS_BLACKLISTED_PATH_PREFIX;
}
... | public class class_name {
public ScanSpecPathMatch dirWhitelistMatchStatus(final String relativePath) {
// In blacklisted path
if (pathWhiteBlackList.isBlacklisted(relativePath)) {
// The directory is blacklisted.
return ScanSpecPathMatch.HAS_BLACKLISTED_PATH_PREFIX; // depends ... |
public class class_name {
@Pure
public final int getNearestEndIndex(double x, double y, OutputParameter<Double> distance) {
final int count = getPointCount();
final Point2d firstPoint = getPointAt(0);
final Point2d lastPoint = getPointAt(count - 1);
final double d1 = Point2D.getDistancePointPoint(firstPoint.g... | public class class_name {
@Pure
public final int getNearestEndIndex(double x, double y, OutputParameter<Double> distance) {
final int count = getPointCount();
final Point2d firstPoint = getPointAt(0);
final Point2d lastPoint = getPointAt(count - 1);
final double d1 = Point2D.getDistancePointPoint(firstPoint.g... |
public class class_name {
private void setFilterableElt(Element filterableElt) {
filterable = filterableElt;
if (filterable != null && JQMCommon.isFilterableReady(filterable)) {
JavaScriptObject origFilter = JQMCommon.getFilterCallback(filterable);
JQMCommon.bindFilterCallback(t... | public class class_name {
private void setFilterableElt(Element filterableElt) {
filterable = filterableElt;
if (filterable != null && JQMCommon.isFilterableReady(filterable)) {
JavaScriptObject origFilter = JQMCommon.getFilterCallback(filterable);
JQMCommon.bindFilterCallback(t... |
public class class_name {
public void generateSmap(Node.Nodes pageNodes)
throws IOException {
classInfos = new ArrayList<ClassInfo>();
String className = ctxt.getFullClassName();
// Instantiate a SmapStratum for the main JSP page.
SmapStratum s = new SmapStratum("JSP");
... | public class class_name {
public void generateSmap(Node.Nodes pageNodes)
throws IOException {
classInfos = new ArrayList<ClassInfo>();
String className = ctxt.getFullClassName();
// Instantiate a SmapStratum for the main JSP page.
SmapStratum s = new SmapStratum("JSP");
... |
public class class_name {
private void cacheUniqueSelectRef(Object object, MappedStatement mt, String cacheKey) {
Collection<QueryMethodCache> mcs = queryCacheMethods.get(mt.getId().substring(0, mt.getId().lastIndexOf(SPLIT_PONIT))).values();
outter:for (QueryMethodCache methodCache : mcs) {
if(methodCache.i... | public class class_name {
private void cacheUniqueSelectRef(Object object, MappedStatement mt, String cacheKey) {
Collection<QueryMethodCache> mcs = queryCacheMethods.get(mt.getId().substring(0, mt.getId().lastIndexOf(SPLIT_PONIT))).values();
outter:for (QueryMethodCache methodCache : mcs) {
if(methodCache.i... |
public class class_name {
public HttpConnection setRequestBody(final InputStream input, final long inputLength) {
try {
return setRequestBody(new InputStreamWrappingGenerator(input, inputLength),
inputLength);
} catch (IOException e) {
logger.log(Level.SEVERE... | public class class_name {
public HttpConnection setRequestBody(final InputStream input, final long inputLength) {
try {
return setRequestBody(new InputStreamWrappingGenerator(input, inputLength),
inputLength); // depends on control dependency: [try], data = [none]
} catc... |
public class class_name {
public static void compareTables(String name1, String name2, List<? extends GribTables.Parameter> test, Grib2Tables reference, Formatter f) {
int extra = 0;
int udunits = 0;
int conflict = 0;
f.format("Table 1 : %s%n", name1);
f.format("Table 2 : %s%n", name2);
... | public class class_name {
public static void compareTables(String name1, String name2, List<? extends GribTables.Parameter> test, Grib2Tables reference, Formatter f) {
int extra = 0;
int udunits = 0;
int conflict = 0;
f.format("Table 1 : %s%n", name1);
f.format("Table 2 : %s%n", name2);
... |
public class class_name {
@Override
public boolean removeAttribute(String name) {
boolean result = true;
// Send confirmation to client
final SharedObjectEvent event = new SharedObjectEvent(Type.CLIENT_DELETE_DATA, name, null);
if (ownerMessage.addEvent(event)) {
i... | public class class_name {
@Override
public boolean removeAttribute(String name) {
boolean result = true;
// Send confirmation to client
final SharedObjectEvent event = new SharedObjectEvent(Type.CLIENT_DELETE_DATA, name, null);
if (ownerMessage.addEvent(event)) {
i... |
public class class_name {
static ParameterizedType newParameterizedTypeWithOwner(
Type ownerType, Class<?> rawType, Type... arguments) {
if (ownerType == null) {
return newParameterizedType(rawType, arguments);
}
// ParameterizedTypeImpl constructor already checks, but w... | public class class_name {
static ParameterizedType newParameterizedTypeWithOwner(
Type ownerType, Class<?> rawType, Type... arguments) {
if (ownerType == null) {
return newParameterizedType(rawType, arguments); // depends on control dependency: [if], data = [none]
}
// P... |
public class class_name {
public ResultSet getProcedureColumns(String catalog, String schemaPattern,
String procedureNamePattern,
String columnNamePattern) throws SQLException {
String sql;
if (haveInformationSchemaParameters()) {
/*
* Get info from information_schema.parameters
... | public class class_name {
public ResultSet getProcedureColumns(String catalog, String schemaPattern,
String procedureNamePattern,
String columnNamePattern) throws SQLException {
String sql;
if (haveInformationSchemaParameters()) {
/*
* Get info from information_schema.parameters
... |
public class class_name {
public double getStandardDeviation() {
Lock lock = this.getLock().readLock();
lock.lock();
try {
return this.sigma;
} finally {
lock.unlock();
}
} } | public class class_name {
public double getStandardDeviation() {
Lock lock = this.getLock().readLock();
lock.lock();
try {
return this.sigma; // depends on control dependency: [try], data = [none]
} finally {
lock.unlock();
}
} } |
public class class_name {
private Set<Integer> matchWithClosestAisMessageIfBufferLargeEnough(
long arrivalTime, Integer earliestTimestampLineIndex) {
String timestampLine = getLine(earliestTimestampLineIndex);
long time = getLineTime(earliestTimestampLineIndex);
log.debug("ts=" + timestampLine + ",time=" + ti... | public class class_name {
private Set<Integer> matchWithClosestAisMessageIfBufferLargeEnough(
long arrivalTime, Integer earliestTimestampLineIndex) {
String timestampLine = getLine(earliestTimestampLineIndex);
long time = getLineTime(earliestTimestampLineIndex);
log.debug("ts=" + timestampLine + ",time=" + ti... |
public class class_name {
public <A extends Annotation> A getAnnotationAnywhere(Class<A> annotationType) {
A anno = getAnnotation(annotationType);
if (anno == null) {
Class<?> clazz = (Class<?>) GenericTypeReflector.erase(type);
return clazz.getAnnotation(annotationType);
} else {
return anno;
}
} } | public class class_name {
public <A extends Annotation> A getAnnotationAnywhere(Class<A> annotationType) {
A anno = getAnnotation(annotationType);
if (anno == null) {
Class<?> clazz = (Class<?>) GenericTypeReflector.erase(type);
return clazz.getAnnotation(annotationType);
} else {
return anno; // depend... |
public class class_name {
protected void updateStyle(BoxStyle bstyle, TextPosition text)
{
String font = text.getFont().getName();
String family = null;
String weight = null;
String fstyle = null;
bstyle.setFontSize(text.getFontSizeInPt());
bstyle.setLineHeight(text... | public class class_name {
protected void updateStyle(BoxStyle bstyle, TextPosition text)
{
String font = text.getFont().getName();
String family = null;
String weight = null;
String fstyle = null;
bstyle.setFontSize(text.getFontSizeInPt());
bstyle.setLineHeight(text... |
public class class_name {
public static Provider getProvider() {
Provider provider = cProvider.get();
if (provider == null) {
provider = getDefaultProvider();
if (!cProvider.compareAndSet(null, provider)) {
provider = cProvider.get();
}
}
... | public class class_name {
public static Provider getProvider() {
Provider provider = cProvider.get();
if (provider == null) {
provider = getDefaultProvider(); // depends on control dependency: [if], data = [none]
if (!cProvider.compareAndSet(null, provider)) {
pr... |
public class class_name {
public Chain getCurrentChain(){
if ( current_model_pos >= structure.nrModels()){
return null;
}
List<Chain> model = structure.getModel(current_model_pos);
if ( current_chain_pos >= model.size() ){
return null;
}
return model.get(current_chain_pos);
} } | public class class_name {
public Chain getCurrentChain(){
if ( current_model_pos >= structure.nrModels()){
return null; // depends on control dependency: [if], data = [none]
}
List<Chain> model = structure.getModel(current_model_pos);
if ( current_chain_pos >= model.size() ){
return null; // depends o... |
public class class_name {
public void setDefaultIndicatorShape(Shape shape){
if(mUserSetSelectedIndicatorResId == 0){
if(shape == Shape.Oval){
mSelectedGradientDrawable.setShape(GradientDrawable.OVAL);
}else{
mSelectedGradientDrawable.setShape(GradientDra... | public class class_name {
public void setDefaultIndicatorShape(Shape shape){
if(mUserSetSelectedIndicatorResId == 0){
if(shape == Shape.Oval){
mSelectedGradientDrawable.setShape(GradientDrawable.OVAL); // depends on control dependency: [if], data = [none]
}else{
... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public Result combine(EvaluationCtx context,
@SuppressWarnings("rawtypes") List parameters,
@SuppressWarnings("rawtypes") List policyElements) {
logger.info("Combining using: " + getId... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public Result combine(EvaluationCtx context,
@SuppressWarnings("rawtypes") List parameters,
@SuppressWarnings("rawtypes") List policyElements) {
logger.info("Combining using: " + getId... |
public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer container) {
if (!GeometryUtil.has3DCoordinates(container))
return getDummyDescriptorValue(new CDKException("Molecule must have 3D coordinates"));
IAtomContainer clone;
IsotopeFactory factory;
... | public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer container) {
if (!GeometryUtil.has3DCoordinates(container))
return getDummyDescriptorValue(new CDKException("Molecule must have 3D coordinates"));
IAtomContainer clone;
IsotopeFactory factory;
... |
public class class_name {
public Packer setInsetLeft(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0);
}
gc.insets = new Insets(i.top, val, i.bottom, i.right);
setConstraints(comp, gc);
return this;
} } | public class class_name {
public Packer setInsetLeft(final int val) {
Insets i = gc.insets;
if (i == null) {
i = new Insets(0, 0, 0, 0); // depends on control dependency: [if], data = [none]
}
gc.insets = new Insets(i.top, val, i.bottom, i.right);
setConstraints(comp... |
public class class_name {
private void addToWatchList(final int addRow, final int lastStaticRow,
final List<Integer> watchList) {
if ((addRow > lastStaticRow) && !(watchList.contains(addRow))) {
watchList.add(addRow);
}
} } | public class class_name {
private void addToWatchList(final int addRow, final int lastStaticRow,
final List<Integer> watchList) {
if ((addRow > lastStaticRow) && !(watchList.contains(addRow))) {
watchList.add(addRow);
// depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Restricted(NoExternalUse.class)
public DiskSpace markNodeOfflineIfDiskspaceIsTooLow(Computer c) {
DiskSpace size = (DiskSpace) super.data(c);
if(size!=null && size.size < getThresholdBytes()) {
size.setTriggered(this.getClass(), true);
if(getDescriptor()... | public class class_name {
@Restricted(NoExternalUse.class)
public DiskSpace markNodeOfflineIfDiskspaceIsTooLow(Computer c) {
DiskSpace size = (DiskSpace) super.data(c);
if(size!=null && size.size < getThresholdBytes()) {
size.setTriggered(this.getClass(), true); // depends on control depen... |
public class class_name {
public ExecutionVertex getVertexByChannelID(final ChannelID id) {
final ExecutionEdge edge = this.edgeMap.get(id);
if (edge == null) {
return null;
}
if (id.equals(edge.getOutputChannelID())) {
return edge.getOutputGate().getVertex();
}
return edge.getInputGate().getVerte... | public class class_name {
public ExecutionVertex getVertexByChannelID(final ChannelID id) {
final ExecutionEdge edge = this.edgeMap.get(id);
if (edge == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (id.equals(edge.getOutputChannelID())) {
return edge.getOutputGate().g... |
public class class_name {
protected void configureOAuth20Client(final Collection<BaseClient> properties) {
val index = new AtomicInteger();
pac4jProperties.getOauth2()
.stream()
.filter(oauth -> StringUtils.isNotBlank(oauth.getId()) && StringUtils.isNotBlank(oauth.getSecret()))
... | public class class_name {
protected void configureOAuth20Client(final Collection<BaseClient> properties) {
val index = new AtomicInteger();
pac4jProperties.getOauth2()
.stream()
.filter(oauth -> StringUtils.isNotBlank(oauth.getId()) && StringUtils.isNotBlank(oauth.getSecret()))
... |
public class class_name {
@Override
public boolean isEmpty() {
registryLock.readLock().lock();
try {
return entryMap.isEmpty();
} finally {
registryLock.readLock().unlock();
}
} } | public class class_name {
@Override
public boolean isEmpty() {
registryLock.readLock().lock();
try {
return entryMap.isEmpty(); // depends on control dependency: [try], data = [none]
} finally {
registryLock.readLock().unlock();
}
} } |
public class class_name {
public void doEventSelected(final JRebirthEvent eventSelected, final Wave wave) {
// Same object (reference)
if (getEventModel() == eventSelected) {
view().getScaleTransition().play();
} else {
view().getScaleTransition().stop();
vie... | public class class_name {
public void doEventSelected(final JRebirthEvent eventSelected, final Wave wave) {
// Same object (reference)
if (getEventModel() == eventSelected) {
view().getScaleTransition().play(); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public final EObject ruleAtom() throws RecognitionException {
EObject current = null;
Token lv_cardinality_2_1=null;
Token lv_cardinality_2_2=null;
Token lv_cardinality_2_3=null;
EObject this_OtherElement_0 = null;
EObject this_RuleOptions_3 =... | public class class_name {
public final EObject ruleAtom() throws RecognitionException {
EObject current = null;
Token lv_cardinality_2_1=null;
Token lv_cardinality_2_2=null;
Token lv_cardinality_2_3=null;
EObject this_OtherElement_0 = null;
EObject this_RuleOptions_3 =... |
public class class_name {
@Override
public List<String> resolveHostFromSrvRecords(final String srvHost) {
String srvHostDomain = srvHost.substring(srvHost.indexOf('.') + 1);
List<String> srvHostDomainParts = asList(srvHostDomain.split("\\."));
List<String> hosts = new ArrayList<String>();
... | public class class_name {
@Override
public List<String> resolveHostFromSrvRecords(final String srvHost) {
String srvHostDomain = srvHost.substring(srvHost.indexOf('.') + 1);
List<String> srvHostDomainParts = asList(srvHostDomain.split("\\."));
List<String> hosts = new ArrayList<String>();
... |
public class class_name {
protected void updateFade (float time)
{
if (_fadeMode == FadeMode.NONE) {
return;
}
float alpha = Math.min((_fadeElapsed += time) / _fadeInterval, 1f);
_source.setGain(_gain * (_fadeMode == FadeMode.IN ? alpha : (1f - alpha)));
if (alph... | public class class_name {
protected void updateFade (float time)
{
if (_fadeMode == FadeMode.NONE) {
return; // depends on control dependency: [if], data = [none]
}
float alpha = Math.min((_fadeElapsed += time) / _fadeInterval, 1f);
_source.setGain(_gain * (_fadeMode == ... |
public class class_name {
public java.util.List<DeploymentInfo> getDeploymentsInfo() {
if (deploymentsInfo == null) {
deploymentsInfo = new com.amazonaws.internal.SdkInternalList<DeploymentInfo>();
}
return deploymentsInfo;
} } | public class class_name {
public java.util.List<DeploymentInfo> getDeploymentsInfo() {
if (deploymentsInfo == null) {
deploymentsInfo = new com.amazonaws.internal.SdkInternalList<DeploymentInfo>(); // depends on control dependency: [if], data = [none]
}
return deploymentsInfo;
}... |
public class class_name {
public LocalTransactionCoordinator suspend()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "suspend", this);
final LocalTranCoordImpl ltc = _coord;
if (ltc != null)
{
_coord = null;
ltc.suspend(); // suspend any native context
... | public class class_name {
public LocalTransactionCoordinator suspend()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "suspend", this);
final LocalTranCoordImpl ltc = _coord;
if (ltc != null)
{
_coord = null; // depends on control dependency: [if], data = [none]
lt... |
public class class_name {
public Single<ClientCredentials> issueClientCredentials(HttpRequest req) throws OAuthException {
Single<ClientCredentials> creds;
String contentType = req.headers().get(HttpHeaderNames.CONTENT_TYPE);
if (contentType != null && contentType.contains(HttpHeaderValues.APP... | public class class_name {
public Single<ClientCredentials> issueClientCredentials(HttpRequest req) throws OAuthException {
Single<ClientCredentials> creds;
String contentType = req.headers().get(HttpHeaderNames.CONTENT_TYPE);
if (contentType != null && contentType.contains(HttpHeaderValues.APP... |
public class class_name {
public static boolean intersects(Bbox one, Bbox two) {
if (two.getX() > one.getMaxX()) {
return false;
}
if (two.getY() > one.getMaxY()) {
return false;
}
if (two.getMaxX() < one.getX()) {
return false;
}
if (two.getMaxY() < one.getY()) {
return false;
}
return t... | public class class_name {
public static boolean intersects(Bbox one, Bbox two) {
if (two.getX() > one.getMaxX()) {
return false; // depends on control dependency: [if], data = [none]
}
if (two.getY() > one.getMaxY()) {
return false; // depends on control dependency: [if], data = [none]
}
if (two.getMax... |
public class class_name {
public void clearCommand(Command command) {
List controls = getControlsFor(command);
for (int i=0;i<controls.size();i++) {
unbindCommand((Control) controls.get(i));
}
} } | public class class_name {
public void clearCommand(Command command) {
List controls = getControlsFor(command);
for (int i=0;i<controls.size();i++) {
unbindCommand((Control) controls.get(i)); // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
public int read() throws IOException {
// If we got something in the char buffer, let's use it.
if (0 != fCharCount) {
fCharCount--;
return ((int) fCharBuf[fCharCount]) & 0xFFFF;
}
int b0 = fInputStream.read() & 0xff; // 1st byte
... | public class class_name {
public int read() throws IOException {
// If we got something in the char buffer, let's use it.
if (0 != fCharCount) {
fCharCount--;
return ((int) fCharBuf[fCharCount]) & 0xFFFF;
}
int b0 = fInputStream.read() & 0xff; // 1st byte
... |
public class class_name {
private byte[] getBytes() {
byte[] bytes = new byte[15];
long mask = 0x00000000000000ff;
for (int i = 14; i >= 7; i--) {
bytes[i] = (byte) ((low & mask) >>> ((14 - i) << 3));
mask = mask << 8;
}
mask = 0x00000000000000ff;
... | public class class_name {
private byte[] getBytes() {
byte[] bytes = new byte[15];
long mask = 0x00000000000000ff;
for (int i = 14; i >= 7; i--) {
bytes[i] = (byte) ((low & mask) >>> ((14 - i) << 3)); // depends on control dependency: [for], data = [i]
mask = mask << 8;... |
public class class_name {
public boolean sendRequest(String requesttype, boolean wantreply,
byte[] requestdata, boolean isActivity) throws SshException {
synchronized (this) {
ByteArrayWriter msg = new ByteArrayWriter();
try {
msg.write(SSH_MSG_CHANNEL_REQUEST);
msg.writeInt(remoteid);
msg.writ... | public class class_name {
public boolean sendRequest(String requesttype, boolean wantreply,
byte[] requestdata, boolean isActivity) throws SshException {
synchronized (this) {
ByteArrayWriter msg = new ByteArrayWriter();
try {
msg.write(SSH_MSG_CHANNEL_REQUEST); // depends on control dependency: [try],... |
public class class_name {
public void cleanup(){
synchronized (mBeanServer) {
for (ObjectName beanName : beansNames)
try {
mBeanServer.unregisterMBean(beanName);
} catch (InstanceNotFoundException ignored) {
// Bean previousl... | public class class_name {
public void cleanup(){
synchronized (mBeanServer) {
for (ObjectName beanName : beansNames)
try {
mBeanServer.unregisterMBean(beanName); // depends on control dependency: [try], data = [none]
} catch (InstanceNotFoundExc... |
public class class_name {
public JobFlowInstancesConfig withEc2SubnetIds(String... ec2SubnetIds) {
if (this.ec2SubnetIds == null) {
setEc2SubnetIds(new com.amazonaws.internal.SdkInternalList<String>(ec2SubnetIds.length));
}
for (String ele : ec2SubnetIds) {
this.ec2Subne... | public class class_name {
public JobFlowInstancesConfig withEc2SubnetIds(String... ec2SubnetIds) {
if (this.ec2SubnetIds == null) {
setEc2SubnetIds(new com.amazonaws.internal.SdkInternalList<String>(ec2SubnetIds.length)); // depends on control dependency: [if], data = [none]
}
for (... |
public class class_name {
@Override
public void wantWrite()
{
if (hStdinWidow != null && !NuWinNT.INVALID_HANDLE_VALUE.getPointer().equals(hStdinWidow.getPointer())) {
userWantsWrite.set(true);
myProcessor.wantWrite(this);
}
} } | public class class_name {
@Override
public void wantWrite()
{
if (hStdinWidow != null && !NuWinNT.INVALID_HANDLE_VALUE.getPointer().equals(hStdinWidow.getPointer())) {
userWantsWrite.set(true); // depends on control dependency: [if], data = [none]
myProcessor.wantWrite(this); // depends o... |
public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer ac) {
ac = clone(ac); // don't mod original
int rotatableBondsCount = 0;
int degree0;
int degree1;
IRingSet ringSet;
try {
ringSet = new SpanningTree(ac).getBasicRings();
... | public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer ac) {
ac = clone(ac); // don't mod original
int rotatableBondsCount = 0;
int degree0;
int degree1;
IRingSet ringSet;
try {
ringSet = new SpanningTree(ac).getBasicRings(); ... |
public class class_name {
public void update (int timeout) throws IOException {
updateThread = Thread.currentThread();
synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection.
}
long startTime = System.currentTimeMillis();
int select = 0;
if (timeout... | public class class_name {
public void update (int timeout) throws IOException {
updateThread = Thread.currentThread();
synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection.
}
long startTime = System.currentTimeMillis();
int select = 0;
if (timeout... |
public class class_name {
private void setProtocols(String protocolsString, boolean append) {
List<Protocol> protocolsList = new ArrayList<>();
if (append) {
protocolsList.addAll(client.getProtocols());
}
for (String protocol : protocolsString.split(",", -1)) {
try {
protocolsList.a... | public class class_name {
private void setProtocols(String protocolsString, boolean append) {
List<Protocol> protocolsList = new ArrayList<>();
if (append) {
protocolsList.addAll(client.getProtocols()); // depends on control dependency: [if], data = [none]
}
for (String protocol : protocolsString... |
public class class_name {
@Override public final void lcompute() {
if( _hi-_lo >= 2 ) { // Multi-key case: just divide-and-conquer to 1 key
final int mid = (_lo+_hi)>>>1; // Mid-point
assert _left == null && _rite == null;
T l = clone();
T r = clone();
_left = l; l._reservedMem = 0;
... | public class class_name {
@Override public final void lcompute() {
if( _hi-_lo >= 2 ) { // Multi-key case: just divide-and-conquer to 1 key
final int mid = (_lo+_hi)>>>1; // Mid-point
assert _left == null && _rite == null; // depends on control dependency: [if], data = [none]
T l = clone();
... |
public class class_name {
private Map<Field, Bind> bfields(@NonNull final Class<?> klass) {
Map<Field, Bind> value = bfields.get(klass);
if (value == null) {
value = fields(klass, Bind.class);
for (Field field : value.keySet()) {
if (!field.isAccessible()) {
... | public class class_name {
private Map<Field, Bind> bfields(@NonNull final Class<?> klass) {
Map<Field, Bind> value = bfields.get(klass);
if (value == null) {
value = fields(klass, Bind.class); // depends on control dependency: [if], data = [none]
for (Field field : value.keySet(... |
public class class_name {
@Override
public <T> T execute(SolrCallback<T> action) {
Assert.notNull(action, "SolrCallback must not be null!");
try {
SolrClient solrClient = this.getSolrClient();
return action.doInSolr(solrClient);
} catch (Exception e) {
DataAccessException resolved = getExceptionTransl... | public class class_name {
@Override
public <T> T execute(SolrCallback<T> action) {
Assert.notNull(action, "SolrCallback must not be null!");
try {
SolrClient solrClient = this.getSolrClient();
return action.doInSolr(solrClient); // depends on control dependency: [try], data = [none]
} catch (Exception e)... |
public class class_name {
public void remove(String item) {
if(item == null || item.isEmpty()){
return;
}
if(LOGGER.isDebugEnabled()) {
LOGGER.debug("移除词性:" + item);
}
//从根节点开始查找
//获取根节点
TrieNode<V> node = getRootNode(item.charAt(0));
... | public class class_name {
public void remove(String item) {
if(item == null || item.isEmpty()){
return; // depends on control dependency: [if], data = [none]
}
if(LOGGER.isDebugEnabled()) {
LOGGER.debug("移除词性:" + item); // depends on control dependency: [if], data = [non... |
public class class_name {
@Override
public final Counts run(final File inputFile, final File outputFile) {
Counts result = null;
FileSystemDirectoryHelper dirHelper = new FileSystemDirectoryHelper();
RunnerHelper currentRunner = DependencyManager.getOrCreate(RunnerHelper.class);
RunnerHelper helper = new Run... | public class class_name {
@Override
public final Counts run(final File inputFile, final File outputFile) {
Counts result = null;
FileSystemDirectoryHelper dirHelper = new FileSystemDirectoryHelper();
RunnerHelper currentRunner = DependencyManager.getOrCreate(RunnerHelper.class);
RunnerHelper helper = new Run... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.