code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected void rewriteLinks(CmsResource resource, Collection<CmsRelation> relations) throws CmsException {
LOG.info("Rewriting relations for resource " + resource.getRootPath());
I_CmsResourceType resourceType = OpenCms.getResourceManager().getResourceType(resource.getTypeId(... | public class class_name {
protected void rewriteLinks(CmsResource resource, Collection<CmsRelation> relations) throws CmsException {
LOG.info("Rewriting relations for resource " + resource.getRootPath());
I_CmsResourceType resourceType = OpenCms.getResourceManager().getResourceType(resource.getTypeId(... |
public class class_name {
public ReturnValue execute(final ICommandLine cl) throws BadThresholdException {
ThresholdsEvaluatorBuilder thrb = new ThresholdsEvaluatorBuilder();
configureThresholdEvaluatorBuilder(thrb, cl);
ReturnValueBuilder builder = ReturnValueBuilder.forPlugin(getPluginName(),... | public class class_name {
public ReturnValue execute(final ICommandLine cl) throws BadThresholdException {
ThresholdsEvaluatorBuilder thrb = new ThresholdsEvaluatorBuilder();
configureThresholdEvaluatorBuilder(thrb, cl);
ReturnValueBuilder builder = ReturnValueBuilder.forPlugin(getPluginName(),... |
public class class_name {
public void log(String msg) {
if (theLog != null) {
theLog.println(msg);
} else {
System.err.println(msg);
}
} } | public class class_name {
public void log(String msg) {
if (theLog != null) {
theLog.println(msg); // depends on control dependency: [if], data = [none]
} else {
System.err.println(msg); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public String getDisplayName(Locale language) {
String key;
switch (this.getSymbol()) {
case 'G':
key = "L_era";
break;
case 'u':
case 'y':
case 'Y':
key = "L_year";... | public class class_name {
@Override
public String getDisplayName(Locale language) {
String key;
switch (this.getSymbol()) {
case 'G':
key = "L_era";
break;
case 'u':
case 'y':
case 'Y':
key = "L_year";... |
public class class_name {
public void setProxyExcludedDomains(List<DomainMatcher> proxyExcludedDomains) {
if (proxyExcludedDomains == null || proxyExcludedDomains.isEmpty()) {
((HierarchicalConfiguration) getConfig()).clearTree(ALL_PROXY_EXCLUDED_DOMAINS_KEY);
this.proxyExcludedDom... | public class class_name {
public void setProxyExcludedDomains(List<DomainMatcher> proxyExcludedDomains) {
if (proxyExcludedDomains == null || proxyExcludedDomains.isEmpty()) {
((HierarchicalConfiguration) getConfig()).clearTree(ALL_PROXY_EXCLUDED_DOMAINS_KEY);
// depends on control dependency: [... |
public class class_name {
private String transformRecursive(String original, State state) {
String value = original;
if (this.parent != null) {
value = this.parent.transformRecursive(original, state);
if (state.stop) {
return value;
}
}
for (StringTransformerRule rule : this.... | public class class_name {
private String transformRecursive(String original, State state) {
String value = original;
if (this.parent != null) {
value = this.parent.transformRecursive(original, state); // depends on control dependency: [if], data = [none]
if (state.stop) {
return value; // ... |
public class class_name {
private JsonObject lookForRelation(String oid, String field,
JsonSimple config, JsonSimple baseNode) {
JsonObject newRelation = new JsonObject();
newRelation.put("field", field);
newRelation.put("authority", true);
// ** -1- ** EXCLUSIONS
List<String> exPath = config.getStringLi... | public class class_name {
private JsonObject lookForRelation(String oid, String field,
JsonSimple config, JsonSimple baseNode) {
JsonObject newRelation = new JsonObject();
newRelation.put("field", field);
newRelation.put("authority", true);
// ** -1- ** EXCLUSIONS
List<String> exPath = config.getStringLi... |
public class class_name {
private void onValidateTable(KsDef ksDef, TableInfo tableInfo) throws Exception
{
boolean tablefound = false;
for (CfDef cfDef : ksDef.getCf_defs())
{
if (cfDef.getName().equals(tableInfo.getTableName())/*
... | public class class_name {
private void onValidateTable(KsDef ksDef, TableInfo tableInfo) throws Exception
{
boolean tablefound = false;
for (CfDef cfDef : ksDef.getCf_defs())
{
if (cfDef.getName().equals(tableInfo.getTableName())/*
... |
public class class_name {
public void notifyAddOnFailedUninstallation(final AddOn addOn) {
if (EventQueue.isDispatchThread()) {
installedAddOnsModel.notifyAddOnFailedUninstallation(addOn);
} else {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
notifyAddOnFailedUn... | public class class_name {
public void notifyAddOnFailedUninstallation(final AddOn addOn) {
if (EventQueue.isDispatchThread()) {
installedAddOnsModel.notifyAddOnFailedUninstallation(addOn);
// depends on control dependency: [if], data = [none]
} else {
EventQueue.invokeLater(new Runnable() {
@Overr... |
public class class_name {
public String getSessionUserName(HttpServletRequest request, HttpServletResponse response)
{
HttpSession session = null;
SessionAffinityContext sac = getSessionAffinityContext(request);
if (!sac.isFirstSessionIdValid() && !sac.isAllSessionIdsSetViaSet()) { //PM89... | public class class_name {
public String getSessionUserName(HttpServletRequest request, HttpServletResponse response)
{
HttpSession session = null;
SessionAffinityContext sac = getSessionAffinityContext(request);
if (!sac.isFirstSessionIdValid() && !sac.isAllSessionIdsSetViaSet()) { //PM89... |
public class class_name {
public static List<String> unzip(final File zipFile, final String destination, String encoding) {
List<String> fileNames = CollectUtils.newArrayList();
String dest = destination;
if (!destination.endsWith(File.separator)) {
dest = destination + File.separator;
}
ZipF... | public class class_name {
public static List<String> unzip(final File zipFile, final String destination, String encoding) {
List<String> fileNames = CollectUtils.newArrayList();
String dest = destination;
if (!destination.endsWith(File.separator)) {
dest = destination + File.separator; // depends on ... |
public class class_name {
public static String findPath(Method definition) {
Request request = definition.getAnnotation(Request.class);
if(request != null) {
return request.path();
}
String path = "";
Annotation[] annotations = definition.getAnnotations();
for (Annotation annotation : an... | public class class_name {
public static String findPath(Method definition) {
Request request = definition.getAnnotation(Request.class);
if(request != null) {
return request.path(); // depends on control dependency: [if], data = [none]
}
String path = "";
Annotation[] annotations = definition.... |
public class class_name {
protected boolean validateToken(SignedJWT jwtToken) {
boolean isValid = validateSignature(jwtToken);
if (isValid) {
isValid = validateExpiration(jwtToken);
if (!isValid) {
LOG.warn("Expiration time validation of JWT token failed.");
... | public class class_name {
protected boolean validateToken(SignedJWT jwtToken) {
boolean isValid = validateSignature(jwtToken);
if (isValid) {
isValid = validateExpiration(jwtToken); // depends on control dependency: [if], data = [none]
if (!isValid) {
LOG.warn("... |
public class class_name {
public static String lowerCaseFirstChar(String s) {
if (s.isEmpty()) {
return s;
}
char first = s.charAt(0);
if (isLowerCase(first)) {
return s;
}
return toLowerCase(first) + s.substring(1);
} } | public class class_name {
public static String lowerCaseFirstChar(String s) {
if (s.isEmpty()) {
return s; // depends on control dependency: [if], data = [none]
}
char first = s.charAt(0);
if (isLowerCase(first)) {
return s; // depends on control dependency: [if... |
public class class_name {
public static PrimitiveIterator.OfInt iterator(Spliterator.OfInt spliterator) {
Objects.requireNonNull(spliterator);
class Adapter implements PrimitiveIterator.OfInt, IntConsumer {
boolean valueReady = false;
int nextElement;
@Override
... | public class class_name {
public static PrimitiveIterator.OfInt iterator(Spliterator.OfInt spliterator) {
Objects.requireNonNull(spliterator);
class Adapter implements PrimitiveIterator.OfInt, IntConsumer {
boolean valueReady = false;
int nextElement;
@Override
... |
public class class_name {
public CondItem genCond(JCTree _tree, boolean markBranches) {
JCTree inner_tree = TreeInfo.skipParens(_tree);
if (inner_tree.hasTag(CONDEXPR)) {
JCConditional tree = (JCConditional)inner_tree;
CondItem cond = genCond(tree.cond, CRT_FLOW_CONTROLLER);
... | public class class_name {
public CondItem genCond(JCTree _tree, boolean markBranches) {
JCTree inner_tree = TreeInfo.skipParens(_tree);
if (inner_tree.hasTag(CONDEXPR)) {
JCConditional tree = (JCConditional)inner_tree;
CondItem cond = genCond(tree.cond, CRT_FLOW_CONTROLLER);
... |
public class class_name {
@SuppressWarnings("PMD.AvoidDeeplyNestedIfStmts") // agreed PMD, fixme
private void clean(RallyCollector collector, List<RallyProject> existingProjects) {
Set<ObjectId> uniqueIDs = new HashSet<>();
for (com.capitalone.dashboard.model.Component comp : dbComponentRepository.findAll()) {
... | public class class_name {
@SuppressWarnings("PMD.AvoidDeeplyNestedIfStmts") // agreed PMD, fixme
private void clean(RallyCollector collector, List<RallyProject> existingProjects) {
Set<ObjectId> uniqueIDs = new HashSet<>();
for (com.capitalone.dashboard.model.Component comp : dbComponentRepository.findAll()) {
... |
public class class_name {
public Sender getResponseSender() {
if (blockingHttpExchange != null) {
return blockingHttpExchange.getSender();
}
if (sender != null) {
return sender;
}
return sender = new AsyncSenderImpl(this);
} } | public class class_name {
public Sender getResponseSender() {
if (blockingHttpExchange != null) {
return blockingHttpExchange.getSender(); // depends on control dependency: [if], data = [none]
}
if (sender != null) {
return sender; // depends on control dependency: [if],... |
public class class_name {
private static Bitmap createEdgeShadow(@NonNull final Context context, final int elevation,
@NonNull final Orientation orientation,
final boolean parallelLight) {
if (elevation == 0) {
re... | public class class_name {
private static Bitmap createEdgeShadow(@NonNull final Context context, final int elevation,
@NonNull final Orientation orientation,
final boolean parallelLight) {
if (elevation == 0) {
re... |
public class class_name {
public DeviceType getDeviceType(Context activityContext) {
// Verifies if the Generalized Size of the device is XLARGE to be
// considered a Tablet
boolean xlarge = ((activityContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == SCREENLAYOUT_S... | public class class_name {
public DeviceType getDeviceType(Context activityContext) {
// Verifies if the Generalized Size of the device is XLARGE to be
// considered a Tablet
boolean xlarge = ((activityContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == SCREENLAYOUT_S... |
public class class_name {
private List<ORecordOperation> commit(final OTransactionInternal transaction, final boolean allocated) {
// XXX: At this moment, there are two implementations of the commit method. One for regular client transactions and one for
// implicit micro-transactions. The implementations are ... | public class class_name {
private List<ORecordOperation> commit(final OTransactionInternal transaction, final boolean allocated) {
// XXX: At this moment, there are two implementations of the commit method. One for regular client transactions and one for
// implicit micro-transactions. The implementations are ... |
public class class_name {
public static String createXMLFeatureDescriptor(
final TrainingParameters params) throws IOException {
final Element aggGenerators = new Element("generators");
final Document doc = new Document(aggGenerators);
// <generators>
// <cache>
// <generators>
final El... | public class class_name {
public static String createXMLFeatureDescriptor(
final TrainingParameters params) throws IOException {
final Element aggGenerators = new Element("generators");
final Document doc = new Document(aggGenerators);
// <generators>
// <cache>
// <generators>
final El... |
public class class_name {
private static double interpolate(double lower, double upper, double remainder, double scale) {
if (lower == NEGATIVE_INFINITY) {
if (upper == POSITIVE_INFINITY) {
// Return NaN when lower == NEGATIVE_INFINITY and upper == POSITIVE_INFINITY:
return NaN;
}
... | public class class_name {
private static double interpolate(double lower, double upper, double remainder, double scale) {
if (lower == NEGATIVE_INFINITY) {
if (upper == POSITIVE_INFINITY) {
// Return NaN when lower == NEGATIVE_INFINITY and upper == POSITIVE_INFINITY:
return NaN; // depends on... |
public class class_name {
public static List<Audit> findAll(EntityManager em) {
requireArgument(em != null, "Entity manager cannot be null.");
TypedQuery<Audit> query = em.createNamedQuery("Audit.findAll", Audit.class);
try {
return query.getResultList();
} catch (NoResult... | public class class_name {
public static List<Audit> findAll(EntityManager em) {
requireArgument(em != null, "Entity manager cannot be null.");
TypedQuery<Audit> query = em.createNamedQuery("Audit.findAll", Audit.class);
try {
return query.getResultList(); // depends on control dep... |
public class class_name {
public DashPackage withPeriodTriggers(String... periodTriggers) {
if (this.periodTriggers == null) {
setPeriodTriggers(new java.util.ArrayList<String>(periodTriggers.length));
}
for (String ele : periodTriggers) {
this.periodTriggers.add(ele);
... | public class class_name {
public DashPackage withPeriodTriggers(String... periodTriggers) {
if (this.periodTriggers == null) {
setPeriodTriggers(new java.util.ArrayList<String>(periodTriggers.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : periodT... |
public class class_name {
public String getAbsoluteName() {
final StringBuilder absolute = new StringBuilder();
if (parent != null) {
absolute.append(parent).append(ENTRY_SEPARATOR);
}
absolute.append(local);
return absolute.toString();
} } | public class class_name {
public String getAbsoluteName() {
final StringBuilder absolute = new StringBuilder();
if (parent != null) {
absolute.append(parent).append(ENTRY_SEPARATOR); // depends on control dependency: [if], data = [(parent]
}
absolute.append(local);
r... |
public class class_name {
private void writeConditions(List<Condition> conditions)
throws JsonGenerationException, IOException {
Map<String, ConditionsByKey> conditionsByType = groupConditionsByTypeAndKey(conditions);
writeJsonObjectStart(JsonDocumentFields.CONDITION);
ConditionsB... | public class class_name {
private void writeConditions(List<Condition> conditions)
throws JsonGenerationException, IOException {
Map<String, ConditionsByKey> conditionsByType = groupConditionsByTypeAndKey(conditions);
writeJsonObjectStart(JsonDocumentFields.CONDITION);
ConditionsB... |
public class class_name {
@Override
public Map<RuleSet, List<Rule>> matching(Rules rules,
Map<String, Object> vars,
boolean ignoreMethodErrors) throws OgnlException
{
Map<RuleSet, List<Rule>> ret = new HashMap<>();
for (RuleSet ... | public class class_name {
@Override
public Map<RuleSet, List<Rule>> matching(Rules rules,
Map<String, Object> vars,
boolean ignoreMethodErrors) throws OgnlException
{
Map<RuleSet, List<Rule>> ret = new HashMap<>();
for (RuleSet ... |
public class class_name {
public static int randomSegment(int[] probability) {
int total = 0;
for (int i = 0; i < probability.length; i++) {
total += probability[i];
probability[i] = total;
}
int rand = (int) random(0, total - 1);
for (int i = 0; i... | public class class_name {
public static int randomSegment(int[] probability) {
int total = 0;
for (int i = 0; i < probability.length; i++) {
total += probability[i];
// depends on control dependency: [for], data = [i]
probability[i] = total;
// depends on control dependency... |
public class class_name {
public void shutdown() {
Iterator<ExclusionFilterFactory> itr = factories.iterator();
while (itr.hasNext()) {
ExclusionFilterFactory i = itr.next();
i.shutdown();
}
} } | public class class_name {
public void shutdown() {
Iterator<ExclusionFilterFactory> itr = factories.iterator();
while (itr.hasNext()) {
ExclusionFilterFactory i = itr.next();
i.shutdown(); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public static boolean isFinalVariable(DeclarationExpression declarationExpression, SourceCode sourceCode) {
if (isFromGeneratedSourceCode(declarationExpression)) {
return false;
}
List<Expression> variableExpressions = getVariableExpressions(declaration... | public class class_name {
public static boolean isFinalVariable(DeclarationExpression declarationExpression, SourceCode sourceCode) {
if (isFromGeneratedSourceCode(declarationExpression)) {
return false;
// depends on control dependency: [if], data = [none]
}
List<Expression> va... |
public class class_name {
private String readResourceAsString(Resource resource) throws IOException {
StringBuilder contents = new StringBuilder();
// Read entire resource into StringBuilder one chunk at a time
Reader reader = new InputStreamReader(resource.asStream(), "UTF-8");
try {... | public class class_name {
private String readResourceAsString(Resource resource) throws IOException {
StringBuilder contents = new StringBuilder();
// Read entire resource into StringBuilder one chunk at a time
Reader reader = new InputStreamReader(resource.asStream(), "UTF-8");
try {... |
public class class_name {
public int doEndTag() throws JspException
{
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
ServletContext context = pageContext.getServletContext();
... | public class class_name {
public int doEndTag() throws JspException
{
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
ServletContext context = pageContext.getServletContext();
... |
public class class_name {
static ByteBuf encodeString(String str) {
ByteBuf out = Unpooled.buffer(2);
byte[] raw;
try {
raw = str.getBytes("UTF-8");
//NB every Java platform has got UTF-8 encoding by default, so this
//exception are never raised.
} c... | public class class_name {
static ByteBuf encodeString(String str) {
ByteBuf out = Unpooled.buffer(2);
byte[] raw;
try {
raw = str.getBytes("UTF-8"); // depends on control dependency: [try], data = [none]
//NB every Java platform has got UTF-8 encoding by default, so this... |
public class class_name {
private static List<AdUnit> getAllAdUnits(
AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException {
List<AdUnit> adUnits = new ArrayList<>();
// Get the InventoryService.
InventoryServiceInterface inventoryService =
adManagerServices.g... | public class class_name {
private static List<AdUnit> getAllAdUnits(
AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException {
List<AdUnit> adUnits = new ArrayList<>();
// Get the InventoryService.
InventoryServiceInterface inventoryService =
adManagerServices.g... |
public class class_name {
protected boolean matchProfiles(final String[] checkProfiles) {
// test for all profiles
if ((checkProfiles != null) && (checkProfiles.length == 1) && checkProfiles[0].equals(ALL_PROFILES)) {
return true;
}
if (enabledProfiles == null || enabledProfiles.isEmpty()) {
if (validate... | public class class_name {
protected boolean matchProfiles(final String[] checkProfiles) {
// test for all profiles
if ((checkProfiles != null) && (checkProfiles.length == 1) && checkProfiles[0].equals(ALL_PROFILES)) {
return true; // depends on control dependency: [if], data = [none]
}
if (enabledProfiles =... |
public class class_name {
public OptionalLong extractRevision(String buildName) {
// Gets the regex for the pattern
String regex = getRegex();
// Matching
Matcher matcher = Pattern.compile(regex).matcher(buildName);
if (matcher.matches()) {
String token = matcher.gro... | public class class_name {
public OptionalLong extractRevision(String buildName) {
// Gets the regex for the pattern
String regex = getRegex();
// Matching
Matcher matcher = Pattern.compile(regex).matcher(buildName);
if (matcher.matches()) {
String token = matcher.gro... |
public class class_name {
public void setPolicyLevels(java.util.Collection<String> policyLevels) {
if (policyLevels == null) {
this.policyLevels = null;
return;
}
this.policyLevels = new java.util.ArrayList<String>(policyLevels);
} } | public class class_name {
public void setPolicyLevels(java.util.Collection<String> policyLevels) {
if (policyLevels == null) {
this.policyLevels = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Map<Long, Long> reconfigureOnFault(Set<Long> hsIds, FaultMessage fm, Set<Long> unknownFaultedSites) {
boolean proceed = false;
do {
Discard ignoreIt = mayIgnore(hsIds, fm);
if (Discard.DoNot == ignoreIt) {
m_inTrouble.put(fm.faile... | public class class_name {
public Map<Long, Long> reconfigureOnFault(Set<Long> hsIds, FaultMessage fm, Set<Long> unknownFaultedSites) {
boolean proceed = false;
do {
Discard ignoreIt = mayIgnore(hsIds, fm);
if (Discard.DoNot == ignoreIt) {
m_inTrouble.put(fm.faile... |
public class class_name {
public static Pair<String,String> pair (final String s1, final String s2)
{
if (StringUtils.isBlank(s1))
{
LOG.warn("Blank first arg");
}
if (StringUtils.isBlank(s2))
{
LOG.warn("Blank second arg for: ... | public class class_name {
public static Pair<String,String> pair (final String s1, final String s2)
{
if (StringUtils.isBlank(s1))
{
LOG.warn("Blank first arg"); // depends on control dependency: [if], data = [none]
}
if (StringUtils.isBlank(s2))
... |
public class class_name {
private long readWord(final int position) {
if(position < 0) {
throw new ArrayIndexOutOfBoundsException(position);
}
// First bit of the word
final long firstBitIndex = (position * wordLength);
final int firstByteIndex = (bytePadding + (int... | public class class_name {
private long readWord(final int position) {
if(position < 0) {
throw new ArrayIndexOutOfBoundsException(position);
}
// First bit of the word
final long firstBitIndex = (position * wordLength);
final int firstByteIndex = (bytePadding + (int... |
public class class_name {
public static int saturatedPow(int b, int k) {
checkNonNegative("exponent", k);
switch (b) {
case 0:
return (k == 0) ? 1 : 0;
case 1:
return 1;
case (-1):
return ((k & 1) == 0) ? 1 : -1... | public class class_name {
public static int saturatedPow(int b, int k) {
checkNonNegative("exponent", k);
switch (b) {
case 0:
return (k == 0) ? 1 : 0;
case 1:
return 1;
case (-1):
return ((k & 1) == 0) ? 1 : -1... |
public class class_name {
protected synchronized void populateStatistics(final boolean noCache) {
//check again before starting the work.
if (noCache || System.currentTimeMillis() - lastRefreshedTime > cacheTimeInMilliseconds) {
final ExecutorInfo stats = new ExecutorInfo();
fillRemainingMemoryPer... | public class class_name {
protected synchronized void populateStatistics(final boolean noCache) {
//check again before starting the work.
if (noCache || System.currentTimeMillis() - lastRefreshedTime > cacheTimeInMilliseconds) {
final ExecutorInfo stats = new ExecutorInfo();
fillRemainingMemoryPer... |
public class class_name {
public void getEachCellContent(int YNum, int cc, TableCandidate tc) {
int footnoteLineIndex = tc.getFootnoteBeginRow();
String[] contentsInRows = new String[footnoteLineIndex];
float[] leftX_tableColumns = tc.getLeftX_tableColumns();
float[] rightX_tableColumns = tc.ge... | public class class_name {
public void getEachCellContent(int YNum, int cc, TableCandidate tc) {
int footnoteLineIndex = tc.getFootnoteBeginRow();
String[] contentsInRows = new String[footnoteLineIndex];
float[] leftX_tableColumns = tc.getLeftX_tableColumns();
float[] rightX_tableColumns = tc.ge... |
public class class_name {
private List<String> existingRootPackages() {
ArrayList<String> packages = new ArrayList<>();
packages.addAll(Arrays.asList(KNOWN_ROOT_APPS_PACKAGES));
packages.addAll(Arrays.asList(KNOWN_DANGEROUS_APPS_PACKAGES));
packages.addAll(Arrays.asList(KNOWN_ROOT_CLOAK... | public class class_name {
private List<String> existingRootPackages() {
ArrayList<String> packages = new ArrayList<>();
packages.addAll(Arrays.asList(KNOWN_ROOT_APPS_PACKAGES));
packages.addAll(Arrays.asList(KNOWN_DANGEROUS_APPS_PACKAGES));
packages.addAll(Arrays.asList(KNOWN_ROOT_CLOAK... |
public class class_name {
@Override
protected void setupLogging(@Nullable final Level level) {
TargetConsoleAppender.setTarget(System.out);
// adapt configuration properties for logging unless already set
if (level != null) {
maybeSetProperty("shell.logging.console.threshold", level.name());
... | public class class_name {
@Override
protected void setupLogging(@Nullable final Level level) {
TargetConsoleAppender.setTarget(System.out);
// adapt configuration properties for logging unless already set
if (level != null) {
maybeSetProperty("shell.logging.console.threshold", level.name()); // de... |
public class class_name {
public static Method getMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
{
try {
Method method = clazz.getDeclaredMethod(methodName, parameterTypes);
method.setAccessible(true);
return method;
}
catch(NoSuchMethodException e) {
... | public class class_name {
public static Method getMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
{
try {
Method method = clazz.getDeclaredMethod(methodName, parameterTypes);
method.setAccessible(true);
// depends on control dependency: [try], data = [none]
return met... |
public class class_name {
XMLName toXMLName(Context cx, Object nameValue) {
XMLName result;
if (nameValue instanceof XMLName) {
result = (XMLName)nameValue;
} else if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
result = XMLName.formPropert... | public class class_name {
XMLName toXMLName(Context cx, Object nameValue) {
XMLName result;
if (nameValue instanceof XMLName) {
result = (XMLName)nameValue; // depends on control dependency: [if], data = [none]
} else if (nameValue instanceof QName) {
QName qname = (QNa... |
public class class_name {
public Node getFirstChild() {
if (childNodes == null) {
return null;
}
if (childNodes.isEmpty()) {
return null;
}
return childNodes.get(0);
} } | public class class_name {
public Node getFirstChild() {
if (childNodes == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (childNodes.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
return childNodes.get(0);
} } |
public class class_name {
public OutlierResult run(Relation<V> relation) {
DoubleMinMax mm = new DoubleMinMax();
// resulting scores
WritableDoubleDataStore oscores = DataStoreUtil.makeDoubleStorage(relation.getDBIDs(), DataStoreFactory.HINT_TEMP | DataStoreFactory.HINT_HOT);
// Compute mean and covar... | public class class_name {
public OutlierResult run(Relation<V> relation) {
DoubleMinMax mm = new DoubleMinMax();
// resulting scores
WritableDoubleDataStore oscores = DataStoreUtil.makeDoubleStorage(relation.getDBIDs(), DataStoreFactory.HINT_TEMP | DataStoreFactory.HINT_HOT);
// Compute mean and covar... |
public class class_name {
public Hoarde<T> each(Consumer<T> tocall) {
for (int i = 0; i < actors.length; i++) {
tocall.accept( (T) actors[i] );
}
return this;
} } | public class class_name {
public Hoarde<T> each(Consumer<T> tocall) {
for (int i = 0; i < actors.length; i++) {
tocall.accept( (T) actors[i] ); // depends on control dependency: [for], data = [i]
}
return this;
} } |
public class class_name {
public Parser<RECORD> addParseTarget(final Method method,
final SetterPolicy setterPolicy,
final List<String> fieldValues) {
assembled = false;
if (method == null || fieldValues == null) {
return this; ... | public class class_name {
public Parser<RECORD> addParseTarget(final Method method,
final SetterPolicy setterPolicy,
final List<String> fieldValues) {
assembled = false;
if (method == null || fieldValues == null) {
return this; ... |
public class class_name {
public static String shrink(String string, char c) {
if (string == null) {
return null;
}
string = string.trim();
Pattern pattern = Pattern.compile("\\" + String.valueOf(c) + "{2,}");
return pattern.matcher(string).replaceAll(String.valueOf(c));
} } | public class class_name {
public static String shrink(String string, char c) {
if (string == null) {
return null; // depends on control dependency: [if], data = [none]
}
string = string.trim();
Pattern pattern = Pattern.compile("\\" + String.valueOf(c) + "{2,}");
return pattern.matcher(string).replaceAll(... |
public class class_name {
public Observable<ServiceResponse<Page<StampCapacityInner>>> listCapacitiesSinglePageAsync(final String resourceGroupName, final String name) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."... | public class class_name {
public Observable<ServiceResponse<Page<StampCapacityInner>>> listCapacitiesSinglePageAsync(final String resourceGroupName, final String name) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."... |
public class class_name {
public BaseDescr declare( PackageDescrBuilder pkg ) throws RecognitionException {
BaseDescr declaration = null;
try {
DeclareDescrBuilder declare = helper.start( pkg,
DeclareDescrBuilder.class,
... | public class class_name {
public BaseDescr declare( PackageDescrBuilder pkg ) throws RecognitionException {
BaseDescr declaration = null;
try {
DeclareDescrBuilder declare = helper.start( pkg,
DeclareDescrBuilder.class,
... |
public class class_name {
public void registered(ResteasyProviderFactory factory) {
System.out.println("registered - factory = " + factory);
ResourceConstructor constructor = this.resourceClass.getConstructor();
if (constructor == null) {
final Class<?> clazz = this.resourceClass.getClazz();
fi... | public class class_name {
public void registered(ResteasyProviderFactory factory) {
System.out.println("registered - factory = " + factory);
ResourceConstructor constructor = this.resourceClass.getConstructor();
if (constructor == null) {
final Class<?> clazz = this.resourceClass.getClazz();
fi... |
public class class_name {
static void putRecordMarkingAndSend(Channel channel, Xdr rpcRequest) {
// XDR header buffer
List<ByteBuffer> buffers = new LinkedList<>();
buffers.add(ByteBuffer.wrap(rpcRequest.getBuffer(), 0, rpcRequest.getOffset()));
// payload buffer
if (rpcRequest... | public class class_name {
static void putRecordMarkingAndSend(Channel channel, Xdr rpcRequest) {
// XDR header buffer
List<ByteBuffer> buffers = new LinkedList<>();
buffers.add(ByteBuffer.wrap(rpcRequest.getBuffer(), 0, rpcRequest.getOffset()));
// payload buffer
if (rpcRequest... |
public class class_name {
private void buildFunGroups(List<AttachedGroup> attachedGroups) {
Iterator<AttachedGroup> groupsIterator = attachedGroups.iterator();
while (groupsIterator.hasNext()) {
AttachedGroup attachedGroup = groupsIterator.next();
Iterator<Token> locationsItera... | public class class_name {
private void buildFunGroups(List<AttachedGroup> attachedGroups) {
Iterator<AttachedGroup> groupsIterator = attachedGroups.iterator();
while (groupsIterator.hasNext()) {
AttachedGroup attachedGroup = groupsIterator.next();
Iterator<Token> locationsItera... |
public class class_name {
private void hostSubscribe(String eventName, boolean subscribe) {
if (globalEventDispatcher != null) {
try {
globalEventDispatcher.subscribeRemoteEvent(eventName, subscribe);
} catch (Throwable e) {
log.error(
... | public class class_name {
private void hostSubscribe(String eventName, boolean subscribe) {
if (globalEventDispatcher != null) {
try {
globalEventDispatcher.subscribeRemoteEvent(eventName, subscribe); // depends on control dependency: [try], data = [none]
} catch (Throwa... |
public class class_name {
private void indent(TaskListener listener, int depth) {
for (int i = 0; i < depth; i++) {
listener.getLogger().print(' ');
}
} } | public class class_name {
private void indent(TaskListener listener, int depth) {
for (int i = 0; i < depth; i++) {
listener.getLogger().print(' '); // depends on control dependency: [for], data = [none]
}
} } |
public class class_name {
public Period multipliedBy(int scalar) {
if (this == ZERO || scalar == 1) {
return this;
}
return create(
Math.multiplyExact(years, scalar),
Math.multiplyExact(months, scalar),
Math.multiplyExact(days, scalar)... | public class class_name {
public Period multipliedBy(int scalar) {
if (this == ZERO || scalar == 1) {
return this; // depends on control dependency: [if], data = [none]
}
return create(
Math.multiplyExact(years, scalar),
Math.multiplyExact(months, sca... |
public class class_name {
public static String createAuthenticationHash(final String userName, final char[] password) {
ByteArrayOutputStream bout = new ByteArrayOutputStream(userName.length() + 20 + password.length);
try {
bout.write(userName.getBytes(UTF_8_CHARSET));
bout.writ... | public class class_name {
public static String createAuthenticationHash(final String userName, final char[] password) {
ByteArrayOutputStream bout = new ByteArrayOutputStream(userName.length() + 20 + password.length);
try {
bout.write(userName.getBytes(UTF_8_CHARSET)); // depends on control... |
public class class_name {
public java.util.List<String> getDhcpOptionsIds() {
if (dhcpOptionsIds == null) {
dhcpOptionsIds = new com.amazonaws.internal.SdkInternalList<String>();
}
return dhcpOptionsIds;
} } | public class class_name {
public java.util.List<String> getDhcpOptionsIds() {
if (dhcpOptionsIds == null) {
dhcpOptionsIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return dhcpOptionsIds;
} } |
public class class_name {
public void setData(TShortList list) {
this.buffer = CausticUtil.createByteBuffer(list.size() * DataType.SHORT.getByteSize());
final TShortIterator iterator = list.iterator();
while (iterator.hasNext()) {
buffer.putShort(iterator.next());
}
} } | public class class_name {
public void setData(TShortList list) {
this.buffer = CausticUtil.createByteBuffer(list.size() * DataType.SHORT.getByteSize());
final TShortIterator iterator = list.iterator();
while (iterator.hasNext()) {
buffer.putShort(iterator.next()); // depends on cont... |
public class class_name {
@Override
public EClass getIfcConnectionPointGeometry() {
if (ifcConnectionPointGeometryEClass == null) {
ifcConnectionPointGeometryEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(124);
}
return ifcConnectionPointGeomet... | public class class_name {
@Override
public EClass getIfcConnectionPointGeometry() {
if (ifcConnectionPointGeometryEClass == null) {
ifcConnectionPointGeometryEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(124);
// depends on control dependency: [if]... |
public class class_name {
public static<T extends ImageGray<T>, FD extends TupleDesc> Homography2D_F64
computeTransform( T imageA , T imageB ,
DetectDescribePoint<T,FD> detDesc ,
AssociateDescription<FD> associate ,
ModelMatcher<Homography2D_F64,AssociatedPair> modelMatcher )
{
// get the leng... | public class class_name {
public static<T extends ImageGray<T>, FD extends TupleDesc> Homography2D_F64
computeTransform( T imageA , T imageB ,
DetectDescribePoint<T,FD> detDesc ,
AssociateDescription<FD> associate ,
ModelMatcher<Homography2D_F64,AssociatedPair> modelMatcher )
{
// get the leng... |
public class class_name {
@Override
public String toDot() {
StringBuilder dotBuilder = new StringBuilder();
dotBuilder.append("digraph G {\n");
for (int state = 0; state < d_stateOffsets.size(); ++state) {
for (int trans = d_stateOffsets.get(state); trans < transitionsUpperBou... | public class class_name {
@Override
public String toDot() {
StringBuilder dotBuilder = new StringBuilder();
dotBuilder.append("digraph G {\n");
for (int state = 0; state < d_stateOffsets.size(); ++state) {
for (int trans = d_stateOffsets.get(state); trans < transitionsUpperBou... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> ProClass<T> load(String className, String feature, ErrorHandler loadFailure) {
try {
return new ProClass<T>((Class<T>) ProClass.class.getClassLoader().loadClass(className));
} catch (ClassNotFoundException e) {
... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> ProClass<T> load(String className, String feature, ErrorHandler loadFailure) {
try {
return new ProClass<T>((Class<T>) ProClass.class.getClassLoader().loadClass(className)); // depends on control dependency: [try], data ... |
public class class_name {
public boolean isMatching(CmsSiteMatcher matcher) {
boolean result = m_siteMatcherSites.get(matcher) != null;
if (!result) {
// try to match the workplace site
result = isWorkplaceRequest(matcher);
}
return result;
} } | public class class_name {
public boolean isMatching(CmsSiteMatcher matcher) {
boolean result = m_siteMatcherSites.get(matcher) != null;
if (!result) {
// try to match the workplace site
result = isWorkplaceRequest(matcher); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean isWifiConnected() {
try {
if (connMan == null) {
connMan = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
}
NetworkInfo wifiNetInfo = connMan.getNetworkInfo(TYPE_WIFI);
NetworkInfo wimaxNetInfo = connMan.getNetworkInfo(TYP... | public class class_name {
public boolean isWifiConnected() {
try {
if (connMan == null) {
connMan = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE); // depends on control dependency: [if], data = [none]
}
NetworkInfo wifiNetInfo = connMan.getNetworkInfo(TYPE_WIFI);
... |
public class class_name {
public static void config(Config config) {
try {
provider.config(config);
} catch (Throwable t) {
provider = new DefaultLogProvider();
Log log = provider.getLogger(LogFactory.class.getName());
log.error("Fail on logger provider configuration. Reset logging system to de... | public class class_name {
public static void config(Config config) {
try {
provider.config(config);
// depends on control dependency: [try], data = [none]
} catch (Throwable t) {
provider = new DefaultLogProvider();
Log log = provider.getLogger(LogFactory.class.getName());
log.error("Fail on lo... |
public class class_name {
public Content getTagletOutput(Doc holder, TagletWriter writer) {
if (header == null || holder.tags(getName()).length == 0) {
return null;
}
return writer.simpleTagOutput(holder.tags(getName()), header);
} } | public class class_name {
public Content getTagletOutput(Doc holder, TagletWriter writer) {
if (header == null || holder.tags(getName()).length == 0) {
return null; // depends on control dependency: [if], data = [none]
}
return writer.simpleTagOutput(holder.tags(getName()), header);... |
public class class_name {
public void marshall(ReplicaSettingsUpdate replicaSettingsUpdate, ProtocolMarshaller protocolMarshaller) {
if (replicaSettingsUpdate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(ReplicaSettingsUpdate replicaSettingsUpdate, ProtocolMarshaller protocolMarshaller) {
if (replicaSettingsUpdate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
static final void checkSketchAndMemoryFlags(final Sketch sketch) {
final Memory mem = sketch.getMemory();
if (mem == null) { return; }
final int flags = PreambleUtil.extractFlags(mem);
if (((flags & COMPACT_FLAG_MASK) > 0) ^ sketch.isCompact()) {
throw new SketchesArgume... | public class class_name {
static final void checkSketchAndMemoryFlags(final Sketch sketch) {
final Memory mem = sketch.getMemory();
if (mem == null) { return; } // depends on control dependency: [if], data = [none]
final int flags = PreambleUtil.extractFlags(mem);
if (((flags & COMPACT_FLAG_MASK) > 0) ... |
public class class_name {
@Override
public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
for (CommerceCurrency commerceCurrency : commerceCurrencies) {
if (entityCache.getResult(
CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class,
commerceCurrency.getPrim... | public class class_name {
@Override
public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
for (CommerceCurrency commerceCurrency : commerceCurrencies) {
if (entityCache.getResult(
CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class,
commerceCurrency.getPrim... |
public class class_name {
public void resolveBeanClass(ItemRule itemRule) throws IllegalRuleException {
Iterator<Token[]> it = ItemRule.tokenIterator(itemRule);
if (it != null) {
while (it.hasNext()) {
Token[] tokens = it.next();
if (tokens != null) {
... | public class class_name {
public void resolveBeanClass(ItemRule itemRule) throws IllegalRuleException {
Iterator<Token[]> it = ItemRule.tokenIterator(itemRule);
if (it != null) {
while (it.hasNext()) {
Token[] tokens = it.next();
if (tokens != null) {
... |
public class class_name {
String withPath(String[] path) {
StringBuilder sb = new StringBuilder();
if (path.length > 0) {
sb.append(" (with path ");
for (int i = 0; i < path.length - 1; i++) {
sb.append(path[i]);
sb.append(".");
}
... | public class class_name {
String withPath(String[] path) {
StringBuilder sb = new StringBuilder();
if (path.length > 0) {
sb.append(" (with path "); // depends on control dependency: [if], data = [none]
for (int i = 0; i < path.length - 1; i++) {
sb.append(path[i... |
public class class_name {
public boolean delete(String key) {
Jedis jedis = null;
try {
jedis = this.jedisPool.getResource();
jedis.del(SafeEncoder.encode(key));
logger.info("delete key:" + key);
return true;
} catch (Exception e) {
l... | public class class_name {
public boolean delete(String key) {
Jedis jedis = null;
try {
jedis = this.jedisPool.getResource(); // depends on control dependency: [try], data = [none]
jedis.del(SafeEncoder.encode(key)); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private static String setStandardHELMFourthSection(List<AnnotationNotation> annotations) {
StringBuilder sb = new StringBuilder();
for (AnnotationNotation annotation : annotations) {
sb.append(annotation.toHELM2() + "|");
}
if (sb.length() > 1) {
sb.setLeng... | public class class_name {
private static String setStandardHELMFourthSection(List<AnnotationNotation> annotations) {
StringBuilder sb = new StringBuilder();
for (AnnotationNotation annotation : annotations) {
sb.append(annotation.toHELM2() + "|");
// depends on control dependency: [for], data = [an... |
public class class_name {
public Object retrieve(K key, int timeout) {
Object retval = null;
if (isCachingEnabled()) {
CachedObject<V> co = getCachedObject(key);
if (co == null || isCachedObjectExpired(co)) {
misses++;
co = new CachedObject<V>();
co.setBeingRetrieved();
this.storeCachedObject... | public class class_name {
public Object retrieve(K key, int timeout) {
Object retval = null;
if (isCachingEnabled()) {
CachedObject<V> co = getCachedObject(key);
if (co == null || isCachedObjectExpired(co)) {
misses++; // depends on control dependency: [if], data = [none]
co = new CachedObject<V>(); ... |
public class class_name {
@Override
public List<FileNotifyInformation> watch () throws CIFSException {
if ( !this.handle.isValid() ) {
throw new SmbException("Watch was broken by tree disconnect");
}
try ( SmbTreeHandleImpl th = this.handle.getTree() ) {
CommonServe... | public class class_name {
@Override
public List<FileNotifyInformation> watch () throws CIFSException {
if ( !this.handle.isValid() ) {
throw new SmbException("Watch was broken by tree disconnect");
}
try ( SmbTreeHandleImpl th = this.handle.getTree() ) {
CommonServe... |
public class class_name {
public void setPreTransProgram( final String program) {
if ( null == program) {
format.getHeader().createEntry( PRETRANSPROG, DEFAULTSCRIPTPROG);
} else if ( 0 == program.length()){
format.getHeader().createEntry( PRETRANSPROG, DEFAULTSCRIPTPROG);
} else {
format.getHeader().cr... | public class class_name {
public void setPreTransProgram( final String program) {
if ( null == program) {
format.getHeader().createEntry( PRETRANSPROG, DEFAULTSCRIPTPROG); // depends on control dependency: [if], data = [none]
} else if ( 0 == program.length()){
format.getHeader().createEntry( PRETRANSPROG, D... |
public class class_name {
public static String join(final String[] seq, final String delimiter) {
if (null == seq || seq.length < 1) return "";
Assert.notNull(delimiter);
StringBuilder aim = new StringBuilder();
for (int i = 0; i < seq.length; i++) {
if (aim.length() > 0) aim.append(delimiter);
... | public class class_name {
public static String join(final String[] seq, final String delimiter) {
if (null == seq || seq.length < 1) return "";
Assert.notNull(delimiter);
StringBuilder aim = new StringBuilder();
for (int i = 0; i < seq.length; i++) {
if (aim.length() > 0) aim.append(delimiter);
... |
public class class_name {
@Override
public Promise subscribe(String channel) {
try {
// Create topic
ProjectTopicName topicName = ProjectTopicName.of(projectID, channel);
Topic topic = null;
try {
topic = topicAdmin.getTopic(topicName);
} catch (NotFoundException notFound) {
}
i... | public class class_name {
@Override
public Promise subscribe(String channel) {
try {
// Create topic
ProjectTopicName topicName = ProjectTopicName.of(projectID, channel);
Topic topic = null;
try {
topic = topicAdmin.getTopic(topicName);
// depends on control dependency: [try], data = [none... |
public class class_name {
public Content getPreQualifiedClassLink(LinkInfoImpl.Kind context,
ClassDoc cd, boolean isStrong) {
ContentBuilder classlink = new ContentBuilder();
PackageDoc pd = cd.containingPackage();
if (pd != null && ! configuration.shouldExcludeQualifier(pd.name()))... | public class class_name {
public Content getPreQualifiedClassLink(LinkInfoImpl.Kind context,
ClassDoc cd, boolean isStrong) {
ContentBuilder classlink = new ContentBuilder();
PackageDoc pd = cd.containingPackage();
if (pd != null && ! configuration.shouldExcludeQualifier(pd.name()))... |
public class class_name {
synchronized void setJobPriority(JobID jobId, JobPriority priority) {
JobInProgress job = jobs.get(jobId);
if (job != null) {
synchronized (taskScheduler) {
JobStatus oldStatus = (JobStatus)job.getStatus().clone();
job.setPriority(priority);
JobStatus new... | public class class_name {
synchronized void setJobPriority(JobID jobId, JobPriority priority) {
JobInProgress job = jobs.get(jobId);
if (job != null) {
synchronized (taskScheduler) { // depends on control dependency: [if], data = [none]
JobStatus oldStatus = (JobStatus)job.getStatus().clone();
... |
public class class_name {
protected MessageContext decodeSoapRequest(final HttpServletRequest request) {
try {
val decoder = new HTTPSOAP11Decoder();
decoder.setParserPool(samlProfileHandlerConfigurationContext.getOpenSamlConfigBean().getParserPool());
decoder.setHttpServlet... | public class class_name {
protected MessageContext decodeSoapRequest(final HttpServletRequest request) {
try {
val decoder = new HTTPSOAP11Decoder();
decoder.setParserPool(samlProfileHandlerConfigurationContext.getOpenSamlConfigBean().getParserPool()); // depends on control dependency: ... |
public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> _getRenderFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equa... | public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> _getRenderFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equa... |
public class class_name {
public void setReplicaAvailabilityZones(java.util.Collection<String> replicaAvailabilityZones) {
if (replicaAvailabilityZones == null) {
this.replicaAvailabilityZones = null;
return;
}
this.replicaAvailabilityZones = new com.amazonaws.internal.... | public class class_name {
public void setReplicaAvailabilityZones(java.util.Collection<String> replicaAvailabilityZones) {
if (replicaAvailabilityZones == null) {
this.replicaAvailabilityZones = null; // depends on control dependency: [if], data = [none]
return; // depends on control de... |
public class class_name {
@Override
public EClass getIfcPHMeasure() {
if (ifcPHMeasureEClass == null) {
ifcPHMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(848);
}
return ifcPHMeasureEClass;
} } | public class class_name {
@Override
public EClass getIfcPHMeasure() {
if (ifcPHMeasureEClass == null) {
ifcPHMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(848);
// depends on control dependency: [if], data = [none]
}
return ifcPHMeasure... |
public class class_name {
@Override
public ValueWrapper putIfAbsent(Object key, Object value) {
Assert.notNull(key, "key parameter is mandatory");
Assert.isAssignable(String.class, key.getClass());
ValueWrapper valueWrapper = get(key);
if (valueWrapper == null) {
try {
this.memcachedClientIF.add((Stri... | public class class_name {
@Override
public ValueWrapper putIfAbsent(Object key, Object value) {
Assert.notNull(key, "key parameter is mandatory");
Assert.isAssignable(String.class, key.getClass());
ValueWrapper valueWrapper = get(key);
if (valueWrapper == null) {
try {
this.memcachedClientIF.add((Stri... |
public class class_name {
public static final DoubleMatrix1D replaceValues(DoubleMatrix1D v, double oldValue, double newValue) {
if(v == null){
return null;
}
DoubleFactory1D F1 = (v instanceof SparseDoubleMatrix1D)? DoubleFactory1D.sparse : DoubleFactory1D.dense;
DoubleMatrix1D ret = F1.make(v.size... | public class class_name {
public static final DoubleMatrix1D replaceValues(DoubleMatrix1D v, double oldValue, double newValue) {
if(v == null){
return null;
// depends on control dependency: [if], data = [none]
}
DoubleFactory1D F1 = (v instanceof SparseDoubleMatrix1D)? DoubleFactory1D.sparse : DoubleFact... |
public class class_name {
public static Repository newRepository() {
try {
MapRepositoryBuilder builder = new MapRepositoryBuilder();
return builder.build();
} catch (RepositoryException e) {
// Not expected.
throw new RuntimeException(e);
... | public class class_name {
public static Repository newRepository() {
try {
MapRepositoryBuilder builder = new MapRepositoryBuilder();
return builder.build();
// depends on control dependency: [try], data = [none]
} catch (RepositoryException e) {
// Not expected... |
public class class_name {
@Override
public void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException {
try {
final byte[] fileContent = IOUtils.toByteArray(new FileInputStream(dependency.getActualFile()));
final ScannerFacade scanner = new ScannerFacade(j... | public class class_name {
@Override
public void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException {
try {
final byte[] fileContent = IOUtils.toByteArray(new FileInputStream(dependency.getActualFile()));
final ScannerFacade scanner = new ScannerFacade(j... |
public class class_name {
protected void releaseManagedObjectContext() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "releaseManagedObjectContext : " + ivEjbManagedObjectContext);
if (ivEjbManagedObjectContext != null) {
ivEjbManagedObjectContex... | public class class_name {
protected void releaseManagedObjectContext() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "releaseManagedObjectContext : " + ivEjbManagedObjectContext);
if (ivEjbManagedObjectContext != null) {
ivEjbManagedObjectContex... |
public class class_name {
public byte[] getAuthenticatedAttributeBytes(byte secondDigest[], Calendar signingTime, byte[] ocsp) {
try {
return getAuthenticatedAttributeSet(secondDigest, signingTime, ocsp).getEncoded(ASN1Encoding.DER);
}
catch (Exception e) {
throw new Exc... | public class class_name {
public byte[] getAuthenticatedAttributeBytes(byte secondDigest[], Calendar signingTime, byte[] ocsp) {
try {
return getAuthenticatedAttributeSet(secondDigest, signingTime, ocsp).getEncoded(ASN1Encoding.DER); // depends on control dependency: [try], data = [none]
}
... |
public class class_name {
public void setMessage(String data) throws HttpMalformedHeaderException {
clear();
try {
if (!this.parse(data)) {
mMalformedHeader = true;
}
} catch (Exception e) {
mMalformedHeader = true;
}
... | public class class_name {
public void setMessage(String data) throws HttpMalformedHeaderException {
clear();
try {
if (!this.parse(data)) {
mMalformedHeader = true;
// depends on control dependency: [if], data = [none]
}
} catch (Exception e) {
... |
public class class_name {
private void invalidateWeekFields()
{
if (stamp[WEEK_OF_MONTH] != COMPUTED &&
stamp[WEEK_OF_YEAR] != COMPUTED) {
return;
}
// We have to check the new values of these fields after changing
// firstDayOfWeek and/or minimalDaysInFirst... | public class class_name {
private void invalidateWeekFields()
{
if (stamp[WEEK_OF_MONTH] != COMPUTED &&
stamp[WEEK_OF_YEAR] != COMPUTED) {
return; // depends on control dependency: [if], data = [none]
}
// We have to check the new values of these fields after changi... |
public class class_name {
public void setAllowedPrincipals(java.util.Collection<AllowedPrincipal> allowedPrincipals) {
if (allowedPrincipals == null) {
this.allowedPrincipals = null;
return;
}
this.allowedPrincipals = new com.amazonaws.internal.SdkInternalList<AllowedPr... | public class class_name {
public void setAllowedPrincipals(java.util.Collection<AllowedPrincipal> allowedPrincipals) {
if (allowedPrincipals == null) {
this.allowedPrincipals = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
@Override
public void registerFactory(String name, Class<? extends ChannelFactory> factory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerFactory: " + name + "; " + factory);
}
synchronized (this.factories) {... | public class class_name {
@Override
public void registerFactory(String name, Class<? extends ChannelFactory> factory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerFactory: " + name + "; " + factory); // depends on control dependency: [if], data = [n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.