code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void revert() {
for (Iterator i = listeners.iterator(); i.hasNext();) {
((CommitTriggerListener) i.next()).revert();
}
} } | public class class_name {
public void revert() {
for (Iterator i = listeners.iterator(); i.hasNext();) {
((CommitTriggerListener) i.next()).revert(); // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
public String fixValue(String value) {
logger.trace("Fix label value : ", value);
if (value != null && !value.equals("")) {
value = value.toUpperCase();
if (value.startsWith("MI "))
value = value.replaceFirst("MI ", "");
if (value.startsWith("MEN "))
value = value.... | public class class_name {
public String fixValue(String value) {
logger.trace("Fix label value : ", value);
if (value != null && !value.equals("")) {
value = value.toUpperCase();
// depends on control dependency: [if], data = [none]
if (value.startsWith("MI "))
value = value.replaceFirst("MI ", "");... |
public class class_name {
private static Map<String, String> getRankMap(Utils utils, List<? extends Element> params){
if (params == null) {
return null;
}
HashMap<String, String> result = new HashMap<>();
int rank = 0;
for (Element e : params) {
String na... | public class class_name {
private static Map<String, String> getRankMap(Utils utils, List<? extends Element> params){
if (params == null) {
return null; // depends on control dependency: [if], data = [none]
}
HashMap<String, String> result = new HashMap<>();
int rank = 0;
... |
public class class_name {
private List< Dashboard > findExistingDashboardsFromRequest( DashboardRemoteRequest request ) {
String businessService = request.getMetaData().getBusinessService();
String businessApplication = request.getMetaData().getBusinessApplication();
if( !StringUtils.isEmpty( ... | public class class_name {
private List< Dashboard > findExistingDashboardsFromRequest( DashboardRemoteRequest request ) {
String businessService = request.getMetaData().getBusinessService();
String businessApplication = request.getMetaData().getBusinessApplication();
if( !StringUtils.isEmpty( ... |
public class class_name {
public void onEvent(FSMState state) {
if (logger.isEnabledFor(Priority.WARN)) {
logger.warn(String.format("PENDING timedout for As=%s", this.asImpl.getName()));
}
// Clear the Pending Queue for this As
this.asImpl.clearPendingQueue();
thi... | public class class_name {
public void onEvent(FSMState state) {
if (logger.isEnabledFor(Priority.WARN)) {
logger.warn(String.format("PENDING timedout for As=%s", this.asImpl.getName())); // depends on control dependency: [if], data = [none]
}
// Clear the Pending Queue for this As... |
public class class_name {
protected Token fetchSpecialId() {
Token result = Token.create(Token.TokenType.SPECIAL_ID, input.current());
result.addToTrigger(input.consume());
while (isIdentifierChar(input.current())) {
result.addToContent(input.consume());
}
return han... | public class class_name {
protected Token fetchSpecialId() {
Token result = Token.create(Token.TokenType.SPECIAL_ID, input.current());
result.addToTrigger(input.consume());
while (isIdentifierChar(input.current())) {
result.addToContent(input.consume()); // depends on control depend... |
public class class_name {
public void evaluate(DoubleSolution solution) {
int numberOfVariables = getNumberOfVariables();
int numberOfObjectives = getNumberOfObjectives() ;
double[] f = new double[numberOfObjectives];
double[] x = new double[numberOfVariables] ;
int k = getNumberOfVariable... | public class class_name {
public void evaluate(DoubleSolution solution) {
int numberOfVariables = getNumberOfVariables();
int numberOfObjectives = getNumberOfObjectives() ;
double[] f = new double[numberOfObjectives];
double[] x = new double[numberOfVariables] ;
int k = getNumberOfVariable... |
public class class_name {
private void addScriptingLineInfo(Element jspElement) {
JspId jspId = new JspId(jspElement.getAttributeNS(Constants.JSP_NAMESPACE, "id"));
if (fileList.contains(jspId.getFilePath()) == false) {
smapStratum.addFile(jspId.getFileName(), jspId.getFilePath());
... | public class class_name {
private void addScriptingLineInfo(Element jspElement) {
JspId jspId = new JspId(jspElement.getAttributeNS(Constants.JSP_NAMESPACE, "id"));
if (fileList.contains(jspId.getFilePath()) == false) {
smapStratum.addFile(jspId.getFileName(), jspId.getFilePath()); // depen... |
public class class_name {
public static Object getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) {
try {
Method method = annotationType.getDeclaredMethod(attributeName, new Class[0]);
return method.getDefaultValue();
}
catch (Exception ex)... | public class class_name {
public static Object getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) {
try {
Method method = annotationType.getDeclaredMethod(attributeName, new Class[0]);
return method.getDefaultValue(); // depends on control dependency: [try... |
public class class_name {
protected int copyToBuffer(StringBuilder s, int initialLen, int startChar, int currentChar) {
int overrun = 0;
int currentSize = s.length() - initialLen;
int readSize = currentChar - startChar;
if (maxLine > -1 && currentSize + readSize > maxLine) {
int adjustedReadSize ... | public class class_name {
protected int copyToBuffer(StringBuilder s, int initialLen, int startChar, int currentChar) {
int overrun = 0;
int currentSize = s.length() - initialLen;
int readSize = currentChar - startChar;
if (maxLine > -1 && currentSize + readSize > maxLine) {
int adjustedReadSize ... |
public class class_name {
public int totalThreadTransactions() {
ArrayList<JtxTransaction> txList = txStack.get();
if (txList == null) {
return 0;
}
return txList.size();
} } | public class class_name {
public int totalThreadTransactions() {
ArrayList<JtxTransaction> txList = txStack.get();
if (txList == null) {
return 0; // depends on control dependency: [if], data = [none]
}
return txList.size();
} } |
public class class_name {
private Model makeModel() {
Model model = new DefaultModel();
Mapping map = model.getMapping();
//Create 4 online nodes
for (int i = 0; i < 4; i++) {
Node n = model.newNode();
nodes.add(n);
map.addOnlineNode(n);
}
... | public class class_name {
private Model makeModel() {
Model model = new DefaultModel();
Mapping map = model.getMapping();
//Create 4 online nodes
for (int i = 0; i < 4; i++) {
Node n = model.newNode();
nodes.add(n); // depends on control dependency: [for], data ... |
public class class_name {
private final void validateChar(int value)
throws XMLStreamException
{
/* 24-Jan-2006, TSa: Ok, "high" Unicode chars are problematic,
* need to be reported by a surrogate pair..
*/
if (value >= 0xD800) {
if (value < 0xE000) { // no s... | public class class_name {
private final void validateChar(int value)
throws XMLStreamException
{
/* 24-Jan-2006, TSa: Ok, "high" Unicode chars are problematic,
* need to be reported by a surrogate pair..
*/
if (value >= 0xD800) {
if (value < 0xE000) { // no s... |
public class class_name {
public void close() {
if (open) {
PdfReaderInstance ri = currentPdfReaderInstance;
pdf.close();
super.close();
if (ri != null) {
try {
ri.getReader().close();
ri.getReaderFile().clo... | public class class_name {
public void close() {
if (open) {
PdfReaderInstance ri = currentPdfReaderInstance;
pdf.close(); // depends on control dependency: [if], data = [none]
super.close(); // depends on control dependency: [if], data = [none]
if (ri != null) {
... |
public class class_name {
FacesContext getFacesContextWithoutServletContextLookup() {
FacesContext result = facesContextCurrentInstance.get();
if (null == result) {
if (null != facesContextThreadInitContextMap && !facesContextThreadInitContextMap.isEmpty()) {
result = facesC... | public class class_name {
FacesContext getFacesContextWithoutServletContextLookup() {
FacesContext result = facesContextCurrentInstance.get();
if (null == result) {
if (null != facesContextThreadInitContextMap && !facesContextThreadInitContextMap.isEmpty()) {
result = facesC... |
public class class_name {
public static boolean isSupportedJDKType(TypeName typeName) {
if (typeName.isPrimitive()) {
return getPrimitiveTransform(typeName) != null;
}
String name = typeName.toString();
if (name.startsWith("java.lang")) {
return getLanguageTransform(typeName) != null;
}
if (name.s... | public class class_name {
public static boolean isSupportedJDKType(TypeName typeName) {
if (typeName.isPrimitive()) {
return getPrimitiveTransform(typeName) != null; // depends on control dependency: [if], data = [none]
}
String name = typeName.toString();
if (name.startsWith("java.lang")) {
return get... |
public class class_name {
public ConfigurableEmitter duplicate() {
ConfigurableEmitter theCopy = null;
try {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
ParticleIO.saveEmitter(bout, this);
ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
theCopy = ParticleIO.... | public class class_name {
public ConfigurableEmitter duplicate() {
ConfigurableEmitter theCopy = null;
try {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
ParticleIO.saveEmitter(bout, this);
// depends on control dependency: [try], data = [none]
ByteArrayInputStream bin = new ByteArrayInp... |
public class class_name {
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
try {
HashSet<Class<?>> registeredTypes = new HashSet<>();
// Get Service Broker
ServiceBroker broker = applicationContext.getBean(ServiceBroker.class);
// Find ... | public class class_name {
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
try {
HashSet<Class<?>> registeredTypes = new HashSet<>();
// Get Service Broker
ServiceBroker broker = applicationContext.getBean(ServiceBroker.class);
// Find ... |
public class class_name {
public Discriminator getDiscriminator() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "getDiscriminator should not be called in UDPChannel");
}
return null;
} } | public class class_name {
public Discriminator getDiscriminator() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "getDiscriminator should not be called in UDPChannel"); // depends on control dependency: [if], data = [none]
}
return null;
... |
public class class_name {
public List<String> getSectionNames() {
List<String> sections = new ArrayList<String>();
for (Map.Entry<String, String> entry : this.entrySet()) {
String key = entry.getKey();
int pos = key.indexOf('.');
if (pos > 0)
key = key.substring(0, pos);
// Perform case sensitive... | public class class_name {
public List<String> getSectionNames() {
List<String> sections = new ArrayList<String>();
for (Map.Entry<String, String> entry : this.entrySet()) {
String key = entry.getKey();
int pos = key.indexOf('.');
if (pos > 0)
key = key.substring(0, pos);
// Perform case sensitive... |
public class class_name {
@Override
public final String getRuleSummary() {
final Collection<RuleViolation> values = ruleViolationMap.values();
final StringBuilder builder = new StringBuilder();
for (final RuleViolation ruleViolation : values) {
builder.append('[').append(ruleViolation.getRuleName()).append('... | public class class_name {
@Override
public final String getRuleSummary() {
final Collection<RuleViolation> values = ruleViolationMap.values();
final StringBuilder builder = new StringBuilder();
for (final RuleViolation ruleViolation : values) {
builder.append('[').append(ruleViolation.getRuleName()).append('... |
public class class_name {
public static Object invokeMethod(Object object, Method method, Object... args) throws Throwable {
try {
return method.invoke(object, args);
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
} } | public class class_name {
public static Object invokeMethod(Object object, Method method, Object... args) throws Throwable {
try {
return method.invoke(object, args); // depends on control dependency: [try], data = [none]
} catch (InvocationTargetException e) {
throw e.getTarget... |
public class class_name {
@Nullable
public ExpressionTreeElement addTreeElement(@Nonnull final ExpressionTreeElement element) {
assertNotEmptySlot();
assertNotNull("The element is null", element);
final int newElementPriority = element.getPriority();
ExpressionTreeElement result = this;
final ... | public class class_name {
@Nullable
public ExpressionTreeElement addTreeElement(@Nonnull final ExpressionTreeElement element) {
assertNotEmptySlot();
assertNotNull("The element is null", element);
final int newElementPriority = element.getPriority();
ExpressionTreeElement result = this;
final ... |
public class class_name {
public static String decode(String str) {
if (str != null) {
try {
return URLDecoder.decode(str, UTF_8.name());
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("JVM must support UTF-8", e);
}
}
return null;
} } | public class class_name {
public static String decode(String str) {
if (str != null) {
try {
return URLDecoder.decode(str, UTF_8.name()); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("JVM must support UTF-8"... |
public class class_name {
private void processServletMappingConfig(ServletMapping servletMapping) throws UnableToAdaptException {
String servletName = servletMapping.getServletName();
Map<String, ConfigItem<List<String>>> servletMappingMap = configurator.getConfigItemMap("servlet-mapping");
Con... | public class class_name {
private void processServletMappingConfig(ServletMapping servletMapping) throws UnableToAdaptException {
String servletName = servletMapping.getServletName();
Map<String, ConfigItem<List<String>>> servletMappingMap = configurator.getConfigItemMap("servlet-mapping");
Con... |
public class class_name {
public PortletType<PortletDescriptor> getOrCreatePortlet()
{
List<Node> nodeList = model.get("portlet");
if (nodeList != null && nodeList.size() > 0)
{
return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, nodeList.get(0));
}
return c... | public class class_name {
public PortletType<PortletDescriptor> getOrCreatePortlet()
{
List<Node> nodeList = model.get("portlet");
if (nodeList != null && nodeList.size() > 0)
{
return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, nodeList.get(0)); // depends on control ... |
public class class_name {
public static boolean copy(File source, File dest) {
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
boolean result = true;
try {
bis = new BufferedInputStream(new FileInputStream(source));
bos = new BufferedOutputStream... | public class class_name {
public static boolean copy(File source, File dest) {
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
boolean result = true;
try {
bis = new BufferedInputStream(new FileInputStream(source)); // depends on control dependency: [try], d... |
public class class_name {
@SuppressWarnings("unchecked")
public void addBeanContextMembershipListener(BeanContextMembershipListener listener)
{
if (listener == null)
{
throw new NullPointerException();
}
synchronized (bcmListeners)
{
if (!bcmListeners.contains(listener))
{
bcmListeners.add(lis... | public class class_name {
@SuppressWarnings("unchecked")
public void addBeanContextMembershipListener(BeanContextMembershipListener listener)
{
if (listener == null)
{
throw new NullPointerException();
}
synchronized (bcmListeners)
{
if (!bcmListeners.contains(listener))
{
bcmListeners.add(lis... |
public class class_name {
public void marshall(UserPoolClientType userPoolClientType, ProtocolMarshaller protocolMarshaller) {
if (userPoolClientType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(UserPoolClientType userPoolClientType, ProtocolMarshaller protocolMarshaller) {
if (userPoolClientType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
@Nullable
public static PathAndQuery parse(@Nullable String rawPath) {
if (CACHE != null && rawPath != null) {
final PathAndQuery parsed = CACHE.getIfPresent(rawPath);
if (parsed != null) {
return parsed;
}
}
retu... | public class class_name {
@Nullable
public static PathAndQuery parse(@Nullable String rawPath) {
if (CACHE != null && rawPath != null) {
final PathAndQuery parsed = CACHE.getIfPresent(rawPath);
if (parsed != null) {
return parsed; // depends on control dependency: [i... |
public class class_name {
private void adaptHeaderIcon(@Nullable final DrawableAnimation animation) {
if (headerIconImageView != null) {
ImageViewCompat.setImageTintList(headerIconImageView, headerIconTintList);
ImageViewCompat.setImageTintMode(headerIconImageView, headerIconTintMode);
... | public class class_name {
private void adaptHeaderIcon(@Nullable final DrawableAnimation animation) {
if (headerIconImageView != null) {
ImageViewCompat.setImageTintList(headerIconImageView, headerIconTintList); // depends on control dependency: [if], data = [(headerIconImageView]
Image... |
public class class_name {
public java.util.List<String> getCompatibleRuntimes() {
if (compatibleRuntimes == null) {
compatibleRuntimes = new com.amazonaws.internal.SdkInternalList<String>();
}
return compatibleRuntimes;
} } | public class class_name {
public java.util.List<String> getCompatibleRuntimes() {
if (compatibleRuntimes == null) {
compatibleRuntimes = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return compatibleRuntimes;
} } |
public class class_name {
public static StateBackend fromApplicationOrConfigOrDefault(
@Nullable StateBackend fromApplication,
Configuration config,
ClassLoader classLoader,
@Nullable Logger logger) throws IllegalConfigurationException, DynamicCodeLoadingException, IOException {
checkNotNull(config, "co... | public class class_name {
public static StateBackend fromApplicationOrConfigOrDefault(
@Nullable StateBackend fromApplication,
Configuration config,
ClassLoader classLoader,
@Nullable Logger logger) throws IllegalConfigurationException, DynamicCodeLoadingException, IOException {
checkNotNull(config, "co... |
public class class_name {
public String getProxyRemoteAddr(String realIpHeader) {
String ip = null;
if (realIpHeader != null && realIpHeader.length() != 0) {
ip = getHeaderString(realIpHeader);
}
if (StringUtils.isBlank(ip)) {
ip = getHeaderString("X-Real-IP");
... | public class class_name {
public String getProxyRemoteAddr(String realIpHeader) {
String ip = null;
if (realIpHeader != null && realIpHeader.length() != 0) {
ip = getHeaderString(realIpHeader); // depends on control dependency: [if], data = [(realIpHeader]
}
if (StringUtils.... |
public class class_name {
public V put(K key, V value) {
Object k = maskNull(key);
int h = sun.misc.Hashing.singleWordWangJenkinsHash(k);
Entry<K,V>[] tab = getTable();
int i = indexFor(h, tab.length);
for (Entry<K,V> e = tab[i]; e != null; e = e.next) {
if (h == e.... | public class class_name {
public V put(K key, V value) {
Object k = maskNull(key);
int h = sun.misc.Hashing.singleWordWangJenkinsHash(k);
Entry<K,V>[] tab = getTable();
int i = indexFor(h, tab.length);
for (Entry<K,V> e = tab[i]; e != null; e = e.next) {
if (h == e.... |
public class class_name {
public static byte[] decode(String in) {
in = in.replaceAll("\\r|\\n","");
if(in.length() % 4 != 0) {
throw new IllegalArgumentException("The length of the input string must be a multiple of four.");
}
if(!in.matches("^[A-Za-z0-9+/]*[=]{0,3}$")) {
throw new IllegalArgumentExce... | public class class_name {
public static byte[] decode(String in) {
in = in.replaceAll("\\r|\\n","");
if(in.length() % 4 != 0) {
throw new IllegalArgumentException("The length of the input string must be a multiple of four.");
}
if(!in.matches("^[A-Za-z0-9+/]*[=]{0,3}$")) {
throw new IllegalArgumentExce... |
public class class_name {
public TaskExecution getTaskProfile(String taskPath) {
TaskExecution result = tasks.get(taskPath);
if (result == null) {
result = new TaskExecution(taskPath);
tasks.put(taskPath, result);
}
return result;
} } | public class class_name {
public TaskExecution getTaskProfile(String taskPath) {
TaskExecution result = tasks.get(taskPath);
if (result == null) {
result = new TaskExecution(taskPath); // depends on control dependency: [if], data = [none]
tasks.put(taskPath, result); // depends ... |
public class class_name {
private ParameterBinding getBindingFor(Object ebeanQuery, int position, Parameter parameter) {
Assert.notNull(ebeanQuery, "EbeanQueryWrapper must not be null!");
Assert.notNull(parameter, "Parameter must not be null!");
if (parameter.isNamedParameter()) {
... | public class class_name {
private ParameterBinding getBindingFor(Object ebeanQuery, int position, Parameter parameter) {
Assert.notNull(ebeanQuery, "EbeanQueryWrapper must not be null!");
Assert.notNull(parameter, "Parameter must not be null!");
if (parameter.isNamedParameter()) {
... |
public class class_name {
public static CmsRelationType valueOfXml(String name) {
CmsRelationType result = valueOfInternal(name);
if (result == null) {
result = valueOf(PREFIX_XML + name);
}
return result;
} } | public class class_name {
public static CmsRelationType valueOfXml(String name) {
CmsRelationType result = valueOfInternal(name);
if (result == null) {
result = valueOf(PREFIX_XML + name); // depends on control dependency: [if], data = [none]
}
return result;
} } |
public class class_name {
public UNode getShardStats(String shardName) {
try {
// Send a GET request to "/{application}/_shards/{shard}"
StringBuilder uri = new StringBuilder(Utils.isEmpty(m_restClient.getApiPrefix()) ? "" : "/" + m_restClient.getApiPrefix()); ... | public class class_name {
public UNode getShardStats(String shardName) {
try {
// Send a GET request to "/{application}/_shards/{shard}"
StringBuilder uri = new StringBuilder(Utils.isEmpty(m_restClient.getApiPrefix()) ? "" : "/" + m_restClient.getApiPrefix()); ... |
public class class_name {
public boolean apply(final MappedClass mappedClass, final MappedField mappedField, final Object value,
final List<ValidationFailure> validationFailures) {
if (appliesTo(mappedClass, mappedField)) {
Class classOfValue = value.getClass();
... | public class class_name {
public boolean apply(final MappedClass mappedClass, final MappedField mappedField, final Object value,
final List<ValidationFailure> validationFailures) {
if (appliesTo(mappedClass, mappedField)) {
Class classOfValue = value.getClass();
... |
public class class_name {
public Rectangle getCellRect(int row, int column, boolean includeSpacing) {
Rectangle r = new Rectangle();
boolean valid = true;
if (row < 0) {
// y = height = 0;
valid = false;
} else if (row >= getRowCount()) {
r.y = getHeight();
valid = false;
} else {
r.... | public class class_name {
public Rectangle getCellRect(int row, int column, boolean includeSpacing) {
Rectangle r = new Rectangle();
boolean valid = true;
if (row < 0) {
// y = height = 0;
valid = false;
// depends on control dependency: [if], data = [none]
} else if (row >= getRowCount()) {
r.... |
public class class_name {
public String buildLanguageList() {
try {
StringBuffer retValue = new StringBuffer(512);
retValue.append("<table border=\"0\">\n");
// get locale for current element
Locale elLocale = getElementLocale();
// get locale name... | public class class_name {
public String buildLanguageList() {
try {
StringBuffer retValue = new StringBuffer(512);
retValue.append("<table border=\"0\">\n"); // depends on control dependency: [try], data = [none]
// get locale for current element
Locale elLocal... |
public class class_name {
public void marshall(DetachPolicyRequest detachPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (detachPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(DetachPolicyRequest detachPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (detachPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public static int find(Object[] arr, int start, int end, Object valueToFind) {
assert arr != null;
assert end >= 0;
assert end <= arr.length;
for (int i = start; i < end; i++) {
if (Objects.equals(arr[i], valueToFind)) {
return i;
}
}
return NOT_... | public class class_name {
public static int find(Object[] arr, int start, int end, Object valueToFind) {
assert arr != null;
assert end >= 0;
assert end <= arr.length;
for (int i = start; i < end; i++) {
if (Objects.equals(arr[i], valueToFind)) {
return i; // depends on control dependen... |
public class class_name {
@Override
public void onPushMsg(Context var1, byte[] var2, String var3) {
try {
String message = new String(var2, "UTF-8");
AndroidNotificationManager androidNotificationManager = AndroidNotificationManager.getInstance();
androidNotificationManager.processMixPushMessag... | public class class_name {
@Override
public void onPushMsg(Context var1, byte[] var2, String var3) {
try {
String message = new String(var2, "UTF-8");
AndroidNotificationManager androidNotificationManager = AndroidNotificationManager.getInstance();
androidNotificationManager.processMixPushMessag... |
public class class_name {
private void addInitial(G g) {
Set<T> typeCounts = g.edgeTypes();
LinkedList<Map.Entry<G,Integer>> graphs = typesToGraphs.get(typeCounts);
if (graphs == null) {
graphs = new LinkedList<Map.Entry<G,Integer>>();
typesToGraphs.put(new HashSet<T>(ty... | public class class_name {
private void addInitial(G g) {
Set<T> typeCounts = g.edgeTypes();
LinkedList<Map.Entry<G,Integer>> graphs = typesToGraphs.get(typeCounts);
if (graphs == null) {
graphs = new LinkedList<Map.Entry<G,Integer>>(); // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public void setValueAt(final Object value, final int row, final int col) {
if (!editable) {
throw new IllegalStateException("Attempted to set a value on an uneditable model");
}
TableTreeNode node = getNodeAtLine(row);
Object bean = node.getData();
String property = p... | public class class_name {
@Override
public void setValueAt(final Object value, final int row, final int col) {
if (!editable) {
throw new IllegalStateException("Attempted to set a value on an uneditable model");
}
TableTreeNode node = getNodeAtLine(row);
Object bean = node.getData();
String property = p... |
public class class_name {
public static Field findField(Class<?> type, String fieldName ) {
while( type != null ) {
Field[] fields = type.getDeclaredFields();
for( Field field: fields ) {
if( field.getName().equals(fieldName) )
return field;
... | public class class_name {
public static Field findField(Class<?> type, String fieldName ) {
while( type != null ) {
Field[] fields = type.getDeclaredFields();
for( Field field: fields ) {
if( field.getName().equals(fieldName) )
return field;
... |
public class class_name {
public void marshall(Output output, ProtocolMarshaller protocolMarshaller) {
if (output == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(output.getName(), NAME_BINDING);
... | public class class_name {
public void marshall(Output output, ProtocolMarshaller protocolMarshaller) {
if (output == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(output.getName(), NAME_BINDING); /... |
public class class_name {
public static String readEnvironment(String environmentName, String defaultValue) {
String property = System.getenv(environmentName);
if (isNullOrEmpty(property)) {
return defaultValue;
}
return property;
} } | public class class_name {
public static String readEnvironment(String environmentName, String defaultValue) {
String property = System.getenv(environmentName);
if (isNullOrEmpty(property)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
return property;
} } |
public class class_name {
public TrajectoryEnvelope getClosestGroundEnvelope(long time) {
if (this.getTemporalVariable().getEST() > time || this.getTemporalVariable().getEET() < time) return null;
if (!this.hasSubEnvelopes()) return this;
for (TrajectoryEnvelope te : this.getGroundEnvelopes()) {
if (te.getTem... | public class class_name {
public TrajectoryEnvelope getClosestGroundEnvelope(long time) {
if (this.getTemporalVariable().getEST() > time || this.getTemporalVariable().getEET() < time) return null;
if (!this.hasSubEnvelopes()) return this;
for (TrajectoryEnvelope te : this.getGroundEnvelopes()) {
if (te.getTem... |
public class class_name {
protected synchronized void activate(BundleContext context, Map<String, Object> props) {
String jndiName = (String) props.get("jndiName");
String originalValue = (String) props.get("value");
//Since we declare a default value of false in the metatype, if decode isn't ... | public class class_name {
protected synchronized void activate(BundleContext context, Map<String, Object> props) {
String jndiName = (String) props.get("jndiName");
String originalValue = (String) props.get("value");
//Since we declare a default value of false in the metatype, if decode isn't ... |
public class class_name {
public ListActionTypesResult withActionTypes(ActionType... actionTypes) {
if (this.actionTypes == null) {
setActionTypes(new java.util.ArrayList<ActionType>(actionTypes.length));
}
for (ActionType ele : actionTypes) {
this.actionTypes.add(ele);
... | public class class_name {
public ListActionTypesResult withActionTypes(ActionType... actionTypes) {
if (this.actionTypes == null) {
setActionTypes(new java.util.ArrayList<ActionType>(actionTypes.length)); // depends on control dependency: [if], data = [none]
}
for (ActionType ele : ... |
public class class_name {
public static Font[] filterMonospaced(Font... fonts) {
List<Font> result = new ArrayList<Font>(fonts.length);
for(Font font: fonts) {
if (isFontMonospaced(font)) {
result.add(font);
}
}
return result.toArray(new Font[resu... | public class class_name {
public static Font[] filterMonospaced(Font... fonts) {
List<Font> result = new ArrayList<Font>(fonts.length);
for(Font font: fonts) {
if (isFontMonospaced(font)) {
result.add(font); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public void fixupVariables(java.util.Vector vars, int globalsSize)
{
m_predicateIndex = -1;
AxesWalker walker = m_firstWalker;
while (null != walker)
{
walker.fixupVariables(vars, globalsSize);
walker = walker.getNextWalker();
}
} } | public class class_name {
public void fixupVariables(java.util.Vector vars, int globalsSize)
{
m_predicateIndex = -1;
AxesWalker walker = m_firstWalker;
while (null != walker)
{
walker.fixupVariables(vars, globalsSize); // depends on control dependency: [while], data = [none]
walker = w... |
public class class_name {
public void runUpdate(Password password) throws PageException {
checkWriteAccess();
ConfigServerImpl cs = (ConfigServerImpl) ConfigImpl.getConfigServer(config, password);
CFMLEngineFactory factory = cs.getCFMLEngine().getCFMLEngineFactory();
synchronized (factory) {
try {
cleanUp(... | public class class_name {
public void runUpdate(Password password) throws PageException {
checkWriteAccess();
ConfigServerImpl cs = (ConfigServerImpl) ConfigImpl.getConfigServer(config, password);
CFMLEngineFactory factory = cs.getCFMLEngine().getCFMLEngineFactory();
synchronized (factory) {
try {
cleanUp(... |
public class class_name {
@Override
public String encode(byte[] byteArray)
{
int len = byteArray.length;
char[] encoded = new char[len * 2];
int j = 0;
for(int i = 0; i < byteArray.length; i++)
{
int b = byteArray[i] & 0xFF;
String hexa = HEXA_VALUES[b];
encoded[j++] = hexa.... | public class class_name {
@Override
public String encode(byte[] byteArray)
{
int len = byteArray.length;
char[] encoded = new char[len * 2];
int j = 0;
for(int i = 0; i < byteArray.length; i++)
{
int b = byteArray[i] & 0xFF;
String hexa = HEXA_VALUES[b];
encoded[j++] = hexa.... |
public class class_name {
public static RpcReferenceContext lastReferenceContext(boolean clear) {
try {
RpcInvokeContext invokeCtx = RpcInvokeContext.getContext();
RpcReferenceContext referenceCtx = (RpcReferenceContext) invokeCtx
.get(RemotingConstants.INVOKE_CTX_RPC_RE... | public class class_name {
public static RpcReferenceContext lastReferenceContext(boolean clear) {
try {
RpcInvokeContext invokeCtx = RpcInvokeContext.getContext();
RpcReferenceContext referenceCtx = (RpcReferenceContext) invokeCtx
.get(RemotingConstants.INVOKE_CTX_RPC_RE... |
public class class_name {
private void cancelNameResolverBackoff() {
syncContext.throwIfNotInThisSynchronizationContext();
if (scheduledNameResolverRefresh != null) {
scheduledNameResolverRefresh.cancel();
scheduledNameResolverRefresh = null;
nameResolverBackoffPolicy = null;
}
} } | public class class_name {
private void cancelNameResolverBackoff() {
syncContext.throwIfNotInThisSynchronizationContext();
if (scheduledNameResolverRefresh != null) {
scheduledNameResolverRefresh.cancel(); // depends on control dependency: [if], data = [none]
scheduledNameResolverRefresh = null; //... |
public class class_name {
public void init(Source.Context context, String groupName, String prefix, List<Stage.ConfigIssue> issues) {
// Validate the ELs for string configs
List<String> elConfigs = ImmutableList.of("resourceUrl", "requestBody");
for (String configName : elConfigs) {
ELVars vars = co... | public class class_name {
public void init(Source.Context context, String groupName, String prefix, List<Stage.ConfigIssue> issues) {
// Validate the ELs for string configs
List<String> elConfigs = ImmutableList.of("resourceUrl", "requestBody");
for (String configName : elConfigs) {
ELVars vars = co... |
public class class_name {
public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping) {
TypeInformation[] fieldTypes = new TypeInformation[fieldMapping.length];
String[] fieldNames = new String[fieldMapping.length];
for (int i = 0; i < fieldMapping.length; i++) {
fieldTypes[i] = rowType.g... | public class class_name {
public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping) {
TypeInformation[] fieldTypes = new TypeInformation[fieldMapping.length];
String[] fieldNames = new String[fieldMapping.length];
for (int i = 0; i < fieldMapping.length; i++) {
fieldTypes[i] = rowType.g... |
public class class_name {
@Override
public ResponseCtx getCacheItem(String request) {
String hash = null;
ResponseCtx response = null;
try {
hash = makeHash(request);
// thread-safety on cache operations
synchronized (requestCache) {
if... | public class class_name {
@Override
public ResponseCtx getCacheItem(String request) {
String hash = null;
ResponseCtx response = null;
try {
hash = makeHash(request); // depends on control dependency: [try], data = [none]
// thread-safety on cache operations
... |
public class class_name {
private String getSlaUrl(String envSlaUrl, UriInfo uriInfo) {
String baseUrl = uriInfo.getBaseUri().toString();
if (envSlaUrl == null) {
envSlaUrl = "";
}
String result = ("".equals(envSlaUrl))? baseUrl : envSlaUrl;
logger.de... | public class class_name {
private String getSlaUrl(String envSlaUrl, UriInfo uriInfo) {
String baseUrl = uriInfo.getBaseUri().toString();
if (envSlaUrl == null) {
envSlaUrl = "";
// depends on control dependency: [if], data = [none]
}
String result = ("".equal... |
public class class_name {
@Override
public void serviceChanged(ServiceEvent serviceEvent) {
final String topic = getTopic(serviceEvent);
// Bail quickly if the event is one that should be ignored
if (topic == null) {
return;
}
// Event properties
Map<St... | public class class_name {
@Override
public void serviceChanged(ServiceEvent serviceEvent) {
final String topic = getTopic(serviceEvent);
// Bail quickly if the event is one that should be ignored
if (topic == null) {
return; // depends on control dependency: [if], data = [none]... |
public class class_name {
public static <T> T accessMember(final AccessibleObject member, final Callable<T> callable, String errorMessage) {
if (callable == null) {
return null;
}
return AccessController.doPrivileged((PrivilegedAction<T>) () -> {
boolean wasAccessible = member.isAccessible();
try {
... | public class class_name {
public static <T> T accessMember(final AccessibleObject member, final Callable<T> callable, String errorMessage) {
if (callable == null) {
return null; // depends on control dependency: [if], data = [none]
}
return AccessController.doPrivileged((PrivilegedAction<T>) () -> {
boolea... |
public class class_name {
@Deprecated
public static Matcher<Elements> containingElementsWithOwnTexts(final String... texts) {
Matcher[] elementWithTextMatchers = new Matcher[texts.length];
for (int i = 0; i < elementWithTextMatchers.length; i++) {
elementWithTextMatchers[i] = ElementWit... | public class class_name {
@Deprecated
public static Matcher<Elements> containingElementsWithOwnTexts(final String... texts) {
Matcher[] elementWithTextMatchers = new Matcher[texts.length];
for (int i = 0; i < elementWithTextMatchers.length; i++) {
elementWithTextMatchers[i] = ElementWit... |
public class class_name {
public static void setReferrerURLCookieHandler(ReferrerURLCookieHandler referrerURLCookieHandler) {
// in case, the webAppSecurityConfig is dynamically changed
if (getReferrerURLCookieHandler() != referrerURLCookieHandler) {
if (tc.isDebugEnabled()) {
... | public class class_name {
public static void setReferrerURLCookieHandler(ReferrerURLCookieHandler referrerURLCookieHandler) {
// in case, the webAppSecurityConfig is dynamically changed
if (getReferrerURLCookieHandler() != referrerURLCookieHandler) {
if (tc.isDebugEnabled()) {
... |
public class class_name {
@Override
public String encode(String... messages) {
Assert.notNull(messages, "messages must not be null");
StringBuilder sb = new StringBuilder();
sb.append("a[");
for (int i = 0; i < messages.length; i++) {
sb.append('"');
char[] q... | public class class_name {
@Override
public String encode(String... messages) {
Assert.notNull(messages, "messages must not be null");
StringBuilder sb = new StringBuilder();
sb.append("a[");
for (int i = 0; i < messages.length; i++) {
sb.append('"'); // depends on contro... |
public class class_name {
public ServiceCall<ValueCollection> listValues(ListValuesOptions listValuesOptions) {
Validator.notNull(listValuesOptions, "listValuesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "entities", "values" };
String[] pathParameters = { listValuesOptions.workspac... | public class class_name {
public ServiceCall<ValueCollection> listValues(ListValuesOptions listValuesOptions) {
Validator.notNull(listValuesOptions, "listValuesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "entities", "values" };
String[] pathParameters = { listValuesOptions.workspac... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> List<T> getValueOfCertainColumnOfAllRecord(String sql, Object... arg) {
Connection connection = JDBCUtils.getConnection();
PreparedStatement ps = null;
ResultSet result = null;
List<T> list = new ArrayList<T... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> List<T> getValueOfCertainColumnOfAllRecord(String sql, Object... arg) {
Connection connection = JDBCUtils.getConnection();
PreparedStatement ps = null;
ResultSet result = null;
List<T> list = new ArrayList<T... |
public class class_name {
void removeOutVertexLabel(VertexLabel lbl, boolean preserveData) {
this.uncommittedRemovedOutVertexLabels.add(lbl);
if (!preserveData) {
deleteColumn(lbl.getFullName() + Topology.OUT_VERTEX_COLUMN_END);
}
} } | public class class_name {
void removeOutVertexLabel(VertexLabel lbl, boolean preserveData) {
this.uncommittedRemovedOutVertexLabels.add(lbl);
if (!preserveData) {
deleteColumn(lbl.getFullName() + Topology.OUT_VERTEX_COLUMN_END); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(DescribeEventsRequest describeEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(DescribeEventsRequest describeEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
@Override
public void unset(String propName) {
if (propName.equals("deleteDescendants")) {
unsetDeleteDescendants();
}
if (propName.equals("returnDeleted")) {
unsetReturnDeleted();
}
super.unset(propName);
} } | public class class_name {
@Override
public void unset(String propName) {
if (propName.equals("deleteDescendants")) {
unsetDeleteDescendants(); // depends on control dependency: [if], data = [none]
}
if (propName.equals("returnDeleted")) {
unsetReturnDeleted(); // dep... |
public class class_name {
@GET
@Produces("text/plain;charset=UTF-8")
@Path("getNext")
public String getNext() {
logger.debug("Received getNext");
JSONObject resultJson;
try {
machine.getNextStep();
resultJson = Util.getStepAsJSON(machine, verbose, unvisited);
resultJson.put("result"... | public class class_name {
@GET
@Produces("text/plain;charset=UTF-8")
@Path("getNext")
public String getNext() {
logger.debug("Received getNext");
JSONObject resultJson;
try {
machine.getNextStep(); // depends on control dependency: [try], data = [none]
resultJson = Util.getStepAsJSON(mach... |
public class class_name {
private List populateData(EntityMetadata m, Map<Bytes, List<Column>> qResults, List<Object> entities,
boolean isRelational, List<String> relationNames, CassandraDataHandler dataHandler)
{
if (m.getType().isSuperColumnFamilyMetadata())
{
Set<Bytes> p... | public class class_name {
private List populateData(EntityMetadata m, Map<Bytes, List<Column>> qResults, List<Object> entities,
boolean isRelational, List<String> relationNames, CassandraDataHandler dataHandler)
{
if (m.getType().isSuperColumnFamilyMetadata())
{
Set<Bytes> p... |
public class class_name {
public JobGetAllLifetimeStatisticsOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public JobGetAllLifetimeStatisticsOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control depen... |
public class class_name {
public int valueForXPosition(int xPos) {
int value;
int minValue = slider.getMinimum();
int maxValue = slider.getMaximum();
int trackLeft = trackRect.x + thumbRect.width / 2 + trackBorder;
int trackRight = trackRect.x + trackRect.width - thumbRect.width... | public class class_name {
public int valueForXPosition(int xPos) {
int value;
int minValue = slider.getMinimum();
int maxValue = slider.getMaximum();
int trackLeft = trackRect.x + thumbRect.width / 2 + trackBorder;
int trackRight = trackRect.x + trackRect.width - thumbRect.width... |
public class class_name {
public void close() {
try {
if (conn != null) {
conn.close();
}
} catch (IOException ignored) { }
if (zkClient != null) {
zkClient.stopAndWait();
}
} } | public class class_name {
public void close() {
try {
if (conn != null) {
conn.close(); // depends on control dependency: [if], data = [none]
}
} catch (IOException ignored) { } // depends on control dependency: [catch], data = [none]
if (zkClient != null) {
zkClient.stopAndWait(... |
public class class_name {
public void setFontAndSize(BaseFont bf, float size) {
checkWriter();
state.size = size;
if (bf.getFontType() == BaseFont.FONT_TYPE_DOCUMENT) {
state.fontDetails = new FontDetails(null, ((DocumentFont)bf).getIndirectReference(), bf);
}
else
... | public class class_name {
public void setFontAndSize(BaseFont bf, float size) {
checkWriter();
state.size = size;
if (bf.getFontType() == BaseFont.FONT_TYPE_DOCUMENT) {
state.fontDetails = new FontDetails(null, ((DocumentFont)bf).getIndirectReference(), bf); // depends on control de... |
public class class_name {
@SuppressWarnings("unchecked")
private Hashtable getAutoTransferringHeaders()
{
Hashtable headers = (Hashtable)_req.getAttribute(AUTO_XFER_HEADERS_ATTR);
if (headers == null)
{
headers = new Hashtable();
_req.setAttribute(AUTO_XFER_HEADE... | public class class_name {
@SuppressWarnings("unchecked")
private Hashtable getAutoTransferringHeaders()
{
Hashtable headers = (Hashtable)_req.getAttribute(AUTO_XFER_HEADERS_ATTR);
if (headers == null)
{
headers = new Hashtable(); // depends on control dependency: [if], data ... |
public class class_name {
public List<TorrentStatus> status() {
torrent_status_vector v = alert.getStatus();
int size = (int) v.size();
List<TorrentStatus> l = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
l.add(new TorrentStatus(v.get(i)));
}
ret... | public class class_name {
public List<TorrentStatus> status() {
torrent_status_vector v = alert.getStatus();
int size = (int) v.size();
List<TorrentStatus> l = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
l.add(new TorrentStatus(v.get(i))); // depends on control ... |
public class class_name {
@SuppressWarnings("rawtypes")
boolean predicateMatchRules(
final Map<String, String> resource,
final Function<String, Predicate<String>> predicateTransformer,
final Function<List, Predicate<String>> listpred,
final Map<String, Object> ruleRe... | public class class_name {
@SuppressWarnings("rawtypes")
boolean predicateMatchRules(
final Map<String, String> resource,
final Function<String, Predicate<String>> predicateTransformer,
final Function<List, Predicate<String>> listpred,
final Map<String, Object> ruleRe... |
public class class_name {
public String marshal(Object jaxbObject) {
// Precondition, check that the jaxbContext is set!
if (jaxbContext == null) {
logger.error("Trying to marshal with a null jaxbContext, returns null. Check your configuration, e.g. jaxb-transformers!");
return null;
}
t... | public class class_name {
public String marshal(Object jaxbObject) {
// Precondition, check that the jaxbContext is set!
if (jaxbContext == null) {
logger.error("Trying to marshal with a null jaxbContext, returns null. Check your configuration, e.g. jaxb-transformers!"); // depends on control dependency:... |
public class class_name {
public java.lang.String getMessage() {
if (resourceBundleName != null && resourceKey != null) {
String retrievedMessage = null;
String internalMessage = null;
String defaultEnglishMessage = null;
ResourceBundle bundle = null;
... | public class class_name {
public java.lang.String getMessage() {
if (resourceBundleName != null && resourceKey != null) {
String retrievedMessage = null;
String internalMessage = null;
String defaultEnglishMessage = null;
ResourceBundle bundle = null;
... |
public class class_name {
synchronized static void setFactoryImplementation() {
if (initialized)
return;
initialized = true;
String authConfigProvider = Security.getProperty(AuthConfigFactory.DEFAULT_FACTORY_SECURITY_PROPERTY);
if (authConfigProvider == null || authConfigPro... | public class class_name {
synchronized static void setFactoryImplementation() {
if (initialized)
return;
initialized = true;
String authConfigProvider = Security.getProperty(AuthConfigFactory.DEFAULT_FACTORY_SECURITY_PROPERTY);
if (authConfigProvider == null || authConfigPro... |
public class class_name {
public static UIComponent resolveComponent(FacesContext context, UIComponent source, String expression, int hints) {
if (LangUtils.isValueBlank(expression)) {
if (SearchExpressionUtils.isHintSet(hints, SearchExpressionHint.PARENT_FALLBACK)) {
return source... | public class class_name {
public static UIComponent resolveComponent(FacesContext context, UIComponent source, String expression, int hints) {
if (LangUtils.isValueBlank(expression)) {
if (SearchExpressionUtils.isHintSet(hints, SearchExpressionHint.PARENT_FALLBACK)) {
return source... |
public class class_name {
public static void deleteSubDirs(File dir) {
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
File f = new File(dir, children[i]);
if (f.isDirectory()) {
deleteDir(f);
}
}
} } | public class class_name {
public static void deleteSubDirs(File dir) {
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
File f = new File(dir, children[i]);
if (f.isDirectory()) {
deleteDir(f);
// depends on control dependency: [i... |
public class class_name {
protected boolean isTableElement(final Node node) {
if (node.getNodeType() != Node.NodeType.ELEMENT) {
return false;
}
String elementName = node.getNodeName().toLowerCase();
return elementName.equals("table");
} } | public class class_name {
protected boolean isTableElement(final Node node) {
if (node.getNodeType() != Node.NodeType.ELEMENT) {
return false; // depends on control dependency: [if], data = [none]
}
String elementName = node.getNodeName().toLowerCase();
return elementName.equals("table");
} } |
public class class_name {
private void cancelConnectionWaiterLocked(ConnectionWaiter waiter) {
if (waiter.mAssignedConnection != null || waiter.mException != null) {
// Waiter is done waiting but has not woken up yet.
return;
}
// Waiter must still be waiting. Dequeue ... | public class class_name {
private void cancelConnectionWaiterLocked(ConnectionWaiter waiter) {
if (waiter.mAssignedConnection != null || waiter.mException != null) {
// Waiter is done waiting but has not woken up yet.
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private float getSensitivity(float x, float y) {
double furthestDistance = MAX_DISTANCE;
double distance = Math.sqrt(Math.pow(x - CENTER_X, 2) + Math.pow(y - CENTER_Y, 2));
double sens = MAX_SENSITIVITY * distance / furthestDistance;
if (sens > MAX_SENSITIVITY)... | public class class_name {
private float getSensitivity(float x, float y) {
double furthestDistance = MAX_DISTANCE;
double distance = Math.sqrt(Math.pow(x - CENTER_X, 2) + Math.pow(y - CENTER_Y, 2));
double sens = MAX_SENSITIVITY * distance / furthestDistance;
if (sens > MAX_SENSITIVITY)... |
public class class_name {
public void marshall(TransactWriteItemsRequest transactWriteItemsRequest, ProtocolMarshaller protocolMarshaller) {
if (transactWriteItemsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(TransactWriteItemsRequest transactWriteItemsRequest, ProtocolMarshaller protocolMarshaller) {
if (transactWriteItemsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public int encodeSamples(int[] samples, int count, int start, int skip,
EncodedElement result, long frameNumber) {
//System.err.println("FRAME::encodeSamples: frame#:"+frameNumber);
if(DEBUG_LEV > 0) {
System.err.println("FRAME::encodeSamplesNew(...)");
if(DEBUG_LEV ... | public class class_name {
public int encodeSamples(int[] samples, int count, int start, int skip,
EncodedElement result, long frameNumber) {
//System.err.println("FRAME::encodeSamples: frame#:"+frameNumber);
if(DEBUG_LEV > 0) {
System.err.println("FRAME::encodeSamplesNew(...)"); // depends on contr... |
public class class_name {
private void write(final Collection<Writer> writers, final Task task) {
try {
Writer writer = task.writer;
writer.write(task.logEntry);
if (!writers.contains(writer)) {
writers.add(writer);
}
} catch (Exception ex) {
InternalLogger.log(Level.ERROR, ex, "Failed to write ... | public class class_name {
private void write(final Collection<Writer> writers, final Task task) {
try {
Writer writer = task.writer;
writer.write(task.logEntry); // depends on control dependency: [try], data = [none]
if (!writers.contains(writer)) {
writers.add(writer); // depends on control dependency:... |
public class class_name {
private void forward() {
try {
CmsDbSettingsPanel panel = m_panel[0];
panel.saveToSetupBean();
boolean createDb = panel.getCreateDb();
boolean dropDb = panel.getDropDb();
boolean createTables = panel.getCreateTables();
... | public class class_name {
private void forward() {
try {
CmsDbSettingsPanel panel = m_panel[0];
panel.saveToSetupBean(); // depends on control dependency: [try], data = [none]
boolean createDb = panel.getCreateDb();
boolean dropDb = panel.getDropDb();
... |
public class class_name {
void readControlFile(String fileName) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
try {
controlList.clear();
String line;
while ((line = reader.readLine()) != null) {
line = line.trim();
if (line.isEmpty() || line.... | public class class_name {
void readControlFile(String fileName) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
try {
controlList.clear();
String line;
while ((line = reader.readLine()) != null) {
line = line.trim();
// depends on control dependency:... |
public class class_name {
@Override
public void visitLambda(JCLambda tree) {
LambdaTranslationContext localContext = (LambdaTranslationContext)context;
MethodSymbol sym = localContext.translatedSym;
MethodType lambdaType = (MethodType) sym.type;
{ /* Type annotation management: B... | public class class_name {
@Override
public void visitLambda(JCLambda tree) {
LambdaTranslationContext localContext = (LambdaTranslationContext)context;
MethodSymbol sym = localContext.translatedSym;
MethodType lambdaType = (MethodType) sym.type;
{ /* Type annotation management: B... |
public class class_name {
public java.util.List<String> getConnectionEvents() {
if (connectionEvents == null) {
connectionEvents = new com.amazonaws.internal.SdkInternalList<String>();
}
return connectionEvents;
} } | public class class_name {
public java.util.List<String> getConnectionEvents() {
if (connectionEvents == null) {
connectionEvents = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return connectionEvents;
} } |
public class class_name {
private Method setupSetterOrGetter(Class targetClass,
HashMap<Class, HashMap<String, Method>> propertyMapMap,
String prefix, Class valueType) {
Method setterOrGetter = null;
try {
// Have to lock property map prior to reading it, to guard ag... | public class class_name {
private Method setupSetterOrGetter(Class targetClass,
HashMap<Class, HashMap<String, Method>> propertyMapMap,
String prefix, Class valueType) {
Method setterOrGetter = null;
try {
// Have to lock property map prior to reading it, to guard ag... |
public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WDialog dialog = (WDialog) component;
int state = dialog.getState();
if (state == WDialog.ACTIVE_STATE || dialog.getTrigger() != null) {
int width = dialog.getWidth();
int heigh... | public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WDialog dialog = (WDialog) component;
int state = dialog.getState();
if (state == WDialog.ACTIVE_STATE || dialog.getTrigger() != null) {
int width = dialog.getWidth();
int heigh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.