code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Map<String,Object> processParameters(
final FragmentSignature fragmentSignature,
final Map<String, Object> specifiedParameters, final boolean parametersAreSynthetic) {
Validate.notNull(fragmentSignature, "Fragment signature cannot be null");
... | public class class_name {
public static Map<String,Object> processParameters(
final FragmentSignature fragmentSignature,
final Map<String, Object> specifiedParameters, final boolean parametersAreSynthetic) {
Validate.notNull(fragmentSignature, "Fragment signature cannot be null");
... |
public class class_name {
@Override
public IndexTreePath<E> next() {
Iterator<IndexTreePath<E>> enumeration = queue.peek();
IndexTreePath<E> nextPath = enumeration.next();
Iterator<IndexTreePath<E>> children;
if(nextPath.getEntry() instanceof LeafEntry) {
children = EMPTY_ENUMERATION;
}
... | public class class_name {
@Override
public IndexTreePath<E> next() {
Iterator<IndexTreePath<E>> enumeration = queue.peek();
IndexTreePath<E> nextPath = enumeration.next();
Iterator<IndexTreePath<E>> children;
if(nextPath.getEntry() instanceof LeafEntry) {
children = EMPTY_ENUMERATION; // depen... |
public class class_name {
public Map<String, List<CmsJspContentAccessValueWrapper>> getValueList() {
if (m_valueList == null) {
m_valueList = CmsCollectionsGenericWrapper.createLazyMap(new CmsValueListTransformer());
}
return m_valueList;
} } | public class class_name {
public Map<String, List<CmsJspContentAccessValueWrapper>> getValueList() {
if (m_valueList == null) {
m_valueList = CmsCollectionsGenericWrapper.createLazyMap(new CmsValueListTransformer()); // depends on control dependency: [if], data = [none]
}
return m_... |
public class class_name {
private boolean parseJsonParams(Object[] params) throws Exception
{
boolean checkValidity = true;
if (params[0] == null) {
throw new Exception("@SnapshotSave JSON blob is null");
}
if (!(params[0] instanceof String)) {
throw new Exce... | public class class_name {
private boolean parseJsonParams(Object[] params) throws Exception
{
boolean checkValidity = true;
if (params[0] == null) {
throw new Exception("@SnapshotSave JSON blob is null");
}
if (!(params[0] instanceof String)) {
throw new Exce... |
public class class_name {
@Override
public EClass getIfcTimeSeries() {
if (ifcTimeSeriesEClass == null) {
ifcTimeSeriesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(723);
}
return ifcTimeSeriesEClass;
} } | public class class_name {
@Override
public EClass getIfcTimeSeries() {
if (ifcTimeSeriesEClass == null) {
ifcTimeSeriesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(723);
// depends on control dependency: [if], data = [none]
}
return ifcTimeSe... |
public class class_name {
public static Pair<String, List<Process>> setupZkTunnel(Config config,
NetworkUtils.TunnelConfig tunnelConfig) {
// Remove all spaces
String connectionString = Context.stateManagerConnectionString(config).replaceAll("\\s+", "")... | public class class_name {
public static Pair<String, List<Process>> setupZkTunnel(Config config,
NetworkUtils.TunnelConfig tunnelConfig) {
// Remove all spaces
String connectionString = Context.stateManagerConnectionString(config).replaceAll("\\s+", "")... |
public class class_name {
public byte[] malloc(int size)
{
byte[] retval = null;
// first check the parachute
JNIMemoryParachute.getParachute().packChute();
try
{
if (SHOULD_RETRY_FAILED_ALLOCS)
{
int allocationAttempts = 0;
int backoffTimeout = 10; // start at 10 mill... | public class class_name {
public byte[] malloc(int size)
{
byte[] retval = null;
// first check the parachute
JNIMemoryParachute.getParachute().packChute();
try
{
if (SHOULD_RETRY_FAILED_ALLOCS)
{
int allocationAttempts = 0;
int backoffTimeout = 10; // start at 10 mill... |
public class class_name {
public static String toStr(Number number) {
if (null == number) {
throw new NullPointerException("Number is null !");
}
if (false == ObjectUtil.isValidIfNumber(number)) {
throw new IllegalArgumentException("Number is non-finite!");
}
// 去掉小数点儿后多余的0
String string ... | public class class_name {
public static String toStr(Number number) {
if (null == number) {
throw new NullPointerException("Number is null !");
}
if (false == ObjectUtil.isValidIfNumber(number)) {
throw new IllegalArgumentException("Number is non-finite!");
}
// 去掉小数点儿后多余的0
String string ... |
public class class_name {
public Map<String, String> results(OutputVariable outputVariable, TimeUnit timeUnit, boolean includeTimes) {
if (engine == null) {
throw new RuntimeException("[benchmark error] engine not set for benchmark");
}
double[] runtimes = new double[times.size()];... | public class class_name {
public Map<String, String> results(OutputVariable outputVariable, TimeUnit timeUnit, boolean includeTimes) {
if (engine == null) {
throw new RuntimeException("[benchmark error] engine not set for benchmark");
}
double[] runtimes = new double[times.size()];... |
public class class_name {
private void fireSocketOpened(final String remoteInfo) {
synchronized (listenerList) {
for (Iterator iter = listenerList.iterator(); iter.hasNext();) {
SocketNodeEventListener snel =
(SocketNodeEventListener) iter.next();
if (snel != nul... | public class class_name {
private void fireSocketOpened(final String remoteInfo) {
synchronized (listenerList) {
for (Iterator iter = listenerList.iterator(); iter.hasNext();) {
SocketNodeEventListener snel =
(SocketNodeEventListener) iter.next();
if (snel != nul... |
public class class_name {
public GetTemplateSummaryResult withCapabilities(Capability... capabilities) {
com.amazonaws.internal.SdkInternalList<String> capabilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(capabilities.length);
for (Capability value : capabilities) {
capabil... | public class class_name {
public GetTemplateSummaryResult withCapabilities(Capability... capabilities) {
com.amazonaws.internal.SdkInternalList<String> capabilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(capabilities.length);
for (Capability value : capabilities) {
capabil... |
public class class_name {
public static String generatePartitionPath(LinkedHashMap<String, String> partitions) {
StringBuilder builder = new StringBuilder();
for(Map.Entry<String, String> pair: partitions.entrySet()) {
builder.append(String.format(PARTITION_PATH, pair.getKey(), pair.getValue()));
}
... | public class class_name {
public static String generatePartitionPath(LinkedHashMap<String, String> partitions) {
StringBuilder builder = new StringBuilder();
for(Map.Entry<String, String> pair: partitions.entrySet()) {
builder.append(String.format(PARTITION_PATH, pair.getKey(), pair.getValue())); // dep... |
public class class_name {
public static void uninstallModule(String moduleName) {
Module module = INSTALLED_MODULES.get(moduleName);
if (module != null) {
try {
module.uninstall();
INSTALLED_MODULES.remove(moduleName);
} catch (Exception e) {
... | public class class_name {
public static void uninstallModule(String moduleName) {
Module module = INSTALLED_MODULES.get(moduleName);
if (module != null) {
try {
module.uninstall(); // depends on control dependency: [try], data = [none]
INSTALLED_MODULES.remov... |
public class class_name {
void getLuma22Unsafe(byte[] pic, int picW, int imgH, byte[] blk, int blkOff, int blkStride, int x, int y,
int blkW, int blkH) {
getLuma20UnsafeNoRound(pic, picW, imgH, tmp1, 0, blkW, x, y - 2, blkW, blkH + 7);
getLuma02NoRoundInt(tmp1, blkW, tmp2, blkOff, blkStride... | public class class_name {
void getLuma22Unsafe(byte[] pic, int picW, int imgH, byte[] blk, int blkOff, int blkStride, int x, int y,
int blkW, int blkH) {
getLuma20UnsafeNoRound(pic, picW, imgH, tmp1, 0, blkW, x, y - 2, blkW, blkH + 7);
getLuma02NoRoundInt(tmp1, blkW, tmp2, blkOff, blkStride... |
public class class_name {
private void doRun() throws InterruptedException {
boolean migrating = false;
for (; ; ) {
if (!migrationManager.areMigrationTasksAllowed()) {
break;
}
MigrationRunnable runnable = queue.poll(1, TimeUnit.SECONDS);
... | public class class_name {
private void doRun() throws InterruptedException {
boolean migrating = false;
for (; ; ) {
if (!migrationManager.areMigrationTasksAllowed()) {
break;
}
MigrationRunnable runnable = queue.poll(1, TimeUnit.SECONDS);
... |
public class class_name {
private View configureHeader(WrapperView wv, final int position) {
View header = wv.mHeader == null ? popHeader() : wv.mHeader;
header = mDelegate.getHeaderView(position, header, wv);
if (header == null) {
throw new NullPointerException("Header view must not be null.");
}
//if th... | public class class_name {
private View configureHeader(WrapperView wv, final int position) {
View header = wv.mHeader == null ? popHeader() : wv.mHeader;
header = mDelegate.getHeaderView(position, header, wv);
if (header == null) {
throw new NullPointerException("Header view must not be null.");
}
//if th... |
public class class_name {
public void marshall(DescribeMetricFiltersRequest describeMetricFiltersRequest, ProtocolMarshaller protocolMarshaller) {
if (describeMetricFiltersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DescribeMetricFiltersRequest describeMetricFiltersRequest, ProtocolMarshaller protocolMarshaller) {
if (describeMetricFiltersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public BusinessRemoteWrapper getRemoteBusinessWrapper(WrapperId wrapperId)
{
int remoteIndex = wrapperId.ivInterfaceIndex;
BusinessRemoteWrapper wrapper = null;
String wrapperInterfaceName = "";
if (remoteIndex < ivBusinessRemote.length)
{
... | public class class_name {
public BusinessRemoteWrapper getRemoteBusinessWrapper(WrapperId wrapperId)
{
int remoteIndex = wrapperId.ivInterfaceIndex;
BusinessRemoteWrapper wrapper = null;
String wrapperInterfaceName = "";
if (remoteIndex < ivBusinessRemote.length)
{
... |
public class class_name {
public void marshall(StartContentModerationRequest startContentModerationRequest, ProtocolMarshaller protocolMarshaller) {
if (startContentModerationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(StartContentModerationRequest startContentModerationRequest, ProtocolMarshaller protocolMarshaller) {
if (startContentModerationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public Position add( Position position ) {
if (this.getIndexInContent() < 0) {
return position.getIndexInContent() < 0 ? EMPTY_CONTENT_POSITION : position;
}
if (position.getIndexInContent() < 0) {
return this;
}
int index = th... | public class class_name {
public Position add( Position position ) {
if (this.getIndexInContent() < 0) {
return position.getIndexInContent() < 0 ? EMPTY_CONTENT_POSITION : position; // depends on control dependency: [if], data = [none]
}
if (position.getIndexInContent() < 0) {
... |
public class class_name {
private static void loadConfig(String workingDirectory) {
String oldWorkingDirectory = System.getProperty(USER_DIR);
if (workingDirectory != null) {
System.setProperty(USER_DIR, workingDirectory);
}
try {
Config.loadConfig();
} f... | public class class_name {
private static void loadConfig(String workingDirectory) {
String oldWorkingDirectory = System.getProperty(USER_DIR);
if (workingDirectory != null) {
System.setProperty(USER_DIR, workingDirectory); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static long timeFromQualifier(final byte[] qualifier,
final long base_time) {
final long offset;
if (qualifier.length == 3) {
offset = Bytes.getUnsignedShort(qualifier, 1);
return (base_time + offset) * 1000;
} else {
offset = Bytes.getUnsignedInt(... | public class class_name {
private static long timeFromQualifier(final byte[] qualifier,
final long base_time) {
final long offset;
if (qualifier.length == 3) {
offset = Bytes.getUnsignedShort(qualifier, 1); // depends on control dependency: [if], data = [none]
return (base_time + offset) * 1... |
public class class_name {
public double score(DataSet data, boolean training) {
try{
return scoreHelper(data, training);
} catch (OutOfMemoryError e){
CrashReportingUtil.writeMemoryCrashDump(this, e);
throw e;
}
} } | public class class_name {
public double score(DataSet data, boolean training) {
try{
return scoreHelper(data, training); // depends on control dependency: [try], data = [none]
} catch (OutOfMemoryError e){
CrashReportingUtil.writeMemoryCrashDump(this, e);
throw e;
... |
public class class_name {
@Override
public boolean filter(Object entity) {
for (Filter filter : filters) {
if (filter.filter(entity)) {
return true;
}
}
return false;
} } | public class class_name {
@Override
public boolean filter(Object entity) {
for (Filter filter : filters) {
if (filter.filter(entity)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:50:55+02:00", comments = "JAXB RI v2.2.11")
public List<LandUndForstwirtschaft> getLandUndForstwirtschaft() {
if (landUndForstwirtschaft == null) {
landUndForstwirtschaft = new ArrayList<LandUndForstw... | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:50:55+02:00", comments = "JAXB RI v2.2.11")
public List<LandUndForstwirtschaft> getLandUndForstwirtschaft() {
if (landUndForstwirtschaft == null) {
landUndForstwirtschaft = new ArrayList<LandUndForstw... |
public class class_name {
public boolean writeFile(File file, List<String> lines){
if(file.exists()){
file.delete();
}
try {
FileWriter out = new FileWriter(file);
for(String s : lines){
out.write(s);
out.write(System.getProperty("line.separator"));
}
out.close();
file.setExe... | public class class_name {
public boolean writeFile(File file, List<String> lines){
if(file.exists()){
file.delete();
// depends on control dependency: [if], data = [none]
}
try {
FileWriter out = new FileWriter(file);
for(String s : lines){
out.write(s);
out.write(System.getProperty("lin... |
public class class_name {
public static void initEndpointDirectories(MuleContext muleContext, String[] serviceNames, String[] endpointNames) throws Exception {
// Stop all named services (either Flows or services
List<Lifecycle> services = new ArrayList<Lifecycle>();
for (String serviceName : serviceNames) {
... | public class class_name {
public static void initEndpointDirectories(MuleContext muleContext, String[] serviceNames, String[] endpointNames) throws Exception {
// Stop all named services (either Flows or services
List<Lifecycle> services = new ArrayList<Lifecycle>();
for (String serviceName : serviceNames) {
... |
public class class_name {
public void add(int var, Type t) {
Set<Integer> tVars = t.getTypeVariables();
Set<Integer> intersection = Sets.intersection(tVars, bindings.keySet());
Preconditions.checkArgument(intersection.size() == 0,
"Tried to replace %s with %s, but already have bindings for %s", var... | public class class_name {
public void add(int var, Type t) {
Set<Integer> tVars = t.getTypeVariables();
Set<Integer> intersection = Sets.intersection(tVars, bindings.keySet());
Preconditions.checkArgument(intersection.size() == 0,
"Tried to replace %s with %s, but already have bindings for %s", var... |
public class class_name {
public static String PUT(String path, String host, long length, boolean append) {
String newPath = null;
if (append) {
newPath = APPEND_URI + "/" + path;
} else {
newPath = "/" + path;
}
return HTTPProtocol.createPUTHeader(newPath, host, USER_AGENT,
TYPE, length, app... | public class class_name {
public static String PUT(String path, String host, long length, boolean append) {
String newPath = null;
if (append) {
newPath = APPEND_URI + "/" + path; // depends on control dependency: [if], data = [none]
} else {
newPath = "/" + path; // depends on control dependency: [if], ... |
public class class_name {
public void handlePending() {
if (this.throttleEngine) {
final TemplateFlowController controller = this.flowController;
if (controller.stopProcessing) {
controller.processorTemplateHandlerPending = true;
return;
}
... | public class class_name {
public void handlePending() {
if (this.throttleEngine) {
final TemplateFlowController controller = this.flowController;
if (controller.stopProcessing) {
controller.processorTemplateHandlerPending = true; // depends on control dependency: [if]... |
public class class_name {
public void setMimeType(MimeType mimeType) {
if (mimeType != null) {
getState().mimeType = mimeType.getMimeType();
} else {
getState().mimeType = null;
}
} } | public class class_name {
public void setMimeType(MimeType mimeType) {
if (mimeType != null) {
getState().mimeType = mimeType.getMimeType();
// depends on control dependency: [if], data = [none]
} else {
getState().mimeType = null;
// depends on control dependency: [if], da... |
public class class_name {
public CommandLine setAtFileCommentChar(Character atFileCommentChar) {
getCommandSpec().parser().atFileCommentChar(atFileCommentChar);
for (CommandLine command : getCommandSpec().subcommands().values()) {
command.setAtFileCommentChar(atFileCommentChar);
}
... | public class class_name {
public CommandLine setAtFileCommentChar(Character atFileCommentChar) {
getCommandSpec().parser().atFileCommentChar(atFileCommentChar);
for (CommandLine command : getCommandSpec().subcommands().values()) {
command.setAtFileCommentChar(atFileCommentChar); // depends ... |
public class class_name {
@Override
public MappedByteBuffer map(MapMode mode, long position, long size) throws IOException
{
ByteBuffer writeView;
if (MapMode.READ_WRITE == mode)
{
writeView = file.writeView(Casts.castInt(position), Casts.castInt(size));
}
... | public class class_name {
@Override
public MappedByteBuffer map(MapMode mode, long position, long size) throws IOException
{
ByteBuffer writeView;
if (MapMode.READ_WRITE == mode)
{
writeView = file.writeView(Casts.castInt(position), Casts.castInt(size));
}
... |
public class class_name {
public static PageFlowStack get( HttpServletRequest request, ServletContext servletContext, boolean createIfNotExist )
{
StorageHandler sh = Handlers.get( servletContext ).getStorageHandler();
HttpServletRequest unwrappedRequest = PageFlowUtils.unwrapMultipart( request );
... | public class class_name {
public static PageFlowStack get( HttpServletRequest request, ServletContext servletContext, boolean createIfNotExist )
{
StorageHandler sh = Handlers.get( servletContext ).getStorageHandler();
HttpServletRequest unwrappedRequest = PageFlowUtils.unwrapMultipart( request );
... |
public class class_name {
public static String getVersion()
{
String rev = getBuildRevision();
Date date = getBuildDate();
StringBuilder result = new StringBuilder();
result.append(getReleaseName());
if (!"".equals(rev) || date != null)
{
result.append(" (");
boolean added = fal... | public class class_name {
public static String getVersion()
{
String rev = getBuildRevision();
Date date = getBuildDate();
StringBuilder result = new StringBuilder();
result.append(getReleaseName());
if (!"".equals(rev) || date != null)
{
result.append(" ("); // depends on control depe... |
public class class_name {
public void addTranslation(double[] v) {
assert (v.length == dim);
// reset inverse transformation - needs recomputation.
inv = null;
double[][] homTrans = unitMatrix(dim + 1);
for(int i = 0; i < dim; i++) {
homTrans[i][dim] = v[i];
}
trans = times(homTrans... | public class class_name {
public void addTranslation(double[] v) {
assert (v.length == dim);
// reset inverse transformation - needs recomputation.
inv = null;
double[][] homTrans = unitMatrix(dim + 1);
for(int i = 0; i < dim; i++) {
homTrans[i][dim] = v[i]; // depends on control dependency... |
public class class_name {
private static String getCommaSeparatedStringForPathMapping(Collection<PathMapping> coll) {
StringBuilder buffer = new StringBuilder();
for (Iterator<PathMapping> eltIterator = coll.iterator(); eltIterator.hasNext();) {
PathMapping mapping = eltIterator.next();
buffer.append(mappin... | public class class_name {
private static String getCommaSeparatedStringForPathMapping(Collection<PathMapping> coll) {
StringBuilder buffer = new StringBuilder();
for (Iterator<PathMapping> eltIterator = coll.iterator(); eltIterator.hasNext();) {
PathMapping mapping = eltIterator.next();
buffer.append(mappin... |
public class class_name {
private void checkOnClickListener(View view, AttributeSet attrs) {
final Context context = view.getContext();
if (!(context instanceof ContextWrapper) ||
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1 && !ViewCompat.hasOnClickListeners(vi... | public class class_name {
private void checkOnClickListener(View view, AttributeSet attrs) {
final Context context = view.getContext();
if (!(context instanceof ContextWrapper) ||
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1 && !ViewCompat.hasOnClickListeners(vi... |
public class class_name {
public VoltTable sortByInput(String tableName)
{
List<ProcInputRow> sorted = new ArrayList<ProcInputRow>(m_rowsTable);
Collections.sort(sorted, new Comparator<ProcInputRow>() {
@Override
public int compare(ProcInputRow r1, ProcInputRow r2) {
... | public class class_name {
public VoltTable sortByInput(String tableName)
{
List<ProcInputRow> sorted = new ArrayList<ProcInputRow>(m_rowsTable);
Collections.sort(sorted, new Comparator<ProcInputRow>() {
@Override
public int compare(ProcInputRow r1, ProcInputRow r2) {
... |
public class class_name {
public static String getAccessToken(String clientId, String clientSecret, String code, String redirectUri) {
RequestBuilder call = new RequestBuilder(GRAPH_ENDPOINT + "oauth/access_token", HttpMethod.GET);
call.setTimeout(10 * 1000); // this is a somewhat crude hack but seems reasonable... | public class class_name {
public static String getAccessToken(String clientId, String clientSecret, String code, String redirectUri) {
RequestBuilder call = new RequestBuilder(GRAPH_ENDPOINT + "oauth/access_token", HttpMethod.GET);
call.setTimeout(10 * 1000); // this is a somewhat crude hack but seems reasonable... |
public class class_name {
public GroupedPropertyLoader splitKeyAndGroup(final String keyDelimiter) {
return group(new BiFunction<String, String, Tuple3<String, String, String>>() {
public Tuple3<String, String, String> apply(String key, String value) {
String[] keyTokens = key.split... | public class class_name {
public GroupedPropertyLoader splitKeyAndGroup(final String keyDelimiter) {
return group(new BiFunction<String, String, Tuple3<String, String, String>>() {
public Tuple3<String, String, String> apply(String key, String value) {
String[] keyTokens = key.split... |
public class class_name {
public Connection getConnection() throws SQLException {
Connection connection = this.pool.getConnection();
// set the Transaction Isolation if defined
try {
// set the Transaction Isolation if defined
if ((this.isolation != null) && (connection.getTransactionIsolation() != ... | public class class_name {
public Connection getConnection() throws SQLException {
Connection connection = this.pool.getConnection();
// set the Transaction Isolation if defined
try {
// set the Transaction Isolation if defined
if ((this.isolation != null) && (connection.getTransactionIsolation() != ... |
public class class_name {
public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumType, String name) {
try {
return Optional.of(Enum.valueOf(enumType, name));
} catch (IllegalArgumentException e) {
return Optional.empty();
}
} } | public class class_name {
public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumType, String name) {
try {
return Optional.of(Enum.valueOf(enumType, name)); // depends on control dependency: [try], data = [none]
} catch (IllegalArgumentException e) {
return Optional.empty();
}... |
public class class_name {
protected boolean isArgumentSensitive(int index) {
if (methodInfo != null) {
return methodInfo.isArgSensitive(index);
}
Set<Type> parameterAnnotations = observedParameterAnnotations.get(index);
if (parameterAnnotations != null) {
return ... | public class class_name {
protected boolean isArgumentSensitive(int index) {
if (methodInfo != null) {
return methodInfo.isArgSensitive(index); // depends on control dependency: [if], data = [none]
}
Set<Type> parameterAnnotations = observedParameterAnnotations.get(index);
i... |
public class class_name {
public static void loadLibrary(File extractedPath, List<String> candidates) {
for (String lib : candidates) {
File libPath = new File(extractedPath, lib);
String absPath = libPath.getAbsolutePath();
log.debug("Attempting to load dynamic library: " + absPath);
try {
System.lo... | public class class_name {
public static void loadLibrary(File extractedPath, List<String> candidates) {
for (String lib : candidates) {
File libPath = new File(extractedPath, lib);
String absPath = libPath.getAbsolutePath();
log.debug("Attempting to load dynamic library: " + absPath); // depends on control ... |
public class class_name {
private Rectangle getVDropLineRect(JTable.DropLocation loc) {
if (!loc.isInsertColumn()) {
return null;
}
boolean ltr = table.getComponentOrientation().isLeftToRight();
int col = loc.getColumn();
Rectangle rect = table.getCellRect... | public class class_name {
private Rectangle getVDropLineRect(JTable.DropLocation loc) {
if (!loc.isInsertColumn()) {
return null; // depends on control dependency: [if], data = [none]
}
boolean ltr = table.getComponentOrientation().isLeftToRight();
int col = loc.g... |
public class class_name {
public CreateCommitRequest withPutFiles(PutFileEntry... putFiles) {
if (this.putFiles == null) {
setPutFiles(new java.util.ArrayList<PutFileEntry>(putFiles.length));
}
for (PutFileEntry ele : putFiles) {
this.putFiles.add(ele);
}
... | public class class_name {
public CreateCommitRequest withPutFiles(PutFileEntry... putFiles) {
if (this.putFiles == null) {
setPutFiles(new java.util.ArrayList<PutFileEntry>(putFiles.length)); // depends on control dependency: [if], data = [none]
}
for (PutFileEntry ele : putFiles) {... |
public class class_name {
private static void insertionSort(double[] keys, int[] vals, final int start, final int end) {
// Classic insertion sort.
for(int i = start + 1; i < end; i++) {
for(int j = i; j > start; j--) {
if(keys[j] >= keys[j - 1]) {
break;
}
swap(keys, va... | public class class_name {
private static void insertionSort(double[] keys, int[] vals, final int start, final int end) {
// Classic insertion sort.
for(int i = start + 1; i < end; i++) {
for(int j = i; j > start; j--) {
if(keys[j] >= keys[j - 1]) {
break;
}
swap(keys, va... |
public class class_name {
private static PrintStream unbuffered(final PrintStream stream)
{
try
{
return new PrintStream(stream, true, "UTF-8");
}
catch (UnsupportedEncodingException e)
{
return new PrintStream(stream, true);
}
} } | public class class_name {
private static PrintStream unbuffered(final PrintStream stream)
{
try
{
return new PrintStream(stream, true, "UTF-8"); // depends on control dependency: [try], data = [none]
}
catch (UnsupportedEncodingException e)
{
return n... |
public class class_name {
public ActionResult lookup(final ActionRequest actionRequest, final Object resultObject) {
ActionResult actionResultHandler = null;
// + read @RenderWith value on method
{
final ActionRuntime actionRuntime = actionRequest.getActionRuntime();
final Class<? extends ActionResult> ... | public class class_name {
public ActionResult lookup(final ActionRequest actionRequest, final Object resultObject) {
ActionResult actionResultHandler = null;
// + read @RenderWith value on method
{
final ActionRuntime actionRuntime = actionRequest.getActionRuntime();
final Class<? extends ActionResult> ... |
public class class_name {
protected TypeReference<?> getBeanPropertyType(Class<?> clazz,
String propertyName, TypeReference<?> originalType) {
TypeReference<?> propertyDestinationType = null;
if (beanDestinationPropertyTypeProvider != null) {
propertyDestinationType = beanDestinationPropertyTypeProvider
... | public class class_name {
protected TypeReference<?> getBeanPropertyType(Class<?> clazz,
String propertyName, TypeReference<?> originalType) {
TypeReference<?> propertyDestinationType = null;
if (beanDestinationPropertyTypeProvider != null) {
propertyDestinationType = beanDestinationPropertyTypeProvider
... |
public class class_name {
public DataSet createDataSet(final Message response, final MessageType messageType) {
try {
if (response.getPayload() instanceof DataSet) {
return response.getPayload(DataSet.class);
} else if (isReadyToMarshal(response, messageType)) {
... | public class class_name {
public DataSet createDataSet(final Message response, final MessageType messageType) {
try {
if (response.getPayload() instanceof DataSet) {
return response.getPayload(DataSet.class); // depends on control dependency: [if], data = [none]
} else i... |
public class class_name {
public Object evaluate()
{
if( !isCompileTimeConstant() )
{
return super.evaluate();
}
return (Boolean)getLHS().evaluate() || (Boolean)getRHS().evaluate();
} } | public class class_name {
public Object evaluate()
{
if( !isCompileTimeConstant() )
{
return super.evaluate(); // depends on control dependency: [if], data = [none]
}
return (Boolean)getLHS().evaluate() || (Boolean)getRHS().evaluate();
} } |
public class class_name {
protected void onHandshakeFinish(SSLEngine engine) {
// PK16095 - control the SSLSession cache inside the JSSE2 code
// security is creating the contexts, which should not change but might.
// we keep the last seen in an attempt to set these values only once
/... | public class class_name {
protected void onHandshakeFinish(SSLEngine engine) {
// PK16095 - control the SSLSession cache inside the JSSE2 code
// security is creating the contexts, which should not change but might.
// we keep the last seen in an attempt to set these values only once
/... |
public class class_name {
private void buildReplacementNodesFromTranslation(MsgNode msg, SoyMsg translation) {
currReplacementNodes = Lists.newArrayList();
for (SoyMsgPart msgPart : translation.getParts()) {
if (msgPart instanceof SoyMsgRawTextPart) {
// Append a new RawTextNode to the currRep... | public class class_name {
private void buildReplacementNodesFromTranslation(MsgNode msg, SoyMsg translation) {
currReplacementNodes = Lists.newArrayList();
for (SoyMsgPart msgPart : translation.getParts()) {
if (msgPart instanceof SoyMsgRawTextPart) {
// Append a new RawTextNode to the currRep... |
public class class_name {
public static String toAlpha(long i, boolean uppercase) {
final int A = (uppercase ? 'A' : 'a') - 1;
if (i < 0)
throw new IllegalArgumentException(
"Argument must be non-negative, was " + i);
if (i == Long.MAX_VALUE)
throw ne... | public class class_name {
public static String toAlpha(long i, boolean uppercase) {
final int A = (uppercase ? 'A' : 'a') - 1;
if (i < 0)
throw new IllegalArgumentException(
"Argument must be non-negative, was " + i);
if (i == Long.MAX_VALUE)
throw ne... |
public class class_name {
HystrixMetricsPublisherCommand getPublisherForCommand(HystrixCommandKey commandKey, HystrixCommandGroupKey commandOwner, HystrixCommandMetrics metrics, HystrixCircuitBreaker circuitBreaker, HystrixCommandProperties properties) {
// attempt to retrieve from cache first
HystrixM... | public class class_name {
HystrixMetricsPublisherCommand getPublisherForCommand(HystrixCommandKey commandKey, HystrixCommandGroupKey commandOwner, HystrixCommandMetrics metrics, HystrixCircuitBreaker circuitBreaker, HystrixCommandProperties properties) {
// attempt to retrieve from cache first
HystrixM... |
public class class_name {
public EEnum getImageResolutionYBase() {
if (imageResolutionYBaseEEnum == null) {
imageResolutionYBaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(176);
}
return imageResolutionYBaseEEnum;
} } | public class class_name {
public EEnum getImageResolutionYBase() {
if (imageResolutionYBaseEEnum == null) {
imageResolutionYBaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(176); // depends on control dependency: [if], data = [none]
}
return imageResolutio... |
public class class_name {
public synchronized void onDataReceived() {
stopwatch.reset().start();
// We do not cancel the ping future here. This avoids constantly scheduling and cancellation in
// a busy transport. Instead, we update the status here and reschedule later. So we actually
// keep one sendP... | public class class_name {
public synchronized void onDataReceived() {
stopwatch.reset().start();
// We do not cancel the ping future here. This avoids constantly scheduling and cancellation in
// a busy transport. Instead, we update the status here and reschedule later. So we actually
// keep one sendP... |
public class class_name {
public int prepare() throws ProtocolException, RollbackException, SeverePersistenceException, TransactionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepare");
// Check the current transaction state (use state lock t... | public class class_name {
public int prepare() throws ProtocolException, RollbackException, SeverePersistenceException, TransactionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepare");
// Check the current transaction state (use state lock t... |
public class class_name {
boolean projectiveToMetric() {
// homography from projective to metric
DMatrixRMaj H = new DMatrixRMaj(4,4);
listPinhole.clear();
if( manualFocalLength <= 0 ) {
// Estimate calibration parameters
SelfCalibrationLinearDualQuadratic selfcalib = new SelfCalibrationLinearDualQuadr... | public class class_name {
boolean projectiveToMetric() {
// homography from projective to metric
DMatrixRMaj H = new DMatrixRMaj(4,4);
listPinhole.clear();
if( manualFocalLength <= 0 ) {
// Estimate calibration parameters
SelfCalibrationLinearDualQuadratic selfcalib = new SelfCalibrationLinearDualQuadr... |
public class class_name {
private boolean isTitleAlreadyUsed(@NonNull final CharSequence title) {
for (NavigationPreference navigationPreference : getAllNavigationPreferences()) {
if (title.equals(navigationPreference.getTitle())) {
return true;
}
}
retu... | public class class_name {
private boolean isTitleAlreadyUsed(@NonNull final CharSequence title) {
for (NavigationPreference navigationPreference : getAllNavigationPreferences()) {
if (title.equals(navigationPreference.getTitle())) {
return true; // depends on control dependency: [if... |
public class class_name {
public static PubSubManager getInstanceFor(XMPPConnection connection, BareJid pubSubService) {
// CHECKSTYLE:ON:RegexpSingleline
if (pubSubService != null && connection.isAuthenticated() && connection.getUser().asBareJid().equals(pubSubService)) {
// PEP service.
... | public class class_name {
public static PubSubManager getInstanceFor(XMPPConnection connection, BareJid pubSubService) {
// CHECKSTYLE:ON:RegexpSingleline
if (pubSubService != null && connection.isAuthenticated() && connection.getUser().asBareJid().equals(pubSubService)) {
// PEP service.
... |
public class class_name {
private static WebDriver getDriver(final Builder builder) {
// this is the default value
DesiredCapabilities capabilities = getCapabilitiesBrowser(builder.browser);
WebDriver driver = null;
/**
* Setting the proxy
*/
LOG.info("Proxy seetings set");
org.openqa.selenium.Proxy... | public class class_name {
private static WebDriver getDriver(final Builder builder) {
// this is the default value
DesiredCapabilities capabilities = getCapabilitiesBrowser(builder.browser);
WebDriver driver = null;
/**
* Setting the proxy
*/
LOG.info("Proxy seetings set");
org.openqa.selenium.Proxy... |
public class class_name {
public E remove(Long x, Long y)
{
// Extract the region containing the coordinates from the hash table
Bucket<E> region = (Bucket<E>) regions.get(new Coordinates(div(x, bucketSize), div(y, bucketSize)));
// Check if the whole region is empty
if (region == ... | public class class_name {
public E remove(Long x, Long y)
{
// Extract the region containing the coordinates from the hash table
Bucket<E> region = (Bucket<E>) regions.get(new Coordinates(div(x, bucketSize), div(y, bucketSize)));
// Check if the whole region is empty
if (region == ... |
public class class_name {
private final void write(byte dataType, int timestamp, ITag tag) {
if (tag != null) {
// only allow blank tags if they are of audio type
if (tag.getBodySize() > 0 || dataType == ITag.TYPE_AUDIO) {
try {
if (timestamp >= ... | public class class_name {
private final void write(byte dataType, int timestamp, ITag tag) {
if (tag != null) {
// only allow blank tags if they are of audio type
if (tag.getBodySize() > 0 || dataType == ITag.TYPE_AUDIO) {
try {
if (timestamp >= ... |
public class class_name {
private X509Certificate loadX509FromPEMFile(String filename) {
try {
return (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(FileReader.openStreamToFileFromClassPathOrPath(filename));
} catch (Exception e) {
throw new Runtim... | public class class_name {
private X509Certificate loadX509FromPEMFile(String filename) {
try {
return (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(FileReader.openStreamToFileFromClassPathOrPath(filename)); // depends on control dependency: [try], data = [none]
... |
public class class_name {
@Override
public Response init(ChaincodeStub stub) {
try {
// Get the args from the transaction proposal
List<String> args = stub.getParameters();
if (args.size() != 2) {
newErrorResponse("Incorrect arguments. Expecting a key and... | public class class_name {
@Override
public Response init(ChaincodeStub stub) {
try {
// Get the args from the transaction proposal
List<String> args = stub.getParameters();
if (args.size() != 2) {
newErrorResponse("Incorrect arguments. Expecting a key and... |
public class class_name {
private void scheduleAlarm() {
if (wasCalledViaHTTP || retry >= maxNumberOfRetries) {
// No alarm necessary anymore.
LOG.log(Level.INFO,
"Not scheduling additional alarms after {0} out of max {1} retries. The HTTP handles was called: ",
new Object[] {retry,... | public class class_name {
private void scheduleAlarm() {
if (wasCalledViaHTTP || retry >= maxNumberOfRetries) {
// No alarm necessary anymore.
LOG.log(Level.INFO,
"Not scheduling additional alarms after {0} out of max {1} retries. The HTTP handles was called: ",
new Object[] {retry,... |
public class class_name {
public PageSnapshot blurExcept(WebElement element) {
try{
image = ImageProcessor.blurExceptArea(image, new Coordinates(element,devicePixelRatio));
}catch(RasterFormatException rfe){
throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_ME... | public class class_name {
public PageSnapshot blurExcept(WebElement element) {
try{
image = ImageProcessor.blurExceptArea(image, new Coordinates(element,devicePixelRatio)); // depends on control dependency: [try], data = [none]
}catch(RasterFormatException rfe){
throw new Elemen... |
public class class_name {
public final void setSourceText(final String text) {
if (SwingUtilities.isEventDispatchThread()) {
setSourceTextIntern(text);
} else {
try {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
... | public class class_name {
public final void setSourceText(final String text) {
if (SwingUtilities.isEventDispatchThread()) {
setSourceTextIntern(text);
// depends on control dependency: [if], data = [none]
} else {
try {
SwingUtilities.invokeLater(new Runnab... |
public class class_name {
private String destroyAs(String[] args) throws Exception {
if (args.length < 4) {
return M3UAOAMMessages.INVALID_COMMAND;
}
String asName = args[3];
if (asName == null) {
return M3UAOAMMessages.INVALID_COMMAND;
}
String... | public class class_name {
private String destroyAs(String[] args) throws Exception {
if (args.length < 4) {
return M3UAOAMMessages.INVALID_COMMAND;
}
String asName = args[3];
if (asName == null) {
return M3UAOAMMessages.INVALID_COMMAND;
}
String... |
public class class_name {
private boolean shiftRow() {
int su = rnd.nextInt(order); // Select the repeat
int rl = rnd.nextInt(2); // Select between moving right (0) or left (1)
int res = rnd.nextInt(length); // Residue as a pivot
// When the pivot residue is null try to add a residue from the freePool
if (... | public class class_name {
private boolean shiftRow() {
int su = rnd.nextInt(order); // Select the repeat
int rl = rnd.nextInt(2); // Select between moving right (0) or left (1)
int res = rnd.nextInt(length); // Residue as a pivot
// When the pivot residue is null try to add a residue from the freePool
if (... |
public class class_name {
public CommandArgs<K, V> addKeys(Iterable<K> keys) {
LettuceAssert.notNull(keys, "Keys must not be null");
for (K key : keys) {
addKey(key);
}
return this;
} } | public class class_name {
public CommandArgs<K, V> addKeys(Iterable<K> keys) {
LettuceAssert.notNull(keys, "Keys must not be null");
for (K key : keys) {
addKey(key); // depends on control dependency: [for], data = [key]
}
return this;
} } |
public class class_name {
protected Object[] getKey(NodeId id) {
if (getStorageModel() == SM_BINARY_KEYS) {
return new Object[] { id.getRawBytes() };
} else {
return new Object[] {
id.getMostSignificantBits(), id.getLeastSignificantBits() };
}
} } | public class class_name {
protected Object[] getKey(NodeId id) {
if (getStorageModel() == SM_BINARY_KEYS) {
return new Object[] { id.getRawBytes() }; // depends on control dependency: [if], data = [none]
} else {
return new Object[] {
id.getMostSignificantBit... |
public class class_name {
@Override
public void resolve(final ValueStack values) throws Exception
{
if (values.size() < 2)
throw new Exception("missing operands for " + toString());
try
{
final Object[] ops = values.ensureSameTypes();
if (ops[0] insta... | public class class_name {
@Override
public void resolve(final ValueStack values) throws Exception
{
if (values.size() < 2)
throw new Exception("missing operands for " + toString());
try
{
final Object[] ops = values.ensureSameTypes();
if (ops[0] insta... |
public class class_name {
private static List<Annotation> selectMatching(CAS cas, final int begin,
final int end, AnnotationFS annotationCloseToTheRegion) {
final List<Annotation> list = new ArrayList<Annotation>();
final FSIterator<AnnotationFS> it = cas.getAnnotationIndex().iterator();
... | public class class_name {
private static List<Annotation> selectMatching(CAS cas, final int begin,
final int end, AnnotationFS annotationCloseToTheRegion) {
final List<Annotation> list = new ArrayList<Annotation>();
final FSIterator<AnnotationFS> it = cas.getAnnotationIndex().iterator();
... |
public class class_name {
public void setPropertySortingComparator(Comparator comp) {
Comparator old = propertySortingComparator;
propertySortingComparator = comp;
if (propertySortingComparator != old) {
buildModel();
}
} } | public class class_name {
public void setPropertySortingComparator(Comparator comp) {
Comparator old = propertySortingComparator;
propertySortingComparator = comp;
if (propertySortingComparator != old) {
buildModel(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static List<String> readDataFromCVSFileToList(final File input, final int position,
final boolean putFirstLine, final String splitChar, final String encoding)
throws IOException
{
final List<String> output = new ArrayList<>();
try (BufferedReader reader = (BufferedReader)Strea... | public class class_name {
public static List<String> readDataFromCVSFileToList(final File input, final int position,
final boolean putFirstLine, final String splitChar, final String encoding)
throws IOException
{
final List<String> output = new ArrayList<>();
try (BufferedReader reader = (BufferedReader)Strea... |
public class class_name {
private double calculateSurfaceTemperature( int[] conv, double Ts, double Tin, double Ta, double P, double V, double ea,
double Rsw, double Rlwin, double Qp, double rho, double cp, double Fcanopy, double K, double rho_sn, double Ks,
double eps, double Ts_min, double Ts... | public class class_name {
private double calculateSurfaceTemperature( int[] conv, double Ts, double Tin, double Ta, double P, double V, double ea,
double Rsw, double Rlwin, double Qp, double rho, double cp, double Fcanopy, double K, double rho_sn, double Ks,
double eps, double Ts_min, double Ts... |
public class class_name {
@Override
public boolean isBodyAllowed() {
if (super.isBodyAllowed()) {
// sending a body with the response is not valid for a HEAD request
if (getServiceContext().getRequestMethod().equals(MethodValues.HEAD)) {
return false;
}... | public class class_name {
@Override
public boolean isBodyAllowed() {
if (super.isBodyAllowed()) {
// sending a body with the response is not valid for a HEAD request
if (getServiceContext().getRequestMethod().equals(MethodValues.HEAD)) {
return false; // depends on... |
public class class_name {
public static <K, V> HashMap<K, V> newHashMap(@NotNull final List<K> keys, @NotNull final List<V> values) {
Validate.isTrue(keys.size() == values.size(), "keys.length is %s but values.length is %s", keys.size(),
values.size());
HashMap<K, V> map = new HashMap<K, V>(keys.size() * 2);... | public class class_name {
public static <K, V> HashMap<K, V> newHashMap(@NotNull final List<K> keys, @NotNull final List<V> values) {
Validate.isTrue(keys.size() == values.size(), "keys.length is %s but values.length is %s", keys.size(),
values.size());
HashMap<K, V> map = new HashMap<K, V>(keys.size() * 2);... |
public class class_name {
@Deprecated
public void addArguments(String[] argList) throws DuplicateOptionException,
InvalidFormatException {
for (String arg : argList) {
Argument f = new Argument();
String[] breakdown = arg.split(",");
for (String s : breakdown) {
s = s.trim();
if (s.startsWith("-... | public class class_name {
@Deprecated
public void addArguments(String[] argList) throws DuplicateOptionException,
InvalidFormatException {
for (String arg : argList) {
Argument f = new Argument();
String[] breakdown = arg.split(",");
for (String s : breakdown) {
s = s.trim();
if (s.startsWith("-... |
public class class_name {
synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
... | public class class_name {
synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
... |
public class class_name {
private boolean processAuthenticationResponse(final HttpMethod method) {
LOG.trace("enter HttpMethodBase.processAuthenticationResponse("
+ "HttpState, HttpConnection)");
try {
switch (method.getStatusCode()) {
case HttpStatus.SC_UNAUTHORIZED:
... | public class class_name {
private boolean processAuthenticationResponse(final HttpMethod method) {
LOG.trace("enter HttpMethodBase.processAuthenticationResponse("
+ "HttpState, HttpConnection)");
try {
switch (method.getStatusCode()) {
case HttpStatus.SC_UNAUTHORIZED:
... |
public class class_name {
public Node<E> offerAndGetNode(E e) {
mPutLock.lock();
try {
Node newNode = mNodePool.borrowNode(e);
if (mSize.get() > 0)
newNode.mPrev = mTail;
mTail.mNext = newNode;
if (mSize.get() <= 1) {
mPoll... | public class class_name {
public Node<E> offerAndGetNode(E e) {
mPutLock.lock();
try {
Node newNode = mNodePool.borrowNode(e);
if (mSize.get() > 0)
newNode.mPrev = mTail;
mTail.mNext = newNode; // depends on control dependency: [try], data = [none]
... |
public class class_name {
public String listCsv() {
StringBuffer csv = new StringBuffer(5120);
csv.append(m_metadata.csvHeader());
if (getContent().isEmpty()) {
csv.append(m_metadata.csvEmptyList());
} else {
Iterator<CmsListItem> itItems = getContent().iterator... | public class class_name {
public String listCsv() {
StringBuffer csv = new StringBuffer(5120);
csv.append(m_metadata.csvHeader());
if (getContent().isEmpty()) {
csv.append(m_metadata.csvEmptyList()); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void updatePosition() {
setPosition(CmsPositionBean.getBoundingClientRect(m_element));
for (Widget widget : m_buttonPanel) {
if (widget instanceof CmsInlineEntityWidget) {
((CmsInlineEntityWidget)widget).positionWidget();
}... | public class class_name {
public void updatePosition() {
setPosition(CmsPositionBean.getBoundingClientRect(m_element));
for (Widget widget : m_buttonPanel) {
if (widget instanceof CmsInlineEntityWidget) {
((CmsInlineEntityWidget)widget).positionWidget();
// depends on... |
public class class_name {
public static int waitForExitProcess(Pointer hProcess) throws InterruptedException {
while (true) {
if (Thread.interrupted())
throw new InterruptedException();
Kernel32.INSTANCE.WaitForSingleObject(hProcess,1000);
IntByReference exi... | public class class_name {
public static int waitForExitProcess(Pointer hProcess) throws InterruptedException {
while (true) {
if (Thread.interrupted())
throw new InterruptedException();
Kernel32.INSTANCE.WaitForSingleObject(hProcess,1000);
IntByReference exi... |
public class class_name {
private static void validateJndiLookup(String lookupString, Annotated annotated, Class<?> declaringClass, CDIArchive cdiArchive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "validateJndiLookup", new Object[] { Util.identity(annotated),... | public class class_name {
private static void validateJndiLookup(String lookupString, Annotated annotated, Class<?> declaringClass, CDIArchive cdiArchive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "validateJndiLookup", new Object[] { Util.identity(annotated),... |
public class class_name {
public static AVIMClient getInstance(String clientId) {
if (StringUtil.isEmpty(clientId)) {
return null;
}
AVIMClient client = clients.get(clientId);
if (null == client) {
client = new AVIMClient(clientId);
AVIMClient elderClient = clients.putIfAbsent(clientI... | public class class_name {
public static AVIMClient getInstance(String clientId) {
if (StringUtil.isEmpty(clientId)) {
return null; // depends on control dependency: [if], data = [none]
}
AVIMClient client = clients.get(clientId);
if (null == client) {
client = new AVIMClient(clientId); // d... |
public class class_name {
@Expose
protected List<Exception> getExceptions() {
List<Exception> exceptions = new ArrayList<Exception>();
exceptions.add(exception);
Throwable currentThrowable = exception.getThrowable().getCause();
while (currentThrowable != null) {
excepti... | public class class_name {
@Expose
protected List<Exception> getExceptions() {
List<Exception> exceptions = new ArrayList<Exception>();
exceptions.add(exception);
Throwable currentThrowable = exception.getThrowable().getCause();
while (currentThrowable != null) {
excepti... |
public class class_name {
@Override
public EClass getIfcMaterialRelationship() {
if (ifcMaterialRelationshipEClass == null) {
ifcMaterialRelationshipEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(373);
}
return ifcMaterialRelationshipEClass;
... | public class class_name {
@Override
public EClass getIfcMaterialRelationship() {
if (ifcMaterialRelationshipEClass == null) {
ifcMaterialRelationshipEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(373);
// depends on control dependency: [if], data = ... |
public class class_name {
public static int[] range(int length) {
int[] index = new int[length];
for (int i=0; i<index.length; i++) {
// TODO: This should maybe be a safe cast for the benefit of non-IntDouble classes.
index[i] = (int) i;
}
return index;
} } | public class class_name {
public static int[] range(int length) {
int[] index = new int[length];
for (int i=0; i<index.length; i++) {
// TODO: This should maybe be a safe cast for the benefit of non-IntDouble classes.
index[i] = (int) i; // depends on control dependency: [for], ... |
public class class_name {
@Override
protected boolean onLevelChange(int level) {
if (mIsRunning) {
// If the client called start on us, they expect us to run the animation. In that case,
// we ignore level changes.
return false;
}
if (mLastFrameAnimationTimeMs != level) {
mLastFra... | public class class_name {
@Override
protected boolean onLevelChange(int level) {
if (mIsRunning) {
// If the client called start on us, they expect us to run the animation. In that case,
// we ignore level changes.
return false; // depends on control dependency: [if], data = [none]
}
if... |
public class class_name {
public static boolean isServiceNode(ChildData zNode) {
String path = zNode.getPath();
LOG.debug("正在检查节点路径: " + path);
LOG.debug("服务注册路径: " + getNodeBasePath());
if (!path.startsWith(getNodeBasePath()) || path.equals(getNodeBasePath())) {
return ... | public class class_name {
public static boolean isServiceNode(ChildData zNode) {
String path = zNode.getPath();
LOG.debug("正在检查节点路径: " + path);
LOG.debug("服务注册路径: " + getNodeBasePath());
if (!path.startsWith(getNodeBasePath()) || path.equals(getNodeBasePath())) {
return ... |
public class class_name {
public static List<Element> getChildElementsByTagName(Element ele, String[] childEleNames) {
Assert.notNull(ele, "Element must not be null");
Assert.notNull(childEleNames, "Element names collection must not be null");
List<String> childEleNameList = Arrays.asList(child... | public class class_name {
public static List<Element> getChildElementsByTagName(Element ele, String[] childEleNames) {
Assert.notNull(ele, "Element must not be null");
Assert.notNull(childEleNames, "Element names collection must not be null");
List<String> childEleNameList = Arrays.asList(child... |
public class class_name {
public static <T> String getUpdateAllSQL(Class<T> clazz, String setSql, String whereSql,
String extraWhereSql) {
StringBuilder sql = new StringBuilder();
sql.append("UPDATE ");
Table table = DOInfoReader.getTable(clazz);
List<Field> fields = DOInfoReader.getColumns(clazz);
... | public class class_name {
public static <T> String getUpdateAllSQL(Class<T> clazz, String setSql, String whereSql,
String extraWhereSql) {
StringBuilder sql = new StringBuilder();
sql.append("UPDATE ");
Table table = DOInfoReader.getTable(clazz);
List<Field> fields = DOInfoReader.getColumns(clazz);
... |
public class class_name {
public Object getValue(final int pos) {
Object val = list.get(pos);
if (val instanceof Map) {
val = new JsonObject((Map) val);
}
else if (val instanceof List) {
val = new JsonArray((List) val);
}
return val;
} } | public class class_name {
public Object getValue(final int pos) {
Object val = list.get(pos);
if (val instanceof Map) {
val = new JsonObject((Map) val); // depends on control dependency: [if], data = [none]
}
else if (val instanceof List) {
val = new JsonArray((List) val); // depends on control dependen... |
public class class_name {
@Override
public boolean start()
{
if (! _lifecycle.toStarting()) {
return false;
}
_fd = createNative();
if (_fd == 0) {
_lifecycle.toDestroy();
log.finer(this + " is not available on this system.");
return false;
}
String name = "resin-... | public class class_name {
@Override
public boolean start()
{
if (! _lifecycle.toStarting()) {
return false; // depends on control dependency: [if], data = [none]
}
_fd = createNative();
if (_fd == 0) {
_lifecycle.toDestroy(); // 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.