code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static JSONObject loadJSONAsset(Context context, final String asset) {
if (asset == null) {
return new JSONObject();
}
return getJsonObject(org.gearvrf.widgetlib.main.Utility.readTextFile(context, asset));
} } | public class class_name {
public static JSONObject loadJSONAsset(Context context, final String asset) {
if (asset == null) {
return new JSONObject(); // depends on control dependency: [if], data = [none]
}
return getJsonObject(org.gearvrf.widgetlib.main.Utility.readTextFile(context,... |
public class class_name {
private CmsSearchWorkplaceBean getSearchParams() {
if ((m_searchParams == null) && (getSettings().getDialogObject() instanceof Map<?, ?>)) {
Map<?, ?> dialogObject = (Map<?, ?>)getSettings().getDialogObject();
if (dialogObject.get(CmsSearchDialog.class.getName... | public class class_name {
private CmsSearchWorkplaceBean getSearchParams() {
if ((m_searchParams == null) && (getSettings().getDialogObject() instanceof Map<?, ?>)) {
Map<?, ?> dialogObject = (Map<?, ?>)getSettings().getDialogObject(); // depends on control dependency: [if], data = [none] // depen... |
public class class_name {
private final void handleStartElem(char c)
throws XMLStreamException
{
mTokenState = TOKEN_FULL_COALESCED;
boolean empty;
if (mCfgNsEnabled) {
String str = parseLocalName(c);
c = (mInputPtr < mInputEnd) ?
mInputBuffe... | public class class_name {
private final void handleStartElem(char c)
throws XMLStreamException
{
mTokenState = TOKEN_FULL_COALESCED;
boolean empty;
if (mCfgNsEnabled) {
String str = parseLocalName(c);
c = (mInputPtr < mInputEnd) ?
mInputBuffe... |
public class class_name {
private Object getBeanFromBox(BeanBox box, boolean required, Set<Object> history) {// NOSONAR
// NOSONAR System.out.println(" Box=> box=" + box + " history=" + history);
BeanBoxException.assureNotNull(box, "Fail to build instance for a null beanBox");
Object bean = null;
if (box.isSin... | public class class_name {
private Object getBeanFromBox(BeanBox box, boolean required, Set<Object> history) {// NOSONAR
// NOSONAR System.out.println(" Box=> box=" + box + " history=" + history);
BeanBoxException.assureNotNull(box, "Fail to build instance for a null beanBox");
Object bean = null;
if (box.isSin... |
public class class_name {
public static int[] sampleOOBRows(int nrows, float rate, Random sampler, int[] oob) {
int oobcnt = 0; // Number of oob rows
Arrays.fill(oob, 0);
for(int row = 0; row < nrows; row++) {
if (sampler.nextFloat() >= rate) { // it is out-of-bag row
oob[1+oobcnt++] = row;
... | public class class_name {
public static int[] sampleOOBRows(int nrows, float rate, Random sampler, int[] oob) {
int oobcnt = 0; // Number of oob rows
Arrays.fill(oob, 0);
for(int row = 0; row < nrows; row++) {
if (sampler.nextFloat() >= rate) { // it is out-of-bag row
oob[1+oobcnt++] = row; /... |
public class class_name {
protected void updatePropertyFile() {
final String methodName = "updatePropertyFile()";
final File f = new File(htodPropertyFileName);
final CacheOnDisk cod = this;
traceDebug(methodName, "cacheName=" + this.cacheName);
AccessController.doPrivileged(new... | public class class_name {
protected void updatePropertyFile() {
final String methodName = "updatePropertyFile()";
final File f = new File(htodPropertyFileName);
final CacheOnDisk cod = this;
traceDebug(methodName, "cacheName=" + this.cacheName);
AccessController.doPrivileged(new... |
public class class_name {
public static void closeRocksObjects(RocksObject... rocksObjList) {
if (rocksObjList != null) {
for (RocksObject obj : rocksObjList) {
try {
if (obj != null) {
obj.close();
}
} ... | public class class_name {
public static void closeRocksObjects(RocksObject... rocksObjList) {
if (rocksObjList != null) {
for (RocksObject obj : rocksObjList) {
try {
if (obj != null) {
obj.close(); // depends on control dependency: [if], ... |
public class class_name {
public void setNetworkInterfacePermissionIds(java.util.Collection<String> networkInterfacePermissionIds) {
if (networkInterfacePermissionIds == null) {
this.networkInterfacePermissionIds = null;
return;
}
this.networkInterfacePermissionIds = ne... | public class class_name {
public void setNetworkInterfacePermissionIds(java.util.Collection<String> networkInterfacePermissionIds) {
if (networkInterfacePermissionIds == null) {
this.networkInterfacePermissionIds = null; // depends on control dependency: [if], data = [none]
return; // d... |
public class class_name {
public Observable<ServiceResponseWithHeaders<StreamingJobInner, StreamingJobsCreateOrReplaceHeaders>> beginCreateOrReplaceWithServiceResponseAsync(String resourceGroupName, String jobName, StreamingJobInner streamingJob, String ifMatch, String ifNoneMatch) {
if (this.client.subscripti... | public class class_name {
public Observable<ServiceResponseWithHeaders<StreamingJobInner, StreamingJobsCreateOrReplaceHeaders>> beginCreateOrReplaceWithServiceResponseAsync(String resourceGroupName, String jobName, StreamingJobInner streamingJob, String ifMatch, String ifNoneMatch) {
if (this.client.subscripti... |
public class class_name {
public static Long hexToLongObject(@Nullable String str, Long defaultValue) {
if (StringUtils.isEmpty(str)) {
return defaultValue;
}
try {
return Long.decode(str);
} catch (final NumberFormatException nfe) {
return defaultValue;
}
} } | public class class_name {
public static Long hexToLongObject(@Nullable String str, Long defaultValue) {
if (StringUtils.isEmpty(str)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
try {
return Long.decode(str); // depends on control dependency: [try], data = [none]
} catc... |
public class class_name {
public static int lastIndexOf(final CharSequence seq, final int searchChar) {
if (isEmpty(seq)) {
return INDEX_NOT_FOUND;
}
return CharSequenceUtils.lastIndexOf(seq, searchChar, seq.length());
} } | public class class_name {
public static int lastIndexOf(final CharSequence seq, final int searchChar) {
if (isEmpty(seq)) {
return INDEX_NOT_FOUND; // depends on control dependency: [if], data = [none]
}
return CharSequenceUtils.lastIndexOf(seq, searchChar, seq.length());
} } |
public class class_name {
public void flip() {
int fromIndex=0, toIndex=size();
if (fromIndex == toIndex)
return;
int startWordIndex = wordIndex(fromIndex);
int endWordIndex = wordIndex(toIndex);
long firstWordMask = WORD_MASK << fromIndex;
long lastWordM... | public class class_name {
public void flip() {
int fromIndex=0, toIndex=size();
if (fromIndex == toIndex)
return;
int startWordIndex = wordIndex(fromIndex);
int endWordIndex = wordIndex(toIndex);
long firstWordMask = WORD_MASK << fromIndex;
long lastWordM... |
public class class_name {
private FormatString[] parse(String s) {
ArrayList<FormatString> al = new ArrayList<>();
for (int i = 0, len = s.length(); i < len; ) {
int nextPercent = s.indexOf('%', i);
if (s.charAt(i) != '%') {
// This is plain-text part, find the m... | public class class_name {
private FormatString[] parse(String s) {
ArrayList<FormatString> al = new ArrayList<>();
for (int i = 0, len = s.length(); i < len; ) {
int nextPercent = s.indexOf('%', i);
if (s.charAt(i) != '%') {
// This is plain-text part, find the m... |
public class class_name {
public void updateUtf8(String string) {
if (string != null) {
byte[] bytes;
try {
bytes = string.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
u... | public class class_name {
public void updateUtf8(String string) {
if (string != null) {
byte[] bytes;
try {
bytes = string.getBytes("UTF-8"); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
thr... |
public class class_name {
public static org.opencms.db.generic.CmsSqlManager getInstance(String classname) {
org.opencms.db.generic.CmsSqlManager sqlManager;
try {
Object objectInstance = Class.forName(classname).newInstance();
sqlManager = (org.opencms.db.generic.CmsSqlManage... | public class class_name {
public static org.opencms.db.generic.CmsSqlManager getInstance(String classname) {
org.opencms.db.generic.CmsSqlManager sqlManager;
try {
Object objectInstance = Class.forName(classname).newInstance();
sqlManager = (org.opencms.db.generic.CmsSqlManage... |
public class class_name {
private void appendSuffix(char[] suffix,
int len,
char[] container) {
int startIndex = fastPathData.lastFreeIndex;
// If suffix to append is only 1 char long, just assigns this char.
// If suffix is less or ... | public class class_name {
private void appendSuffix(char[] suffix,
int len,
char[] container) {
int startIndex = fastPathData.lastFreeIndex;
// If suffix to append is only 1 char long, just assigns this char.
// If suffix is less or ... |
public class class_name {
public static void successCancellation(final JpaAction action, final ActionRepository actionRepository,
final TargetRepository targetRepository) {
// set action inactive
action.setActive(false);
action.setStatus(Status.CANCELED);
final JpaTarget t... | public class class_name {
public static void successCancellation(final JpaAction action, final ActionRepository actionRepository,
final TargetRepository targetRepository) {
// set action inactive
action.setActive(false);
action.setStatus(Status.CANCELED);
final JpaTarget t... |
public class class_name {
public void marshall(WorkflowExecutionCompletedEventAttributes workflowExecutionCompletedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (workflowExecutionCompletedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... | public class class_name {
public void marshall(WorkflowExecutionCompletedEventAttributes workflowExecutionCompletedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (workflowExecutionCompletedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... |
public class class_name {
public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() {
if (typeCase_ == 3) {
return (com.google.privacy.dlp.v2.BigQueryKey) type_;
}
return com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstance();
} } | public class class_name {
public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() {
if (typeCase_ == 3) {
return (com.google.privacy.dlp.v2.BigQueryKey) type_; // depends on control dependency: [if], data = [none]
}
return com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstan... |
public class class_name {
public static String compileToStringMinMaxArguments(
CharSequence pattern, StringBuilder sb, int min, int max) {
// Return some precompiled common two-argument patterns.
if (min <= 2 && 2 <= max) {
for (String[] pair : COMMON_PATTERNS) {
... | public class class_name {
public static String compileToStringMinMaxArguments(
CharSequence pattern, StringBuilder sb, int min, int max) {
// Return some precompiled common two-argument patterns.
if (min <= 2 && 2 <= max) {
for (String[] pair : COMMON_PATTERNS) {
... |
public class class_name {
public void order() {
final OrderComparator comparator = new OrderComparator();
for (Class<? extends FeatureInstaller> installer : installerTypes) {
if (Ordered.class.isAssignableFrom(installer)) {
final List<Class<?>> extensions = this.extensions.g... | public class class_name {
public void order() {
final OrderComparator comparator = new OrderComparator();
for (Class<? extends FeatureInstaller> installer : installerTypes) {
if (Ordered.class.isAssignableFrom(installer)) {
final List<Class<?>> extensions = this.extensions.g... |
public class class_name {
static JPAPuId[] getExtendedContextPuIds(Collection<InjectionBinding<?>> injectionBindings,
String ejbName,
Set<String> persistenceRefNames,
List<Object> bind... | public class class_name {
static JPAPuId[] getExtendedContextPuIds(Collection<InjectionBinding<?>> injectionBindings,
String ejbName,
Set<String> persistenceRefNames,
List<Object> bind... |
public class class_name {
private int lineBeginningFor(int pos) {
if (sourceChars == null) {
return -1;
}
if (pos <= 0) {
return 0;
}
char[] buf = sourceChars;
if (pos >= buf.length) {
pos = buf.length - 1;
}
while (--p... | public class class_name {
private int lineBeginningFor(int pos) {
if (sourceChars == null) {
return -1; // depends on control dependency: [if], data = [none]
}
if (pos <= 0) {
return 0; // depends on control dependency: [if], data = [none]
}
char[] buf = ... |
public class class_name {
public static void useSequentialIds() {
if (!sequential) {
// get string that changes every 10 minutes
TimeZone tz = TimeZone.getTimeZone("UTC");
DateFormat df = new SimpleDateFormat("yyyyMMddHHmm");
df.setTimeZone(tz);
Strin... | public class class_name {
public static void useSequentialIds() {
if (!sequential) {
// get string that changes every 10 minutes
TimeZone tz = TimeZone.getTimeZone("UTC");
DateFormat df = new SimpleDateFormat("yyyyMMddHHmm");
df.setTimeZone(tz); // depends on con... |
public class class_name {
protected void removeListeners() {
Editable text = getText();
if (text != null) {
TokenSpanWatcher[] spanWatchers = text.getSpans(0, text.length(), TokenSpanWatcher.class);
for (TokenSpanWatcher watcher : spanWatchers) {
text.removeSpan(... | public class class_name {
protected void removeListeners() {
Editable text = getText();
if (text != null) {
TokenSpanWatcher[] spanWatchers = text.getSpans(0, text.length(), TokenSpanWatcher.class);
for (TokenSpanWatcher watcher : spanWatchers) {
text.removeSpan(... |
public class class_name {
private void setSorts(List<Order> orderBys) {
for (Order order : orderBys) {
if (order.getNestedPath() != null) {
request.addSort(SortBuilders.fieldSort(order.getName()).order(SortOrder.valueOf(order.getType())).setNestedSort(new NestedSortBuilder(order.getNested... | public class class_name {
private void setSorts(List<Order> orderBys) {
for (Order order : orderBys) {
if (order.getNestedPath() != null) {
request.addSort(SortBuilders.fieldSort(order.getName()).order(SortOrder.valueOf(order.getType())).setNestedSort(new NestedSortBuilder(order.getNested... |
public class class_name {
public static ImageMetaData decodeDimensionsAndColorSpace(InputStream is) {
Preconditions.checkNotNull(is);
ByteBuffer byteBuffer = DECODE_BUFFERS.acquire();
if (byteBuffer == null) {
byteBuffer = ByteBuffer.allocate(DECODE_BUFFER_SIZE);
}
BitmapFactory.Options optio... | public class class_name {
public static ImageMetaData decodeDimensionsAndColorSpace(InputStream is) {
Preconditions.checkNotNull(is);
ByteBuffer byteBuffer = DECODE_BUFFERS.acquire();
if (byteBuffer == null) {
byteBuffer = ByteBuffer.allocate(DECODE_BUFFER_SIZE); // depends on control dependency: [if... |
public class class_name {
@Override
public CPTaxCategory remove(Serializable primaryKey)
throws NoSuchCPTaxCategoryException {
Session session = null;
try {
session = openSession();
CPTaxCategory cpTaxCategory = (CPTaxCategory)session.get(CPTaxCategoryImpl.class,
primaryKey);
if (cpTaxCategory ... | public class class_name {
@Override
public CPTaxCategory remove(Serializable primaryKey)
throws NoSuchCPTaxCategoryException {
Session session = null;
try {
session = openSession();
CPTaxCategory cpTaxCategory = (CPTaxCategory)session.get(CPTaxCategoryImpl.class,
primaryKey);
if (cpTaxCategory ... |
public class class_name {
private static boolean isScrollable(AccessibilityNodeInfoCompat node) {
if (node.isScrollable()) {
return true;
}
return supportsAnyAction(node,
AccessibilityNodeInfoCompat.ACTION_SCROLL_FORWARD,
AccessibilityNodeInfoCompat.... | public class class_name {
private static boolean isScrollable(AccessibilityNodeInfoCompat node) {
if (node.isScrollable()) {
return true; // depends on control dependency: [if], data = [none]
}
return supportsAnyAction(node,
AccessibilityNodeInfoCompat.ACTION_SCROLL... |
public class class_name {
private synchronized void onJobFailure(final JobStatusProto jobStatusProto) {
assert jobStatusProto.getState() == ReefServiceProtos.State.FAILED;
final String id = this.jobId;
final Optional<byte[]> data = jobStatusProto.hasException() ?
Optional.of(jobStatusProto.getExce... | public class class_name {
private synchronized void onJobFailure(final JobStatusProto jobStatusProto) {
assert jobStatusProto.getState() == ReefServiceProtos.State.FAILED;
final String id = this.jobId;
final Optional<byte[]> data = jobStatusProto.hasException() ?
Optional.of(jobStatusProto.getExce... |
public class class_name {
public JsonObject remove(String name) {
if (name == null) {
throw new NullPointerException(NAME_IS_NULL);
}
int index = indexOf(name);
if (index != -1) {
table.remove(index);
names.remove(index);
values.remove(index);
}
return this;
} } | public class class_name {
public JsonObject remove(String name) {
if (name == null) {
throw new NullPointerException(NAME_IS_NULL);
}
int index = indexOf(name);
if (index != -1) {
table.remove(index); // depends on control dependency: [if], data = [(index]
names.remove(index); // depe... |
public class class_name {
@Override
public synchronized void addListener(JobCatalogListener jobListener) {
Preconditions.checkNotNull(jobListener);
this.listeners.addListener(jobListener);
if (state() == State.RUNNING) {
Iterator<JobSpec> jobSpecItr = getJobSpecsWithTimeUpdate();
while (jobS... | public class class_name {
@Override
public synchronized void addListener(JobCatalogListener jobListener) {
Preconditions.checkNotNull(jobListener);
this.listeners.addListener(jobListener);
if (state() == State.RUNNING) {
Iterator<JobSpec> jobSpecItr = getJobSpecsWithTimeUpdate();
while (jobS... |
public class class_name {
public void setKeyOrder(boolean bKeyOrder)
{
super.setKeyOrder(bKeyOrder);
boolean bForceUniqueKey = true;
int iKeyFieldCount = this.getKeyFields(bForceUniqueKey, false);
for (int iKeyFieldSeq = DBConstants.MAIN_KEY_FIELD; iKeyFieldSeq < iKeyFieldCount; iKe... | public class class_name {
public void setKeyOrder(boolean bKeyOrder)
{
super.setKeyOrder(bKeyOrder);
boolean bForceUniqueKey = true;
int iKeyFieldCount = this.getKeyFields(bForceUniqueKey, false);
for (int iKeyFieldSeq = DBConstants.MAIN_KEY_FIELD; iKeyFieldSeq < iKeyFieldCount; iKe... |
public class class_name {
public static List<Representation> parseRepresentations(JsonObject jsonObject) {
List<Representation> representations = new ArrayList<Representation>();
for (JsonValue representationJson : jsonObject.get("entries").asArray()) {
Representation representation = new R... | public class class_name {
public static List<Representation> parseRepresentations(JsonObject jsonObject) {
List<Representation> representations = new ArrayList<Representation>();
for (JsonValue representationJson : jsonObject.get("entries").asArray()) {
Representation representation = new R... |
public class class_name {
public List<Scan.PrecursorMz> getPrecursorMz() {
if (precursorMz == null) {
precursorMz = new ArrayList<Scan.PrecursorMz>();
}
return this.precursorMz;
} } | public class class_name {
public List<Scan.PrecursorMz> getPrecursorMz() {
if (precursorMz == null) {
precursorMz = new ArrayList<Scan.PrecursorMz>(); // depends on control dependency: [if], data = [none]
}
return this.precursorMz;
} } |
public class class_name {
public static List<DeltaError> applyDelta(Object source, List<Delta> commands, final ID idFetcher, DeltaProcessor deltaProcessor, boolean ... failFast)
{
// Index all objects in source graph
final Map srcMap = new HashMap();
Traverser.traverse(source, new Traverser... | public class class_name {
public static List<DeltaError> applyDelta(Object source, List<Delta> commands, final ID idFetcher, DeltaProcessor deltaProcessor, boolean ... failFast)
{
// Index all objects in source graph
final Map srcMap = new HashMap();
Traverser.traverse(source, new Traverser... |
public class class_name {
public ComputeNodeGetRemoteDesktopHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null;
} else {
this.lastModified = new DateTimeRfc1123(lastModified);
}
return this;
} } | public class class_name {
public ComputeNodeGetRemoteDesktopHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null; // depends on control dependency: [if], data = [none]
} else {
this.lastModified = new DateTimeRfc1123(lastModified... |
public class class_name {
private void handleMulti(@NonNull String[] permissionNames) {
List<String> permissions = declinedPermissionsAsList(context, permissionNames);
if (permissions.isEmpty()) {
permissionCallback.onPermissionGranted(permissionNames);
return;
}
... | public class class_name {
private void handleMulti(@NonNull String[] permissionNames) {
List<String> permissions = declinedPermissionsAsList(context, permissionNames);
if (permissions.isEmpty()) {
permissionCallback.onPermissionGranted(permissionNames); // depends on control dependency: [if... |
public class class_name {
public static <T> CloseableIterator<T> fromIterator(Iterator<T> iterator) {
requireNonNull(iterator);
if (iterator instanceof CloseableIterator) return (CloseableIterator<T>) iterator;
return new CloseableIterator<T>() {
@Override
public void c... | public class class_name {
public static <T> CloseableIterator<T> fromIterator(Iterator<T> iterator) {
requireNonNull(iterator);
if (iterator instanceof CloseableIterator) return (CloseableIterator<T>) iterator;
return new CloseableIterator<T>() {
@Override
public void c... |
public class class_name {
public static String wrapText(final String inString, final String newline, final int wrapColumn) {
if (inString == null) {
return null;
}
final StringTokenizer lineTokenizer = new StringTokenizer(inString, newline, true);
final StringBuilder bu... | public class class_name {
public static String wrapText(final String inString, final String newline, final int wrapColumn) {
if (inString == null) {
return null;
// depends on control dependency: [if], data = [none]
}
final StringTokenizer lineTokenizer = new StringTokenizer(inS... |
public class class_name {
private byte[][] toByteArrays(final byte[] keyspace, final byte[] uid, final byte[] serviceCode, final byte[][] key) {
final byte[][] allArgs = new byte[key.length + 3][];
int index = 0;
allArgs[index++] = keyspace;
allArgs[index++] = uid;
allArgs[index... | public class class_name {
private byte[][] toByteArrays(final byte[] keyspace, final byte[] uid, final byte[] serviceCode, final byte[][] key) {
final byte[][] allArgs = new byte[key.length + 3][];
int index = 0;
allArgs[index++] = keyspace;
allArgs[index++] = uid;
allArgs[index... |
public class class_name {
public PhaseIdType[] getDefaultPhases(String viewId) {
PhaseIdType[] defaultPhases = null;
RestrictAtPhase restrictAtPhase = viewConfigStore.getAnnotationData(viewId, RestrictAtPhase.class);
if (restrictAtPhase != null) {
defaultPhases = restrictAtPhase.val... | public class class_name {
public PhaseIdType[] getDefaultPhases(String viewId) {
PhaseIdType[] defaultPhases = null;
RestrictAtPhase restrictAtPhase = viewConfigStore.getAnnotationData(viewId, RestrictAtPhase.class);
if (restrictAtPhase != null) {
defaultPhases = restrictAtPhase.val... |
public class class_name {
public static String[] getDataTypesId()
{
Set<String> dataTypeIds = new HashSet<String>();
for(Datatype datatype : miriam.getDatatype()) {
dataTypeIds.add(datatype.getId());
}
return dataTypeIds.toArray(new String[] {});
} } | public class class_name {
public static String[] getDataTypesId()
{
Set<String> dataTypeIds = new HashSet<String>();
for(Datatype datatype : miriam.getDatatype()) {
dataTypeIds.add(datatype.getId()); // depends on control dependency: [for], data = [datatype]
}
return dataTy... |
public class class_name {
public static CurrencyFunction currency(Field field, @Nullable String currencyCode) {
Assert.notNull(field, "Field for currency function must not be 'null'.");
CurrencyFunction function = new CurrencyFunction(field);
if (StringUtils.hasText(currencyCode)) {
function.addArgument(cur... | public class class_name {
public static CurrencyFunction currency(Field field, @Nullable String currencyCode) {
Assert.notNull(field, "Field for currency function must not be 'null'.");
CurrencyFunction function = new CurrencyFunction(field);
if (StringUtils.hasText(currencyCode)) {
function.addArgument(cur... |
public class class_name {
private static void balbak(DenseMatrix V, double[] scale) {
int n = V.nrows();
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
V.mul(i, j, scale[i]);
}
}
} } | public class class_name {
private static void balbak(DenseMatrix V, double[] scale) {
int n = V.nrows();
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
V.mul(i, j, scale[i]); // depends on control dependency: [for], data = [j]
}
}
} } |
public class class_name {
public EClass getIfcRelConnectsWithRealizingElements() {
if (ifcRelConnectsWithRealizingElementsEClass == null) {
ifcRelConnectsWithRealizingElementsEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(465);
}
return ifcR... | public class class_name {
public EClass getIfcRelConnectsWithRealizingElements() {
if (ifcRelConnectsWithRealizingElementsEClass == null) {
ifcRelConnectsWithRealizingElementsEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(465);
// depends on cont... |
public class class_name {
@Trivial
private boolean deleteAll(File rootFile) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, "Delete [ " + rootFile.getAbsolutePath() + " ]");
}
if ( FileUtils.fileIsFile(rootFile) ) {
boolean didDele... | public class class_name {
@Trivial
private boolean deleteAll(File rootFile) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, "Delete [ " + rootFile.getAbsolutePath() + " ]"); // depends on control dependency: [if], data = [none]
}
if ( FileUtil... |
public class class_name {
protected boolean check100Continue() {
// if the request wasn't expecting the 100 continue, just return now
if (!getRequest().isExpect100Continue()) {
return true;
}
// if the channel stopped while we parsed this Expect request, we want
// t... | public class class_name {
protected boolean check100Continue() {
// if the request wasn't expecting the 100 continue, just return now
if (!getRequest().isExpect100Continue()) {
return true; // depends on control dependency: [if], data = [none]
}
// if the channel stopped whi... |
public class class_name {
public void marshall(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) {
if (modifyEventSubscriptionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) {
if (modifyEventSubscriptionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public synchronized OServerAdmin createDatabase(final String iDatabaseType, String iStorageMode) throws IOException {
storage.checkConnection();
try {
if (storage.getName() == null || storage.getName().length() <= 0) {
OLogManager.instance().error(this, "Cannot cre... | public class class_name {
public synchronized OServerAdmin createDatabase(final String iDatabaseType, String iStorageMode) throws IOException {
storage.checkConnection();
try {
if (storage.getName() == null || storage.getName().length() <= 0) {
OLogManager.instance().error(this, "Cannot cre... |
public class class_name {
public void registerAll(Iterable<? extends CompositeStateHandle> stateHandles) {
if (stateHandles == null) {
return;
}
synchronized (registeredStates) {
for (CompositeStateHandle stateHandle : stateHandles) {
stateHandle.registerSharedStates(this);
}
}
} } | public class class_name {
public void registerAll(Iterable<? extends CompositeStateHandle> stateHandles) {
if (stateHandles == null) {
return; // depends on control dependency: [if], data = [none]
}
synchronized (registeredStates) {
for (CompositeStateHandle stateHandle : stateHandles) {
stateHandle.... |
public class class_name {
protected HttpResponse doRequestWithAuthorization(HttpClient httpclient,
RequestBuilder requestBuilder,
Map<String, Object> params,
... | public class class_name {
protected HttpResponse doRequestWithAuthorization(HttpClient httpclient,
RequestBuilder requestBuilder,
Map<String, Object> params,
... |
public class class_name {
public static <T, D, A> Collector<T, ?, Map<Boolean, D>> partitioningBy(Predicate<? super T> predicate,
Collector<? super T, A, D> downstream) {
Predicate<A> finished = finished(downstream);
if (finished != null) {
BiConsumer<A, ? super T> accumulat... | public class class_name {
public static <T, D, A> Collector<T, ?, Map<Boolean, D>> partitioningBy(Predicate<? super T> predicate,
Collector<? super T, A, D> downstream) {
Predicate<A> finished = finished(downstream);
if (finished != null) {
BiConsumer<A, ? super T> accumulat... |
public class class_name {
@Override
public SourcePosition map( SourcePosition p ) throws IOException
{
SourcePosition result = null;
File generatedFile = p.getFile();
if ( generatedFile != null && generatedFile.isFile() )
{
String[] generatedFileLines = readFileAsSt... | public class class_name {
@Override
public SourcePosition map( SourcePosition p ) throws IOException
{
SourcePosition result = null;
File generatedFile = p.getFile();
if ( generatedFile != null && generatedFile.isFile() )
{
String[] generatedFileLines = readFileAsSt... |
public class class_name {
public int findRegion(int idx) {
for (int i = 0; i < populationSize; i++) {
if (subregionIdx[i][idx] == 1) {
return i;
}
}
return -1;
} } | public class class_name {
public int findRegion(int idx) {
for (int i = 0; i < populationSize; i++) {
if (subregionIdx[i][idx] == 1) {
return i; // depends on control dependency: [if], data = [none]
}
}
return -1;
} } |
public class class_name {
private void attachEvents(Action a, JSONObject in) throws JSONConverterException {
if (in.containsKey(HOOK_LABEL)) {
JSONObject hooks = (JSONObject) in.get(HOOK_LABEL);
for (Map.Entry<String, Object> e : hooks.entrySet()) {
String k = e.getKey()... | public class class_name {
private void attachEvents(Action a, JSONObject in) throws JSONConverterException {
if (in.containsKey(HOOK_LABEL)) {
JSONObject hooks = (JSONObject) in.get(HOOK_LABEL);
for (Map.Entry<String, Object> e : hooks.entrySet()) {
String k = e.getKey()... |
public class class_name {
public static String findEscapedSpaceWordCloseToEnd(String text) {
int index;
String originalText = text;
while ((index = text.lastIndexOf(SPACE)) > -1) {
if (index > 0 && text.charAt(index - 1) == BACK_SLASH) {
text = text.substring(0, inde... | public class class_name {
public static String findEscapedSpaceWordCloseToEnd(String text) {
int index;
String originalText = text;
while ((index = text.lastIndexOf(SPACE)) > -1) {
if (index > 0 && text.charAt(index - 1) == BACK_SLASH) {
text = text.substring(0, inde... |
public class class_name {
public static double[] getMinMax(IAtomContainer container) {
double maxX = -Double.MAX_VALUE;
double maxY = -Double.MAX_VALUE;
double minX = Double.MAX_VALUE;
double minY = Double.MAX_VALUE;
for (int i = 0; i < container.getAtomCount(); i++) {
... | public class class_name {
public static double[] getMinMax(IAtomContainer container) {
double maxX = -Double.MAX_VALUE;
double maxY = -Double.MAX_VALUE;
double minX = Double.MAX_VALUE;
double minY = Double.MAX_VALUE;
for (int i = 0; i < container.getAtomCount(); i++) {
... |
public class class_name {
public IAsyncFuture write(ByteBuffer[] bufs, long timeout,
boolean forceQueue, long bytesRequested, VirtualConnection vci,
boolean asyncIO) {
if (timeout < 0) {
throw new IllegalArgumentException();
}
... | public class class_name {
public IAsyncFuture write(ByteBuffer[] bufs, long timeout,
boolean forceQueue, long bytesRequested, VirtualConnection vci,
boolean asyncIO) {
if (timeout < 0) {
throw new IllegalArgumentException();
}
... |
public class class_name {
BusItineraryHalt addBusHalt(UUID id, String name, BusItineraryHaltType type, int insertToIndex) {
String haltName = name;
if (haltName == null || "".equals(haltName)) { //$NON-NLS-1$
haltName = BusItineraryHalt.getFirstFreeBushaltName(this);
assert haltName != null && !"".equals(hal... | public class class_name {
BusItineraryHalt addBusHalt(UUID id, String name, BusItineraryHaltType type, int insertToIndex) {
String haltName = name;
if (haltName == null || "".equals(haltName)) { //$NON-NLS-1$
haltName = BusItineraryHalt.getFirstFreeBushaltName(this); // depends on control dependency: [if], data... |
public class class_name {
public static String getPathForResource(final String resourcePath) {
URL path = ResourceUtil.class.getResource(resourcePath);
if (path == null) {
path = ResourceUtil.class.getResource("/");
File tmpFile = new File(path.getPath(), resourcePath);
... | public class class_name {
public static String getPathForResource(final String resourcePath) {
URL path = ResourceUtil.class.getResource(resourcePath);
if (path == null) {
path = ResourceUtil.class.getResource("/"); // depends on control dependency: [if], data = [none]
File tmpF... |
public class class_name {
public Observable<ServiceResponse<SyncAgentKeyPropertiesInner>> generateKeyWithServiceResponseAsync(String resourceGroupName, String serverName, String syncAgentName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is requ... | public class class_name {
public Observable<ServiceResponse<SyncAgentKeyPropertiesInner>> generateKeyWithServiceResponseAsync(String resourceGroupName, String serverName, String syncAgentName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is requ... |
public class class_name {
protected void addPackageInfo(PackageInfo packageInfo) {
if (packageInfo != null) {
packageInfoMap.put(packageInfo.getInternalPackageName(), packageInfo);
}
} } | public class class_name {
protected void addPackageInfo(PackageInfo packageInfo) {
if (packageInfo != null) {
packageInfoMap.put(packageInfo.getInternalPackageName(), packageInfo); // depends on control dependency: [if], data = [(packageInfo]
}
} } |
public class class_name {
protected boolean isLikelyAValidConstraintBound(JvmTypeReference constraintBound) {
if (constraintBound == null)
return true;
if (constraintBound instanceof JvmSpecializedTypeReference) {
JvmTypeReference equivalent = (JvmTypeReference) constraintBound.eGet(TypesPackage.Literals.JVM... | public class class_name {
protected boolean isLikelyAValidConstraintBound(JvmTypeReference constraintBound) {
if (constraintBound == null)
return true;
if (constraintBound instanceof JvmSpecializedTypeReference) {
JvmTypeReference equivalent = (JvmTypeReference) constraintBound.eGet(TypesPackage.Literals.JVM... |
public class class_name {
@SuppressWarnings("all")
protected static boolean writeArrayType(Output out, Object arrType) {
log.trace("writeArrayType");
if (arrType instanceof Collection) {
out.writeArray((Collection<Object>) arrType);
} else if (arrType instanceof Iterator) {
... | public class class_name {
@SuppressWarnings("all")
protected static boolean writeArrayType(Output out, Object arrType) {
log.trace("writeArrayType");
if (arrType instanceof Collection) {
out.writeArray((Collection<Object>) arrType); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(DeleteFacetRequest deleteFacetRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteFacetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(DeleteFacetRequest deleteFacetRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteFacetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public static void printDebug(final Properties pProperties, final PrintStream pPrintStream) {
if (pPrintStream == null) {
System.err.println(PRINTSTREAM_IS_NULL_ERROR_MESSAGE);
return;
}
if (pProperties == null) {
pPrintStream.println(PROPERTIES_IS_NULL_E... | public class class_name {
public static void printDebug(final Properties pProperties, final PrintStream pPrintStream) {
if (pPrintStream == null) {
System.err.println(PRINTSTREAM_IS_NULL_ERROR_MESSAGE);
// depends on control dependency: [if], data = [none]
return;
// depends on control dependency... |
public class class_name {
public boolean hasExtension(String elementName, String namespace) {
if (elementName == null) {
return hasExtension(namespace);
}
String key = XmppStringUtils.generateKey(elementName, namespace);
synchronized (packetExtensions) {
return p... | public class class_name {
public boolean hasExtension(String elementName, String namespace) {
if (elementName == null) {
return hasExtension(namespace); // depends on control dependency: [if], data = [none]
}
String key = XmppStringUtils.generateKey(elementName, namespace);
... |
public class class_name {
@Override
int guessPayloadLength() {
int length = 0;
byte[] payload = getDataFromPayload();
if (payload != null) {
length = payload.length + 24;
}
return length;
} } | public class class_name {
@Override
int guessPayloadLength() {
int length = 0;
byte[] payload = getDataFromPayload();
if (payload != null) {
length = payload.length + 24; // depends on control dependency: [if], data = [none]
}
return length;
} } |
public class class_name {
protected void updateBucketAndReturn(final String id, final RateLimiterBucket bucket,
final RateLimitResponse rlr, final long version, final String bucketId,
final RateBucketPeriod period, final long limit, final long increment,
final IAsyncResultHandler<Ra... | public class class_name {
protected void updateBucketAndReturn(final String id, final RateLimiterBucket bucket,
final RateLimitResponse rlr, final long version, final String bucketId,
final RateBucketPeriod period, final long limit, final long increment,
final IAsyncResultHandler<Ra... |
public class class_name {
public static void message(String message, Throwable e) {
if(message == null && e != null) {
message = e.getMessage();
}
logExpensive(Level.INFO, message, e);
} } | public class class_name {
public static void message(String message, Throwable e) {
if(message == null && e != null) {
message = e.getMessage(); // depends on control dependency: [if], data = [none]
}
logExpensive(Level.INFO, message, e);
} } |
public class class_name {
public static boolean isJsp21(ServletContext context)
{
//if running on GAE, treat like it is JSP 2.0
if(isRunningOnGoogleAppEngine(context))
{
return false;
}
try
{
// simply check if the class JspApplicati... | public class class_name {
public static boolean isJsp21(ServletContext context)
{
//if running on GAE, treat like it is JSP 2.0
if(isRunningOnGoogleAppEngine(context))
{
return false; // depends on control dependency: [if], data = [none]
}
try
{... |
public class class_name {
private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
if (n.min > c.min) {
n.min = c.min;
}
}
} } | public class class_name {
private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max; // depends on control dependency: [if], data = [none]
}
if (n.min > c.min) {
n.min = c.min; // depends on control dependency... |
public class class_name {
private void loadPartitioningIntoModel( final Model pModel )
{
String lSql = "" + //
" select table_name, " + //
" owner, " + //
" partitioning_type, " + //
" subpartitioning_type, " + //
... | public class class_name {
private void loadPartitioningIntoModel( final Model pModel )
{
String lSql = "" + //
" select table_name, " + //
" owner, " + //
" partitioning_type, " + //
" subpartitioning_type, " + //
... |
public class class_name {
public void marshall(Mpeg2Settings mpeg2Settings, ProtocolMarshaller protocolMarshaller) {
if (mpeg2Settings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(mpeg2Settings... | public class class_name {
public void marshall(Mpeg2Settings mpeg2Settings, ProtocolMarshaller protocolMarshaller) {
if (mpeg2Settings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(mpeg2Settings... |
public class class_name {
protected List<ManagedModule> createAndStartModules() {
final List<ManagedModule> managedModuleInstances = new ArrayList<>();
// create and start each managed module
for(final Class<? extends ManagedModule> module:managedModules) {
final ManagedModule mm =... | public class class_name {
protected List<ManagedModule> createAndStartModules() {
final List<ManagedModule> managedModuleInstances = new ArrayList<>();
// create and start each managed module
for(final Class<? extends ManagedModule> module:managedModules) {
final ManagedModule mm =... |
public class class_name {
public static <T, R> List<R> processList(Class<R> clazz, List<T> src, BiConsumer<R, T> biConsumer) {
if (!Lists.iterable(src)) {
log.warn("the src argument must be not null, return empty list. ");
return Lists.newArrayList();
}
return src.stream... | public class class_name {
public static <T, R> List<R> processList(Class<R> clazz, List<T> src, BiConsumer<R, T> biConsumer) {
if (!Lists.iterable(src)) {
log.warn("the src argument must be not null, return empty list. "); // depends on control dependency: [if], data = [none]
return Lis... |
public class class_name {
public int combine(TFDictionary dictionary, int limit, boolean add)
{
int preSize = trie.size();
for (Map.Entry<String, TermFrequency> entry : dictionary.trie.entrySet())
{
TermFrequency termFrequency = trie.get(entry.getKey());
if (termFreq... | public class class_name {
public int combine(TFDictionary dictionary, int limit, boolean add)
{
int preSize = trie.size();
for (Map.Entry<String, TermFrequency> entry : dictionary.trie.entrySet())
{
TermFrequency termFrequency = trie.get(entry.getKey());
if (termFreq... |
public class class_name {
private static String[] splitValueAndUnit(String encodedValueAndUnit) {
String[] result = new String[2];
int len = encodedValueAndUnit.length();
int firstLetterIndex = len;
while (firstLetterIndex > 0
&& Character.isLetter(encodedValueAndUnit.ch... | public class class_name {
private static String[] splitValueAndUnit(String encodedValueAndUnit) {
String[] result = new String[2];
int len = encodedValueAndUnit.length();
int firstLetterIndex = len;
while (firstLetterIndex > 0
&& Character.isLetter(encodedValueAndUnit.ch... |
public class class_name {
public int insertOutput(byte[] str, int strP, int strLen, byte[] strEncoding) {
byte[] insertEncoding = encodingToInsertOutput();
byte[] insertBuf = null;
started = true;
if (strLen == 0) return 0;
final byte[] insertStr;
final int i... | public class class_name {
public int insertOutput(byte[] str, int strP, int strLen, byte[] strEncoding) {
byte[] insertEncoding = encodingToInsertOutput();
byte[] insertBuf = null;
started = true;
if (strLen == 0) return 0;
final byte[] insertStr;
final int i... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T get(Class<T> clazz, Object... params) {
T obj = (T) pool.get(clazz);
if (null == obj) {
synchronized (Singleton.class) {
obj = (T) pool.get(clazz);
if (null == obj) {
obj = ReflectUtil.newInstance(clazz, params);... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T get(Class<T> clazz, Object... params) {
T obj = (T) pool.get(clazz);
if (null == obj) {
synchronized (Singleton.class) {
// depends on control dependency: [if], data = [none]
obj = (T) pool.get(clazz);
if (null == obj)... |
public class class_name {
@Override
protected Iterator<?> getJavaIterator(Context cx, Scriptable scope, Object obj) {
if (obj instanceof Wrapper) {
Object unwrapped = ((Wrapper) obj).unwrap();
Iterator<?> iterator = null;
if (unwrapped instanceof Iterator)
... | public class class_name {
@Override
protected Iterator<?> getJavaIterator(Context cx, Scriptable scope, Object obj) {
if (obj instanceof Wrapper) {
Object unwrapped = ((Wrapper) obj).unwrap();
Iterator<?> iterator = null;
if (unwrapped instanceof Iterator)
... |
public class class_name {
@Unit(NM)
public static double radius(Location... location)
{
Location center = center(location);
double max = 0;
for (Location loc : location)
{
Distance distance = distance(loc, center);
double miles = distance.getMiles... | public class class_name {
@Unit(NM)
public static double radius(Location... location)
{
Location center = center(location);
double max = 0;
for (Location loc : location)
{
Distance distance = distance(loc, center);
double miles = distance.getMiles... |
public class class_name {
private void handle(final RemotingContext ctx, final Object msg) {
try {
if (msg instanceof List) {
final Runnable handleTask = new Runnable() {
@Override
public void run() {
if (logger.isDebug... | public class class_name {
private void handle(final RemotingContext ctx, final Object msg) {
try {
if (msg instanceof List) {
final Runnable handleTask = new Runnable() {
@Override
public void run() {
if (logger.isDebug... |
public class class_name {
protected List<CmsResource> getTopFolders(List<CmsResource> folders) {
List<String> folderPaths = new ArrayList<String>();
List<CmsResource> topFolders = new ArrayList<CmsResource>();
Map<String, CmsResource> foldersByPath = new HashMap<String, CmsResource>();
... | public class class_name {
protected List<CmsResource> getTopFolders(List<CmsResource> folders) {
List<String> folderPaths = new ArrayList<String>();
List<CmsResource> topFolders = new ArrayList<CmsResource>();
Map<String, CmsResource> foldersByPath = new HashMap<String, CmsResource>();
... |
public class class_name {
public void accept(InteractionUnitVisitor visitor)
{
visitor.startVisit(this);
for (InteractionUnit child : children)
{
child.accept(visitor);
}
visitor.endVisit(this);
} } | public class class_name {
public void accept(InteractionUnitVisitor visitor)
{
visitor.startVisit(this);
for (InteractionUnit child : children)
{
child.accept(visitor); // depends on control dependency: [for], data = [child]
}
visitor.endVisit(this);
} } |
public class class_name {
private void generatePermutationsQueryVariables(
ArrayList<HashMap<String, String[]>> result, Set<String> keys,
HashMap<String, String[]> queryVariables) {
if (keys != null && !keys.isEmpty()) {
Set<String> newKeys = new HashSet<>();
Iterator<String> it = keys.iter... | public class class_name {
private void generatePermutationsQueryVariables(
ArrayList<HashMap<String, String[]>> result, Set<String> keys,
HashMap<String, String[]> queryVariables) {
if (keys != null && !keys.isEmpty()) {
Set<String> newKeys = new HashSet<>();
Iterator<String> it = keys.iter... |
public class class_name {
public void detachPaymentMethod(
@NonNull String paymentMethodId,
@Nullable PaymentMethodRetrievalListener listener) {
Map<String, Object> arguments = new HashMap<>();
arguments.put(KEY_PAYMENT_METHOD, paymentMethodId);
final String operationId... | public class class_name {
public void detachPaymentMethod(
@NonNull String paymentMethodId,
@Nullable PaymentMethodRetrievalListener listener) {
Map<String, Object> arguments = new HashMap<>();
arguments.put(KEY_PAYMENT_METHOD, paymentMethodId);
final String operationId... |
public class class_name {
public static Duration fromMillis(long milliseconds) {
Duration.Builder builder = builder();
if (milliseconds < 0) {
builder.prior(true);
milliseconds *= -1;
}
int seconds = (int) (milliseconds / 1000);
Integer weeks = seconds / (60 * 60 * 24 * 7);
if (weeks > 0) {
bui... | public class class_name {
public static Duration fromMillis(long milliseconds) {
Duration.Builder builder = builder();
if (milliseconds < 0) {
builder.prior(true); // depends on control dependency: [if], data = [none]
milliseconds *= -1; // depends on control dependency: [if], data = [none]
}
int secon... |
public class class_name {
private List<Group> getGroups() throws Exception {
List<Group> groups = new ArrayList<Group>();
List<Group> sourceGroups = PathOverrideService.getInstance().findAllGroups();
// loop through the groups
for (Group sourceGroup : sourceGroups) {
Group ... | public class class_name {
private List<Group> getGroups() throws Exception {
List<Group> groups = new ArrayList<Group>();
List<Group> sourceGroups = PathOverrideService.getInstance().findAllGroups();
// loop through the groups
for (Group sourceGroup : sourceGroups) {
Group ... |
public class class_name {
private boolean updateObjectSameShard(DBObject dbObj, Map<String, String> currScalarMap) {
boolean bUpdated = false;
checkForNewShard(dbObj);
checkNewlySharded(dbObj, currScalarMap);
for (String fieldName : dbObj.getUpdatedFieldNames()) {
Field... | public class class_name {
private boolean updateObjectSameShard(DBObject dbObj, Map<String, String> currScalarMap) {
boolean bUpdated = false;
checkForNewShard(dbObj);
checkNewlySharded(dbObj, currScalarMap);
for (String fieldName : dbObj.getUpdatedFieldNames()) {
Field... |
public class class_name {
public File partsFirstFile(final File home, final long max, final String filenameReg, final String contentTypeReg) throws IOException {
if (!isMultipart()) return null;
File tmpfile = null;
boolean has = false;
for (MultiPart part : parts()) {
... | public class class_name {
public File partsFirstFile(final File home, final long max, final String filenameReg, final String contentTypeReg) throws IOException {
if (!isMultipart()) return null;
File tmpfile = null;
boolean has = false;
for (MultiPart part : parts()) {
... |
public class class_name {
@Override
public CommerceShippingFixedOption remove(Serializable primaryKey)
throws NoSuchShippingFixedOptionException {
Session session = null;
try {
session = openSession();
CommerceShippingFixedOption commerceShippingFixedOption = (CommerceShippingFixedOption)session.get(Com... | public class class_name {
@Override
public CommerceShippingFixedOption remove(Serializable primaryKey)
throws NoSuchShippingFixedOptionException {
Session session = null;
try {
session = openSession();
CommerceShippingFixedOption commerceShippingFixedOption = (CommerceShippingFixedOption)session.get(Com... |
public class class_name {
public boolean removeSubscribeListener(SubscribeListener subscribeListener) {
boolean removed = subscribeListeners.remove(subscribeListener);
if (removed && subscribeListeners.isEmpty()) {
setSubscriptionMode(previousSubscriptionMode);
}
return remo... | public class class_name {
public boolean removeSubscribeListener(SubscribeListener subscribeListener) {
boolean removed = subscribeListeners.remove(subscribeListener);
if (removed && subscribeListeners.isEmpty()) {
setSubscriptionMode(previousSubscriptionMode); // depends on control depende... |
public class class_name {
public DoubleWritable getValueDoubleWritable(String label) {
HadoopObject o = getHadoopObject(VALUE, label, ObjectUtil.DOUBLE, "Double");
if (o == null) {
return null;
}
return (DoubleWritable) o.getObject();
} } | public class class_name {
public DoubleWritable getValueDoubleWritable(String label) {
HadoopObject o = getHadoopObject(VALUE, label, ObjectUtil.DOUBLE, "Double");
if (o == null) {
return null; // depends on control dependency: [if], data = [none]
}
return (DoubleWritable) o... |
public class class_name {
private void mergePackage( InternalKnowledgePackage pkg,
InternalKnowledgePackage newPkg ) {
// Merge imports
final Map<String, ImportDeclaration> imports = pkg.getImports();
imports.putAll(newPkg.getImports());
// Merge static i... | public class class_name {
private void mergePackage( InternalKnowledgePackage pkg,
InternalKnowledgePackage newPkg ) {
// Merge imports
final Map<String, ImportDeclaration> imports = pkg.getImports();
imports.putAll(newPkg.getImports());
// Merge static i... |
public class class_name {
public void setContent(java.util.Collection<java.util.Map<String, String>> content) {
if (content == null) {
this.content = null;
return;
}
this.content = new com.amazonaws.internal.SdkInternalList<java.util.Map<String, String>>(content);
}... | public class class_name {
public void setContent(java.util.Collection<java.util.Map<String, String>> content) {
if (content == null) {
this.content = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public double call(FunctionCall call, double arg) {
// set all the parameters
JexlContext context = new MapContext();
call.parameterNames().forEach(parameterName ->
context.set(parameterName, call.getParameter(parameterName).doubleValue()));
// set the argument value... | public class class_name {
@Override
public double call(FunctionCall call, double arg) {
// set all the parameters
JexlContext context = new MapContext();
call.parameterNames().forEach(parameterName ->
context.set(parameterName, call.getParameter(parameterName).doubleValue()));
// set the argument value... |
public class class_name {
@Override
public void onPause() {
super.onPause();
if(ProfileService.getInstance(getActivity().getApplicationContext()).isActive(this, Profile.NETWORK)
&& PermissionUtils.isGranted(this, Manifest.permission.ACCESS_NETWORK_STATE)) {
getActivity().unregisterReceiver(networkS... | public class class_name {
@Override
public void onPause() {
super.onPause();
if(ProfileService.getInstance(getActivity().getApplicationContext()).isActive(this, Profile.NETWORK)
&& PermissionUtils.isGranted(this, Manifest.permission.ACCESS_NETWORK_STATE)) {
getActivity().unregisterReceiver(networkS... |
public class class_name {
public void removeFromInUse(Object buffer) {
if (inUseTable != null) {
if (null == buffer) {
throw new NullPointerException();
}
inUseTable.remove(buffer);
}
} } | public class class_name {
public void removeFromInUse(Object buffer) {
if (inUseTable != null) {
if (null == buffer) {
throw new NullPointerException();
}
inUseTable.remove(buffer); // depends on control dependency: [if], data = [none]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.