code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static double[][] transposeTimes(final double[] v1, final double[][] m2) {
assert m2.length == v1.length : ERR_MATRIX_INNERDIM;
final int columndimension = m2[0].length;
final double[][] re = new double[1][columndimension];
for(int j = 0; j < columndimension; j++) {
... | public class class_name {
public static double[][] transposeTimes(final double[] v1, final double[][] m2) {
assert m2.length == v1.length : ERR_MATRIX_INNERDIM;
final int columndimension = m2[0].length;
final double[][] re = new double[1][columndimension];
for(int j = 0; j < columndimension; j++) {
... |
public class class_name {
public JsonNode toJson(Object object) throws IOException {
if (object instanceof SBase) {
SBase base = (SBase) object;
ObjectNode jsonObject = OBJECT_MAPPER.createObjectNode();
jsonObject.put("__type", base.getSClass().getSimpleName());
for (SField field : base.getSClass().getAl... | public class class_name {
public JsonNode toJson(Object object) throws IOException {
if (object instanceof SBase) {
SBase base = (SBase) object;
ObjectNode jsonObject = OBJECT_MAPPER.createObjectNode();
jsonObject.put("__type", base.getSClass().getSimpleName());
for (SField field : base.getSClass().getAl... |
public class class_name {
public ActionExecute findActionExecute(String paramPath) { // null allowed when not found
for (ActionExecute execute : executeMap.values()) {
if (execute.determineTargetByPathParameter(paramPath)) {
return execute;
}
}
return nul... | public class class_name {
public ActionExecute findActionExecute(String paramPath) { // null allowed when not found
for (ActionExecute execute : executeMap.values()) {
if (execute.determineTargetByPathParameter(paramPath)) {
return execute; // depends on control dependency: [if], da... |
public class class_name {
public void addChildren( AstNode first,
AstNode second,
AstNode third ) {
if (first != null) {
this.addLastChild(first);
}
if (second != null) {
this.addLastChild(second);
}
... | public class class_name {
public void addChildren( AstNode first,
AstNode second,
AstNode third ) {
if (first != null) {
this.addLastChild(first); // depends on control dependency: [if], data = [(first]
}
if (second != null) ... |
public class class_name {
public static List<Future> getAllDone(Collection<Future> futures) {
List<Future> doneFutures = new ArrayList<Future>();
for (Future f : futures) {
if (f.isDone()) {
doneFutures.add(f);
}
}
return doneFutures;
} } | public class class_name {
public static List<Future> getAllDone(Collection<Future> futures) {
List<Future> doneFutures = new ArrayList<Future>();
for (Future f : futures) {
if (f.isDone()) {
doneFutures.add(f); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static base_responses delete(nitro_service client, String kcdaccount[]) throws Exception {
base_responses result = null;
if (kcdaccount != null && kcdaccount.length > 0) {
aaakcdaccount deleteresources[] = new aaakcdaccount[kcdaccount.length];
for (int i=0;i<kcdaccount.length... | public class class_name {
public static base_responses delete(nitro_service client, String kcdaccount[]) throws Exception {
base_responses result = null;
if (kcdaccount != null && kcdaccount.length > 0) {
aaakcdaccount deleteresources[] = new aaakcdaccount[kcdaccount.length];
for (int i=0;i<kcdaccount.length... |
public class class_name {
private static EntityPatcher<BuildConfig> bcPatcher() {
return (KubernetesClient client, String namespace, BuildConfig newObj, BuildConfig oldObj) -> {
if (UserConfigurationCompare.configEqual(newObj, oldObj)) {
return oldObj;
}
Open... | public class class_name {
private static EntityPatcher<BuildConfig> bcPatcher() {
return (KubernetesClient client, String namespace, BuildConfig newObj, BuildConfig oldObj) -> {
if (UserConfigurationCompare.configEqual(newObj, oldObj)) {
return oldObj;
}
Open... |
public class class_name {
public EList<JvmTypeReference> getParamTypes()
{
if (paramTypes == null)
{
paramTypes = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class, this, XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES);
}
return paramTypes;
} } | public class class_name {
public EList<JvmTypeReference> getParamTypes()
{
if (paramTypes == null)
{
paramTypes = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class, this, XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES); // depends on control dependency: [if], data = [none]
}
return paramTy... |
public class class_name {
public void marshall(BackupPlansListMember backupPlansListMember, ProtocolMarshaller protocolMarshaller) {
if (backupPlansListMember == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(BackupPlansListMember backupPlansListMember, ProtocolMarshaller protocolMarshaller) {
if (backupPlansListMember == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public void marshall(GetSizeConstraintSetRequest getSizeConstraintSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getSizeConstraintSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetSizeConstraintSetRequest getSizeConstraintSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getSizeConstraintSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void gotoFreshPosWritable0(int oldIndex, int newIndex, int xor) { // goto block start pos
//noinspection StatementWithEmptyBody
if (xor < (1 << 5)) { // level = 0
} else if (xor < (1 << 10)) { // level = 1
if (depth == 1) {
display1 =... | public class class_name {
public void gotoFreshPosWritable0(int oldIndex, int newIndex, int xor) { // goto block start pos
//noinspection StatementWithEmptyBody
if (xor < (1 << 5)) { // level = 0
} else if (xor < (1 << 10)) { // level = 1
if (depth == 1) {
display1 =... |
public class class_name {
protected void associateBatched(Collection owners, Collection children)
{
CollectionDescriptor cds = getCollectionDescriptor();
PersistentField field = cds.getPersistentField();
PersistenceBroker pb = getBroker();
Class ownerTopLevelClass = pb.getTopLe... | public class class_name {
protected void associateBatched(Collection owners, Collection children)
{
CollectionDescriptor cds = getCollectionDescriptor();
PersistentField field = cds.getPersistentField();
PersistenceBroker pb = getBroker();
Class ownerTopLevelClass = pb.getTopLe... |
public class class_name {
@Override
public void onFailure(Response response, Throwable t, JSONObject extendedInfo) {
if (isAuthorizationRequired(response)) {
processResponseWrapper(response, true);
} else {
listener.onFailure(response, t, extendedInfo);
}
} } | public class class_name {
@Override
public void onFailure(Response response, Throwable t, JSONObject extendedInfo) {
if (isAuthorizationRequired(response)) {
processResponseWrapper(response, true); // depends on control dependency: [if], data = [none]
} else {
listener.onFai... |
public class class_name {
@Override
public IoBuffer fill(byte value, int size) {
autoExpand(size);
int q = size >>> 3;
int r = size & 7;
if (q > 0) {
int intValue = value | value << 8 | value << 16 | value << 24;
long longValue = intValue;
longValue <<= 32;
longValue |= intVa... | public class class_name {
@Override
public IoBuffer fill(byte value, int size) {
autoExpand(size);
int q = size >>> 3;
int r = size & 7;
if (q > 0) {
int intValue = value | value << 8 | value << 16 | value << 24;
long longValue = intValue;
longValue <<= 32; // depends on control de... |
public class class_name {
public UpdateUserPoolRequest withAutoVerifiedAttributes(String... autoVerifiedAttributes) {
if (this.autoVerifiedAttributes == null) {
setAutoVerifiedAttributes(new java.util.ArrayList<String>(autoVerifiedAttributes.length));
}
for (String ele : autoVerifie... | public class class_name {
public UpdateUserPoolRequest withAutoVerifiedAttributes(String... autoVerifiedAttributes) {
if (this.autoVerifiedAttributes == null) {
setAutoVerifiedAttributes(new java.util.ArrayList<String>(autoVerifiedAttributes.length)); // depends on control dependency: [if], data = ... |
public class class_name {
private void initializeModuleScope(Node moduleBody, Module module, TypedScope moduleScope) {
if (module.metadata().isGoogModule()) {
declareExportsInModuleScope(module, moduleBody, moduleScope);
markGoogModuleExportsAsConst(module);
}
} } | public class class_name {
private void initializeModuleScope(Node moduleBody, Module module, TypedScope moduleScope) {
if (module.metadata().isGoogModule()) {
declareExportsInModuleScope(module, moduleBody, moduleScope); // depends on control dependency: [if], data = [none]
markGoogModuleExportsAsConst... |
public class class_name {
@Override
public Map<String, Object> toSource() {
Map<String, Object> sourceMap = new HashMap<>();
if (createdBy != null) {
addFieldToSource(sourceMap, "createdBy", createdBy);
}
if (createdTime != null) {
addFieldToSource(sourceMap,... | public class class_name {
@Override
public Map<String, Object> toSource() {
Map<String, Object> sourceMap = new HashMap<>();
if (createdBy != null) {
addFieldToSource(sourceMap, "createdBy", createdBy); // depends on control dependency: [if], data = [none]
}
if (createdT... |
public class class_name {
public static void addGroupsToStructure(Structure s, Collection<Group> groups, int model, boolean clone) {
Chain chainGuess = null;
for(Group g : groups) {
chainGuess = addGroupToStructure(s, g, model, chainGuess, clone);
}
} } | public class class_name {
public static void addGroupsToStructure(Structure s, Collection<Group> groups, int model, boolean clone) {
Chain chainGuess = null;
for(Group g : groups) {
chainGuess = addGroupToStructure(s, g, model, chainGuess, clone); // depends on control dependency: [for], data = [g]
}
} } |
public class class_name {
public BaseMethodBinding<?> getBinding(RestOperationTypeEnum operationType, String theBindingKey) {
String bindingKey = StringUtils.defaultIfBlank(theBindingKey, DEFAULT_METHOD_KEY);
ConcurrentHashMap<String, BaseMethodBinding<?>> map = getMapForOperation(operationType);
if(... | public class class_name {
public BaseMethodBinding<?> getBinding(RestOperationTypeEnum operationType, String theBindingKey) {
String bindingKey = StringUtils.defaultIfBlank(theBindingKey, DEFAULT_METHOD_KEY);
ConcurrentHashMap<String, BaseMethodBinding<?>> map = getMapForOperation(operationType);
if(... |
public class class_name {
private String getAttributeBodyType(Node n, String name) {
if (n instanceof Node.CustomTag) {
TagInfo tagInfo = ((Node.CustomTag)n).getTagInfo();
TagAttributeInfo[] tldAttrs = tagInfo.getAttributes();
for (int i=0; i<tldAttrs.length; i++) {
if (name.equals(tldAttrs[i].getNa... | public class class_name {
private String getAttributeBodyType(Node n, String name) {
if (n instanceof Node.CustomTag) {
TagInfo tagInfo = ((Node.CustomTag)n).getTagInfo();
TagAttributeInfo[] tldAttrs = tagInfo.getAttributes();
for (int i=0; i<tldAttrs.length; i++) {
if (name.equals(tldAttrs[i].getNa... |
public class class_name {
private void handleStubDefinition(NodeTraversal t, Node n) {
if (!t.inGlobalHoistScope()) {
return;
}
JSDocInfo info = n.getFirstChild().getJSDocInfo();
boolean hasStubDefinition = info != null && (n.isFromExterns() || info.hasTypedefType());
if (hasStubDefinition) {... | public class class_name {
private void handleStubDefinition(NodeTraversal t, Node n) {
if (!t.inGlobalHoistScope()) {
return; // depends on control dependency: [if], data = [none]
}
JSDocInfo info = n.getFirstChild().getJSDocInfo();
boolean hasStubDefinition = info != null && (n.isFromExterns() |... |
public class class_name {
public CompletableFuture<Void> close() {
for (OperationAttempt attempt : new ArrayList<>(attempts.values())) {
attempt.fail(new ClosedSessionException("session closed"));
}
attempts.clear();
return CompletableFuture.completedFuture(null);
} } | public class class_name {
public CompletableFuture<Void> close() {
for (OperationAttempt attempt : new ArrayList<>(attempts.values())) {
attempt.fail(new ClosedSessionException("session closed")); // depends on control dependency: [for], data = [attempt]
}
attempts.clear();
return CompletableFutu... |
public class class_name {
private void bfs(int v, int[] cc, int id) {
cc[v] = id;
Queue<Integer> queue = new LinkedList<>();
queue.offer(v);
while (!queue.isEmpty()) {
int t = queue.poll();
for (int i = 0; i < n; i++) {
if (graph[t][i] != 0.0 && c... | public class class_name {
private void bfs(int v, int[] cc, int id) {
cc[v] = id;
Queue<Integer> queue = new LinkedList<>();
queue.offer(v);
while (!queue.isEmpty()) {
int t = queue.poll();
for (int i = 0; i < n; i++) {
if (graph[t][i] != 0.0 && c... |
public class class_name {
static void dump(@Nullable String title) {
if (title != null && title.length() > 0) {
System.out.printf("Start TransmittableThreadLocal[%s] Dump...\n", title);
} else {
System.out.println("Start TransmittableThreadLocal Dump...");
}
for... | public class class_name {
static void dump(@Nullable String title) {
if (title != null && title.length() > 0) {
System.out.printf("Start TransmittableThreadLocal[%s] Dump...\n", title); // depends on control dependency: [if], data = [none]
} else {
System.out.println("Start Tran... |
public class class_name {
@Override
public <E> E search(final Object searchableAnnotatedObject) {
try {
return search(this.<E>asList(searchableAnnotatedObject, configureMatcher(getSearchableMetaData(
searchableAnnotatedObject))));
}
finally {
MatcherHolder.unset();
}
} } | public class class_name {
@Override
public <E> E search(final Object searchableAnnotatedObject) {
try {
return search(this.<E>asList(searchableAnnotatedObject, configureMatcher(getSearchableMetaData(
searchableAnnotatedObject)))); // depends on control dependency: [try], data = [none]
}
fin... |
public class class_name {
protected LocPathIterator changePartToRef(final QName uniquePseudoVarName, WalkingIterator wi,
final int numSteps, final boolean isGlobal)
{
Variable var = new Variable();
var.setQName(uniquePseudoVarName);
var.setIsGlobal(isGlobal);
if(isGlobal... | public class class_name {
protected LocPathIterator changePartToRef(final QName uniquePseudoVarName, WalkingIterator wi,
final int numSteps, final boolean isGlobal)
{
Variable var = new Variable();
var.setQName(uniquePseudoVarName);
var.setIsGlobal(isGlobal);
if(isGlobal... |
public class class_name {
public Set<String> getInlinkAnchors(Page page)
throws WikiTitleParsingException
{
Set<String> inAnchors = new HashSet<String>();
for (Page p : page.getInlinks()) {
ParsedPage pp = parser.parse(p.getText());
if (pp == null) {
return inAnchors;
}
for (Link l : pp.getLinks... | public class class_name {
public Set<String> getInlinkAnchors(Page page)
throws WikiTitleParsingException
{
Set<String> inAnchors = new HashSet<String>();
for (Page p : page.getInlinks()) {
ParsedPage pp = parser.parse(p.getText());
if (pp == null) {
return inAnchors;
}
for (Link l : pp.getLinks... |
public class class_name {
public static EpochTransitionRecord computeEpochTransition(EpochRecord currentEpoch, List<Long> segmentsToSeal,
List<Map.Entry<Double, Double>> newRanges, long scaleTimestamp) {
Preconditions.checkState(segmentsToSeal.stre... | public class class_name {
public static EpochTransitionRecord computeEpochTransition(EpochRecord currentEpoch, List<Long> segmentsToSeal,
List<Map.Entry<Double, Double>> newRanges, long scaleTimestamp) {
Preconditions.checkState(segmentsToSeal.stre... |
public class class_name {
private static ValueMap toValueMap(Resource resource) {
ValueMap propertyMap = resource.adaptTo(ValueMap.class);
if (propertyMap != null) {
propertyMap = new PrimitiveSupportingValueMap(propertyMap);
}
return propertyMap;
} } | public class class_name {
private static ValueMap toValueMap(Resource resource) {
ValueMap propertyMap = resource.adaptTo(ValueMap.class);
if (propertyMap != null) {
propertyMap = new PrimitiveSupportingValueMap(propertyMap); // depends on control dependency: [if], data = [(propertyMap]
... |
public class class_name {
public void cancel(Exception reason) {
// IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be
// syncing here, so we don't do the channel.cancel if the request is processing
// future.complete() on another thread at the same time. S... | public class class_name {
public void cancel(Exception reason) {
// IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be
// syncing here, so we don't do the channel.cancel if the request is processing
// future.complete() on another thread at the same time. S... |
public class class_name {
public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) {
Validator.notNull(deleteWordOptions, "deleteWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { deleteWordOptions.customizationId(), deleteWor... | public class class_name {
public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) {
Validator.notNull(deleteWordOptions, "deleteWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { deleteWordOptions.customizationId(), deleteWor... |
public class class_name {
@Override
public boolean supports(TherianContext context, Copy<? extends Object, ? extends Map> copy) {
if (!super.supports(context, copy)) {
return false;
}
final Type targetKeyType = getKeyType(copy.getTargetPosition());
final Position.R... | public class class_name {
@Override
public boolean supports(TherianContext context, Copy<? extends Object, ? extends Map> copy) {
if (!super.supports(context, copy)) {
return false;
// depends on control dependency: [if], data = [none]
}
final Type targetKeyType = getKeyTyp... |
public class class_name {
private synchronized void addLastTime(File wordsFile) {
if(wordsFile != null) {
wordsLastTime.put(wordsFile, wordsFile.lastModified());
}
} } | public class class_name {
private synchronized void addLastTime(File wordsFile) {
if(wordsFile != null) {
wordsLastTime.put(wordsFile, wordsFile.lastModified());
// depends on control dependency: [if], data = [(wordsFile]
}
} } |
public class class_name {
public static RejectedExecutionHandler backoff(final int retries, long backoffAmount, TimeUnit unit) {
ObjectUtil.checkPositive(retries, "retries");
final long backOffNanos = unit.toNanos(backoffAmount);
return new RejectedExecutionHandler() {
@Override
... | public class class_name {
public static RejectedExecutionHandler backoff(final int retries, long backoffAmount, TimeUnit unit) {
ObjectUtil.checkPositive(retries, "retries");
final long backOffNanos = unit.toNanos(backoffAmount);
return new RejectedExecutionHandler() {
@Override
... |
public class class_name {
public EEnum getIfcTextPath() {
if (ifcTextPathEEnum == null) {
ifcTextPathEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(913);
}
return ifcTextPathEEnum;
} } | public class class_name {
public EEnum getIfcTextPath() {
if (ifcTextPathEEnum == null) {
ifcTextPathEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(913);
// depends on control dependency: [if], data = [none]
}
return ifcTextPathEEnum;
} } |
public class class_name {
private static String getConfValue(String defaultValue, String keySuffix,
Configuration conf, String... keys) {
String value = null;
for (String key : keys) {
if (keySuffix != null) {
key += "." + keySuffix;
}
value = conf.get(key);
if (value != n... | public class class_name {
private static String getConfValue(String defaultValue, String keySuffix,
Configuration conf, String... keys) {
String value = null;
for (String key : keys) {
if (keySuffix != null) {
key += "." + keySuffix; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected IDbgpBreakpoint[] parseBreakpointsResponse(Element response)
{
List<IDbgpBreakpoint> list = new ArrayList<IDbgpBreakpoint>();
NodeList breakpoints = response.getElementsByTagName(BREAKPOINT_TAG);
for (int i = 0; i < breakpoints.getLength(); ++i)
{
list.add(DbgpXmlEntity... | public class class_name {
protected IDbgpBreakpoint[] parseBreakpointsResponse(Element response)
{
List<IDbgpBreakpoint> list = new ArrayList<IDbgpBreakpoint>();
NodeList breakpoints = response.getElementsByTagName(BREAKPOINT_TAG);
for (int i = 0; i < breakpoints.getLength(); ++i)
{
list.add(DbgpXmlEntity... |
public class class_name {
public void marshall(CampaignLimits campaignLimits, ProtocolMarshaller protocolMarshaller) {
if (campaignLimits == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(campaignLi... | public class class_name {
public void marshall(CampaignLimits campaignLimits, ProtocolMarshaller protocolMarshaller) {
if (campaignLimits == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(campaignLi... |
public class class_name {
@Override
public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) {
if (jsonContext.isSupportedType(type.getRawClass())) {
return createSerializer();
}
return null;
} } | public class class_name {
@Override
public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) {
if (jsonContext.isSupportedType(type.getRawClass())) {
return createSerializer(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void addChildElements() {
for (Node node : nodes) {
if(node instanceof NestableNode) {
List<Node> nl = ((NestableNode) node).getChildren();
for (Node n : nl) {
if (!(n instanceof Element)) {
continue;
... | public class class_name {
private void addChildElements() {
for (Node node : nodes) {
if(node instanceof NestableNode) {
List<Node> nl = ((NestableNode) node).getChildren();
for (Node n : nl) {
if (!(n instanceof Element)) {
continue;
... |
public class class_name {
public void setTitle(CharSequence title){
if(mConstruct != null && !mConstruct.getDesign().isMaterial()){
// Modify the dialog's title element
getDialog().setTitle(title);
}else{
if(mTitle != null){
mTitle.setText(title);
... | public class class_name {
public void setTitle(CharSequence title){
if(mConstruct != null && !mConstruct.getDesign().isMaterial()){
// Modify the dialog's title element
getDialog().setTitle(title); // depends on control dependency: [if], data = [none]
}else{
if(mTitl... |
public class class_name {
public static void format(LogData logData, SimpleLogHandler receiver) {
Metadata metadata = logData.getMetadata();
Throwable thrown = metadata.findValue(LogContext.Key.LOG_CAUSE);
// Either no metadata, or exactly one "cause" means we don't need to do additional formatting.
//... | public class class_name {
public static void format(LogData logData, SimpleLogHandler receiver) {
Metadata metadata = logData.getMetadata();
Throwable thrown = metadata.findValue(LogContext.Key.LOG_CAUSE);
// Either no metadata, or exactly one "cause" means we don't need to do additional formatting.
//... |
public class class_name {
public EnvironmentImage withVersions(String... versions) {
if (this.versions == null) {
setVersions(new java.util.ArrayList<String>(versions.length));
}
for (String ele : versions) {
this.versions.add(ele);
}
return this;
} } | public class class_name {
public EnvironmentImage withVersions(String... versions) {
if (this.versions == null) {
setVersions(new java.util.ArrayList<String>(versions.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : versions) {
this.ver... |
public class class_name {
public void marshall(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest, ProtocolMarshaller protocolMarshaller) {
if (scheduleKeyDeletionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest, ProtocolMarshaller protocolMarshaller) {
if (scheduleKeyDeletionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
private static String factorizeFullness(long bitmapCardinality, long numRows)
{
if (bitmapCardinality == 0) {
return "0";
} else if (bitmapCardinality == numRows) {
return "1";
} else {
double fullness = bitmapCardinality / (double) numRows;
int index = A... | public class class_name {
private static String factorizeFullness(long bitmapCardinality, long numRows)
{
if (bitmapCardinality == 0) {
return "0"; // depends on control dependency: [if], data = [none]
} else if (bitmapCardinality == numRows) {
return "1"; // depends on control dependency: [if], ... |
public class class_name {
public Set<String> getSupportedUriSchemes() {
Set<String> schemes = new HashSet<>();
for (ConfigFileLoaderPlugin loaderPlugin: this.getLoaderPlugins()) {
schemes.add(loaderPlugin.getUriScheme());
}
return schemes;
} } | public class class_name {
public Set<String> getSupportedUriSchemes() {
Set<String> schemes = new HashSet<>();
for (ConfigFileLoaderPlugin loaderPlugin: this.getLoaderPlugins()) {
schemes.add(loaderPlugin.getUriScheme()); // depends on control dependency: [for], data = [loaderPlugin]
... |
public class class_name {
public void marshall(PipelineMetadata pipelineMetadata, ProtocolMarshaller protocolMarshaller) {
if (pipelineMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(pipe... | public class class_name {
public void marshall(PipelineMetadata pipelineMetadata, ProtocolMarshaller protocolMarshaller) {
if (pipelineMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(pipe... |
public class class_name {
private Assignment createAssignment(final LNGBooleanVector vec, final LNGIntVector relevantIndices) {
final Assignment model = new Assignment();
if (relevantIndices == null) {
for (int i = 0; i < vec.size(); i++) {
model.addLiteral(this.f.literal(this.solver.nameForIdx(i... | public class class_name {
private Assignment createAssignment(final LNGBooleanVector vec, final LNGIntVector relevantIndices) {
final Assignment model = new Assignment();
if (relevantIndices == null) {
for (int i = 0; i < vec.size(); i++) {
model.addLiteral(this.f.literal(this.solver.nameForIdx(i... |
public class class_name {
@Override
public void write(Batch batch) throws StageException {
Iterator<Record> it = batch.getRecords();
if (it.hasNext()) {
while (it.hasNext()) {
Record record = it.next();
try {
write(record);
} catch (OnRecordErrorException ex) {
... | public class class_name {
@Override
public void write(Batch batch) throws StageException {
Iterator<Record> it = batch.getRecords();
if (it.hasNext()) {
while (it.hasNext()) {
Record record = it.next();
try {
write(record); // depends on control dependency: [try], data = [none... |
public class class_name {
private static List<MediaType> consumableMediaTypes(Method method, Class<?> clazz) {
List<Consumes> consumes = findAll(method, Consumes.class);
List<ConsumeType> consumeTypes = findAll(method, ConsumeType.class);
if (consumes.isEmpty() && consumeTypes.isEmpty()) {
... | public class class_name {
private static List<MediaType> consumableMediaTypes(Method method, Class<?> clazz) {
List<Consumes> consumes = findAll(method, Consumes.class);
List<ConsumeType> consumeTypes = findAll(method, ConsumeType.class);
if (consumes.isEmpty() && consumeTypes.isEmpty()) {
... |
public class class_name {
public String escapeXml(final Object target) {
if (target == null) {
return null;
}
return StringUtils.escapeXml(target);
} } | public class class_name {
public String escapeXml(final Object target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
return StringUtils.escapeXml(target);
} } |
public class class_name {
private static void markClusterEndPoints_(int geometry,
TopoGraph topoGraph, int clusterIndex) {
int id = topoGraph.getGeometryID(geometry);
for (int cluster = topoGraph.getFirstCluster(); cluster != -1; cluster = topoGraph.getNextCluster(cluster))
{
in... | public class class_name {
private static void markClusterEndPoints_(int geometry,
TopoGraph topoGraph, int clusterIndex) {
int id = topoGraph.getGeometryID(geometry);
for (int cluster = topoGraph.getFirstCluster(); cluster != -1; cluster = topoGraph.getNextCluster(cluster))
{
in... |
public class class_name {
protected int getAccessTokenValiditySeconds(OAuth2Request clientAuth) {
if (clientDetailsService != null) {
ClientDetails client = clientDetailsService.loadClientByClientId(clientAuth.getClientId());
Integer validity = client.getAccessTokenValiditySeconds();
if (validity != null) {... | public class class_name {
protected int getAccessTokenValiditySeconds(OAuth2Request clientAuth) {
if (clientDetailsService != null) {
ClientDetails client = clientDetailsService.loadClientByClientId(clientAuth.getClientId());
Integer validity = client.getAccessTokenValiditySeconds();
if (validity != null) {... |
public class class_name {
protected String lookupEeApplicationName() {
try {
InitialContext initialContext = new InitialContext();
String appName = (String) initialContext.lookup(JAVA_APP_APP_NAME_PATH);
String moduleName = (String) initialContext.lookup(MODULE_NAME_PATH);
// make sure t... | public class class_name {
protected String lookupEeApplicationName() {
try {
InitialContext initialContext = new InitialContext();
String appName = (String) initialContext.lookup(JAVA_APP_APP_NAME_PATH);
String moduleName = (String) initialContext.lookup(MODULE_NAME_PATH);
// make sure t... |
public class class_name {
@SuppressWarnings("unchecked")
public T addTag(String tag) {
if (this.tags_ == null) {
tags_ = new ArrayList<>();
}
this.tags_.add(tag);
return (T) this;
} } | public class class_name {
@SuppressWarnings("unchecked")
public T addTag(String tag) {
if (this.tags_ == null) {
tags_ = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
this.tags_.add(tag);
return (T) this;
} } |
public class class_name {
public static SyncPlan computeSyncPlan(Inode inode, Fingerprint ufsFingerprint,
boolean containsMountPoint) {
Fingerprint inodeFingerprint = Fingerprint.parse(inode.getUfsFingerprint());
boolean isContentSynced = inodeUfsIsContentSynced(inode, inodeFingerprint, ufsFingerprint);... | public class class_name {
public static SyncPlan computeSyncPlan(Inode inode, Fingerprint ufsFingerprint,
boolean containsMountPoint) {
Fingerprint inodeFingerprint = Fingerprint.parse(inode.getUfsFingerprint());
boolean isContentSynced = inodeUfsIsContentSynced(inode, inodeFingerprint, ufsFingerprint);... |
public class class_name {
public boolean removeDivider(String text) {
for (int k = 0; k < list.getWidgetCount(); k++) {
Widget w = list.getWidget(k);
if (isDivider(w) && w.getElement().getInnerText().equals(text)) {
list.remove(k);
items.remove(k);
... | public class class_name {
public boolean removeDivider(String text) {
for (int k = 0; k < list.getWidgetCount(); k++) {
Widget w = list.getWidget(k);
if (isDivider(w) && w.getElement().getInnerText().equals(text)) {
list.remove(k); // depends on control dependency: [if],... |
public class class_name {
private void calc(int x, int y) {
double d;
int dIndex;
int index;
for (int alpha = 0; alpha < (this.cSteps - 1); alpha++) {
d = y * this.cCosA[alpha] - x * this.cSinA[alpha];
dIndex = (int) (d - this.cDMin);
index = dIndex ... | public class class_name {
private void calc(int x, int y) {
double d;
int dIndex;
int index;
for (int alpha = 0; alpha < (this.cSteps - 1); alpha++) {
d = y * this.cCosA[alpha] - x * this.cSinA[alpha]; // depends on control dependency: [for], data = [alpha]
dInd... |
public class class_name {
private static void setContentLength(HttpRequest req, HttpHeaders headers, int contentLength) {
// https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
// prohibits to send message body for below cases.
// and in those cases, content should be empty.
i... | public class class_name {
private static void setContentLength(HttpRequest req, HttpHeaders headers, int contentLength) {
// https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
// prohibits to send message body for below cases.
// and in those cases, content should be empty.
i... |
public class class_name {
public GSection setNotifications(int notifications) {
String textNotification;
textNotification = String.valueOf(notifications);
if(notifications < 1) {
textNotification = "";
}
if(notifications > 99) {
textNotification = "99+"... | public class class_name {
public GSection setNotifications(int notifications) {
String textNotification;
textNotification = String.valueOf(notifications);
if(notifications < 1) {
textNotification = ""; // depends on control dependency: [if], data = [none]
}
if(noti... |
public class class_name {
public void marshall(IssueCertificateRequest issueCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (issueCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(IssueCertificateRequest issueCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (issueCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public static void histogram( GrayF32 input , float minValue , int histogram[] ) {
if( BoofConcurrency.USE_CONCURRENT ) {
ImplImageStatistics_MT.histogram(input,minValue,histogram);
} else {
ImplImageStatistics.histogram(input,minValue,histogram);
}
} } | public class class_name {
public static void histogram( GrayF32 input , float minValue , int histogram[] ) {
if( BoofConcurrency.USE_CONCURRENT ) {
ImplImageStatistics_MT.histogram(input,minValue,histogram); // depends on control dependency: [if], data = [none]
} else {
ImplImageStatistics.histogram(input,mi... |
public class class_name {
private void go(Reader r) throws IOException {
BufferedReader reader;
if (r instanceof BufferedReader)
reader = (BufferedReader)r;
else
reader = new BufferedReader(r);
doc.startDocument();
while(true) {
// read a new character... | public class class_name {
private void go(Reader r) throws IOException {
BufferedReader reader;
if (r instanceof BufferedReader)
reader = (BufferedReader)r;
else
reader = new BufferedReader(r);
doc.startDocument();
while(true) {
// read a new character... |
public class class_name {
public static String tryGetCanonicalPathElseGetAbsolutePath(File file) {
try {
return file.getCanonicalPath();
}
catch (IOException ignore) {
return file.getAbsolutePath();
}
} } | public class class_name {
public static String tryGetCanonicalPathElseGetAbsolutePath(File file) {
try {
return file.getCanonicalPath(); // depends on control dependency: [try], data = [none]
}
catch (IOException ignore) {
return file.getAbsolutePath();
} // depends on control dependency: [... |
public class class_name {
protected LinkedList<double[]> computeScoreList(Table table, int current)
{
LinkedList<double[]> scoreList = new LinkedList<double[]>();
for (FeatureTemplate featureTemplate : featureTemplateList)
{
char[] o = featureTemplate.generateParameter(table, cu... | public class class_name {
protected LinkedList<double[]> computeScoreList(Table table, int current)
{
LinkedList<double[]> scoreList = new LinkedList<double[]>();
for (FeatureTemplate featureTemplate : featureTemplateList)
{
char[] o = featureTemplate.generateParameter(table, cu... |
public class class_name {
private void reload() {
try {
if (!configFile.exists()) {
LOGGER.warn("Config file deleted " + configFile + ", keeping old config.");
return;
}
LOGGER.trace("Config reload triggered for " + configFile);
if... | public class class_name {
private void reload() {
try {
if (!configFile.exists()) {
LOGGER.warn("Config file deleted " + configFile + ", keeping old config."); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data ... |
public class class_name {
public static String replaceExpression(String pValue) {
if (pValue == null) {
return null;
}
Matcher matcher = EXPRESSION_EXTRACTOR.matcher(pValue);
StringBuffer ret = new StringBuffer();
try {
while (matcher.find()) {
... | public class class_name {
public static String replaceExpression(String pValue) {
if (pValue == null) {
return null; // depends on control dependency: [if], data = [none]
}
Matcher matcher = EXPRESSION_EXTRACTOR.matcher(pValue);
StringBuffer ret = new StringBuffer();
... |
public class class_name {
public final Object evaluateString(Scriptable scope, String source,
String sourceName, int lineno,
Object securityDomain)
{
Script script = compileString(source, sourceName, lineno,
... | public class class_name {
public final Object evaluateString(Scriptable scope, String source,
String sourceName, int lineno,
Object securityDomain)
{
Script script = compileString(source, sourceName, lineno,
... |
public class class_name {
public static Result update(Long id) {
Form<Computer> computerForm = form(Computer.class).bindFromRequest();
if(computerForm.hasErrors()) {
return badRequest(editForm.render(id, computerForm));
}
computerForm.get().update(id);
flash("success... | public class class_name {
public static Result update(Long id) {
Form<Computer> computerForm = form(Computer.class).bindFromRequest();
if(computerForm.hasErrors()) {
return badRequest(editForm.render(id, computerForm)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void markAsVisited(final Field field) {
if (field.getAnnotation(Requires.class) != null) {
this.dependantsInJson.add(field);
}
final Field dependant = this.requirementToDependantMap.get(field.getName());
if (dependant != null) {
... | public class class_name {
public void markAsVisited(final Field field) {
if (field.getAnnotation(Requires.class) != null) {
this.dependantsInJson.add(field); // depends on control dependency: [if], data = [none]
}
final Field dependant = this.requirementToDependantMap.get(field.get... |
public class class_name {
protected void convertNeighbors(DBIDRange ids, DBIDRef ix, boolean square, KNNList neighbours, DoubleArray dist, IntegerArray ind) {
for(DoubleDBIDListIter iter = neighbours.iter(); iter.valid(); iter.advance()) {
if(DBIDUtil.equal(iter, ix)) {
continue; // Skip query point
... | public class class_name {
protected void convertNeighbors(DBIDRange ids, DBIDRef ix, boolean square, KNNList neighbours, DoubleArray dist, IntegerArray ind) {
for(DoubleDBIDListIter iter = neighbours.iter(); iter.valid(); iter.advance()) {
if(DBIDUtil.equal(iter, ix)) {
continue; // Skip query point
... |
public class class_name {
@Override
public String getTemplateURI(String controllerName, String templateName, boolean includeExtension) {
if (templateName.startsWith(SLASH_STR)) {
return getAbsoluteTemplateURI(templateName, includeExtension);
}
else if(templateName.startsWith(REL... | public class class_name {
@Override
public String getTemplateURI(String controllerName, String templateName, boolean includeExtension) {
if (templateName.startsWith(SLASH_STR)) {
return getAbsoluteTemplateURI(templateName, includeExtension); // depends on control dependency: [if], data = [none]... |
public class class_name {
protected final boolean mergeLists(List<UnclosedBranchDescriptor> child1open,
List<UnclosedBranchDescriptor> child2open,
List<UnclosedBranchDescriptor> result,
boolean markJoinedBranchesAsPipelineBreaking) {
//remove branches which have already been closed
r... | public class class_name {
protected final boolean mergeLists(List<UnclosedBranchDescriptor> child1open,
List<UnclosedBranchDescriptor> child2open,
List<UnclosedBranchDescriptor> result,
boolean markJoinedBranchesAsPipelineBreaking) {
//remove branches which have already been closed
r... |
public class class_name {
public void marshall(GetSdkTypesRequest getSdkTypesRequest, ProtocolMarshaller protocolMarshaller) {
if (getSdkTypesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(GetSdkTypesRequest getSdkTypesRequest, ProtocolMarshaller protocolMarshaller) {
if (getSdkTypesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
private void updateAutoGeneratedQueriesPanel()
{
// make sure to make a copy since we are adding items to this set
Set<String> corpora = new HashSet<>(ui.getQueryState().getSelectedCorpora().
getValue());
if (corpora.isEmpty())
{
corpora.addAll(ui.getQueryState(... | public class class_name {
private void updateAutoGeneratedQueriesPanel()
{
// make sure to make a copy since we are adding items to this set
Set<String> corpora = new HashSet<>(ui.getQueryState().getSelectedCorpora().
getValue());
if (corpora.isEmpty())
{
corpora.addAll(ui.getQueryState(... |
public class class_name {
private static int getPowerSet(int[] set, int inputIndex, int[] sofar, int[][] sets, int outputIndex) {
for (int i = inputIndex; i < set.length; i++) {
int n = sofar == null ? 0 : sofar.length;
if (n < set.length-1) {
int[] subset = new int[n + ... | public class class_name {
private static int getPowerSet(int[] set, int inputIndex, int[] sofar, int[][] sets, int outputIndex) {
for (int i = inputIndex; i < set.length; i++) {
int n = sofar == null ? 0 : sofar.length;
if (n < set.length-1) {
int[] subset = new int[n + ... |
public class class_name {
public Collection<Line> getPoints()
{
final Collection<Line> list = new ArrayList<>(npoints);
for (int i = 0; i < npoints / 2; i++)
{
list.add(new Line(xpoints[i], ypoints[i], xpoints[i + npoints / 2], ypoints[i + npoints / 2]));
}
... | public class class_name {
public Collection<Line> getPoints()
{
final Collection<Line> list = new ArrayList<>(npoints);
for (int i = 0; i < npoints / 2; i++)
{
list.add(new Line(xpoints[i], ypoints[i], xpoints[i + npoints / 2], ypoints[i + npoints / 2]));
// depends on con... |
public class class_name {
static synchronized void destroy() {
if (debuggable()) {
hasInit = false;
LogisticsCenter.suspend();
logger.info(Consts.TAG, "ARouter destroy success!");
} else {
logger.error(Consts.TAG, "Destroy can be used in debug mode only!"... | public class class_name {
static synchronized void destroy() {
if (debuggable()) {
hasInit = false; // depends on control dependency: [if], data = [none]
LogisticsCenter.suspend(); // depends on control dependency: [if], data = [none]
logger.info(Consts.TAG, "ARouter destroy... |
public class class_name {
public boolean add(Object obj) {
if (obj == null) {
obj = NULL;
}
Entry tab[] = mTable;
int hash = hashCode(obj);
int index = (hash & 0x7FFFFFFF) % tab.length;
for (Entry e = tab[index], prev = null; e != null; e = e.mNext) {
... | public class class_name {
public boolean add(Object obj) {
if (obj == null) {
obj = NULL; // depends on control dependency: [if], data = [none]
}
Entry tab[] = mTable;
int hash = hashCode(obj);
int index = (hash & 0x7FFFFFFF) % tab.length;
for (Entry e = ta... |
public class class_name {
@Override
public JMSProducer createProducer() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createProducer");
JMSProducer jmsProducer = null;
try {
// Create messageproducer first, since we reuse... | public class class_name {
@Override
public JMSProducer createProducer() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createProducer");
JMSProducer jmsProducer = null;
try {
// Create messageproducer first, since we reuse... |
public class class_name {
public void setRegion(int left, int top, int width, int height) {
if (top < 0 || left < 0) {
throw new IllegalArgumentException("Left and top must be nonnegative");
}
if (height < 1 || width < 1) {
throw new IllegalArgumentException("Height and width must be at least 1... | public class class_name {
public void setRegion(int left, int top, int width, int height) {
if (top < 0 || left < 0) {
throw new IllegalArgumentException("Left and top must be nonnegative");
}
if (height < 1 || width < 1) {
throw new IllegalArgumentException("Height and width must be at least 1... |
public class class_name {
public static <T extends ImageGray<T>>
FastCornerDetector<T> fast(int pixelTol, int minCont, Class<T> imageType)
{
FastCornerInterface helper;
if( imageType == GrayF32.class ) {
if (minCont == 9) {
helper = new ImplFastCorner9_F32(pixelTol);
} else if (minCont == 10) {
hel... | public class class_name {
public static <T extends ImageGray<T>>
FastCornerDetector<T> fast(int pixelTol, int minCont, Class<T> imageType)
{
FastCornerInterface helper;
if( imageType == GrayF32.class ) {
if (minCont == 9) {
helper = new ImplFastCorner9_F32(pixelTol); // depends on control dependency: [if]... |
public class class_name {
protected String buildQueryString(Request request)
{
MultiMap resolvedParameters = null;
if(parameterFactory != null)
{
resolvedParameters = parameterFactory.getParameters();
}
if(hasEntries(resolvedParameters))
resolvedPara... | public class class_name {
protected String buildQueryString(Request request)
{
MultiMap resolvedParameters = null;
if(parameterFactory != null)
{
resolvedParameters = parameterFactory.getParameters(); // depends on control dependency: [if], data = [none]
}
if(ha... |
public class class_name {
public boolean isToBeIgnored()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isToBeIgnored");
SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored));
}
return _toBeIgnored;
} } | public class class_name {
public boolean isToBeIgnored()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isToBeIgnored"); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored)... |
public class class_name {
private void onScrollPositionChanged(int oldScrollPosition, int newScrollPosition) {
int newScrollDirection;
if (newScrollPosition < oldScrollPosition) {
newScrollDirection = SCROLL_TO_TOP;
} else {
newScrollDirection = SCROLL_TO_BOTTOM;
}
if (directionHasChanged(newScrollDi... | public class class_name {
private void onScrollPositionChanged(int oldScrollPosition, int newScrollPosition) {
int newScrollDirection;
if (newScrollPosition < oldScrollPosition) {
newScrollDirection = SCROLL_TO_TOP; // depends on control dependency: [if], data = [none]
} else {
newScrollDirection = SCROLL... |
public class class_name {
public int create(User registrar) throws IdentityException, InvalidArgumentException {
if (this.deleted) {
throw new IdentityException("Identity has been deleted");
}
if (registrar == null) {
throw new InvalidArgumentException("Registrar should ... | public class class_name {
public int create(User registrar) throws IdentityException, InvalidArgumentException {
if (this.deleted) {
throw new IdentityException("Identity has been deleted");
}
if (registrar == null) {
throw new InvalidArgumentException("Registrar should ... |
public class class_name {
public boolean handleBegin(TagContext context)
{
WikiParameters params = context.getParams();
MacroInfo macroInfo = (MacroInfo) context.getTagStack().getStackParameter(MACRO_INFO);
boolean withNonGeneratedContent = false;
if (isMetaDataElement(params)) {
... | public class class_name {
public boolean handleBegin(TagContext context)
{
WikiParameters params = context.getParams();
MacroInfo macroInfo = (MacroInfo) context.getTagStack().getStackParameter(MACRO_INFO);
boolean withNonGeneratedContent = false;
if (isMetaDataElement(params)) {
... |
public class class_name {
public void set(SortedSet<? extends Number> collection) {
this.values = null;
this.size = 0;
for (final Number number : collection) {
final int e = number.intValue();
if ((this.values != null) && (e == this.values[this.values.length - 1] + 1)) {
// Same group
++this.valu... | public class class_name {
public void set(SortedSet<? extends Number> collection) {
this.values = null;
this.size = 0;
for (final Number number : collection) {
final int e = number.intValue();
if ((this.values != null) && (e == this.values[this.values.length - 1] + 1)) {
// Same group
++this.valu... |
public class class_name {
final void firePropertyChange(String property, Object oldValue,
Object newValue)
{
Object listeners = propertyListeners;
if (listeners != null) {
firePropertyChangeImpl(listeners, property, oldValue, newValue);
}
} ... | public class class_name {
final void firePropertyChange(String property, Object oldValue,
Object newValue)
{
Object listeners = propertyListeners;
if (listeners != null) {
firePropertyChangeImpl(listeners, property, oldValue, newValue); // depends on co... |
public class class_name {
private static char[] chars(byte[] bytes) {
char[] chars = new char[bytes.length];
for (int i = 0; i < bytes.length; i++) {
int pos = bytes[i] & 0xff;
chars[i] = (char) pos;
}
return chars;
} } | public class class_name {
private static char[] chars(byte[] bytes) {
char[] chars = new char[bytes.length];
for (int i = 0; i < bytes.length; i++) {
int pos = bytes[i] & 0xff;
chars[i] = (char) pos; // depends on control dependency: [for], data = [i]
}
return ch... |
public class class_name {
private List<ContextHandler> collectResourceHandlers() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
final List<ContextHandler> resourceHandlers = new LinkedList<>();
final String resourceHandlerList = Settings.ResourceHandlers.getValue();
... | public class class_name {
private List<ContextHandler> collectResourceHandlers() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
final List<ContextHandler> resourceHandlers = new LinkedList<>();
final String resourceHandlerList = Settings.ResourceHandlers.getValue();
... |
public class class_name {
public void marshall(JobExecution jobExecution, ProtocolMarshaller protocolMarshaller) {
if (jobExecution == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(jobExecution.get... | public class class_name {
public void marshall(JobExecution jobExecution, ProtocolMarshaller protocolMarshaller) {
if (jobExecution == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(jobExecution.get... |
public class class_name {
public void marshall(EncryptionConfiguration encryptionConfiguration, ProtocolMarshaller protocolMarshaller) {
if (encryptionConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(EncryptionConfiguration encryptionConfiguration, ProtocolMarshaller protocolMarshaller) {
if (encryptionConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public void updateImpl(List<Metric> metrics) {
Preconditions.checkNotNull(metrics, "metrics");
File file = new File(dir, fileFormat.format(new Date(clock.now())));
Writer out = null;
try {
try {
LOGGER.debug("writing {} metrics to file {}", metrics.size(), file);... | public class class_name {
public void updateImpl(List<Metric> metrics) {
Preconditions.checkNotNull(metrics, "metrics");
File file = new File(dir, fileFormat.format(new Date(clock.now())));
Writer out = null;
try {
try {
LOGGER.debug("writing {} metrics to file {}", metrics.size(), file);... |
public class class_name {
private void processConfigProps(Map<String, Object> props) {
if (props == null || props.isEmpty())
return;
id = (String) props.get(CFG_KEY_ID);
if (id == null) {
Tr.error(tc, "AUTHZ_ROLE_ID_IS_NULL");
return;
}
rolePi... | public class class_name {
private void processConfigProps(Map<String, Object> props) {
if (props == null || props.isEmpty())
return;
id = (String) props.get(CFG_KEY_ID);
if (id == null) {
Tr.error(tc, "AUTHZ_ROLE_ID_IS_NULL"); // depends on control dependency: [if], data... |
public class class_name {
@Override
public void validateAllocator() {
if (topSize < 0) {
return;
}
traverseAndCheck();
for (int i = 0; i < smallBins.length; i++) {
checkSmallBin(i);
}
for (int i = 0; i < treeBins.length; i++) {
checkTreeBin(i);
}
} } | public class class_name {
@Override
public void validateAllocator() {
if (topSize < 0) {
return; // depends on control dependency: [if], data = [none]
}
traverseAndCheck();
for (int i = 0; i < smallBins.length; i++) {
checkSmallBin(i); // depends on control dependency: [for], data = [i]
... |
public class class_name {
private void runPreStepCommand(File bomFile) {
String directory = bomFile.getParent();
String[] gradleCommandParams = gradleCli.getGradleCommandParams(GradleMvnCommand.COPY_DEPENDENCIES);
if (StringUtils.isNotEmpty(directory) && gradleCommandParams.length > 0) {
... | public class class_name {
private void runPreStepCommand(File bomFile) {
String directory = bomFile.getParent();
String[] gradleCommandParams = gradleCli.getGradleCommandParams(GradleMvnCommand.COPY_DEPENDENCIES);
if (StringUtils.isNotEmpty(directory) && gradleCommandParams.length > 0) {
... |
public class class_name {
@SuppressWarnings("unchecked")
public void setFormValue(Object value) {
if (value instanceof List<?>) {
List<String> keys = (List<String>)value;
Set<String> keySet = new HashSet<String>(keys);
int i = 0;
for (Map.Entry<String, Strin... | public class class_name {
@SuppressWarnings("unchecked")
public void setFormValue(Object value) {
if (value instanceof List<?>) {
List<String> keys = (List<String>)value;
Set<String> keySet = new HashSet<String>(keys);
int i = 0;
for (Map.Entry<String, Strin... |
public class class_name {
public void setSupportedOperations(java.util.Collection<SupportedOperation> supportedOperations) {
if (supportedOperations == null) {
this.supportedOperations = null;
return;
}
this.supportedOperations = new com.amazonaws.internal.SdkInternalLi... | public class class_name {
public void setSupportedOperations(java.util.Collection<SupportedOperation> supportedOperations) {
if (supportedOperations == null) {
this.supportedOperations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
public void addBcc(String bcc) {
if (this.bcc.length() > 0) {
this.bcc.append(",");
}
this.bcc.append(bcc);
} } | public class class_name {
public void addBcc(String bcc) {
if (this.bcc.length() > 0) {
this.bcc.append(","); // depends on control dependency: [if], data = [none]
}
this.bcc.append(bcc);
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.