code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void marshall(EbsBlockDeviceConfig ebsBlockDeviceConfig, ProtocolMarshaller protocolMarshaller) {
if (ebsBlockDeviceConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(EbsBlockDeviceConfig ebsBlockDeviceConfig, ProtocolMarshaller protocolMarshaller) {
if (ebsBlockDeviceConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
private Histogram getRefinedHistogram(SalesforceConnector connector, String entity, String watermarkColumn,
SourceState state, Partition partition, Histogram histogram) {
final int maxPartitions = state.getPropAsInt(ConfigurationKeys.SOURCE_MAX_NUMBER_OF_PARTITIONS,
Configur... | public class class_name {
private Histogram getRefinedHistogram(SalesforceConnector connector, String entity, String watermarkColumn,
SourceState state, Partition partition, Histogram histogram) {
final int maxPartitions = state.getPropAsInt(ConfigurationKeys.SOURCE_MAX_NUMBER_OF_PARTITIONS,
Configur... |
public class class_name {
private boolean isTileNotAvailable(Pathfindable mover, int ctx, int cty, Integer ignoreObjectId)
{
final Collection<Integer> ids = getObjectsId(ctx, cty);
final Tile tile = map.getTile(ctx, cty);
if (tile != null)
{
final TilePath tilePath = til... | public class class_name {
private boolean isTileNotAvailable(Pathfindable mover, int ctx, int cty, Integer ignoreObjectId)
{
final Collection<Integer> ids = getObjectsId(ctx, cty);
final Tile tile = map.getTile(ctx, cty);
if (tile != null)
{
final TilePath tilePath = til... |
public class class_name {
public static RiakClient newClient(InetSocketAddress... addresses) throws UnknownHostException
{
final List<String> remoteAddresses = new ArrayList<>(addresses.length);
for (InetSocketAddress addy : addresses)
{
remoteAddresses.add(
... | public class class_name {
public static RiakClient newClient(InetSocketAddress... addresses) throws UnknownHostException
{
final List<String> remoteAddresses = new ArrayList<>(addresses.length);
for (InetSocketAddress addy : addresses)
{
remoteAddresses.add(
... |
public class class_name {
static Query createWithNextPageQuery(String nextPageQuery) {
Query query = new Query();
query.nextPageQuery = nextPageQuery;
if(nextPageQuery != null) {
String nextPageParameters=nextPageQuery.substring(1, nextPageQuery.length());
... | public class class_name {
static Query createWithNextPageQuery(String nextPageQuery) {
Query query = new Query();
query.nextPageQuery = nextPageQuery;
if(nextPageQuery != null) {
String nextPageParameters=nextPageQuery.substring(1, nextPageQuery.length());
... |
public class class_name {
public static boolean renameTo(final Path self, URI newPathName) {
try {
Files.move(self, Paths.get(newPathName));
return true;
} catch (IOException e) {
return false;
}
} } | public class class_name {
public static boolean renameTo(final Path self, URI newPathName) {
try {
Files.move(self, Paths.get(newPathName)); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
} catch (IOExce... |
public class class_name {
public void loadTableLocal(byte []tableKey, Result<TableKraken> result)
{
if (tableKey == null) {
result.ok(null);
return;
}
TableKraken table = getTableByKeyImpl(tableKey);
if (table != null) {
result.ok(table);
return;
}
RowCursor cur... | public class class_name {
public void loadTableLocal(byte []tableKey, Result<TableKraken> result)
{
if (tableKey == null) {
result.ok(null); // depends on control dependency: [if], data = [null)]
return; // depends on control dependency: [if], data = [none]
}
TableKraken table = getTable... |
public class class_name {
private static Object initializeEmbedded(EmbeddedMetadata embeddedMetadata, Object target) {
try {
// If instantiation of Entity instantiated the embeddable, we will
// use the pre-initialized embedded object.
Object embeddedObject = embeddedMetadata.getReadMethod().invo... | public class class_name {
private static Object initializeEmbedded(EmbeddedMetadata embeddedMetadata, Object target) {
try {
// If instantiation of Entity instantiated the embeddable, we will
// use the pre-initialized embedded object.
Object embeddedObject = embeddedMetadata.getReadMethod().invo... |
public class class_name {
@SuppressWarnings("PrimitiveArrayArgumentToVariableArgMethod")
private void visualizeItem(@NonNull final Item item, @NonNull final ItemViewHolder viewHolder) {
viewHolder.iconImageView.setVisibility(iconCount > 0 ? View.VISIBLE : View.GONE);
viewHolder.iconImageView.setEna... | public class class_name {
@SuppressWarnings("PrimitiveArrayArgumentToVariableArgMethod")
private void visualizeItem(@NonNull final Item item, @NonNull final ItemViewHolder viewHolder) {
viewHolder.iconImageView.setVisibility(iconCount > 0 ? View.VISIBLE : View.GONE);
viewHolder.iconImageView.setEna... |
public class class_name {
public void logRequest(
@Nullable HttpRequest request, int statusCode, @Nullable String statusMessage) {
boolean isSuccess = HttpStatusCodes.isSuccess(statusCode);
if (!loggerDelegate.isSummaryLoggable(isSuccess)
&& !loggerDelegate.isDetailsLoggable(isSuccess)) {
r... | public class class_name {
public void logRequest(
@Nullable HttpRequest request, int statusCode, @Nullable String statusMessage) {
boolean isSuccess = HttpStatusCodes.isSuccess(statusCode);
if (!loggerDelegate.isSummaryLoggable(isSuccess)
&& !loggerDelegate.isDetailsLoggable(isSuccess)) {
r... |
public class class_name {
public void setFilePath(String filePath) {
this.filePath = filePath;
if (!this.filePath.endsWith(File.separator)) {
this.filePath += File.separator;
}
} } | public class class_name {
public void setFilePath(String filePath) {
this.filePath = filePath;
if (!this.filePath.endsWith(File.separator)) {
this.filePath += File.separator; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static Object readQueryString(String queryName,
Class<?> paramType,
Type genericType,
Annotation[] paramAnns,
Message... | public class class_name {
private static Object readQueryString(String queryName,
Class<?> paramType,
Type genericType,
Annotation[] paramAnns,
Message... |
public class class_name {
@Override
public EClass getIfcRelContainedInSpatialStructure() {
if (ifcRelContainedInSpatialStructureEClass == null) {
ifcRelContainedInSpatialStructureEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(542);
}
return ifc... | public class class_name {
@Override
public EClass getIfcRelContainedInSpatialStructure() {
if (ifcRelContainedInSpatialStructureEClass == null) {
ifcRelContainedInSpatialStructureEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(542);
// depends on con... |
public class class_name {
public ManagementGate getOutputGate(final int index) {
if (index < this.outputGates.size()) {
return this.outputGates.get(index);
}
return null;
} } | public class class_name {
public ManagementGate getOutputGate(final int index) {
if (index < this.outputGates.size()) {
return this.outputGates.get(index); // depends on control dependency: [if], data = [(index]
}
return null;
} } |
public class class_name {
public void setHeartBeatInterval(long heartBeatInterval) {
if (heartBeatInterval < 100)
return;
if(logger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
logger.logDebug("Setting HeartBeatInterval from " + this.heartBeatInterval + " to " + heartBeatInterval);
}
this.heartBeat... | public class class_name {
public void setHeartBeatInterval(long heartBeatInterval) {
if (heartBeatInterval < 100)
return;
if(logger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
logger.logDebug("Setting HeartBeatInterval from " + this.heartBeatInterval + " to " + heartBeatInterval); // depends on control d... |
public class class_name {
public static boolean haveVotersReachedPosition(
final ClusterMember[] clusterMembers, final long position, final long leadershipTermId)
{
for (final ClusterMember member : clusterMembers)
{
if (member.vote != null && (member.logPosition < position || m... | public class class_name {
public static boolean haveVotersReachedPosition(
final ClusterMember[] clusterMembers, final long position, final long leadershipTermId)
{
for (final ClusterMember member : clusterMembers)
{
if (member.vote != null && (member.logPosition < position || m... |
public class class_name {
protected int getResolutionIndex(double resolution) {
if (layer instanceof TileBasedLayer) {
return ((TileBasedLayer) layer).getTileConfiguration().getResolutionIndex(resolution);
}
return viewPort.getResolutionIndex(resolution);
} } | public class class_name {
protected int getResolutionIndex(double resolution) {
if (layer instanceof TileBasedLayer) {
return ((TileBasedLayer) layer).getTileConfiguration().getResolutionIndex(resolution); // depends on control dependency: [if], data = [none]
}
return viewPort.getResolutionIndex(resolution);
... |
public class class_name {
private static Map<String, String> dictionaryToMap( final Dictionary dictionary )
{
final Map<String, String> map = new HashMap<String, String>();
try
{
// first try a shortcut
if( dictionary instanceof Hashtable )
{
... | public class class_name {
private static Map<String, String> dictionaryToMap( final Dictionary dictionary )
{
final Map<String, String> map = new HashMap<String, String>();
try
{
// first try a shortcut
if( dictionary instanceof Hashtable )
{
... |
public class class_name {
@FFDCIgnore(IllegalStateException.class)
private void updateMonitorService() {
if ( !coveringPaths.isEmpty() ) {
if ( service == null ) {
try {
// If we are shutting down, we want to generate the exception quickly.
... | public class class_name {
@FFDCIgnore(IllegalStateException.class)
private void updateMonitorService() {
if ( !coveringPaths.isEmpty() ) {
if ( service == null ) {
try {
// If we are shutting down, we want to generate the exception quickly.
... |
public class class_name {
public List<PossibleState> bfs(int min) throws ModelException {
List<PossibleState> bootStrap = new LinkedList<>();
TransitionTarget initial = model.getInitialTarget();
PossibleState initialState = new PossibleState(initial, fillInitialVariables());
bootSt... | public class class_name {
public List<PossibleState> bfs(int min) throws ModelException {
List<PossibleState> bootStrap = new LinkedList<>();
TransitionTarget initial = model.getInitialTarget();
PossibleState initialState = new PossibleState(initial, fillInitialVariables());
bootSt... |
public class class_name {
public void rollback() throws SQLException {
cmdPrologue();
lock.lock();
try {
if (inTransaction()) {
executeQuery("ROLLBACK");
}
} catch (Exception e) {
/* eat exception */
} finally {
lock.unlock();
}
} } | public class class_name {
public void rollback() throws SQLException {
cmdPrologue();
lock.lock();
try {
if (inTransaction()) {
executeQuery("ROLLBACK"); // depends on control dependency: [if], data = [none]
}
} catch (Exception e) {
/* eat exception */
} finally {
... |
public class class_name {
public static void saveImage(Image image, File file, String imgFileFormat){
FileOutputStream fos = null;
try {
fos = new FileOutputStream(file);
saveImage(image, fos, imgFileFormat);
} catch (FileNotFoundException e) {
throw new ImageSaverException(e);
} finally {
closeQui... | public class class_name {
public static void saveImage(Image image, File file, String imgFileFormat){
FileOutputStream fos = null;
try {
fos = new FileOutputStream(file); // depends on control dependency: [try], data = [none]
saveImage(image, fos, imgFileFormat); // depends on control dependency: [try], data... |
public class class_name {
private <S extends StaticSlot, R extends StaticRef> StaticRef findBestDeclToAdd(
StaticSymbolTable<S, R> otherSymbolTable, S slot) {
StaticRef decl = slot.getDeclaration();
if (isGoodRefToAdd(decl)) {
return decl;
}
for (R ref : otherSymbolTable.getReferences(slot... | public class class_name {
private <S extends StaticSlot, R extends StaticRef> StaticRef findBestDeclToAdd(
StaticSymbolTable<S, R> otherSymbolTable, S slot) {
StaticRef decl = slot.getDeclaration();
if (isGoodRefToAdd(decl)) {
return decl; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public Result call(Route route, RequestContext context) throws Exception {
// Is CORS required?
String originHeader = context.request().getHeader(ORIGIN);
if (originHeader != null) {
originHeader = originHeader.toLowerCase();
}
// If not P... | public class class_name {
public Result call(Route route, RequestContext context) throws Exception {
// Is CORS required?
String originHeader = context.request().getHeader(ORIGIN);
if (originHeader != null) {
originHeader = originHeader.toLowerCase();
}
// If not P... |
public class class_name {
private String getScheduling(TaskType value)
{
String result = "fixed-work";
if (value != null && value == TaskType.FIXED_DURATION)
{
result = "fixed-duration";
}
return (result);
} } | public class class_name {
private String getScheduling(TaskType value)
{
String result = "fixed-work";
if (value != null && value == TaskType.FIXED_DURATION)
{
result = "fixed-duration"; // depends on control dependency: [if], data = [none]
}
return (result);
} } |
public class class_name {
public AnalyticModel getCalibratedModel(Set<ParameterObject> objectsToCalibrate) throws SolverException {
final ParameterAggregation<ParameterObject> parameterAggregate = new ParameterAggregation<>(objectsToCalibrate);
// Set solver parameters
final RandomVariable[] initialParameters;
... | public class class_name {
public AnalyticModel getCalibratedModel(Set<ParameterObject> objectsToCalibrate) throws SolverException {
final ParameterAggregation<ParameterObject> parameterAggregate = new ParameterAggregation<>(objectsToCalibrate);
// Set solver parameters
final RandomVariable[] initialParameters;
... |
public class class_name {
public PullResult pullFromRepository(Git git, String remote, String remoteBranch, String username, String password) {
try {
return git.pull()
.setRemote(remote)
.setRemoteBranchName(remoteBranch)
.setCredentialsProvider(new U... | public class class_name {
public PullResult pullFromRepository(Git git, String remote, String remoteBranch, String username, String password) {
try {
return git.pull()
.setRemote(remote)
.setRemoteBranchName(remoteBranch)
.setCredentialsProvider(new U... |
public class class_name {
private void addCacheControl(HttpAcceptSession session, File requestFile, String requestPath) {
CacheControlHandler cacheControlHandler = urlCacheControlMap.computeIfAbsent(requestPath,
path -> patterns.stream()
.filter(patternCacheControl -> Patt... | public class class_name {
private void addCacheControl(HttpAcceptSession session, File requestFile, String requestPath) {
CacheControlHandler cacheControlHandler = urlCacheControlMap.computeIfAbsent(requestPath,
path -> patterns.stream()
.filter(patternCacheControl -> Patt... |
public class class_name {
private void findLinesInRegion( List<LineSegment2D_F32> gridLines ) {
List<Edgel> list = edgels.copyIntoList(null);
int iterations = 0;
// exit if not enough points or max iterations exceeded
while( iterations++ < maxDetectLines) {
if( !robustMatcher.process(list) )
break;
... | public class class_name {
private void findLinesInRegion( List<LineSegment2D_F32> gridLines ) {
List<Edgel> list = edgels.copyIntoList(null);
int iterations = 0;
// exit if not enough points or max iterations exceeded
while( iterations++ < maxDetectLines) {
if( !robustMatcher.process(list) )
break;
... |
public class class_name {
@SuppressWarnings("unchecked")
public void addFieldMsg(String key, String value) {
if (key == null) {
return;
}
Map<String, String> fieldMsgs = null;
// 字段错误信息
if (!this.statusInfo.containsKey(WebResponseConstant.MESSAGE_FIELD)) {
... | public class class_name {
@SuppressWarnings("unchecked")
public void addFieldMsg(String key, String value) {
if (key == null) {
return; // depends on control dependency: [if], data = [none]
}
Map<String, String> fieldMsgs = null;
// 字段错误信息
if (!this.statusInfo.co... |
public class class_name {
private static Object evaluate(Object target, String expression) {
try {
if (target instanceof List) {
List<?> list = (List<?>) target;
int index = Integer.parseInt(expression);
if (index < 0) {
index +=... | public class class_name {
private static Object evaluate(Object target, String expression) {
try {
if (target instanceof List) {
List<?> list = (List<?>) target;
int index = Integer.parseInt(expression);
if (index < 0) {
index +=... |
public class class_name {
public void marshall(AdminLinkProviderForUserRequest adminLinkProviderForUserRequest, ProtocolMarshaller protocolMarshaller) {
if (adminLinkProviderForUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(AdminLinkProviderForUserRequest adminLinkProviderForUserRequest, ProtocolMarshaller protocolMarshaller) {
if (adminLinkProviderForUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public static void main (String[] args)
{
// set up a throttle for 5 ops per 10 seconds
Throttle throttle = new Throttle(5, 10000);
// try doing one operation per second and we should hit the throttle on the sixth operation
// and then kick in again on the... | public class class_name {
public static void main (String[] args)
{
// set up a throttle for 5 ops per 10 seconds
Throttle throttle = new Throttle(5, 10000);
// try doing one operation per second and we should hit the throttle on the sixth operation
// and then kick in again on the... |
public class class_name {
@Override
public EEnum getPrimitiveEnum() {
if (primitiveEnumEEnum == null) {
primitiveEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(66);
}
return primitiveEnumEEnum;
} } | public class class_name {
@Override
public EEnum getPrimitiveEnum() {
if (primitiveEnumEEnum == null) {
primitiveEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(66);
// depends on control dependency: [if], data = [none]
}
return primitiveEnumEEnum;
... |
public class class_name {
@Override
public void run() {
try {
Thread.sleep(WATCHER_INTERVAL);
} catch (InterruptedException e) {
LOG.error(Messages.get().container(Messages.ERR_UPLOAD_INTERRUPT_WATCH_DOG_1, m_listener.toString()), e);
}
if (m_listener != nul... | public class class_name {
@Override
public void run() {
try {
Thread.sleep(WATCHER_INTERVAL); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
LOG.error(Messages.get().container(Messages.ERR_UPLOAD_INTERRUPT_WATCH_DOG_1, m_listener.t... |
public class class_name {
protected static String getBits(int b) {
Formatter s = new Formatter();
for (int i = 31; i >= 0; i--) {
if ((b & (1 << i)) != 0) {
s.format("1");
} else {
s.format("0");
}
if (i % 8 == 0) {
s.format("|");
}
}
return s.toStr... | public class class_name {
protected static String getBits(int b) {
Formatter s = new Formatter();
for (int i = 31; i >= 0; i--) {
if ((b & (1 << i)) != 0) {
s.format("1"); // depends on control dependency: [if], data = [none]
} else {
s.format("0"); // depends on control dependency:... |
public class class_name {
private void definePackageForFindClass(final String name, final String packageName) {
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
@Override
public Object run() {
String path = name.replac... | public class class_name {
private void definePackageForFindClass(final String name, final String packageName) {
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
@Override
public Object run() {
String path = name.replac... |
public class class_name {
protected <T> boolean handleRWMapper(ProviderInfo<T> em, Class<?> expectedType, Message m,
Class<?> providerClass) {
Class<?> mapperClass = ClassHelper.getRealClass(bus, em.getOldProvider());
Type[] types = null;
if (m != null &... | public class class_name {
protected <T> boolean handleRWMapper(ProviderInfo<T> em, Class<?> expectedType, Message m,
Class<?> providerClass) {
Class<?> mapperClass = ClassHelper.getRealClass(bus, em.getOldProvider());
Type[] types = null;
if (m != null &... |
public class class_name {
public static CommerceDiscountUserSegmentRel toModel(
CommerceDiscountUserSegmentRelSoap soapModel) {
if (soapModel == null) {
return null;
}
CommerceDiscountUserSegmentRel model = new CommerceDiscountUserSegmentRelImpl();
model.setCommerceDiscountUserSegmentRelId(soapModel.get... | public class class_name {
public static CommerceDiscountUserSegmentRel toModel(
CommerceDiscountUserSegmentRelSoap soapModel) {
if (soapModel == null) {
return null; // depends on control dependency: [if], data = [none]
}
CommerceDiscountUserSegmentRel model = new CommerceDiscountUserSegmentRelImpl();
m... |
public class class_name {
protected <RESULT> Task.Monitor<RESULT> runTask(ExecutorService executorService,
final Task<RESULT> task, final Task.Callback<RESULT> callback) {
final Task.Monitor<RESULT> monitor = new Task.Monitor(task, uiThreadRunner, callback);
Future<V... | public class class_name {
protected <RESULT> Task.Monitor<RESULT> runTask(ExecutorService executorService,
final Task<RESULT> task, final Task.Callback<RESULT> callback) {
final Task.Monitor<RESULT> monitor = new Task.Monitor(task, uiThreadRunner, callback);
Future<V... |
public class class_name {
@Override
public final Iterable<SubmitterDocument> findAll(final String filename) {
final Query searchQuery =
new Query(Criteria.where("filename").is(filename));
final List<SubmitterDocumentMongo> submitterDocumentsMongo =
mongoTemplate.find... | public class class_name {
@Override
public final Iterable<SubmitterDocument> findAll(final String filename) {
final Query searchQuery =
new Query(Criteria.where("filename").is(filename));
final List<SubmitterDocumentMongo> submitterDocumentsMongo =
mongoTemplate.find... |
public class class_name {
void unregisterSessionIfNeeded(HttpSession session) {
if (session != null) {
try {
session.getCreationTime();
// https://issues.jenkins-ci.org/browse/JENKINS-20532
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=413019
session.getLastAccessedTime();
} catch (... | public class class_name {
void unregisterSessionIfNeeded(HttpSession session) {
if (session != null) {
try {
session.getCreationTime();
// depends on control dependency: [try], data = [none]
// https://issues.jenkins-ci.org/browse/JENKINS-20532
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=4... |
public class class_name {
@Override
public final LedgerDetail retrieveDetail(
final Map<String, Object> pAddParam, final Account pAccount,
final Date pDate1, final Date pDate2, final String pSubaccId,
final LedgerPrevious ledgerPrevious) throws Exception {
LedgerDetail result = new LedgerDetail... | public class class_name {
@Override
public final LedgerDetail retrieveDetail(
final Map<String, Object> pAddParam, final Account pAccount,
final Date pDate1, final Date pDate2, final String pSubaccId,
final LedgerPrevious ledgerPrevious) throws Exception {
LedgerDetail result = new LedgerDetail... |
public class class_name {
public static String toVerb(String string) {
if (string == null) {
return string;
}
if (string.length() == 1) {
return string.toLowerCase();
}
return string.substring(0, 1).toLowerCase() + string.substring(1, string.length());
} } | public class class_name {
public static String toVerb(String string) {
if (string == null) {
return string; // depends on control dependency: [if], data = [none]
}
if (string.length() == 1) {
return string.toLowerCase(); // depends on control dependency: [if], data = [none]
}
return string.substring(0,... |
public class class_name {
public int next(int ele) {
int idx, bit, val;
idx = ele >> SHIFT;
bit = ele & MASK;
val = data[idx] >>> bit;
do {
val >>>= 1;
bit++;
if (val == 0) {
idx++;
if (idx == data.length) {
... | public class class_name {
public int next(int ele) {
int idx, bit, val;
idx = ele >> SHIFT;
bit = ele & MASK;
val = data[idx] >>> bit;
do {
val >>>= 1;
bit++;
if (val == 0) {
idx++; // depends on control dependency: [if], dat... |
public class class_name {
public static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, Playlist playlist, boolean isUsingJava) {
if (target.equals(source))
return Optional.empty();
try {
StartMusicRequest request = new StartMusi... | public class class_name {
public static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, Playlist playlist, boolean isUsingJava) {
if (target.equals(source))
return Optional.empty();
try {
StartMusicRequest request = new StartMusi... |
public class class_name {
@Override
public void shutdown() {
// delay a little bit in case an added job is still taking it's time getting started right
// before shutdown is called.
try {
// System.out.println("waiting...");
Thread.sleep(100);
} catch (Exception ignore) {
}
... | public class class_name {
@Override
public void shutdown() {
// delay a little bit in case an added job is still taking it's time getting started right
// before shutdown is called.
try {
// System.out.println("waiting...");
Thread.sleep(100); // depends on control dependency: [try], da... |
public class class_name {
Set<PolicyNodeImpl> getPolicyNodesExpected(int depth,
String expectedOID, boolean matchAny) {
if (expectedOID.equals(ANY_POLICY)) {
return getPolicyNodes(depth);
} else {
return getPolicyNodesExpectedHelper(depth, expectedOID, matchAny);
... | public class class_name {
Set<PolicyNodeImpl> getPolicyNodesExpected(int depth,
String expectedOID, boolean matchAny) {
if (expectedOID.equals(ANY_POLICY)) {
return getPolicyNodes(depth); // depends on control dependency: [if], data = [none]
} else {
return getPolicyNod... |
public class class_name {
public final Parser<String> source() {
return new Parser<String>() {
@Override boolean apply(ParseContext ctxt) {
int begin = ctxt.getIndex();
if (!Parser.this.apply(ctxt)) {
return false;
}
ctxt.result = ctxt.source.subSequence(begin, ctxt.... | public class class_name {
public final Parser<String> source() {
return new Parser<String>() {
@Override boolean apply(ParseContext ctxt) {
int begin = ctxt.getIndex();
if (!Parser.this.apply(ctxt)) {
return false; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static String getRootPath(final String locationPattern) {
int rootDirEnd = locationPattern.length();
while (AntPathMatcher.isPattern(locationPattern.substring(0, rootDirEnd))) {
rootDirEnd = locationPattern.lastIndexOf('/', rootDirEnd - 2) + 1;
}
... | public class class_name {
private static String getRootPath(final String locationPattern) {
int rootDirEnd = locationPattern.length();
while (AntPathMatcher.isPattern(locationPattern.substring(0, rootDirEnd))) {
rootDirEnd = locationPattern.lastIndexOf('/', rootDirEnd - 2) + 1; // depends... |
public class class_name {
public void onStartServiceEvent(
javax.slee.serviceactivity.ServiceStartedEvent event,
ActivityContextInterface aci) {
try {
XDMClientChildSbbLocalObject child = (XDMClientChildSbbLocalObject) this
.getXDMClientChildSbbChildRelation().create(ChildRelationExt.DEFAULT_CHILD_NAM... | public class class_name {
public void onStartServiceEvent(
javax.slee.serviceactivity.ServiceStartedEvent event,
ActivityContextInterface aci) {
try {
XDMClientChildSbbLocalObject child = (XDMClientChildSbbLocalObject) this
.getXDMClientChildSbbChildRelation().create(ChildRelationExt.DEFAULT_CHILD_NAM... |
public class class_name {
void mapOut(String out, Object comp, String comp_out) {
if (comp == ca.getComponent()) {
throw new ComponentException("cannot connect 'Out' with itself for " + out);
}
ComponentAccess ac_dest = lookup(comp);
FieldAccess destAccess = (FieldAccess) ac... | public class class_name {
void mapOut(String out, Object comp, String comp_out) {
if (comp == ca.getComponent()) {
throw new ComponentException("cannot connect 'Out' with itself for " + out);
}
ComponentAccess ac_dest = lookup(comp);
FieldAccess destAccess = (FieldAccess) ac... |
public class class_name {
public void putAll (IntMap<V> t)
{
// if we can, avoid creating Integer objects while copying
for (IntEntry<V> entry : t.intEntrySet()) {
put(entry.getIntKey(), entry.getValue());
}
} } | public class class_name {
public void putAll (IntMap<V> t)
{
// if we can, avoid creating Integer objects while copying
for (IntEntry<V> entry : t.intEntrySet()) {
put(entry.getIntKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
@SuppressWarnings("unchecked")
@FFDCIgnore(Exception.class)
public static String[] parseStringArray(Object configAlias, String propertyKey, Object obj, String[] defaultValue) {
final String[] emptyArray = new String[0];
if (obj != null) {
try {
... | public class class_name {
@SuppressWarnings("unchecked")
@FFDCIgnore(Exception.class)
public static String[] parseStringArray(Object configAlias, String propertyKey, Object obj, String[] defaultValue) {
final String[] emptyArray = new String[0];
if (obj != null) {
try {
... |
public class class_name {
public static String buildFullName(Package aPackage, String simpleName) {
String fullName;
if (aPackage != null) {
fullName = aPackage.getId() + PACKAGE_SEPARATOR + simpleName;
} else {
fullName = simpleName;
}
return fullName;
} } | public class class_name {
public static String buildFullName(Package aPackage, String simpleName) {
String fullName;
if (aPackage != null) {
fullName = aPackage.getId() + PACKAGE_SEPARATOR + simpleName; // depends on control dependency: [if], data = [none]
} else {
fullName = simpleName; // dep... |
public class class_name {
public static Date toDate(String dateString) {
if (dateString == null) return null;
SimpleDateFormat dateFormat = new SimpleDateFormat();
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
for (String format: ALLOWED_DATE_FORMATS) {
dateFormat.app... | public class class_name {
public static Date toDate(String dateString) {
if (dateString == null) return null;
SimpleDateFormat dateFormat = new SimpleDateFormat();
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
for (String format: ALLOWED_DATE_FORMATS) {
dateFormat.app... |
public class class_name {
public OutlierResult run(Relation<O> relation) {
DistanceQuery<O> dq = relation.getDistanceQuery(getDistanceFunction());
final double logPerp = FastMath.log(perplexity);
ModifiableDoubleDBIDList dlist = DBIDUtil.newDistanceDBIDList(relation.size() - 1);
DoubleDBIDListMIter di... | public class class_name {
public OutlierResult run(Relation<O> relation) {
DistanceQuery<O> dq = relation.getDistanceQuery(getDistanceFunction());
final double logPerp = FastMath.log(perplexity);
ModifiableDoubleDBIDList dlist = DBIDUtil.newDistanceDBIDList(relation.size() - 1);
DoubleDBIDListMIter di... |
public class class_name {
public static String readResource(String path) {
final long start = System.nanoTime();
try (InputStream is = UScale.class.getClassLoader().getResourceAsStream(path);) {
int len = 0;
byte[] buffer = new byte[2048];
ByteArrayOutputStream baos ... | public class class_name {
public static String readResource(String path) {
final long start = System.nanoTime();
try (InputStream is = UScale.class.getClassLoader().getResourceAsStream(path);) {
int len = 0;
byte[] buffer = new byte[2048];
ByteArrayOutputStream baos ... |
public class class_name {
public List<String> getMessages() {
if (mMessages == null || mMessages.size() == 0) {
mMessages = Collections.singletonList(super.getMessage());
}
return mMessages;
} } | public class class_name {
public List<String> getMessages() {
if (mMessages == null || mMessages.size() == 0) {
mMessages = Collections.singletonList(super.getMessage());
// depends on control dependency: [if], data = [none]
}
return mMessages;
} } |
public class class_name {
@Override
public AliasType get(String key) {
key = key.toUpperCase();
AliasType type = super.get(key);
if (type == null) {
register(type = new AliasType(key));
}
return type;
} } | public class class_name {
@Override
public AliasType get(String key) {
key = key.toUpperCase();
AliasType type = super.get(key);
if (type == null) {
register(type = new AliasType(key)); // depends on control dependency: [if], data = [(type]
}
return type;
}... |
public class class_name {
public void marshall(BatchGetObjectAttributes batchGetObjectAttributes, ProtocolMarshaller protocolMarshaller) {
if (batchGetObjectAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(BatchGetObjectAttributes batchGetObjectAttributes, ProtocolMarshaller protocolMarshaller) {
if (batchGetObjectAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public Observable<ServiceResponse<SourceRepositoryPropertiesInner>> listSourceRepositoryPropertiesWithServiceResponseAsync(String resourceGroupName, String registryName, String buildTaskName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException(... | public class class_name {
public Observable<ServiceResponse<SourceRepositoryPropertiesInner>> listSourceRepositoryPropertiesWithServiceResponseAsync(String resourceGroupName, String registryName, String buildTaskName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException(... |
public class class_name {
@Deprecated
public static Long getLastModifiedTime(String resourceFile, Class clazz) {
Assert.notNullOrEmptyTrimmed(resourceFile, "Missing resource file!");
try {
URL url = clazz.getResource(resourceFile);
return url.openConnection().getLastModified(); // get last modified date ... | public class class_name {
@Deprecated
public static Long getLastModifiedTime(String resourceFile, Class clazz) {
Assert.notNullOrEmptyTrimmed(resourceFile, "Missing resource file!");
try {
URL url = clazz.getResource(resourceFile);
return url.openConnection().getLastModified(); // get last modified date ... |
public class class_name {
public static boolean isRegisteredOnServer(Context context) {
final SharedPreferences prefs = getGCMPreferences(context);
boolean isRegistered = prefs.getBoolean(PROPERTY_ON_SERVER, false);
Log.v(TAG, "Is registered on server: " + isRegistered);
if (isRegistere... | public class class_name {
public static boolean isRegisteredOnServer(Context context) {
final SharedPreferences prefs = getGCMPreferences(context);
boolean isRegistered = prefs.getBoolean(PROPERTY_ON_SERVER, false);
Log.v(TAG, "Is registered on server: " + isRegistered);
if (isRegistere... |
public class class_name {
public Filters withKeyUsage(KeyUsageName... keyUsage) {
java.util.ArrayList<String> keyUsageCopy = new java.util.ArrayList<String>(keyUsage.length);
for (KeyUsageName value : keyUsage) {
keyUsageCopy.add(value.toString());
}
if (getKeyUsage() == nul... | public class class_name {
public Filters withKeyUsage(KeyUsageName... keyUsage) {
java.util.ArrayList<String> keyUsageCopy = new java.util.ArrayList<String>(keyUsage.length);
for (KeyUsageName value : keyUsage) {
keyUsageCopy.add(value.toString()); // depends on control dependency: [for], d... |
public class class_name {
public void write_attribute(final DeviceProxy deviceProxy,
final DeviceAttribute[] deviceAttributes) throws DevFailed {
checkIfTango(deviceProxy, "write_attribute");
build_connection(deviceProxy);
//
// Manage Access control
//
if (deviceProxy.acce... | public class class_name {
public void write_attribute(final DeviceProxy deviceProxy,
final DeviceAttribute[] deviceAttributes) throws DevFailed {
checkIfTango(deviceProxy, "write_attribute");
build_connection(deviceProxy);
//
// Manage Access control
//
if (deviceProxy.acce... |
public class class_name {
final public void decrement(long time, long value) {
if (!enabled)
return;
lastSampleTime = time;
if (!sync) {
count -= value;
} else {
synchronized (this) {
count -= value;
}
}
} } | public class class_name {
final public void decrement(long time, long value) {
if (!enabled)
return;
lastSampleTime = time;
if (!sync) {
count -= value; // depends on control dependency: [if], data = [none]
} else {
synchronized (this) { // depends o... |
public class class_name {
public String toXmlString()
{
final StringBuilder buffer = new StringBuilder();
buffer.append("<");
buffer.append(getName());
Optional<String> attr = TagExtensions.attributesToString(getAttributes());
if (attr.isPresent())
{
buffer.append(attr.get());
}
if (isEndTag())
{... | public class class_name {
public String toXmlString()
{
final StringBuilder buffer = new StringBuilder();
buffer.append("<");
buffer.append(getName());
Optional<String> attr = TagExtensions.attributesToString(getAttributes());
if (attr.isPresent())
{
buffer.append(attr.get()); // depends on control dep... |
public class class_name {
public void release() {
if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
// Android is unusual in that it uses a reference-counted EGLDisplay. So for
// every eglInitialize() we need an eglTerminate().
EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFA... | public class class_name {
public void release() {
if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
// Android is unusual in that it uses a reference-counted EGLDisplay. So for
// every eglInitialize() we need an eglTerminate().
EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFA... |
public class class_name {
@Override
public CmsParameterConfiguration getConfiguration() {
CmsParameterConfiguration result = new CmsParameterConfiguration();
CmsParameterConfiguration config = super.getConfiguration();
if (config != null) {
result.putAll(config);
}
... | public class class_name {
@Override
public CmsParameterConfiguration getConfiguration() {
CmsParameterConfiguration result = new CmsParameterConfiguration();
CmsParameterConfiguration config = super.getConfiguration();
if (config != null) {
result.putAll(config); // depends on ... |
public class class_name {
public synchronized static PmiModuleConfig getConfigFromXMLFile(String xmlFilePath, boolean bFromCache, boolean bValidate) {
//System.out.println ("[PerfModules] getConfigFromXMLFile(): " +xmlFilePath);
PmiModuleConfig config = null;
// if xmlFilePath = /com/ibm/websph... | public class class_name {
public synchronized static PmiModuleConfig getConfigFromXMLFile(String xmlFilePath, boolean bFromCache, boolean bValidate) {
//System.out.println ("[PerfModules] getConfigFromXMLFile(): " +xmlFilePath);
PmiModuleConfig config = null;
// if xmlFilePath = /com/ibm/websph... |
public class class_name {
private Object handleAssociation(final Object entity, final Map<String, Object> relationsMap,
final EntityMetadata m, final PersistenceDelegator pd, boolean lazilyloaded,
Map<Object, Object> relationStack)
{
for (Relation relation : m.getRelations())
... | public class class_name {
private Object handleAssociation(final Object entity, final Map<String, Object> relationsMap,
final EntityMetadata m, final PersistenceDelegator pd, boolean lazilyloaded,
Map<Object, Object> relationStack)
{
for (Relation relation : m.getRelations())
... |
public class class_name {
public Resource getCachedResource(URL url, long maxCacheMS,
boolean bUseOlder) throws LiveDocumentNotAvailableException,
LiveWebCacheUnavailableException, LiveWebTimeoutException, IOException {
String urlString = url.toExternalForm();
if (requestPrefix != null) {
urlStri... | public class class_name {
public Resource getCachedResource(URL url, long maxCacheMS,
boolean bUseOlder) throws LiveDocumentNotAvailableException,
LiveWebCacheUnavailableException, LiveWebTimeoutException, IOException {
String urlString = url.toExternalForm();
if (requestPrefix != null) {
urlStri... |
public class class_name {
public ClassDoc[] innerClasses(boolean filter) {
ListBuffer<ClassDocImpl> innerClasses = new ListBuffer<>();
for (Symbol sym : tsym.members().getSymbols(NON_RECURSIVE)) {
if (sym != null && sym.kind == TYP) {
ClassSymbol s = (ClassSymbol)sym;
... | public class class_name {
public ClassDoc[] innerClasses(boolean filter) {
ListBuffer<ClassDocImpl> innerClasses = new ListBuffer<>();
for (Symbol sym : tsym.members().getSymbols(NON_RECURSIVE)) {
if (sym != null && sym.kind == TYP) {
ClassSymbol s = (ClassSymbol)sym;
... |
public class class_name {
public static void loadJar(URLClassLoader loader, File jarFile) throws UtilException {
try {
final Method method = ClassUtil.getDeclaredMethod(URLClassLoader.class, "addURL", URL.class);
if (null != method) {
method.setAccessible(true);
final List<File> jars = loopJar(jar... | public class class_name {
public static void loadJar(URLClassLoader loader, File jarFile) throws UtilException {
try {
final Method method = ClassUtil.getDeclaredMethod(URLClassLoader.class, "addURL", URL.class);
if (null != method) {
method.setAccessible(true);
final List<File> jars = loopJar(jar... |
public class class_name {
public ScreenComponent setupIconView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, boolean bIncludeBlankOption)
{
ScreenComponent screenField = null;
Record record = this.makeReferenceRecord();
// Set up the listene... | public class class_name {
public ScreenComponent setupIconView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, boolean bIncludeBlankOption)
{
ScreenComponent screenField = null;
Record record = this.makeReferenceRecord();
// Set up the listene... |
public class class_name {
public List<WebElement> findElements() {
if (cachedElementList != null && shouldCache) {
return cachedElementList;
}
List<WebElement> result;
try {
result = waitFor(() -> {
List<WebElement> list = searchContext
... | public class class_name {
public List<WebElement> findElements() {
if (cachedElementList != null && shouldCache) {
return cachedElementList; // depends on control dependency: [if], data = [none]
}
List<WebElement> result;
try {
result = waitFor(() -> {
... |
public class class_name {
boolean isDir(String src) {
byte[][] components = INodeDirectory.getPathComponents(normalizePath(src));
readLock();
try {
INode node = rootDir.getNode(components);
return isDir(node);
} finally {
readUnlock();
}
} } | public class class_name {
boolean isDir(String src) {
byte[][] components = INodeDirectory.getPathComponents(normalizePath(src));
readLock();
try {
INode node = rootDir.getNode(components);
return isDir(node); // depends on control dependency: [try], data = [none]
} finally {
readUnlo... |
public class class_name {
private static LossInfo doReduce(SameDiff sd, String outputName, boolean isMean, LossInfo.Builder b, Reduction reduction,
SDVariable preReduceLoss, SDVariable label, SDVariable weights, int[] dimensions){
switch (reduction){
case NONE:
... | public class class_name {
private static LossInfo doReduce(SameDiff sd, String outputName, boolean isMean, LossInfo.Builder b, Reduction reduction,
SDVariable preReduceLoss, SDVariable label, SDVariable weights, int[] dimensions){
switch (reduction){
case NONE:
... |
public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
if (instance == null) {
// null instance is silently ignored since container ensure not null instance argument
return;
}
for (Field dependency : managedClass.getDependencies()) {
... | public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
if (instance == null) {
// null instance is silently ignored since container ensure not null instance argument
return;
// depends on control dependency: [if], data = [none]
}
for (Fie... |
public class class_name {
public Object getValue(Object object) throws IllegalAccessException, InvocationTargetException {
Object result = null;
if (getter != null) {
result = getter.invoke(object);
} else if (field != null) {
if(!field.isAccessible()){
f... | public class class_name {
public Object getValue(Object object) throws IllegalAccessException, InvocationTargetException {
Object result = null;
if (getter != null) {
result = getter.invoke(object);
} else if (field != null) {
if(!field.isAccessible()){
f... |
public class class_name {
protected T readObjectFromString(final String jsonString) {
try {
LOGGER.trace("Attempting to consume [{}]", jsonString);
return this.objectMapper.readValue(jsonString, getTypeToSerialize());
} catch (final Exception e) {
LOGGER.error("Canno... | public class class_name {
protected T readObjectFromString(final String jsonString) {
try {
LOGGER.trace("Attempting to consume [{}]", jsonString);
return this.objectMapper.readValue(jsonString, getTypeToSerialize()); // depends on control dependency: [try], data = [none]
} catc... |
public class class_name {
private void initLogThreshold(Long threshold) {
this.logThreshold = threshold;
final LogTemplate<Split> toLogger = toSLF4J(getClass().getName(), "debug");
if (threshold == null) {
callTreeLogTemplate = toLogger;
} else {
callTreeLogTemplate = whenSplitLongerThanMillisecond... | public class class_name {
private void initLogThreshold(Long threshold) {
this.logThreshold = threshold;
final LogTemplate<Split> toLogger = toSLF4J(getClass().getName(), "debug");
if (threshold == null) {
callTreeLogTemplate = toLogger;
// depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
@SuppressWarnings("unchecked")
public T tags(final Collection<String> tags) {
if (this.tags == null) {
this.tags = new HashSet<>();
}
this.tags.addAll(tags);
return (T) this;
} } | public class class_name {
@SuppressWarnings("unchecked")
public T tags(final Collection<String> tags) {
if (this.tags == null) {
this.tags = new HashSet<>(); // depends on control dependency: [if], data = [none]
}
this.tags.addAll(tags);
return (T) this;
} } |
public class class_name {
private long getWaitTimeMs(TestContext context) {
if (StringUtils.hasText(seconds)) {
return Long.valueOf(context.replaceDynamicContentInString(seconds)) * 1000;
} else {
return Long.valueOf(context.replaceDynamicContentInString(milliseconds));
... | public class class_name {
private long getWaitTimeMs(TestContext context) {
if (StringUtils.hasText(seconds)) {
return Long.valueOf(context.replaceDynamicContentInString(seconds)) * 1000; // depends on control dependency: [if], data = [none]
} else {
return Long.valueOf(context.... |
public class class_name {
public String determineUsername() {
if (StringUtils.hasText(this.username)) {
return this.username;
}
if (EmbeddedDatabaseConnection.isEmbedded(determineDriverClassName())) {
return "sa";
}
return null;
} } | public class class_name {
public String determineUsername() {
if (StringUtils.hasText(this.username)) {
return this.username; // depends on control dependency: [if], data = [none]
}
if (EmbeddedDatabaseConnection.isEmbedded(determineDriverClassName())) {
return "sa"; // depends on control dependency: [if],... |
public class class_name {
public void setStateIcon(StateIcon icon) {
if (m_stateIcon == null) {
m_stateIcon = new HTML();
m_stateIcon.addClickHandler(m_iconSuperClickHandler);
m_contentPanel.add(m_stateIcon);
}
String iconTitle = null;
I_CmsListItem... | public class class_name {
public void setStateIcon(StateIcon icon) {
if (m_stateIcon == null) {
m_stateIcon = new HTML(); // depends on control dependency: [if], data = [none]
m_stateIcon.addClickHandler(m_iconSuperClickHandler); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected static Boolean compare( // was BooleanValue
Object val0,
Object val1,
boolean lessThan,
boolean permissive)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"compare",
new Object[] { val0, val1, new B... | public class class_name {
protected static Boolean compare( // was BooleanValue
Object val0,
Object val1,
boolean lessThan,
boolean permissive)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"compare",
new Object[] { val0, val1, new B... |
public class class_name {
public AsyncTask<Params, Progress, Result> executeTask(Params... params) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
try {
return executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
} catch (Throwable t) {
... | public class class_name {
public AsyncTask<Params, Progress, Result> executeTask(Params... params) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
try {
return executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); // depends on control dependency: [try], data = ... |
public class class_name {
@Override
public StoreKey getStoreKey()
{
final StoreType type = getStoreType();
if ( type == null )
{
return null;
}
final String name = matcher.group( NAME_GRP );
if ( isEmpty( name ) )
{
return null;
... | public class class_name {
@Override
public StoreKey getStoreKey()
{
final StoreType type = getStoreType();
if ( type == null )
{
return null; // depends on control dependency: [if], data = [none]
}
final String name = matcher.group( NAME_GRP );
if (... |
public class class_name {
@Override
public InputStream openResourceStream(String className, String resourceName)
throws ClassSource_Exception {
String methodName = "openResourceStream";
if (!isProviderResource(resourceName)) {
if (tc.isDebugEnabled()) {
... | public class class_name {
@Override
public InputStream openResourceStream(String className, String resourceName)
throws ClassSource_Exception {
String methodName = "openResourceStream";
if (!isProviderResource(resourceName)) {
if (tc.isDebugEnabled()) {
... |
public class class_name {
@DELETE
public Response deleteContent(@PathParam("spaceID") String spaceID,
@PathParam("contentID") String contentID,
@QueryParam("storeID") String storeID) {
StringBuilder msg = new StringBuilder("deleting conten... | public class class_name {
@DELETE
public Response deleteContent(@PathParam("spaceID") String spaceID,
@PathParam("contentID") String contentID,
@QueryParam("storeID") String storeID) {
StringBuilder msg = new StringBuilder("deleting conten... |
public class class_name {
private boolean upgrade(final ChannelHandlerContext ctx, final FullHttpRequest request) {
// Select the best protocol based on those requested in the UPGRADE header.
final List<CharSequence> requestedProtocols = splitHeader(request.headers().get(HttpHeaderNames.UPGRADE));
... | public class class_name {
private boolean upgrade(final ChannelHandlerContext ctx, final FullHttpRequest request) {
// Select the best protocol based on those requested in the UPGRADE header.
final List<CharSequence> requestedProtocols = splitHeader(request.headers().get(HttpHeaderNames.UPGRADE));
... |
public class class_name {
@VisibleForTesting
public static Optional<WhitelistBlacklist> getViewWhiteBackListFromWorkUnit(WorkUnitState workUnit) {
Optional<WhitelistBlacklist> optionalViewWhiteBlacklist = Optional.absent();
if (workUnit == null) {
return optionalViewWhiteBlacklist;
}
if (workU... | public class class_name {
@VisibleForTesting
public static Optional<WhitelistBlacklist> getViewWhiteBackListFromWorkUnit(WorkUnitState workUnit) {
Optional<WhitelistBlacklist> optionalViewWhiteBlacklist = Optional.absent();
if (workUnit == null) {
return optionalViewWhiteBlacklist; // depends on contr... |
public class class_name {
public static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode) {
Fetch fetch;
if (isReferenceType(attr)) {
fetch = new Fetch();
EntityType refEntityType = attr.getRefEntity();
String idAttrName = refEntityType.getIdAttribute().getName();
f... | public class class_name {
public static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode) {
Fetch fetch;
if (isReferenceType(attr)) {
fetch = new Fetch(); // depends on control dependency: [if], data = [none]
EntityType refEntityType = attr.getRefEntity();
String idAttrNa... |
public class class_name {
public static boolean intersects(Geometry one, Geometry two) {
if (one == null || two == null || isEmpty(one) || isEmpty(two)) {
return false;
}
if (Geometry.POINT.equals(one.getGeometryType())) {
return intersectsPoint(one, two);
} else if (Geometry.LINE_STRING.equals(one.getGe... | public class class_name {
public static boolean intersects(Geometry one, Geometry two) {
if (one == null || two == null || isEmpty(one) || isEmpty(two)) {
return false; // depends on control dependency: [if], data = [none]
}
if (Geometry.POINT.equals(one.getGeometryType())) {
return intersectsPoint(one, tw... |
public class class_name {
public final Map<Type, String> toStringParts() {
Map<Type, String> result = new LinkedHashMap<>(); // Preserve order for #toString().
result.put(Type.MCC, mcc != 0 ? "mcc" + mcc : "");
result.put(Type.MNC, mnc != 0 ? "mnc" + mnc : "");
result.put(Type.LANGUAGE_STRING, languag... | public class class_name {
public final Map<Type, String> toStringParts() {
Map<Type, String> result = new LinkedHashMap<>(); // Preserve order for #toString().
result.put(Type.MCC, mcc != 0 ? "mcc" + mcc : "");
result.put(Type.MNC, mnc != 0 ? "mnc" + mnc : "");
result.put(Type.LANGUAGE_STRING, languag... |
public class class_name {
public synchronized String format(long inDate)
{
long seconds = inDate / 1000;
// Is it not suitable to cache?
if (seconds<_lastSeconds ||
_lastSeconds>0 && seconds>_lastSeconds+__hitWindow)
{
// It's a cache miss
_misse... | public class class_name {
public synchronized String format(long inDate)
{
long seconds = inDate / 1000;
// Is it not suitable to cache?
if (seconds<_lastSeconds ||
_lastSeconds>0 && seconds>_lastSeconds+__hitWindow)
{
// It's a cache miss
_misse... |
public class class_name {
private static Browser parseBrowser(String userAgentString) {
for (Browser brower : Browser.browers) {
if (brower.isMatch(userAgentString)) {
return brower;
}
}
return Browser.Unknown;
} } | public class class_name {
private static Browser parseBrowser(String userAgentString) {
for (Browser brower : Browser.browers) {
if (brower.isMatch(userAgentString)) {
return brower;
// depends on control dependency: [if], data = [none]
}
}
return Browser.Unknown;
} } |
public class class_name {
public Collection getAllUploadFile(HttpServletRequest request) {
Collection uploadList = null;
try {
HttpSession session = request.getSession();
if (session != null) {
uploadList = (Collection) session.getAttribute(PIC_NAME_PACKAGE);
}
} catch (E... | public class class_name {
public Collection getAllUploadFile(HttpServletRequest request) {
Collection uploadList = null;
try {
HttpSession session = request.getSession();
if (session != null) {
uploadList = (Collection) session.getAttribute(PIC_NAME_PACKAGE);
// depends on control d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.