code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void marshall(RecordError recordError, ProtocolMarshaller protocolMarshaller) {
if (recordError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(recordError.getCode... | public class class_name {
public void marshall(RecordError recordError, ProtocolMarshaller protocolMarshaller) {
if (recordError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(recordError.getCode... |
public class class_name {
private void exo(final EncodingResult result, final Variable... vars) {
if (vars.length == 0) {
result.addClause();
return;
}
if (vars.length == 1) {
result.addClause(vars[0]);
return;
}
this.amo(result, vars);
result.addClause((Literal[]) vars)... | public class class_name {
private void exo(final EncodingResult result, final Variable... vars) {
if (vars.length == 0) {
result.addClause(); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (vars.length == 1) {
resul... |
public class class_name {
public RootChannelList getRootChannels(long fromId, int maxPageSize) {
List<InternalInstrumented<ChannelStats>> channelList
= new ArrayList<>();
Iterator<InternalInstrumented<ChannelStats>> iterator
= rootChannels.tailMap(fromId).values().iterator();
while (iterat... | public class class_name {
public RootChannelList getRootChannels(long fromId, int maxPageSize) {
List<InternalInstrumented<ChannelStats>> channelList
= new ArrayList<>();
Iterator<InternalInstrumented<ChannelStats>> iterator
= rootChannels.tailMap(fromId).values().iterator();
while (iterat... |
public class class_name {
<T> T doExclusive(Supplier<T> supplier) {
LettuceAssert.notNull(supplier, "Supplier must not be null");
synchronized (this) {
try {
lockWritersExclusive();
return supplier.get();
} finally {
unlockWrit... | public class class_name {
<T> T doExclusive(Supplier<T> supplier) {
LettuceAssert.notNull(supplier, "Supplier must not be null");
synchronized (this) {
try {
lockWritersExclusive(); // depends on control dependency: [try], data = [none]
return supplier.ge... |
public class class_name {
public DescribeStackResourceDriftsResult withStackResourceDrifts(StackResourceDrift... stackResourceDrifts) {
if (this.stackResourceDrifts == null) {
setStackResourceDrifts(new com.amazonaws.internal.SdkInternalList<StackResourceDrift>(stackResourceDrifts.length));
... | public class class_name {
public DescribeStackResourceDriftsResult withStackResourceDrifts(StackResourceDrift... stackResourceDrifts) {
if (this.stackResourceDrifts == null) {
setStackResourceDrifts(new com.amazonaws.internal.SdkInternalList<StackResourceDrift>(stackResourceDrifts.length)); // depe... |
public class class_name {
public static List<StoreDefinition> validateRebalanceStore(List<StoreDefinition> storeDefList) {
List<StoreDefinition> returnList = new ArrayList<StoreDefinition>(storeDefList.size());
for(StoreDefinition def: storeDefList) {
if(!def.isView() && !canRebalanceList.... | public class class_name {
public static List<StoreDefinition> validateRebalanceStore(List<StoreDefinition> storeDefList) {
List<StoreDefinition> returnList = new ArrayList<StoreDefinition>(storeDefList.size());
for(StoreDefinition def: storeDefList) {
if(!def.isView() && !canRebalanceList.... |
public class class_name {
public int handleCloseGroup() {
int result = errOK;
this.closeGroupCount++; // stats
if (this.getTokeniserState() != TOKENISER_SKIP_GROUP) {
if(debugParser) {
RtfParser.outputDebug(this.rtfDoc, groupLevel, "DEBUG: handleCloseGroup()");
if(this.lastCtrlWordParam != nul... | public class class_name {
public int handleCloseGroup() {
int result = errOK;
this.closeGroupCount++; // stats
if (this.getTokeniserState() != TOKENISER_SKIP_GROUP) {
if(debugParser) {
RtfParser.outputDebug(this.rtfDoc, groupLevel, "DEBUG: handleCloseGroup()");
// depends on control dependency: [i... |
public class class_name {
public static String abbreviate(String _str, int _length) {
if (_str == null) {
return null;
}
if (_str.length() <= _length) {
return _str;
}
String abbr = _str.substring(0, _length -3) + "...";
return abbr;
} } | public class class_name {
public static String abbreviate(String _str, int _length) {
if (_str == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (_str.length() <= _length) {
return _str; // depends on control dependency: [if], data = [non... |
public class class_name {
public boolean write(Node nodeArg, LSOutput destination) throws LSException {
// If the destination is null
if (destination == null) {
String msg = Utils.messages
.createMessage(
MsgKey.ER_NO_OUTPUT_SPECIFIED,
nul... | public class class_name {
public boolean write(Node nodeArg, LSOutput destination) throws LSException {
// If the destination is null
if (destination == null) {
String msg = Utils.messages
.createMessage(
MsgKey.ER_NO_OUTPUT_SPECIFIED,
nul... |
public class class_name {
public static boolean areEquivalent(Object proxiedObj, Object anotherProxiedObj)
{
if (proxiedObj == null && anotherProxiedObj == null)
{
return true;
}
else if (proxiedObj == null || anotherProxiedObj == null)
{
return false;
}
e... | public class class_name {
public static boolean areEquivalent(Object proxiedObj, Object anotherProxiedObj)
{
if (proxiedObj == null && anotherProxiedObj == null)
{
return true; // depends on control dependency: [if], data = [none]
}
else if (proxiedObj == null || anotherProxiedObj =... |
public class class_name {
protected String getAttributeValue(MBeanServerExecutor pMBeanServerExecutor, final ObjectName pMBean, final String pAttribute) {
try {
return pMBeanServerExecutor.call(pMBean, GET_ATTRIBUTE_HANDLER, pAttribute);
} catch (IOException e) {
return null;
... | public class class_name {
protected String getAttributeValue(MBeanServerExecutor pMBeanServerExecutor, final ObjectName pMBean, final String pAttribute) {
try {
return pMBeanServerExecutor.call(pMBean, GET_ATTRIBUTE_HANDLER, pAttribute); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public static void configure() {
InputStream inputStream = null;
try {
URL configUrl = getConfigUrl();
if (configUrl == null) {
throw new ConfigurationException("esigate.properties configuration file "
+ "was no... | public class class_name {
public static void configure() {
InputStream inputStream = null;
try {
URL configUrl = getConfigUrl();
if (configUrl == null) {
throw new ConfigurationException("esigate.properties configuration file "
+ "was no... |
public class class_name {
public void add(int theOpCode, int theOperand1, int theOperand2) {
if (DEBUGCODE) {
System.out.println("Add " + bytecodeStr(theOpCode)
+ ", " + Integer.toHexString(theOperand1)
+ ", " + Integer.toHexString(theOperand2));
}
in... | public class class_name {
public void add(int theOpCode, int theOperand1, int theOperand2) {
if (DEBUGCODE) {
System.out.println("Add " + bytecodeStr(theOpCode)
+ ", " + Integer.toHexString(theOperand1)
+ ", " + Integer.toHexString(theOperand2)); // depends on contro... |
public class class_name {
private boolean transitionState(ExecutionState currentState, ExecutionState newState, Throwable cause) {
if (STATE_UPDATER.compareAndSet(this, currentState, newState)) {
if (cause == null) {
LOG.info("{} ({}) switched from {} to {}.", taskNameWithSubtask, executionId, currentState, n... | public class class_name {
private boolean transitionState(ExecutionState currentState, ExecutionState newState, Throwable cause) {
if (STATE_UPDATER.compareAndSet(this, currentState, newState)) {
if (cause == null) {
LOG.info("{} ({}) switched from {} to {}.", taskNameWithSubtask, executionId, currentState, n... |
public class class_name {
public static <T> T convert(Object object, Class<T> targetClass) throws IllegalArgumentException {
if (object == null) {
return null;
}
if (targetClass.isAssignableFrom(object.getClass())) {
return (T) object;
}
try {
... | public class class_name {
public static <T> T convert(Object object, Class<T> targetClass) throws IllegalArgumentException {
if (object == null) {
return null;
}
if (targetClass.isAssignableFrom(object.getClass())) {
return (T) object;
}
try {
... |
public class class_name {
public void start() {
running = true;
try {
init();
show();
while (running) {
EditorOperation operation = readOperation();
if (operation != null) {
Command cmd = create(operation);
... | public class class_name {
public void start() {
running = true;
try {
init(); // depends on control dependency: [try], data = [none]
show(); // depends on control dependency: [try], data = [none]
while (running) {
EditorOperation operation = readOpera... |
public class class_name {
static void removeLogicalDuplicates(SortedSet<String> packages) {
Iterator<String> iterator = packages.iterator();
if (!iterator.hasNext()) {
return;
}
String last = iterator.next();
while (iterator.hasNext()) {
String current = iterator.next();
if (curre... | public class class_name {
static void removeLogicalDuplicates(SortedSet<String> packages) {
Iterator<String> iterator = packages.iterator();
if (!iterator.hasNext()) {
return; // depends on control dependency: [if], data = [none]
}
String last = iterator.next();
while (iterator.hasNext()) {
... |
public class class_name {
public static AccessibilityNodeInfoCompat getRoot(AccessibilityNodeInfoCompat node) {
if (node == null) {
return null;
}
AccessibilityNodeInfoCompat current = null;
AccessibilityNodeInfoCompat parent = AccessibilityNodeInfoCompat.obtain(node);
... | public class class_name {
public static AccessibilityNodeInfoCompat getRoot(AccessibilityNodeInfoCompat node) {
if (node == null) {
return null; // depends on control dependency: [if], data = [none]
}
AccessibilityNodeInfoCompat current = null;
AccessibilityNodeInfoCompat p... |
public class class_name {
public void adjustNodes(java.util.List<Address> v) {
Node n;
boolean removed=false;
synchronized(nodes) {
for(int i=0; i < nodes.size(); i++) {
n=nodes.get(i);
if(!v.contains(n.addr)) {
System.out.println... | public class class_name {
public void adjustNodes(java.util.List<Address> v) {
Node n;
boolean removed=false;
synchronized(nodes) {
for(int i=0; i < nodes.size(); i++) {
n=nodes.get(i); // depends on control dependency: [for], data = [i]
if(!v.contai... |
public class class_name {
public boolean insert(T element){
if (size < maxSize){
put(element);
return true;
}
else if (size > 0 && !lessThan(element, top())){
heap[1] = element;
adjustTop();
return true;
}
else
return false;
} } | public class class_name {
public boolean insert(T element){
if (size < maxSize){
put(element); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], data = [none]
}
else if (size > 0 && !lessThan(element, top())){
heap[1] = element; // ... |
public class class_name {
public synchronized void loadGlobalProperties(Map<String, Object> map) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "loadGlobalProperties");
// clear before reloading.
globalConfigProperties.clear();
for (Entry<S... | public class class_name {
public synchronized void loadGlobalProperties(Map<String, Object> map) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "loadGlobalProperties");
// clear before reloading.
globalConfigProperties.clear();
for (Entry<S... |
public class class_name {
public void removeValue(String name) {
properties.removeItem(name);
values.remove(name);
if (properties.getItemCount() >= 1) {
properties.setSelectedIndex(0);
} else {
panel.setInterpolator(null);
}
enableControls();
} } | public class class_name {
public void removeValue(String name) {
properties.removeItem(name);
values.remove(name);
if (properties.getItemCount() >= 1) {
properties.setSelectedIndex(0);
// depends on control dependency: [if], data = [none]
} else {
panel.setInterpolator(null);
// depends on contr... |
public class class_name {
public long parseDate(String timestamp) {
try {
return dateFormat().get().parse(timestamp).getTime();
} catch (ParseException e) {
throw new AssertionError(e);
}
} } | public class class_name {
public long parseDate(String timestamp) {
try {
return dateFormat().get().parse(timestamp).getTime(); // depends on control dependency: [try], data = [none]
} catch (ParseException e) {
throw new AssertionError(e);
} // depends on control dependency: [catch], data = [n... |
public class class_name {
@Override
public void notifyReceiveAllowed(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyReceiveAllowed", new Object[] { destinationHandler });
//If this alias destination i... | public class class_name {
@Override
public void notifyReceiveAllowed(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyReceiveAllowed", new Object[] { destinationHandler });
//If this alias destination i... |
public class class_name {
@GwtIncompatible("incompatible method")
public static String capitalizeFully(String str, final char... delimiters) {
final int delimLen = delimiters == null ? -1 : delimiters.length;
if (StringUtils.isEmpty(str) || delimLen == 0) {
return str;
}
... | public class class_name {
@GwtIncompatible("incompatible method")
public static String capitalizeFully(String str, final char... delimiters) {
final int delimLen = delimiters == null ? -1 : delimiters.length;
if (StringUtils.isEmpty(str) || delimLen == 0) {
return str; // depends on con... |
public class class_name {
public org.inferred.freebuilder.processor.property.Property.Builder addAllAccessorAnnotations(
Spliterator<? extends Excerpt> elements) {
if ((elements.characteristics() & Spliterator.SIZED) != 0) {
long elementsSize = elements.estimateSize();
if (elementsSize > 0 && ele... | public class class_name {
public org.inferred.freebuilder.processor.property.Property.Builder addAllAccessorAnnotations(
Spliterator<? extends Excerpt> elements) {
if ((elements.characteristics() & Spliterator.SIZED) != 0) {
long elementsSize = elements.estimateSize();
if (elementsSize > 0 && ele... |
public class class_name {
public void marshall(Trail trail, ProtocolMarshaller protocolMarshaller) {
if (trail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(trail.getName(), NAME_BINDING);
... | public class class_name {
public void marshall(Trail trail, ProtocolMarshaller protocolMarshaller) {
if (trail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(trail.getName(), NAME_BINDING); // de... |
public class class_name {
private void requestActivityTransparent() {
try {
Intent intent = getIntent();
if (intent != null && intent.getBooleanExtra(EXTRA_IS_FULLSCREEN, false)) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutP... | public class class_name {
private void requestActivityTransparent() {
try {
Intent intent = getIntent();
if (intent != null && intent.getBooleanExtra(EXTRA_IS_FULLSCREEN, false)) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutP... |
public class class_name {
public InetAddress getEndpointForHostId(UUID hostId)
{
lock.readLock().lock();
try
{
return endpointToHostIdMap.inverse().get(hostId);
}
finally
{
lock.readLock().unlock();
}
} } | public class class_name {
public InetAddress getEndpointForHostId(UUID hostId)
{
lock.readLock().lock();
try
{
return endpointToHostIdMap.inverse().get(hostId); // depends on control dependency: [try], data = [none]
}
finally
{
lock.readLock()... |
public class class_name {
protected void copyResponseHeaders(HttpResponse proxyResponse, HttpServletResponse servletResponse)
{
for (Header header : proxyResponse.getAllHeaders())
{
if (hopByHopHeaders.containsHeader(header.getName()))
continue;
servletResponse.addHeader(he... | public class class_name {
protected void copyResponseHeaders(HttpResponse proxyResponse, HttpServletResponse servletResponse)
{
for (Header header : proxyResponse.getAllHeaders())
{
if (hopByHopHeaders.containsHeader(header.getName()))
continue;
servletResponse.addHeader(he... |
public class class_name {
private ZealotKhala doLikePattern(String prefix, String field, String pattern, boolean match, boolean positive) {
if (match) {
String suffix = positive ? ZealotConst.LIKE_KEY : ZealotConst.NOT_LIKE_KEY;
SqlInfoBuilder.newInstace(this.source.setPrefix(prefix).se... | public class class_name {
private ZealotKhala doLikePattern(String prefix, String field, String pattern, boolean match, boolean positive) {
if (match) {
String suffix = positive ? ZealotConst.LIKE_KEY : ZealotConst.NOT_LIKE_KEY;
SqlInfoBuilder.newInstace(this.source.setPrefix(prefix).se... |
public class class_name {
public static Field getField(final Class<?> cls, final String fieldName, final boolean forceAccess) {
Validate.isTrue(cls != null, "The class must not be null");
Validate.isTrue(StringUtils.isNotBlank(fieldName), "The field name must not be blank/empty");
// FIXME is t... | public class class_name {
public static Field getField(final Class<?> cls, final String fieldName, final boolean forceAccess) {
Validate.isTrue(cls != null, "The class must not be null");
Validate.isTrue(StringUtils.isNotBlank(fieldName), "The field name must not be blank/empty");
// FIXME is t... |
public class class_name {
public Set<ResourceSelection> checkDiff(final ResourceSelectionSet target) {
// 更新信息列表
Set<ResourceSelection> diffs = new HashSet<>();
// 读取源版本
Set<ResourceSelection> sourceEntrys = selections;
if (LOG.isDebugEnabled()) {
LOG.debug("源版本:{}", sourceEntrys);
}
// 读取目标版本
Set... | public class class_name {
public Set<ResourceSelection> checkDiff(final ResourceSelectionSet target) {
// 更新信息列表
Set<ResourceSelection> diffs = new HashSet<>();
// 读取源版本
Set<ResourceSelection> sourceEntrys = selections;
if (LOG.isDebugEnabled()) {
LOG.debug("源版本:{}", sourceEntrys); // depends on control ... |
public class class_name {
public static String isoDateTime(final Date val) {
synchronized (isoDateTimeFormat) {
try {
isoDateTimeFormat.setTimeZone(Timezones.getDefaultTz());
} catch (TimezonesException tze) {
throw new RuntimeException(tze);
}
return isoDateTimeFormat.forma... | public class class_name {
public static String isoDateTime(final Date val) {
synchronized (isoDateTimeFormat) {
try {
isoDateTimeFormat.setTimeZone(Timezones.getDefaultTz()); // depends on control dependency: [try], data = [none]
} catch (TimezonesException tze) {
throw new RuntimeExcep... |
public class class_name {
@Override
public int compareTo(ValueArray<CharValue> o) {
CharValueArray other = (CharValueArray) o;
int min = Math.min(position, other.position);
for (int i = 0; i < min; i++) {
int cmp = Character.compare(data[i], other.data[i]);
if (cmp != 0) {
return cmp;
}
}
re... | public class class_name {
@Override
public int compareTo(ValueArray<CharValue> o) {
CharValueArray other = (CharValueArray) o;
int min = Math.min(position, other.position);
for (int i = 0; i < min; i++) {
int cmp = Character.compare(data[i], other.data[i]);
if (cmp != 0) {
return cmp; // depends on ... |
public class class_name {
protected int safeIntFromProperty(StringProperty strProp, String field, List<FieldError> errorsBuilder,
int min, int max) {
String s = strProp.get();
if (StringHelper.isStringEmptyOrNull(s)) {
return 0;
}
int ... | public class class_name {
protected int safeIntFromProperty(StringProperty strProp, String field, List<FieldError> errorsBuilder,
int min, int max) {
String s = strProp.get();
if (StringHelper.isStringEmptyOrNull(s)) {
return 0; // depends on control d... |
public class class_name {
protected Set<String> loadPluginDelegators(Scriptable cfg, String name) {
Set<String> result = null;
Object delegators = cfg.get(name, cfg);
if (delegators != Scriptable.NOT_FOUND && delegators instanceof Scriptable) {
result = new HashSet<String>();
for (Object id : ((Scrip... | public class class_name {
protected Set<String> loadPluginDelegators(Scriptable cfg, String name) {
Set<String> result = null;
Object delegators = cfg.get(name, cfg);
if (delegators != Scriptable.NOT_FOUND && delegators instanceof Scriptable) {
result = new HashSet<String>();
// depends on control depen... |
public class class_name {
protected void onBackupWithoutLoadedSession( @Nonnull final String sessionId, @Nonnull final String requestId,
@Nonnull final BackupSessionService backupSessionService ) {
if ( !_sessionIdFormat.isValid( sessionId ) ) {
return;
}
try {
... | public class class_name {
protected void onBackupWithoutLoadedSession( @Nonnull final String sessionId, @Nonnull final String requestId,
@Nonnull final BackupSessionService backupSessionService ) {
if ( !_sessionIdFormat.isValid( sessionId ) ) {
return; // depends on control dependency... |
public class class_name {
private int _countCharsStart (final char ch)
{
int nCount = 0;
for (int i = 0; i < m_sValue.length (); i++)
{
final char c = m_sValue.charAt (i);
if (c == ' ')
continue;
if (c != ch)
break;
nCount++;
}
return nCount;
} } | public class class_name {
private int _countCharsStart (final char ch)
{
int nCount = 0;
for (int i = 0; i < m_sValue.length (); i++)
{
final char c = m_sValue.charAt (i);
if (c == ' ')
continue;
if (c != ch)
break;
nCount++; // depends on control dependency: [for]... |
public class class_name {
public CompletableFuture<Revision> watchRepository(Repository repo, Revision lastKnownRevision,
String pathPattern, long timeoutMillis) {
final CompletableFuture<Revision> result = repo.watch(lastKnownRevision, pathPattern);
... | public class class_name {
public CompletableFuture<Revision> watchRepository(Repository repo, Revision lastKnownRevision,
String pathPattern, long timeoutMillis) {
final CompletableFuture<Revision> result = repo.watch(lastKnownRevision, pathPattern);
... |
public class class_name {
private synchronized void getJsAPITicket(){
if(jsAPITicket == null || jsAPITicket.expired()) {//double check
String url = WxEndpoint.get("url.jsapi.ticket.get");
String response = wxClient.get(url);
this.jsAPITicket = APITicket.fromJson(response... | public class class_name {
private synchronized void getJsAPITicket(){
if(jsAPITicket == null || jsAPITicket.expired()) {//double check
String url = WxEndpoint.get("url.jsapi.ticket.get");
String response = wxClient.get(url);
this.jsAPITicket = APITicket.fromJson(response... |
public class class_name {
@Override
public long getLongSizeInBytes() {
long size = 4;
for (int i = 0; i < this.highLowContainer.size(); ++i) {
if (this.highLowContainer.getContainerAtIndex(i) instanceof MappeableRunContainer) {
MappeableRunContainer thisRunContainer =
(MappeableRunC... | public class class_name {
@Override
public long getLongSizeInBytes() {
long size = 4;
for (int i = 0; i < this.highLowContainer.size(); ++i) {
if (this.highLowContainer.getContainerAtIndex(i) instanceof MappeableRunContainer) {
MappeableRunContainer thisRunContainer =
(MappeableRunC... |
public class class_name {
public static GregorianCalendar[] calculateSunriseTransitSet(final GregorianCalendar day,
final double latitude,
final double longitude,
... | public class class_name {
public static GregorianCalendar[] calculateSunriseTransitSet(final GregorianCalendar day,
final double latitude,
final double longitude,
... |
public class class_name {
@Override
public void updateState(MapState<KmeansDataSet> state, List<TridentTuple> tuples,
TridentCollector collector)
{
// データが流れてきていない場合はupdateStateメソッドが呼ばれないため、本メソッド内ではデータが存在するとして扱う。
List<KmeansDataSet> dataSets = state.multiGet(Arrays.asList(Arrays.asL... | public class class_name {
@Override
public void updateState(MapState<KmeansDataSet> state, List<TridentTuple> tuples,
TridentCollector collector)
{
// データが流れてきていない場合はupdateStateメソッドが呼ばれないため、本メソッド内ではデータが存在するとして扱う。
List<KmeansDataSet> dataSets = state.multiGet(Arrays.asList(Arrays.asL... |
public class class_name {
@Override
public CPDefinitionOptionValueRel fetchByPrimaryKey(Serializable primaryKey) {
Serializable serializable = entityCache.getResult(CPDefinitionOptionValueRelModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionOptionValueRelImpl.class, primaryKey);
if (serializable == nullModel) {
... | public class class_name {
@Override
public CPDefinitionOptionValueRel fetchByPrimaryKey(Serializable primaryKey) {
Serializable serializable = entityCache.getResult(CPDefinitionOptionValueRelModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionOptionValueRelImpl.class, primaryKey);
if (serializable == nullModel) {
... |
public class class_name {
@Override
protected boolean doHandleRequest(final Request request) {
String[] values = getRequestValue(request);
String[] current = getValue();
boolean changed = !Arrays.equals(values, current);
if (changed) {
setData(values);
}
return changed;
} } | public class class_name {
@Override
protected boolean doHandleRequest(final Request request) {
String[] values = getRequestValue(request);
String[] current = getValue();
boolean changed = !Arrays.equals(values, current);
if (changed) {
setData(values); // depends on control dependency: [if], data = [none... |
public class class_name {
public TypeElement findClassInPackageElement(PackageElement pkg, String className) {
for (TypeElement c : getAllClasses(pkg)) {
if (getSimpleName(c).equals(className)) {
return c;
}
}
return null;
} } | public class class_name {
public TypeElement findClassInPackageElement(PackageElement pkg, String className) {
for (TypeElement c : getAllClasses(pkg)) {
if (getSimpleName(c).equals(className)) {
return c; // depends on control dependency: [if], data = [none]
}
}... |
public class class_name {
public static <E> LinkedHashSet<E> newLinkedHashSet(Iterable<? extends E> elements) {
if (elements instanceof Collection) {
return new LinkedHashSet<E>((Collection<? extends E>)elements);
}
LinkedHashSet<E> set = newLinkedHashSet();
for (E element : elements) {
set.add(element);... | public class class_name {
public static <E> LinkedHashSet<E> newLinkedHashSet(Iterable<? extends E> elements) {
if (elements instanceof Collection) {
return new LinkedHashSet<E>((Collection<? extends E>)elements);
}
LinkedHashSet<E> set = newLinkedHashSet();
for (E element : elements) {
set.add(element);... |
public class class_name {
public static XPathUtils newXPath(final URL url) {
final DefaultHttpClient client = new DefaultHttpClientImpl();
final GetMethod method = new GetMethod(url.toExternalForm());
try {
final int responseCode = client.executeMethod(method);
if (respo... | public class class_name {
public static XPathUtils newXPath(final URL url) {
final DefaultHttpClient client = new DefaultHttpClientImpl();
final GetMethod method = new GetMethod(url.toExternalForm());
try {
final int responseCode = client.executeMethod(method);
if (respo... |
public class class_name {
public void merge(GridConfiguration other) {
if (other == null) {
return;
}
super.merge(other);
if (isMergeAble(Integer.class, other.cleanUpCycle, cleanUpCycle)) {
cleanUpCycle = other.cleanUpCycle;
}
if (isMergeAble(Map.class, other.custom, custom)) {
... | public class class_name {
public void merge(GridConfiguration other) {
if (other == null) {
return; // depends on control dependency: [if], data = [none]
}
super.merge(other);
if (isMergeAble(Integer.class, other.cleanUpCycle, cleanUpCycle)) {
cleanUpCycle = other.cleanUpCycle; // depends ... |
public class class_name {
public java.util.List<ElasticGpuAssociation> getElasticGpuAssociations() {
if (elasticGpuAssociations == null) {
elasticGpuAssociations = new com.amazonaws.internal.SdkInternalList<ElasticGpuAssociation>();
}
return elasticGpuAssociations;
} } | public class class_name {
public java.util.List<ElasticGpuAssociation> getElasticGpuAssociations() {
if (elasticGpuAssociations == null) {
elasticGpuAssociations = new com.amazonaws.internal.SdkInternalList<ElasticGpuAssociation>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static String buildId(String name, String counterName) {
final MessageDigest messageDigest = getMessageDigestInstance();
messageDigest.update(name.getBytes());
final byte[] digest = messageDigest.digest();
final int l = counterName.length();
final char[] chars = new c... | public class class_name {
private static String buildId(String name, String counterName) {
final MessageDigest messageDigest = getMessageDigestInstance();
messageDigest.update(name.getBytes());
final byte[] digest = messageDigest.digest();
final int l = counterName.length();
final char[] chars = new c... |
public class class_name {
int flipTriangles(long[] flippedA, long[] flippedB) {
int numflips = 0;
BitsUtil.zeroI(flippedB);
for(int i = BitsUtil.nextSetBit(flippedA, 0); i > -1; i = BitsUtil.nextSetBit(flippedA, i + 1)) {
if(!BitsUtil.get(flippedB, i) && flipTriangle(i, flippedB) >= 0) {
numf... | public class class_name {
int flipTriangles(long[] flippedA, long[] flippedB) {
int numflips = 0;
BitsUtil.zeroI(flippedB);
for(int i = BitsUtil.nextSetBit(flippedA, 0); i > -1; i = BitsUtil.nextSetBit(flippedA, i + 1)) {
if(!BitsUtil.get(flippedB, i) && flipTriangle(i, flippedB) >= 0) {
numf... |
public class class_name {
@Override
public boolean processSecurityChanges(String id) {
boolean monitorFound = false;
for (ServiceReference<FileMonitor> fm : fileMonitors.keySet()) {
String monitorId = (String) fm.getProperty(com.ibm.ws.kernel.filemonitor.FileMonitor.MONITOR_IDENTIFICATI... | public class class_name {
@Override
public boolean processSecurityChanges(String id) {
boolean monitorFound = false;
for (ServiceReference<FileMonitor> fm : fileMonitors.keySet()) {
String monitorId = (String) fm.getProperty(com.ibm.ws.kernel.filemonitor.FileMonitor.MONITOR_IDENTIFICATI... |
public class class_name {
public String toFtpCmdArgument() {
StringBuffer msg = new StringBuffer();
for (int i=0;i<datainfo.length;i++) {
msg.append( String.valueOf(datainfo[i]) );
if (i+1 != datainfo.length) msg.append( "," );
}
return msg.toString();
} } | public class class_name {
public String toFtpCmdArgument() {
StringBuffer msg = new StringBuffer();
for (int i=0;i<datainfo.length;i++) {
msg.append( String.valueOf(datainfo[i]) ); // depends on control dependency: [for], data = [i]
if (i+1 != datainfo.length) msg.append( "," );
}
return msg.toString();
... |
public class class_name {
private void doWakeUpWorker() {
if (idleWorkers.get() == 0) {
synchronized (workers) {
if (workers.size() >= getMaximumPoolSize()) {
return;
}
if (workers.isEmpty() || (idleWorkers.get() == 0)) {
... | public class class_name {
private void doWakeUpWorker() {
if (idleWorkers.get() == 0) {
synchronized (workers) {
// depends on control dependency: [if], data = [none]
if (workers.size() >= getMaximumPoolSize()) {
return;
// depends on control dependency: [if], ... |
public class class_name {
public static String getErrorMessage(Reader xml, List errors) {
BufferedReader reader = null;
StringBuffer result = new StringBuffer();
result.append("Your SLD is not valid.\n");
result.append(
"Most common problems are: \n(1) no namespaces - us... | public class class_name {
public static String getErrorMessage(Reader xml, List errors) {
BufferedReader reader = null;
StringBuffer result = new StringBuffer();
result.append("Your SLD is not valid.\n");
result.append(
"Most common problems are: \n(1) no namespaces - us... |
public class class_name {
private List<TypeMetadata> getSuperTypeMetadata(AnnotatedType annotatedType) {
List<TypeMetadata> superTypes = new ArrayList<>();
for (Class<?> i : annotatedType.getAnnotatedElement().getInterfaces()) {
superTypes.add(getOrCreateTypeMetadata(i));
}
... | public class class_name {
private List<TypeMetadata> getSuperTypeMetadata(AnnotatedType annotatedType) {
List<TypeMetadata> superTypes = new ArrayList<>();
for (Class<?> i : annotatedType.getAnnotatedElement().getInterfaces()) {
superTypes.add(getOrCreateTypeMetadata(i)); // depends on cont... |
public class class_name {
private long getDuration(@NonNull final View animatedView,
@NonNull final DialogAnimation animation) {
double scale = 1;
if (animatedView.getAnimation() != null) {
scale = (double) (System.currentTimeMillis() -
anim... | public class class_name {
private long getDuration(@NonNull final View animatedView,
@NonNull final DialogAnimation animation) {
double scale = 1;
if (animatedView.getAnimation() != null) {
scale = (double) (System.currentTimeMillis() -
anim... |
public class class_name {
protected void initialize() {
if (fields != null) {
Iterator<FieldEditor> e = fields.iterator();
while (e.hasNext()) {
FieldEditor pe = e.next();
pe.setPage(this);
pe.setPropertyChangeListener(this);
pe.setPreferenceStore(getPreferenceStore());
pe.load();
}
}
... | public class class_name {
protected void initialize() {
if (fields != null) {
Iterator<FieldEditor> e = fields.iterator();
while (e.hasNext()) {
FieldEditor pe = e.next();
pe.setPage(this); // depends on control dependency: [while], data = [none]
pe.setPropertyChangeListener(this); // depends on co... |
public class class_name {
public static String getParentPath(String path) {
String parentPath = null;
if (StringUtils.isEmpty(path)) {
parentPath = "";
} else {
parentPath = path;
if (parentPath.length() > 1 && parentPath.endsWith(JawrConstant.URL_SEPARATOR)) {
parentPath = parentPath.substring(0,... | public class class_name {
public static String getParentPath(String path) {
String parentPath = null;
if (StringUtils.isEmpty(path)) {
parentPath = ""; // depends on control dependency: [if], data = [none]
} else {
parentPath = path; // depends on control dependency: [if], data = [none]
if (parentPath... |
public class class_name {
public void run() {
try {
hardenedLoggingEventInputStream = new HardenedLoggingEventInputStream(new BufferedInputStream(socket.getInputStream()));
} catch (Exception e) {
logger.error("Could not open ObjectInputStream to " + socket, e);
closed = true;
}
ILo... | public class class_name {
public void run() {
try {
hardenedLoggingEventInputStream = new HardenedLoggingEventInputStream(new BufferedInputStream(socket.getInputStream())); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
logger.error("Could not open ObjectInputStream... |
public class class_name {
private List<Failure> execRulesOnValidates(List<Validate> objects)
{
ResourceBundle resourceBundle = getResourceBundle();
List<Failure> result = null;
for (Rule rule : allRules)
{
for (Validate obj : objects)
{
List<Failure> failures ... | public class class_name {
private List<Failure> execRulesOnValidates(List<Validate> objects)
{
ResourceBundle resourceBundle = getResourceBundle();
List<Failure> result = null;
for (Rule rule : allRules)
{
for (Validate obj : objects)
{
List<Failure> failures ... |
public class class_name {
public static String getMessage(String key, Object... args) {
if (messages == null) {
if (locale == null)
locale = Locale.getDefault();
messages = ResourceBundle.getBundle("com.ibm.ws.install.internal.resources.Repository", locale);
}
... | public class class_name {
public static String getMessage(String key, Object... args) {
if (messages == null) {
if (locale == null)
locale = Locale.getDefault();
messages = ResourceBundle.getBundle("com.ibm.ws.install.internal.resources.Repository", locale); // depends o... |
public class class_name {
private String buildReportChapter(final BuildData buildData) {
log.info("\tBuilding Report Chapter");
final ContentSpec contentSpec = buildData.getContentSpec();
final String locale = buildData.getBuildLocale();
final ZanataDetails zanataDetails = buildData.ge... | public class class_name {
private String buildReportChapter(final BuildData buildData) {
log.info("\tBuilding Report Chapter");
final ContentSpec contentSpec = buildData.getContentSpec();
final String locale = buildData.getBuildLocale();
final ZanataDetails zanataDetails = buildData.ge... |
public class class_name {
public static String join(String separator, List<String> topicsArray) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < topicsArray.size(); i++) {
if (sb.length() > 0) {
sb.append(",");
}
sb.append(topicsArray.get(i));
}
return sb.toStri... | public class class_name {
public static String join(String separator, List<String> topicsArray) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < topicsArray.size(); i++) {
if (sb.length() > 0) {
sb.append(","); // depends on control dependency: [if], data = [none]
}
sb.... |
public class class_name {
public static void setPreferredLineDrawingAlgorithm(BusLayerDrawerType algorithm) {
final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class);
if (prefs != null) {
if (algorithm == null) {
prefs.remove("DRAWING_ALGORITHM"); //$NON-NLS-1$
} else {
pref... | public class class_name {
public static void setPreferredLineDrawingAlgorithm(BusLayerDrawerType algorithm) {
final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class);
if (prefs != null) {
if (algorithm == null) {
prefs.remove("DRAWING_ALGORITHM"); //$NON-NLS-1$ // depends on contro... |
public class class_name {
public void set(Object... params) {
for (int i = 0; i < params.length; i += 2) {
hashAttributes.put((String) params[i], params[i + 1]);
}
if (plugin != null) {
plugin.invalidate();
}
} } | public class class_name {
public void set(Object... params) {
for (int i = 0; i < params.length; i += 2) {
hashAttributes.put((String) params[i], params[i + 1]); // depends on control dependency: [for], data = [i]
}
if (plugin != null) {
plugin.invalidate(); // depends ... |
public class class_name {
public static boolean downloadAndInstallUpdate(UpdateInfo updateToInstall, UpdateProgressDialog gui,
boolean launchUpdateAfterInstall, @SuppressWarnings("SameParameterValue") boolean deleteOldVersion, boolean inheritIO, String... params) thro... | public class class_name {
public static boolean downloadAndInstallUpdate(UpdateInfo updateToInstall, UpdateProgressDialog gui,
boolean launchUpdateAfterInstall, @SuppressWarnings("SameParameterValue") boolean deleteOldVersion, boolean inheritIO, String... params) thro... |
public class class_name {
public BooleanExpression or(@Nullable Predicate right) {
right = (Predicate) ExpressionUtils.extract(right);
if (right != null) {
return Expressions.booleanOperation(Ops.OR, mixin, right);
} else {
return this;
}
} } | public class class_name {
public BooleanExpression or(@Nullable Predicate right) {
right = (Predicate) ExpressionUtils.extract(right);
if (right != null) {
return Expressions.booleanOperation(Ops.OR, mixin, right); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public Date getDateTimeHelper(int dateDataSet, int timeDataSet) throws SerializationException {
DataSet dateDS = null;
DataSet timeDS = null;
for (Iterator<DataSet> i = dataSets.iterator(); (dateDS == null || timeDS == null) && i.hasNext();) {
DataSet ds = i.next();
DataSetIn... | public class class_name {
public Date getDateTimeHelper(int dateDataSet, int timeDataSet) throws SerializationException {
DataSet dateDS = null;
DataSet timeDS = null;
for (Iterator<DataSet> i = dataSets.iterator(); (dateDS == null || timeDS == null) && i.hasNext();) {
DataSet ds = i.next();
DataSetIn... |
public class class_name {
void heterogenousUnion(final HLL other) {
/*
* The logic here is divided into two sections: unions with an EMPTY
* HLL, and unions between EXPLICIT/SPARSE/FULL
* HLL.
*
* Between those two sections, all possible heterogeneous unions are
... | public class class_name {
void heterogenousUnion(final HLL other) {
/*
* The logic here is divided into two sections: unions with an EMPTY
* HLL, and unions between EXPLICIT/SPARSE/FULL
* HLL.
*
* Between those two sections, all possible heterogeneous unions are
... |
public class class_name {
public void validate(final Runnable nextAction) {
validateFull(m_structureId, getAliasPaths(), new AsyncCallback<Map<String, String>>() {
public void onFailure(Throwable caught) {
// do nothing
}
public void onSuccess(... | public class class_name {
public void validate(final Runnable nextAction) {
validateFull(m_structureId, getAliasPaths(), new AsyncCallback<Map<String, String>>() {
public void onFailure(Throwable caught) {
// do nothing
}
public void onSuccess(... |
public class class_name {
public static void setBitmapRange(long[] bitmap, int start, int end) {
if (start == end) {
return;
}
int firstword = start / 64;
int endword = (end - 1) / 64;
if (firstword == endword) {
bitmap[firstword] |= (~0L << start) & (~0L >>> -end);
return;
}
... | public class class_name {
public static void setBitmapRange(long[] bitmap, int start, int end) {
if (start == end) {
return; // depends on control dependency: [if], data = [none]
}
int firstword = start / 64;
int endword = (end - 1) / 64;
if (firstword == endword) {
bitmap[firstword] |=... |
public class class_name {
private ClassLoader loadJobTypeClassLoader(final File pluginDir,
final String jobTypeName, final JobTypePluginSet plugins) {
// sysconf says what jars/confs to load
final List<URL> resources = new ArrayList<>();
final Props pluginLoadProps = plugins.getPluginLoaderProps(jobT... | public class class_name {
private ClassLoader loadJobTypeClassLoader(final File pluginDir,
final String jobTypeName, final JobTypePluginSet plugins) {
// sysconf says what jars/confs to load
final List<URL> resources = new ArrayList<>();
final Props pluginLoadProps = plugins.getPluginLoaderProps(jobT... |
public class class_name {
public Iterator<List<HasWord>> iterator() {
try {
if (inputReader == null)
inputReader = getReaderFromPath(inputPath);
//TODO: Add new document types here
if (docType == DocType.Plain) {
return new PlainTextIterator();
} else if (docType ==... | public class class_name {
public Iterator<List<HasWord>> iterator() {
try {
if (inputReader == null)
inputReader = getReaderFromPath(inputPath);
//TODO: Add new document types here
if (docType == DocType.Plain) {
return new PlainTextIterator();
// depends on control depen... |
public class class_name {
private JoinableResourceBundleContent postProcessJoinedCompositeBundle(CompositeResourceBundle composite,
StringBuffer content, BundleProcessingStatus status) {
JoinableResourceBundleContent store = new JoinableResourceBundleContent();
StringBuffer processedContent = null;
status.se... | public class class_name {
private JoinableResourceBundleContent postProcessJoinedCompositeBundle(CompositeResourceBundle composite,
StringBuffer content, BundleProcessingStatus status) {
JoinableResourceBundleContent store = new JoinableResourceBundleContent();
StringBuffer processedContent = null;
status.se... |
public class class_name {
public void disconnect() {
connection.getRoster().removeRosterListener(leagueRosterListener);
try {
connection.disconnect();
} catch (final NotConnectedException e) {
e.printStackTrace();
}
stop = true;
} } | public class class_name {
public void disconnect() {
connection.getRoster().removeRosterListener(leagueRosterListener);
try {
connection.disconnect(); // depends on control dependency: [try], data = [none]
} catch (final NotConnectedException e) {
e.printStackTrace();
} // depends on control dependency: ... |
public class class_name {
public static int round(float a) {
int intBits = Float.floatToRawIntBits(a);
int biasedExp = (intBits & FloatConsts.EXP_BIT_MASK)
>> (FloatConsts.SIGNIFICAND_WIDTH - 1);
int shift = (FloatConsts.SIGNIFICAND_WIDTH - 2
+ FloatConsts.EXP_BI... | public class class_name {
public static int round(float a) {
int intBits = Float.floatToRawIntBits(a);
int biasedExp = (intBits & FloatConsts.EXP_BIT_MASK)
>> (FloatConsts.SIGNIFICAND_WIDTH - 1);
int shift = (FloatConsts.SIGNIFICAND_WIDTH - 2
+ FloatConsts.EXP_BI... |
public class class_name {
private void recordMount(SlotReference slot) {
if (mediaMounts.add(slot)) {
deliverMountUpdate(slot, true);
}
if (!mediaDetails.containsKey(slot)) {
try {
VirtualCdj.getInstance().sendMediaQuery(slot);
} catch (Except... | public class class_name {
private void recordMount(SlotReference slot) {
if (mediaMounts.add(slot)) {
deliverMountUpdate(slot, true); // depends on control dependency: [if], data = [none]
}
if (!mediaDetails.containsKey(slot)) {
try {
VirtualCdj.getInstan... |
public class class_name {
public String getAvatarHash() {
byte[] bytes = getAvatar();
if (bytes == null) {
return null;
}
MessageDigest digest;
try {
digest = MessageDigest.getInstance("SHA-1");
}
catch (NoSuchAlgorithmException e) {
... | public class class_name {
public String getAvatarHash() {
byte[] bytes = getAvatar();
if (bytes == null) {
return null; // depends on control dependency: [if], data = [none]
}
MessageDigest digest;
try {
digest = MessageDigest.getInstance("SHA-1"); // de... |
public class class_name {
@Override
public Object get(int index, Scriptable start) {
if (0 <= index && index < string.length()) {
return String.valueOf(string.charAt(index));
}
return super.get(index, start);
} } | public class class_name {
@Override
public Object get(int index, Scriptable start) {
if (0 <= index && index < string.length()) {
return String.valueOf(string.charAt(index)); // depends on control dependency: [if], data = [none]
}
return super.get(index, start);
} } |
public class class_name {
public void setSamlProviderARNs(java.util.Collection<String> samlProviderARNs) {
if (samlProviderARNs == null) {
this.samlProviderARNs = null;
return;
}
this.samlProviderARNs = new java.util.ArrayList<String>(samlProviderARNs);
} } | public class class_name {
public void setSamlProviderARNs(java.util.Collection<String> samlProviderARNs) {
if (samlProviderARNs == null) {
this.samlProviderARNs = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public List<String> getTaskList(List<String> correlationIds) {
ArrayList<String> tasks = new ArrayList<String>();
// Better than the loop would be to introduce an own query doing this in one SQL, see
// https://app.camunda.com/confluence/display/foxUserGuide/Performance+Tuning+wit... | public class class_name {
public List<String> getTaskList(List<String> correlationIds) {
ArrayList<String> tasks = new ArrayList<String>();
// Better than the loop would be to introduce an own query doing this in one SQL, see
// https://app.camunda.com/confluence/display/foxUserGuide/Performance+Tuning+wit... |
public class class_name {
public Predictor sunspot(double... sunspot)
{
CommandLine<Double> line = new CommandLine<>(SUNSPOT, 5);
for (double s : sunspot)
{
line.add(s);
}
input.add(line);
return this;
} } | public class class_name {
public Predictor sunspot(double... sunspot)
{
CommandLine<Double> line = new CommandLine<>(SUNSPOT, 5);
for (double s : sunspot)
{
line.add(s);
// depends on control dependency: [for], data = [s]
}
input.add(line);
return... |
public class class_name {
private void updateRender() {
if (inherit.isSelected())
{
emitter.usePoints = Particle.INHERIT_POINTS;
oriented.setEnabled( true );
}
if (quads.isSelected())
{
emitter.usePoints = Particle.USE_QUADS;
oriented.setEnabled( true );
}
if (points.isSelected())
... | public class class_name {
private void updateRender() {
if (inherit.isSelected())
{
emitter.usePoints = Particle.INHERIT_POINTS;
// depends on control dependency: [if], data = [none]
oriented.setEnabled( true );
// depends on control dependency: [if], data = [none]
}
if (quads.isSelected())
{
... |
public class class_name {
public List<String> getUptodateModules() {
if (m_uptodateModules == null) {
m_uptodateModules = new ArrayList<String>();
m_modulesToUpdate = new ArrayList<String>();
Map<String, CmsModuleVersion> installedModules = getInstalledModules();
... | public class class_name {
public List<String> getUptodateModules() {
if (m_uptodateModules == null) {
m_uptodateModules = new ArrayList<String>(); // depends on control dependency: [if], data = [none]
m_modulesToUpdate = new ArrayList<String>(); // depends on control dependency: [if], ... |
public class class_name {
@Override
public String getMessage()
{
String msg = super.getMessage();
if (msg == null) {
msg = "N/A";
}
JsonLocation loc = getLocation();
if (loc != null) {
StringBuilder sb = new StringBuilder();
sb.append(... | public class class_name {
@Override
public String getMessage()
{
String msg = super.getMessage();
if (msg == null) {
msg = "N/A"; // depends on control dependency: [if], data = [none]
}
JsonLocation loc = getLocation();
if (loc != null) {
StringBu... |
public class class_name {
public final EObject ruleAOPMember() throws RecognitionException {
EObject current = null;
Token otherlv_3=null;
Token otherlv_5=null;
Token otherlv_7=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_14=null;
To... | public class class_name {
public final EObject ruleAOPMember() throws RecognitionException {
EObject current = null;
Token otherlv_3=null;
Token otherlv_5=null;
Token otherlv_7=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_14=null;
To... |
public class class_name {
@FFDCIgnore(InvalidNameException.class)
public static String getCNFromDN(String dn) {
String cn = null;
try {
LdapName ldapDN = new LdapName(dn);
for (int i = ldapDN.size() - 1; i > -1; i--) {
//for (int i = 0; i < ldapDN.size(); i++... | public class class_name {
@FFDCIgnore(InvalidNameException.class)
public static String getCNFromDN(String dn) {
String cn = null;
try {
LdapName ldapDN = new LdapName(dn);
for (int i = ldapDN.size() - 1; i > -1; i--) {
//for (int i = 0; i < ldapDN.size(); i++... |
public class class_name {
public void setWatermarks(java.util.Collection<PresetWatermark> watermarks) {
if (watermarks == null) {
this.watermarks = null;
return;
}
this.watermarks = new com.amazonaws.internal.SdkInternalList<PresetWatermark>(watermarks);
} } | public class class_name {
public void setWatermarks(java.util.Collection<PresetWatermark> watermarks) {
if (watermarks == null) {
this.watermarks = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
<T> T deserialize(String body, Class<T> clazz) {
if (body == null || body.isEmpty()) {
throw new ServiceException(ErrorCode.REMOTE_DIRECTORY_SERVER_ERROR,
ErrorCode.REMOTE_DIRECTORY_SERVER_ERROR.getMessageTemplate(),
"the message bod... | public class class_name {
<T> T deserialize(String body, Class<T> clazz) {
if (body == null || body.isEmpty()) {
throw new ServiceException(ErrorCode.REMOTE_DIRECTORY_SERVER_ERROR,
ErrorCode.REMOTE_DIRECTORY_SERVER_ERROR.getMessageTemplate(),
"the message bod... |
public class class_name {
public DFAState<T> transit(CharRange condition)
{
Transition<DFAState<T>> t = transitions.get(condition);
if (t != null)
{
return t.getTo();
}
return null;
} } | public class class_name {
public DFAState<T> transit(CharRange condition)
{
Transition<DFAState<T>> t = transitions.get(condition);
if (t != null)
{
return t.getTo();
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
private String getPageEncodingForJspSyntax(JspReader jspReader,
Mark startMark)
throws JasperException {
String encoding = null;
String saveEncoding = null;
jspReader.reset(startMark);
/*
* Determine page encoding from directive of the form <%@ page... | public class class_name {
private String getPageEncodingForJspSyntax(JspReader jspReader,
Mark startMark)
throws JasperException {
String encoding = null;
String saveEncoding = null;
jspReader.reset(startMark);
/*
* Determine page encoding from directive of the form <%@ page... |
public class class_name {
public synchronized byte[] response(byte[] token) {
try {
return saslClient != null ? saslClient.evaluateChallenge(token) : new byte[0];
} catch (SaslException e) {
throw Throwables.propagate(e);
}
} } | public class class_name {
public synchronized byte[] response(byte[] token) {
try {
return saslClient != null ? saslClient.evaluateChallenge(token) : new byte[0]; // depends on control dependency: [try], data = [none]
} catch (SaslException e) {
throw Throwables.propagate(e);
} // depends on co... |
public class class_name {
public static Method getGetterMethod(Class<?> clazz, String propertyName) {
String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(propertyName);
Method method = getMethod(clazz, getterMethodName);
// retry on another name
if (method == null) {
getterMethodName = IS_PRE... | public class class_name {
public static Method getGetterMethod(Class<?> clazz, String propertyName) {
String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(propertyName);
Method method = getMethod(clazz, getterMethodName);
// retry on another name
if (method == null) {
getterMethodName = IS_PRE... |
public class class_name {
public float rSum(float[] y, float[] w) {
float tmp1 = (float) 0.0, tmp2 = (float) 0.0;
for (int i = 0; i < y.length; i++) {
tmp1 += y[i] * w[i];
tmp2 += w[i];
}
return correctTo01(tmp1 / tmp2);
} } | public class class_name {
public float rSum(float[] y, float[] w) {
float tmp1 = (float) 0.0, tmp2 = (float) 0.0;
for (int i = 0; i < y.length; i++) {
tmp1 += y[i] * w[i];
// depends on control dependency: [for], data = [i]
tmp2 += w[i];
// depends on control dependency: [for], data = [i]
... |
public class class_name {
public String encryptBytes(byte[] credentials) {
checkNotNull(credentials, "credentials");
try {
int length = credentials.length;
byte[] plaintextBytes = ByteBuffer.wrap(new byte[Math.max(length + 4, MINIMUM_LENGTH)])
.putInt(creden... | public class class_name {
public String encryptBytes(byte[] credentials) {
checkNotNull(credentials, "credentials");
try {
int length = credentials.length;
byte[] plaintextBytes = ByteBuffer.wrap(new byte[Math.max(length + 4, MINIMUM_LENGTH)])
.putInt(creden... |
public class class_name {
public Integer getSeqByMysql(String seqKey){
PlatformTransactionManager transactionManager=MicroTranManagerHolder.getTransactionManager(dbName);
DefaultTransactionDefinition def =new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.PROPAGATION... | public class class_name {
public Integer getSeqByMysql(String seqKey){
PlatformTransactionManager transactionManager=MicroTranManagerHolder.getTransactionManager(dbName);
DefaultTransactionDefinition def =new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.PROPAGATION... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> boolean hasNull(T... array) {
if (isNotEmpty(array)) {
for (T element : array) {
if (null == element) {
return true;
}
}
}
return false;
} } | public class class_name {
@SuppressWarnings("unchecked")
public static <T> boolean hasNull(T... array) {
if (isNotEmpty(array)) {
for (T element : array) {
if (null == element) {
return true;
// depends on control dependency: [if], data = [none]
}
}
}
return false;
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.