code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void setRAKey(String raKey)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "MEF.setRAKey for enterprise class " + beanMetaData.enterpriseBeanName);
}
ivRAKey = raKey;
if (TraceComponent.isAnyTr... | public class class_name {
public void setRAKey(String raKey)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "MEF.setRAKey for enterprise class " + beanMetaData.enterpriseBeanName); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String byteArrayToHexString(byte[] b) {
StringBuilder hs = new StringBuilder();
String stmp;
for (int n = 0; b != null && n < b.length; n++) {
stmp = Integer.toHexString(b[n] & 0XFF);
if (stmp.length() == 1)
hs.append('0');
hs.append(stmp);
}
return hs.toS... | public class class_name {
public static String byteArrayToHexString(byte[] b) {
StringBuilder hs = new StringBuilder();
String stmp;
for (int n = 0; b != null && n < b.length; n++) {
stmp = Integer.toHexString(b[n] & 0XFF); // depends on control dependency: [for], data = [n]
if (stmp.length() == 1)
hs.... |
public class class_name {
public void setItems(java.util.Collection<Stage> items) {
if (items == null) {
this.items = null;
return;
}
this.items = new java.util.ArrayList<Stage>(items);
} } | public class class_name {
public void setItems(java.util.Collection<Stage> items) {
if (items == null) {
this.items = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.items = new java.util.A... |
public class class_name {
public static boolean isXhr(){
String xhr = header("X-Requested-With");
if(xhr == null) {
xhr = header("x-requested-with");
}
return xhr != null && xhr.toLowerCase().equals("xmlhttprequest");
} } | public class class_name {
public static boolean isXhr(){
String xhr = header("X-Requested-With");
if(xhr == null) {
xhr = header("x-requested-with"); // depends on control dependency: [if], data = [none]
}
return xhr != null && xhr.toLowerCase().equals("xmlhttprequest");
... |
public class class_name {
public final void mINSERT_HADOOP() throws RecognitionException {
try {
int _type = INSERT_HADOOP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:582:15: ( ( 'INSERT_HADOOP' | 'insert_hadoop' ) )
// druidG.g:582:16: ( 'INSERT_HADOOP' | 'insert_hadoop' )
{
// druidG.g:582... | public class class_name {
public final void mINSERT_HADOOP() throws RecognitionException {
try {
int _type = INSERT_HADOOP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:582:15: ( ( 'INSERT_HADOOP' | 'insert_hadoop' ) )
// druidG.g:582:16: ( 'INSERT_HADOOP' | 'insert_hadoop' )
{
// druidG.g:582... |
public class class_name {
public void addHttpSession(final HttpSession session) {
if (View.isInitialised() && !EventQueue.isDispatchThread()) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
addHttpSession(session);
}
});
return;
}
if (sessions.contains(session... | public class class_name {
public void addHttpSession(final HttpSession session) {
if (View.isInitialised() && !EventQueue.isDispatchThread()) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
addHttpSession(session);
}
}); // depends on control dependency: [if], data = [... |
public class class_name {
private static InetAddress[] getByCommand() {
try {
Process process = Runtime.getRuntime().exec("getprop");
InputStream inputStream = process.getInputStream();
LineNumberReader lnr = new LineNumberReader(
new InputStreamReader(in... | public class class_name {
private static InetAddress[] getByCommand() {
try {
Process process = Runtime.getRuntime().exec("getprop");
InputStream inputStream = process.getInputStream();
LineNumberReader lnr = new LineNumberReader(
new InputStreamReader(in... |
public class class_name {
static void register(final Object value) {
synchronized (HashCodeBuilder.class) {
if (getRegistry() == null) {
REGISTRY.set(new HashSet<IDKey>());
}
}
getRegistry().add(new IDKey(value));
} } | public class class_name {
static void register(final Object value) {
synchronized (HashCodeBuilder.class) {
if (getRegistry() == null) {
REGISTRY.set(new HashSet<IDKey>()); // depends on control dependency: [if], data = [none]
}
}
getRegistry().add(new ID... |
public class class_name {
public void encode(AsnOutputStream aos) throws EncodeException {
if (this.nationalOperationCode == null && this.privateOperationCode == null)
throw new EncodeException("Operation code: No Operation code set!");
try {
if (this.type == OperationCodeType... | public class class_name {
public void encode(AsnOutputStream aos) throws EncodeException {
if (this.nationalOperationCode == null && this.privateOperationCode == null)
throw new EncodeException("Operation code: No Operation code set!");
try {
if (this.type == OperationCodeType... |
public class class_name {
protected void paintComponent(final RenderContext renderContext) {
Renderer renderer = UIManager.getRenderer(this, renderContext);
if (getTemplate() != null || getTemplateMarkUp() != null) {
Renderer templateRenderer = UIManager.getTemplateRenderer(renderContext);
templateRenderer.... | public class class_name {
protected void paintComponent(final RenderContext renderContext) {
Renderer renderer = UIManager.getRenderer(this, renderContext);
if (getTemplate() != null || getTemplateMarkUp() != null) {
Renderer templateRenderer = UIManager.getTemplateRenderer(renderContext);
templateRenderer.... |
public class class_name {
public void setParentGroupNames(java.util.Collection<String> parentGroupNames) {
if (parentGroupNames == null) {
this.parentGroupNames = null;
return;
}
this.parentGroupNames = new java.util.ArrayList<String>(parentGroupNames);
} } | public class class_name {
public void setParentGroupNames(java.util.Collection<String> parentGroupNames) {
if (parentGroupNames == null) {
this.parentGroupNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public V get(K[] key) {
Node child = root.get(key[0]);
if (child != null) {
return child.getChild(key, 1);
}
return null;
} } | public class class_name {
public V get(K[] key) {
Node child = root.get(key[0]);
if (child != null) {
return child.getChild(key, 1);
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static <T> T fromJsonFile(Class<T> type, File f) {
BufferedReader br = null;
try {
br = buffr(fileInr(f));
return Json.fromJson(type, br);
}
finally {
Streams.safeClose(br);
}
} } | public class class_name {
public static <T> T fromJsonFile(Class<T> type, File f) {
BufferedReader br = null;
try {
br = buffr(fileInr(f));
// depends on control dependency: [try], data = [none]
return Json.fromJson(type, br);
// depends on control dependency: [try], data =... |
public class class_name {
@Override
protected T doRequestSync() {
T data = RequestCacheManager.getInstance().requestCacheSync(this);
if (data == null) {
data = RequestManager.getInstance().getRequestProxy(this).requestSync(this);
}
return data;
} } | public class class_name {
@Override
protected T doRequestSync() {
T data = RequestCacheManager.getInstance().requestCacheSync(this);
if (data == null) {
data = RequestManager.getInstance().getRequestProxy(this).requestSync(this); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void checkForHashCodeChange(Entry<K, V> e) {
K key = extractKeyObj(e);
if (extractIntKeyValue(key, modifiedHash(key.hashCode())) != e.hashCode) {
if (keyMutationCnt == 0) {
getLog().warn("Key mismatch! Key hashcode changed! keyClass=" + e.getKey().getClass().get... | public class class_name {
private void checkForHashCodeChange(Entry<K, V> e) {
K key = extractKeyObj(e);
if (extractIntKeyValue(key, modifiedHash(key.hashCode())) != e.hashCode) {
if (keyMutationCnt == 0) {
getLog().warn("Key mismatch! Key hashcode changed! keyClass=" + e.getKey().getClass().get... |
public class class_name {
static <T> List<T> filter(List<T> list, Predicate<T> predicate) {
List<T> results = new ArrayList<>();
for (T current : list) {
if (predicate.apply(current)) {
results.add(current);
}
}
return results;
} } | public class class_name {
static <T> List<T> filter(List<T> list, Predicate<T> predicate) {
List<T> results = new ArrayList<>();
for (T current : list) {
if (predicate.apply(current)) {
results.add(current); // depends on control dependency: [if], data = [none]
}
}
return results;
} } |
public class class_name {
public void render(float x, float y) {
if ((sprite == null) && (defaultImageName != null)) {
loadSystemParticleImage();
}
if (!visible) {
return;
}
GL.glTranslatef(x,y,0);
if (blendingMode == BLEND_ADDITIVE) {
GL.glBlendFunc(SGL.GL_SRC_ALPHA, SGL.GL_O... | public class class_name {
public void render(float x, float y) {
if ((sprite == null) && (defaultImageName != null)) {
loadSystemParticleImage();
// depends on control dependency: [if], data = [none]
}
if (!visible) {
return;
// depends on control dependency: [if], data = [none]
}
GL.glT... |
public class class_name {
private void rebalanceStore(String storeName,
final AdminClient adminClient,
RebalanceTaskInfo stealInfo,
boolean isReadOnlyStore) {
// Move partitions
if (stealInfo.getPartitionIds... | public class class_name {
private void rebalanceStore(String storeName,
final AdminClient adminClient,
RebalanceTaskInfo stealInfo,
boolean isReadOnlyStore) {
// Move partitions
if (stealInfo.getPartitionIds... |
public class class_name {
public void mTokens() throws RecognitionException {
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:1:8: ( NOT | ID | TEXT | TARGET | SOURCE | FUNCT | PRED | COMMA | COLON | SEMI | UNDERSCORE | DASH | STR... | public class class_name {
public void mTokens() throws RecognitionException {
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:1:8: ( NOT | ID | TEXT | TARGET | SOURCE | FUNCT | PRED | COMMA | COLON | SEMI | UNDERSCORE | DASH | STR... |
public class class_name {
public void marshall(FleetUtilization fleetUtilization, ProtocolMarshaller protocolMarshaller) {
if (fleetUtilization == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(flee... | public class class_name {
public void marshall(FleetUtilization fleetUtilization, ProtocolMarshaller protocolMarshaller) {
if (fleetUtilization == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(flee... |
public class class_name {
@Override
public EntityEnum getEntityType(IGroupMember entity) {
if (entity == null) {
throw new IllegalArgumentException("Parameter must not be null");
}
if (IEntityGroup.class.isAssignableFrom(entity.getClass())) {
return EntityEnum.getEn... | public class class_name {
@Override
public EntityEnum getEntityType(IGroupMember entity) {
if (entity == null) {
throw new IllegalArgumentException("Parameter must not be null");
}
if (IEntityGroup.class.isAssignableFrom(entity.getClass())) {
return EntityEnum.getEn... |
public class class_name {
public static Node searchNodeById(Node rootNode, int nodeId) {
if (rootNode.getNodeId() == nodeId) {
return rootNode;
}
Node foundNode = null;
for (Node n : rootNode.getChilds()) {
foundNode = searchNodeById(n, nodeId);
if (f... | public class class_name {
public static Node searchNodeById(Node rootNode, int nodeId) {
if (rootNode.getNodeId() == nodeId) {
return rootNode; // depends on control dependency: [if], data = [none]
}
Node foundNode = null;
for (Node n : rootNode.getChilds()) {
fo... |
public class class_name {
public void changeAnimation(ViewHolder oldHolder, ViewHolder newHolder, int fromX, int fromY, int toX, int toY) {
final float prevTranslationX = ViewCompat.getTranslationX(oldHolder.itemView);
final float prevTranslationY = ViewCompat.getTranslationY(oldHolder.itemView);
... | public class class_name {
public void changeAnimation(ViewHolder oldHolder, ViewHolder newHolder, int fromX, int fromY, int toX, int toY) {
final float prevTranslationX = ViewCompat.getTranslationX(oldHolder.itemView);
final float prevTranslationY = ViewCompat.getTranslationY(oldHolder.itemView);
... |
public class class_name {
public List<Cursor> getInactiveCursors()
{
List<Cursor> returnList = new ArrayList<Cursor>();
synchronized (mCursors)
{
for (Cursor cursor : mCursors)
{
if (!cursor.isActive())
{
returnList... | public class class_name {
public List<Cursor> getInactiveCursors()
{
List<Cursor> returnList = new ArrayList<Cursor>();
synchronized (mCursors)
{
for (Cursor cursor : mCursors)
{
if (!cursor.isActive())
{
returnList... |
public class class_name {
private void processElementTranslate(GeneratorSingleCluster cluster, Node cur) {
double[] offset = null;
String vstr = ((Element) cur).getAttribute(ATTR_VECTOR);
if(vstr != null && vstr.length() > 0) {
offset = parseVector(vstr);
}
if(offset == null) {
throw ne... | public class class_name {
private void processElementTranslate(GeneratorSingleCluster cluster, Node cur) {
double[] offset = null;
String vstr = ((Element) cur).getAttribute(ATTR_VECTOR);
if(vstr != null && vstr.length() > 0) {
offset = parseVector(vstr); // depends on control dependency: [if], data ... |
public class class_name {
public static DMatrixRMaj[] columnsToVector(DMatrixRMaj A, DMatrixRMaj[] v)
{
DMatrixRMaj[]ret;
if( v == null || v.length < A.numCols ) {
ret = new DMatrixRMaj[ A.numCols ];
} else {
ret = v;
}
for( int i = 0; i < ret.length... | public class class_name {
public static DMatrixRMaj[] columnsToVector(DMatrixRMaj A, DMatrixRMaj[] v)
{
DMatrixRMaj[]ret;
if( v == null || v.length < A.numCols ) {
ret = new DMatrixRMaj[ A.numCols ]; // depends on control dependency: [if], data = [none]
} else {
ret ... |
public class class_name {
public int disconnect(int v) {
Set<T> types = edges.remove(v);
if (types != null) {
int edges = types.size();
size -= edges;
return edges;
}
return 0;
} } | public class class_name {
public int disconnect(int v) {
Set<T> types = edges.remove(v);
if (types != null) {
int edges = types.size();
size -= edges; // depends on control dependency: [if], data = [none]
return edges; // depends on control dependency: [if], data = [... |
public class class_name {
public boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "addLocalizationPoint", lp);
}
boolean valid = false;
LocalizationDefinition ld = ((Js... | public class class_name {
public boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "addLocalizationPoint", lp); // depends on control dependency: [if], data = [none]
}
boolean v... |
public class class_name {
public static boolean checkServerConnection(String serverURL) {
boolean value = false;
try {
value = new RetrieveCheckServerConnectionString().execute(serverURL).get();
} catch (InterruptedException e) {
QuickUtils.log.e("InterruptedException", ... | public class class_name {
public static boolean checkServerConnection(String serverURL) {
boolean value = false;
try {
value = new RetrieveCheckServerConnectionString().execute(serverURL).get(); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) ... |
public class class_name {
public boolean isServerStopping() {
String thisMethodName = CLASS_NAME + ".isServerStopping()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
if (TraceComponent.isAnyTracingEnabled() &... | public class class_name {
public boolean isServerStopping() {
String thisMethodName = CLASS_NAME + ".isServerStopping()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(DeleteModelRequest deleteModelRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteModelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(DeleteModelRequest deleteModelRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteModelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public Observable<ServiceResponse<Page<RecommendationInner>>> listRecommendedRulesForWebAppNextWithServiceResponseAsync(final String nextPageLink) {
return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<Recommendati... | public class class_name {
public Observable<ServiceResponse<Page<RecommendationInner>>> listRecommendedRulesForWebAppNextWithServiceResponseAsync(final String nextPageLink) {
return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<Recommendati... |
public class class_name {
public BasicAuthAuthenticator getBasicAuthAuthenticator() {
try {
return createBasicAuthenticator();
} catch (RegistryException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "RegistryException while... | public class class_name {
public BasicAuthAuthenticator getBasicAuthAuthenticator() {
try {
return createBasicAuthenticator(); // depends on control dependency: [try], data = [none]
} catch (RegistryException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... |
public class class_name {
public final String getSetting (final String targetName, final int connectionID, final OperationalTextKey textKey) throws OperationalTextKeyException {
try {
final SessionConfiguration sc;
synchronized (sessionConfigs) {
sc = sessionConfigs.get... | public class class_name {
public final String getSetting (final String targetName, final int connectionID, final OperationalTextKey textKey) throws OperationalTextKeyException {
try {
final SessionConfiguration sc;
synchronized (sessionConfigs) {
sc = sessionConfigs.get... |
public class class_name {
void seekMatchingRead() {
while (!isAtEnd()) {
if (iterator == null || !iterator.hasNext()) {
LOG.info("Getting " +
(iterator == null ? "first" : "next") +
" interval from the API");
// We have hit an end (or this is first time) so we need ... | public class class_name {
void seekMatchingRead() {
while (!isAtEnd()) {
if (iterator == null || !iterator.hasNext()) {
LOG.info("Getting " +
(iterator == null ? "first" : "next") +
" interval from the API"); // depends on control dependency: [if], data = [none]
// ... |
public class class_name {
protected boolean prePrepare() {
if (tc.isEntryEnabled())
Tr.entry(tc, "prePrepare");
//
// Cancel timeout prior to completion phase
//
cancelAlarms();
//
// Inform the Synchronisations we are about to complete
//
... | public class class_name {
protected boolean prePrepare() {
if (tc.isEntryEnabled())
Tr.entry(tc, "prePrepare");
//
// Cancel timeout prior to completion phase
//
cancelAlarms();
//
// Inform the Synchronisations we are about to complete
//
... |
public class class_name {
public List<String> getMultiSelect(String path) {
List<String> values = new ArrayList<String>();
for (JsonValue val : this.getValue(path).asArray()) {
values.add(val.asString());
}
return values;
} } | public class class_name {
public List<String> getMultiSelect(String path) {
List<String> values = new ArrayList<String>();
for (JsonValue val : this.getValue(path).asArray()) {
values.add(val.asString()); // depends on control dependency: [for], data = [val]
}
return values... |
public class class_name {
@Override
public MonetaryAmount apply(MonetaryAmount value) {
Objects.requireNonNull(value, "Amount required.");
// 1 extract BD value, round according the default fraction units
int scale = this.context.getInt(SCALE_KEY);
RoundingMode roundingMode = this.c... | public class class_name {
@Override
public MonetaryAmount apply(MonetaryAmount value) {
Objects.requireNonNull(value, "Amount required.");
// 1 extract BD value, round according the default fraction units
int scale = this.context.getInt(SCALE_KEY);
RoundingMode roundingMode = this.c... |
public class class_name {
public PointerHierarchyRepresentationResult complete() {
if(csize != null) {
csize.destroy();
csize = null;
}
if(mergecount != ids.size() - 1) {
LOG.warning(mergecount + " merges were added to the hierarchy, expected " + (ids.size() - 1));
}
if(prototypes... | public class class_name {
public PointerHierarchyRepresentationResult complete() {
if(csize != null) {
csize.destroy(); // depends on control dependency: [if], data = [none]
csize = null; // depends on control dependency: [if], data = [none]
}
if(mergecount != ids.size() - 1) {
LOG.warnin... |
public class class_name {
@Override
public void finish(IQueueMessage<ID, DATA> msg) {
if (!isEphemeralDisabled()) {
String key = msg.getId().toString();
rocksDbWrapper.delete(cfNameEphemeral, writeOptions, key);
}
} } | public class class_name {
@Override
public void finish(IQueueMessage<ID, DATA> msg) {
if (!isEphemeralDisabled()) {
String key = msg.getId().toString();
rocksDbWrapper.delete(cfNameEphemeral, writeOptions, key); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void revert() {
for (Iterator i = children.iterator(); i.hasNext();) {
((FormModel) i.next()).revert();
}
// this will cause all buffered value models to revert
commitTrigger.revert();
// this will then go back and revert all unbuffered value models
for (Iterator i = med... | public class class_name {
public void revert() {
for (Iterator i = children.iterator(); i.hasNext();) {
((FormModel) i.next()).revert(); // depends on control dependency: [for], data = [i]
}
// this will cause all buffered value models to revert
commitTrigger.revert();
// this will then go back and revert... |
public class class_name {
public static long toLong(String str, long defaultValue) {
if (str == null) {
return defaultValue;
}
try {
return Long.parseLong(str);
} catch (NumberFormatException nfe) {
return defaultValue;
}
} } | public class class_name {
public static long toLong(String str, long defaultValue) {
if (str == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
try {
return Long.parseLong(str); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public int getNumDeliverable() {
NumDeliverable visitor=new NumDeliverable();
lock.lock();
try {
forEach(hd+1, hr, visitor);
return visitor.getResult();
}
finally {
lock.unlock();
}
} } | public class class_name {
public int getNumDeliverable() {
NumDeliverable visitor=new NumDeliverable();
lock.lock();
try {
forEach(hd+1, hr, visitor); // depends on control dependency: [try], data = [none]
return visitor.getResult(); // depends on control dependency: [tr... |
public class class_name {
public void setCurrency(String currency) {
currency = StringUtils.upperCase(currency);
if (!CurrencyUtils.getInstance().isValidCurrency(currency)) {
currency = "EUR";
}
this.currency = currency;
} } | public class class_name {
public void setCurrency(String currency) {
currency = StringUtils.upperCase(currency);
if (!CurrencyUtils.getInstance().isValidCurrency(currency)) {
currency = "EUR"; // depends on control dependency: [if], data = [none]
}
this.currency = currency;
} } |
public class class_name {
public String getStringValue(String property) {
final List<JawrConfigManagerMBean> mBeans = getInitializedConfigurationManagers();
try {
if (mBeans.size() == 3) {
if (areEquals(getProperty(jsMBean, property), getProperty(cssMBean, property),
getProperty(binaryMBean, proper... | public class class_name {
public String getStringValue(String property) {
final List<JawrConfigManagerMBean> mBeans = getInitializedConfigurationManagers();
try {
if (mBeans.size() == 3) {
if (areEquals(getProperty(jsMBean, property), getProperty(cssMBean, property),
getProperty(binaryMBean, proper... |
public class class_name {
public static List<Pair> toPairs(List<Double> xyValues) {
if (xyValues.size() % 2 != 0) {
throw new RuntimeException(String.format("[discrete error] "
+ "missing value in set of pairs (|xy|=%d)", xyValues.size()));
}
List<Pair> result = ... | public class class_name {
public static List<Pair> toPairs(List<Double> xyValues) {
if (xyValues.size() % 2 != 0) {
throw new RuntimeException(String.format("[discrete error] "
+ "missing value in set of pairs (|xy|=%d)", xyValues.size()));
}
List<Pair> result = ... |
public class class_name {
private static boolean shouldFormatDFSCluster(String localDFSLocation,
boolean clean) {
boolean format = true;
File f = new File(localDFSLocation);
if (f.exists() && f.isDirectory() && !clean) {
format = false;
}
return format;
} } | public class class_name {
private static boolean shouldFormatDFSCluster(String localDFSLocation,
boolean clean) {
boolean format = true;
File f = new File(localDFSLocation);
if (f.exists() && f.isDirectory() && !clean) {
format = false; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static BufferedImage grayMagnitude(ImageGray src, BufferedImage dst, double normalize) {
if (normalize < 0)
normalize = GImageStatistics.maxAbs(src);
dst = checkInputs(src, dst);
if (src.getDataType().isInteger()) {
return grayMagnitude((GrayI) src, dst, (int) normalize);... | public class class_name {
public static BufferedImage grayMagnitude(ImageGray src, BufferedImage dst, double normalize) {
if (normalize < 0)
normalize = GImageStatistics.maxAbs(src);
dst = checkInputs(src, dst);
if (src.getDataType().isInteger()) {
return grayMagnitude((GrayI) src, dst, (int) normalize);... |
public class class_name {
public void createInitialPerformanceMonitors() {
if (packageScanBase != null) {
AnnotatedMethodScanner methodScanner = new AnnotatedMethodScanner();
for (Method m : methodScanner.findAnnotatedMethods(packageScanBase, org.fishwife.jrugged.aspects.PerformanceMoni... | public class class_name {
public void createInitialPerformanceMonitors() {
if (packageScanBase != null) {
AnnotatedMethodScanner methodScanner = new AnnotatedMethodScanner();
for (Method m : methodScanner.findAnnotatedMethods(packageScanBase, org.fishwife.jrugged.aspects.PerformanceMoni... |
public class class_name {
@Action(name = "Create Virtual Machine",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text = O... | public class class_name {
@Action(name = "Create Virtual Machine",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text = O... |
public class class_name {
void rollbackApplicationLocalTransaction() throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "rollbackApplicationLocalTransaction");
}
if (_applicationLocalTransaction != null) {
... | public class class_name {
void rollbackApplicationLocalTransaction() throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "rollbackApplicationLocalTransaction");
}
if (_applicationLocalTransaction != null) {
... |
public class class_name {
void unregisterJob(final ExecutionGraph eg) {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, true);
while (it.hasNext()) {
this.splitMap.remove(it.next().getID());
}
} } | public class class_name {
void unregisterJob(final ExecutionGraph eg) {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, true);
while (it.hasNext()) {
this.splitMap.remove(it.next().getID()); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public ChangeBatch withChanges(Change... changes) {
if (this.changes == null) {
setChanges(new com.amazonaws.internal.SdkInternalList<Change>(changes.length));
}
for (Change ele : changes) {
this.changes.add(ele);
}
return this;
... | public class class_name {
public ChangeBatch withChanges(Change... changes) {
if (this.changes == null) {
setChanges(new com.amazonaws.internal.SdkInternalList<Change>(changes.length)); // depends on control dependency: [if], data = [none]
}
for (Change ele : changes) {
... |
public class class_name {
public final EObject rulePredicatedKeyword() throws RecognitionException {
EObject current = null;
Token lv_predicated_0_0=null;
Token lv_firstSetPredicated_1_0=null;
Token lv_value_2_0=null;
enterRule();
try {
// InternalXtext.... | public class class_name {
public final EObject rulePredicatedKeyword() throws RecognitionException {
EObject current = null;
Token lv_predicated_0_0=null;
Token lv_firstSetPredicated_1_0=null;
Token lv_value_2_0=null;
enterRule();
try {
// InternalXtext.... |
public class class_name {
public static Type[] getGenerics(final Type type, final Map<String, Type> generics) {
Type[] res = NO_TYPES;
Type analyzingType = type;
if (type instanceof TypeVariable) {
// if type is pure generic recovering parametrization
analyzingType = dec... | public class class_name {
public static Type[] getGenerics(final Type type, final Map<String, Type> generics) {
Type[] res = NO_TYPES;
Type analyzingType = type;
if (type instanceof TypeVariable) {
// if type is pure generic recovering parametrization
analyzingType = dec... |
public class class_name {
@Nullable
private static <T> T resolveAttribute(String attributeName, Class<T> type) {
String getter = readProperty(attributeName);
if (getter == null) {
return null;
}
int idx = getter.indexOf('#');
if (idx <= 0 || idx == getter.length() - 1) {
error("invali... | public class class_name {
@Nullable
private static <T> T resolveAttribute(String attributeName, Class<T> type) {
String getter = readProperty(attributeName);
if (getter == null) {
return null; // depends on control dependency: [if], data = [none]
}
int idx = getter.indexOf('#');
if (idx <= ... |
public class class_name {
private static boolean overflowInParse(final long current, final int digit, final int radix) {
if (current >= 0) {
if (current < MAX_VALUE_DIVS[radix]) {
return false;
}
if (current > MAX_VALUE_DIVS[radix]) {
return t... | public class class_name {
private static boolean overflowInParse(final long current, final int digit, final int radix) {
if (current >= 0) {
if (current < MAX_VALUE_DIVS[radix]) {
return false; // depends on control dependency: [if], data = [none]
}
if (curre... |
public class class_name {
public final void onSaveInstanceState(@Nullable final Bundle outState) {
if (outState != null) {
outState.putInt(KEY_CHRONOS_LISTENER_ID, mChronosListener.getId());
}
} } | public class class_name {
public final void onSaveInstanceState(@Nullable final Bundle outState) {
if (outState != null) {
outState.putInt(KEY_CHRONOS_LISTENER_ID, mChronosListener.getId()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected HashMap<String, PropertyDescriptor> inspectProperties() {
boolean scanAccessible = classDescriptor.isScanAccessible();
Class type = classDescriptor.getType();
HashMap<String, PropertyDescriptor> map = new HashMap<>();
Method[] methods = scanAccessible ? ClassUtil.getAccess... | public class class_name {
protected HashMap<String, PropertyDescriptor> inspectProperties() {
boolean scanAccessible = classDescriptor.isScanAccessible();
Class type = classDescriptor.getType();
HashMap<String, PropertyDescriptor> map = new HashMap<>();
Method[] methods = scanAccessible ? ClassUtil.getAccess... |
public class class_name {
public TextColumn set(Selection rowSelection, String newValue) {
for (int row : rowSelection) {
set(row, newValue);
}
return this;
} } | public class class_name {
public TextColumn set(Selection rowSelection, String newValue) {
for (int row : rowSelection) {
set(row, newValue); // depends on control dependency: [for], data = [row]
}
return this;
} } |
public class class_name {
@Override
public void removeByG_P(long groupId, boolean primary) {
for (CommerceCurrency commerceCurrency : findByG_P(groupId, primary,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceCurrency);
}
} } | public class class_name {
@Override
public void removeByG_P(long groupId, boolean primary) {
for (CommerceCurrency commerceCurrency : findByG_P(groupId, primary,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceCurrency); // depends on control dependency: [for], data = [commerceCurrency]
}
} ... |
public class class_name {
@Override
protected void computeStatistics(T input, int innerWidth, int innerHeight) {
final int statPixelStride = stats.getImageType().getNumBands();
final int statStride = stats.stride;
int vblocks = innerHeight/blockHeight;
if( vblocks*blockHeight < innerHeight )
vblocks++;
... | public class class_name {
@Override
protected void computeStatistics(T input, int innerWidth, int innerHeight) {
final int statPixelStride = stats.getImageType().getNumBands();
final int statStride = stats.stride;
int vblocks = innerHeight/blockHeight;
if( vblocks*blockHeight < innerHeight )
vblocks++;
... |
public class class_name {
private void doMutation(double probability, DoubleSolution solution) {
double rnd, deltaq, tempDelta;
double y, yl, yu;
for (int i = 0; i < solution.getNumberOfVariables(); i++) {
if (randomGenerator.nextDouble() <= probability) {
y = solution.getVariableValue(i);
... | public class class_name {
private void doMutation(double probability, DoubleSolution solution) {
double rnd, deltaq, tempDelta;
double y, yl, yu;
for (int i = 0; i < solution.getNumberOfVariables(); i++) {
if (randomGenerator.nextDouble() <= probability) {
y = solution.getVariableValue(i); /... |
public class class_name {
public List<Pattern> getDisjointPatterns() {
Map<PatternNode, String> reverseMap = new IdentityHashMap<>();
reverseMap.putAll(this.aliasToNode.entrySet().stream().collect(Collectors.toMap(x -> x.getValue(), x -> x.getKey())));
List<Pattern> result = new ArrayList<>();
while (... | public class class_name {
public List<Pattern> getDisjointPatterns() {
Map<PatternNode, String> reverseMap = new IdentityHashMap<>();
reverseMap.putAll(this.aliasToNode.entrySet().stream().collect(Collectors.toMap(x -> x.getValue(), x -> x.getKey())));
List<Pattern> result = new ArrayList<>();
while (... |
public class class_name {
@Override
public int getObjectSizeInByteBuffer(ByteBuffer buffer) {
final int offset = buffer.position();
buffer.position();
if (buffer.get(offset + EMBEDDED_OFFSET) > 0) {
return embeddedObjectSerializedSize(buffer.getInt(offset + EMBEDDED_SIZE_OFFSET));
} else {
... | public class class_name {
@Override
public int getObjectSizeInByteBuffer(ByteBuffer buffer) {
final int offset = buffer.position();
buffer.position();
if (buffer.get(offset + EMBEDDED_OFFSET) > 0) {
return embeddedObjectSerializedSize(buffer.getInt(offset + EMBEDDED_SIZE_OFFSET)); // depends on con... |
public class class_name {
@Override
protected MtasDataItemLongBasic getItem(int i) {
if (i >= 0 && i < size) {
return new MtasDataItemLongBasic(basicValueSumList[i], basicValueNList[i],
hasSub() ? subCollectorListNextLevel[i] : null, getStatsItems(),
sortType, sortDirection, errorNumber... | public class class_name {
@Override
protected MtasDataItemLongBasic getItem(int i) {
if (i >= 0 && i < size) {
return new MtasDataItemLongBasic(basicValueSumList[i], basicValueNList[i],
hasSub() ? subCollectorListNextLevel[i] : null, getStatsItems(),
sortType, sortDirection, errorNumber... |
public class class_name {
protected String getProducerDestName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerDestName");
String pDestName = null;
// Get the forward routing path.
StringArrayWrapper frp = (StringArray... | public class class_name {
protected String getProducerDestName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getProducerDestName");
String pDestName = null;
// Get the forward routing path.
StringArrayWrapper frp = (StringArray... |
public class class_name {
public float nextFloat() {
// Check cached result
if ((typeCache != null) && (typeCache instanceof Float)) {
float val = ((Float)typeCache).floatValue();
useTypeCache();
return val;
}
setRadix(10);
clearCaches();
... | public class class_name {
public float nextFloat() {
// Check cached result
if ((typeCache != null) && (typeCache instanceof Float)) {
float val = ((Float)typeCache).floatValue();
useTypeCache(); // depends on control dependency: [if], data = [none]
return val; // de... |
public class class_name {
public Date createDateWithValidation(String dateString, String inputFormat) {
try { return createDate(dateString, inputFormat); }
catch (Exception exception) {
Syslog.debug("DateContextImpl.createDateWithValidation: Error " +
"creating date wit... | public class class_name {
public Date createDateWithValidation(String dateString, String inputFormat) {
try { return createDate(dateString, inputFormat); } // depends on control dependency: [try], data = [none]
catch (Exception exception) {
Syslog.debug("DateContextImpl.createDateWithValid... |
public class class_name {
public boolean killTopology() {
// Setup Connection
String topologyURI = String.format("%s/v2/groups/%s?force=true",
this.marathonURI, this.topologyName);
HttpURLConnection conn = NetworkUtils.getHttpConnection(topologyURI);
// Attach a token if there is one specified... | public class class_name {
public boolean killTopology() {
// Setup Connection
String topologyURI = String.format("%s/v2/groups/%s?force=true",
this.marathonURI, this.topologyName);
HttpURLConnection conn = NetworkUtils.getHttpConnection(topologyURI);
// Attach a token if there is one specified... |
public class class_name {
public void marshall(ActionExecutionDetail actionExecutionDetail, ProtocolMarshaller protocolMarshaller) {
if (actionExecutionDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(ActionExecutionDetail actionExecutionDetail, ProtocolMarshaller protocolMarshaller) {
if (actionExecutionDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public Paths getPaths(ObjectNode obj, String location, ParseResult result) {
final Paths paths = new PathsImpl();
if (obj == null) {
return null;
}
Set<String> pathKeys = getKeys(obj);
for (String pathName : pathKeys) {
JsonNode ... | public class class_name {
public Paths getPaths(ObjectNode obj, String location, ParseResult result) {
final Paths paths = new PathsImpl();
if (obj == null) {
return null; // depends on control dependency: [if], data = [none]
}
Set<String> pathKeys = getKeys(obj);
fo... |
public class class_name {
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String[] repositoryUniqueIds, String homeCommunityIds[],
List<CodedValueType> purposesOfUse, List<CodedVal... | public class class_name {
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String[] repositoryUniqueIds, String homeCommunityIds[],
List<CodedValueType> purposesOfUse, List<CodedVal... |
public class class_name {
public static void or(byte[] map, int pos, byte source, int count) {
int shift = pos & 0x07;
int mask = (source & 0xff) >>> shift;
int index = pos / 8;
if (index >= map.length) {
return;
}
byte b = (byte) (map[index] | mask);
... | public class class_name {
public static void or(byte[] map, int pos, byte source, int count) {
int shift = pos & 0x07;
int mask = (source & 0xff) >>> shift;
int index = pos / 8;
if (index >= map.length) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Subscribe
public void slowHeartBeat(LowLevelHeartBeatEvent e) {
Description current = null;
if (tests != null && !tests.isEmpty()) {
current = tests.peek().getDescription();
} else {
current = lastSuite; // may be null.
}
target.post(new HeartBeatEvent(
... | public class class_name {
@Subscribe
public void slowHeartBeat(LowLevelHeartBeatEvent e) {
Description current = null;
if (tests != null && !tests.isEmpty()) {
current = tests.peek().getDescription(); // depends on control dependency: [if], data = [none]
} else {
current = lastSuite; // may b... |
public class class_name {
public String getExplanation() {
if (getCause() instanceof javax.naming.NamingException) {
return ((javax.naming.NamingException) getCause()).getExplanation();
}
return null;
} } | public class class_name {
public String getExplanation() {
if (getCause() instanceof javax.naming.NamingException) {
return ((javax.naming.NamingException) getCause()).getExplanation();
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void
printNode(DapNode node)
throws IOException
{
if(node == null)
return;
DapSort sort = node.getSort();
String dmrname = sort.getName();
switch (sort) {
case DATASET:// treat like group
case GROUP:
... | public class class_name {
public void
printNode(DapNode node)
throws IOException
{
if(node == null)
return;
DapSort sort = node.getSort();
String dmrname = sort.getName();
switch (sort) {
case DATASET:// treat like group
case GROUP:
... |
public class class_name {
public SnackbarWrapper buildWrapper() {
Snackbar snackbar = Snackbar.make(parentView, message, duration);
SnackbarWrapper wrapper = new SnackbarWrapper(snackbar)
.setAction(actionText, sanitisedActionClickListener())
.setActionTextAllCaps(actionAllCaps)
.addCal... | public class class_name {
public SnackbarWrapper buildWrapper() {
Snackbar snackbar = Snackbar.make(parentView, message, duration);
SnackbarWrapper wrapper = new SnackbarWrapper(snackbar)
.setAction(actionText, sanitisedActionClickListener())
.setActionTextAllCaps(actionAllCaps)
.addCal... |
public class class_name {
protected void handleViewChange(View v) {
List<Address> mbrs=v.getMembers();
if(mbrs.isEmpty()) return;
if(view == null || view.compareTo(v) < 0)
view=v;
else
return;
Address existing_coord=coord, new_coord=mbrs.get(0);
... | public class class_name {
protected void handleViewChange(View v) {
List<Address> mbrs=v.getMembers();
if(mbrs.isEmpty()) return;
if(view == null || view.compareTo(v) < 0)
view=v;
else
return;
Address existing_coord=coord, new_coord=mbrs.get(0);
... |
public class class_name {
public DescribeContinuousExportsResult withDescriptions(ContinuousExportDescription... descriptions) {
if (this.descriptions == null) {
setDescriptions(new java.util.ArrayList<ContinuousExportDescription>(descriptions.length));
}
for (ContinuousExportDescri... | public class class_name {
public DescribeContinuousExportsResult withDescriptions(ContinuousExportDescription... descriptions) {
if (this.descriptions == null) {
setDescriptions(new java.util.ArrayList<ContinuousExportDescription>(descriptions.length)); // depends on control dependency: [if], data ... |
public class class_name {
protected void setupRoadBorders(ZoomableGraphicsContext gc, RoadPolyline element) {
final Color color = gc.rgb(getDrawingColor(element));
gc.setStroke(color);
final double width;
if (element.isWidePolyline()) {
width = 2 + gc.doc2fxSize(element.getWidth());
} else {
width = 3;... | public class class_name {
protected void setupRoadBorders(ZoomableGraphicsContext gc, RoadPolyline element) {
final Color color = gc.rgb(getDrawingColor(element));
gc.setStroke(color);
final double width;
if (element.isWidePolyline()) {
width = 2 + gc.doc2fxSize(element.getWidth()); // depends on control de... |
public class class_name {
private void setViewsVisibility() {
if (mSeekBar != null) {
mSeekBar.setVisibility(View.VISIBLE);
}
if (mPlaybackTime != null) {
mPlaybackTime.setVisibility(View.VISIBLE);
}
if (mRunTime != null) {
mRunTime.setVisibility(View.VISIBLE);
}
if (mTotalTime != null) {
... | public class class_name {
private void setViewsVisibility() {
if (mSeekBar != null) {
mSeekBar.setVisibility(View.VISIBLE); // depends on control dependency: [if], data = [none]
}
if (mPlaybackTime != null) {
mPlaybackTime.setVisibility(View.VISIBLE); // depends on control dependency: [if], data = [none]... |
public class class_name {
void findLargestAnglesForAllNodes() {
for (int i = 0; i < listInfo.size(); i++) {
NodeInfo info = listInfo.get(i);
if( info.edges.size < 2 )
continue;
for (int k = 0, j = info.edges.size-1; k < info.edges.size; j=k,k++) {
double angleA = info.edges.get(j).angle;
doubl... | public class class_name {
void findLargestAnglesForAllNodes() {
for (int i = 0; i < listInfo.size(); i++) {
NodeInfo info = listInfo.get(i);
if( info.edges.size < 2 )
continue;
for (int k = 0, j = info.edges.size-1; k < info.edges.size; j=k,k++) {
double angleA = info.edges.get(j).angle;
doubl... |
public class class_name {
public List<ManagementGroupVertex> getSuccessors() {
final List<ManagementGroupVertex> successors = new ArrayList<ManagementGroupVertex>();
for (ManagementGroupEdge edge : this.forwardEdges) {
successors.add(edge.getTarget());
}
return successors;
} } | public class class_name {
public List<ManagementGroupVertex> getSuccessors() {
final List<ManagementGroupVertex> successors = new ArrayList<ManagementGroupVertex>();
for (ManagementGroupEdge edge : this.forwardEdges) {
successors.add(edge.getTarget()); // depends on control dependency: [for], data = [edge]
... |
public class class_name {
private void ensureJdbcType(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException
{
if (!fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE))
{
if (!fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_JDBC_TYPE))
... | public class class_name {
private void ensureJdbcType(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException
{
if (!fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE))
{
if (!fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_JDBC_TYPE))
... |
public class class_name {
protected void addFiles(List<CmsFileInfo> fileInfos) {
if (fileInfos != null) {
for (CmsFileInfo file : fileInfos) {
// store all files
m_allFiles.put(file.getFileName(), file);
// add those files to the list of files to u... | public class class_name {
protected void addFiles(List<CmsFileInfo> fileInfos) {
if (fileInfos != null) {
for (CmsFileInfo file : fileInfos) {
// store all files
m_allFiles.put(file.getFileName(), file); // depends on control dependency: [for], data = [file]
... |
public class class_name {
public static void getDeclaredFields(Class c, Collection<Field> fields) {
try
{
Field[] local = c.getDeclaredFields();
for (Field field : local)
{
if (!field.isAccessible())
{
try
... | public class class_name {
public static void getDeclaredFields(Class c, Collection<Field> fields) {
try
{
Field[] local = c.getDeclaredFields();
for (Field field : local)
{
if (!field.isAccessible())
{
try
... |
public class class_name {
protected void readFolder(CmsUUID folderId, boolean clearFilter) throws CmsException {
CmsObject cms = A_CmsUI.getCmsObject();
if (clearFilter) {
m_searchField.clear();
}
CmsResource folder = cms.readResource(folderId, FOLDERS);
m_currentFo... | public class class_name {
protected void readFolder(CmsUUID folderId, boolean clearFilter) throws CmsException {
CmsObject cms = A_CmsUI.getCmsObject();
if (clearFilter) {
m_searchField.clear();
}
CmsResource folder = cms.readResource(folderId, FOLDERS);
m_currentFo... |
public class class_name {
@Override
public synchronized void stop(StopContext context) {
try {
sipService.stop();
// FIXME: kakonyii
// server.stop();
} catch (Exception e) {
}
// FIXME: kakonyii
// engine = null;
// service = null... | public class class_name {
@Override
public synchronized void stop(StopContext context) {
try {
sipService.stop(); // depends on control dependency: [try], data = [none]
// FIXME: kakonyii
// server.stop();
} catch (Exception e) {
} // depends on control d... |
public class class_name {
@Nullable
private static Symbol tryGetSymbol(Tree tree) {
if (tree instanceof JCIdent) {
return ((JCIdent) tree).sym;
}
if (tree instanceof JCFieldAccess) {
return ((JCFieldAccess) tree).sym;
}
if (tree instanceof JCVariableDecl) {
return ((JCVariableDe... | public class class_name {
@Nullable
private static Symbol tryGetSymbol(Tree tree) {
if (tree instanceof JCIdent) {
return ((JCIdent) tree).sym; // depends on control dependency: [if], data = [none]
}
if (tree instanceof JCFieldAccess) {
return ((JCFieldAccess) tree).sym; // depends on control... |
public class class_name {
@Override
public void run(T configuration, Environment environment) {
try {
if (configuration.getGuice() == null) {
LOGGER.error("GuiceBundle can not work without and configuration!");
}
GuiceBundle.configuration = configuration.... | public class class_name {
@Override
public void run(T configuration, Environment environment) {
try {
if (configuration.getGuice() == null) {
LOGGER.error("GuiceBundle can not work without and configuration!"); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void execute(final Tuple tuple) {
if (TupleUtils.isTick(tuple)) {
onTickTuple(tuple);
} else {
process(tuple);
}
} } | public class class_name {
@Override
public void execute(final Tuple tuple) {
if (TupleUtils.isTick(tuple)) {
onTickTuple(tuple); // depends on control dependency: [if], data = [none]
} else {
process(tuple); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public void removeByCommerceCountryId(long commerceCountryId) {
for (CommerceAddress commerceAddress : findByCommerceCountryId(
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceAddress);
}
} } | public class class_name {
@Override
public void removeByCommerceCountryId(long commerceCountryId) {
for (CommerceAddress commerceAddress : findByCommerceCountryId(
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceAddress); // depends on control dependency: [for], data = [comme... |
public class class_name {
public static boolean isH2Connection(Settings configuration) {
final String connStr;
try {
connStr = configuration.getConnectionString(
Settings.KEYS.DB_CONNECTION_STRING,
Settings.KEYS.DB_FILE_NAME);
} catch (IOExcep... | public class class_name {
public static boolean isH2Connection(Settings configuration) {
final String connStr;
try {
connStr = configuration.getConnectionString(
Settings.KEYS.DB_CONNECTION_STRING,
Settings.KEYS.DB_FILE_NAME); // depends on control de... |
public class class_name {
public <ObjectType extends Identifiable> Map<String, ObjectType>
asMap(List<LDAPEntry> entries, Function<LDAPEntry, ObjectType> mapper) {
// Convert each entry to the corresponding Guacamole API object
Map<String, ObjectType> objects = new HashMap<>(entries.size());
... | public class class_name {
public <ObjectType extends Identifiable> Map<String, ObjectType>
asMap(List<LDAPEntry> entries, Function<LDAPEntry, ObjectType> mapper) {
// Convert each entry to the corresponding Guacamole API object
Map<String, ObjectType> objects = new HashMap<>(entries.size());
... |
public class class_name {
public void printStackTrace(java.io.PrintStream s)
{
if (s == null)
s = System.err;
try
{
super.printStackTrace(s);
}
catch (Exception e){}
Throwable exception = m_exception;
for (int i = 0; (i < 10) && (null != exception); i++)
{
s.prin... | public class class_name {
public void printStackTrace(java.io.PrintStream s)
{
if (s == null)
s = System.err;
try
{
super.printStackTrace(s); // depends on control dependency: [try], data = [none]
}
catch (Exception e){} // depends on control dependency: [catch], data = [none]
... |
public class class_name {
public JobScheduleDeleteOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null;
} else {
this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince);
}
return this;
... | public class class_name {
public JobScheduleDeleteOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none]
} else {
this.ifUnmodifiedSince = new DateTimeRfc11... |
public class class_name {
private int randomValue(IntVar x) {
int i = rnd.nextInt(x.getDomainSize());
DisposableValueIterator ite = x.getValueIterator(true);
int pos = -1;
try {
while (i >= 0) {
pos = ite.next();
i--;
}
} f... | public class class_name {
private int randomValue(IntVar x) {
int i = rnd.nextInt(x.getDomainSize());
DisposableValueIterator ite = x.getValueIterator(true);
int pos = -1;
try {
while (i >= 0) {
pos = ite.next(); // depends on control dependency: [while], dat... |
public class class_name {
public void setOwners(java.util.Collection<String> owners) {
if (owners == null) {
this.owners = null;
return;
}
this.owners = new com.amazonaws.internal.SdkInternalList<String>(owners);
} } | public class class_name {
public void setOwners(java.util.Collection<String> owners) {
if (owners == null) {
this.owners = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.owners = new com.a... |
public class class_name {
public static double[] addArray(double[] array1, double[] array2)
{
if (array1.length != array2.length)
{
throw new IllegalArgumentException("The dimensions have to be equal!");
}
double[] result = new double[array1.length];
assert arra... | public class class_name {
public static double[] addArray(double[] array1, double[] array2)
{
if (array1.length != array2.length)
{
throw new IllegalArgumentException("The dimensions have to be equal!");
}
double[] result = new double[array1.length];
assert arra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.