code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void fillPrimitiveProperty(Object entity, Set<String> keySet, StructuralProperty property, Field field,
String node, Map<String, Object> map) throws ODataException {
for (String target : keySet) {
if (node.equalsIgnoreCase(targe... | public class class_name {
public void fillPrimitiveProperty(Object entity, Set<String> keySet, StructuralProperty property, Field field,
String node, Map<String, Object> map) throws ODataException {
for (String target : keySet) {
if (node.equalsIgnoreCase(targe... |
public class class_name {
public static FileUtil getInstance() {
if (instance == null) {
synchronized (FileUtilImpl.class) {
if (instance == null) {
FileUtilImpl util = new FileUtilImpl();
util.initialize();
instance = util;
}
}
}
return instance;
... | public class class_name {
public static FileUtil getInstance() {
if (instance == null) {
synchronized (FileUtilImpl.class) { // depends on control dependency: [if], data = [none]
if (instance == null) {
FileUtilImpl util = new FileUtilImpl();
util.initialize(); // depends on cont... |
public class class_name {
@SuppressWarnings({"rawtypes"})
@Override
public void open(Map conf, TopologyContext context)
{
this.taskIndex = context.getThisTaskIndex();
this.fileName = this.baseFileName + "_" + this.taskIndex;
File targetFile = new File(this.dataFilePath, this.fileNam... | public class class_name {
@SuppressWarnings({"rawtypes"})
@Override
public void open(Map conf, TopologyContext context)
{
this.taskIndex = context.getThisTaskIndex();
this.fileName = this.baseFileName + "_" + this.taskIndex;
File targetFile = new File(this.dataFilePath, this.fileNam... |
public class class_name {
public void marshall(TraceUser traceUser, ProtocolMarshaller protocolMarshaller) {
if (traceUser == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(traceUser.getUserName(), ... | public class class_name {
public void marshall(TraceUser traceUser, ProtocolMarshaller protocolMarshaller) {
if (traceUser == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(traceUser.getUserName(), ... |
public class class_name {
void xLock(Object obj, long txNum) {
Object anchor = getAnchor(obj);
txWaitMap.put(txNum, anchor);
synchronized (anchor) {
Lockers lks = prepareLockers(obj);
if (hasXLock(lks, txNum))
return;
try {
long timestamp = System.currentTimeMillis();
while (!xL... | public class class_name {
void xLock(Object obj, long txNum) {
Object anchor = getAnchor(obj);
txWaitMap.put(txNum, anchor);
synchronized (anchor) {
Lockers lks = prepareLockers(obj);
if (hasXLock(lks, txNum))
return;
try {
long timestamp = System.currentTimeMillis();
while (!xL... |
public class class_name {
public static DocumentBuilder getValidatingXmlParser(File schemaFile) {
DocumentBuilder db = null;
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
S... | public class class_name {
public static DocumentBuilder getValidatingXmlParser(File schemaFile) {
DocumentBuilder db = null;
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
S... |
public class class_name {
public static void rotateCW( GrayS32 input , GrayS32 output ) {
if( input.width != output.height || input.height != output.width )
throw new IllegalArgumentException("Incompatible shapes");
int h = input.height-1;
for( int y = 0; y < input.height; y++ ) {
int indexIn = input.sta... | public class class_name {
public static void rotateCW( GrayS32 input , GrayS32 output ) {
if( input.width != output.height || input.height != output.width )
throw new IllegalArgumentException("Incompatible shapes");
int h = input.height-1;
for( int y = 0; y < input.height; y++ ) {
int indexIn = input.sta... |
public class class_name {
public static Object invokeGetter(Object object, String getterName, Object[] args)
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
int index = getterName.indexOf('.');
if (index > 0) {
String getterName2 = getterName.su... | public class class_name {
public static Object invokeGetter(Object object, String getterName, Object[] args)
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
int index = getterName.indexOf('.');
if (index > 0) {
String getterName2 = getterName.su... |
public class class_name {
public void marshall(HttpHeader httpHeader, ProtocolMarshaller protocolMarshaller) {
if (httpHeader == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(httpHeader.getHeaderNa... | public class class_name {
public void marshall(HttpHeader httpHeader, ProtocolMarshaller protocolMarshaller) {
if (httpHeader == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(httpHeader.getHeaderNa... |
public class class_name {
public boolean validateWithRowColInCurrentPage(final int row, final int col, boolean updateGui) {
//until now passEmptyCheck has one to one relation to submitMode
//e.g. when passEmptyCheck = false, then submitMode = true.
boolean submitMode = parent.getSubmitMode();
boolean... | public class class_name {
public boolean validateWithRowColInCurrentPage(final int row, final int col, boolean updateGui) {
//until now passEmptyCheck has one to one relation to submitMode
//e.g. when passEmptyCheck = false, then submitMode = true.
boolean submitMode = parent.getSubmitMode();
boolean... |
public class class_name {
public static double refineRoot( Polynomial poly, double root , int maxIterations ) {
// for( int i = 0; i < maxIterations; i++ ) {
//
// double v = poly.c[poly.size-1];
// double d = v*(poly.size-1);
//
// for( int j = poly.size-1; j > 0; j-- ) {
// v = poly.c[j] + v*root;
// d... | public class class_name {
public static double refineRoot( Polynomial poly, double root , int maxIterations ) {
// for( int i = 0; i < maxIterations; i++ ) {
//
// double v = poly.c[poly.size-1];
// double d = v*(poly.size-1);
//
// for( int j = poly.size-1; j > 0; j-- ) {
// v = poly.c[j] + v*root;
// d... |
public class class_name {
public static void resetOnScheduleHook(String key) {
synchronized (onScheduleHooks) {
onScheduleHooks.remove(key);
if (onScheduleHooks.isEmpty()) {
onScheduleHook = Function.identity();
}
else {
Function<Runnable, Runnable> newHook = null;
for (Function<Runnable, Run... | public class class_name {
public static void resetOnScheduleHook(String key) {
synchronized (onScheduleHooks) {
onScheduleHooks.remove(key);
if (onScheduleHooks.isEmpty()) {
onScheduleHook = Function.identity(); // depends on control dependency: [if], data = [none]
}
else {
Function<Runnable, Run... |
public class class_name {
public static <T> T executeWithBackOff(AbstractGoogleClientRequest<T> client, String error)
throws IOException, InterruptedException {
Sleeper sleeper = Sleeper.DEFAULT;
BackOff backOff =
BackOffAdapter.toGcpBackOff(
FluentBackoff.DEFAULT
.wit... | public class class_name {
public static <T> T executeWithBackOff(AbstractGoogleClientRequest<T> client, String error)
throws IOException, InterruptedException {
Sleeper sleeper = Sleeper.DEFAULT;
BackOff backOff =
BackOffAdapter.toGcpBackOff(
FluentBackoff.DEFAULT
.wit... |
public class class_name {
public void marshall(CreateLayerRequest createLayerRequest, ProtocolMarshaller protocolMarshaller) {
if (createLayerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(CreateLayerRequest createLayerRequest, ProtocolMarshaller protocolMarshaller) {
if (createLayerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public boolean existsKeyspace(String keyspace, boolean showLog) {
this.metadata = cluster.getMetadata();
if (!(this.metadata.getKeyspaces().isEmpty())) {
for (KeyspaceMetadata k : metadata.getKeyspaces()) {
if (k.getName().equals(keyspace)) {
... | public class class_name {
public boolean existsKeyspace(String keyspace, boolean showLog) {
this.metadata = cluster.getMetadata();
if (!(this.metadata.getKeyspaces().isEmpty())) {
for (KeyspaceMetadata k : metadata.getKeyspaces()) {
if (k.getName().equals(keyspace)) {
... |
public class class_name {
public EClass getIfcClassification() {
if (ifcClassificationEClass == null) {
ifcClassificationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(79);
}
return ifcClassificationEClass;
} } | public class class_name {
public EClass getIfcClassification() {
if (ifcClassificationEClass == null) {
ifcClassificationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(79);
// depends on control dependency: [if], data = [none]
}
return ifcCl... |
public class class_name {
public boolean isThrowable() {
if (isEnum() || isInterface() || isAnnotationType()) {
return false;
}
for (Type t = type; t.hasTag(CLASS); t = env.types.supertype(t)) {
if (t.tsym == env.syms.throwableType.tsym) {
return true;
... | public class class_name {
public boolean isThrowable() {
if (isEnum() || isInterface() || isAnnotationType()) {
return false; // depends on control dependency: [if], data = [none]
}
for (Type t = type; t.hasTag(CLASS); t = env.types.supertype(t)) {
if (t.tsym == env.syms... |
public class class_name {
private Expression createOfType(Expression target, String functionName, @NotNull cqlParser.FunctionContext ctx) {
AliasedQuerySource source = enterQueryContext(target);
try {
checkArgumentCount(ctx, functionName, 1);
Expression typeArgument = (Expressio... | public class class_name {
private Expression createOfType(Expression target, String functionName, @NotNull cqlParser.FunctionContext ctx) {
AliasedQuerySource source = enterQueryContext(target);
try {
checkArgumentCount(ctx, functionName, 1); // depends on control dependency: [try], data = ... |
public class class_name {
@Override
public <T> BindingImpl<T> getBinding(Key<T> key) {
Errors errors = new Errors(checkNotNull(key, "key"));
try {
BindingImpl<T> result = getBindingOrThrow(key, errors, JitLimitation.EXISTING_JIT);
errors.throwConfigurationExceptionIfErrorsExist();
return re... | public class class_name {
@Override
public <T> BindingImpl<T> getBinding(Key<T> key) {
Errors errors = new Errors(checkNotNull(key, "key"));
try {
BindingImpl<T> result = getBindingOrThrow(key, errors, JitLimitation.EXISTING_JIT);
errors.throwConfigurationExceptionIfErrorsExist(); // depends on c... |
public class class_name {
public final EObject ruleNegatedToken() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
EObject lv_terminal_1_0 = null;
enterRule();
try {
// InternalXtext.g:3336:2: ( (otherlv_0= '!' ( (lv_terminal_1_0= rul... | public class class_name {
public final EObject ruleNegatedToken() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
EObject lv_terminal_1_0 = null;
enterRule();
try {
// InternalXtext.g:3336:2: ( (otherlv_0= '!' ( (lv_terminal_1_0= rul... |
public class class_name {
public void setElasticGpuSpecification(java.util.Collection<ElasticGpuSpecification> elasticGpuSpecification) {
if (elasticGpuSpecification == null) {
this.elasticGpuSpecification = null;
return;
}
this.elasticGpuSpecification = new com.amazona... | public class class_name {
public void setElasticGpuSpecification(java.util.Collection<ElasticGpuSpecification> elasticGpuSpecification) {
if (elasticGpuSpecification == null) {
this.elasticGpuSpecification = null; // depends on control dependency: [if], data = [none]
return; // depends ... |
public class class_name {
public void setWeekDateTimeFormatter(DateTimeFormatter formatter) {
if (getFormatterMap().get(ViewType.WEEK_VIEW) == null) {
getFormatterMap().put(ViewType.WEEK_VIEW, formatter);
} else {
getFormatterMap().replace(ViewType.WEEK_VIEW, formatter);
... | public class class_name {
public void setWeekDateTimeFormatter(DateTimeFormatter formatter) {
if (getFormatterMap().get(ViewType.WEEK_VIEW) == null) {
getFormatterMap().put(ViewType.WEEK_VIEW, formatter); // depends on control dependency: [if], data = [none]
} else {
getFormatte... |
public class class_name {
public static UShort[] ushort_a(short... values) {
UShort[] array = new UShort[values.length];
for (int i = 0; i < values.length; i++) {
array[i] = ushort(values[i]);
}
return array;
} } | public class class_name {
public static UShort[] ushort_a(short... values) {
UShort[] array = new UShort[values.length];
for (int i = 0; i < values.length; i++) {
array[i] = ushort(values[i]);
// depends on control dependency: [for], data = [i]
}
return array;
} } |
public class class_name {
private void flush(boolean isEnd)
{
if (_startOffset == _offset && _bufferSize == 0) {
if (! isCommitted() || isEnd) {
flush(null, isEnd);
_startOffset = bufferStart();
_offset = _startOffset;
}
return;
}
int sublen = _offset - _startOf... | public class class_name {
private void flush(boolean isEnd)
{
if (_startOffset == _offset && _bufferSize == 0) {
if (! isCommitted() || isEnd) {
flush(null, isEnd); // depends on control dependency: [if], data = [isEnd)]
_startOffset = bufferStart(); // depends on control dependency: [if], ... |
public class class_name {
protected void setSpecialHeader(HeaderKeys key, byte[] value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setSpecialHeader(h,b[]): " + key.getName());
}
removeHdrInstances(findHeader(key), FILTER_NO);
HeaderEle... | public class class_name {
protected void setSpecialHeader(HeaderKeys key, byte[] value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setSpecialHeader(h,b[]): " + key.getName()); // depends on control dependency: [if], data = [none]
}
removeHdrIn... |
public class class_name {
private List<StageOutput> addReportedErrorsIfNeeded(List<StageOutput> snapshotsOfAllStagesOutput) {
synchronized (this.reportedErrors) {
if(reportedErrors.isEmpty()) {
return snapshotsOfAllStagesOutput;
}
try {
return snapshotsOfAllStagesOutput.stream()
... | public class class_name {
private List<StageOutput> addReportedErrorsIfNeeded(List<StageOutput> snapshotsOfAllStagesOutput) {
synchronized (this.reportedErrors) {
if(reportedErrors.isEmpty()) {
return snapshotsOfAllStagesOutput; // depends on control dependency: [if], data = [none]
}
try... |
public class class_name {
@Override public ImSortedMap<K,V> subMap(K fromKey, K toKey) {
int diff = comp.compare(fromKey, toKey);
if (diff > 0) {
throw new IllegalArgumentException("fromKey is greater than toKey");
}
UnEntry<K,V> last = last();
K lastKey = last.getK... | public class class_name {
@Override public ImSortedMap<K,V> subMap(K fromKey, K toKey) {
int diff = comp.compare(fromKey, toKey);
if (diff > 0) {
throw new IllegalArgumentException("fromKey is greater than toKey");
}
UnEntry<K,V> last = last();
K lastKey = last.getK... |
public class class_name {
@SuppressWarnings("rawtypes")
private static Object getOneLayerClone(Object source) {
if (null == source) {
return null;
}
Object target = null;
try {
Constructor con = source.getClass().getConstructor();
target = con.new... | public class class_name {
@SuppressWarnings("rawtypes")
private static Object getOneLayerClone(Object source) {
if (null == source) {
return null; // depends on control dependency: [if], data = [none]
}
Object target = null;
try {
Constructor con = source.get... |
public class class_name {
public String polymerToHELM2() {
StringBuilder notation = new StringBuilder();
for (int i = 0; i < listOfPolymers.size(); i++) {
if (listOfPolymers.get(i).isAnnotationHere()) {
notation.append(listOfPolymers.get(i).getPolymerID() + "{" + listOfPolymers.get(i).toHELM2... | public class class_name {
public String polymerToHELM2() {
StringBuilder notation = new StringBuilder();
for (int i = 0; i < listOfPolymers.size(); i++) {
if (listOfPolymers.get(i).isAnnotationHere()) {
notation.append(listOfPolymers.get(i).getPolymerID() + "{" + listOfPolymers.get(i).toHELM2... |
public class class_name {
public void setWorkspaces(java.util.Collection<Workspace> workspaces) {
if (workspaces == null) {
this.workspaces = null;
return;
}
this.workspaces = new com.amazonaws.internal.SdkInternalList<Workspace>(workspaces);
} } | public class class_name {
public void setWorkspaces(java.util.Collection<Workspace> workspaces) {
if (workspaces == null) {
this.workspaces = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this... |
public class class_name {
public void type(String text) {
String action = "Typing text '" + text + IN + prettyOutput();
String expected = prettyOutputStart() + " is present, displayed, and enabled to have text " + text + " typed in";
boolean warning = false;
try {
if (isNotP... | public class class_name {
public void type(String text) {
String action = "Typing text '" + text + IN + prettyOutput();
String expected = prettyOutputStart() + " is present, displayed, and enabled to have text " + text + " typed in";
boolean warning = false;
try {
if (isNotP... |
public class class_name {
public static ProviderList getProviderList() {
ProviderList list = getThreadProviderList();
if (list == null) {
list = getSystemProviderList();
}
return list;
} } | public class class_name {
public static ProviderList getProviderList() {
ProviderList list = getThreadProviderList();
if (list == null) {
list = getSystemProviderList(); // depends on control dependency: [if], data = [none]
}
return list;
} } |
public class class_name {
public String doAddRunner()
{
try
{
selectedRunner = Runner.newInstance(newRunnerName);
selectedRunner.setCmdLineTemplate(newCmdLineTemplate);
selectedRunner.setMainClass(newMainClass);
selectedRunner.setServerName(newSe... | public class class_name {
public String doAddRunner()
{
try
{
selectedRunner = Runner.newInstance(newRunnerName); // depends on control dependency: [try], data = [none]
selectedRunner.setCmdLineTemplate(newCmdLineTemplate); // depends on control dependency: [try], data ... |
public class class_name {
private static void formalTypeParameters(Result sb, List<? extends TypeParameterElement> typeParameters) throws IOException
{
if (!typeParameters.isEmpty())
{
sb.setNeedsSignature(true);
sb.append('<');
for (TypeParameterElement typePara... | public class class_name {
private static void formalTypeParameters(Result sb, List<? extends TypeParameterElement> typeParameters) throws IOException
{
if (!typeParameters.isEmpty())
{
sb.setNeedsSignature(true);
sb.append('<');
for (TypeParameterElement typePara... |
public class class_name {
public static String getLoadableName( TypeDeclaration jclass )
{
TypeDeclaration containingClass = jclass.getDeclaringType();
if ( containingClass == null )
{
return jclass.getQualifiedName();
}
else
{
return... | public class class_name {
public static String getLoadableName( TypeDeclaration jclass )
{
TypeDeclaration containingClass = jclass.getDeclaringType();
if ( containingClass == null )
{
return jclass.getQualifiedName(); // depends on control dependency: [if], data = [non... |
public class class_name {
private Collection<? extends String> recursiveCollect(String refId,
Map<String, SortedSet<String>> relationKeyMap, int maxRecursion) {
Set<String> list = new HashSet<>();
if (maxRecursion > 0 && relationKeyMap.containsKey(refId)) {
SortedSet<String> subList = relationKeyMa... | public class class_name {
private Collection<? extends String> recursiveCollect(String refId,
Map<String, SortedSet<String>> relationKeyMap, int maxRecursion) {
Set<String> list = new HashSet<>();
if (maxRecursion > 0 && relationKeyMap.containsKey(refId)) {
SortedSet<String> subList = relationKeyMa... |
public class class_name {
static public void main(String[] args) {
if (args.length == 0) {
System.out.println("Supply a Base32-encoded argument.");
return;
}
System.out.println(" Original: " + args[0]);
byte[] decoded = Base32.decode(args[0]);
System.out.... | public class class_name {
static public void main(String[] args) {
if (args.length == 0) {
System.out.println("Supply a Base32-encoded argument."); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
Syste... |
public class class_name {
public Optional<Identification> getIdentificationFor(X x) {
Identification identification = map.get(x);
if (identification == null || identification.equals(placeholder)) {
return Optional.empty();
} else {
return Optional.of(identification);
... | public class class_name {
public Optional<Identification> getIdentificationFor(X x) {
Identification identification = map.get(x);
if (identification == null || identification.equals(placeholder)) {
return Optional.empty(); // depends on control dependency: [if], data = [none]
} else... |
public class class_name {
public T evaluate(Object target, Map<String, Object> variables) {
Expression expression = getParsedExpression();
context.setRootObject(target);
if (variables != null) {
context.setVariables(variables);
}
try {
return (T)... | public class class_name {
public T evaluate(Object target, Map<String, Object> variables) {
Expression expression = getParsedExpression();
context.setRootObject(target);
if (variables != null) {
context.setVariables(variables);
// depends on control dependency: [if], data = [... |
public class class_name {
public static boolean isDBCCase(String str)
{
if (str != null)
{
str += " ";
for (int i = 0; i < str.length(); i++)
{
String s = str.substring(i, i + 1);
int length = 0;
try
... | public class class_name {
public static boolean isDBCCase(String str)
{
if (str != null)
{
str += " "; // depends on control dependency: [if], data = [none]
for (int i = 0; i < str.length(); i++)
{
String s = str.substring(i, i + 1);
... |
public class class_name {
public static boolean checkUri(String uri) {
QueryStringDecoder queryStringDecoder = new QueryStringDecoder(uri, true);
String path = queryStringDecoder.path();
int groupIndex = path.indexOf('/') + 1,
unitIndex = path.indexOf('/', groupIndex) + 1;
... | public class class_name {
public static boolean checkUri(String uri) {
QueryStringDecoder queryStringDecoder = new QueryStringDecoder(uri, true);
String path = queryStringDecoder.path();
int groupIndex = path.indexOf('/') + 1,
unitIndex = path.indexOf('/', groupIndex) + 1;
... |
public class class_name {
@Override
public int compareTo(org.apache.hadoop.mapreduce.ID o) {
JVMId that = (JVMId)o;
int jobComp = this.jobId.compareTo(that.jobId);
if(jobComp == 0) {
if(this.isMap == that.isMap) {
return this.id - that.id;
} else {
return this.isMap ? -1 : 1;
... | public class class_name {
@Override
public int compareTo(org.apache.hadoop.mapreduce.ID o) {
JVMId that = (JVMId)o;
int jobComp = this.jobId.compareTo(that.jobId);
if(jobComp == 0) {
if(this.isMap == that.isMap) {
return this.id - that.id; // depends on control dependency: [if], data = [non... |
public class class_name {
public boolean prefixEquals(IPAddressString other) {
// getting the prefix
Integer prefixLength = getNetworkPrefixLength();
if(prefixLength == null) {
return false;
}
if(other == this && !isPrefixOnly()) {
return true;
}
if(other.addressProvider.isUninitialized()) { // ot... | public class class_name {
public boolean prefixEquals(IPAddressString other) {
// getting the prefix
Integer prefixLength = getNetworkPrefixLength();
if(prefixLength == null) {
return false; // depends on control dependency: [if], data = [none]
}
if(other == this && !isPrefixOnly()) {
return true; // ... |
public class class_name {
public void setConfigurationProperty(final String name, final Object value)
{
if (XIncProcConfiguration.ALLOW_FIXUP_BASE_URIS.equals(name))
{
if (value instanceof Boolean)
{
this.baseUrisFixup = (Boolean) value;
}
... | public class class_name {
public void setConfigurationProperty(final String name, final Object value)
{
if (XIncProcConfiguration.ALLOW_FIXUP_BASE_URIS.equals(name))
{
if (value instanceof Boolean)
{
this.baseUrisFixup = (Boolean) value; // depends on control... |
public class class_name {
void constructA678() {
final int N = X1.numRows;
// Pseudo-inverse of hat(p)
computePseudo(X1,P_plus);
DMatrixRMaj PPpXP = new DMatrixRMaj(1,1);
DMatrixRMaj PPpYP = new DMatrixRMaj(1,1);
computePPXP(X1,P_plus,X2,0,PPpXP);
computePPXP(X1,P_plus,X2,1,PPpYP);
DMatrixRMaj PPpX ... | public class class_name {
void constructA678() {
final int N = X1.numRows;
// Pseudo-inverse of hat(p)
computePseudo(X1,P_plus);
DMatrixRMaj PPpXP = new DMatrixRMaj(1,1);
DMatrixRMaj PPpYP = new DMatrixRMaj(1,1);
computePPXP(X1,P_plus,X2,0,PPpXP);
computePPXP(X1,P_plus,X2,1,PPpYP);
DMatrixRMaj PPpX ... |
public class class_name {
private static AbstractType<?> updateWith(AbstractType<?> type, String keyspace, ByteBuffer toReplace, UserType updated)
{
if (type instanceof UserType)
{
UserType ut = (UserType)type;
// If it's directly the type we've updated, then just use the n... | public class class_name {
private static AbstractType<?> updateWith(AbstractType<?> type, String keyspace, ByteBuffer toReplace, UserType updated)
{
if (type instanceof UserType)
{
UserType ut = (UserType)type;
// If it's directly the type we've updated, then just use the n... |
public class class_name {
protected X509CertifiedPublicKey getPublicKey(CertifiedPublicKey publicKey)
{
if (publicKey instanceof X509CertifiedPublicKey) {
return (X509CertifiedPublicKey) publicKey;
}
throw new IllegalArgumentException(String.format("Unsupported certificate [%s]... | public class class_name {
protected X509CertifiedPublicKey getPublicKey(CertifiedPublicKey publicKey)
{
if (publicKey instanceof X509CertifiedPublicKey) {
return (X509CertifiedPublicKey) publicKey; // depends on control dependency: [if], data = [none]
}
throw new IllegalArgumen... |
public class class_name {
private static boolean isModular(final Path javaHome) {
boolean result;
final List<String> cmd = new ArrayList<>();
cmd.add(resolveJavaCommand(javaHome));
cmd.add("--add-modules=java.se");
cmd.add("-version");
final ProcessBuilder builder = new ... | public class class_name {
private static boolean isModular(final Path javaHome) {
boolean result;
final List<String> cmd = new ArrayList<>();
cmd.add(resolveJavaCommand(javaHome));
cmd.add("--add-modules=java.se");
cmd.add("-version");
final ProcessBuilder builder = new ... |
public class class_name {
public String firstCalledName() {
calledName = hostName.name;
if( Character.isDigit( calledName.charAt( 0 ))) {
int i, len, dots;
char[] data;
i = dots = 0; /* quick IP address validation */
len = c... | public class class_name {
public String firstCalledName() {
calledName = hostName.name;
if( Character.isDigit( calledName.charAt( 0 ))) {
int i, len, dots;
char[] data;
i = dots = 0; /* quick IP address validation */
// depends on contr... |
public class class_name {
private int calculateCapacity(int minimumCapacity) {
int newCapacity = Math.min(Math.max(capacity, 2), minimumCapacity);
while (newCapacity < Math.min(minimumCapacity, maxCapacity)) {
newCapacity <<= 1;
}
return Math.min(newCapacity, maxCapacity);
} } | public class class_name {
private int calculateCapacity(int minimumCapacity) {
int newCapacity = Math.min(Math.max(capacity, 2), minimumCapacity);
while (newCapacity < Math.min(minimumCapacity, maxCapacity)) {
newCapacity <<= 1; // depends on control dependency: [while], data = [none]
}
return Ma... |
public class class_name {
public static CmsFlexBucketConfiguration loadFromProperties(Properties properties) {
ArrayListMultimap<String, String> multimap = ArrayListMultimap.create();
List<String> clearAll = Lists.newArrayList();
for (Object keyObj : properties.keySet()) {
String k... | public class class_name {
public static CmsFlexBucketConfiguration loadFromProperties(Properties properties) {
ArrayListMultimap<String, String> multimap = ArrayListMultimap.create();
List<String> clearAll = Lists.newArrayList();
for (Object keyObj : properties.keySet()) {
String k... |
public class class_name {
public static <T extends Value> List<List<T>> split(List<T> input, long targetSize) {
Collections.sort(input, new Comparator<Value>() {
public int compare(Value o1, Value o2) {
return new Long(o1.getValue()).compareTo(new Long(o2.getValue()));
}... | public class class_name {
public static <T extends Value> List<List<T>> split(List<T> input, long targetSize) {
Collections.sort(input, new Comparator<Value>() {
public int compare(Value o1, Value o2) {
return new Long(o1.getValue()).compareTo(new Long(o2.getValue()));
}... |
public class class_name {
public void setUnmatchedFaces(java.util.Collection<ComparedFace> unmatchedFaces) {
if (unmatchedFaces == null) {
this.unmatchedFaces = null;
return;
}
this.unmatchedFaces = new java.util.ArrayList<ComparedFace>(unmatchedFaces);
} } | public class class_name {
public void setUnmatchedFaces(java.util.Collection<ComparedFace> unmatchedFaces) {
if (unmatchedFaces == null) {
this.unmatchedFaces = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void sendNotification(Sid accountId, String errMessage, int errCode, String errType, boolean createNotification) {
NotificationsDao notifications = storage.getNotificationsDao();
Notification notification;
if (errType == "warning") {
if (logger.isD... | public class class_name {
private void sendNotification(Sid accountId, String errMessage, int errCode, String errType, boolean createNotification) {
NotificationsDao notifications = storage.getNotificationsDao();
Notification notification;
if (errType == "warning") {
if (logger.isD... |
public class class_name {
public static PrivateKey loadPrivateKey(File file) {
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(file);
return loadPrivateKey(inputStream);
} catch (FileNotFoundException e) {
throw new RuntimeException("文件不存在");
}finally {
... | public class class_name {
public static PrivateKey loadPrivateKey(File file) {
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(file); // depends on control dependency: [try], data = [none]
return loadPrivateKey(inputStream); // depends on control dependency: [try]... |
public class class_name {
public List<B> getOutcomesByProbability(A first) {
if (counts.containsKey(first)) {
Map<B, Double> sortedMap = MapUtils.reverse(MapUtils.sortByValue(counts.get(first)));
return Lists.newArrayList(sortedMap.keySet());
}
return Collections.emptyList();
} } | public class class_name {
public List<B> getOutcomesByProbability(A first) {
if (counts.containsKey(first)) {
Map<B, Double> sortedMap = MapUtils.reverse(MapUtils.sortByValue(counts.get(first)));
return Lists.newArrayList(sortedMap.keySet()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
protected String buildOrderSql(String sql, final String column, final boolean ascending) {
sql += " order by " + column;
if (!ascending) {
sql += " desc";
}
return sql;
} } | public class class_name {
@Override
protected String buildOrderSql(String sql, final String column, final boolean ascending) {
sql += " order by " + column;
if (!ascending) {
sql += " desc"; // depends on control dependency: [if], data = [none]
}
return sql;
} } |
public class class_name {
public void deleteVpc(DeleteVpcRequest deleteVpcRequest) {
checkNotNull(deleteVpcRequest, "request should not be null.");
checkNotNull(deleteVpcRequest.getVpcId(), "request vpcId should not be null.");
if (Strings.isNullOrEmpty(deleteVpcRequest.getClientToken())) {
... | public class class_name {
public void deleteVpc(DeleteVpcRequest deleteVpcRequest) {
checkNotNull(deleteVpcRequest, "request should not be null.");
checkNotNull(deleteVpcRequest.getVpcId(), "request vpcId should not be null.");
if (Strings.isNullOrEmpty(deleteVpcRequest.getClientToken())) {
... |
public class class_name {
public EClass getGSCOL() {
if (gscolEClass == null) {
gscolEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(472);
}
return gscolEClass;
} } | public class class_name {
public EClass getGSCOL() {
if (gscolEClass == null) {
gscolEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(472); // depends on control dependency: [if], data = [none]
}
return gscolEClass;
} } |
public class class_name {
public static void closeWindow(Component component) {
Window window = getWindow(component);
if (window != null) {
window.close();
}
} } | public class class_name {
public static void closeWindow(Component component) {
Window window = getWindow(component);
if (window != null) {
window.close(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected synchronized void checkpoint(long forcedLogSequenceNumber)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "checkpoint"
... | public class class_name {
protected synchronized void checkpoint(long forcedLogSequenceNumber)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "checkpoint"
... |
public class class_name {
public static byte[] journalIdStringToBytes(String jid) {
byte[] byteArray = new byte[jid.length()];
for (int i = 0; i < jid.length(); i++) {
byteArray[i] = (byte) jid.charAt(i);
}
return byteArray;
} } | public class class_name {
public static byte[] journalIdStringToBytes(String jid) {
byte[] byteArray = new byte[jid.length()];
for (int i = 0; i < jid.length(); i++) {
byteArray[i] = (byte) jid.charAt(i); // depends on control dependency: [for], data = [i]
}
return byteArray;
} } |
public class class_name {
@Override
public By convertToSelector(String identity) {
waitAjaxIsFinished();
By selector = new By.ByCssSelector(identity);
if (identity.matches("^[a-zA-Z][\\w_-]*$")) {
selector = new By.ById(identity);
} else if (identity.startsWith("/") || i... | public class class_name {
@Override
public By convertToSelector(String identity) {
waitAjaxIsFinished();
By selector = new By.ByCssSelector(identity);
if (identity.matches("^[a-zA-Z][\\w_-]*$")) {
selector = new By.ById(identity); // depends on control dependency: [if], data = [... |
public class class_name {
public synchronized void shutdown() {
checkIsRunning();
try {
beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION);
} finally {
discard(id);
// Destroy all the dependent beans correctly
... | public class class_name {
public synchronized void shutdown() {
checkIsRunning();
try {
beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); // depends on control dependency: [try], data = [none]
} finally {
discard(id);
... |
public class class_name {
@SuppressWarnings("unchecked")
private void commit() {
long index = this.currentIndex;
for (RaftSession session : sessions.getSessions(primitiveId)) {
session.commit(index);
}
} } | public class class_name {
@SuppressWarnings("unchecked")
private void commit() {
long index = this.currentIndex;
for (RaftSession session : sessions.getSessions(primitiveId)) {
session.commit(index); // depends on control dependency: [for], data = [session]
}
} } |
public class class_name {
private String calculateClass(String fieldValue) {
// NOTE; This is just a silly example to illustrate what can be done.
if (fieldValue.startsWith("/1-500e-KWh")) {
return "PowerTick";
}
if (fieldValue.endsWith(".html")) {
return "Page";... | public class class_name {
private String calculateClass(String fieldValue) {
// NOTE; This is just a silly example to illustrate what can be done.
if (fieldValue.startsWith("/1-500e-KWh")) {
return "PowerTick"; // depends on control dependency: [if], data = [none]
}
if (fiel... |
public class class_name {
public String expand(Map<String, ?> variables) {
if (variables == null) {
throw new IllegalArgumentException("variable map is required.");
}
/* resolve all expressions within the template */
StringBuilder resolved = new StringBuilder();
for (TemplateChunk chunk : th... | public class class_name {
public String expand(Map<String, ?> variables) {
if (variables == null) {
throw new IllegalArgumentException("variable map is required.");
}
/* resolve all expressions within the template */
StringBuilder resolved = new StringBuilder();
for (TemplateChunk chunk : th... |
public class class_name {
public double score(Instance inst, int sizeLimit)
{
double anomalyScore = 0.0;
if(this.internalNode && this.r > sizeLimit)
{
if(inst.value(this.splitAttribute) > this.splitValue)
anomalyScore = right.score(inst, sizeLimit);
else
anomalyScore = left.score(inst, sizeLimi... | public class class_name {
public double score(Instance inst, int sizeLimit)
{
double anomalyScore = 0.0;
if(this.internalNode && this.r > sizeLimit)
{
if(inst.value(this.splitAttribute) > this.splitValue)
anomalyScore = right.score(inst, sizeLimit);
else
anomalyScore = left.score(inst, sizeLimi... |
public class class_name {
public static ModifiableDBIDs randomSampleExcept(DBIDs source, DBIDRef except, int k, Random random) {
if(k < 0 || k > source.size()) {
throw new IllegalArgumentException("Illegal value for size of random sample: " + k + " > " + source.size() + " or < 0");
}
// Fast, and we'... | public class class_name {
public static ModifiableDBIDs randomSampleExcept(DBIDs source, DBIDRef except, int k, Random random) {
if(k < 0 || k > source.size()) {
throw new IllegalArgumentException("Illegal value for size of random sample: " + k + " > " + source.size() + " or < 0");
}
// Fast, and we'... |
public class class_name {
protected String getBasePath(String rootPath) {
if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) {
return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length());
}
return rootPath;
} } | public class class_name {
protected String getBasePath(String rootPath) {
if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) {
return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length());
// depends on control dependency: [if], data = [none]
}
ret... |
public class class_name {
public static boolean isValid(int code) {
if (code >= 0 && code <= 999 || code >= 1004 && code <= 1006
|| code >= 1012 && code <= 2999) {
return false;
}
return true;
} } | public class class_name {
public static boolean isValid(int code) {
if (code >= 0 && code <= 999 || code >= 1004 && code <= 1006
|| code >= 1012 && code <= 2999) {
return false; // depends on control dependency: [if], data = [none]
}
return true;
} } |
public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_T_ST_First(long classNameId,
long classPK, int type, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
List<CPAttachmentFileEntry> list = findByC_C_T_ST(classNameId, classPK,
type, status, 0, 1, orderByCompar... | public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_T_ST_First(long classNameId,
long classPK, int type, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
List<CPAttachmentFileEntry> list = findByC_C_T_ST(classNameId, classPK,
type, status, 0, 1, orderByCompar... |
public class class_name {
public ListRepositoriesResult withRepositories(RepositoryNameIdPair... repositories) {
if (this.repositories == null) {
setRepositories(new java.util.ArrayList<RepositoryNameIdPair>(repositories.length));
}
for (RepositoryNameIdPair ele : repositories) {
... | public class class_name {
public ListRepositoriesResult withRepositories(RepositoryNameIdPair... repositories) {
if (this.repositories == null) {
setRepositories(new java.util.ArrayList<RepositoryNameIdPair>(repositories.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void clearSubscrips (boolean verbose)
{
for (ClientProxy rec : _subscrips.values()) {
if (verbose) {
log.info("Clearing subscription", "client", this, "obj", rec.object.getOid());
}
rec.unsubscribe();
}
... | public class class_name {
protected void clearSubscrips (boolean verbose)
{
for (ClientProxy rec : _subscrips.values()) {
if (verbose) {
log.info("Clearing subscription", "client", this, "obj", rec.object.getOid()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static Component getCurrentModal_(RootPaneContainer rootPane) {
synchronized (modals) {
Modal modal = modals.get(rootPane);
if (modal != null) {
if (modal.getSize() > 0) {
return modal.components.get(modal.components.size() - 1);
}
}
return null;
}
} } | public class class_name {
private static Component getCurrentModal_(RootPaneContainer rootPane) {
synchronized (modals) {
Modal modal = modals.get(rootPane);
if (modal != null) {
if (modal.getSize() > 0) {
return modal.components.get(modal.components.size() - 1); // depends on control dependency: [if], da... |
public class class_name {
public static void avoidDoubleBorders (@Nonnull final PLTable ret)
{
boolean bPreviousRowHasBottomBorder = false;
for (int i = 0; i < ret.getRowCount (); i++)
{
boolean bRowHasBottomBorder = true;
boolean bRowHasTopBorder = true;
final PLTableRow aRow = ret.get... | public class class_name {
public static void avoidDoubleBorders (@Nonnull final PLTable ret)
{
boolean bPreviousRowHasBottomBorder = false;
for (int i = 0; i < ret.getRowCount (); i++)
{
boolean bRowHasBottomBorder = true;
boolean bRowHasTopBorder = true;
final PLTableRow aRow = ret.get... |
public class class_name {
public static double[] graphNiceRange(double max, double min, int nTick){
if(max == min || !Double.isFinite(max)){
if(max == 0.0 || !Double.isFinite(max)){
return new double[]{0.0, 1.0};
}
return graphNiceRange(1.5 * max, 0.5 * max,... | public class class_name {
public static double[] graphNiceRange(double max, double min, int nTick){
if(max == min || !Double.isFinite(max)){
if(max == 0.0 || !Double.isFinite(max)){
return new double[]{0.0, 1.0}; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void applyModifications(Properties mods)
{
String key;
String value;
for (Iterator it = mods.keySet().iterator(); it.hasNext();)
{
key = (String)it.next();
value = mods.getProperty(key);
setProperty(key... | public class class_name {
public void applyModifications(Properties mods)
{
String key;
String value;
for (Iterator it = mods.keySet().iterator(); it.hasNext();)
{
key = (String)it.next();
// depends on control dependency: [for], data = [it]
value ... |
public class class_name {
public static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2, JsScope... jsScopes)
{
CharSequence[] args = null;
if (jsScopes != null && jsScopes.length > 0)
{
args = new CharSequence[jsScopes.length + 2];
args[0] = jsScope.render();
args[1] = jsScope2.render();
... | public class class_name {
public static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2, JsScope... jsScopes)
{
CharSequence[] args = null;
if (jsScopes != null && jsScopes.length > 0)
{
args = new CharSequence[jsScopes.length + 2]; // depends on control dependency: [if], data = [none]
args[0... |
public class class_name {
@Override
public final void write(final Map<String, Object> pReqVars,
final List<List<Object>> pData, final CsvMethod pCsvMethod,
final OutputStream pOus) throws Exception {
Map<Long, MatchForeign> mfMap = new HashMap<Long, MatchForeign>();
Map<Integer, SimpleDateFormat> d... | public class class_name {
@Override
public final void write(final Map<String, Object> pReqVars,
final List<List<Object>> pData, final CsvMethod pCsvMethod,
final OutputStream pOus) throws Exception {
Map<Long, MatchForeign> mfMap = new HashMap<Long, MatchForeign>();
Map<Integer, SimpleDateFormat> d... |
public class class_name {
private JCheckBox getChkProxyOnly() {
if (proxyOnlyCheckbox == null) {
proxyOnlyCheckbox = new JCheckBox();
proxyOnlyCheckbox.setText(Constant.messages.getString("httpsessions.options.label.proxyOnly"));
}
return proxyOnlyCheckbox;
} } | public class class_name {
private JCheckBox getChkProxyOnly() {
if (proxyOnlyCheckbox == null) {
proxyOnlyCheckbox = new JCheckBox();
// depends on control dependency: [if], data = [none]
proxyOnlyCheckbox.setText(Constant.messages.getString("httpsessions.options.label.proxyOnly"));
}
return proxyOnly... |
public class class_name {
private void openFile(final File log) throws IOException
{
SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Void>()
{
@SuppressWarnings("resource")
public Void run() throws Exception
{
// set file size;
... | public class class_name {
private void openFile(final File log) throws IOException
{
SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Void>()
{
@SuppressWarnings("resource")
public Void run() throws Exception
{
// set file size;
... |
public class class_name {
public static String getMethodDescriptor(final Type returnType, final Type... argumentTypes) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append('(');
for (int i = 0; i < argumentTypes.length; ++i) {
argumentTypes[i].appendDescriptor(stringBuilder);
... | public class class_name {
public static String getMethodDescriptor(final Type returnType, final Type... argumentTypes) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append('(');
for (int i = 0; i < argumentTypes.length; ++i) {
argumentTypes[i].appendDescriptor(stringBuilder); // ... |
public class class_name {
@DELETE
@Path("/{entryPath:.+}")
public Response removeEntry(@PathParam("entryPath") String entryPath)
{
SessionProvider sessionProvider = sessionProviderService.getSessionProvider(null);
try
{
regService.removeEntry(sessionProvider, normalizePath(entryPat... | public class class_name {
@DELETE
@Path("/{entryPath:.+}")
public Response removeEntry(@PathParam("entryPath") String entryPath)
{
SessionProvider sessionProvider = sessionProviderService.getSessionProvider(null);
try
{
regService.removeEntry(sessionProvider, normalizePath(entryPat... |
public class class_name {
private <RequestT, ResponseT> ResponseT uploadObject(final InputStream originalStream,
final File file,
final ObjectMetadata metadata,
... | public class class_name {
private <RequestT, ResponseT> ResponseT uploadObject(final InputStream originalStream,
final File file,
final ObjectMetadata metadata,
... |
public class class_name {
private boolean validateSize(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true;
}
int objectSize = 0;
int minSize = ((Size) annotate).min();
int maxSize = ((Size) annot... | public class class_name {
private boolean validateSize(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true; // depends on control dependency: [if], data = [none]
}
int objectSize = 0;
int minSize = ((Size... |
public class class_name {
public <H extends Annotation> void scanForAnnotation(
Class<H> expectedAnnotation, Listener<T, H> listener) {
BeanInfo beanInfo;
try {
beanInfo = Introspector.getBeanInfo(beanType);
} catch (IntrospectionException e) {
throw new RuntimeException("Can't get bean i... | public class class_name {
public <H extends Annotation> void scanForAnnotation(
Class<H> expectedAnnotation, Listener<T, H> listener) {
BeanInfo beanInfo;
try {
beanInfo = Introspector.getBeanInfo(beanType); // depends on control dependency: [try], data = [none]
} catch (IntrospectionException ... |
public class class_name {
public static String escapeAttribute( String string )
{
if( string == null || string.length() == 0 )
{
return string;
}
StringBuilder resultBuffer = null;
for( int i = 0, length = string.length(); i < length; i++ )
{
String entity = null;
char ch = ... | public class class_name {
public static String escapeAttribute( String string )
{
if( string == null || string.length() == 0 )
{
return string; // depends on control dependency: [if], data = [none]
}
StringBuilder resultBuffer = null;
for( int i = 0, length = string.length(); i < length; i+... |
public class class_name {
public static void invokeSetter(Object target, String property, Object parameter) {
Method setter = getSetter(target, property, parameter.getClass());
try {
setter.invoke(target, parameter);
} catch (IllegalAccessException e) {
throw handleExcep... | public class class_name {
public static void invokeSetter(Object target, String property, Object parameter) {
Method setter = getSetter(target, property, parameter.getClass());
try {
setter.invoke(target, parameter); // depends on control dependency: [try], data = [none]
} catch (Il... |
public class class_name {
public ScheduledInstanceRecurrenceRequest withOccurrenceDays(Integer... occurrenceDays) {
if (this.occurrenceDays == null) {
setOccurrenceDays(new com.amazonaws.internal.SdkInternalList<Integer>(occurrenceDays.length));
}
for (Integer ele : occurrenceDays) ... | public class class_name {
public ScheduledInstanceRecurrenceRequest withOccurrenceDays(Integer... occurrenceDays) {
if (this.occurrenceDays == null) {
setOccurrenceDays(new com.amazonaws.internal.SdkInternalList<Integer>(occurrenceDays.length)); // depends on control dependency: [if], data = [none]... |
public class class_name {
public SendMessageBatchRequest withEntries(SendMessageBatchRequestEntry... entries) {
if (this.entries == null) {
setEntries(new com.amazonaws.internal.SdkInternalList<SendMessageBatchRequestEntry>(entries.length));
}
for (SendMessageBatchRequestEntry ele :... | public class class_name {
public SendMessageBatchRequest withEntries(SendMessageBatchRequestEntry... entries) {
if (this.entries == null) {
setEntries(new com.amazonaws.internal.SdkInternalList<SendMessageBatchRequestEntry>(entries.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void addClientBehavior(String eventName, ClientBehavior behavior) {
assertClientBehaviorHolder();
// First, make sure that the event is supported. We don't want
// to bother attaching behaviors for unsupported events.
Collection<String> eventNames = ge... | public class class_name {
public void addClientBehavior(String eventName, ClientBehavior behavior) {
assertClientBehaviorHolder();
// First, make sure that the event is supported. We don't want
// to bother attaching behaviors for unsupported events.
Collection<String> eventNames = ge... |
public class class_name {
protected void addTicketToRegistry(final Ticket ticket, final TicketGrantingTicket ticketGrantingTicket) {
LOGGER.debug("Adding ticket [{}] to registry", ticket);
this.ticketRegistry.addTicket(ticket);
if (ticketGrantingTicket != null) {
LOGGER.debug("Updat... | public class class_name {
protected void addTicketToRegistry(final Ticket ticket, final TicketGrantingTicket ticketGrantingTicket) {
LOGGER.debug("Adding ticket [{}] to registry", ticket);
this.ticketRegistry.addTicket(ticket);
if (ticketGrantingTicket != null) {
LOGGER.debug("Updat... |
public class class_name {
@Override
public void clean()
throws IOException {
Preconditions.checkArgument(this.state.contains(ComplianceConfigurationKeys.RETENTION_VERSION_FINDER_CLASS_KEY),
"Missing required property " + ComplianceConfigurationKeys.RETENTION_VERSION_FINDER_CLASS_KEY);
Precondit... | public class class_name {
@Override
public void clean()
throws IOException {
Preconditions.checkArgument(this.state.contains(ComplianceConfigurationKeys.RETENTION_VERSION_FINDER_CLASS_KEY),
"Missing required property " + ComplianceConfigurationKeys.RETENTION_VERSION_FINDER_CLASS_KEY);
Precondit... |
public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuildingInstallation() {
if (_GenericApplicationPropertyOfBuildingInstallation == null) {
_GenericApplicationPropertyOfBuildingInstallation = new ArrayList<JAXBElement<Object>>();
}
return thi... | public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuildingInstallation() {
if (_GenericApplicationPropertyOfBuildingInstallation == null) {
_GenericApplicationPropertyOfBuildingInstallation = new ArrayList<JAXBElement<Object>>(); // depends on control depend... |
public class class_name {
private void loadOptions(final P6LoadableOptions options) {
// make sure to load defaults first
options.load(options.getDefaults());
// load the rest in the right order then
for (P6OptionsSource optionsSource : optionsSources) {
Map<String, String> toLoad = optionsSource.getOption... | public class class_name {
private void loadOptions(final P6LoadableOptions options) {
// make sure to load defaults first
options.load(options.getDefaults());
// load the rest in the right order then
for (P6OptionsSource optionsSource : optionsSources) {
Map<String, String> toLoad = optionsSource.getOption... |
public class class_name {
public void doProcess(Instance carrier) {
try {
if(prePipe!=null)
prePipe.addThruPipe(carrier);
carrier.setSource(carrier.getData());
featurePipe.addThruPipe(carrier);
} catch (Exception e) {
e.printStackTrace();
}
} } | public class class_name {
public void doProcess(Instance carrier) {
try {
if(prePipe!=null)
prePipe.addThruPipe(carrier);
carrier.setSource(carrier.getData());
// depends on control dependency: [try], data = [none]
featurePipe.addThruPipe(carrier);
// depends on control dependency: [try], data = [... |
public class class_name {
static long multiplyFraction(long x, long numerator, long denominator) {
if (x == 1) {
return numerator / denominator;
}
long commonDivisor = gcd(x, denominator);
x /= commonDivisor;
denominator /= commonDivisor;
// We know gcd(x, denominator) = 1, and x * numera... | public class class_name {
static long multiplyFraction(long x, long numerator, long denominator) {
if (x == 1) {
return numerator / denominator; // depends on control dependency: [if], data = [none]
}
long commonDivisor = gcd(x, denominator);
x /= commonDivisor;
denominator /= commonDivisor;
... |
public class class_name {
private static Key<?> newKey(Type type, Set<? extends Annotation> qualifiers) {
if (qualifiers.isEmpty()) {
return Key.get(type);
}
// There can be only one qualifier.
if (qualifiers.size() == 1) {
for (Annotation first : qualifiers) {
return Key.get(t... | public class class_name {
private static Key<?> newKey(Type type, Set<? extends Annotation> qualifiers) {
if (qualifiers.isEmpty()) {
return Key.get(type); // depends on control dependency: [if], data = [none]
}
// There can be only one qualifier.
if (qualifiers.size() == 1) {
for (Ann... |
public class class_name {
@SuppressWarnings({"unchecked"})
public static String[] tokenizeToStringArray(
String str, String delimiters, boolean trimTokens, boolean ignoreEmptyTokens) {
if (str == null) {
return null;
}
StringTokenizer st = new StringTokenizer(str, delim... | public class class_name {
@SuppressWarnings({"unchecked"})
public static String[] tokenizeToStringArray(
String str, String delimiters, boolean trimTokens, boolean ignoreEmptyTokens) {
if (str == null) {
return null; // depends on control dependency: [if], data = [none]
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.