code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void terminated(Pipe pipe)
{
// Remove the pipe from the list; adjust number of matching, active and/or
// eligible pipes accordingly.
if (pipes.indexOf(pipe) < matching) {
Collections.swap(pipes, pipes.indexOf(pipe), matching - 1);
... | public class class_name {
public void terminated(Pipe pipe)
{
// Remove the pipe from the list; adjust number of matching, active and/or
// eligible pipes accordingly.
if (pipes.indexOf(pipe) < matching) {
Collections.swap(pipes, pipes.indexOf(pipe), matching - 1); // depends ... |
public class class_name {
public Movie setVolume(final double volume)
{
getAttributes().setVolume(volume);
if (null != m_video)
{
m_video.setVolume(getVolume());
}
return this;
} } | public class class_name {
public Movie setVolume(final double volume)
{
getAttributes().setVolume(volume);
if (null != m_video)
{
m_video.setVolume(getVolume()); // depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
@Override
public void update(double extrp, int x, int y, double speed)
{
data.setOffsetY(y);
for (int i = 0; i < cloudsNumber; i++)
{
this.x[i] += this.speed[i] * extrp;
this.x[i] = UtilMath.wrapDouble(this.x[i], 0.0, sprite.getWidth())... | public class class_name {
@Override
public void update(double extrp, int x, int y, double speed)
{
data.setOffsetY(y);
for (int i = 0; i < cloudsNumber; i++)
{
this.x[i] += this.speed[i] * extrp; // depends on control dependency: [for], data = [i]
this.x[i] = Ut... |
public class class_name {
@SuppressWarnings("rawtypes")
public Set zrangeByScore(Object key, double min, double max) {
Jedis jedis = getJedis();
try {
Set<byte[]> data = jedis.zrangeByScore(keyToBytes(key), min, max);
Set<Object> result = new LinkedHashSet<Object>(); // 有序集合必须 LinkedHashSet
valueSe... | public class class_name {
@SuppressWarnings("rawtypes")
public Set zrangeByScore(Object key, double min, double max) {
Jedis jedis = getJedis();
try {
Set<byte[]> data = jedis.zrangeByScore(keyToBytes(key), min, max);
Set<Object> result = new LinkedHashSet<Object>(); // 有序集合必须 LinkedHashSet
valueSe... |
public class class_name {
public HashAlgorithmOptions withAllowedValues(HashAlgorithm... allowedValues) {
java.util.ArrayList<String> allowedValuesCopy = new java.util.ArrayList<String>(allowedValues.length);
for (HashAlgorithm value : allowedValues) {
allowedValuesCopy.add(value.toString()... | public class class_name {
public HashAlgorithmOptions withAllowedValues(HashAlgorithm... allowedValues) {
java.util.ArrayList<String> allowedValuesCopy = new java.util.ArrayList<String>(allowedValues.length);
for (HashAlgorithm value : allowedValues) {
allowedValuesCopy.add(value.toString()... |
public class class_name {
public static boolean addResourceToGuvnor(String repLoc,
String targetLoc,
IFile selectedFile) {
boolean res = false;
try {
String fullPath = targetLoc + selectedFile.getName(... | public class class_name {
public static boolean addResourceToGuvnor(String repLoc,
String targetLoc,
IFile selectedFile) {
boolean res = false;
try {
String fullPath = targetLoc + selectedFile.getName(... |
public class class_name {
public boolean mergeEffects(String expr, Effect[] effects, float[] results) {
boolean result;
if (expr.equals("some(where (p_eft == allow))")) {
result = false;
for (Effect eft : effects) {
if (eft == Effect.Allow) {
... | public class class_name {
public boolean mergeEffects(String expr, Effect[] effects, float[] results) {
boolean result;
if (expr.equals("some(where (p_eft == allow))")) {
result = false; // depends on control dependency: [if], data = [none]
for (Effect eft : effects) {
... |
public class class_name {
public TableWriteItems withHashAndRangeKeysToDelete(
String hashKeyName, String rangeKeyName,
Object... alternatingHashAndRangeKeyValues) {
if (hashKeyName == null)
throw new IllegalArgumentException("hash key name must be specified");
if (... | public class class_name {
public TableWriteItems withHashAndRangeKeysToDelete(
String hashKeyName, String rangeKeyName,
Object... alternatingHashAndRangeKeyValues) {
if (hashKeyName == null)
throw new IllegalArgumentException("hash key name must be specified");
if (... |
public class class_name {
static <T, A extends BindingCollectionAdapter<T>> WeakReference<A> createRef(A adapter, ObservableList<T> items, ObservableList.OnListChangedCallback callback) {
if (thread == null || !thread.isAlive()) {
thread = new PollReferenceThread();
thread.start();
... | public class class_name {
static <T, A extends BindingCollectionAdapter<T>> WeakReference<A> createRef(A adapter, ObservableList<T> items, ObservableList.OnListChangedCallback callback) {
if (thread == null || !thread.isAlive()) {
thread = new PollReferenceThread(); // depends on control dependency... |
public class class_name {
private void fireInvitationRejectionListeners(Message message, MUCUser.Decline rejection) {
EntityBareJid invitee = rejection.getFrom();
String reason = rejection.getReason();
InvitationRejectionListener[] listeners;
synchronized (invitationRejectionListeners) ... | public class class_name {
private void fireInvitationRejectionListeners(Message message, MUCUser.Decline rejection) {
EntityBareJid invitee = rejection.getFrom();
String reason = rejection.getReason();
InvitationRejectionListener[] listeners;
synchronized (invitationRejectionListeners) ... |
public class class_name {
@Override
public MethodVisitor visitMethod(
final int access,
final String name,
final String desc,
final String signature,
final String[] exceptions) {
MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
return new CodeSize... | public class class_name {
@Override
public MethodVisitor visitMethod(
final int access,
final String name,
final String desc,
final String signature,
final String[] exceptions) {
MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
return new CodeSize... |
public class class_name {
private static void outputFilesDat(File dstDir, Map<String, SortedMap<String, ZoneRules>> allBuiltZones,
Set<String> allRegionIds, Set<ZoneRules> allRules, SortedMap<LocalDate, Byte> leapSeconds) {
File tzdbFile = new File(dstDir, "TZDB.dat");
tzdbFile.delete();
... | public class class_name {
private static void outputFilesDat(File dstDir, Map<String, SortedMap<String, ZoneRules>> allBuiltZones,
Set<String> allRegionIds, Set<ZoneRules> allRules, SortedMap<LocalDate, Byte> leapSeconds) {
File tzdbFile = new File(dstDir, "TZDB.dat");
tzdbFile.delete();
... |
public class class_name {
@NotNull
@SuppressWarnings("unchecked")
public <E extends Throwable> Exceptional<T> ifExceptionIs(@NotNull Class<E> throwableClass, @NotNull Consumer<? super E> consumer) {
if ( (throwable != null) &&
(throwableClass.isAssignableFrom(throwable.getClass())) ) {
... | public class class_name {
@NotNull
@SuppressWarnings("unchecked")
public <E extends Throwable> Exceptional<T> ifExceptionIs(@NotNull Class<E> throwableClass, @NotNull Consumer<? super E> consumer) {
if ( (throwable != null) &&
(throwableClass.isAssignableFrom(throwable.getClass())) ) {
... |
public class class_name {
public Float getColumnValueAsFloat(final int col) {
final Object value = getColumnValue(col);
if (value == null) {
return null;
}
return new Float(value.toString());
} } | public class class_name {
public Float getColumnValueAsFloat(final int col) {
final Object value = getColumnValue(col);
if (value == null) {
return null;
// depends on control dependency: [if], data = [none]
}
return new Float(value.toString());
} } |
public class class_name {
public final static <T> Stream<T> jitter(final Stream<T> stream, final long jitterInNanos) {
final Iterator<T> it = stream.iterator();
final Random r = new Random();
return Streams.stream(new Iterator<T>() {
@Override
public boolean hasNext() {... | public class class_name {
public final static <T> Stream<T> jitter(final Stream<T> stream, final long jitterInNanos) {
final Iterator<T> it = stream.iterator();
final Random r = new Random();
return Streams.stream(new Iterator<T>() {
@Override
public boolean hasNext() {... |
public class class_name {
@Override
public String modifyObject(String pid,
String state,
String label,
String ownerId,
String logMessage) {
LOG.debug("start: modifyObject, {}", pid);
... | public class class_name {
@Override
public String modifyObject(String pid,
String state,
String label,
String ownerId,
String logMessage) {
LOG.debug("start: modifyObject, {}", pid);
... |
public class class_name {
@Sensitive
public static byte[] encodeLTPATokenForWASClassic(Codec codec, @Sensitive byte[] ltpaTokenBytes) {
byte[] result = null;
try {
byte[] innerGSSToken = encodeLTPAToken(codec, ltpaTokenBytes);
if (innerGSSToken != null) {
res... | public class class_name {
@Sensitive
public static byte[] encodeLTPATokenForWASClassic(Codec codec, @Sensitive byte[] ltpaTokenBytes) {
byte[] result = null;
try {
byte[] innerGSSToken = encodeLTPAToken(codec, ltpaTokenBytes);
if (innerGSSToken != null) {
res... |
public class class_name {
private void readChunk()
throws IOException {
String line = readLine(_in).trim();
int length = Integer.parseInt(line, 16);
if (length > 0) {
// make sure the chunk will fit into the buffer
if (length > _buf.length) {
_buf = new byte[length];
}
int bytesLeft = l... | public class class_name {
private void readChunk()
throws IOException {
String line = readLine(_in).trim();
int length = Integer.parseInt(line, 16);
if (length > 0) {
// make sure the chunk will fit into the buffer
if (length > _buf.length) {
_buf = new byte[length]; // depends on control dependen... |
public class class_name {
private static String getModuleFolder(String moduleName) {
if (moduleName == null) {
return null;
}
CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
if (module != null) {
for (String resource : module.getResources())... | public class class_name {
private static String getModuleFolder(String moduleName) {
if (moduleName == null) {
return null; // depends on control dependency: [if], data = [none]
}
CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
if (module != null) {
... |
public class class_name {
public T completeAfter(long delay, TimeUnit unit)
{
Checks.notNull(unit, "TimeUnit");
try
{
unit.sleep(delay);
return complete();
}
catch (InterruptedException e)
{
throw new RuntimeException(e);
}... | public class class_name {
public T completeAfter(long delay, TimeUnit unit)
{
Checks.notNull(unit, "TimeUnit");
try
{
unit.sleep(delay); // depends on control dependency: [try], data = [none]
return complete(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public void init(ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)
{
this.repository = repository;
this.workspaceName = workspaceName;
this.config = config;
this.timeStamp = timeStamp;
try
{
... | public class class_name {
public void init(ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)
{
this.repository = repository;
this.workspaceName = workspaceName;
this.config = config;
this.timeStamp = timeStamp;
try
{
... |
public class class_name {
public static <D, J> J toJava(Class<? extends PreferenceTypeAdapter<J, D>> clazz, D value) {
@SuppressWarnings("unchecked")
PreferenceTypeAdapter<J, D> adapter = cache.get(clazz);
if (adapter == null) {
adapter = generateAdapter(clazz);
}
return adapter.toJava(value);
} } | public class class_name {
public static <D, J> J toJava(Class<? extends PreferenceTypeAdapter<J, D>> clazz, D value) {
@SuppressWarnings("unchecked")
PreferenceTypeAdapter<J, D> adapter = cache.get(clazz);
if (adapter == null) {
adapter = generateAdapter(clazz); // depends on control dependency: [if], data =... |
public class class_name {
private BufferPool.Buffer getBuffer(final int pos,
final boolean forRead) {
if ((curBuffer != null) && curBuffer.contains(pos)){
return curBuffer;
}
for (BufferPool.Buffer b: buffers) {
if (forRead) {
if (b.contains(pos)) {
... | public class class_name {
private BufferPool.Buffer getBuffer(final int pos,
final boolean forRead) {
if ((curBuffer != null) && curBuffer.contains(pos)){
return curBuffer; // depends on control dependency: [if], data = [none]
}
for (BufferPool.Buffer b: buffers) {
i... |
public class class_name {
private void tidyUpMonitoredDirectory(boolean createdDir, File dirToCleanup) {
if (createdDir && dirToCleanup != null) {
File[] fileListing = dirToCleanup.listFiles();
if (fileListing == null || fileListing.length == 0) {
if (!!!dirToCleanup.del... | public class class_name {
private void tidyUpMonitoredDirectory(boolean createdDir, File dirToCleanup) {
if (createdDir && dirToCleanup != null) {
File[] fileListing = dirToCleanup.listFiles();
if (fileListing == null || fileListing.length == 0) {
if (!!!dirToCleanup.del... |
public class class_name {
public static int showValidatedTextInputDialog(Window parent, String title,
JComponent mainComponent, JTextComponent textComponent,
Predicate<String> validInputPredicate)
{
JButton okButton = new JButton("Ok");
String text = textComponent.get... | public class class_name {
public static int showValidatedTextInputDialog(Window parent, String title,
JComponent mainComponent, JTextComponent textComponent,
Predicate<String> validInputPredicate)
{
JButton okButton = new JButton("Ok");
String text = textComponent.get... |
public class class_name {
protected final IData checkItemIfDeleted(final IData pToCheck) {
if (pToCheck == null) {
throw new IllegalStateException(new StringBuilder("Data not existing.").toString());
} else if (pToCheck instanceof DeletedData) {
return null;
} else {
... | public class class_name {
protected final IData checkItemIfDeleted(final IData pToCheck) {
if (pToCheck == null) {
throw new IllegalStateException(new StringBuilder("Data not existing.").toString());
} else if (pToCheck instanceof DeletedData) {
return null; // depends on contro... |
public class class_name {
public final void not_key() throws RecognitionException {
Token id=null;
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:5: ({...}? =>id= ID )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:12: {...}? =>id= ID
{
if ( !(((helper... | public class class_name {
public final void not_key() throws RecognitionException {
Token id=null;
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:5: ({...}? =>id= ID )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:12: {...}? =>id= ID
{
if ( !(((helper... |
public class class_name {
public static boolean isBELScript(final String path) {
if (path == null) {
return false;
}
if (path.endsWith(BEL_SCRIPT_EXTENSION)) {
return true;
}
return false;
} } | public class class_name {
public static boolean isBELScript(final String path) {
if (path == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (path.endsWith(BEL_SCRIPT_EXTENSION)) {
return true; // depends on control dependency: [if], data... |
public class class_name {
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
{
// If not security domain is available, or the preferred alias is NULL,
// then default to the nested key manager's process for selecting the keystore
if (null == domain
|| domain.getPreferre... | public class class_name {
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
{
// If not security domain is available, or the preferred alias is NULL,
// then default to the nested key manager's process for selecting the keystore
if (null == domain
|| domain.getPreferre... |
public class class_name {
public void addBorder(int bordersToAdd, int borderStyle, float borderWidth, Color borderColor) {
if((bordersToAdd & Rectangle.LEFT) == Rectangle.LEFT) {
setBorder(RtfBorder.LEFT_BORDER, borderStyle, borderWidth, borderColor);
}
if((bordersToAdd & Rectangle.... | public class class_name {
public void addBorder(int bordersToAdd, int borderStyle, float borderWidth, Color borderColor) {
if((bordersToAdd & Rectangle.LEFT) == Rectangle.LEFT) {
setBorder(RtfBorder.LEFT_BORDER, borderStyle, borderWidth, borderColor); // depends on control dependency: [if], data = ... |
public class class_name {
public java.util.List<String> getDashboardNames() {
if (dashboardNames == null) {
dashboardNames = new com.amazonaws.internal.SdkInternalList<String>();
}
return dashboardNames;
} } | public class class_name {
public java.util.List<String> getDashboardNames() {
if (dashboardNames == null) {
dashboardNames = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return dashboardNames;
} } |
public class class_name {
public static void vertical(GrayF64 input, GrayF64 output, int radius, @Nullable DWorkArrays work) {
boolean processed = BOverrideConvolveImageMean.invokeNativeVertical(input, output, radius);
if( !processed ) {
Kernel1D_F64 kernel = FactoryKernel.table1D_F64(radius, true);
if (ke... | public class class_name {
public static void vertical(GrayF64 input, GrayF64 output, int radius, @Nullable DWorkArrays work) {
boolean processed = BOverrideConvolveImageMean.invokeNativeVertical(input, output, radius);
if( !processed ) {
Kernel1D_F64 kernel = FactoryKernel.table1D_F64(radius, true);
if (ke... |
public class class_name {
private List<Match> matchesImpl(List<Entry> desiredLocales, int threshold) {
int bestDistance = MAX_DISTANCE;
// TreeMap is used to maintain the original ordering captured in the
// supportedLocales list. Even though we sort the values before returning,
// the stable sort ord... | public class class_name {
private List<Match> matchesImpl(List<Entry> desiredLocales, int threshold) {
int bestDistance = MAX_DISTANCE;
// TreeMap is used to maintain the original ordering captured in the
// supportedLocales list. Even though we sort the values before returning,
// the stable sort ord... |
public class class_name {
public List<Interceptor<?>> getInterceptors(J2EEName ejbJ2EEName, Method method, InterceptionType interceptionType) {
List<Interceptor<?>> interceptors = new ArrayList<Interceptor<?>>();
//find the Interceptor Bindings for the ejb
InterceptorBindings ejbInterceptors =... | public class class_name {
public List<Interceptor<?>> getInterceptors(J2EEName ejbJ2EEName, Method method, InterceptionType interceptionType) {
List<Interceptor<?>> interceptors = new ArrayList<Interceptor<?>>();
//find the Interceptor Bindings for the ejb
InterceptorBindings ejbInterceptors =... |
public class class_name {
public synchronized void write(ByteBuffer buffer)
{
if (buffer.hasRemaining())
{
_buffers=LazyList.add(_buffers,buffer);
this.notify();
}
else
recycle(buffer);
} } | public class class_name {
public synchronized void write(ByteBuffer buffer)
{
if (buffer.hasRemaining())
{
_buffers=LazyList.add(_buffers,buffer); // depends on control dependency: [if], data = [none]
this.notify(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void cancel(ScheduledFuture<?> scheduledFuture) {
clear();
if (scheduledFuture != null && !scheduledFuture.isDone()) {
scheduledFuture.cancel(false);
}
} } | public class class_name {
public void cancel(ScheduledFuture<?> scheduledFuture) {
clear();
if (scheduledFuture != null && !scheduledFuture.isDone()) {
scheduledFuture.cancel(false); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String repeat(final String source, int count) {
StringBand result = new StringBand(count);
while (count > 0) {
result.append(source);
count--;
}
return result.toString();
} } | public class class_name {
public static String repeat(final String source, int count) {
StringBand result = new StringBand(count);
while (count > 0) {
result.append(source); // depends on control dependency: [while], data = [none]
count--; // depends on control dependency: [while], data = [none]
}
return... |
public class class_name {
public ChooserDialog withOnLastBackPressedListener(OnBackPressedListener listener) {
if (this._onBackPressed instanceof defBackPressed) {
((defBackPressed) this._onBackPressed)._onLastBackPressed = listener;
}
return this;
} } | public class class_name {
public ChooserDialog withOnLastBackPressedListener(OnBackPressedListener listener) {
if (this._onBackPressed instanceof defBackPressed) {
((defBackPressed) this._onBackPressed)._onLastBackPressed = listener; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void removeFromParent(@NonNull final View view) {
Condition.INSTANCE.ensureNotNull(view, "The view may not be null");
ViewParent parent = view.getParent();
if (parent instanceof ViewGroup) {
((ViewGroup) parent).removeView(view);
}
... | public class class_name {
public static void removeFromParent(@NonNull final View view) {
Condition.INSTANCE.ensureNotNull(view, "The view may not be null");
ViewParent parent = view.getParent();
if (parent instanceof ViewGroup) {
((ViewGroup) parent).removeView(view); // depends o... |
public class class_name {
protected void handleUrlActivated(HyperlinkEvent e, URL url) {
try {
Desktop.getDesktop().browse(url.toURI());
} catch (Exception ex) {
throw new ApplicationException("Error handling URL " + url, ex);
}
} } | public class class_name {
protected void handleUrlActivated(HyperlinkEvent e, URL url) {
try {
Desktop.getDesktop().browse(url.toURI()); // depends on control dependency: [try], data = [none]
} catch (Exception ex) {
throw new ApplicationException("Error handling URL " + url, ex... |
public class class_name {
@Modified(id = "exporterServices")
void modifiedExporterService(ServiceReference<ExporterService> serviceReference) {
try {
exportersManager.modified(serviceReference);
} catch (InvalidFilterException invalidFilterException) {
LOG.error("The Service... | public class class_name {
@Modified(id = "exporterServices")
void modifiedExporterService(ServiceReference<ExporterService> serviceReference) {
try {
exportersManager.modified(serviceReference); // depends on control dependency: [try], data = [none]
} catch (InvalidFilterException inval... |
public class class_name {
public static void install(Application app, IWicketJquerySelectorsSettings settings) {
final IWicketJquerySelectorsSettings existingSettings = settings(app);
if (existingSettings == null) {
if (settings == null) {
settings = new WicketJquerySelecto... | public class class_name {
public static void install(Application app, IWicketJquerySelectorsSettings settings) {
final IWicketJquerySelectorsSettings existingSettings = settings(app);
if (existingSettings == null) {
if (settings == null) {
settings = new WicketJquerySelecto... |
public class class_name {
@Override
public double membership(double x) {
if (Double.isNaN(x)) {
return Double.NaN;
}
double mu = 0.0;
for (Activated term : this.terms) {
mu = this.aggregation.compute(mu, term.membership(x));
}
return mu;
}... | public class class_name {
@Override
public double membership(double x) {
if (Double.isNaN(x)) {
return Double.NaN; // depends on control dependency: [if], data = [none]
}
double mu = 0.0;
for (Activated term : this.terms) {
mu = this.aggregation.compute(mu, t... |
public class class_name {
@Override
public void setToBeDeleted()
{
super.setToBeDeleted();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setToBeDeleted");
// If there are durable subscriptions associated with the TopicSpace that is to be ... | public class class_name {
@Override
public void setToBeDeleted()
{
super.setToBeDeleted();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setToBeDeleted");
// If there are durable subscriptions associated with the TopicSpace that is to be ... |
public class class_name {
private static TaskInProgress findTaskFromList(
Collection<TaskInProgress> tips, String hostName,
boolean removeFailedTip) {
Iterator<TaskInProgress> iter = tips.iterator();
while (iter.hasNext()) {
TaskInProgress tip = iter.next();
// Select a tip if
//... | public class class_name {
private static TaskInProgress findTaskFromList(
Collection<TaskInProgress> tips, String hostName,
boolean removeFailedTip) {
Iterator<TaskInProgress> iter = tips.iterator();
while (iter.hasNext()) {
TaskInProgress tip = iter.next();
// Select a tip if
//... |
public class class_name {
@Override
public EClass getIfcSurfaceOfLinearExtrusion() {
if (ifcSurfaceOfLinearExtrusionEClass == null) {
ifcSurfaceOfLinearExtrusionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(675);
}
return ifcSurfaceOfLinearExt... | public class class_name {
@Override
public EClass getIfcSurfaceOfLinearExtrusion() {
if (ifcSurfaceOfLinearExtrusionEClass == null) {
ifcSurfaceOfLinearExtrusionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(675);
// depends on control dependency: [... |
public class class_name {
public void executeInBackground()
{
Thread t = new Thread() {
public void run() {
try{
execute();
}catch(Exception e) {
notifyException(e);
}
}
};
... | public class class_name {
public void executeInBackground()
{
Thread t = new Thread() {
public void run() {
try{
execute(); // depends on control dependency: [try], data = [none]
}catch(Exception e) {
notifyExcep... |
public class class_name {
final void checkModifiersIfNested(TypeElement type) {
ElementKind enclosingKind = type.getEnclosingElement().getKind();
if (enclosingKind.isClass() || enclosingKind.isInterface()) {
if (type.getModifiers().contains(Modifier.PRIVATE)) {
errorReporter.abortWithError(
... | public class class_name {
final void checkModifiersIfNested(TypeElement type) {
ElementKind enclosingKind = type.getEnclosingElement().getKind();
if (enclosingKind.isClass() || enclosingKind.isInterface()) {
if (type.getModifiers().contains(Modifier.PRIVATE)) {
errorReporter.abortWithError(
... |
public class class_name {
public static Enum<?> findMatchingEnumVal(Field field, String unknownEnumName) {
if (unknownEnumName == null || unknownEnumName.length() == 0) {
return null;
}
for (Enum<?> enumVal : (Enum<?>[]) field.getType().getEnumConstants()) {
if (enumVal.name().equals(unknownEnumName)) {
... | public class class_name {
public static Enum<?> findMatchingEnumVal(Field field, String unknownEnumName) {
if (unknownEnumName == null || unknownEnumName.length() == 0) {
return null;
}
for (Enum<?> enumVal : (Enum<?>[]) field.getType().getEnumConstants()) {
if (enumVal.name().equals(unknownEnumName)) {
... |
public class class_name {
public String getRandomHoliday(String earliest, String latest) {
String dateString = "";
DateTimeFormatter parser = ISODateTimeFormat.date();
DateTime earlyDate = parser.parseDateTime(earliest);
DateTime lateDate = parser.parseDateTime(latest);
List<Hol... | public class class_name {
public String getRandomHoliday(String earliest, String latest) {
String dateString = "";
DateTimeFormatter parser = ISODateTimeFormat.date();
DateTime earlyDate = parser.parseDateTime(earliest);
DateTime lateDate = parser.parseDateTime(latest);
List<Hol... |
public class class_name {
@Override
public String encodeRedirectURL(String url) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "encodeRedirectURL: " + url);
}
return encodeURL(url);
} } | public class class_name {
@Override
public String encodeRedirectURL(String url) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "encodeRedirectURL: " + url); // depends on control dependency: [if], data = [none]
}
return encodeURL(url);
} } |
public class class_name {
protected void putSessionValue(String pName, Object value, boolean securityInfo) {
if (pName == null) {
LoggingUtil.SESSION_LOGGER_CORE.logp(Level.SEVERE, methodClassName, methodNames[PUT_SESSION_VALUE], "SessionData.putValErr1");
return;
}
if (... | public class class_name {
protected void putSessionValue(String pName, Object value, boolean securityInfo) {
if (pName == null) {
LoggingUtil.SESSION_LOGGER_CORE.logp(Level.SEVERE, methodClassName, methodNames[PUT_SESSION_VALUE], "SessionData.putValErr1"); // depends on control dependency: [if], da... |
public class class_name {
private Map<Locale, LinkedHashMap<String, String>> removeNullEntries(
Map<Locale, LinkedHashMap<String, String>> multilingualContentItems) {
for (Locale locale : multilingualContentItems.keySet()) {
if (null == multilingualContentItems.get(locale)) {
... | public class class_name {
private Map<Locale, LinkedHashMap<String, String>> removeNullEntries(
Map<Locale, LinkedHashMap<String, String>> multilingualContentItems) {
for (Locale locale : multilingualContentItems.keySet()) {
if (null == multilingualContentItems.get(locale)) {
... |
public class class_name {
private FieldAccess genCodeForFieldAccess(
SoyType baseType, FieldAccessNode fieldAccessNode, String fieldName) {
Preconditions.checkNotNull(baseType);
// For unions, attempt to generate the field access code for each member
// type, and then see if they all agree.
if (b... | public class class_name {
private FieldAccess genCodeForFieldAccess(
SoyType baseType, FieldAccessNode fieldAccessNode, String fieldName) {
Preconditions.checkNotNull(baseType);
// For unions, attempt to generate the field access code for each member
// type, and then see if they all agree.
if (b... |
public class class_name {
public Routed<T> route(String path) {
final String[] tokens = Pattern.removeSlashAtBothEnds(path).split("/");
final Map<String, String> params = new HashMap<String, String>();
boolean matched = true;
for (final Pattern<T> pattern : patterns) {
... | public class class_name {
public Routed<T> route(String path) {
final String[] tokens = Pattern.removeSlashAtBothEnds(path).split("/");
final Map<String, String> params = new HashMap<String, String>();
boolean matched = true;
for (final Pattern<T> pattern : patterns) {
... |
public class class_name {
@Pure
protected final boolean boundsContains(double x, double y, double delta) {
final Rectangle2d bounds = getBoundingBox();
assert bounds != null;
double dlt = delta;
if (dlt < 0) {
dlt = -dlt;
}
final Point2d p = new Point2d(x, y);
if (dlt == 0) {
return bounds.contain... | public class class_name {
@Pure
protected final boolean boundsContains(double x, double y, double delta) {
final Rectangle2d bounds = getBoundingBox();
assert bounds != null;
double dlt = delta;
if (dlt < 0) {
dlt = -dlt; // depends on control dependency: [if], data = [none]
}
final Point2d p = new Poi... |
public class class_name {
public static <T> T firstValue(List<T> list) {
if (list != null && !list.isEmpty()) {
return list.get(0);
}
return null;
} } | public class class_name {
public static <T> T firstValue(List<T> list) {
if (list != null && !list.isEmpty()) {
return list.get(0);
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
@Override
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
if (cmd.equals("Cut")) {
consoleTextArea.cut();
} else if (cmd.equals("Copy")) {
consoleTextArea.copy();
} else if (cmd.equals("Paste")) {
... | public class class_name {
@Override
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
if (cmd.equals("Cut")) {
consoleTextArea.cut(); // depends on control dependency: [if], data = [none]
} else if (cmd.equals("Copy")) {
consoleTextArea.... |
public class class_name {
public void persist() {
OutputStream os = null;
try {
os = new FileOutputStream(fallbackStorageFile);
fallbackStorage.store(os, "Generated");
LOG.debug("fallback storage written to {}", fallbackStorageFile);
} catch (final IOException e) {
LOG.warn("Cannot ... | public class class_name {
public void persist() {
OutputStream os = null;
try {
os = new FileOutputStream(fallbackStorageFile); // depends on control dependency: [try], data = [none]
fallbackStorage.store(os, "Generated"); // depends on control dependency: [try], data = [none]
LOG.debug("fall... |
public class class_name {
public void marshall(CreateResourceRequest createResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (createResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(CreateResourceRequest createResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (createResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
@Override
@FFDCIgnore({ ExecutionException.class })
public boolean isCancelled() {
Future<Future<R>> resultFuture = getResultFuture();
if (resultFuture.isDone()) {
if (resultFuture.isCancelled()) {
return true;
} else {
... | public class class_name {
@Override
@FFDCIgnore({ ExecutionException.class })
public boolean isCancelled() {
Future<Future<R>> resultFuture = getResultFuture();
if (resultFuture.isDone()) {
if (resultFuture.isCancelled()) {
return true; // depends on control dependen... |
public class class_name {
private void linkSitesToGroups() {
//System.out.println("LINK SITES TO GROUPS:" + siteToResidueMap.keySet().size());
//link the map of siteIds : <ResidueNumber> with the sites by using ResidueNumber to get the correct group back.
//the return list
if ( siteMap == null || siteToResi... | public class class_name {
private void linkSitesToGroups() {
//System.out.println("LINK SITES TO GROUPS:" + siteToResidueMap.keySet().size());
//link the map of siteIds : <ResidueNumber> with the sites by using ResidueNumber to get the correct group back.
//the return list
if ( siteMap == null || siteToResi... |
public class class_name {
public void updateImage(FlowPanel container, Image previewImage) {
if (!ENABLED) {
return;
}
String path = m_imageInfoProvider.get().getResourcePath();
if (CmsClientStringUtil.checkIsPathOrLinkToSvg(path)) {
return;
}
m_... | public class class_name {
public void updateImage(FlowPanel container, Image previewImage) {
if (!ENABLED) {
return; // depends on control dependency: [if], data = [none]
}
String path = m_imageInfoProvider.get().getResourcePath();
if (CmsClientStringUtil.checkIsPathOrLinkT... |
public class class_name {
public boolean respondToDisconnect(int statusCode, String reasonPhrase,
ArrayList<Header> additionalHeaders, ArrayList<Header> replaceHeaders, String body) {
initErrorInfo();
if (parent.sendReply(transaction, statusCode, reasonPhrase, myTag, null, -1, additionalHeaders,
... | public class class_name {
public boolean respondToDisconnect(int statusCode, String reasonPhrase,
ArrayList<Header> additionalHeaders, ArrayList<Header> replaceHeaders, String body) {
initErrorInfo();
if (parent.sendReply(transaction, statusCode, reasonPhrase, myTag, null, -1, additionalHeaders,
... |
public class class_name {
boolean processBytesFromPeer(ByteBuf data) throws GeneralSecurityException {
checkState(unwrapper != null, "protector already created");
try (BufUnwrapper unwrapper = this.unwrapper) {
int bytesRead = 0;
boolean done = false;
for (ByteBuffer nioBuffer : unwrapper.rea... | public class class_name {
boolean processBytesFromPeer(ByteBuf data) throws GeneralSecurityException {
checkState(unwrapper != null, "protector already created");
try (BufUnwrapper unwrapper = this.unwrapper) {
int bytesRead = 0;
boolean done = false;
for (ByteBuffer nioBuffer : unwrapper.rea... |
public class class_name {
@Override
public void publish(LogRecord record) {
// ici on préfère ne pas appeler isLoggable(record) pour éviter un lock synchronized sur getLevel
if (record.getLevel().intValue() < THRESHOLD.intValue()) {
return;
}
addErrorLogToCounter(record.getLevel().getName() + ": " + ... | public class class_name {
@Override
public void publish(LogRecord record) {
// ici on préfère ne pas appeler isLoggable(record) pour éviter un lock synchronized sur getLevel
if (record.getLevel().intValue() < THRESHOLD.intValue()) {
return;
// depends on control dependency: [if], data = [none]
}
addE... |
public class class_name {
public byte[] sign(byte[] nonce) {
try {
char[] keyChars = this.readKeyChars();
NKey nkey = NKey.fromSeed(keyChars);
byte[] sig = nkey.sign(nonce);
nkey.clear();
return sig;
} catch (Exception exp) {
thro... | public class class_name {
public byte[] sign(byte[] nonce) {
try {
char[] keyChars = this.readKeyChars();
NKey nkey = NKey.fromSeed(keyChars);
byte[] sig = nkey.sign(nonce);
nkey.clear(); // depends on control dependency: [try], data = [none]
return ... |
public class class_name {
static public double EScafferF6(double[] x) {
double sum = 0.0;
for (int i = 1; i < x.length; i++) {
sum += ScafferF6(x[i - 1], x[i]);
}
sum += ScafferF6(x[x.length - 1], x[0]);
return (sum);
} } | public class class_name {
static public double EScafferF6(double[] x) {
double sum = 0.0;
for (int i = 1; i < x.length; i++) {
sum += ScafferF6(x[i - 1], x[i]); // depends on control dependency: [for], data = [i]
}
sum += ScafferF6(x[x.length - 1], x[0]);
return (sum);
} } |
public class class_name {
public void initTraceState(Map<String, Object> state) {
Object traceId = state.get(Constants.HAWKULAR_APM_TRACEID);
Object transaction = state.get(Constants.HAWKULAR_APM_TXN);
Object level = state.get(Constants.HAWKULAR_APM_LEVEL);
if (traceId != null) {
... | public class class_name {
public void initTraceState(Map<String, Object> state) {
Object traceId = state.get(Constants.HAWKULAR_APM_TRACEID);
Object transaction = state.get(Constants.HAWKULAR_APM_TXN);
Object level = state.get(Constants.HAWKULAR_APM_LEVEL);
if (traceId != null) {
... |
public class class_name {
public void enhance(Set<NetcdfDataset.Enhance> mode) {
for (Variable v : getVariables()) {
VariableEnhanced ve = (VariableEnhanced) v;
ve.enhance(mode);
}
} } | public class class_name {
public void enhance(Set<NetcdfDataset.Enhance> mode) {
for (Variable v : getVariables()) {
VariableEnhanced ve = (VariableEnhanced) v;
ve.enhance(mode);
// depends on control dependency: [for], data = [v]
}
} } |
public class class_name {
protected String findWar(String... paths) {
if (paths != null) {
for (String path : paths) {
if (path != null) {
File file = new File(path);
if (file.exists()) {
if (file.isFile()) {
... | public class class_name {
protected String findWar(String... paths) {
if (paths != null) {
for (String path : paths) {
if (path != null) {
File file = new File(path);
if (file.exists()) {
if (file.isFile()) {
... |
public class class_name {
public void startSeleniumServer(final String args) {
if (seleniumProxy != null) {
throw new IllegalStateException("There is already a Selenium remote server running");
}
try {
final RemoteControlConfiguration configuration;
LOG.info("Starting server with... | public class class_name {
public void startSeleniumServer(final String args) {
if (seleniumProxy != null) {
throw new IllegalStateException("There is already a Selenium remote server running");
}
try {
final RemoteControlConfiguration configuration;
LOG.info("Starting server with... |
public class class_name {
@Internal
public static <OUT> TypeInfoFactory<OUT> getTypeInfoFactory(Type t) {
final Class<?> factoryClass;
if (registeredTypeInfoFactories.containsKey(t)) {
factoryClass = registeredTypeInfoFactories.get(t);
}
else {
if (!isClassType(t) || !typeToClass(t).isAnnotationPresent(... | public class class_name {
@Internal
public static <OUT> TypeInfoFactory<OUT> getTypeInfoFactory(Type t) {
final Class<?> factoryClass;
if (registeredTypeInfoFactories.containsKey(t)) {
factoryClass = registeredTypeInfoFactories.get(t); // depends on control dependency: [if], data = [none]
}
else {
if (!... |
public class class_name {
protected double difference(int index, double val1, double val2) {
//switch (m_Data.attribute(index).type()) {
//case Attribute.NOMINAL:
if (m_Data.attribute(index).isNominal() == true){
if (isMissingValue(val1) ||
isMissingValue(val2) ||
((int) v... | public class class_name {
protected double difference(int index, double val1, double val2) {
//switch (m_Data.attribute(index).type()) {
//case Attribute.NOMINAL:
if (m_Data.attribute(index).isNominal() == true){
if (isMissingValue(val1) ||
isMissingValue(val2) ||
((int) v... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public <T> Future<T> submit(Callable<T> task) {
Map<String, String> execProps = getExecutionProperties(task);
ThreadContextDescriptor contextDescriptor;
if (task instanceof ContextualAction) {
ContextualActi... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public <T> Future<T> submit(Callable<T> task) {
Map<String, String> execProps = getExecutionProperties(task);
ThreadContextDescriptor contextDescriptor;
if (task instanceof ContextualAction) {
ContextualActi... |
public class class_name {
public static Deferred<Tree> fetchTree(final TSDB tsdb, final int tree_id) {
if (tree_id < 1 || tree_id > 65535) {
throw new IllegalArgumentException("Invalid Tree ID");
}
// fetch the whole row
final GetRequest get = new GetRequest(tsdb.treeTable(), idToBytes(tree_id))... | public class class_name {
public static Deferred<Tree> fetchTree(final TSDB tsdb, final int tree_id) {
if (tree_id < 1 || tree_id > 65535) {
throw new IllegalArgumentException("Invalid Tree ID");
}
// fetch the whole row
final GetRequest get = new GetRequest(tsdb.treeTable(), idToBytes(tree_id))... |
public class class_name {
public void insertHrefBefore(String newHref, String refHref) {
String refHrefEncoded = encodeHref(refHref);
String newHrefEncoded = encodeHref(newHref);
if (isDuplicate(newHrefEncoded))
return;
Element child = getFirstChild(root, "href"); //$NON-NLS... | public class class_name {
public void insertHrefBefore(String newHref, String refHref) {
String refHrefEncoded = encodeHref(refHref);
String newHrefEncoded = encodeHref(newHref);
if (isDuplicate(newHrefEncoded))
return;
Element child = getFirstChild(root, "href"); //$NON-NLS... |
public class class_name {
@Override
public boolean removeAll(IntSet c)
{
if (c == null || c.isEmpty() || isEmpty()) {
return false;
}
if (c == this) {
clear();
return true;
}
final FastSet other = convert(c);
final int[] localWords = words; // faster
... | public class class_name {
@Override
public boolean removeAll(IntSet c)
{
if (c == null || c.isEmpty() || isEmpty()) {
return false;
// depends on control dependency: [if], data = [none]
}
if (c == this) {
clear();
// depends on control dependency: [if], data = [none]
return tr... |
public class class_name {
private NotificationTargetInformation toNotificationTargetInformation(RESTRequest request, String objectName) {
//Handle incoming routing context (if applicable)
String[] routingContext = RESTHelper.getRoutingContext(request, false);
if (routingContext != null) {
... | public class class_name {
private NotificationTargetInformation toNotificationTargetInformation(RESTRequest request, String objectName) {
//Handle incoming routing context (if applicable)
String[] routingContext = RESTHelper.getRoutingContext(request, false);
if (routingContext != null) {
... |
public class class_name {
public static void addCells(StringBuilder builder, String... cells)
{
if(builder == null || cells == null || cells.length == 0)
return;
for (String cell : cells)
{
addCell(builder,cell);
}
} } | public class class_name {
public static void addCells(StringBuilder builder, String... cells)
{
if(builder == null || cells == null || cells.length == 0)
return;
for (String cell : cells)
{
addCell(builder,cell); // depends on control dependency: [for], data = [cell]
}
} } |
public class class_name {
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordCQ> queryLambda,
ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
ElevateWordCQ cq = new ElevateWordCQ();
if (queryLambda != null) ... | public class class_name {
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordCQ> queryLambda,
ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
ElevateWordCQ cq = new ElevateWordCQ();
if (queryLambda != null) ... |
public class class_name {
public void setExceptions(java.util.Collection<RootCauseException> exceptions) {
if (exceptions == null) {
this.exceptions = null;
return;
}
this.exceptions = new java.util.ArrayList<RootCauseException>(exceptions);
} } | public class class_name {
public void setExceptions(java.util.Collection<RootCauseException> exceptions) {
if (exceptions == null) {
this.exceptions = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Programmatic
public ApplicationRole newRole(
final String name,
final String description) {
ApplicationRole role = findByName(name);
if (role == null){
role = getApplicationRoleFactory().newApplicationRole();
role.setName(na... | public class class_name {
@Programmatic
public ApplicationRole newRole(
final String name,
final String description) {
ApplicationRole role = findByName(name);
if (role == null){
role = getApplicationRoleFactory().newApplicationRole(); // depends on control depen... |
public class class_name {
public void displayNewModelPage(CmsModelPageEntry modelPageData, boolean isModelGroup) {
CmsModelPageTreeItem treeItem = new CmsModelPageTreeItem(modelPageData, isModelGroup, false);
CmsSitemapHoverbar.installOn(
m_controller,
treeItem,
mod... | public class class_name {
public void displayNewModelPage(CmsModelPageEntry modelPageData, boolean isModelGroup) {
CmsModelPageTreeItem treeItem = new CmsModelPageTreeItem(modelPageData, isModelGroup, false);
CmsSitemapHoverbar.installOn(
m_controller,
treeItem,
mod... |
public class class_name {
@Override
protected File cloneRepository(File dest) {
BaseRepository repo = Repository.clone(RepositoryConfiguration.DEFAULT, dest, getUrl());
// set branch name
String branchName = MASTER;;
String branch = getBranch();
if (StringUtils.isNotBlank(b... | public class class_name {
@Override
protected File cloneRepository(File dest) {
BaseRepository repo = Repository.clone(RepositoryConfiguration.DEFAULT, dest, getUrl());
// set branch name
String branchName = MASTER;;
String branch = getBranch();
if (StringUtils.isNotBlank(b... |
public class class_name {
protected void computeWeights(int numSamples, double numSigmas) {
weights = new float[ numSamples*numSamples ];
float w[] = new float[ numSamples ];
for( int i = 0; i < numSamples; i++ ) {
float x = i/(float)(numSamples-1);
w[i] = (float) UtilGaussian.computePDF(0, 1, 2f*numSigma... | public class class_name {
protected void computeWeights(int numSamples, double numSigmas) {
weights = new float[ numSamples*numSamples ];
float w[] = new float[ numSamples ];
for( int i = 0; i < numSamples; i++ ) {
float x = i/(float)(numSamples-1);
w[i] = (float) UtilGaussian.computePDF(0, 1, 2f*numSigma... |
public class class_name {
static Map<String, Object> processAttributes(Map<String, Object> attributes, boolean isCovered) {
if (isCovered) {
return processAttributesForCovering(attributes);
} else {
return processAttributesForIncremental(attributes);
}
} } | public class class_name {
static Map<String, Object> processAttributes(Map<String, Object> attributes, boolean isCovered) {
if (isCovered) {
return processAttributesForCovering(attributes); // depends on control dependency: [if], data = [none]
} else {
return processAttributesForIncremental(attribu... |
public class class_name {
private Map<String, Object> removeUnusedMapEntries(
AtlasVertex instanceVertex, String propertyName,
Map<String, Object> currentMap,
Map<String, Object> newMap, IDataType elementType,
AttributeInfo attributeInfo)
throws Atlas... | public class class_name {
private Map<String, Object> removeUnusedMapEntries(
AtlasVertex instanceVertex, String propertyName,
Map<String, Object> currentMap,
Map<String, Object> newMap, IDataType elementType,
AttributeInfo attributeInfo)
throws Atlas... |
public class class_name {
public int[] getNonZeroIndices() {
if (vectorOffset == 0)
return sparseVector.getNonZeroIndices();
// If the sparse vector is a sub-view, calculate which indices are
// reflected in this view
else {
int[] full = sparseVector.getNonZeroIn... | public class class_name {
public int[] getNonZeroIndices() {
if (vectorOffset == 0)
return sparseVector.getNonZeroIndices();
// If the sparse vector is a sub-view, calculate which indices are
// reflected in this view
else {
int[] full = sparseVector.getNonZeroIn... |
public class class_name {
void add(BucketUpdate.KeyUpdate update, int entryLength, long originalOffset) {
val existing = this.updates.get(update.getKey());
if (existing == null || update.supersedes(existing)) {
this.updates.put(update.getKey(), update);
}
// Update remainin... | public class class_name {
void add(BucketUpdate.KeyUpdate update, int entryLength, long originalOffset) {
val existing = this.updates.get(update.getKey());
if (existing == null || update.supersedes(existing)) {
this.updates.put(update.getKey(), update); // depends on control dependency: [if... |
public class class_name {
@Nonnull
public static String constructMessage(
@Nullable Throwable e, @Nullable String newMessage, @Nullable Object... messageParams) {
String message;
if (newMessage == null) {
if (e == null) {
message = UNKNOWN_PROBLEM;
... | public class class_name {
@Nonnull
public static String constructMessage(
@Nullable Throwable e, @Nullable String newMessage, @Nullable Object... messageParams) {
String message;
if (newMessage == null) {
if (e == null) {
message = UNKNOWN_PROBLEM; // depends... |
public class class_name {
private List<StorableProperty<?>>[] caseMatches(int caseCount) {
List<StorableProperty<?>>[] cases = new List[caseCount];
for (StorableProperty<?> prop : mAllProperties.values()) {
int hashCode = prop.getName().hashCode();
int caseValue = (hashCod... | public class class_name {
private List<StorableProperty<?>>[] caseMatches(int caseCount) {
List<StorableProperty<?>>[] cases = new List[caseCount];
for (StorableProperty<?> prop : mAllProperties.values()) {
int hashCode = prop.getName().hashCode();
int caseValue = (hashCod... |
public class class_name {
@POST
@Consumes("multipart/form-data")
@RequiresPermissions(I18nPermissions.KEY_WRITE)
public Response importTranslations(FormDataMultiPart multiPart) {
WebAssertions.assertNotNull(multiPart, "Missing input file");
int importedKeys = 0;
for (BodyPart bodyP... | public class class_name {
@POST
@Consumes("multipart/form-data")
@RequiresPermissions(I18nPermissions.KEY_WRITE)
public Response importTranslations(FormDataMultiPart multiPart) {
WebAssertions.assertNotNull(multiPart, "Missing input file");
int importedKeys = 0;
for (BodyPart bodyP... |
public class class_name {
private List<ScannerPlugin<?, ?>> getScannerPluginsForType(final Class<?> type) {
List<ScannerPlugin<?, ?>> plugins = scannerPluginsPerType.get(type);
if (plugins == null) {
// The list of all scanner plugins which accept the given type
final List<Scann... | public class class_name {
private List<ScannerPlugin<?, ?>> getScannerPluginsForType(final Class<?> type) {
List<ScannerPlugin<?, ?>> plugins = scannerPluginsPerType.get(type);
if (plugins == null) {
// The list of all scanner plugins which accept the given type
final List<Scann... |
public class class_name {
protected void handleTunnelRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException {
try {
String query = request.getQueryString();
if (query == null)
throw new GuacamoleClientException("No query s... | public class class_name {
protected void handleTunnelRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException {
try {
String query = request.getQueryString();
if (query == null)
throw new GuacamoleClientException("No query s... |
public class class_name {
public String getUserName(Subject subject) {
// Subject subject = null;
try {
// subject = WSSubject.getRunAsSubject();
WSCredential wsCred = getWSCredential(subject);
if (wsCred == null) {
wsCred = getPrivateWSCredential(subject);
}
return wsCred != null ? wsCred.getSe... | public class class_name {
public String getUserName(Subject subject) {
// Subject subject = null;
try {
// subject = WSSubject.getRunAsSubject();
WSCredential wsCred = getWSCredential(subject);
if (wsCred == null) {
wsCred = getPrivateWSCredential(subject); // depends on control dependency: [if], data... |
public class class_name {
public boolean hasCircleReference(Map<AVObject, Boolean> markMap) {
if (null == markMap) {
return false;
}
markMap.put(this, true);
boolean rst = false;
for (ObjectFieldOperation op: operations.values()) {
rst = rst || op.checkCircleReference(markMap);
}
... | public class class_name {
public boolean hasCircleReference(Map<AVObject, Boolean> markMap) {
if (null == markMap) {
return false; // depends on control dependency: [if], data = [none]
}
markMap.put(this, true);
boolean rst = false;
for (ObjectFieldOperation op: operations.values()) {
r... |
public class class_name {
public ServiceCall<Profile> profile(ProfileOptions profileOptions) {
Validator.notNull(profileOptions, "profileOptions cannot be null");
String[] pathSegments = { "v3/profile" };
RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegmen... | public class class_name {
public ServiceCall<Profile> profile(ProfileOptions profileOptions) {
Validator.notNull(profileOptions, "profileOptions cannot be null");
String[] pathSegments = { "v3/profile" };
RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegmen... |
public class class_name {
@Override
public void actionCommit() {
List errors = new ArrayList();
try {
// get the correct module
String moduleName = getParamModule();
CmsModule module = (CmsModule)OpenCms.getModuleManager().getModule(moduleName).clone();
... | public class class_name {
@Override
public void actionCommit() {
List errors = new ArrayList();
try {
// get the correct module
String moduleName = getParamModule();
CmsModule module = (CmsModule)OpenCms.getModuleManager().getModule(moduleName).clone();
... |
public class class_name {
protected void deactivate(ComponentContext compcontext) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Deactivating " + this.getClass().getName());
}
setInstance(null);
this.beanValidation.deactivate(compcontext);
} } | public class class_name {
protected void deactivate(ComponentContext compcontext) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Deactivating " + this.getClass().getName()); // depends on control dependency: [if], data = [none]
}
setInstance(null);
this.beanValidation.deactivate... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.