code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void setRules(java.util.Collection<Rule> rules) {
if (rules == null) {
this.rules = null;
return;
}
this.rules = new java.util.ArrayList<Rule>(rules);
} } | public class class_name {
public void setRules(java.util.Collection<Rule> rules) {
if (rules == null) {
this.rules = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.rules = new java.util.Ar... |
public class class_name {
@VisibleForTesting
String constructContentRangeHeaderValue(
long requestLength, boolean isLastRequest, BatchJobUploadStatus batchJobUploadStatus) {
Preconditions.checkArgument(requestLength > 0, "Request length %s is <= 0", requestLength);
long previousTotalLength = batchJobUp... | public class class_name {
@VisibleForTesting
String constructContentRangeHeaderValue(
long requestLength, boolean isLastRequest, BatchJobUploadStatus batchJobUploadStatus) {
Preconditions.checkArgument(requestLength > 0, "Request length %s is <= 0", requestLength);
long previousTotalLength = batchJobUp... |
public class class_name {
public double ptLength(TermLengthOrPercent spec, double whole)
{
float nval = spec.getValue();
if (spec.isPercentage())
{
return (whole * nval) / 100;
}
else if (spec instanceof TermCalc)
{
final CalcArgs args = ((Ter... | public class class_name {
public double ptLength(TermLengthOrPercent spec, double whole)
{
float nval = spec.getValue();
if (spec.isPercentage())
{
return (whole * nval) / 100; // depends on control dependency: [if], data = [none]
}
else if (spec instanceof TermC... |
public class class_name {
public static <T> void assertThrows(String message, Class<? extends Exception> exceptionClass, Callable<T> callable) {
T result;
try {
result = callable.call();
fail(message, "No exception was thrown (expected " + exceptionClass.getSimpleName() + " but ... | public class class_name {
public static <T> void assertThrows(String message, Class<? extends Exception> exceptionClass, Callable<T> callable) {
T result;
try {
result = callable.call(); // depends on control dependency: [try], data = [none]
fail(message, "No exception was throw... |
public class class_name {
private DependencyInfo createDependencyInfo(PhpPackage phpPackage) {
String groupId = getGroupIdFromName(phpPackage);
String artifactId = phpPackage.getName();
String version = phpPackage.getVersion();
String commit = phpPackage.getPackageSource().getReference(... | public class class_name {
private DependencyInfo createDependencyInfo(PhpPackage phpPackage) {
String groupId = getGroupIdFromName(phpPackage);
String artifactId = phpPackage.getName();
String version = phpPackage.getVersion();
String commit = phpPackage.getPackageSource().getReference(... |
public class class_name {
public static String addStaticQueryParamtersToRequest(final Request<?> request,
final String uriResourcePath) {
if (request == null || uriResourcePath == null) {
return null;
}
String resourcePath = ... | public class class_name {
public static String addStaticQueryParamtersToRequest(final Request<?> request,
final String uriResourcePath) {
if (request == null || uriResourcePath == null) {
return null; // depends on control dependency: [if], d... |
public class class_name {
public V remove(Object key)
{
// Check if the key is in the map
Integer index = keyToIndex.get(key);
if (index == null)
{
return null;
}
// Leave the data in the array but remove its key
keyToIndex.remove(key);
... | public class class_name {
public V remove(Object key)
{
// Check if the key is in the map
Integer index = keyToIndex.get(key);
if (index == null)
{
return null; // depends on control dependency: [if], data = [none]
}
// Leave the data in the array but r... |
public class class_name {
public static boolean isLegalPoolInfo(PoolInfo poolInfo) {
if (poolInfo == null || poolInfo.getPoolGroupName() == null ||
poolInfo.getPoolName() == null) {
return false;
}
if (INVALID_REGEX_PATTERN.matcher(poolInfo.getPoolGroupName()).matches() ||
poolInfo.ge... | public class class_name {
public static boolean isLegalPoolInfo(PoolInfo poolInfo) {
if (poolInfo == null || poolInfo.getPoolGroupName() == null ||
poolInfo.getPoolName() == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (INVALID_REGEX_PATTERN.matcher(poolInf... |
public class class_name {
private void computeDivUVD(GrayF32 u , GrayF32 v , GrayF32 psi ,
GrayF32 divU , GrayF32 divV , GrayF32 divD ) {
final int stride = psi.stride;
// compute the inside pixel
for (int y = 1; y < psi.height-1; y++) {
// index of the current pixel
int index = y*stride + 1;
... | public class class_name {
private void computeDivUVD(GrayF32 u , GrayF32 v , GrayF32 psi ,
GrayF32 divU , GrayF32 divV , GrayF32 divD ) {
final int stride = psi.stride;
// compute the inside pixel
for (int y = 1; y < psi.height-1; y++) {
// index of the current pixel
int index = y*stride + 1;
... |
public class class_name {
public boolean foldComposite(final Instruction _instruction) throws ClassParseException {
boolean handled = false;
if (logger.isLoggable(Level.FINE)) {
System.out.println("foldComposite: curr = " + _instruction);
System.out.println(dumpDiagram(_instruct... | public class class_name {
public boolean foldComposite(final Instruction _instruction) throws ClassParseException {
boolean handled = false;
if (logger.isLoggable(Level.FINE)) {
System.out.println("foldComposite: curr = " + _instruction);
System.out.println(dumpDiagram(_instruct... |
public class class_name {
public Object convert( String value, TypeLiteral<?> toType )
{
Properties properties = new Properties();
ByteArrayInputStream bais = null;
try
{
bais = new ByteArrayInputStream( value.getBytes( PROPERTIES_ENCODING ) );
properties.lo... | public class class_name {
public Object convert( String value, TypeLiteral<?> toType )
{
Properties properties = new Properties();
ByteArrayInputStream bais = null;
try
{
bais = new ByteArrayInputStream( value.getBytes( PROPERTIES_ENCODING ) ); // depends on control dep... |
public class class_name {
static void writeBytesToFile(File file, byte[] bytes) throws IOException {
BufferedOutputStream bos = null;
try {
FileOutputStream fos = new FileOutputStream(file);
bos = new BufferedOutputStream(fos);
bos.write(bytes);
} finally {
... | public class class_name {
static void writeBytesToFile(File file, byte[] bytes) throws IOException {
BufferedOutputStream bos = null;
try {
FileOutputStream fos = new FileOutputStream(file);
bos = new BufferedOutputStream(fos);
bos.write(bytes);
} finally {
... |
public class class_name {
public Collection<VTimezone> getComponents() {
List<VTimezone> components = new ArrayList<VTimezone>(assignments.size());
for (TimezoneAssignment assignment : assignments) {
VTimezone component = assignment.getComponent();
if (component != null) {
components.add(component);
}... | public class class_name {
public Collection<VTimezone> getComponents() {
List<VTimezone> components = new ArrayList<VTimezone>(assignments.size());
for (TimezoneAssignment assignment : assignments) {
VTimezone component = assignment.getComponent();
if (component != null) {
components.add(component); // d... |
public class class_name {
private int matchesDigit(String str, int start, int[] decVal) {
String[] localeDigits = symbols.getDigitStringsLocal();
// Check if the sequence at the current position matches locale digits.
for (int i = 0; i < 10; i++) {
int digitStrLen = localeDigits[i]... | public class class_name {
private int matchesDigit(String str, int start, int[] decVal) {
String[] localeDigits = symbols.getDigitStringsLocal();
// Check if the sequence at the current position matches locale digits.
for (int i = 0; i < 10; i++) {
int digitStrLen = localeDigits[i]... |
public class class_name {
public EClass getIfcFrequencyMeasure() {
if (ifcFrequencyMeasureEClass == null) {
ifcFrequencyMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(680);
}
return ifcFrequencyMeasureEClass;
} } | public class class_name {
public EClass getIfcFrequencyMeasure() {
if (ifcFrequencyMeasureEClass == null) {
ifcFrequencyMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(680);
// depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
public static Map<String, Method> getReadMethods(Object bean) {
Class<? extends Object> beanClass = bean.getClass();
try {
Map<String, Method> readMethods = new HashMap<>();
final BeanInfo beanInfo = Introspector.getBeanInfo(beanClass);
final PropertyDescriptor[] propertyDescript... | public class class_name {
public static Map<String, Method> getReadMethods(Object bean) {
Class<? extends Object> beanClass = bean.getClass();
try {
Map<String, Method> readMethods = new HashMap<>();
final BeanInfo beanInfo = Introspector.getBeanInfo(beanClass);
final PropertyDescriptor[] propertyDescript... |
public class class_name {
public static double sumOfProducts(double[]... nums) {
if (nums == null || nums.length < 1)
return 0;
double sum = 0;
for (int i = 0; i < nums.length; i++) {
/* The ith column for all of the rows */
double[] column = column(i, nums)... | public class class_name {
public static double sumOfProducts(double[]... nums) {
if (nums == null || nums.length < 1)
return 0;
double sum = 0;
for (int i = 0; i < nums.length; i++) {
/* The ith column for all of the rows */
double[] column = column(i, nums)... |
public class class_name {
private static Level translateLevel(final int level) {
if (level <= TRACE_INT) {
return Level.TRACE;
} else if (level <= DEBUG_INT) {
return Level.DEBUG;
} else if (level <= INFO_INT) {
return Level.INFO;
} else if (level <= WARN_INT) {
return Level.WARN;
} else {
ret... | public class class_name {
private static Level translateLevel(final int level) {
if (level <= TRACE_INT) {
return Level.TRACE; // depends on control dependency: [if], data = [none]
} else if (level <= DEBUG_INT) {
return Level.DEBUG; // depends on control dependency: [if], data = [none]
} else if (level <=... |
public class class_name {
public FormEncodingBuilder add(String name, String value) {
if (content.size() > 0) {
content.writeByte('&');
}
HttpUrl.canonicalize(content, name, 0, name.length(),
HttpUrl.FORM_ENCODE_SET, false, false, true, true);
content.writeBy... | public class class_name {
public FormEncodingBuilder add(String name, String value) {
if (content.size() > 0) {
content.writeByte('&'); // depends on control dependency: [if], data = [none]
}
HttpUrl.canonicalize(content, name, 0, name.length(),
HttpUrl.FORM_ENCODE_S... |
public class class_name {
public GetSessionStatisticsResponse getSessionStatistics(GetSessionStatisticsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getSessionId(), "The parameter sessionId should NOT be null or empty string.");
... | public class class_name {
public GetSessionStatisticsResponse getSessionStatistics(GetSessionStatisticsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getSessionId(), "The parameter sessionId should NOT be null or empty string.");
... |
public class class_name {
public void title(String title) {
Validate.notNull(title);
Element titleEl = getElementsByTag("title").first();
if (titleEl == null) { // add to head
head().appendElement("title").text(title);
} else {
titleEl.text(title);
}
... | public class class_name {
public void title(String title) {
Validate.notNull(title);
Element titleEl = getElementsByTag("title").first();
if (titleEl == null) { // add to head
head().appendElement("title").text(title); // depends on control dependency: [if], data = [none]
} ... |
public class class_name {
public void addLanguage(Language language) {
languages.add(language);
if (dropdown.isAttached()) {
addLanguageItem(language);
} else {
lazyLoaded = true;
}
} } | public class class_name {
public void addLanguage(Language language) {
languages.add(language);
if (dropdown.isAttached()) {
addLanguageItem(language); // depends on control dependency: [if], data = [none]
} else {
lazyLoaded = true; // depends on control dependency: [i... |
public class class_name {
public void initializeMap(final MapPresenter mapPresenter, String applicationId, String id,
final DefaultMapWidget... mapWidgets) {
GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND);
commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applic... | public class class_name {
public void initializeMap(final MapPresenter mapPresenter, String applicationId, String id,
final DefaultMapWidget... mapWidgets) {
GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND);
commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applic... |
public class class_name {
@Override
public Period until(ChronoLocalDate endDate) {
LocalDate end = LocalDate.from(endDate);
long totalMonths = end.getProlepticMonth() - this.getProlepticMonth(); // safe
int days = end.day - this.day;
if (totalMonths > 0 && days < 0) {
t... | public class class_name {
@Override
public Period until(ChronoLocalDate endDate) {
LocalDate end = LocalDate.from(endDate);
long totalMonths = end.getProlepticMonth() - this.getProlepticMonth(); // safe
int days = end.day - this.day;
if (totalMonths > 0 && days < 0) {
t... |
public class class_name {
@Override
public List<Content> rewriteElement(@NotNull Element element) {
// rewrite anchor elements
if (StringUtils.equalsIgnoreCase(element.getName(), "a")) {
return rewriteAnchor(element);
}
// rewrite image elements
else if (StringUtils.equalsIgnoreCase(eleme... | public class class_name {
@Override
public List<Content> rewriteElement(@NotNull Element element) {
// rewrite anchor elements
if (StringUtils.equalsIgnoreCase(element.getName(), "a")) {
return rewriteAnchor(element); // depends on control dependency: [if], data = [none]
}
// rewrite image el... |
public class class_name {
private void processURLPatterns(List<ServletMapping> servletMappings) {
for (ServletMapping servletMapping : servletMappings) {
String servletName = servletMapping.getServletName();
List<String> urlPatterns = servletMapping.getURLPatterns();
if (url... | public class class_name {
private void processURLPatterns(List<ServletMapping> servletMappings) {
for (ServletMapping servletMapping : servletMappings) {
String servletName = servletMapping.getServletName();
List<String> urlPatterns = servletMapping.getURLPatterns();
if (url... |
public class class_name {
public ExecutableFlow getFlow(final int executionId) {
if (hasExecution(executionId)) {
return this.queuedFlowMap.get(executionId).getSecond();
}
return null;
} } | public class class_name {
public ExecutableFlow getFlow(final int executionId) {
if (hasExecution(executionId)) {
return this.queuedFlowMap.get(executionId).getSecond(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static base_responses add(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction addresources[] = new responderaction[resources.length];
for (int i=0;i<resources.leng... | public class class_name {
public static base_responses add(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction addresources[] = new responderaction[resources.length];
for (int i=0;i<resources.leng... |
public class class_name {
public static List<String> getParamNames(Method method) {
try {
int size = method.getParameterTypes().length;
if (size == 0)
return new ArrayList<String>(0);
List<String> list = ClassMetaReader.getParamNames(method.getDeclaringClass(... | public class class_name {
public static List<String> getParamNames(Method method) {
try {
int size = method.getParameterTypes().length;
if (size == 0)
return new ArrayList<String>(0);
List<String> list = ClassMetaReader.getParamNames(method.getDeclaringClass(... |
public class class_name {
public boolean knowsFunction(String functionName) {
String functionPrefix = functionName.substring(0, functionName.indexOf(':') + 1);
if (!functionPrefix.equals(prefix)) {
return false;
}
return members.containsKey(functionName.substring(functionN... | public class class_name {
public boolean knowsFunction(String functionName) {
String functionPrefix = functionName.substring(0, functionName.indexOf(':') + 1);
if (!functionPrefix.equals(prefix)) {
return false; // depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
public static base_responses delete(nitro_service client, String fipskeyname[]) throws Exception {
base_responses result = null;
if (fipskeyname != null && fipskeyname.length > 0) {
sslfipskey deleteresources[] = new sslfipskey[fipskeyname.length];
for (int i=0;i<fipskeyname.length;... | public class class_name {
public static base_responses delete(nitro_service client, String fipskeyname[]) throws Exception {
base_responses result = null;
if (fipskeyname != null && fipskeyname.length > 0) {
sslfipskey deleteresources[] = new sslfipskey[fipskeyname.length];
for (int i=0;i<fipskeyname.length;... |
public class class_name {
@Override
public final void close()
{
externalAccessLock.writeLock().lock();
try
{
if (closed)
return;
closed = true;
onConnectionClose();
}
finally
{
externalAccessLock.writeLock().unlock();
}
onConnectionCl... | public class class_name {
@Override
public final void close()
{
externalAccessLock.writeLock().lock();
try
{
if (closed)
return;
closed = true; // depends on control dependency: [try], data = [none]
onConnectionClose(); // depends on control dependency: [try], d... |
public class class_name {
public boolean supports(Class<?> clazz) {
for (AccessDecisionVoter voter : this.decisionVoters) {
if (!voter.supports(clazz)) {
return false;
}
}
return true;
} } | public class class_name {
public boolean supports(Class<?> clazz) {
for (AccessDecisionVoter voter : this.decisionVoters) {
if (!voter.supports(clazz)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
@Override
public void setClassPathEntries(List<IRuntimeClasspathEntry> libraries) {
if (isDirty()) {
setDirty(false);
resolveDirtyFields(true);
}
if ((libraries == null && this.classPathEntries != null)
|| (libraries != null
&& (this.classPathEntries == null
|| lib... | public class class_name {
@Override
public void setClassPathEntries(List<IRuntimeClasspathEntry> libraries) {
if (isDirty()) {
setDirty(false); // depends on control dependency: [if], data = [none]
resolveDirtyFields(true); // depends on control dependency: [if], data = [none]
}
if ((libraries == null && ... |
public class class_name {
public static BigInteger power(BigInteger self, BigInteger exponent) {
if ((exponent.signum() >= 0) && (exponent.compareTo(BI_INT_MAX) <= 0)) {
return self.pow(exponent.intValue());
} else {
return BigDecimal.valueOf(Math.pow(self.doubleValue(), exponen... | public class class_name {
public static BigInteger power(BigInteger self, BigInteger exponent) {
if ((exponent.signum() >= 0) && (exponent.compareTo(BI_INT_MAX) <= 0)) {
return self.pow(exponent.intValue()); // depends on control dependency: [if], data = [none]
} else {
return B... |
public class class_name {
@Override
public void addToList() {
meldungStart();
if (Config.getStop()) {
meldungThreadUndFertig();
} else {
if (CrawlerTool.loadLongMax()) {
addCategories();
meldungAddMax(listeThemen.size());
for (int t = 0; t < getMaxThreadLaufen(); ++t)... | public class class_name {
@Override
public void addToList() {
meldungStart();
if (Config.getStop()) {
meldungThreadUndFertig(); // depends on control dependency: [if], data = [none]
} else {
if (CrawlerTool.loadLongMax()) {
addCategories(); // depends on control dependency: [if], data... |
public class class_name {
public String getString()
{
StringBuffer buf = new StringBuffer();
for (int i = 0; i != string.length; i++)
{
buf.append(table[(string[i] >>> 4) % 0xf]);
buf.append(table[string[i] & 0xf]);
}
return buf.toStrin... | public class class_name {
public String getString()
{
StringBuffer buf = new StringBuffer();
for (int i = 0; i != string.length; i++)
{
buf.append(table[(string[i] >>> 4) % 0xf]);
// depends on control dependency: [for], data = [i]
buf.append(table[string[... |
public class class_name {
public static String getProxyHost(AppleServer server) {
String host = server != null ? server.getProxyHost() : null;
if (host != null && host.length() > 0) {
return host;
} else {
host = System.getProperty(LOCAL_PROXY_HOST_PROPERTY);
if (host != null && host.length() > 0) {
... | public class class_name {
public static String getProxyHost(AppleServer server) {
String host = server != null ? server.getProxyHost() : null;
if (host != null && host.length() > 0) {
return host; // depends on control dependency: [if], data = [none]
} else {
host = System.getProperty(LOCAL_PROXY_HOST_PROP... |
public class class_name {
protected void transportHeadersReceived(Metadata headers) {
Preconditions.checkNotNull(headers, "headers");
if (transportError != null) {
// Already received a transport error so just augment it. Something is really, really strange.
transportError = transportError.augmentD... | public class class_name {
protected void transportHeadersReceived(Metadata headers) {
Preconditions.checkNotNull(headers, "headers");
if (transportError != null) {
// Already received a transport error so just augment it. Something is really, really strange.
transportError = transportError.augmentD... |
public class class_name {
private static String createPostgresTimeZone() {
String tz = TimeZone.getDefault().getID();
if (tz.length() <= 3 || !tz.startsWith("GMT")) {
return tz;
}
char sign = tz.charAt(3);
String start;
switch (sign) {
case '+':
start = "GMT-";
break... | public class class_name {
private static String createPostgresTimeZone() {
String tz = TimeZone.getDefault().getID();
if (tz.length() <= 3 || !tz.startsWith("GMT")) {
return tz; // depends on control dependency: [if], data = [none]
}
char sign = tz.charAt(3);
String start;
switch (sign) {... |
public class class_name {
public void setIncludeFilter(File filterFile) {
if (filterFile != null && filterFile.length() > 0) {
includeFile = filterFile;
} else {
if (filterFile != null) {
log("Warning: include filter file " + filterFile
+ ... | public class class_name {
public void setIncludeFilter(File filterFile) {
if (filterFile != null && filterFile.length() > 0) {
includeFile = filterFile; // depends on control dependency: [if], data = [none]
} else {
if (filterFile != null) {
log("Warning: include... |
public class class_name {
public void stratify(int numFolds) {
if (classAttribute().isNominal()) {
// sort by class
int index = 1;
while (index < numInstances()) {
Instance instance1 = instance(index - 1);
for (int j = index; j < numInstance... | public class class_name {
public void stratify(int numFolds) {
if (classAttribute().isNominal()) {
// sort by class
int index = 1;
while (index < numInstances()) {
Instance instance1 = instance(index - 1);
for (int j = index; j < numInstance... |
public class class_name {
public boolean replaceIn(final StringBuffer source, final int offset, final int length) {
if (source == null) {
return false;
}
final StrBuilder buf = new StrBuilder(length).append(source, offset, length);
if (substitute(buf, 0, length) == false) {
... | public class class_name {
public boolean replaceIn(final StringBuffer source, final int offset, final int length) {
if (source == null) {
return false; // depends on control dependency: [if], data = [none]
}
final StrBuilder buf = new StrBuilder(length).append(source, offset, length... |
public class class_name {
public Map<Object, Object> getPropertyBag() {
if (this.properties == null) {
this.properties = new HashMap<Object, Object>();
}
return this.properties;
} } | public class class_name {
public Map<Object, Object> getPropertyBag() {
if (this.properties == null) {
this.properties = new HashMap<Object, Object>(); // depends on control dependency: [if], data = [none]
}
return this.properties;
} } |
public class class_name {
public Observable<ServiceResponse<Page<IotHubSkuDescriptionInner>>> getValidSkusNextWithServiceResponseAsync(final String nextPageLink) {
return getValidSkusNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<IotHubSkuDescriptionInner>>, Observable<... | public class class_name {
public Observable<ServiceResponse<Page<IotHubSkuDescriptionInner>>> getValidSkusNextWithServiceResponseAsync(final String nextPageLink) {
return getValidSkusNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<IotHubSkuDescriptionInner>>, Observable<... |
public class class_name {
public static Type resolveType(Type targetType, Type rootType)
{
Type resolvedType;
if (targetType instanceof ParameterizedType && rootType instanceof ParameterizedType) {
ParameterizedType parameterizedType = (ParameterizedType) targetType;
resol... | public class class_name {
public static Type resolveType(Type targetType, Type rootType)
{
Type resolvedType;
if (targetType instanceof ParameterizedType && rootType instanceof ParameterizedType) {
ParameterizedType parameterizedType = (ParameterizedType) targetType;
resol... |
public class class_name {
public void reset() {
if (isEditable()) {
String val = "";
CmsUUID sid = m_imageInfoProvider.get().getStructureId();
List<CmsPropertyModification> propChanges = new ArrayList<>();
propChanges.add(new CmsPropertyModification(sid, CmsGwt... | public class class_name {
public void reset() {
if (isEditable()) {
String val = "";
CmsUUID sid = m_imageInfoProvider.get().getStructureId();
List<CmsPropertyModification> propChanges = new ArrayList<>();
propChanges.add(new CmsPropertyModification(sid, CmsGwt... |
public class class_name {
public Node getNodeFromEntity(Object entity, Object key, GraphDatabaseService graphDb, EntityMetadata m,
boolean isUpdate)
{
// Construct top level node first, making sure unique ID in the index
Node node = null;
if (!isUpdate)
{
no... | public class class_name {
public Node getNodeFromEntity(Object entity, Object key, GraphDatabaseService graphDb, EntityMetadata m,
boolean isUpdate)
{
// Construct top level node first, making sure unique ID in the index
Node node = null;
if (!isUpdate)
{
no... |
public class class_name {
public void close(int closemode) {
HsqlException he = null;
setState(DATABASE_CLOSING);
sessionManager.closeAllSessions();
sessionManager.clearAll();
if (filesReadOnly) {
closemode = CLOSEMODE_IMMEDIATELY;
}
/**
... | public class class_name {
public void close(int closemode) {
HsqlException he = null;
setState(DATABASE_CLOSING);
sessionManager.closeAllSessions();
sessionManager.clearAll();
if (filesReadOnly) {
closemode = CLOSEMODE_IMMEDIATELY; // depends on control dependency... |
public class class_name {
private static byte convertHexDigit( final byte b )
{
if ( ( b >= '0' ) && ( b <= '9' ) )
{
return (byte) ( b - '0' );
}
if ( ( b >= 'a' ) && ( b <= 'f' ) )
{
return (byte) ( b - 'a' + 10 );
}
if ( ( b >= 'A' ... | public class class_name {
private static byte convertHexDigit( final byte b )
{
if ( ( b >= '0' ) && ( b <= '9' ) )
{
return (byte) ( b - '0' ); // depends on control dependency: [if], data = [none]
}
if ( ( b >= 'a' ) && ( b <= 'f' ) )
{
return (byte... |
public class class_name {
protected final void doStop() {
log.info("Stopping {} in {}", new Object[]{this, getLocationOrNull()});
if (getAttribute(SERVICE_STATE_ACTUAL)
.equals(Lifecycle.STOPPED)) {
log.warn("The entity {} is already stopped", new Object[]{this});
... | public class class_name {
protected final void doStop() {
log.info("Stopping {} in {}", new Object[]{this, getLocationOrNull()});
if (getAttribute(SERVICE_STATE_ACTUAL)
.equals(Lifecycle.STOPPED)) {
log.warn("The entity {} is already stopped", new Object[]{this}); // depen... |
public class class_name {
public HistoricDate getBeginOfYear(
HistoricEra era,
int yearOfEra
) {
HistoricDate newYear = this.getNewYearStrategy().newYear(era, yearOfEra);
if (this.isValid(newYear)) {
PlainDate date = this.convert(newYear);
HistoricEra prefe... | public class class_name {
public HistoricDate getBeginOfYear(
HistoricEra era,
int yearOfEra
) {
HistoricDate newYear = this.getNewYearStrategy().newYear(era, yearOfEra);
if (this.isValid(newYear)) {
PlainDate date = this.convert(newYear);
HistoricEra prefe... |
public class class_name {
private String expandEntities(String src) {
int refStart = -1;
int len = src.length();
char[] dst = new char[len];
int dstlen = 0;
for (int i = 0; i < len; i++) {
char ch = src.charAt(i);
dst[dstlen++] = ch;
if (ch ==... | public class class_name {
private String expandEntities(String src) {
int refStart = -1;
int len = src.length();
char[] dst = new char[len];
int dstlen = 0;
for (int i = 0; i < len; i++) {
char ch = src.charAt(i);
dst[dstlen++] = ch; // depends on control... |
public class class_name {
public static Geometry split(Geometry geomA, Geometry geomB, double tolerance) throws SQLException {
if (geomA instanceof Polygon) {
throw new SQLException("Split a Polygon by a line is not supported using a tolerance. \n"
+ "Please used ST_Split(geom1,... | public class class_name {
public static Geometry split(Geometry geomA, Geometry geomB, double tolerance) throws SQLException {
if (geomA instanceof Polygon) {
throw new SQLException("Split a Polygon by a line is not supported using a tolerance. \n"
+ "Please used ST_Split(geom1,... |
public class class_name {
private static boolean serialClassInclude(ClassDoc cd) {
if (cd.isEnum()) {
return false;
}
try {
cd.superclassType();
} catch (NullPointerException e) {
//Workaround for null pointer bug in ClassDoc.superclassType().
... | public class class_name {
private static boolean serialClassInclude(ClassDoc cd) {
if (cd.isEnum()) {
return false; // depends on control dependency: [if], data = [none]
}
try {
cd.superclassType(); // depends on control dependency: [try], data = [none]
} catch (... |
public class class_name {
public String getEffectiveBuilderScope() {
String scope = beanBuilderScope;
if ("smart".equals(scope)) {
scope = typeScope;
}
return "package".equals(scope) ? "" : scope + " ";
} } | public class class_name {
public String getEffectiveBuilderScope() {
String scope = beanBuilderScope;
if ("smart".equals(scope)) {
scope = typeScope; // depends on control dependency: [if], data = [none]
}
return "package".equals(scope) ? "" : scope + " ";
} } |
public class class_name {
public void updateInsideEntry(int spanStart, int spanEnd, int splitInd,
double[] values, Factor binaryRuleProbabilities) {
Preconditions.checkArgument(binaryRuleProbabilities.getVars().size() == 4);
if (sumProduct) {
updateEntrySumProduct(insideChart[spanStart][spanEn... | public class class_name {
public void updateInsideEntry(int spanStart, int spanEnd, int splitInd,
double[] values, Factor binaryRuleProbabilities) {
Preconditions.checkArgument(binaryRuleProbabilities.getVars().size() == 4);
if (sumProduct) {
updateEntrySumProduct(insideChart[spanStart][spanEn... |
public class class_name {
public void setLicenseSpecifications(java.util.Collection<LicenseSpecification> licenseSpecifications) {
if (licenseSpecifications == null) {
this.licenseSpecifications = null;
return;
}
this.licenseSpecifications = new java.util.ArrayList<Lice... | public class class_name {
public void setLicenseSpecifications(java.util.Collection<LicenseSpecification> licenseSpecifications) {
if (licenseSpecifications == null) {
this.licenseSpecifications = null; // depends on control dependency: [if], data = [none]
return; // depends on control ... |
public class class_name {
public void removeGroup(@Nullable L group) {
if (group == null) {
return;
}
List<L> cards = getGroups();
boolean changed = cards.remove(group);
if (changed) {
setData(cards);
}
} } | public class class_name {
public void removeGroup(@Nullable L group) {
if (group == null) {
return; // depends on control dependency: [if], data = [none]
}
List<L> cards = getGroups();
boolean changed = cards.remove(group);
if (changed) {
setData(cards); ... |
public class class_name {
public List<Project> getAllProjects() {
try {
sessionService.startSession();
List<Project> projects = projectDao.getAll();
log.debug("Retrieved All Projects number: " + projects.size());
return projects;
} finally {
... | public class class_name {
public List<Project> getAllProjects() {
try {
sessionService.startSession(); // depends on control dependency: [try], data = [none]
List<Project> projects = projectDao.getAll();
log.debug("Retrieved All Projects number: " + projects.size()); // de... |
public class class_name {
protected void fillContext(final IoSession session, final Map<String, String> context) {
if (mdcKeys.contains(MdcKey.handlerClass)) {
context.put(MdcKey.handlerClass.name(), session.getHandler()
.getClass().getName());
}
if (mdcKeys.cont... | public class class_name {
protected void fillContext(final IoSession session, final Map<String, String> context) {
if (mdcKeys.contains(MdcKey.handlerClass)) {
context.put(MdcKey.handlerClass.name(), session.getHandler()
.getClass().getName()); // depends on control dependency: ... |
public class class_name {
public void validateInjectionPointForDefinitionErrors(InjectionPoint ij, Bean<?> bean, BeanManagerImpl beanManager) {
if (ij.getAnnotated().getAnnotation(New.class) != null && ij.getQualifiers().size() > 1) {
throw ValidatorLogger.LOG.newWithQualifiers(ij, Formats.formatAs... | public class class_name {
public void validateInjectionPointForDefinitionErrors(InjectionPoint ij, Bean<?> bean, BeanManagerImpl beanManager) {
if (ij.getAnnotated().getAnnotation(New.class) != null && ij.getQualifiers().size() > 1) {
throw ValidatorLogger.LOG.newWithQualifiers(ij, Formats.formatAs... |
public class class_name {
private void rebuild(long newNumBucketSegments) throws IOException {
// Get new bucket segments
releaseBucketSegments();
allocateBucketSegments((int)newNumBucketSegments);
T record = buildSideSerializer.createInstance();
try {
EntryIterator iter = getEntryIterator();
recordAr... | public class class_name {
private void rebuild(long newNumBucketSegments) throws IOException {
// Get new bucket segments
releaseBucketSegments();
allocateBucketSegments((int)newNumBucketSegments);
T record = buildSideSerializer.createInstance();
try {
EntryIterator iter = getEntryIterator();
recordAr... |
public class class_name {
private static byte[] ensureCapacity(byte[] buf, int needed) {
if (buf.length <= needed) {
byte[] old = buf;
buf = new byte[Integer.highestOneBit(needed) << 1];
System.arraycopy(old, 0, buf, 0, old.length);
}
return buf;
} } | public class class_name {
private static byte[] ensureCapacity(byte[] buf, int needed) {
if (buf.length <= needed) {
byte[] old = buf;
buf = new byte[Integer.highestOneBit(needed) << 1]; // depends on control dependency: [if], data = [none]
System.arraycopy(old, 0, buf, 0, o... |
public class class_name {
public static boolean compileJavaClass(String sourceCode) {
try {
String fileName = getClassName(sourceCode).concat(".java");
logger.info("Compiling Java Class ({})", fileName);
File rootDir = JKIOUtil.createTempDirectory();
String packageDir = getPackageDir(sourceCode);
... | public class class_name {
public static boolean compileJavaClass(String sourceCode) {
try {
String fileName = getClassName(sourceCode).concat(".java");
logger.info("Compiling Java Class ({})", fileName);
// depends on control dependency: [try], data = [none]
File rootDir = JKIOUtil.createTempDirectory... |
public class class_name {
public static void fillManagerWithSimons(int roughCount) {
System.out.print("Filling manager with ~" + roughCount + " Simons...");
while (SimonManager.getSimonNames().size() < roughCount) {
SimonManager.getStopwatch(generateRandomName(RANDOM.nextInt(10) + 1));
}
System.out.pri... | public class class_name {
public static void fillManagerWithSimons(int roughCount) {
System.out.print("Filling manager with ~" + roughCount + " Simons...");
while (SimonManager.getSimonNames().size() < roughCount) {
SimonManager.getStopwatch(generateRandomName(RANDOM.nextInt(10) + 1));
// depends on control... |
public class class_name {
@Override
public boolean isValidDimension(String dimensionName, String informationName) {
if (StringUtils.isNotBlank(dimensionName)) {
DimensionTable dim = dimensions.get(dimensionName.toUpperCase());
if (dim == null) {
return false;
... | public class class_name {
@Override
public boolean isValidDimension(String dimensionName, String informationName) {
if (StringUtils.isNotBlank(dimensionName)) {
DimensionTable dim = dimensions.get(dimensionName.toUpperCase());
if (dim == null) {
return false; // depe... |
public class class_name {
public void marshall(RelationalDatabaseBundle relationalDatabaseBundle, ProtocolMarshaller protocolMarshaller) {
if (relationalDatabaseBundle == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(RelationalDatabaseBundle relationalDatabaseBundle, ProtocolMarshaller protocolMarshaller) {
if (relationalDatabaseBundle == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
static HijriAdjustment from(String variant) {
int index = variant.indexOf(':');
if (index == -1) {
return new HijriAdjustment(variant, 0);
} else {
try {
int adjustment = Integer.parseInt(variant.substring(index + 1));
... | public class class_name {
static HijriAdjustment from(String variant) {
int index = variant.indexOf(':');
if (index == -1) {
return new HijriAdjustment(variant, 0); // depends on control dependency: [if], data = [none]
} else {
try {
int adjustment = In... |
public class class_name {
public MultipartFormDataParser createMultipartFormDataParser() {
MultipartFormDataParser parser = new MemoryMultipartFormDataParser();
if (maxRequestSize > -1L) {
parser.setMaxRequestSize(maxRequestSize);
}
if (maxFileSize > -1L) {
parse... | public class class_name {
public MultipartFormDataParser createMultipartFormDataParser() {
MultipartFormDataParser parser = new MemoryMultipartFormDataParser();
if (maxRequestSize > -1L) {
parser.setMaxRequestSize(maxRequestSize); // depends on control dependency: [if], data = [(maxRequestS... |
public class class_name {
private void initScopeRoots(Node n) {
Deque<Node> queuedScopeRoots = new ArrayDeque<>();
while (n != null) {
if (isScopeRoot(n)) {
queuedScopeRoots.addFirst(n);
}
n = n.getParent();
}
for (Node queuedScopeRoot : queuedScopeRoots) {
pushScope(que... | public class class_name {
private void initScopeRoots(Node n) {
Deque<Node> queuedScopeRoots = new ArrayDeque<>();
while (n != null) {
if (isScopeRoot(n)) {
queuedScopeRoots.addFirst(n); // depends on control dependency: [if], data = [none]
}
n = n.getParent(); // depends on control d... |
public class class_name {
public AddResourcePermissionsRequest withPrincipals(SharePrincipal... principals) {
if (this.principals == null) {
setPrincipals(new java.util.ArrayList<SharePrincipal>(principals.length));
}
for (SharePrincipal ele : principals) {
this.principa... | public class class_name {
public AddResourcePermissionsRequest withPrincipals(SharePrincipal... principals) {
if (this.principals == null) {
setPrincipals(new java.util.ArrayList<SharePrincipal>(principals.length)); // depends on control dependency: [if], data = [none]
}
for (ShareP... |
public class class_name {
public static String toHex(byte[] byteArray) {
String result = null;
if (byteArray != null) {
result = Hex.encodeHexString(byteArray);
}
return result;
} } | public class class_name {
public static String toHex(byte[] byteArray) {
String result = null;
if (byteArray != null) {
result = Hex.encodeHexString(byteArray); // depends on control dependency: [if], data = [(byteArray]
}
return result;
} } |
public class class_name {
boolean isSimpleBound() {
if (opType == OpTypes.IS_NULL) {
return true;
}
if (nodes[RIGHT] != null) {
if (nodes[RIGHT].opType == OpTypes.VALUE) {
// also true for all parameters
return true;
}
... | public class class_name {
boolean isSimpleBound() {
if (opType == OpTypes.IS_NULL) {
return true; // depends on control dependency: [if], data = [none]
}
if (nodes[RIGHT] != null) {
if (nodes[RIGHT].opType == OpTypes.VALUE) {
// also true for all param... |
public class class_name {
public static synchronized void configure(final ApiConfiguration config) {
ApiConfiguration.Builder builder = ApiConfiguration.newBuilder();
builder.apiUrl(config.getApiUrl());
builder.apiKey(config.getApiKey());
builder.application(config.getApplication());
builder.environmen... | public class class_name {
public static synchronized void configure(final ApiConfiguration config) {
ApiConfiguration.Builder builder = ApiConfiguration.newBuilder();
builder.apiUrl(config.getApiUrl());
builder.apiKey(config.getApiKey());
builder.application(config.getApplication());
builder.environmen... |
public class class_name {
public void configurationUpdated(Object emailConfig) {
EmailConfiguration config = (EmailConfiguration) emailConfig;
if(config != null && (this.config == null || !config.equals(this.config))) {
log.info("Updating configuration for email.");
this.config = config;
... | public class class_name {
public void configurationUpdated(Object emailConfig) {
EmailConfiguration config = (EmailConfiguration) emailConfig;
if(config != null && (this.config == null || !config.equals(this.config))) {
log.info("Updating configuration for email."); // depends on control dependency... |
public class class_name {
public MainToolbarPanel getMainToolbarPanel() {
if (mainToolbarPanel == null) {
mainToolbarPanel = new MainToolbarPanel();
mainToolbarPanel.addButton(getShowAllTabsButton());
mainToolbarPanel.addButton(getHideAllTabsButton());
mainToolbarPanel.addButton(getShowTabIconName... | public class class_name {
public MainToolbarPanel getMainToolbarPanel() {
if (mainToolbarPanel == null) {
mainToolbarPanel = new MainToolbarPanel();
// depends on control dependency: [if], data = [none]
mainToolbarPanel.addButton(getShowAllTabsButton());
// depends on control dependency: [if], data = [no... |
public class class_name {
public QuorumConfig findQuorumConfig(String name) {
name = getBaseName(name);
QuorumConfig config = lookupByPattern(configPatternMatcher, quorumConfigs, name);
if (config != null) {
return config;
}
return getQuorumConfig("default");
} } | public class class_name {
public QuorumConfig findQuorumConfig(String name) {
name = getBaseName(name);
QuorumConfig config = lookupByPattern(configPatternMatcher, quorumConfigs, name);
if (config != null) {
return config; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void addListeners()
{
super.addListeners();
this.getMainRecord().addListener(new FileListener(null)
{
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption)
{ // Return an error to stop the chan... | public class class_name {
public void addListeners()
{
super.addListeners();
this.getMainRecord().addListener(new FileListener(null)
{
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption)
{ // Return an error to stop the chan... |
public class class_name {
<V> ElementRule<T, V> getRule(ChronoElement<V> element) {
if (element == null) {
throw new NullPointerException("Missing chronological element.");
}
ElementRule<?, ?> rule = this.ruleMap.get(element);
if (rule == null) {
rule = this.g... | public class class_name {
<V> ElementRule<T, V> getRule(ChronoElement<V> element) {
if (element == null) {
throw new NullPointerException("Missing chronological element.");
}
ElementRule<?, ?> rule = this.ruleMap.get(element);
if (rule == null) {
rule = this.g... |
public class class_name {
public void setToolTipText(String text) {
this.toolTipText = text;
if (toolTipDialog != null) {
toolTipDialog.setText(text);
}
} } | public class class_name {
public void setToolTipText(String text) {
this.toolTipText = text;
if (toolTipDialog != null) {
toolTipDialog.setText(text); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private void populateNextRate() {
final MutableDataPoint prev_data = new MutableDataPoint();
if (source.hasNext()) {
prev_data.reset(next_data);
next_data.reset(source.next());
final long t0 = prev_data.timestamp();
final long t1 = next_data.timestamp();... | public class class_name {
private void populateNextRate() {
final MutableDataPoint prev_data = new MutableDataPoint();
if (source.hasNext()) {
prev_data.reset(next_data); // depends on control dependency: [if], data = [none]
next_data.reset(source.next()); // depends on control dependency: [if], da... |
public class class_name {
@Trivial
protected SubjectThreadContext getSubjectThreadContext() {
ThreadLocal<SubjectThreadContext> currentThreadLocal = getThreadLocal();
SubjectThreadContext subjectThreadContext = currentThreadLocal.get();
if (subjectThreadContext == null) {
subjec... | public class class_name {
@Trivial
protected SubjectThreadContext getSubjectThreadContext() {
ThreadLocal<SubjectThreadContext> currentThreadLocal = getThreadLocal();
SubjectThreadContext subjectThreadContext = currentThreadLocal.get();
if (subjectThreadContext == null) {
subjec... |
public class class_name {
public void rerender() {
clear();
if (dataItems != null) {
for (M m : dataItems) {
addDataItem(m);
}
}
doRefresh();
} } | public class class_name {
public void rerender() {
clear();
if (dataItems != null) {
for (M m : dataItems) {
addDataItem(m); // depends on control dependency: [for], data = [m]
}
}
doRefresh();
} } |
public class class_name {
public DescribeSpotInstanceRequestsResult withSpotInstanceRequests(SpotInstanceRequest... spotInstanceRequests) {
if (this.spotInstanceRequests == null) {
setSpotInstanceRequests(new com.amazonaws.internal.SdkInternalList<SpotInstanceRequest>(spotInstanceRequests.length));... | public class class_name {
public DescribeSpotInstanceRequestsResult withSpotInstanceRequests(SpotInstanceRequest... spotInstanceRequests) {
if (this.spotInstanceRequests == null) {
setSpotInstanceRequests(new com.amazonaws.internal.SdkInternalList<SpotInstanceRequest>(spotInstanceRequests.length));... |
public class class_name {
public static boolean needsDoubleQuotes(String s) {
// this method should only be called for C*-provided identifiers,
// so we expect it to be non-null and non-empty.
assert s != null && !s.isEmpty();
char c = s.charAt(0);
if (!(c >= 97 && c <= 122)) // a-z
return true... | public class class_name {
public static boolean needsDoubleQuotes(String s) {
// this method should only be called for C*-provided identifiers,
// so we expect it to be non-null and non-empty.
assert s != null && !s.isEmpty();
char c = s.charAt(0);
if (!(c >= 97 && c <= 122)) // a-z
return true... |
public class class_name {
private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
... | public class class_name {
private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
... |
public class class_name {
@SafeVarargs
public static <E> void addAll(Collection<E> collection, E[]... arr) {
if (collection == null) {
throw new IllegalArgumentException("collection cannot be null");
}
for (E[] oarr : arr) {
for (E o : oarr) {
collect... | public class class_name {
@SafeVarargs
public static <E> void addAll(Collection<E> collection, E[]... arr) {
if (collection == null) {
throw new IllegalArgumentException("collection cannot be null");
}
for (E[] oarr : arr) {
for (E o : oarr) {
collect... |
public class class_name {
public BufferedImage getTileSetImage (String path, Colorization[] zations)
{
BufferedImage image = _cache.get(path);
if (image == null) {
try {
image = loadImage(path);
_cache.put(path, image);
} catch (IOException io... | public class class_name {
public BufferedImage getTileSetImage (String path, Colorization[] zations)
{
BufferedImage image = _cache.get(path);
if (image == null) {
try {
image = loadImage(path); // depends on control dependency: [try], data = [none]
_cach... |
public class class_name {
private void addAnchor(DeprecatedAPIListBuilder builder, DeprElementKind kind, Content htmlTree) {
if (builder.hasDocumentation(kind)) {
htmlTree.addContent(getMarkerAnchor(getAnchorName(kind)));
}
} } | public class class_name {
private void addAnchor(DeprecatedAPIListBuilder builder, DeprElementKind kind, Content htmlTree) {
if (builder.hasDocumentation(kind)) {
htmlTree.addContent(getMarkerAnchor(getAnchorName(kind))); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public TopologyInfo getTopologyInfo(String topologyId) throws TException {
long start = System.nanoTime();
StormClusterState stormClusterState = data.getStormClusterState();
try {
// get topology's StormBase
StormBase base = storm... | public class class_name {
@Override
public TopologyInfo getTopologyInfo(String topologyId) throws TException {
long start = System.nanoTime();
StormClusterState stormClusterState = data.getStormClusterState();
try {
// get topology's StormBase
StormBase base = storm... |
public class class_name {
public void notifyAfterEvaluation(String expr) {
if (getEvaluationListeners() == null)
return;
for (EvaluationListener listener: getEvaluationListeners()) {
listener.afterEvaluation(this, expr);
}
} } | public class class_name {
public void notifyAfterEvaluation(String expr) {
if (getEvaluationListeners() == null)
return;
for (EvaluationListener listener: getEvaluationListeners()) {
listener.afterEvaluation(this, expr); // depends on control dependency: [for], data = [listener]... |
public class class_name {
public List<UserPermission> retrievePermissions(User user) {
if (domain == null) {
return new ArrayList<UserPermission>();
}
Criteria criteria = this.dao.newCriteria(UserPermission.class).add(Restrictions.eq("user", user))
.add(Restrictions.eq("company", domain.getCompany())).add... | public class class_name {
public List<UserPermission> retrievePermissions(User user) {
if (domain == null) {
return new ArrayList<UserPermission>(); // depends on control dependency: [if], data = [none]
}
Criteria criteria = this.dao.newCriteria(UserPermission.class).add(Restrictions.eq("user", user))
.ad... |
public class class_name {
Item newInvokeDynamicItem(final String name, final String desc,
final Handle bsm, final Object... bsmArgs) {
// cache for performance
ByteVector bootstrapMethods = this.bootstrapMethods;
if (bootstrapMethods == null) {
bootstrapMethods = this.bo... | public class class_name {
Item newInvokeDynamicItem(final String name, final String desc,
final Handle bsm, final Object... bsmArgs) {
// cache for performance
ByteVector bootstrapMethods = this.bootstrapMethods;
if (bootstrapMethods == null) {
bootstrapMethods = this.bo... |
public class class_name {
public static Frame create(String[] headers, double[][] rows) {
Futures fs = new Futures();
Vec[] vecs = new Vec[rows[0].length];
Key keys[] = new Vec.VectorGroup().addVecs(vecs.length);
for( int c = 0; c < vecs.length; c++ ) {
AppendableVec vec = new AppendableVec(keys[... | public class class_name {
public static Frame create(String[] headers, double[][] rows) {
Futures fs = new Futures();
Vec[] vecs = new Vec[rows[0].length];
Key keys[] = new Vec.VectorGroup().addVecs(vecs.length);
for( int c = 0; c < vecs.length; c++ ) {
AppendableVec vec = new AppendableVec(keys[... |
public class class_name {
private static <T extends Annotation> void insertAnnotationValues(Annotation annotation,
Class<T> annotationClass, ArrayList<T> unfoldedAnnotations) {
// annotation is a complex annotation which has elements of instance annotationClass
// (whose static type is T).
//
// ... | public class class_name {
private static <T extends Annotation> void insertAnnotationValues(Annotation annotation,
Class<T> annotationClass, ArrayList<T> unfoldedAnnotations) {
// annotation is a complex annotation which has elements of instance annotationClass
// (whose static type is T).
//
// ... |
public class class_name {
public static String getRelativePath(final File baseDir, final File dir) {
checkNotNull("baseDir", baseDir);
checkNotNull("dir", dir);
final String base = getCanonicalPath(baseDir);
final String path = getCanonicalPath(dir);
if (!path.startsWith(... | public class class_name {
public static String getRelativePath(final File baseDir, final File dir) {
checkNotNull("baseDir", baseDir);
checkNotNull("dir", dir);
final String base = getCanonicalPath(baseDir);
final String path = getCanonicalPath(dir);
if (!path.startsWith(... |
public class class_name {
public static boolean getBooleanProperty(@Nonnull LogManager manager, @Nullable String name, boolean defaultValue) {
if (name == null) {
return defaultValue;
}
String val = manager.getProperty(name);
if (val == null) {
return defaultValu... | public class class_name {
public static boolean getBooleanProperty(@Nonnull LogManager manager, @Nullable String name, boolean defaultValue) {
if (name == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
String val = manager.getProperty(name);
... |
public class class_name {
@JsIgnore
public static void initWithoutVueLib() {
if (!isVueLibInjected()) {
throw new RuntimeException(
"Couldn't find Vue.js on init. Either include it Vue.js in your index.html or call VueGWT.init() instead of initWithoutVueLib.");
}
// Register custom obser... | public class class_name {
@JsIgnore
public static void initWithoutVueLib() {
if (!isVueLibInjected()) {
throw new RuntimeException(
"Couldn't find Vue.js on init. Either include it Vue.js in your index.html or call VueGWT.init() instead of initWithoutVueLib.");
}
// Register custom obser... |
public class class_name {
public void removeRemedyIndex(RemedyIndexEventData data) {
String path = StagePathUtils.getRemedyRoot(data.getPipelineId());
try {
zookeeper.delete(path + "/" + RemedyIndexEventData.formatNodeName(data));
} catch (ZkNoNodeException e) {
// ignor... | public class class_name {
public void removeRemedyIndex(RemedyIndexEventData data) {
String path = StagePathUtils.getRemedyRoot(data.getPipelineId());
try {
zookeeper.delete(path + "/" + RemedyIndexEventData.formatNodeName(data)); // depends on control dependency: [try], data = [none]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.