code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public int[][] toArray() {
int[][] res = new int[14][];
int size = 0;
for (int[] map : this) {
if (size == res.length)
res = Arrays.copyOf(res, size + (size >> 1));
res[size++] = map.clone();
}
return Arrays.copyO... | public class class_name {
public int[][] toArray() {
int[][] res = new int[14][];
int size = 0;
for (int[] map : this) {
if (size == res.length)
res = Arrays.copyOf(res, size + (size >> 1));
res[size++] = map.clone(); // depends on control dependency: [fo... |
public class class_name {
@Override
public synchronized void reschedule(String cronExp, VaryingCronOpCall opLambda) {
verifyCanRescheduleState();
assertArgumentNotNull("cronExp", cronExp);
assertArgumentNotNull("opLambda", opLambda);
if (isNonCromExp(cronExp)) {
throw ne... | public class class_name {
@Override
public synchronized void reschedule(String cronExp, VaryingCronOpCall opLambda) {
verifyCanRescheduleState();
assertArgumentNotNull("cronExp", cronExp);
assertArgumentNotNull("opLambda", opLambda);
if (isNonCromExp(cronExp)) {
throw ne... |
public class class_name {
public static String toTitleCase(String str) {
if (str.length() == 0) {
return str;
} else {
return Character.toUpperCase(str.charAt(0)) + str.substring(1).toLowerCase();
}
} } | public class class_name {
public static String toTitleCase(String str) {
if (str.length() == 0) {
return str; // depends on control dependency: [if], data = [none]
} else {
return Character.toUpperCase(str.charAt(0)) + str.substring(1).toLowerCase(); // depends on control depend... |
public class class_name {
public static File findTemplateDirectory( ApplicationTemplate tpl, File configurationDirectory ) {
StringBuilder sb = new StringBuilder( TEMPLATES );
sb.append( "/" );
sb.append( tpl.getName());
if( ! Utils.isEmptyOrWhitespaces( tpl.getVersion())) {
sb.append( " - " );
sb.appen... | public class class_name {
public static File findTemplateDirectory( ApplicationTemplate tpl, File configurationDirectory ) {
StringBuilder sb = new StringBuilder( TEMPLATES );
sb.append( "/" );
sb.append( tpl.getName());
if( ! Utils.isEmptyOrWhitespaces( tpl.getVersion())) {
sb.append( " - " ); // depends ... |
public class class_name {
protected void onNewItems(@NonNull List<Model> newItems, int page) {
OnNewItemsListener<Model> onNewItemsListener = this.mOnNewItemsListener;
try {
onNewItemsListener.onNewItems(newItems, page);
} catch (NullPointerException npe) {
// Lazy null ... | public class class_name {
protected void onNewItems(@NonNull List<Model> newItems, int page) {
OnNewItemsListener<Model> onNewItemsListener = this.mOnNewItemsListener;
try {
onNewItemsListener.onNewItems(newItems, page); // depends on control dependency: [try], data = [none]
} catch... |
public class class_name {
public static String encode(String name)
{
// quick check for root node name
if (name.length() == 0)
{
return name;
}
if (XMLChar.isValidName(name) && name.indexOf("_x") < 0)
{
// already valid
return name;
}
... | public class class_name {
public static String encode(String name)
{
// quick check for root node name
if (name.length() == 0)
{
return name;
// depends on control dependency: [if], data = [none]
}
if (XMLChar.isValidName(name) && name.indexOf("_x") < 0)
{
... |
public class class_name {
public Date getDate(String name, String format) {
Object value = get(name);
if (value instanceof Date) {
return (Date)value;
}
if (value != null) {
try {
return new SimpleDateFormat(format).parse(value.toString()... | public class class_name {
public Date getDate(String name, String format) {
Object value = get(name);
if (value instanceof Date) {
return (Date)value; // depends on control dependency: [if], data = [none]
}
if (value != null) {
try {
retu... |
public class class_name {
static List<IA1Address> resolveCellDependencies(IA1Address cellAddress, Sheet sheet, FormulaParsingWorkbook workbook) {
Row row = sheet.getRow(cellAddress.row());
if (row == null) { return emptyList(); }
Cell cell = row.getCell(cellAddress.column());
if (ce... | public class class_name {
static List<IA1Address> resolveCellDependencies(IA1Address cellAddress, Sheet sheet, FormulaParsingWorkbook workbook) {
Row row = sheet.getRow(cellAddress.row());
if (row == null) { return emptyList(); }
// depends on control dependency: [if], data = [none]
Cell cel... |
public class class_name {
@Nonnull
private String unpackLanguageOrRegion(byte[] value, int base) {
Preconditions.checkState(value.length == 2, "Language or country value must be 2 bytes.");
if (value[0] == 0 && value[1] == 0) {
return "";
}
if (isTruthy(UnsignedBytes.toInt(value[0]) & 0x80)) {
... | public class class_name {
@Nonnull
private String unpackLanguageOrRegion(byte[] value, int base) {
Preconditions.checkState(value.length == 2, "Language or country value must be 2 bytes.");
if (value[0] == 0 && value[1] == 0) {
return ""; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
if (state() == State.RUNNING) {
Futures.await(Services.stopAsync(this, this.executorService));
}
synchronized (this.clients) {
this.clients.clea... | public class class_name {
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
if (state() == State.RUNNING) {
Futures.await(Services.stopAsync(this, this.executorService)); // depends on control dependency: [if], data = [none]
}
synchroni... |
public class class_name {
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX,
final int deltaY, final int scrollY, final int scrollRange, final int fuzzyThreshold,
final float scaleFactor, final boolean isTouchEvent) {
final int deltaValue, currentScrollValue,... | public class class_name {
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX,
final int deltaY, final int scrollY, final int scrollRange, final int fuzzyThreshold,
final float scaleFactor, final boolean isTouchEvent) {
final int deltaValue, currentScrollValue,... |
public class class_name {
public static BigDecimal sub(Number... values) {
if (ArrayUtil.isEmpty(values)) {
return BigDecimal.ZERO;
}
Number value = values[0];
BigDecimal result = new BigDecimal(null == value ? "0" : value.toString());
for (int i = 1; i < values.length; i++) {
value = values[i... | public class class_name {
public static BigDecimal sub(Number... values) {
if (ArrayUtil.isEmpty(values)) {
return BigDecimal.ZERO;
// depends on control dependency: [if], data = [none]
}
Number value = values[0];
BigDecimal result = new BigDecimal(null == value ? "0" : value.toString());
for (int... |
public class class_name {
public void handleRequest(ServletRequest req, ServletResponse res) throws Exception
{
IServletWrapper target = this.cacheTarget;
if (target != null) {
try {
webapp.getFilterManager().invokeFilters((HttpServletRequest) req, (HttpServletResponse) res, webapp, t... | public class class_name {
public void handleRequest(ServletRequest req, ServletResponse res) throws Exception
{
IServletWrapper target = this.cacheTarget;
if (target != null) {
try {
webapp.getFilterManager().invokeFilters((HttpServletRequest) req, (HttpServletResponse) res, webapp, t... |
public class class_name {
@Override
public void addChildren(List<IDifference> children) {
if (children != null) {
differences.addAll(children);
}
} } | public class class_name {
@Override
public void addChildren(List<IDifference> children) {
if (children != null) {
differences.addAll(children); // depends on control dependency: [if], data = [(children]
}
} } |
public class class_name {
@Override
public T addAsWebResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException {
Validate.notNull(resourcePackage, "ResourcePackage must be specified");
Validate.notNullAndNoNullValues(resourceNames,
"ResourceNames must b... | public class class_name {
@Override
public T addAsWebResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException {
Validate.notNull(resourcePackage, "ResourcePackage must be specified");
Validate.notNullAndNoNullValues(resourceNames,
"ResourceNames must b... |
public class class_name {
public String getSingleLineUsage(String name) {
for (SubCommand<SubCommandDef> cmd : subCommands) {
if (name.equals(cmd.getName())) {
return cmd.getArgumentParser(cmd.newInstance()).getSingleLineUsage();
}
}
throw new ArgumentExc... | public class class_name {
public String getSingleLineUsage(String name) {
for (SubCommand<SubCommandDef> cmd : subCommands) {
if (name.equals(cmd.getName())) {
return cmd.getArgumentParser(cmd.newInstance()).getSingleLineUsage(); // depends on control dependency: [if], data = [none]... |
public class class_name {
@Deprecated
@SuppressWarnings("unchecked")
public T[] getValues(T[] array) {
Object o = value.get();
if (o == null || NotificationLite.isComplete(o) || NotificationLite.isError(o)) {
if (array.length != 0) {
array[0] = null;
}
... | public class class_name {
@Deprecated
@SuppressWarnings("unchecked")
public T[] getValues(T[] array) {
Object o = value.get();
if (o == null || NotificationLite.isComplete(o) || NotificationLite.isError(o)) {
if (array.length != 0) {
array[0] = null; // depends on co... |
public class class_name {
public static FortumoStore initFortumoStore(@NotNull Context context, final boolean checkInventory) {
final FortumoStore[] storeToReturn = {null};
final FortumoStore fortumoStore = new FortumoStore(context);
if (fortumoStore.isBillingAvailable(context.getPackageName())... | public class class_name {
public static FortumoStore initFortumoStore(@NotNull Context context, final boolean checkInventory) {
final FortumoStore[] storeToReturn = {null};
final FortumoStore fortumoStore = new FortumoStore(context);
if (fortumoStore.isBillingAvailable(context.getPackageName())... |
public class class_name {
public long run(String partitionValue, long maxTotalRows, long targetMaxRowsToDelete) {
if (targetMaxRowsToDelete <= 0) {
throw new VoltAbortException("maxRowsToDeletePerProc must be > 0.");
}
if (maxTotalRows < 0) {
throw new VoltAbortException... | public class class_name {
public long run(String partitionValue, long maxTotalRows, long targetMaxRowsToDelete) {
if (targetMaxRowsToDelete <= 0) {
throw new VoltAbortException("maxRowsToDeletePerProc must be > 0.");
}
if (maxTotalRows < 0) {
throw new VoltAbortException... |
public class class_name {
public String getId() {
String id = getPropertyAsString(FIELD_ID);
if (id == null){
return getPropertyAsString(FIELD_ITEM_ID);
}
return id;
} } | public class class_name {
public String getId() {
String id = getPropertyAsString(FIELD_ID);
if (id == null){
return getPropertyAsString(FIELD_ITEM_ID); // depends on control dependency: [if], data = [none]
}
return id;
} } |
public class class_name {
private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState)
{
if (entity == null)
{
return null;
}
EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(pd.getKunderaMetadata(),
entity.ge... | public class class_name {
private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState)
{
if (entity == null)
{
return null; // depends on control dependency: [if], data = [none]
}
EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetad... |
public class class_name {
static String getIntervalPattern(ChronoParser<?> parser) {
AttributeQuery attrs = parser.getAttributes();
if (attrs.contains(Attributes.LANGUAGE)) {
Locale locale = attrs.get(Attributes.LANGUAGE);
return CalendarText.patternForInterval(locale);
... | public class class_name {
static String getIntervalPattern(ChronoParser<?> parser) {
AttributeQuery attrs = parser.getAttributes();
if (attrs.contains(Attributes.LANGUAGE)) {
Locale locale = attrs.get(Attributes.LANGUAGE);
return CalendarText.patternForInterval(locale); // dep... |
public class class_name {
public static final Optional<RangeArgs> createFromNode(ForNode node) {
if (node.getExpr().getRoot() instanceof FunctionNode) {
FunctionNode fn = (FunctionNode) node.getExpr().getRoot();
if (fn.getSoyFunction() instanceof RangeFunction) {
return Optional.of(create(fn.ge... | public class class_name {
public static final Optional<RangeArgs> createFromNode(ForNode node) {
if (node.getExpr().getRoot() instanceof FunctionNode) {
FunctionNode fn = (FunctionNode) node.getExpr().getRoot();
if (fn.getSoyFunction() instanceof RangeFunction) {
return Optional.of(create(fn.ge... |
public class class_name {
public boolean isConstructor(PDefinition def)
{
if (def instanceof AExplicitOperationDefinition)
{
AExplicitOperationDefinition op = (AExplicitOperationDefinition)def;
return op.getIsConstructor();
}
else if (def instanceof AImplicitOperationDefinition)
{
AImplicitOperatio... | public class class_name {
public boolean isConstructor(PDefinition def)
{
if (def instanceof AExplicitOperationDefinition)
{
AExplicitOperationDefinition op = (AExplicitOperationDefinition)def;
return op.getIsConstructor(); // depends on control dependency: [if], data = [none]
}
else if (def instanceof ... |
public class class_name {
private static int gallopLeft(Comparable<Object> key, Object[] a,
int base, int len, int hint) {
assert len > 0 && hint >= 0 && hint < len;
int lastOfs = 0;
int ofs = 1;
if (key.compareTo(a[base + hint]) > 0) {
// Gallop right until a[b... | public class class_name {
private static int gallopLeft(Comparable<Object> key, Object[] a,
int base, int len, int hint) {
assert len > 0 && hint >= 0 && hint < len;
int lastOfs = 0;
int ofs = 1;
if (key.compareTo(a[base + hint]) > 0) {
// Gallop right until a[b... |
public class class_name {
public static double det( DMatrixSparseCSC A ) {
LUSparseDecomposition_F64<DMatrixSparseCSC> alg = DecompositionFactory_DSCC.lu(FillReducing.NONE);
if( alg.inputModified() ) {
A = A.copy();
}
if( !alg.decompose(A) )
return 0.0;
... | public class class_name {
public static double det( DMatrixSparseCSC A ) {
LUSparseDecomposition_F64<DMatrixSparseCSC> alg = DecompositionFactory_DSCC.lu(FillReducing.NONE);
if( alg.inputModified() ) {
A = A.copy(); // depends on control dependency: [if], data = [none]
}
i... |
public class class_name {
private void buildInheritedSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap, LinkedList<Content> summaryTreeList) {
for (ClassDoc inhclass : visibleMemberMap.getVisibleClassesList()) {
if (!(inhclass.isPublic() ||
utils.is... | public class class_name {
private void buildInheritedSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap, LinkedList<Content> summaryTreeList) {
for (ClassDoc inhclass : visibleMemberMap.getVisibleClassesList()) {
if (!(inhclass.isPublic() ||
utils.is... |
public class class_name {
private static boolean requiredByPlatformFeature(ContentBasedLocalBundleRepository br, File baseDir, File b) {
try {
Map<String, ProvisioningFeatureDefinition> features = new Product(baseDir).getFeatureDefinitions();
for (ProvisioningFeatureDefinition fd : feat... | public class class_name {
private static boolean requiredByPlatformFeature(ContentBasedLocalBundleRepository br, File baseDir, File b) {
try {
Map<String, ProvisioningFeatureDefinition> features = new Product(baseDir).getFeatureDefinitions();
for (ProvisioningFeatureDefinition fd : feat... |
public class class_name {
public boolean setStreamConfiguration(StreamConfiguration sc) {
boolean changed = false;
sc = new StreamConfiguration(sc);
if(sc != null) {
if(flacStreamIsOpen || isEncoding)
changed = false;
else {
streamLock.lock();
try{
if(flacStrea... | public class class_name {
public boolean setStreamConfiguration(StreamConfiguration sc) {
boolean changed = false;
sc = new StreamConfiguration(sc);
if(sc != null) {
if(flacStreamIsOpen || isEncoding)
changed = false;
else {
streamLock.lock(); // depends on control dependency: [... |
public class class_name {
public static IScope resolveScope(IScope from, String path) {
log.debug("resolveScope from: {} path: {}", from.getName(), path);
IScope current = from;
if (path.startsWith(SLASH)) {
current = ScopeUtils.findRoot(current);
path = path.substring(1... | public class class_name {
public static IScope resolveScope(IScope from, String path) {
log.debug("resolveScope from: {} path: {}", from.getName(), path);
IScope current = from;
if (path.startsWith(SLASH)) {
current = ScopeUtils.findRoot(current); // depends on control dependency: [... |
public class class_name {
public void marshall(GetSamplingTargetsRequest getSamplingTargetsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSamplingTargetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(GetSamplingTargetsRequest getSamplingTargetsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSamplingTargetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
@Override
public FilterSupportStatus isFilterSupported(
FilterAdapterContext context,
ColumnPaginationFilter filter) {
// We require a single column family to be specified:
int familyCount = context.getScan().numFamilies();
if (filter.getColumnOffset() != null && fam... | public class class_name {
@Override
public FilterSupportStatus isFilterSupported(
FilterAdapterContext context,
ColumnPaginationFilter filter) {
// We require a single column family to be specified:
int familyCount = context.getScan().numFamilies();
if (filter.getColumnOffset() != null && fam... |
public class class_name {
protected Date massageDate (Object arg)
{
if (arg instanceof Long) {
return new Date(((Long)arg).longValue());
} else if (arg instanceof Date) {
return (Date)arg;
} else if (arg instanceof Calendar) {
return ((Calendar)arg).getTi... | public class class_name {
protected Date massageDate (Object arg)
{
if (arg instanceof Long) {
return new Date(((Long)arg).longValue()); // depends on control dependency: [if], data = [none]
} else if (arg instanceof Date) {
return (Date)arg; // depends on control dependency... |
public class class_name {
public static byte[] xorAlignRight(byte[] b1, byte[] b2) {
if (b1.length > b2.length) {
byte[] b2_ = new byte[b1.length];
System.arraycopy(b2, 0, b2_, b1.length - b2.length, b2.length);
b2 = b2_;
} else if (b2.length > b1.length) {
... | public class class_name {
public static byte[] xorAlignRight(byte[] b1, byte[] b2) {
if (b1.length > b2.length) {
byte[] b2_ = new byte[b1.length];
System.arraycopy(b2, 0, b2_, b1.length - b2.length, b2.length); // depends on control dependency: [if], data = [b2.length)]
b2 ... |
public class class_name {
@Override
public List<Asset> findAssets(String searchString, Collection<ResourceType> types) throws IOException, RequestFailureException {
String encodedSearchString = URLEncoder.encode(searchString, "UTF-8");
StringBuffer url = new StringBuffer("/assets?q=" + encodedSea... | public class class_name {
@Override
public List<Asset> findAssets(String searchString, Collection<ResourceType> types) throws IOException, RequestFailureException {
String encodedSearchString = URLEncoder.encode(searchString, "UTF-8");
StringBuffer url = new StringBuffer("/assets?q=" + encodedSea... |
public class class_name {
public static Object simpleDeepCopy( Object object ) {
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(object);
oos.flush();
oos.close();
... | public class class_name {
public static Object simpleDeepCopy( Object object ) {
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(object); // depends on control dependency: [try], data = [no... |
public class class_name {
public static int readSizeT(Pointer ptr) {
// TODO(scottb): make not public.
if (SIZE_T_CLASS == SizeT4.class) {
int result;
result = ptr.getInt(0);
assert result >= 0;
return result;
} else {
long result = ptr.getLong(0);
assert result >= 0;
... | public class class_name {
public static int readSizeT(Pointer ptr) {
// TODO(scottb): make not public.
if (SIZE_T_CLASS == SizeT4.class) {
int result;
result = ptr.getInt(0); // depends on control dependency: [if], data = [none]
assert result >= 0;
return result; // depends on control d... |
public class class_name {
public void setResourceGroupTags(java.util.Collection<ResourceGroupTag> resourceGroupTags) {
if (resourceGroupTags == null) {
this.resourceGroupTags = null;
return;
}
this.resourceGroupTags = new java.util.ArrayList<ResourceGroupTag>(resourceGr... | public class class_name {
public void setResourceGroupTags(java.util.Collection<ResourceGroupTag> resourceGroupTags) {
if (resourceGroupTags == null) {
this.resourceGroupTags = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
public static void main(String[] args) throws ClassNotFoundException, IOException {
// When run off the command-line or a build script, this program takes in two arguments: the path containing
// class files to scan, and the output file to generate.
long startTime = System.n... | public class class_name {
public static void main(String[] args) throws ClassNotFoundException, IOException {
// When run off the command-line or a build script, this program takes in two arguments: the path containing
// class files to scan, and the output file to generate.
long startTime = System.n... |
public class class_name {
public List<String> getEventTypes() {
ArrayList<String> allEvents = new ArrayList<>();
if (isDelivered()) {
allEvents.add(MessageEvent.DELIVERED);
}
if (!isMessageEventRequest() && isCancelled()) {
allEvents.add(MessageEvent.CANCELLED);
... | public class class_name {
public List<String> getEventTypes() {
ArrayList<String> allEvents = new ArrayList<>();
if (isDelivered()) {
allEvents.add(MessageEvent.DELIVERED); // depends on control dependency: [if], data = [none]
}
if (!isMessageEventRequest() && isCancelled())... |
public class class_name {
public void add(LongDoubleVector other) {
if (other instanceof LongDoubleUnsortedVector) {
LongDoubleUnsortedVector vec = (LongDoubleUnsortedVector) other;
for (int i=0; i<vec.top; i++) {
this.add(vec.idx[i], vec.vals[i]);
}
... | public class class_name {
public void add(LongDoubleVector other) {
if (other instanceof LongDoubleUnsortedVector) {
LongDoubleUnsortedVector vec = (LongDoubleUnsortedVector) other;
for (int i=0; i<vec.top; i++) {
this.add(vec.idx[i], vec.vals[i]); // depends on control ... |
public class class_name {
public ClassLoader getCompositeClassLoader()
{
List<ClassLoader> loaders = new ArrayList<>();
AddonFilter filter = new AddonFilter()
{
@Override
public boolean accept(Addon addon)
{
return addonDependsOnGraphApi(a... | public class class_name {
public ClassLoader getCompositeClassLoader()
{
List<ClassLoader> loaders = new ArrayList<>();
AddonFilter filter = new AddonFilter()
{
@Override
public boolean accept(Addon addon)
{
return addonDependsOnGraphApi(a... |
public class class_name {
public byte[] getEncodedPKCS1() {
try {
if (externalDigest != null)
digest = externalDigest;
else
digest = sig.sign();
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
ASN1OutputStr... | public class class_name {
public byte[] getEncodedPKCS1() {
try {
if (externalDigest != null)
digest = externalDigest;
else
digest = sig.sign();
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
ASN1OutputStr... |
public class class_name {
static String[] split(URI remoteUri, String suffix, @Nullable String defaultBranch) {
final String host = remoteUri.getHost();
if (host == null && !remoteUri.getScheme().endsWith("+file")) {
throw new IllegalArgumentException("no host in remoteUri: " + remoteUri);
... | public class class_name {
static String[] split(URI remoteUri, String suffix, @Nullable String defaultBranch) {
final String host = remoteUri.getHost();
if (host == null && !remoteUri.getScheme().endsWith("+file")) {
throw new IllegalArgumentException("no host in remoteUri: " + remoteUri);
... |
public class class_name {
public JsonObject export() {
JsonObject result = JsonObject.create();
for (MutationToken token : tokens) {
JsonObject bucket = result.getObject(token.bucket());
if (bucket == null) {
bucket = JsonObject.create();
result.p... | public class class_name {
public JsonObject export() {
JsonObject result = JsonObject.create();
for (MutationToken token : tokens) {
JsonObject bucket = result.getObject(token.bucket());
if (bucket == null) {
bucket = JsonObject.create(); // depends on control de... |
public class class_name {
@Override
protected void visitPrintNode(PrintNode node) {
TranslateToPyExprVisitor translator =
new TranslateToPyExprVisitor(localVarExprs, pluginValueFactory, errorReporter);
PyExpr pyExpr = translator.exec(node.getExpr());
// Process directives.
for (PrintDirecti... | public class class_name {
@Override
protected void visitPrintNode(PrintNode node) {
TranslateToPyExprVisitor translator =
new TranslateToPyExprVisitor(localVarExprs, pluginValueFactory, errorReporter);
PyExpr pyExpr = translator.exec(node.getExpr());
// Process directives.
for (PrintDirecti... |
public class class_name {
static RedisNodeDescription findNodeByHostAndPort(Collection<RedisNodeDescription> nodes, String host, int port) {
for (RedisNodeDescription node : nodes) {
RedisURI nodeUri = node.getUri();
if (nodeUri.getHost().equals(host) && nodeUri.getPort() == port) {
... | public class class_name {
static RedisNodeDescription findNodeByHostAndPort(Collection<RedisNodeDescription> nodes, String host, int port) {
for (RedisNodeDescription node : nodes) {
RedisURI nodeUri = node.getUri();
if (nodeUri.getHost().equals(host) && nodeUri.getPort() == port) {
... |
public class class_name {
@Nonnull
public BugInstance addClassAndMethod(JavaClass javaClass, Method method) {
addClass(javaClass.getClassName());
addMethod(javaClass, method);
if (!MemberUtils.isUserGenerated(method)) {
foundInAutogeneratedMethod();
}
return thi... | public class class_name {
@Nonnull
public BugInstance addClassAndMethod(JavaClass javaClass, Method method) {
addClass(javaClass.getClassName());
addMethod(javaClass, method);
if (!MemberUtils.isUserGenerated(method)) {
foundInAutogeneratedMethod(); // depends on control depend... |
public class class_name {
public static Base64Url encode(byte[] bytes) {
if (bytes == null) {
return new Base64Url(null);
} else {
return new Base64Url(BaseEncoding.base64Url().omitPadding().encode(bytes));
}
} } | public class class_name {
public static Base64Url encode(byte[] bytes) {
if (bytes == null) {
return new Base64Url(null); // depends on control dependency: [if], data = [null)]
} else {
return new Base64Url(BaseEncoding.base64Url().omitPadding().encode(bytes)); // depends on con... |
public class class_name {
public void handleStoreInstruction(StoreInstruction obj) {
try {
int numConsumed = obj.consumeStack(cpg);
if (numConsumed == Const.UNPREDICTABLE) {
throw new InvalidBytecodeException("Unpredictable stack consumption");
}
... | public class class_name {
public void handleStoreInstruction(StoreInstruction obj) {
try {
int numConsumed = obj.consumeStack(cpg);
if (numConsumed == Const.UNPREDICTABLE) {
throw new InvalidBytecodeException("Unpredictable stack consumption");
}
... |
public class class_name {
protected synchronized BoundingBox getCurBounds() {
if (currBoundingBox == null) {
if (mapView == null) {
throw new NullPointerException("mapView == null");
}
if (mapView.getWidth() <= 0 || mapView.getHeight() <= 0) {
... | public class class_name {
protected synchronized BoundingBox getCurBounds() {
if (currBoundingBox == null) {
if (mapView == null) {
throw new NullPointerException("mapView == null");
}
if (mapView.getWidth() <= 0 || mapView.getHeight() <= 0) {
... |
public class class_name {
protected List<JoinableResourceBundle> filterBundlesToRender(List<JoinableResourceBundle> bundles) {
List<JoinableResourceBundle> filteredBundles = new ArrayList<>();
for (JoinableResourceBundle bundle : bundles) {
if (!bundle.getInclusionPattern().isIncludeOnlyOnDebug()) {
filtere... | public class class_name {
protected List<JoinableResourceBundle> filterBundlesToRender(List<JoinableResourceBundle> bundles) {
List<JoinableResourceBundle> filteredBundles = new ArrayList<>();
for (JoinableResourceBundle bundle : bundles) {
if (!bundle.getInclusionPattern().isIncludeOnlyOnDebug()) {
filtere... |
public class class_name {
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform normal2Device) {
if ((project == null) || !posWasCalc) return;
// use world coordinates for position, but draw in screen coordinates
// so that the symbols stay the same size
AffineTransform world2Devi... | public class class_name {
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform normal2Device) {
if ((project == null) || !posWasCalc) return;
// use world coordinates for position, but draw in screen coordinates
// so that the symbols stay the same size
AffineTransform world2Devi... |
public class class_name {
@Bean(EXECUTOR_SERVICE_BEAN_NAME)
public ExecutorService executorService() {
if (this.properties.getNumberOfThread() == 0) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Use cached thread pool.");
}
return Executors.newCachedThre... | public class class_name {
@Bean(EXECUTOR_SERVICE_BEAN_NAME)
public ExecutorService executorService() {
if (this.properties.getNumberOfThread() == 0) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Use cached thread pool."); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider) {
// todo: for multithreaded usage this block needs to be synchronized
if (!_serviceProviders.containsKey(serviceClass)) {
_serviceProviders.put(serviceClass, new ServiceProvi... | public class class_name {
public boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider) {
// todo: for multithreaded usage this block needs to be synchronized
if (!_serviceProviders.containsKey(serviceClass)) {
_serviceProviders.put(serviceClass, new ServiceProvi... |
public class class_name {
private static DateTimeRule toWallTimeRule(DateTimeRule rule, int rawOffset, int dstSavings) {
if (rule.getTimeRuleType() == DateTimeRule.WALL_TIME) {
return rule;
}
int wallt = rule.getRuleMillisInDay();
if (rule.getTimeRuleType() == DateTimeRule.U... | public class class_name {
private static DateTimeRule toWallTimeRule(DateTimeRule rule, int rawOffset, int dstSavings) {
if (rule.getTimeRuleType() == DateTimeRule.WALL_TIME) {
return rule; // depends on control dependency: [if], data = [none]
}
int wallt = rule.getRuleMillisInDay()... |
public class class_name {
public String format(INDArray arr, boolean summarize) {
this.scientificFormat = "0.";
int addPrecision = this.precision;
while (addPrecision > 0) {
this.scientificFormat += "#";
addPrecision -= 1;
}
this.scientificFormat = this.s... | public class class_name {
public String format(INDArray arr, boolean summarize) {
this.scientificFormat = "0.";
int addPrecision = this.precision;
while (addPrecision > 0) {
this.scientificFormat += "#";
addPrecision -= 1; // depends on control dependency: [while], data ... |
public class class_name {
public PropertyList<Property> getProperties(final String paramValue) {
PropertyList<Property> properties = index.get(paramValue);
if (properties == null) {
properties = EMPTY_LIST;
}
return properties;
} } | public class class_name {
public PropertyList<Property> getProperties(final String paramValue) {
PropertyList<Property> properties = index.get(paramValue);
if (properties == null) {
properties = EMPTY_LIST; // depends on control dependency: [if], data = [none]
}
return prope... |
public class class_name {
public int getFieldExprIndex(final String _expr)
{
int ret = -1;
if (getAllFieldExpr().containsKey(_expr)) {
final Integer ident = getAllFieldExpr().get(_expr);
ret = ident.intValue();
}
return ret;
} } | public class class_name {
public int getFieldExprIndex(final String _expr)
{
int ret = -1;
if (getAllFieldExpr().containsKey(_expr)) {
final Integer ident = getAllFieldExpr().get(_expr);
ret = ident.intValue(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void populateBean(final T resultBean, final String[] nameMapping, final CsvBindingErrors bindingErrors) {
// map each column to its associated field on the bean
for( int i = 0; i < nameMapping.length; i++ ) {
final String fieldName = nameMapp... | public class class_name {
protected void populateBean(final T resultBean, final String[] nameMapping, final CsvBindingErrors bindingErrors) {
// map each column to its associated field on the bean
for( int i = 0; i < nameMapping.length; i++ ) {
final String fieldName = nameMapp... |
public class class_name {
static void generateLogForSQL(SQLiteModelMethod method, MethodSpec.Builder methodBuilder) {
// manage log
if (method.getParent().getParent().generateLog) {
methodBuilder.addCode("\n// manage log\n");
methodBuilder.addStatement("$T.info(_sql)", Logger.class);
}
} } | public class class_name {
static void generateLogForSQL(SQLiteModelMethod method, MethodSpec.Builder methodBuilder) {
// manage log
if (method.getParent().getParent().generateLog) {
methodBuilder.addCode("\n// manage log\n");
methodBuilder.addStatement("$T.info(_sql)", Logger.class); // depends on control de... |
public class class_name {
public void set_async_reply_model(final int id, final int reply_model) {
final AsyncCallObject aco = async_request_table.get(id);
if (aco != null) {
aco.reply_model = reply_model;
}
} } | public class class_name {
public void set_async_reply_model(final int id, final int reply_model) {
final AsyncCallObject aco = async_request_table.get(id);
if (aco != null) {
aco.reply_model = reply_model; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static final String normalizeSignature(String deplDescriptorSignature)
{
StringBuilder theSignature = new StringBuilder(deplDescriptorSignature);
int scanIndex = 0;
while (scanIndex < theSignature.length())
{
if (theSignature.charAt(scanI... | public class class_name {
public static final String normalizeSignature(String deplDescriptorSignature)
{
StringBuilder theSignature = new StringBuilder(deplDescriptorSignature);
int scanIndex = 0;
while (scanIndex < theSignature.length())
{
if (theSignature.charAt(scanI... |
public class class_name {
protected void appendSQL(final String _tablePrefix,
final StringBuilder _cmd)
{
if (sections.size() > 0) {
if (isStarted()) {
new SQLSelectPart(SQLPart.AND).appendSQL(_cmd);
new SQLSelectPart(SQLPart.SPACE).a... | public class class_name {
protected void appendSQL(final String _tablePrefix,
final StringBuilder _cmd)
{
if (sections.size() > 0) {
if (isStarted()) {
new SQLSelectPart(SQLPart.AND).appendSQL(_cmd); // depends on control dependency: [if], data = [no... |
public class class_name {
public Observable<ServiceResponse<StorageAccountInfoInner>> getStorageAccountWithServiceResponseAsync(String resourceGroupName, String accountName, String storageAccountName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName... | public class class_name {
public Observable<ServiceResponse<StorageAccountInfoInner>> getStorageAccountWithServiceResponseAsync(String resourceGroupName, String accountName, String storageAccountName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName... |
public class class_name {
private static boolean analyse500Response(final String content) {
if (content.contains("error") && content.contains("{not_found, missing_named_view}")) {
LOGGER.debug("Design document not found, error is {}", content);
return false;
}
if (conten... | public class class_name {
private static boolean analyse500Response(final String content) {
if (content.contains("error") && content.contains("{not_found, missing_named_view}")) {
LOGGER.debug("Design document not found, error is {}", content); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public synchronized void finalReap() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "finalReap : Remote Async Results = " + ivAllRemoteAsyncResults.size());
// Re-write the finalReap to... | public class class_name {
public synchronized void finalReap() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "finalReap : Remote Async Results = " + ivAllRemoteAsyncResults.size());
// Re-write the finalReap to... |
public class class_name {
private ActiveRule newRule(int ID, RuleActiveRegressionNode node, double[] statistics) {
ActiveRule r=newRule(ID);
if (node!=null)
{
if(node.getPerceptron()!=null)
{
r.getLearningNode().setPerceptron(new Perceptron(node.getPerceptron()));
r.getLearningNode().getPerceptron... | public class class_name {
private ActiveRule newRule(int ID, RuleActiveRegressionNode node, double[] statistics) {
ActiveRule r=newRule(ID);
if (node!=null)
{
if(node.getPerceptron()!=null)
{
r.getLearningNode().setPerceptron(new Perceptron(node.getPerceptron())); // depends on control dependency: [if... |
public class class_name {
protected PrimitiveMatrix getViewReturns() {
final int tmpRowDim = myViews.size();
final int tmpColDim = 1;
final PrimitiveMatrix.DenseReceiver retVal = MATRIX_FACTORY.makeDense(tmpRowDim, tmpColDim);
double tmpRet;
final double tmpRAF = this.getRisk... | public class class_name {
protected PrimitiveMatrix getViewReturns() {
final int tmpRowDim = myViews.size();
final int tmpColDim = 1;
final PrimitiveMatrix.DenseReceiver retVal = MATRIX_FACTORY.makeDense(tmpRowDim, tmpColDim);
double tmpRet;
final double tmpRAF = this.getRisk... |
public class class_name {
public final void ruleJvmLowerBound() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXtype.g:271:2: ( ( ( rule__JvmLowerBound__Group__0 ) ) )
// InternalXtype.g:272:2: ( ( rule__JvmLowerBound__Group__0 ) )
... | public class class_name {
public final void ruleJvmLowerBound() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXtype.g:271:2: ( ( ( rule__JvmLowerBound__Group__0 ) ) )
// InternalXtype.g:272:2: ( ( rule__JvmLowerBound__Group__0 ) )
... |
public class class_name {
protected void revalidateLayout() {
for (MaterialIcon icon : iconList) {
icon.removeFromParent();
}
iconList.clear();
// same mouse-out handler for all icons
MouseOutHandler outHandler = event -> {
if (!isEnabled() || !isEditabl... | public class class_name {
protected void revalidateLayout() {
for (MaterialIcon icon : iconList) {
icon.removeFromParent(); // depends on control dependency: [for], data = [icon]
}
iconList.clear();
// same mouse-out handler for all icons
MouseOutHandler outHandler ... |
public class class_name {
private void addMessageToSitesTree(final HistoryReference historyReference, final HttpMessage message) {
if (View.isInitialised() && !EventQueue.isDispatchThread()) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
addMessageToSitesTree(historyReferenc... | public class class_name {
private void addMessageToSitesTree(final HistoryReference historyReference, final HttpMessage message) {
if (View.isInitialised() && !EventQueue.isDispatchThread()) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
addMessageToSitesTree(historyReferenc... |
public class class_name {
public static void permute(@Nullable int permRowInv[], DMatrixSparseCSC input, @Nullable int permCol[], DMatrixSparseCSC output) {
if( permRowInv!= null && input.numRows > permRowInv.length )
throw new IllegalArgumentException("rowInv permutation vector must have at least ... | public class class_name {
public static void permute(@Nullable int permRowInv[], DMatrixSparseCSC input, @Nullable int permCol[], DMatrixSparseCSC output) {
if( permRowInv!= null && input.numRows > permRowInv.length )
throw new IllegalArgumentException("rowInv permutation vector must have at least ... |
public class class_name {
public HFCACertificateResponse getHFCACertificates(User registrar, HFCACertificateRequest req) throws HFCACertificateException {
try {
logger.debug(format("certificate url: %s, registrar: %s", HFCA_CERTIFICATE, registrar.getName()));
JsonObject result = httpGe... | public class class_name {
public HFCACertificateResponse getHFCACertificates(User registrar, HFCACertificateRequest req) throws HFCACertificateException {
try {
logger.debug(format("certificate url: %s, registrar: %s", HFCA_CERTIFICATE, registrar.getName()));
JsonObject result = httpGe... |
public class class_name {
protected String replaceSimpleGroupNameVariables(String str, List<String> groupNames,
List<String> groupValues, boolean debugPrint) {
String result = str;
int length = Math.min(groupNames.size(), groupValues.size());
for (int i=0; i < length; i++) {
... | public class class_name {
protected String replaceSimpleGroupNameVariables(String str, List<String> groupNames,
List<String> groupValues, boolean debugPrint) {
String result = str;
int length = Math.min(groupNames.size(), groupValues.size());
for (int i=0; i < length; i++) {
... |
public class class_name {
public static <T> T createComponent(Class<T> componentClass, Object... dependencies) {
String fqn = componentClass.getName();
String packageName = componentClass.getPackage().getName();
// Accounts for inner classes, ie MyApplication$Component
String simpleName = fqn.substrin... | public class class_name {
public static <T> T createComponent(Class<T> componentClass, Object... dependencies) {
String fqn = componentClass.getName();
String packageName = componentClass.getPackage().getName();
// Accounts for inner classes, ie MyApplication$Component
String simpleName = fqn.substrin... |
public class class_name {
public static ArrayList<Element> isDescendant( Element parent, Element maybeDescendant )
{
ArrayList<Element> res = new ArrayList<>();
Element cur = maybeDescendant;
while( cur != null )
{
res.add( 0, cur );
if( cur == parent )
return res;
cur = cur.getPare... | public class class_name {
public static ArrayList<Element> isDescendant( Element parent, Element maybeDescendant )
{
ArrayList<Element> res = new ArrayList<>();
Element cur = maybeDescendant;
while( cur != null )
{
res.add( 0, cur ); // depends on control dependency: [while], data = [none]
if(... |
public class class_name {
public synchronized String makeEscapedCompactString() {
StringBuffer buffer = new StringBuffer();
for(Group group: this){
buffer.append(group.makeEscapedCompactString());
}
return buffer.toString();
} } | public class class_name {
public synchronized String makeEscapedCompactString() {
StringBuffer buffer = new StringBuffer();
for(Group group: this){
buffer.append(group.makeEscapedCompactString()); // depends on control dependency: [for], data = [group]
}
return buffer.toString();
} } |
public class class_name {
public void run() {
try {
Object result = execute();
if (!aborted) {
this.retval = result;
finished = true;
}
}
catch (InterruptedException ie) {
//
}
catch (Throwable t) {
execException = t;
finished = true;
}
} } | public class class_name {
public void run() {
try {
Object result = execute();
if (!aborted) {
this.retval = result; // depends on control dependency: [if], data = [none]
finished = true; // depends on control dependency: [if], data = [none]
}
}
catch (InterruptedException ie) {
//
} // dep... |
public class class_name {
protected Element createLinkWrapperElement(final Document document, final Node node, final String cssClass) {
// Create the bug/editor link root element
final Element linkElement = document.createElement("para");
if (cssClass != null) {
linkElement.setAttri... | public class class_name {
protected Element createLinkWrapperElement(final Document document, final Node node, final String cssClass) {
// Create the bug/editor link root element
final Element linkElement = document.createElement("para");
if (cssClass != null) {
linkElement.setAttri... |
public class class_name {
public static Tag outcome(ClientResponse response) {
try {
if (response != null) {
HttpStatus status = response.statusCode();
if (status.is1xxInformational()) {
return OUTCOME_INFORMATIONAL;
}
if (status.is2xxSuccessful()) {
return OUTCOME_SUCCESS;
}
if ... | public class class_name {
public static Tag outcome(ClientResponse response) {
try {
if (response != null) {
HttpStatus status = response.statusCode();
if (status.is1xxInformational()) {
return OUTCOME_INFORMATIONAL; // depends on control dependency: [if], data = [none]
}
if (status.is2xxSucc... |
public class class_name {
public static boolean isCatalogCompatible(String catalogVersionStr)
{
if (catalogVersionStr == null || catalogVersionStr.isEmpty()) {
return false;
}
//Check that it is a properly formed verstion string
Object[] catalogVersion = MiscUtils.parse... | public class class_name {
public static boolean isCatalogCompatible(String catalogVersionStr)
{
if (catalogVersionStr == null || catalogVersionStr.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
//Check that it is a properly formed verstion st... |
public class class_name {
@Override
public Class<?> fromComponentNameToClass(final String componentName) { // *important
if (LdiStringUtil.isEmpty(componentName)) {
throw new EmptyRuntimeException("componentName");
}
final String suffix = fromComponentNameToSuffix(componentName)... | public class class_name {
@Override
public Class<?> fromComponentNameToClass(final String componentName) { // *important
if (LdiStringUtil.isEmpty(componentName)) {
throw new EmptyRuntimeException("componentName");
}
final String suffix = fromComponentNameToSuffix(componentName)... |
public class class_name {
protected RRSGlobalTransactionWrapper getRRSGlobalTransactionWrapper() throws ResourceException {
final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
if (isTracingEnabled && tc.isEntryEnabled()) {
Tr.entry(this, tc, "getRRSGlobalTransactionWrap... | public class class_name {
protected RRSGlobalTransactionWrapper getRRSGlobalTransactionWrapper() throws ResourceException {
final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
if (isTracingEnabled && tc.isEntryEnabled()) {
Tr.entry(this, tc, "getRRSGlobalTransactionWrap... |
public class class_name {
@Override
protected Content getClassLink(LinkInfo linkInfo) {
Configuration configuration = m_writer.configuration;
Utils utils = configuration.utils;
LinkInfoImpl classLinkInfo = (LinkInfoImpl) linkInfo;
boolean noLabel = linkInfo.label == null || linkInfo... | public class class_name {
@Override
protected Content getClassLink(LinkInfo linkInfo) {
Configuration configuration = m_writer.configuration;
Utils utils = configuration.utils;
LinkInfoImpl classLinkInfo = (LinkInfoImpl) linkInfo;
boolean noLabel = linkInfo.label == null || linkInfo... |
public class class_name {
private void setupComboBoxFile() {
m_target.setInputPrompt(CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_EXPORT_FILE_NAME_EMPTY_0));
m_target.setNewItemsAllowed(true);
List<String> files = CmsDbManager.getFileListFromServer(true);
for (String file : f... | public class class_name {
private void setupComboBoxFile() {
m_target.setInputPrompt(CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_EXPORT_FILE_NAME_EMPTY_0));
m_target.setNewItemsAllowed(true);
List<String> files = CmsDbManager.getFileListFromServer(true);
for (String file : f... |
public class class_name {
public void setFrustum(Matrix4f projMatrix)
{
if (projMatrix != null)
{
if (mProjMatrix == null)
{
mProjMatrix = new float[16];
}
mProjMatrix = projMatrix.get(mProjMatrix, 0);
mScene.setPickVisible... | public class class_name {
public void setFrustum(Matrix4f projMatrix)
{
if (projMatrix != null)
{
if (mProjMatrix == null)
{
mProjMatrix = new float[16]; // depends on control dependency: [if], data = [none]
}
mProjMatrix = projMatrix.... |
public class class_name {
private Point getDropPoint(QuickWidget element, DropPosition pos) {
Point dropPoint = new Point(element.getCenterLocation().x, element.getCenterLocation().y);
if (pos == DropPosition.CENTER) {
return dropPoint;
}
Point dragPoint = new Point(this.getCenterLocation().x, t... | public class class_name {
private Point getDropPoint(QuickWidget element, DropPosition pos) {
Point dropPoint = new Point(element.getCenterLocation().x, element.getCenterLocation().y);
if (pos == DropPosition.CENTER) {
return dropPoint; // depends on control dependency: [if], data = [none]
}
Poi... |
public class class_name {
private static Header[] removeHeaders(Header[] headersToClean, String[] headersToRemove) {
ArrayList<Header> headers = new ArrayList<>();
if (headersToClean == null) {
return null;
}
for (Header header : headersToClean) {
if (!StringUtil... | public class class_name {
private static Header[] removeHeaders(Header[] headersToClean, String[] headersToRemove) {
ArrayList<Header> headers = new ArrayList<>();
if (headersToClean == null) {
return null; // depends on control dependency: [if], data = [none]
}
for (Header ... |
public class class_name {
public static String parseWithMetricAndFilters(final String metric,
final List<TagVFilter> filters) {
if (metric == null || metric.isEmpty()) {
throw new IllegalArgumentException("Metric cannot be null or empty");
}
if (filters == null) {
throw new IllegalArgume... | public class class_name {
public static String parseWithMetricAndFilters(final String metric,
final List<TagVFilter> filters) {
if (metric == null || metric.isEmpty()) {
throw new IllegalArgumentException("Metric cannot be null or empty");
}
if (filters == null) {
throw new IllegalArgume... |
public class class_name {
public static RelatedItemInfo[][] relatedIds(RelatedItemInfo[] ids, int length) {
int len = length;
RelatedItemInfo[][] idSets = new RelatedItemInfo[len][len];
for(int j = 0;j<len;j++) {
idSets[0][j] = ids[j];
}
for(int i=1;i<len;i++) {
... | public class class_name {
public static RelatedItemInfo[][] relatedIds(RelatedItemInfo[] ids, int length) {
int len = length;
RelatedItemInfo[][] idSets = new RelatedItemInfo[len][len];
for(int j = 0;j<len;j++) {
idSets[0][j] = ids[j]; // depends on control dependency: [for], data =... |
public class class_name {
public Object remove(int index) {
//Check that the index is less than size because the getInternal
//method is being called with index - 1 and its checks will therefore
//not be useful in this case.
if (index >= size()) {
throw new IndexOutOfBounds... | public class class_name {
public Object remove(int index) {
//Check that the index is less than size because the getInternal
//method is being called with index - 1 and its checks will therefore
//not be useful in this case.
if (index >= size()) {
throw new IndexOutOfBounds... |
public class class_name {
public void refreshCache(String cacheName, List<String> excludedFormats) {
CacheService cache = allCaches.get(cacheName);
if (cache != null) {
if (excludedFormats != null && cache instanceof ExcludableCache && excludedFormats.contains(((ExcludableCache)cache).getFo... | public class class_name {
public void refreshCache(String cacheName, List<String> excludedFormats) {
CacheService cache = allCaches.get(cacheName);
if (cache != null) {
if (excludedFormats != null && cache instanceof ExcludableCache && excludedFormats.contains(((ExcludableCache)cache).getFo... |
public class class_name {
public static String[] extractBundleInfoFromPath(String path, List<String> bundlePrefixes) {
String[] result = new String[4];
String bundlePrefix = null;
String resultPath = null;
try {
int idxGzip = path.indexOf(BundleRenderer.GZIP_PATH_PREFIX);
if (idxGzip != -1) {
if (i... | public class class_name {
public static String[] extractBundleInfoFromPath(String path, List<String> bundlePrefixes) {
String[] result = new String[4];
String bundlePrefix = null;
String resultPath = null;
try {
int idxGzip = path.indexOf(BundleRenderer.GZIP_PATH_PREFIX);
if (idxGzip != -1) {
if (i... |
public class class_name {
private SecretKey generateAESKey(String privateKey, String salt) {
try {
byte[] raw = decodeHex(salt);
KeySpec spec = new PBEKeySpec(privateKey.toCharArray(), raw, iterationCount, keySize);
SecretKeyFactory factory = SecretKeyFactory.getInstance(PBK... | public class class_name {
private SecretKey generateAESKey(String privateKey, String salt) {
try {
byte[] raw = decodeHex(salt);
KeySpec spec = new PBEKeySpec(privateKey.toCharArray(), raw, iterationCount, keySize);
SecretKeyFactory factory = SecretKeyFactory.getInstance(PBK... |
public class class_name {
public boolean isSatisfiedBy(Proposition proposition) {
if (proposition == null) {
throw new IllegalArgumentException("proposition cannot be null");
}
if (this.valueComp != null && this.propertyName != null) {
Value value = proposition.getProper... | public class class_name {
public boolean isSatisfiedBy(Proposition proposition) {
if (proposition == null) {
throw new IllegalArgumentException("proposition cannot be null");
}
if (this.valueComp != null && this.propertyName != null) {
Value value = proposition.getProper... |
public class class_name {
public BaseField setupField(int iFieldSeq)
{
BaseField field = null;
if (iFieldSeq == 0)
{
field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
field.setHidden(true);
}
//if (iFieldSeq == 1)
... | public class class_name {
public BaseField setupField(int iFieldSeq)
{
BaseField field = null;
if (iFieldSeq == 0)
{
field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null); // depends on control dependency: [if], data = [none]
field.setHidden(... |
public class class_name {
@Override
public String getServerID() {
if (serverID == null) {
String serverName = null;
String serverHostName = null;
String serverUserDir = null;
serverName = AccessController.doPrivileged(new PrivilegedAction<String>() {
... | public class class_name {
@Override
public String getServerID() {
if (serverID == null) {
String serverName = null;
String serverHostName = null;
String serverUserDir = null;
serverName = AccessController.doPrivileged(new PrivilegedAction<String>() {
... |
public class class_name {
public static Region getInstance(int code) {
loadRegionData();
Region r = numericCodeMap.get(code);
if ( r == null ) { // Just in case there's an alias that's numeric, try to find it.
String pad = "";
if ( code < 10 ) {
pad = ... | public class class_name {
public static Region getInstance(int code) {
loadRegionData();
Region r = numericCodeMap.get(code);
if ( r == null ) { // Just in case there's an alias that's numeric, try to find it.
String pad = "";
if ( code < 10 ) {
pad = ... |
public class class_name {
public StackTraceElement[] getCallerData() {
if (callerDataArray == null) {
callerDataArray = CallerData.extract(new Throwable(), fqnOfLoggerClass,
loggerContext.getMaxCallerDataDepth(), loggerContext.getFrameworkPackages());
}
return callerDataArray;
} } | public class class_name {
public StackTraceElement[] getCallerData() {
if (callerDataArray == null) {
callerDataArray = CallerData.extract(new Throwable(), fqnOfLoggerClass,
loggerContext.getMaxCallerDataDepth(), loggerContext.getFrameworkPackages()); // depends on control dependency: [if], dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.