code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private Set<String> filterByExistingColumns(String namespace, String... columnsToCheck) {
// Collect existing columns here.
Set<String> columnsForTable = new HashSet<>();
// Check table metadata for presence of columns.
Connection connection = null;
try... | public class class_name {
private Set<String> filterByExistingColumns(String namespace, String... columnsToCheck) {
// Collect existing columns here.
Set<String> columnsForTable = new HashSet<>();
// Check table metadata for presence of columns.
Connection connection = null;
try... |
public class class_name {
public void startup(boolean forceStartup) throws GreenPepperServerException {
log.info("Starting Plugin");
if (!isPluginEnabled)
return;
final GreenPepperServerConfiguration configuration = getConfiguration();
if ((configuration.isSetupComplete() ... | public class class_name {
public void startup(boolean forceStartup) throws GreenPepperServerException {
log.info("Starting Plugin");
if (!isPluginEnabled)
return;
final GreenPepperServerConfiguration configuration = getConfiguration();
if ((configuration.isSetupComplete() ... |
public class class_name {
public String getFullyQualifiedNameForPropertyName(String propertyName) {
if (!propertyNameToFullyQualifiedName.containsKey(propertyName)) {
return propertyName;
}
return propertyNameToFullyQualifiedName.get(propertyName);
} } | public class class_name {
public String getFullyQualifiedNameForPropertyName(String propertyName) {
if (!propertyNameToFullyQualifiedName.containsKey(propertyName)) {
return propertyName; // depends on control dependency: [if], data = [none]
}
return propertyNameToFullyQualifiedName.get(propertyName... |
public class class_name {
private boolean hasNextLazy() {
try {
while (true) {
switch (this.queryState) {
case REGULAR:
if (this.elements != null) {
return true;
} else {
... | public class class_name {
private boolean hasNextLazy() {
try {
while (true) {
switch (this.queryState) {
case REGULAR:
if (this.elements != null) {
return true; // depends on control dependency: [if], data = [n... |
public class class_name {
public void cacheDescriptorValue(IAtom atom, IAtomContainer container, IDescriptorResult value) {
if (cachedDescriptorValues == null) {
cachedDescriptorValues = new HashMap();
cachedDescriptorValues.put(PREVIOUS_ATOMCONTAINER, container);
} else if (cac... | public class class_name {
public void cacheDescriptorValue(IAtom atom, IAtomContainer container, IDescriptorResult value) {
if (cachedDescriptorValues == null) {
cachedDescriptorValues = new HashMap(); // depends on control dependency: [if], data = [none]
cachedDescriptorValues.put(PREV... |
public class class_name {
@Override
protected boolean initiateClient()
{
for (String host : hosts)
{
if (host == null)
{
LOGGER.error("Host Name should not be null.");
throw new IllegalArgumentException("Host Name should not be null.");
... | public class class_name {
@Override
protected boolean initiateClient()
{
for (String host : hosts)
{
if (host == null)
{
LOGGER.error("Host Name should not be null."); // depends on control dependency: [if], data = [none]
throw new Illegal... |
public class class_name {
public static File createTempFile(String prefix, String suffix) {
String p = System.getProperty(ND4JSystemProperties.ND4J_TEMP_DIR_PROPERTY);
try {
if (p == null || p.isEmpty()) {
return File.createTempFile(prefix, suffix);
} else {
... | public class class_name {
public static File createTempFile(String prefix, String suffix) {
String p = System.getProperty(ND4JSystemProperties.ND4J_TEMP_DIR_PROPERTY);
try {
if (p == null || p.isEmpty()) {
return File.createTempFile(prefix, suffix); // depends on control dep... |
public class class_name {
private static Bundle _loadBundle(BundleContext context, String path, InputStream is, boolean closeStream) throws BundleException {
log(Log.LEVEL_INFO, "add bundle:" + path);
try {
// we make this very simply so an old loader that is calling this still works
return context.instal... | public class class_name {
private static Bundle _loadBundle(BundleContext context, String path, InputStream is, boolean closeStream) throws BundleException {
log(Log.LEVEL_INFO, "add bundle:" + path);
try {
// we make this very simply so an old loader that is calling this still works
return context.instal... |
public class class_name {
private void withHashCode() {
JMethod hashCode = this.pojo.method(JMod.PUBLIC, int.class, "hashCode");
Class<?> hashCodeBuilderClass = org.apache.commons.lang3.builder.HashCodeBuilder.class;
if (!Config.getPojoConfig().isUseCommonsLang3()) {
hashCodeBuilderClass = org.apache.commons... | public class class_name {
private void withHashCode() {
JMethod hashCode = this.pojo.method(JMod.PUBLIC, int.class, "hashCode");
Class<?> hashCodeBuilderClass = org.apache.commons.lang3.builder.HashCodeBuilder.class;
if (!Config.getPojoConfig().isUseCommonsLang3()) {
hashCodeBuilderClass = org.apache.commons... |
public class class_name {
public static String extension(String file) {
if (StringUtils.isNullOrBlank(file)) {
return StringUtils.EMPTY;
}
file = StringUtils.trim(file);
int index = indexOfFileExtension(file);
if (index == -1) {
return StringUtils.EMPTY;
}
re... | public class class_name {
public static String extension(String file) {
if (StringUtils.isNullOrBlank(file)) {
return StringUtils.EMPTY; // depends on control dependency: [if], data = [none]
}
file = StringUtils.trim(file);
int index = indexOfFileExtension(file);
if (index == -1)... |
public class class_name {
public Map<String, String> decode(byte[] bytes) throws DeserializationException {
Map<String, String> map = new HashMap<String, String>();
if (bytes == null || bytes.length == 0) {
return map;
}
UnsafeByteArrayInputStream in = new UnsafeByteArrayIn... | public class class_name {
public Map<String, String> decode(byte[] bytes) throws DeserializationException {
Map<String, String> map = new HashMap<String, String>();
if (bytes == null || bytes.length == 0) {
return map;
}
UnsafeByteArrayInputStream in = new UnsafeByteArrayIn... |
public class class_name {
private int countChar(String string, char c) {
int count = 0;
final int max = string.length();
for (int i = 0; i < max; i++) {
if (c == string.charAt(i)) {
count++;
}
}
return count;
} } | public class class_name {
private int countChar(String string, char c) {
int count = 0;
final int max = string.length();
for (int i = 0; i < max; i++) {
if (c == string.charAt(i)) {
count++; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override // DataNodeMXBean
public String getNamenodeAddresses() {
final Map<String, Integer> info = new HashMap<String, Integer>();
for (NamespaceService ns : namespaceManager.getAllNamenodeThreads()) {
if (ns != null && ns.initialized()) {
info.put(ns.getNNSocketAddr... | public class class_name {
@Override // DataNodeMXBean
public String getNamenodeAddresses() {
final Map<String, Integer> info = new HashMap<String, Integer>();
for (NamespaceService ns : namespaceManager.getAllNamenodeThreads()) {
if (ns != null && ns.initialized()) {
info.put(ns.getNNSocketAddr... |
public class class_name {
protected Long getProcessDefinedPriority(ProcessDefinitionImpl processDefinition, String propertyKey, ExecutionEntity execution, String errorMsgHead) {
if (processDefinition != null) {
ParameterValueProvider priorityProvider = (ParameterValueProvider) processDefinition.getProperty(p... | public class class_name {
protected Long getProcessDefinedPriority(ProcessDefinitionImpl processDefinition, String propertyKey, ExecutionEntity execution, String errorMsgHead) {
if (processDefinition != null) {
ParameterValueProvider priorityProvider = (ParameterValueProvider) processDefinition.getProperty(p... |
public class class_name {
public void startup(String container, String deployPath, String contextPath) {
StandardLogger logger = null;
try {
long before = System.currentTimeMillis();
System.out.println("MDW initialization...");
System.out.println(" deployPath: " +... | public class class_name {
public void startup(String container, String deployPath, String contextPath) {
StandardLogger logger = null;
try {
long before = System.currentTimeMillis();
System.out.println("MDW initialization..."); // depends on control dependency: [try], data = [... |
public class class_name {
private void measureComponents() {
// TODO This would be a good place to check that all settings have sensible values or throw
// illegal state exception.
// TODO Put this somewhere so it only gets created once.
BufferedImage chartImage = new BufferedImage(1, 1, BufferedImage... | public class class_name {
private void measureComponents() {
// TODO This would be a good place to check that all settings have sensible values or throw
// illegal state exception.
// TODO Put this somewhere so it only gets created once.
BufferedImage chartImage = new BufferedImage(1, 1, BufferedImage... |
public class class_name {
public HalResource setLink(String relation, Link link) {
if (link == null) {
return this;
}
return addResources(HalResourceType.LINKS, relation, false, new Link[] {
link
});
} } | public class class_name {
public HalResource setLink(String relation, Link link) {
if (link == null) {
return this; // depends on control dependency: [if], data = [none]
}
return addResources(HalResourceType.LINKS, relation, false, new Link[] {
link
});
} } |
public class class_name {
static public File computeBinDir(File installDir) {
if( null != installDir ) {
// Command-line package
File binDir = new File(installDir, "bin");
if( binDir.exists() && binDir.isDirectory() ) {
return binDir;
}
// Development environment
File nunaliit2Dir = compute... | public class class_name {
static public File computeBinDir(File installDir) {
if( null != installDir ) {
// Command-line package
File binDir = new File(installDir, "bin");
if( binDir.exists() && binDir.isDirectory() ) {
return binDir; // depends on control dependency: [if], data = [none]
}
// ... |
public class class_name {
@SuppressWarnings("unchecked")
protected StorableProperty<S>[] gatherAllDataProperties() {
Map<String, ? extends StorableProperty<S>> map =
StorableIntrospector.examine(mType).getDataProperties();
List<StorableProperty<S>> list = new ArrayList<StorablePro... | public class class_name {
@SuppressWarnings("unchecked")
protected StorableProperty<S>[] gatherAllDataProperties() {
Map<String, ? extends StorableProperty<S>> map =
StorableIntrospector.examine(mType).getDataProperties();
List<StorableProperty<S>> list = new ArrayList<StorablePro... |
public class class_name {
private void constructContentMapper() {
// Initialize the request resolver
String contentMapperClassName = getParam(INIT_CONTENT_MAPPER_CLASS_NAME);
Logger.getLogger(getClass()).debug("WebDAV Servlet content mapper class name = " + contentMapperClassName);
if (... | public class class_name {
private void constructContentMapper() {
// Initialize the request resolver
String contentMapperClassName = getParam(INIT_CONTENT_MAPPER_CLASS_NAME);
Logger.getLogger(getClass()).debug("WebDAV Servlet content mapper class name = " + contentMapperClassName);
if (... |
public class class_name {
public static String hostNameOfDeployment(final WarMetaData metaData, final String defaultHost) {
Collection<String> hostNames = null;
if (metaData.getMergedJBossWebMetaData() != null) {
hostNames = metaData.getMergedJBossWebMetaData().getVirtualHosts();
}
if (hostNames == null || ... | public class class_name {
public static String hostNameOfDeployment(final WarMetaData metaData, final String defaultHost) {
Collection<String> hostNames = null;
if (metaData.getMergedJBossWebMetaData() != null) {
hostNames = metaData.getMergedJBossWebMetaData().getVirtualHosts(); // depends on control dependenc... |
public class class_name {
@Override
protected void onSharedObject(RTMPConnection conn, Channel channel, Header source, SharedObjectMessage object) {
log.trace("onSharedObject");
ClientSharedObject so = sharedObjects.get(object.getName());
if (so != null) {
if (so.isPersiste... | public class class_name {
@Override
protected void onSharedObject(RTMPConnection conn, Channel channel, Header source, SharedObjectMessage object) {
log.trace("onSharedObject");
ClientSharedObject so = sharedObjects.get(object.getName());
if (so != null) {
if (so.isPersiste... |
public class class_name {
protected void listFilesRecursive(final List<Class> classes,
final File base, final ClassLoader cld, final String pckgname)
{
base.listFiles(new FileFilter()
{
public boolean accept(File file)
{
if (file.isDirectory())
... | public class class_name {
protected void listFilesRecursive(final List<Class> classes,
final File base, final ClassLoader cld, final String pckgname)
{
base.listFiles(new FileFilter()
{
public boolean accept(File file)
{
if (file.isDirectory())
... |
public class class_name {
private void cacheLinkedObject(String owningObjID,
String linkFieldName,
DBObject linkedObject) {
// Find or create map for the owning object.
Map<String, Map<String, DBObject>> objMap = m_linkedObjectMa... | public class class_name {
private void cacheLinkedObject(String owningObjID,
String linkFieldName,
DBObject linkedObject) {
// Find or create map for the owning object.
Map<String, Map<String, DBObject>> objMap = m_linkedObjectMa... |
public class class_name {
public static Cookie findCookie(HttpServletRequest request, String name) {
if (request != null) {
Cookie[] cookies = request.getCookies();
if (cookies != null && cookies.length > 0) {
for (Cookie cookie : cookies) {
if (cooki... | public class class_name {
public static Cookie findCookie(HttpServletRequest request, String name) {
if (request != null) {
Cookie[] cookies = request.getCookies();
if (cookies != null && cookies.length > 0) {
for (Cookie cookie : cookies) {
if (cooki... |
public class class_name {
public static @NotNull String externalizeUrlWithoutMapping(@NotNull String url, @Nullable SlingHttpServletRequest request) {
// apply externalization only path part
String path = url;
// split off query string or fragment that may be appended to the URL
String urlRemainder =... | public class class_name {
public static @NotNull String externalizeUrlWithoutMapping(@NotNull String url, @Nullable SlingHttpServletRequest request) {
// apply externalization only path part
String path = url;
// split off query string or fragment that may be appended to the URL
String urlRemainder =... |
public class class_name {
public boolean addDynamicRequire(String require) {
if (!dynamicRequires.contains(require)) {
dynamicRequires.add(require);
return true;
}
return false;
} } | public class class_name {
public boolean addDynamicRequire(String require) {
if (!dynamicRequires.contains(require)) {
dynamicRequires.add(require); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
protected void loadImage(Image image) {
MediaTracker mTracker = getTracker();
synchronized(mTracker) {
int id = getNextID();
mTracker.addImage(image, id);
try {
mTracker.waitForID(id, 0);
} catch (InterruptedException e)... | public class class_name {
protected void loadImage(Image image) {
MediaTracker mTracker = getTracker();
synchronized(mTracker) {
int id = getNextID();
mTracker.addImage(image, id);
try {
mTracker.waitForID(id, 0); // depends on control dependency: [try],... |
public class class_name {
@Override
public boolean isTimeIncluded (final long timeStamp)
{
// Test the base calendar first. Only if the base calendar not already
// excludes the time/date, continue evaluating this calendar instance.
if (super.isTimeIncluded (timeStamp) == false)
{
return fals... | public class class_name {
@Override
public boolean isTimeIncluded (final long timeStamp)
{
// Test the base calendar first. Only if the base calendar not already
// excludes the time/date, continue evaluating this calendar instance.
if (super.isTimeIncluded (timeStamp) == false)
{
return fals... |
public class class_name {
public void doEdit(@FormGroup("systemParameterDetailInfo") Group systemParameterDetailInfo, Navigator nav)
throws Exception {
SystemParameter systemParameter = new SystemPara... | public class class_name {
public void doEdit(@FormGroup("systemParameterDetailInfo") Group systemParameterDetailInfo, Navigator nav)
throws Exception {
SystemParameter systemParameter = new SystemPara... |
public class class_name {
private void releaseJobs(String nodePath, MasterSlaveNodeData.Data nodeData) {
if (ListHelper.isEmpty(nodeData.getJobPaths())) {
return;
}
for (String path : nodeData.getJobPaths()) {
MasterSlaveJobData.Data data = masterSlaveApiFactory.jobApi()... | public class class_name {
private void releaseJobs(String nodePath, MasterSlaveNodeData.Data nodeData) {
if (ListHelper.isEmpty(nodeData.getJobPaths())) {
return; // depends on control dependency: [if], data = [none]
}
for (String path : nodeData.getJobPaths()) {
MasterS... |
public class class_name {
public byte[] getHash() {
// digester.digest() resets the digester, so it cannot be called multiple times,
// therefore we cache the hash
if(hash == null) {
hash = hasher.getDigester().digest();
if(hasher.getSalt() != null) {
hasher.getDigester().update(hasher.getSalt());
... | public class class_name {
public byte[] getHash() {
// digester.digest() resets the digester, so it cannot be called multiple times,
// therefore we cache the hash
if(hash == null) {
hash = hasher.getDigester().digest(); // depends on control dependency: [if], data = [none]
if(hasher.getSalt() != null)... |
public class class_name {
public static String getFirstUpperName(String name) {
if (StringUtils.isBlank(name)) {
return null;
}
String firstChar = name.substring(0, 1).toUpperCase();
return firstChar + name.substring(1);
} } | public class class_name {
public static String getFirstUpperName(String name) {
if (StringUtils.isBlank(name)) {
return null; // depends on control dependency: [if], data = [none]
}
String firstChar = name.substring(0, 1).toUpperCase();
return firstChar + name.substring(1);
... |
public class class_name {
public String date (String format, Object arg)
{
Date when = massageDate(arg);
if (when == null) {
return format;
}
SimpleDateFormat fmt = new SimpleDateFormat(format, getLocale());
return fmt.format(when);
} } | public class class_name {
public String date (String format, Object arg)
{
Date when = massageDate(arg);
if (when == null) {
return format; // depends on control dependency: [if], data = [none]
}
SimpleDateFormat fmt = new SimpleDateFormat(format, getLocale());
r... |
public class class_name {
public EClass getMGO() {
if (mgoEClass == null) {
mgoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(296);
}
return mgoEClass;
} } | public class class_name {
public EClass getMGO() {
if (mgoEClass == null) {
mgoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(296); // depends on control dependency: [if], data = [none]
}
return mgoEClass;
} } |
public class class_name {
@Trivial
@Override
public String getLocalName() {
String addr = this.connection.getLocalHostName(true);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getLocalName: " + addr);
}
return addr;
} } | public class class_name {
@Trivial
@Override
public String getLocalName() {
String addr = this.connection.getLocalHostName(true);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getLocalName: " + addr); // depends on control dependency: [if], data = ... |
public class class_name {
private HtmlToken collapseSubsequent(HtmlToken token) {
HtmlToken collapsed = token;
for (HtmlToken next;
(next= peekToken(0)) != null && next.type == token.type;
readToken()) {
collapsed = join(collapsed, next);
}
return collapsed;
} } | public class class_name {
private HtmlToken collapseSubsequent(HtmlToken token) {
HtmlToken collapsed = token;
for (HtmlToken next;
(next= peekToken(0)) != null && next.type == token.type;
readToken()) {
collapsed = join(collapsed, next); // depends on control dependency: [for], data = ... |
public class class_name {
public EClass getIfcFlowMeterType() {
if (ifcFlowMeterTypeEClass == null) {
ifcFlowMeterTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(245);
}
return ifcFlowMeterTypeEClass;
} } | public class class_name {
public EClass getIfcFlowMeterType() {
if (ifcFlowMeterTypeEClass == null) {
ifcFlowMeterTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(245);
// depends on control dependency: [if], data = [none]
}
return ifcFlow... |
public class class_name {
public void marshall(Event event, ProtocolMarshaller protocolMarshaller) {
if (event == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(event.getAppPackageName(), APPPACKAGE... | public class class_name {
public void marshall(Event event, ProtocolMarshaller protocolMarshaller) {
if (event == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(event.getAppPackageName(), APPPACKAGE... |
public class class_name {
public void addWorkPanel(AbstractPanel panel) {
if (workPanelList == null) {
workPanelList = createList();
}
workPanelList.add(panel);
} } | public class class_name {
public void addWorkPanel(AbstractPanel panel) {
if (workPanelList == null) {
workPanelList = createList();
// depends on control dependency: [if], data = [none]
}
workPanelList.add(panel);
} } |
public class class_name {
public ClusterListener createClusterListener(boolean localOnly) {
if (localOnly) return new NoClusterListener();
HazelcastInstance hazelcast = getHazelcastInstance(vertx);
if (hazelcast != null) {
return new HazelcastClusterListener(hazelcast, vertx);
} else {
retu... | public class class_name {
public ClusterListener createClusterListener(boolean localOnly) {
if (localOnly) return new NoClusterListener();
HazelcastInstance hazelcast = getHazelcastInstance(vertx);
if (hazelcast != null) {
return new HazelcastClusterListener(hazelcast, vertx); // depends on control d... |
public class class_name {
public static EncodingUtils getEncodingUtils() {
HttpDispatcher f = instance.get().get();
EncodingUtils svc = null;
if (f != null) {
svc = f.encodingSvc;
}
if (svc == null)
svc = new EncodingUtilsImpl();
return svc;
... | public class class_name {
public static EncodingUtils getEncodingUtils() {
HttpDispatcher f = instance.get().get();
EncodingUtils svc = null;
if (f != null) {
svc = f.encodingSvc; // depends on control dependency: [if], data = [none]
}
if (svc == null)
s... |
public class class_name {
private static String decodeFormFields(final String content, final Charset charset) {
if (content == null) {
return null;
}
return urlDecode(content, (charset != null) ? charset : Charsets.UTF_8, true);
} } | public class class_name {
private static String decodeFormFields(final String content, final Charset charset) {
if (content == null) {
return null;
// depends on control dependency: [if], data = [none]
}
return urlDecode(content, (charset != null) ? charset : Charsets.UTF_8, t... |
public class class_name {
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbolInType(ResolvedTypeDeclaration typeDeclaration, String name) {
if (typeDeclaration instanceof JavaParserClassDeclaration) {
Context ctx = ((JavaParserClassDeclaration) typeDeclaration).getContext();
... | public class class_name {
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbolInType(ResolvedTypeDeclaration typeDeclaration, String name) {
if (typeDeclaration instanceof JavaParserClassDeclaration) {
Context ctx = ((JavaParserClassDeclaration) typeDeclaration).getContext();
... |
public class class_name {
@Override
public void removeByG_U(long groupId, long userId) {
for (CommerceWishList commerceWishList : findByG_U(groupId, userId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceWishList);
}
} } | public class class_name {
@Override
public void removeByG_U(long groupId, long userId) {
for (CommerceWishList commerceWishList : findByG_U(groupId, userId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceWishList); // depends on control dependency: [for], data = [commerceWishList]
}
} } |
public class class_name {
protected void startSelecting()
{
if (GuiScreen.isShiftKeyDown())
{
if (!selectingText)
selectionCursor.from(cursor);
selectingText = true;
}
else
selectingText = false;
} } | public class class_name {
protected void startSelecting()
{
if (GuiScreen.isShiftKeyDown())
{
if (!selectingText)
selectionCursor.from(cursor);
selectingText = true; // depends on control dependency: [if], data = [none]
}
else
selectingText = false;
} } |
public class class_name {
@Override
public Extension resolve(ExtensionId extensionId) throws ResolveException
{
ResolveException lastException = null;
for (ExtensionRepository repository : this.repositories) {
try {
return repository.resolve(extensionId);
... | public class class_name {
@Override
public Extension resolve(ExtensionId extensionId) throws ResolveException
{
ResolveException lastException = null;
for (ExtensionRepository repository : this.repositories) {
try {
return repository.resolve(extensionId); // depends... |
public class class_name {
public Map<String, Object> getDebugInfo()
{
long currTime = System.currentTimeMillis();
Object notSuccessfullySyncedFor;
if (lastSuccessfulSyncTime == 0) {
notSuccessfullySyncedFor = "Never Successfully Synced";
} else {
notSuccessfullySyncedFor = (currTime - la... | public class class_name {
public Map<String, Object> getDebugInfo()
{
long currTime = System.currentTimeMillis();
Object notSuccessfullySyncedFor;
if (lastSuccessfulSyncTime == 0) {
notSuccessfullySyncedFor = "Never Successfully Synced"; // depends on control dependency: [if], data = [none]
} ... |
public class class_name {
private Description checkSubtype(ClassTree tree, VisitorState state) {
ClassSymbol sym = ASTHelpers.getSymbol(tree);
if (sym == null) {
return NO_MATCH;
}
Type superType = immutableSupertype(sym, state);
if (superType == null) {
return NO_MATCH;
}
Strin... | public class class_name {
private Description checkSubtype(ClassTree tree, VisitorState state) {
ClassSymbol sym = ASTHelpers.getSymbol(tree);
if (sym == null) {
return NO_MATCH; // depends on control dependency: [if], data = [none]
}
Type superType = immutableSupertype(sym, state);
if (super... |
public class class_name {
public static Map<String, Type> getReflectiveMappingTypes(Class<? extends MailChimpObject> clazz) {
Map<String, Type> types = reflectiveMappingsTypes.get(clazz);
if (types == null) {
types = new LinkedHashMap<String, Type>();
for(Map.Entry<String, java.lang.reflect.Field> entry: g... | public class class_name {
public static Map<String, Type> getReflectiveMappingTypes(Class<? extends MailChimpObject> clazz) {
Map<String, Type> types = reflectiveMappingsTypes.get(clazz);
if (types == null) {
types = new LinkedHashMap<String, Type>(); // depends on control dependency: [if], data = [none]
f... |
public class class_name {
@Override
protected void _fit(Dataframe trainingData) {
ModelParameters modelParameters = knowledgeBase.getModelParameters();
int n = trainingData.size();
Map<List<Object>, Double> lambdas = modelParameters.getLambdas();
Set<Object> classe... | public class class_name {
@Override
protected void _fit(Dataframe trainingData) {
ModelParameters modelParameters = knowledgeBase.getModelParameters();
int n = trainingData.size();
Map<List<Object>, Double> lambdas = modelParameters.getLambdas();
Set<Object> classe... |
public class class_name {
@SuppressWarnings("unchecked")
private <T> Callback<T> getFirstCallback(BeanMessageID type) {
List<Callback<?>> callbacks = beanCallbacks.get(type);
if (callbacks == null || callbacks.isEmpty()) {
Log.w(TAG, "Got response without callback!");
return... | public class class_name {
@SuppressWarnings("unchecked")
private <T> Callback<T> getFirstCallback(BeanMessageID type) {
List<Callback<?>> callbacks = beanCallbacks.get(type);
if (callbacks == null || callbacks.isEmpty()) {
Log.w(TAG, "Got response without callback!"); // depends on cont... |
public class class_name {
public ValidationResult validateWithResult(IBaseResource theResource) {
Validate.notNull(theResource, "theResource must not be null");
applyDefaultValidators();
IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
for (IValidatorModule ... | public class class_name {
public ValidationResult validateWithResult(IBaseResource theResource) {
Validate.notNull(theResource, "theResource must not be null");
applyDefaultValidators();
IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
for (IValidatorModule ... |
public class class_name {
public static String getSLDUL(String[] soilParas) {
if (soilParas != null && soilParas.length >= 3) {
return divide(calcMoisture33Kpa(soilParas[0], soilParas[1], soilParas[2]), "100", 3);
} else {
return null;
}
} } | public class class_name {
public static String getSLDUL(String[] soilParas) {
if (soilParas != null && soilParas.length >= 3) {
return divide(calcMoisture33Kpa(soilParas[0], soilParas[1], soilParas[2]), "100", 3); // depends on control dependency: [if], data = [(soilParas]
} else {
... |
public class class_name {
private boolean hasConstantField (ClassDoc classDoc) {
VisibleMemberMap visibleMemberMapFields = new VisibleMemberMap(classDoc,
VisibleMemberMap.FIELDS, configuration);
List<?> fields = visibleMemberMapFields.getLeafClassMembers(configuration);
for (Object ... | public class class_name {
private boolean hasConstantField (ClassDoc classDoc) {
VisibleMemberMap visibleMemberMapFields = new VisibleMemberMap(classDoc,
VisibleMemberMap.FIELDS, configuration);
List<?> fields = visibleMemberMapFields.getLeafClassMembers(configuration);
for (Object ... |
public class class_name {
protected void handleInternalException(
AbortCompilation abortException,
CompilationUnitDeclaration unit) {
/* special treatment for SilentAbort: silently cancelling the compilation process */
if (abortException.isSilent) {
if (abortException.silen... | public class class_name {
protected void handleInternalException(
AbortCompilation abortException,
CompilationUnitDeclaration unit) {
/* special treatment for SilentAbort: silently cancelling the compilation process */
if (abortException.isSilent) {
if (abortException.silen... |
public class class_name {
public static int read(
final UnsafeBuffer termBuffer,
final int termOffset,
final FragmentHandler handler,
final int fragmentsLimit,
final Header header,
final ErrorHandler errorHandler,
final long currentPosition,
final Positio... | public class class_name {
public static int read(
final UnsafeBuffer termBuffer,
final int termOffset,
final FragmentHandler handler,
final int fragmentsLimit,
final Header header,
final ErrorHandler errorHandler,
final long currentPosition,
final Positio... |
public class class_name {
FormattingContext concat(FormattingContext other) {
if (isEmpty()) {
return other;
} else if (other.isEmpty()) {
return this;
} else {
curIndent = ""; // don't serialize trailing whitespace in front of the next FormattingContext.
return append(other.toStrin... | public class class_name {
FormattingContext concat(FormattingContext other) {
if (isEmpty()) {
return other; // depends on control dependency: [if], data = [none]
} else if (other.isEmpty()) {
return this; // depends on control dependency: [if], data = [none]
} else {
curIndent = ""; // d... |
public class class_name {
protected void addClassPathes(final GroovyClassLoader classLoader) {
if (classpath != null) {
for (int i = 0; i < classpath.list().length; i++) {
classLoader.addClasspath(classpath.list()[i]);
}
}
} } | public class class_name {
protected void addClassPathes(final GroovyClassLoader classLoader) {
if (classpath != null) {
for (int i = 0; i < classpath.list().length; i++) {
classLoader.addClasspath(classpath.list()[i]); // depends on control dependency: [for], data = [i]
... |
public class class_name {
@Override
protected Statement withAfters(final FrameworkMethod method, final Object target, final Statement statement)
{
final Statement afters = super.withAfters(method, target, new NoopStatement());
return new Statement()
{
@Override
public void ev... | public class class_name {
@Override
protected Statement withAfters(final FrameworkMethod method, final Object target, final Statement statement)
{
final Statement afters = super.withAfters(method, target, new NoopStatement());
return new Statement()
{
@Override
public void ev... |
public class class_name {
@Override
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount)
throws IOException {
LOG.trace("incrementColumnValue(byte[], byte[], byte[], long)");
try (
Scope scope = TRACER.spanBuilder("BigtableTable.incrementColumnValue").start... | public class class_name {
@Override
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount)
throws IOException {
LOG.trace("incrementColumnValue(byte[], byte[], byte[], long)");
try (
Scope scope = TRACER.spanBuilder("BigtableTable.incrementColumnValue").start... |
public class class_name {
public static List<Nucleotide> getNucleotideList(PolymerNotation polymer)
throws RNAUtilsException, HELM2HandledException, ChemistryException {
checkRNA(polymer);
List<Nucleotide> nucleotides = new ArrayList<Nucleotide>();
/* check for HELM2Elements */
List<MonomerNotation> mo... | public class class_name {
public static List<Nucleotide> getNucleotideList(PolymerNotation polymer)
throws RNAUtilsException, HELM2HandledException, ChemistryException {
checkRNA(polymer);
List<Nucleotide> nucleotides = new ArrayList<Nucleotide>();
/* check for HELM2Elements */
List<MonomerNotation> mo... |
public class class_name {
private static void setContentTypeHeader(HttpResponse response, File file) {
String contentType = StringKit.mimeType(file.getName());
if (null == contentType) {
contentType = URLConnection.guessContentTypeFromName(file.getName());
}
response.headers... | public class class_name {
private static void setContentTypeHeader(HttpResponse response, File file) {
String contentType = StringKit.mimeType(file.getName());
if (null == contentType) {
contentType = URLConnection.guessContentTypeFromName(file.getName()); // depends on control dependency: ... |
public class class_name {
private static int parseUGO(CharSequenceScanner parse) {
int ugo = 0;
while (true) {
char c = parse.forceNext();
if (c == 'u') {
ugo = ugo | MASK_USER;
} else if (c == 'g') {
ugo = ugo | MASK_GROUP;
} else if (c == 'o') {
ugo = ugo | MA... | public class class_name {
private static int parseUGO(CharSequenceScanner parse) {
int ugo = 0;
while (true) {
char c = parse.forceNext();
if (c == 'u') {
ugo = ugo | MASK_USER; // depends on control dependency: [if], data = [none]
} else if (c == 'g') {
ugo = ugo | MASK_GROU... |
public class class_name {
public static RectL getBounds(final RectL pIn,
final long pCenterX, final long pCenterY, final double pDegrees,
final RectL pReuse) {
final RectL out = pReuse != null ? pReuse : new RectL();
if (pDegrees == 0)... | public class class_name {
public static RectL getBounds(final RectL pIn,
final long pCenterX, final long pCenterY, final double pDegrees,
final RectL pReuse) {
final RectL out = pReuse != null ? pReuse : new RectL();
if (pDegrees == 0)... |
public class class_name {
@Deprecated
public static Matrix[] svd(Matrix m, Algorithm algorithm, int dimensions) {
// Determine which algorithm is the fastest in order to decide which
// format the matrix file should be written
if (algorithm.equals(Algorithm.ANY))
algorithm = get... | public class class_name {
@Deprecated
public static Matrix[] svd(Matrix m, Algorithm algorithm, int dimensions) {
// Determine which algorithm is the fastest in order to decide which
// format the matrix file should be written
if (algorithm.equals(Algorithm.ANY))
algorithm = get... |
public class class_name {
private void appendSourceFilesFromSchemaResolver(ParseResult result)
{
for (Map.Entry<String, DataSchemaLocation> entry : _schemaResolver.nameToDataSchemaLocations().entrySet())
{
final File sourceFile = entry.getValue().getSourceFile();
if (sourceFile != null)
{
... | public class class_name {
private void appendSourceFilesFromSchemaResolver(ParseResult result)
{
for (Map.Entry<String, DataSchemaLocation> entry : _schemaResolver.nameToDataSchemaLocations().entrySet())
{
final File sourceFile = entry.getValue().getSourceFile();
if (sourceFile != null)
{
... |
public class class_name {
public ReadOnlyStyledDocument<PS, SEG, S> mapParagraphs(UnaryOperator<Paragraph<PS, SEG, S>> mapper) {
int n = tree.getLeafCount();
List<Paragraph<PS, SEG, S>> pars = new ArrayList<>(n);
for(int i = 0; i < n; ++i) {
pars.add(mapper.apply(tree.getLeaf(i)));
... | public class class_name {
public ReadOnlyStyledDocument<PS, SEG, S> mapParagraphs(UnaryOperator<Paragraph<PS, SEG, S>> mapper) {
int n = tree.getLeafCount();
List<Paragraph<PS, SEG, S>> pars = new ArrayList<>(n);
for(int i = 0; i < n; ++i) {
pars.add(mapper.apply(tree.getLeaf(i))); ... |
public class class_name {
public String encrypt(final String transform, final byte[] bytes) {
String encodedJSON = null;
if (secretKey == null)
throw new OSecurityException("OSymmetricKey.encrypt() SecretKey is null");
if (transform == null)
throw new OSecurityException("OSymmetricKey.encrypt(... | public class class_name {
public String encrypt(final String transform, final byte[] bytes) {
String encodedJSON = null;
if (secretKey == null)
throw new OSecurityException("OSymmetricKey.encrypt() SecretKey is null");
if (transform == null)
throw new OSecurityException("OSymmetricKey.encrypt(... |
public class class_name {
public static final RuntimeException addSuppressed(RuntimeException original, Throwable suppressed) {
if (original == suppressed) {
return original;
}
if (original == REJECTED_EXECUTION || original == NOT_TIME_CAPABLE_REJECTED_EXECUTION) {
RejectedExecutionException ree = new Reje... | public class class_name {
public static final RuntimeException addSuppressed(RuntimeException original, Throwable suppressed) {
if (original == suppressed) {
return original; // depends on control dependency: [if], data = [none]
}
if (original == REJECTED_EXECUTION || original == NOT_TIME_CAPABLE_REJECTED_EXE... |
public class class_name {
@Override
protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException {
for (ClassLoader loader : classLoaderRegistration) {
try {
return resolveClass(classDesc, loader);
} catch (ClassNotFoundExcepti... | public class class_name {
@Override
protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException {
for (ClassLoader loader : classLoaderRegistration) {
try {
return resolveClass(classDesc, loader); // depends on control dependency: [try], ... |
public class class_name {
protected void makeCoordinateSystemsMaximal(NetcdfDataset ncDataset) {
boolean requireCompleteCoordSys = !ncDataset.getEnhanceMode().contains(NetcdfDataset.Enhance.IncompleteCoordSystems);
for (VarProcess vp : varList) {
VariableEnhanced ve = (VariableEnhanced) vp.v;
... | public class class_name {
protected void makeCoordinateSystemsMaximal(NetcdfDataset ncDataset) {
boolean requireCompleteCoordSys = !ncDataset.getEnhanceMode().contains(NetcdfDataset.Enhance.IncompleteCoordSystems);
for (VarProcess vp : varList) {
VariableEnhanced ve = (VariableEnhanced) vp.v;
... |
public class class_name {
public ThinPhysicalDatabaseParent getPDatabaseParent(Map<String,Object> properties, boolean bCreateIfNew)
{
if (m_PhysicalDatabaseParent == null)
if (bCreateIfNew)
{
Map<String,Object> map = new Hashtable<String,Object>();
if (properties... | public class class_name {
public ThinPhysicalDatabaseParent getPDatabaseParent(Map<String,Object> properties, boolean bCreateIfNew)
{
if (m_PhysicalDatabaseParent == null)
if (bCreateIfNew)
{
Map<String,Object> map = new Hashtable<String,Object>();
if (properties... |
public class class_name {
private Queue<List<Data>> createBatchChunks(List<Data> keys) {
Queue<List<Data>> chunks = new LinkedList<>();
int loadBatchSize = getLoadBatchSize();
int page = 0;
List<Data> tmpKeys;
while ((tmpKeys = getBatchChunk(keys, loadBatchSize, page++)) != null... | public class class_name {
private Queue<List<Data>> createBatchChunks(List<Data> keys) {
Queue<List<Data>> chunks = new LinkedList<>();
int loadBatchSize = getLoadBatchSize();
int page = 0;
List<Data> tmpKeys;
while ((tmpKeys = getBatchChunk(keys, loadBatchSize, page++)) != null... |
public class class_name {
public static String decode(String path, String encoding) {
try {
return URLDecoder.decode(path, encoding);
} catch (UnsupportedEncodingException e) {
throw MESSAGES.cannotDecode(path,encoding,e);
}
} } | public class class_name {
public static String decode(String path, String encoding) {
try {
return URLDecoder.decode(path, encoding); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
throw MESSAGES.cannotDecode(path,encoding,e);
... |
public class class_name {
protected TableConfig getTimeSeriesProfileConfig(NetcdfDataset ds, EncodingInfo info, Formatter errlog) throws IOException {
if (!identifyEncodingTimeSeriesProfile(ds, info, CF.FeatureType.timeSeriesProfile, errlog)) return null;
VariableDS time = CoordSysEvaluator.findCoordByType... | public class class_name {
protected TableConfig getTimeSeriesProfileConfig(NetcdfDataset ds, EncodingInfo info, Formatter errlog) throws IOException {
if (!identifyEncodingTimeSeriesProfile(ds, info, CF.FeatureType.timeSeriesProfile, errlog)) return null;
VariableDS time = CoordSysEvaluator.findCoordByType... |
public class class_name {
public static void beginSfsbCreation() {
SFSBCallStackThreadData data = CURRENT.get();
int no = data.creationBeanNestingLevel;
if (no == 0) {
data.creationTimeXPCRegistration = new HashMap<String, ExtendedEntityManager>();
// create new tracking... | public class class_name {
public static void beginSfsbCreation() {
SFSBCallStackThreadData data = CURRENT.get();
int no = data.creationBeanNestingLevel;
if (no == 0) {
data.creationTimeXPCRegistration = new HashMap<String, ExtendedEntityManager>(); // depends on control dependency: ... |
public class class_name {
public void onBindCell(int offset, int position, boolean showFromEnd) {
if (!mIsExposed && serviceManager != null) {
ExposureSupport exposureSupport = serviceManager.getService(ExposureSupport.class);
if (exposureSupport != null) {
mIsExposed = ... | public class class_name {
public void onBindCell(int offset, int position, boolean showFromEnd) {
if (!mIsExposed && serviceManager != null) {
ExposureSupport exposureSupport = serviceManager.getService(ExposureSupport.class);
if (exposureSupport != null) {
mIsExposed = ... |
public class class_name {
public CmsSite getSite(String rootPath, String fallbackSiteRoot) {
CmsSite result = getSiteForRootPath(rootPath);
if (result == null) {
result = getSiteForSiteRoot(fallbackSiteRoot);
if (result == null) {
result = getDefaultSite();
... | public class class_name {
public CmsSite getSite(String rootPath, String fallbackSiteRoot) {
CmsSite result = getSiteForRootPath(rootPath);
if (result == null) {
result = getSiteForSiteRoot(fallbackSiteRoot); // depends on control dependency: [if], data = [none]
if (result == n... |
public class class_name {
protected final int addNode(int type, int expandedTypeID,
int parentIndex, int previousSibling,
int dataOrPrefix, boolean canHaveFirstChild)
{
// Common to all nodes:
int nodeIndex = m_size++;
// Have we overflowed a DTM Identity'... | public class class_name {
protected final int addNode(int type, int expandedTypeID,
int parentIndex, int previousSibling,
int dataOrPrefix, boolean canHaveFirstChild)
{
// Common to all nodes:
int nodeIndex = m_size++;
// Have we overflowed a DTM Identity'... |
public class class_name {
public void remove(Com4jObject obj) {
ListIterator<WeakReference<Com4jObject>> itr = objects.listIterator();
while(itr.hasNext()) {
Com4jObject o = itr.next().get();
if(o == obj) { //Intentional identity compare...each Wrapper instance owns a single ref.
itr.remov... | public class class_name {
public void remove(Com4jObject obj) {
ListIterator<WeakReference<Com4jObject>> itr = objects.listIterator();
while(itr.hasNext()) {
Com4jObject o = itr.next().get();
if(o == obj) { //Intentional identity compare...each Wrapper instance owns a single ref.
itr.remov... |
public class class_name {
public void printInferredDependencies(ClassDoc c) {
if (hidden(c))
return;
Options opt = optionProvider.getOptionsFor(c);
Set<Type> types = new HashSet<Type>();
// harvest method return and parameter types
for (MethodDoc method : filterByVisibility(c.methods(false), opt.inferDepend... | public class class_name {
public void printInferredDependencies(ClassDoc c) {
if (hidden(c))
return;
Options opt = optionProvider.getOptionsFor(c);
Set<Type> types = new HashSet<Type>();
// harvest method return and parameter types
for (MethodDoc method : filterByVisibility(c.methods(false), opt.inferDepend... |
public class class_name {
public static String[] translatePathName(String path) {
path = prettifyPath(path);
if (path.indexOf('/') != 0) path = '/' + path;
int index = path.lastIndexOf('/');
// remove slash at the end
if (index == path.length() - 1) path = path.substring(0, path.length() - 1);
index = path.last... | public class class_name {
public static String[] translatePathName(String path) {
path = prettifyPath(path);
if (path.indexOf('/') != 0) path = '/' + path;
int index = path.lastIndexOf('/');
// remove slash at the end
if (index == path.length() - 1) path = path.substring(0, path.length() - 1);
index = path.last... |
public class class_name {
public void saveValue(ComponentParent recordOwner)
{
if (recordOwner != null)
{
BaseField field = this.getOwner();
String strCommand = ((ComponentParent)recordOwner).getParentScreen().popHistory(1, false);
if (m_recordOwnerCache != null)... | public class class_name {
public void saveValue(ComponentParent recordOwner)
{
if (recordOwner != null)
{
BaseField field = this.getOwner();
String strCommand = ((ComponentParent)recordOwner).getParentScreen().popHistory(1, false);
if (m_recordOwnerCache != null)... |
public class class_name {
protected void ensureAIsLowerPoint() {
CoordinateSystem3D cs = CoordinateSystem3D.getDefaultCoordinateSystem();
boolean swap = false;
if (cs.isZOnUp()) {
swap = (this.getMedial1().getZ() > this.getMedial2().getZ());
} else if (cs.isYOnUp()){
swap = (this.getMedial1().getY() > th... | public class class_name {
protected void ensureAIsLowerPoint() {
CoordinateSystem3D cs = CoordinateSystem3D.getDefaultCoordinateSystem();
boolean swap = false;
if (cs.isZOnUp()) {
swap = (this.getMedial1().getZ() > this.getMedial2().getZ()); // depends on control dependency: [if], data = [none]
} else if (c... |
public class class_name {
public static double dateTime2gps( double dateTimeMillis ) {
dateTimeMillis = dateTimeMillis / 1000;
double ipart = Math.floor(dateTimeMillis);
double fpart = dateTimeMillis % 1;
double gpsTime = ipart - 315964800;
if (isunixtimeleap(Math.ceil(dateTimeM... | public class class_name {
public static double dateTime2gps( double dateTimeMillis ) {
dateTimeMillis = dateTimeMillis / 1000;
double ipart = Math.floor(dateTimeMillis);
double fpart = dateTimeMillis % 1;
double gpsTime = ipart - 315964800;
if (isunixtimeleap(Math.ceil(dateTimeM... |
public class class_name {
void registerReceiver() {
if (receiver == null) {
receiver = new NetworkReceiver(new Listener() {
@Override
public void post(NetworkChangeEvent event) {
if (onNetworkChangedListener != null) {
onNe... | public class class_name {
void registerReceiver() {
if (receiver == null) {
receiver = new NetworkReceiver(new Listener() {
@Override
public void post(NetworkChangeEvent event) {
if (onNetworkChangedListener != null) {
onNe... |
public class class_name {
public void setData(byte[] data) {
// There are always two bytes of payload in the message -- the
// slave ID and the run status indicator.
if (data == null) {
m_length = 2;
m_data = new byte[0];
return;
}
if (data.... | public class class_name {
public void setData(byte[] data) {
// There are always two bytes of payload in the message -- the
// slave ID and the run status indicator.
if (data == null) {
m_length = 2; // depends on control dependency: [if], data = [none]
m_data = new byte... |
public class class_name {
public void marshall(ListPipelineExecutionsRequest listPipelineExecutionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listPipelineExecutionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListPipelineExecutionsRequest listPipelineExecutionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listPipelineExecutionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public GetMembersRequest withAccountIds(String... accountIds) {
if (this.accountIds == null) {
setAccountIds(new java.util.ArrayList<String>(accountIds.length));
}
for (String ele : accountIds) {
this.accountIds.add(ele);
}
retur... | public class class_name {
public GetMembersRequest withAccountIds(String... accountIds) {
if (this.accountIds == null) {
setAccountIds(new java.util.ArrayList<String>(accountIds.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : accountIds) {
... |
public class class_name {
public JSONObject insert(Map<String, String> params) throws Exception {
OperationAccess operationAccess = tableSchema.getInsertAccess();
if( false == operationAccess.isAllowed() ) {
throw new Exception("Attempting to insert a record while the privilege is not allowed: "+tableSchema.get... | public class class_name {
public JSONObject insert(Map<String, String> params) throws Exception {
OperationAccess operationAccess = tableSchema.getInsertAccess();
if( false == operationAccess.isAllowed() ) {
throw new Exception("Attempting to insert a record while the privilege is not allowed: "+tableSchema.get... |
public class class_name {
public MapBuilder add(String fieldName, boolean include, @Nullable Map<String, ?> mapValue) {
if (include && mapValue != null && !mapValue.isEmpty()) {
map.put(getFieldName(fieldName), mapValue);
}
return this;
} } | public class class_name {
public MapBuilder add(String fieldName, boolean include, @Nullable Map<String, ?> mapValue) {
if (include && mapValue != null && !mapValue.isEmpty()) {
map.put(getFieldName(fieldName), mapValue); // depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
private ImmutableList<CharacterRegion> canonicalize(ImmutableList<CharacterRegion> inputRegions) {
boolean mergedAnything = false;
final ImmutableList.Builder<CharacterRegion> canonicalizedRegions = ImmutableList.builder();
CharacterRegion bufferRegion = null;
for (final Char... | public class class_name {
private ImmutableList<CharacterRegion> canonicalize(ImmutableList<CharacterRegion> inputRegions) {
boolean mergedAnything = false;
final ImmutableList.Builder<CharacterRegion> canonicalizedRegions = ImmutableList.builder();
CharacterRegion bufferRegion = null;
for (final Char... |
public class class_name {
private static void loadExtensionBundles(ConfigServerImpl cs, ConfigImpl config, Document doc, Log log) {
try {
Element parent = getChildByName(doc.getDocumentElement(), "extensions");
Element[] children = getChildren(parent, "rhextension");
String strBundles;
List<RHExte... | public class class_name {
private static void loadExtensionBundles(ConfigServerImpl cs, ConfigImpl config, Document doc, Log log) {
try {
Element parent = getChildByName(doc.getDocumentElement(), "extensions");
Element[] children = getChildren(parent, "rhextension");
String strBundles;
List<RHExte... |
public class class_name {
@SuppressWarnings({"PMD.NullAssignment", "PMD.UseObjectForClearerAPI"})
public String prepareAttachment(final String name, final String type, final String fileExtension) {
final String extension = Optional.ofNullable(fileExtension)
.filter(ext -> !ext.isEmpty())
... | public class class_name {
@SuppressWarnings({"PMD.NullAssignment", "PMD.UseObjectForClearerAPI"})
public String prepareAttachment(final String name, final String type, final String fileExtension) {
final String extension = Optional.ofNullable(fileExtension)
.filter(ext -> !ext.isEmpty())
... |
public class class_name {
protected void findBadlyScopedComponents() {
synchronized (HAS_CHECKED_BEAN_DEFINITIONS) {
if (HAS_CHECKED_BEAN_DEFINITIONS.get()) {
return;
}
final ConfigurableListableBeanFactory beanFactory = applicationContext.getBeanFactory();
... | public class class_name {
protected void findBadlyScopedComponents() {
synchronized (HAS_CHECKED_BEAN_DEFINITIONS) {
if (HAS_CHECKED_BEAN_DEFINITIONS.get()) {
return; // depends on control dependency: [if], data = [none]
}
final ConfigurableListableBeanFacto... |
public class class_name {
public DateMidnight withZoneRetainFields(DateTimeZone newZone) {
newZone = DateTimeUtils.getZone(newZone);
DateTimeZone originalZone = DateTimeUtils.getZone(getZone());
if (newZone == originalZone) {
return this;
}
long millis = ori... | public class class_name {
public DateMidnight withZoneRetainFields(DateTimeZone newZone) {
newZone = DateTimeUtils.getZone(newZone);
DateTimeZone originalZone = DateTimeUtils.getZone(getZone());
if (newZone == originalZone) {
return this; // depends on control dependency: [if], data... |
public class class_name {
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
closeIndices(null, false); // This will close all registered indices, without cleaning the cache.
this.cache.close();
log.info("{}: Closed.", this.traceObjectId);
}
... | public class class_name {
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
closeIndices(null, false); // This will close all registered indices, without cleaning the cache. // depends on control dependency: [if], data = [none]
this.cache.close(); // depends on con... |
public class class_name {
public static String quoteCanonical(String s) {
if (s == null || s.length() == 0) {
return "\"\"";
}
int len = s.length();
StringBuilder sb = new StringBuilder(len + 4);
sb.append('"');
for (int i = 0; i < len; i += 1) {
... | public class class_name {
public static String quoteCanonical(String s) {
if (s == null || s.length() == 0) {
return "\"\""; // depends on control dependency: [if], data = [none]
}
int len = s.length();
StringBuilder sb = new StringBuilder(len + 4);
sb.append('"');... |
public class class_name {
private Object _getObject(String keyName) {
Object result = null;
try {
result = keyValues.get( keyName);
if (result == null) {
// if failed, check the stored Defaults
PreferencesExt sd = getStoredDefaults();
if (sd != null)
... | public class class_name {
private Object _getObject(String keyName) {
Object result = null;
try {
result = keyValues.get( keyName); // depends on control dependency: [try], data = [none]
if (result == null) {
// if failed, check the stored Defaults
PreferencesExt sd = ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.