code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public UserListing getAllUsersByJobView(JobView jobViewParam) {
if(this.serviceTicket != null && jobViewParam != null) {
jobViewParam.setServiceTicket(this.serviceTicket);
}
try {
return new UserListing(this.postJson(
jobVie... | public class class_name {
public UserListing getAllUsersByJobView(JobView jobViewParam) {
if(this.serviceTicket != null && jobViewParam != null) {
jobViewParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [(this.serviceTicket]
}
try {
... |
public class class_name {
public DescribeEffectiveInstanceAssociationsResult withAssociations(InstanceAssociation... associations) {
if (this.associations == null) {
setAssociations(new com.amazonaws.internal.SdkInternalList<InstanceAssociation>(associations.length));
}
for (Instanc... | public class class_name {
public DescribeEffectiveInstanceAssociationsResult withAssociations(InstanceAssociation... associations) {
if (this.associations == null) {
setAssociations(new com.amazonaws.internal.SdkInternalList<InstanceAssociation>(associations.length)); // depends on control dependen... |
public class class_name {
public int read(final byte[] buffer, final int byteOffset, final int byteCount)
throws IOException {
IOUtils.checkOffsetAndCount(buffer, byteOffset, byteCount);
for (int i = 0; i < byteCount; ++i) {
int charAsInt;
try {
charAsInt = this.read();
if (ch... | public class class_name {
public int read(final byte[] buffer, final int byteOffset, final int byteCount)
throws IOException {
IOUtils.checkOffsetAndCount(buffer, byteOffset, byteCount);
for (int i = 0; i < byteCount; ++i) {
int charAsInt;
try {
charAsInt = this.read();
if (ch... |
public class class_name {
private Object serializeCollection(Collection pArg) {
JSONArray array = new JSONArray();
for (Object value : ((Collection) pArg)) {
array.add(serializeArgumentToJson(value));
}
return array;
} } | public class class_name {
private Object serializeCollection(Collection pArg) {
JSONArray array = new JSONArray();
for (Object value : ((Collection) pArg)) {
array.add(serializeArgumentToJson(value)); // depends on control dependency: [for], data = [value]
}
return array;
... |
public class class_name {
public Observable<ComapiResult<UploadContentResponse>> uploadContent(@NonNull final String folder, @NonNull final ContentData data) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueUploadContent(folder, da... | public class class_name {
public Observable<ComapiResult<UploadContentResponse>> uploadContent(@NonNull final String folder, @NonNull final ContentData data) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueUploadContent(folder, da... |
public class class_name {
public void assertContainsSequence(Description description, Collection<?> actual, Object[] sequence) {
checkIsNotNullAndNotEmpty(sequence);
assertNotNull(description, actual);
boolean firstAlreadyFound = false;
int i = 0;
int sequenceSize = sequence.length;
for (... | public class class_name {
public void assertContainsSequence(Description description, Collection<?> actual, Object[] sequence) {
checkIsNotNullAndNotEmpty(sequence);
assertNotNull(description, actual);
boolean firstAlreadyFound = false;
int i = 0;
int sequenceSize = sequence.length;
for (... |
public class class_name {
public boolean isTagPresent(String tagName) {
boolean tagPresent = false;
if (mReadMethod != null) {
tagPresent = mReadMethod.isTagPresent(tagName);
}
if (!tagPresent && mWriteMethod != null) {
tagPresent = mWriteMethod.isTagPresent(ta... | public class class_name {
public boolean isTagPresent(String tagName) {
boolean tagPresent = false;
if (mReadMethod != null) {
tagPresent = mReadMethod.isTagPresent(tagName); // depends on control dependency: [if], data = [none]
}
if (!tagPresent && mWriteMethod != null) {... |
public class class_name {
private void ensureCapacityAndAddPair(KeyValuePair kvp) {
if (lastIndex + 1 < pairs.length) {
pairs[++lastIndex] = kvp;
} else {
pairs = java.util.Arrays.copyOf(pairs, Math.max(pairs.length + (pairs.length >> 1), DEFAULT_SIZE));
pairs[++last... | public class class_name {
private void ensureCapacityAndAddPair(KeyValuePair kvp) {
if (lastIndex + 1 < pairs.length) {
pairs[++lastIndex] = kvp; // depends on control dependency: [if], data = [none]
} else {
pairs = java.util.Arrays.copyOf(pairs, Math.max(pairs.length + (pairs.... |
public class class_name {
private void processResponseAcknowledgementData(
final AbstractBody req) {
assertLocked();
Long rid = Long.parseLong(req.getAttribute(Attributes.RID));
if (responseAck.equals(Long.valueOf(-1L))) {
// This is the first request
... | public class class_name {
private void processResponseAcknowledgementData(
final AbstractBody req) {
assertLocked();
Long rid = Long.parseLong(req.getAttribute(Attributes.RID));
if (responseAck.equals(Long.valueOf(-1L))) {
// This is the first request
... |
public class class_name {
public CloudwatchLogsExportConfiguration withEnableLogTypes(String... enableLogTypes) {
if (this.enableLogTypes == null) {
setEnableLogTypes(new java.util.ArrayList<String>(enableLogTypes.length));
}
for (String ele : enableLogTypes) {
this.enab... | public class class_name {
public CloudwatchLogsExportConfiguration withEnableLogTypes(String... enableLogTypes) {
if (this.enableLogTypes == null) {
setEnableLogTypes(new java.util.ArrayList<String>(enableLogTypes.length)); // depends on control dependency: [if], data = [none]
}
for... |
public class class_name {
protected String getCommonSuperClassBase(final String type1, final String type2) {
Class<?> c, d;
try {
c = classForName(type1.replace('/', '.'));
d = classForName(type2.replace('/', '.'));
} catch (Exception e) {
throw new RuntimeEx... | public class class_name {
protected String getCommonSuperClassBase(final String type1, final String type2) {
Class<?> c, d;
try {
c = classForName(type1.replace('/', '.')); // depends on control dependency: [try], data = [none]
d = classForName(type2.replace('/', '.')); // depen... |
public class class_name {
static public void main(String[] argv)
{
try {
Blocker blocker = (Blocker)Class.forName(BLOCKER_PACKAGE+argv[0]).newInstance();
StringDistanceLearner learner = DistanceLearnerFactory.build( argv[1] );
MatchData data = new MatchData(argv[2]);
MatchExpt expt = n... | public class class_name {
static public void main(String[] argv)
{
try {
Blocker blocker = (Blocker)Class.forName(BLOCKER_PACKAGE+argv[0]).newInstance();
StringDistanceLearner learner = DistanceLearnerFactory.build( argv[1] );
MatchData data = new MatchData(argv[2]);
MatchExpt expt = n... |
public class class_name {
private static boolean checkPresenceAndCloseExtraSections(RadialMenuSection currentSection, RadialMenuSection sectionToOpen) {
if (activeSubSections.size() > 0) {
int idx = activeSubSections.indexOf(sectionToOpen);
if (idx >= 0) { // Do not remove subsection, ... | public class class_name {
private static boolean checkPresenceAndCloseExtraSections(RadialMenuSection currentSection, RadialMenuSection sectionToOpen) {
if (activeSubSections.size() > 0) {
int idx = activeSubSections.indexOf(sectionToOpen);
if (idx >= 0) { // Do not remove subsection, ... |
public class class_name {
public String getAsString(Object obj, String propertyName) {
Object o = get(obj, propertyName);
if (o != null) {
return o.toString();
} else {
return "";
}
} } | public class class_name {
public String getAsString(Object obj, String propertyName) {
Object o = get(obj, propertyName);
if (o != null) {
return o.toString(); // depends on control dependency: [if], data = [none]
} else {
return ""; // depends on control dependency: [if... |
public class class_name {
public java.util.List<ClusterVersion> getClusterVersions() {
if (clusterVersions == null) {
clusterVersions = new com.amazonaws.internal.SdkInternalList<ClusterVersion>();
}
return clusterVersions;
} } | public class class_name {
public java.util.List<ClusterVersion> getClusterVersions() {
if (clusterVersions == null) {
clusterVersions = new com.amazonaws.internal.SdkInternalList<ClusterVersion>(); // depends on control dependency: [if], data = [none]
}
return clusterVersions;
}... |
public class class_name {
public void retractFact(final Object behaviorContext,
final InternalFactHandle factHandle,
final PropagationContext pctx,
final InternalWorkingMemory workingMemory) {
for ( int i = 0; i < behaviors.len... | public class class_name {
public void retractFact(final Object behaviorContext,
final InternalFactHandle factHandle,
final PropagationContext pctx,
final InternalWorkingMemory workingMemory) {
for ( int i = 0; i < behaviors.len... |
public class class_name {
public ServerSetup[] build(Properties properties) {
List<ServerSetup> serverSetups = new ArrayList<>();
String hostname = properties.getProperty("greenmail.hostname", ServerSetup.getLocalHostAddress());
long serverStartupTimeout =
Long.parseLong(proper... | public class class_name {
public ServerSetup[] build(Properties properties) {
List<ServerSetup> serverSetups = new ArrayList<>();
String hostname = properties.getProperty("greenmail.hostname", ServerSetup.getLocalHostAddress());
long serverStartupTimeout =
Long.parseLong(proper... |
public class class_name {
private void computeIv(byte label) {
for (int i = 0; i < 14; i++) {
ivStore[i] = masterSalt[i];
}
ivStore[7] ^= label;
ivStore[14] = ivStore[15] = 0;
} } | public class class_name {
private void computeIv(byte label) {
for (int i = 0; i < 14; i++) {
ivStore[i] = masterSalt[i];
// depends on control dependency: [for], data = [i]
}
ivStore[7] ^= label;
ivStore[14] = ivStore[15] = 0;
} } |
public class class_name {
public static void enableAllSubsystems(boolean enable) {
if (enable_logging) {
if (enable) {
for (ISubsystem s : SUBSYSTEM.values()) {
mEnabledSubsystems.add(s);
}
} else {
mEnabledSubsystems.c... | public class class_name {
public static void enableAllSubsystems(boolean enable) {
if (enable_logging) {
if (enable) {
for (ISubsystem s : SUBSYSTEM.values()) {
mEnabledSubsystems.add(s); // depends on control dependency: [for], data = [s]
}
... |
public class class_name {
protected Source convertString2Source(String param) {
Source src;
try {
src = uriResolver.resolve(param, null);
} catch (TransformerException e) {
src = null;
}
if (src == null) {
src = new StreamSource(new File(param... | public class class_name {
protected Source convertString2Source(String param) {
Source src;
try {
src = uriResolver.resolve(param, null); // depends on control dependency: [try], data = [none]
} catch (TransformerException e) {
src = null;
} // depends on control... |
public class class_name {
public <T extends Widget & Checkable> boolean uncheck(T checkableWidget) {
if (hasChild(checkableWidget)) {
return checkInternal(checkableWidget, false);
}
return false;
} } | public class class_name {
public <T extends Widget & Checkable> boolean uncheck(T checkableWidget) {
if (hasChild(checkableWidget)) {
return checkInternal(checkableWidget, false); // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public void sendToTagged(String message, String ... labels) {
for (String label : labels) {
sendToTagged(message, label);
}
} } | public class class_name {
public void sendToTagged(String message, String ... labels) {
for (String label : labels) {
sendToTagged(message, label); // depends on control dependency: [for], data = [label]
}
} } |
public class class_name {
public void setHideTime(boolean enable, final boolean useDarkTheme) {
if(enable && !shouldHideTime) {
// hide the time spinner and show a button to show it instead
timeSpinner.setVisibility(GONE);
ImageButton timeButton = (ImageButton) LayoutInflate... | public class class_name {
public void setHideTime(boolean enable, final boolean useDarkTheme) {
if(enable && !shouldHideTime) {
// hide the time spinner and show a button to show it instead
timeSpinner.setVisibility(GONE); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private String getRecursiveString() {
final StringBuilder output = new StringBuilder();
// append headers e.g. namespaces and functions
output.append(String.join("\n", getHeaders()));
if (!qvarMapVariable.isEmpty() && addQvarMap) {
output.append(qv... | public class class_name {
private String getRecursiveString() {
final StringBuilder output = new StringBuilder();
// append headers e.g. namespaces and functions
output.append(String.join("\n", getHeaders()));
if (!qvarMapVariable.isEmpty() && addQvarMap) {
output.append(qv... |
public class class_name {
public EEnum getObjectOriginIdentifierSystem() {
if (objectOriginIdentifierSystemEEnum == null) {
objectOriginIdentifierSystemEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(171);
}
return objectOriginIdentifierSystemEEnum;
} } | public class class_name {
public EEnum getObjectOriginIdentifierSystem() {
if (objectOriginIdentifierSystemEEnum == null) {
objectOriginIdentifierSystemEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(171); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public void addAxisReflection(int axis) {
assert (0 < axis && axis <= dim);
// reset inverse transformation - needs recomputation.
inv = null;
// Formal:
// Matrix homTrans = Matrix.unitMatrix(dim + 1);
// homTrans[axis - 1][axis - 1] = -1;
// trans = homTrans.tim... | public class class_name {
public void addAxisReflection(int axis) {
assert (0 < axis && axis <= dim);
// reset inverse transformation - needs recomputation.
inv = null;
// Formal:
// Matrix homTrans = Matrix.unitMatrix(dim + 1);
// homTrans[axis - 1][axis - 1] = -1;
// trans = homTrans.tim... |
public class class_name {
public File getRuntimeDir(String applicationName, boolean strict) {
File base = getRuntimeBase();
if (base == null) {
if (strict)
return null;
base = getCacheBase();
}
return createUserDir(base, applicationName);
} } | public class class_name {
public File getRuntimeDir(String applicationName, boolean strict) {
File base = getRuntimeBase();
if (base == null) {
if (strict)
return null;
base = getCacheBase(); // depends on control dependency: [if], data = [none]
}
return createUserDir(base, applicationName);
} } |
public class class_name {
private void interpretTables(FitDocument documents) {
for (FitTable table : documents.tables()) {
try {
Fixture fixture = getLinkedFixtureWithArgs(table);
fixture.doTable(table);
counts.tally(table.getCounts());
}... | public class class_name {
private void interpretTables(FitDocument documents) {
for (FitTable table : documents.tables()) {
try {
Fixture fixture = getLinkedFixtureWithArgs(table);
fixture.doTable(table); // depends on control dependency: [try], data = [none]
... |
public class class_name {
@Deprecated
public static ByteArrayOutputStream launchProcess(
String command, final Map environment, final String workDir,
ExecuteResultHandler resultHandler) throws IOException {
String[] cmdlist = command.split(" ");
CommandLine cmd = new Comma... | public class class_name {
@Deprecated
public static ByteArrayOutputStream launchProcess(
String command, final Map environment, final String workDir,
ExecuteResultHandler resultHandler) throws IOException {
String[] cmdlist = command.split(" ");
CommandLine cmd = new Comma... |
public class class_name {
public void marshall(GrantAccessRequest grantAccessRequest, ProtocolMarshaller protocolMarshaller) {
if (grantAccessRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(GrantAccessRequest grantAccessRequest, ProtocolMarshaller protocolMarshaller) {
if (grantAccessRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public static Constructor<?> getFirstParentConstructor(Class<?> klass) {
try {
return getOriginalUnmockedType(klass).getSuperclass().getDeclaredConstructors()[0];
} catch (Exception e) {
throw new ConstructorNotFoundException("Failed to lookup construct... | public class class_name {
public static Constructor<?> getFirstParentConstructor(Class<?> klass) {
try {
return getOriginalUnmockedType(klass).getSuperclass().getDeclaredConstructors()[0]; // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new C... |
public class class_name {
private void resizeValueText() {
double maxWidth = size * 0.86466165;
double fontSize = size * 0.2556391;
valueText.setFont(Fonts.latoLight(fontSize));
if (valueText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(valueText, maxWidth, fontSize)... | public class class_name {
private void resizeValueText() {
double maxWidth = size * 0.86466165;
double fontSize = size * 0.2556391;
valueText.setFont(Fonts.latoLight(fontSize));
if (valueText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(valueText, maxWidth, fontSize)... |
public class class_name {
public static void main(String[] args) throws Exception {
int mb = 1024*1024;
//Getting the runtime reference from system
Runtime runtime = Runtime.getRuntime();
System.out.println("##### Heap utilization statistics [MB] #####");
//Print used memory
System.out.println("Used Me... | public class class_name {
public static void main(String[] args) throws Exception {
int mb = 1024*1024;
//Getting the runtime reference from system
Runtime runtime = Runtime.getRuntime();
System.out.println("##### Heap utilization statistics [MB] #####");
//Print used memory
System.out.println("Used Me... |
public class class_name {
protected void associateSameDiffWithOpsAndVariables(){
for(SDVariable var : variableMap().values()){
var.setSameDiff(this);
}
// for(DifferentialFunction df : functionInstancesById.values()){
for(SameDiffOp op : ops.values()){
Differentia... | public class class_name {
protected void associateSameDiffWithOpsAndVariables(){
for(SDVariable var : variableMap().values()){
var.setSameDiff(this); // depends on control dependency: [for], data = [var]
}
// for(DifferentialFunction df : functionInstancesById.values()){
for(... |
public class class_name {
private JsonElement parseJsonObjectType(JsonSchema schema, JsonElement value)
throws DataConversionException {
JsonSchema valuesWithinDataType = schema.getValuesWithinDataType();
if (schema.isType(MAP)) {
if (Type.isPrimitive(valuesWithinDataType.getType())) {
retu... | public class class_name {
private JsonElement parseJsonObjectType(JsonSchema schema, JsonElement value)
throws DataConversionException {
JsonSchema valuesWithinDataType = schema.getValuesWithinDataType();
if (schema.isType(MAP)) {
if (Type.isPrimitive(valuesWithinDataType.getType())) {
retu... |
public class class_name {
public static SoapAttachment from(Attachment attachment) {
SoapAttachment soapAttachment = new SoapAttachment();
String contentId = attachment.getContentId();
if (contentId.startsWith("<") && contentId.endsWith(">")) {
contentId = contentId.substring(1, co... | public class class_name {
public static SoapAttachment from(Attachment attachment) {
SoapAttachment soapAttachment = new SoapAttachment();
String contentId = attachment.getContentId();
if (contentId.startsWith("<") && contentId.endsWith(">")) {
contentId = contentId.substring(1, co... |
public class class_name {
public static <T> T callMethod(Class<T> retClass, Class<?> targetClass, Object target, String method, Class[] argClasses, Object[] args) {
try {
Method classMethod = targetClass.getDeclaredMethod(method, argClasses);
return AccessController.doPrivileged(
... | public class class_name {
public static <T> T callMethod(Class<T> retClass, Class<?> targetClass, Object target, String method, Class[] argClasses, Object[] args) {
try {
Method classMethod = targetClass.getDeclaredMethod(method, argClasses);
return AccessController.doPrivileged(
... |
public class class_name {
protected Node createNode(final Node parentNode, final String nodeName, final String nodeType,
final List<String> mixinTypes, final Map<String, String[]> permissions, final boolean isLeaf,
final boolean callSave) throws RepositoryException
{
boolean useParameters = !usePa... | public class class_name {
protected Node createNode(final Node parentNode, final String nodeName, final String nodeType,
final List<String> mixinTypes, final Map<String, String[]> permissions, final boolean isLeaf,
final boolean callSave) throws RepositoryException
{
boolean useParameters = !usePa... |
public class class_name {
public Paint getPaint(long styleId, FeatureDrawType type) {
Paint paint = null;
FeaturePaint featurePaint = getFeaturePaint(styleId);
if (featurePaint != null) {
paint = featurePaint.getPaint(type);
}
return paint;
} } | public class class_name {
public Paint getPaint(long styleId, FeatureDrawType type) {
Paint paint = null;
FeaturePaint featurePaint = getFeaturePaint(styleId);
if (featurePaint != null) {
paint = featurePaint.getPaint(type); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void createContainerContext(@Observes EventContext<ContainerControlEvent> context) {
ContainerContext containerContext = this.containerContext.get();
ContainerControlEvent event = context.getEvent();
try {
containerContext.activate(event.getContaine... | public class class_name {
public void createContainerContext(@Observes EventContext<ContainerControlEvent> context) {
ContainerContext containerContext = this.containerContext.get();
ContainerControlEvent event = context.getEvent();
try {
containerContext.activate(event.getContaine... |
public class class_name {
public static String encodedEntry(String bucket, String key) {
String encodedEntry;
if (key != null) {
encodedEntry = UrlSafeBase64.encodeToString(bucket + ":" + key);
} else {
encodedEntry = UrlSafeBase64.encodeToString(bucket);
}
... | public class class_name {
public static String encodedEntry(String bucket, String key) {
String encodedEntry;
if (key != null) {
encodedEntry = UrlSafeBase64.encodeToString(bucket + ":" + key); // depends on control dependency: [if], data = [none]
} else {
encodedEntry =... |
public class class_name {
private boolean doHandleMethodCall(MethodCall<Object> methodCall,
final ServiceMethodHandler serviceMethodHandler) {
if (debug) {
logger.debug("ServiceImpl::doHandleMethodCall() METHOD CALL" + methodCall);
}
if (callba... | public class class_name {
private boolean doHandleMethodCall(MethodCall<Object> methodCall,
final ServiceMethodHandler serviceMethodHandler) {
if (debug) {
logger.debug("ServiceImpl::doHandleMethodCall() METHOD CALL" + methodCall); // depends on control depend... |
public class class_name {
private void drawYValues(Graphics2D chartGraphics) {
if (!showYAxisValues) {
return;
}
chartGraphics.setColor(axisValuesColour);
for (int i = 0; i < yValues.length; i++) {
if (i % yAxisValuesFrequency != 0) {
continue;
}
String yValueStr = yV... | public class class_name {
private void drawYValues(Graphics2D chartGraphics) {
if (!showYAxisValues) {
return; // depends on control dependency: [if], data = [none]
}
chartGraphics.setColor(axisValuesColour);
for (int i = 0; i < yValues.length; i++) {
if (i % yAxisValuesFrequency != 0) {
... |
public class class_name {
protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if ... | public class class_name {
protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if ... |
public class class_name {
@Pure
public RoadSegment getConnectableSegmentToLastPoint(RoadPath path) {
assert path != null;
if (path.isEmpty()) {
return null;
}
RoadConnection last1 = getLastPoint();
RoadConnection first2 = path.getFirstPoint();
RoadConnection last2 = path.getLastPoint();
last1 = last1... | public class class_name {
@Pure
public RoadSegment getConnectableSegmentToLastPoint(RoadPath path) {
assert path != null;
if (path.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
RoadConnection last1 = getLastPoint();
RoadConnection first2 = path.getFirstPoint();
RoadC... |
public class class_name {
protected void changeTheme() {
currentTheme = getNextTheme(currentTheme);
if (currentTheme != null) {
currentTheme.setLooping(false);
currentTheme.setOnCompletionListener(listener);
currentTheme.setVolume(musicVolume.getPercent());
... | public class class_name {
protected void changeTheme() {
currentTheme = getNextTheme(currentTheme);
if (currentTheme != null) {
currentTheme.setLooping(false); // depends on control dependency: [if], data = [none]
currentTheme.setOnCompletionListener(listener); // depends on con... |
public class class_name {
public boolean isCompliantWithRequestAccept(Request request) {
if (producedMediaTypes == null || producedMediaTypes.isEmpty() || request == null
|| request.getHeader(HeaderNames.ACCEPT) == null) {
return true;
} else {
for (MediaType mt ... | public class class_name {
public boolean isCompliantWithRequestAccept(Request request) {
if (producedMediaTypes == null || producedMediaTypes.isEmpty() || request == null
|| request.getHeader(HeaderNames.ACCEPT) == null) {
return true; // depends on control dependency: [if], data = ... |
public class class_name {
public void continueIfExecutionDoesNotAffectNextOperation(Callback<PvmExecutionImpl, Void> dispatching,
Callback<PvmExecutionImpl, Void> continuation,
PvmExecutionImpl execu... | public class class_name {
public void continueIfExecutionDoesNotAffectNextOperation(Callback<PvmExecutionImpl, Void> dispatching,
Callback<PvmExecutionImpl, Void> continuation,
PvmExecutionImpl execu... |
public class class_name {
protected void registerEventHelpers ()
{
try {
_helpers.put(ObjectDestroyedEvent.class, new EventHelper () {
public boolean invoke (DEvent event, DObject target) {
return objectDestroyed(event, target);
}
... | public class class_name {
protected void registerEventHelpers ()
{
try {
_helpers.put(ObjectDestroyedEvent.class, new EventHelper () {
public boolean invoke (DEvent event, DObject target) {
return objectDestroyed(event, target);
}
... |
public class class_name {
public DataObjectModel hide(String... properties)
{
DataObjectModel view = clone();
view.propertyList = new ArrayList<String>();
view.propertyList.addAll(this.propertyList);
for (String property : properties)
{
view.propertyList.r... | public class class_name {
public DataObjectModel hide(String... properties)
{
DataObjectModel view = clone();
view.propertyList = new ArrayList<String>();
view.propertyList.addAll(this.propertyList);
for (String property : properties)
{
view.propertyList.r... |
public class class_name {
public static int getMonthLength(int year, int month) {
if ((month < 1) || (month > 12)) {
throw new IllegalArgumentException("Invalid month: " + month);
}
if (month == 2) {
return isLeapYear(year) ? 29 : 28;
}
return MONTH_LENGTH[month];
} } | public class class_name {
public static int getMonthLength(int year, int month) {
if ((month < 1) || (month > 12)) {
throw new IllegalArgumentException("Invalid month: " + month);
}
if (month == 2) {
return isLeapYear(year) ? 29 : 28; // depends on control dependency: [if], data = [none]
}
return MON... |
public class class_name {
public void putHeadCache(Short key, String value) {
if (headerCache == null) {
synchronized (this) {
if (headerCache == null) {
headerCache = new TwoWayMap<Short, String>();
}
}
}
if (headerCac... | public class class_name {
public void putHeadCache(Short key, String value) {
if (headerCache == null) {
synchronized (this) { // depends on control dependency: [if], data = [none]
if (headerCache == null) {
headerCache = new TwoWayMap<Short, String>(); // depend... |
public class class_name {
public static boolean isValid(@Nullable final String hour) {
if (hour == null) {
return true;
}
return PATTERN.matcher(hour).matches();
} } | public class class_name {
public static boolean isValid(@Nullable final String hour) {
if (hour == null) {
return true; // depends on control dependency: [if], data = [none]
}
return PATTERN.matcher(hour).matches();
} } |
public class class_name {
private double scoreSaveEval(Vec x, List<Double> qi)
{
inputKEvals.clear();
inputKEvals.add(k.eval(0, 0, Arrays.asList(x), qi));
double sum = 0;
for(int i = 0; i < alphas.size(); i++)
{
double k_ix = k.eval(i, x, qi, vecs, accelCache);
... | public class class_name {
private double scoreSaveEval(Vec x, List<Double> qi)
{
inputKEvals.clear();
inputKEvals.add(k.eval(0, 0, Arrays.asList(x), qi));
double sum = 0;
for(int i = 0; i < alphas.size(); i++)
{
double k_ix = k.eval(i, x, qi, vecs, accelCache);
... |
public class class_name {
public Collection<Attribute<?>> getAllAttributes() {
List<Attribute<?>> allAttributes = new ArrayList<Attribute<?>>();
allAttributes.addAll(getAttributes());
Collection<ModelElementType> baseTypes = ModelUtil.calculateAllBaseTypes(this);
for (ModelElementType baseType : baseTy... | public class class_name {
public Collection<Attribute<?>> getAllAttributes() {
List<Attribute<?>> allAttributes = new ArrayList<Attribute<?>>();
allAttributes.addAll(getAttributes());
Collection<ModelElementType> baseTypes = ModelUtil.calculateAllBaseTypes(this);
for (ModelElementType baseType : baseTy... |
public class class_name {
public static JSONArray monitorForHA() {
Map<String, Cache> CACHE = Redis.unmodifiableCache();
JSONArray monitors = new JSONArray();
if (CACHE == null || CACHE.isEmpty())
return monitors;
JSONObject monitor = new JSONObject();
monitor.put... | public class class_name {
public static JSONArray monitorForHA() {
Map<String, Cache> CACHE = Redis.unmodifiableCache();
JSONArray monitors = new JSONArray();
if (CACHE == null || CACHE.isEmpty())
return monitors;
JSONObject monitor = new JSONObject();
monitor.put... |
public class class_name {
private String read(Huff huff, Huff ext, Keep keep) throws JSONException {
Kim kim;
int at = 0;
int allocation = 256;
byte[] bytes = new byte[allocation];
if (bit()) {
return getAndTick(keep, this.bitreader).toString();
}
whi... | public class class_name {
private String read(Huff huff, Huff ext, Keep keep) throws JSONException {
Kim kim;
int at = 0;
int allocation = 256;
byte[] bytes = new byte[allocation];
if (bit()) {
return getAndTick(keep, this.bitreader).toString();
}
whi... |
public class class_name {
public void afterLoading(CollectionProxyDefaultImpl colProxy)
{
if (log.isDebugEnabled()) log.debug("loading a proxied collection a collection: " + colProxy);
Collection data = colProxy.getData();
for (Iterator iterator = data.iterator(); iterator.hasNext();)
... | public class class_name {
public void afterLoading(CollectionProxyDefaultImpl colProxy)
{
if (log.isDebugEnabled()) log.debug("loading a proxied collection a collection: " + colProxy);
Collection data = colProxy.getData();
for (Iterator iterator = data.iterator(); iterator.hasNext();)
... |
public class class_name {
private static void applyAllRecursively(ViewGroup viewGroup, AssetManager assets) {
for (int i = 0, size = viewGroup.getChildCount(); i < size; i++) {
final View childView = viewGroup.getChildAt(i);
if (childView instanceof TextView) {
setTypefa... | public class class_name {
private static void applyAllRecursively(ViewGroup viewGroup, AssetManager assets) {
for (int i = 0, size = viewGroup.getChildCount(); i < size; i++) {
final View childView = viewGroup.getChildAt(i);
if (childView instanceof TextView) {
setTypefa... |
public class class_name {
@SuppressWarnings("checkstyle:all")
protected void generateEcoreDocumentationBuilderImpl() {
final TypeReference builder = getEcoreDocumentationBuilderImpl();
StringConcatenationClient content = new StringConcatenationClient() {
@SuppressWarnings("synthetic-access")
@Override
pr... | public class class_name {
@SuppressWarnings("checkstyle:all")
protected void generateEcoreDocumentationBuilderImpl() {
final TypeReference builder = getEcoreDocumentationBuilderImpl();
StringConcatenationClient content = new StringConcatenationClient() {
@SuppressWarnings("synthetic-access")
@Override
pr... |
public class class_name {
public static StringBuilder build(StringBuilder sb, String app, String id, UserChain.Protocol proto, boolean as) {
boolean mayAs;
if(!(mayAs=sb.length()==0)) {
sb.append(',');
}
sb.append(app);
sb.append(':');
sb.append(id);
sb.append(':');
sb.append(proto.name());
if(as ... | public class class_name {
public static StringBuilder build(StringBuilder sb, String app, String id, UserChain.Protocol proto, boolean as) {
boolean mayAs;
if(!(mayAs=sb.length()==0)) {
sb.append(','); // depends on control dependency: [if], data = [none]
}
sb.append(app);
sb.append(':');
sb.append(id);... |
public class class_name {
public synchronized int getDataStartIndex() {
if (dataStartIndex == null) {
dataStartIndex = 1;
// check all the <tr>'s in the <tbody> until we find the 1st <tr> that has <td>'s. Then we know we have a
// row where the data starts. If there are colu... | public class class_name {
public synchronized int getDataStartIndex() {
if (dataStartIndex == null) {
dataStartIndex = 1; // depends on control dependency: [if], data = [none]
// check all the <tr>'s in the <tbody> until we find the 1st <tr> that has <td>'s. Then we know we have a
... |
public class class_name {
public static BinaryAnnotationMappingDeriver getInstance(String path) {
if (instance == null) {
synchronized (LOCK) {
if (instance == null) {
instance = path == null ? new BinaryAnnotationMappingDeriver() :
ne... | public class class_name {
public static BinaryAnnotationMappingDeriver getInstance(String path) {
if (instance == null) {
synchronized (LOCK) { // depends on control dependency: [if], data = [none]
if (instance == null) {
instance = path == null ? new BinaryAnnot... |
public class class_name {
private Predicate toOrcPredicate(Expression pred) {
if (pred instanceof Or) {
Predicate c1 = toOrcPredicate(((Or) pred).left());
Predicate c2 = toOrcPredicate(((Or) pred).right());
if (c1 == null || c2 == null) {
return null;
} else {
return new OrcRowInputFormat.Or(c1, ... | public class class_name {
private Predicate toOrcPredicate(Expression pred) {
if (pred instanceof Or) {
Predicate c1 = toOrcPredicate(((Or) pred).left());
Predicate c2 = toOrcPredicate(((Or) pred).right());
if (c1 == null || c2 == null) {
return null; // depends on control dependency: [if], data = [none... |
public class class_name {
private String getUserPassword(Object[] args) throws AuthException {
if (args == null)
throw new AuthException("auth error: args is null");
if ((userPasswordPair == null) || userPasswordPair.equals("")) {
try {
StringBuilder sb = new StringBuilder();
if ((args[0] != nu... | public class class_name {
private String getUserPassword(Object[] args) throws AuthException {
if (args == null)
throw new AuthException("auth error: args is null");
if ((userPasswordPair == null) || userPasswordPair.equals("")) {
try {
StringBuilder sb = new StringBuilder();
if ((args[0] != nu... |
public class class_name {
@SuppressWarnings("unchecked")
public <T> T parse(String xml, Class<T> clazz) {
Assert.notNull(clazz);
if (StringUtils.isEmpty(xml)) {
return null;
}
T pojo;
Document document;
// 获取pojo对象的实例
try {
// 没有权限访问... | public class class_name {
@SuppressWarnings("unchecked")
public <T> T parse(String xml, Class<T> clazz) {
Assert.notNull(clazz);
if (StringUtils.isEmpty(xml)) {
return null; // depends on control dependency: [if], data = [none]
}
T pojo;
Document document;
... |
public class class_name {
public void checkHttpURL(String document, String userAgent,
ErrorHandler errorHandler)
throws IOException, SAXException {
CookieHandler.setDefault(
new CookieManager(null, CookiePolicy.ACCEPT_ALL));
validator.reset();
httpRes = n... | public class class_name {
public void checkHttpURL(String document, String userAgent,
ErrorHandler errorHandler)
throws IOException, SAXException {
CookieHandler.setDefault(
new CookieManager(null, CookiePolicy.ACCEPT_ALL));
validator.reset();
httpRes = n... |
public class class_name {
private void migrateMembershipTypes() throws Exception
{
Session session = service.getStorageSession();
try
{
if (session.itemExists(membershipTypesStorageOld))
{
NodeIterator iterator = ((ExtendedNode)session.getItem(membershipTypesStorageOl... | public class class_name {
private void migrateMembershipTypes() throws Exception
{
Session session = service.getStorageSession();
try
{
if (session.itemExists(membershipTypesStorageOld))
{
NodeIterator iterator = ((ExtendedNode)session.getItem(membershipTypesStorageOl... |
public class class_name {
private void storeArgs(Constructor constructor, Array conArgs) {
Class[] pmt = constructor.getParameterTypes();
Object o = conArgs.get(pmt.length + 1, null);
Constructor[] args;
if (o == null) {
args = new Constructor[1];
conArgs.setEL(pmt.length + 1, args);
}
else {
Cons... | public class class_name {
private void storeArgs(Constructor constructor, Array conArgs) {
Class[] pmt = constructor.getParameterTypes();
Object o = conArgs.get(pmt.length + 1, null);
Constructor[] args;
if (o == null) {
args = new Constructor[1];
conArgs.setEL(pmt.length + 1, args);
}
else {
Cons... |
public class class_name {
public void setPassword(final String psw) {
if (StringUtils.isNotBlank(psw)) {
LOGGER.debug("Configured Jasypt password");
jasyptInstance.setPassword(psw);
}
} } | public class class_name {
public void setPassword(final String psw) {
if (StringUtils.isNotBlank(psw)) {
LOGGER.debug("Configured Jasypt password"); // depends on control dependency: [if], data = [none]
jasyptInstance.setPassword(psw); // depends on control dependency: [if], data = [non... |
public class class_name {
public static Properties getPropertiesFromResource(final String name) throws Throwable {
Properties pr = new Properties();
InputStream is = null;
try {
try {
// The jboss?? way - should work for others as well.
ClassLoader cl = Thread.currentThread().getCont... | public class class_name {
public static Properties getPropertiesFromResource(final String name) throws Throwable {
Properties pr = new Properties();
InputStream is = null;
try {
try {
// The jboss?? way - should work for others as well.
ClassLoader cl = Thread.currentThread().getCont... |
public class class_name {
@SuppressWarnings("unchecked")
public void copy(Copier from)
{
if(!(from instanceof Topic))
{
return;
}
Topic<T> topic = (Topic<T>)from;
this.name = topic.name;
this.observerMap = topic.observerMap;
} } | public class class_name {
@SuppressWarnings("unchecked")
public void copy(Copier from)
{
if(!(from instanceof Topic))
{
return;
// depends on control dependency: [if], data = [none]
}
Topic<T> topic = (Topic<T>)from;
this.name = topic.name;
this.observer... |
public class class_name {
private static byte[] getRowKey(final long start_time, final byte[] tsuid) {
if (start_time < 1) {
throw new IllegalArgumentException("The start timestamp has not been set");
}
final long base_time;
if ((start_time & Const.SECOND_MASK) != 0) {
// drop the ms t... | public class class_name {
private static byte[] getRowKey(final long start_time, final byte[] tsuid) {
if (start_time < 1) {
throw new IllegalArgumentException("The start timestamp has not been set");
}
final long base_time;
if ((start_time & Const.SECOND_MASK) != 0) {
// drop the ms t... |
public class class_name {
protected List<CmsProperty> tryAddImageSizeFromSvg(byte[] content, List<CmsProperty> properties) {
if ((content == null) || (content.length == 0)) {
return properties;
}
List<CmsProperty> newProps = properties;
try {
double w = -1, h = ... | public class class_name {
protected List<CmsProperty> tryAddImageSizeFromSvg(byte[] content, List<CmsProperty> properties) {
if ((content == null) || (content.length == 0)) {
return properties; // depends on control dependency: [if], data = [none]
}
List<CmsProperty> newProps = pro... |
public class class_name {
public static void main(String[] urls) throws Exception {
GroovyScriptEngine gse = new GroovyScriptEngine(urls);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
while (true) {
System.out.print("groovy> ");
... | public class class_name {
public static void main(String[] urls) throws Exception {
GroovyScriptEngine gse = new GroovyScriptEngine(urls);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
while (true) {
System.out.print("groovy> ");
... |
public class class_name {
public static List<String> seg(String text, boolean withPunctuation, char... reserve){
List<String> list = new ArrayList<>();
int start = 0;
char[] array = text.toCharArray();
int len = array.length;
outer:for(int i=0; i<len; i++){
char c = ... | public class class_name {
public static List<String> seg(String text, boolean withPunctuation, char... reserve){
List<String> list = new ArrayList<>();
int start = 0;
char[] array = text.toCharArray();
int len = array.length;
outer:for(int i=0; i<len; i++){
char c = ... |
public class class_name {
public Set<String> getSupportedAnnotationTypes() {
SupportedAnnotationTypes sat = this.getClass().getAnnotation(SupportedAnnotationTypes.class);
if (sat == null) {
if (isInitialized())
processingEnv.getMessager().printMessage(Diagno... | public class class_name {
public Set<String> getSupportedAnnotationTypes() {
SupportedAnnotationTypes sat = this.getClass().getAnnotation(SupportedAnnotationTypes.class);
if (sat == null) {
if (isInitialized())
processingEnv.getMessager().printMessage(Diagno... |
public class class_name {
@Override
public void setValue(Object value) throws WidgetException {
try {
if (value instanceof String) {
boolean selected = false;
List<WebElement> elements = findElements();
for (WebElement we : elements) {
... | public class class_name {
@Override
public void setValue(Object value) throws WidgetException {
try {
if (value instanceof String) {
boolean selected = false;
List<WebElement> elements = findElements();
for (WebElement we : elements) {
... |
public class class_name {
@Override
public List<?> getRequestValue(final Request request) {
if (isPresent(request)) {
return getNewSelections(request);
} else {
return getValue();
}
} } | public class class_name {
@Override
public List<?> getRequestValue(final Request request) {
if (isPresent(request)) {
return getNewSelections(request); // depends on control dependency: [if], data = [none]
} else {
return getValue(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void setNodeInfoList(java.util.Collection<NodeInfo> nodeInfoList) {
if (nodeInfoList == null) {
this.nodeInfoList = null;
return;
}
this.nodeInfoList = new java.util.ArrayList<NodeInfo>(nodeInfoList);
} } | public class class_name {
public void setNodeInfoList(java.util.Collection<NodeInfo> nodeInfoList) {
if (nodeInfoList == null) {
this.nodeInfoList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void marshall(CheckpointConfigurationDescription checkpointConfigurationDescription, ProtocolMarshaller protocolMarshaller) {
if (checkpointConfigurationDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(CheckpointConfigurationDescription checkpointConfigurationDescription, ProtocolMarshaller protocolMarshaller) {
if (checkpointConfigurationDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public static String[] getStringArray(String name){
if(getConfiguration().containsKey(name)){
return getConfiguration().getStringArray(name);
}
return null;
} } | public class class_name {
public static String[] getStringArray(String name){
if(getConfiguration().containsKey(name)){
return getConfiguration().getStringArray(name); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void closeConnection() {
if (this.manualMode == false && this.dataSource != null) {
MjdbcUtils.closeQuietly(this.conn);
this.conn = null;
}
} } | public class class_name {
public void closeConnection() {
if (this.manualMode == false && this.dataSource != null) {
MjdbcUtils.closeQuietly(this.conn); // depends on control dependency: [if], data = [none]
this.conn = null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
void updateNeededReplications(BlockInfo blockInfo,
int curReplicasDelta,
int expectedReplicasDelta) {
writeLock();
try {
NumberReplicas repl = countNodes(blockInfo);
int curExpectedReplicas = getReplication(b... | public class class_name {
void updateNeededReplications(BlockInfo blockInfo,
int curReplicasDelta,
int expectedReplicasDelta) {
writeLock();
try {
NumberReplicas repl = countNodes(blockInfo);
int curExpectedReplicas = getReplication(b... |
public class class_name {
public static <T> Predicate<T> predicate(CheckedPredicate<T> function, Consumer<Throwable> handler) {
return t -> {
try {
return function.test(t);
}
catch (Throwable e) {
handler.accept(e);
throw new ... | public class class_name {
public static <T> Predicate<T> predicate(CheckedPredicate<T> function, Consumer<Throwable> handler) {
return t -> {
try {
return function.test(t); // depends on control dependency: [try], data = [none]
}
catch (Throwable e) {
... |
public class class_name {
public void moveSourceToDest(LineNumberReader reader, PrintWriter dataOut)
{
try {
String string;
while ((string = reader.readLine()) != null)
{
if (string.indexOf("/*") != -1)
foundComment = true;
... | public class class_name {
public void moveSourceToDest(LineNumberReader reader, PrintWriter dataOut)
{
try {
String string;
while ((string = reader.readLine()) != null)
{
if (string.indexOf("/*") != -1)
foundComment = true;
... |
public class class_name {
public void unregisterEventID(String eventKey) {
properties.remove(eventKey + "_DESCRIPTION");
properties.remove(eventKey);
FileOutputStream out = null;
BufferedReader reader = null;
BufferedWriter writer = null;
try {
out = new Fi... | public class class_name {
public void unregisterEventID(String eventKey) {
properties.remove(eventKey + "_DESCRIPTION");
properties.remove(eventKey);
FileOutputStream out = null;
BufferedReader reader = null;
BufferedWriter writer = null;
try {
out = new Fi... |
public class class_name {
private static MultiWorkUnit findAndPopBestFitGroup(WorkUnit workUnit, PriorityQueue<MultiWorkUnit> pQueue,
double avgGroupSize) {
List<MultiWorkUnit> fullWorkUnits = Lists.newArrayList();
MultiWorkUnit bestFit = null;
while (!pQueue.isEmpty()) {
MultiWorkUnit candid... | public class class_name {
private static MultiWorkUnit findAndPopBestFitGroup(WorkUnit workUnit, PriorityQueue<MultiWorkUnit> pQueue,
double avgGroupSize) {
List<MultiWorkUnit> fullWorkUnits = Lists.newArrayList();
MultiWorkUnit bestFit = null;
while (!pQueue.isEmpty()) {
MultiWorkUnit candid... |
public class class_name {
public static synchronized String getEquivalentID(String id, int index) {
String result = "";
if (index >= 0) {
UResourceBundle res = openOlsonResource(null, id);
if (res != null) {
int zoneIdx = -1;
try {
... | public class class_name {
public static synchronized String getEquivalentID(String id, int index) {
String result = "";
if (index >= 0) {
UResourceBundle res = openOlsonResource(null, id);
if (res != null) {
int zoneIdx = -1;
try {
... |
public class class_name {
@TCB
static String stripBannedCodeunits(String s) {
int safeLimit = longestPrefixOfGoodCodeunits(s);
if (safeLimit < 0) { return s; }
StringBuilder sb = new StringBuilder(s);
stripBannedCodeunits(sb, safeLimit);
return sb.toString();
} } | public class class_name {
@TCB
static String stripBannedCodeunits(String s) {
int safeLimit = longestPrefixOfGoodCodeunits(s);
if (safeLimit < 0) { return s; } // depends on control dependency: [if], data = [none]
StringBuilder sb = new StringBuilder(s);
stripBannedCodeunits(sb, safeLimit);
retu... |
public class class_name {
public synchronized void start()
{
_buffer=new ByteArrayISO8859Writer(_bufferSize);
_reopen=false;
if (_started)
return;
if (_out==null && _filename!=null)
{
try
{
RolloverFileOutputStream... | public class class_name {
public synchronized void start()
{
_buffer=new ByteArrayISO8859Writer(_bufferSize);
_reopen=false;
if (_started)
return;
if (_out==null && _filename!=null)
{
try
{
RolloverFileOutputStream... |
public class class_name {
@UsedByApp
public void bindContacts(JsDisplayListCallback<JsContact> callback) {
if (callback == null) {
return;
}
messenger.getSharedContactList().subscribe(callback, true);
} } | public class class_name {
@UsedByApp
public void bindContacts(JsDisplayListCallback<JsContact> callback) {
if (callback == null) {
return; // depends on control dependency: [if], data = [none]
}
messenger.getSharedContactList().subscribe(callback, true);
} } |
public class class_name {
public static BufferedImage read(File imageFile) {
try {
return ImageIO.read(imageFile);
} catch (IOException e) {
throw new IORuntimeException(e);
}
} } | public class class_name {
public static BufferedImage read(File imageFile) {
try {
return ImageIO.read(imageFile);
// depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new IORuntimeException(e);
}
// depends on control dependency: [catch], data = [none]
} } |
public class class_name {
private void addRelations(List<RelationHolder> rlHolders, Map<String, Object> values)
{
if (rlHolders != null)
{
for (RelationHolder relation : rlHolders)
{
values.put(relation.getRelationName(), relation.getRelationValue());
... | public class class_name {
private void addRelations(List<RelationHolder> rlHolders, Map<String, Object> values)
{
if (rlHolders != null)
{
for (RelationHolder relation : rlHolders)
{
values.put(relation.getRelationName(), relation.getRelationValue()); // depe... |
public class class_name {
public final URIBuilder encodedPath( String encodedPath )
{
if ( this.path.length() > 0 ) {
if ( this.path.charAt( this.path.length() - 1 ) != '/'
&& !encodedPath.startsWith( SEPARATOR ) ) {
// concatenating /a and b/c
t... | public class class_name {
public final URIBuilder encodedPath( String encodedPath )
{
if ( this.path.length() > 0 ) {
if ( this.path.charAt( this.path.length() - 1 ) != '/'
&& !encodedPath.startsWith( SEPARATOR ) ) {
// concatenating /a and b/c
t... |
public class class_name {
static void mergeUpdate(HashMappedList rowSet, Row row, Object[] newData,
int[] cols) {
Object[] data = (Object[]) rowSet.get(row);
if (data != null) {
for (int j = 0; j < cols.length; j++) {
data[cols[j]] = newData[col... | public class class_name {
static void mergeUpdate(HashMappedList rowSet, Row row, Object[] newData,
int[] cols) {
Object[] data = (Object[]) rowSet.get(row);
if (data != null) {
for (int j = 0; j < cols.length; j++) {
data[cols[j]] = newData[col... |
public class class_name {
public List<CmsContainerPageElementPanel> getModelGroups() {
final List<CmsContainerPageElementPanel> result = Lists.newArrayList();
processPageContent(new I_PageContentVisitor() {
public boolean beginContainer(String name, CmsContainer container) {
... | public class class_name {
public List<CmsContainerPageElementPanel> getModelGroups() {
final List<CmsContainerPageElementPanel> result = Lists.newArrayList();
processPageContent(new I_PageContentVisitor() {
public boolean beginContainer(String name, CmsContainer container) {
... |
public class class_name {
@SuppressWarnings("unchecked")
public static FieldSpec<InjectAnn<?>>[] getInjectSpecs(Class<?> cls) {
FieldSpec<InjectAnn<?>>[] specs = INJECT_SPECS.get(cls);
if (specs == null) {
ArrayList<FieldSpec<InjectAnn<?>>> list = new ArrayList<FieldSpec<InjectAnn<?>>>();
for (Field field :... | public class class_name {
@SuppressWarnings("unchecked")
public static FieldSpec<InjectAnn<?>>[] getInjectSpecs(Class<?> cls) {
FieldSpec<InjectAnn<?>>[] specs = INJECT_SPECS.get(cls);
if (specs == null) {
ArrayList<FieldSpec<InjectAnn<?>>> list = new ArrayList<FieldSpec<InjectAnn<?>>>(); // depends on control... |
public class class_name {
public void setImagesData(List data) {
if (data == null || data.isEmpty()) {
this.setVisibility(GONE);
return;
} else {
this.setVisibility(VISIBLE);
}
if (mMaxSize > 0 && data.size() > mMaxSize) {
data = data.sub... | public class class_name {
public void setImagesData(List data) {
if (data == null || data.isEmpty()) {
this.setVisibility(GONE); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
} else {
this.setVisib... |
public class class_name {
protected void shiftDown(int shift) {
int max = getMaximumVerticalScrollPosition();
if ((m_currentValue + shift) < max) {
setVerticalScrollPosition(m_currentValue + shift);
} else {
setVerticalScrollPosition(max);
}
} } | public class class_name {
protected void shiftDown(int shift) {
int max = getMaximumVerticalScrollPosition();
if ((m_currentValue + shift) < max) {
setVerticalScrollPosition(m_currentValue + shift);
// depends on control dependency: [if], data = [none]
} else {
se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.