code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void debug( Object messagePattern, Object arg ) { if( m_delegate.isDebugEnabled() ) { String msgStr = (String) messagePattern; msgStr = MessageFormatter.format( msgStr, arg ); m_delegate.debug( msgStr, null ); } } }
public class class_name { public void debug( Object messagePattern, Object arg ) { if( m_delegate.isDebugEnabled() ) { String msgStr = (String) messagePattern; msgStr = MessageFormatter.format( msgStr, arg ); // depends on control dependency: [if], data = [none] ...
public class class_name { public void writeAccessControlEntry(CmsRequestContext context, CmsResource resource, CmsAccessControlEntry ace) throws CmsException, CmsSecurityException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkOfflineProject(dbc); ...
public class class_name { public void writeAccessControlEntry(CmsRequestContext context, CmsResource resource, CmsAccessControlEntry ace) throws CmsException, CmsSecurityException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkOfflineProject(dbc); ...
public class class_name { public byte[] toByteArray() { short bootstrapMethodsAttrNameIndex = 0; int attributeCount = 0; short sourceFileAttributeNameIndex = 0; if (itsBootstrapMethods != null) { ++attributeCount; bootstrapMethodsAttrNameIndex = itsConstantPool....
public class class_name { public byte[] toByteArray() { short bootstrapMethodsAttrNameIndex = 0; int attributeCount = 0; short sourceFileAttributeNameIndex = 0; if (itsBootstrapMethods != null) { ++attributeCount; // depends on control dependency: [if], data = [none] ...
public class class_name { public Object setStatus(int iStatus, Object comp, Object cursor) { Cursor oldCursor = null; if (comp instanceof Component) if (SwingUtilities.isEventDispatchThread()) // Just being careful { oldCursor = ((Component)comp).getCursor(); ...
public class class_name { public Object setStatus(int iStatus, Object comp, Object cursor) { Cursor oldCursor = null; if (comp instanceof Component) if (SwingUtilities.isEventDispatchThread()) // Just being careful { oldCursor = ((Component)comp).getCursor(); // depends...
public class class_name { public Metadata createMetadata() { Metadata metadata = new Metadata(); for (TagValue tag : getMetadata().getTags()) { if (tag.getCardinality() == 1) { abstractTiffType t = tag.getValue().get(0); if (t.isIFD()) { Metadata metadata2 = ((IFD) t).createMeta...
public class class_name { public Metadata createMetadata() { Metadata metadata = new Metadata(); for (TagValue tag : getMetadata().getTags()) { if (tag.getCardinality() == 1) { abstractTiffType t = tag.getValue().get(0); if (t.isIFD()) { Metadata metadata2 = ((IFD) t).createMeta...
public class class_name { public ISession createSession(String sessionId, boolean newId) { //create local variable - JIT performance improvement final boolean isTraceOn = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled(); //need some way to checkForDuplicateCreatedIds or synchronize on...
public class class_name { public ISession createSession(String sessionId, boolean newId) { //create local variable - JIT performance improvement final boolean isTraceOn = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled(); //need some way to checkForDuplicateCreatedIds or synchronize on...
public class class_name { private void addShutdownHook(boolean isClient) { if (shutdownHook == null) { shutdownHook = new ShutdownHook(isClient); Runtime.getRuntime().addShutdownHook(shutdownHook); } } }
public class class_name { private void addShutdownHook(boolean isClient) { if (shutdownHook == null) { shutdownHook = new ShutdownHook(isClient); // depends on control dependency: [if], data = [none] Runtime.getRuntime().addShutdownHook(shutdownHook); // depends on control dependency: [...
public class class_name { public static List<ComponentWithContext> collateVisibles(final WComponent comp) { final List<ComponentWithContext> list = new ArrayList<>(); WComponentTreeVisitor visitor = new WComponentTreeVisitor() { @Override public VisitorResult visit(final WComponent comp) { // In travers...
public class class_name { public static List<ComponentWithContext> collateVisibles(final WComponent comp) { final List<ComponentWithContext> list = new ArrayList<>(); WComponentTreeVisitor visitor = new WComponentTreeVisitor() { @Override public VisitorResult visit(final WComponent comp) { // In travers...
public class class_name { protected void detectHandlerMethods() { processAtmostRequestMappingInfo(); try { registerNativeFunctionHandlers( handlerMappingInfoStorage.getHandlerMappingInfos(), NativeFunctionResponseBodyHandler.class); registerNativeFunctionHandlers( handlerMappingInfoStorage.g...
public class class_name { protected void detectHandlerMethods() { processAtmostRequestMappingInfo(); try { registerNativeFunctionHandlers( handlerMappingInfoStorage.getHandlerMappingInfos(), NativeFunctionResponseBodyHandler.class); // depends on control dependency: [try], data = [none] registerN...
public class class_name { @ShellMethod(key = "add-properties", value = "Add properties associated with a CAS group/module to a Properties/Yaml configuration file.") public static void add( @ShellOption(value = {"file"}, help = "Path to the CAS configuration file", defaultValue = "/e...
public class class_name { @ShellMethod(key = "add-properties", value = "Add properties associated with a CAS group/module to a Properties/Yaml configuration file.") public static void add( @ShellOption(value = {"file"}, help = "Path to the CAS configuration file", defaultValue = "/e...
public class class_name { public static void generateExplorerTypesXml( Element startNode, List<CmsExplorerTypeSettings> explorerTypes, boolean module) { // we need the default access node later to check if the explorer type is an individual setting CmsExplorerTypeAccess default...
public class class_name { public static void generateExplorerTypesXml( Element startNode, List<CmsExplorerTypeSettings> explorerTypes, boolean module) { // we need the default access node later to check if the explorer type is an individual setting CmsExplorerTypeAccess default...
public class class_name { protected HttpUriRequest buildMethod(final String method, final String path, final Map<String, Object> params) { if (StringUtils.equalsIgnoreCase(method, HttpGet.METHOD_NAME)) { return generateGetRequest(path, params); } else if (StringUtils.equalsIgnoreCase(method...
public class class_name { protected HttpUriRequest buildMethod(final String method, final String path, final Map<String, Object> params) { if (StringUtils.equalsIgnoreCase(method, HttpGet.METHOD_NAME)) { return generateGetRequest(path, params); // depends on control dependency: [if], data = [none] ...
public class class_name { private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException { IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter); { HashSet<String> seen = new HashSet<>(); for (String path : project.getFil...
public class class_name { private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException { IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter); { HashSet<String> seen = new HashSet<>(); for (String path : project.getFil...
public class class_name { public static void main(String args[]) { if (args.length < 2) { System.err.println("arguments: file1 [file2 ...] destfile"); } else { try { int pageOffset = 0; ArrayList master = new ArrayList(); i...
public class class_name { public static void main(String args[]) { if (args.length < 2) { System.err.println("arguments: file1 [file2 ...] destfile"); } else { try { int pageOffset = 0; ArrayList master = new ArrayList(); i...
public class class_name { public static String implode(String glue, Object[] pieces) { if ( pieces == null ) { return null; } StringBuffer sb = new StringBuffer(); for ( Object o : pieces ) { if ( sb.length() > 0 ) { sb.append(glue); ...
public class class_name { public static String implode(String glue, Object[] pieces) { if ( pieces == null ) { return null; // depends on control dependency: [if], data = [none] } StringBuffer sb = new StringBuffer(); for ( Object o : pieces ) { if (...
public class class_name { @SuppressWarnings("PMD.EmptyCatchBlock") private synchronized void cleanup(final WatchKey key) { logger.trace("cleanUp {}", key); try { key.cancel(); }catch(Exception ex) { //trap } Collection<SFMF4JWatchListener> listeners =...
public class class_name { @SuppressWarnings("PMD.EmptyCatchBlock") private synchronized void cleanup(final WatchKey key) { logger.trace("cleanUp {}", key); try { key.cancel(); // depends on control dependency: [try], data = [none] }catch(Exception ex) { //trap ...
public class class_name { public void marshall(PutMediaRequest putMediaRequest, ProtocolMarshaller protocolMarshaller) { if (putMediaRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putMedi...
public class class_name { public void marshall(PutMediaRequest putMediaRequest, ProtocolMarshaller protocolMarshaller) { if (putMediaRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putMedi...
public class class_name { public static BlockAndLocation[] locatedBlocks2BlockLocations( LocatedBlocks blocks) { if (blocks == null) { return new BlockAndLocation[0]; } int nrBlocks = blocks.locatedBlockCount(); BlockAndLocation[] blkLocations = new BlockAndLocation[nrBlocks]; if (nrBlocks == ...
public class class_name { public static BlockAndLocation[] locatedBlocks2BlockLocations( LocatedBlocks blocks) { if (blocks == null) { return new BlockAndLocation[0]; // depends on control dependency: [if], data = [none] } int nrBlocks = blocks.locatedBlockCount(); BlockAndLocation[] blkLocations...
public class class_name { public Map<String, DesignDocument.View> generateViewsFromPersistentType( final Class<?> persistentType) { Assert.notNull(persistentType, "persistentType may not be null"); final Map<String, DesignDocument.View> views = new HashMap<String, DesignDocument.View>(); createDeclaredViews(...
public class class_name { public Map<String, DesignDocument.View> generateViewsFromPersistentType( final Class<?> persistentType) { Assert.notNull(persistentType, "persistentType may not be null"); final Map<String, DesignDocument.View> views = new HashMap<String, DesignDocument.View>(); createDeclaredViews(...
public class class_name { public static synchronized void putChannelGroup(WonderPushChannelGroup channelGroup) { try { if (_putChannelGroup(channelGroup)) { save(); } } catch (Exception ex) { Log.e(WonderPush.TAG, "Unexpected error while putting chann...
public class class_name { public static synchronized void putChannelGroup(WonderPushChannelGroup channelGroup) { try { if (_putChannelGroup(channelGroup)) { save(); // depends on control dependency: [if], data = [none] } } catch (Exception ex) { Log.e...
public class class_name { public static Resource[] getResources(String locationPattern) { try { return resolver.getResources(locationPattern); } catch (IOException e) { throw MiscUtil.toUnchecked(e); } } }
public class class_name { public static Resource[] getResources(String locationPattern) { try { return resolver.getResources(locationPattern); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw MiscUtil.toUnchecked(e); } // depends on ...
public class class_name { @Override public void setService(final String name, final FrameworkSupportService service){ synchronized (services){ if(null==services.get(name) && null!=service) { services.put(name, service); }else if(null==service) { servi...
public class class_name { @Override public void setService(final String name, final FrameworkSupportService service){ synchronized (services){ if(null==services.get(name) && null!=service) { services.put(name, service); // depends on control dependency: [if], data = [none] ...
public class class_name { public Binder foldVoid(MethodHandle function) { if (type().returnType() == void.class) { return fold(function); } else { return fold(function.asType(function.type().changeReturnType(void.class))); } } }
public class class_name { public Binder foldVoid(MethodHandle function) { if (type().returnType() == void.class) { return fold(function); // depends on control dependency: [if], data = [none] } else { return fold(function.asType(function.type().changeReturnType(void.class))); //...
public class class_name { public void setLoop(boolean doLoop, GVRContext gvrContext) { if (this.loop != doLoop ) { // a change in the loop for (GVRNodeAnimation gvrKeyFrameAnimation : gvrKeyFrameAnimations) { if (doLoop) gvrKeyFrameAnimation.setRepeatMode(GVRRepeatMode.R...
public class class_name { public void setLoop(boolean doLoop, GVRContext gvrContext) { if (this.loop != doLoop ) { // a change in the loop for (GVRNodeAnimation gvrKeyFrameAnimation : gvrKeyFrameAnimations) { if (doLoop) gvrKeyFrameAnimation.setRepeatMode(GVRRepeatMode.R...
public class class_name { public static String getHostnameValue() { if (!hostnameInitialised) { synchronized (LOCK) { if (!hostnameInitialised) { hostname = lookupHostname(); hostnameInitialised = true; } } ...
public class class_name { public static String getHostnameValue() { if (!hostnameInitialised) { synchronized (LOCK) { // depends on control dependency: [if], data = [none] if (!hostnameInitialised) { hostname = lookupHostname(); // depends on control dependency: ...
public class class_name { public static ReleaseId toReleaseId(String releaseId) { if (releaseId != null) { String[] gav = releaseId.split(":", 3); String groupId = gav.length > 0 ? gav[0] : null; String artifactId = gav.length > 1 ? gav[1] : null; String version ...
public class class_name { public static ReleaseId toReleaseId(String releaseId) { if (releaseId != null) { String[] gav = releaseId.split(":", 3); String groupId = gav.length > 0 ? gav[0] : null; String artifactId = gav.length > 1 ? gav[1] : null; String version ...
public class class_name { public Page serviceAt(String uri, Class<?> pageClass) { // Handle subpaths, registering each as a separate instance of the page // tuple. for (Method method : pageClass.getDeclaredMethods()) { if (method.isAnnotationPresent(At.class)) { // This is a subpath expressi...
public class class_name { public Page serviceAt(String uri, Class<?> pageClass) { // Handle subpaths, registering each as a separate instance of the page // tuple. for (Method method : pageClass.getDeclaredMethods()) { if (method.isAnnotationPresent(At.class)) { // This is a subpath expressi...
public class class_name { public CommandLine setOverwrittenOptionsAllowed(boolean newValue) { getCommandSpec().parser().overwrittenOptionsAllowed(newValue); for (CommandLine command : getCommandSpec().subcommands().values()) { command.setOverwrittenOptionsAllowed(newValue); } ...
public class class_name { public CommandLine setOverwrittenOptionsAllowed(boolean newValue) { getCommandSpec().parser().overwrittenOptionsAllowed(newValue); for (CommandLine command : getCommandSpec().subcommands().values()) { command.setOverwrittenOptionsAllowed(newValue); // depends on co...
public class class_name { static public void recursiveCreateDirectory(FTPClient ftpClient, String path) throws IOException { logger.info("Create Directory: {}", path); int createDirectoryStatus = ftpClient.mkd(path); // makeDirectory... logger.debug("Create Directory Status: {}", createDirectoryStatus); if...
public class class_name { static public void recursiveCreateDirectory(FTPClient ftpClient, String path) throws IOException { logger.info("Create Directory: {}", path); int createDirectoryStatus = ftpClient.mkd(path); // makeDirectory... logger.debug("Create Directory Status: {}", createDirectoryStatus); if...
public class class_name { public void alias( double value , String name ) { if( isReserved(name)) throw new RuntimeException("Reserved word or contains a reserved character. '"+name+"'"); VariableDouble old = (VariableDouble)variables.get(name); if( old == null ) { vari...
public class class_name { public void alias( double value , String name ) { if( isReserved(name)) throw new RuntimeException("Reserved word or contains a reserved character. '"+name+"'"); VariableDouble old = (VariableDouble)variables.get(name); if( old == null ) { vari...
public class class_name { public static void log(Category category, String prepared, String sql) { if (logger != null && isCategoryOk(category)) { doLog(-1, category, prepared, sql); } } }
public class class_name { public static void log(Category category, String prepared, String sql) { if (logger != null && isCategoryOk(category)) { doLog(-1, category, prepared, sql); // depends on control dependency: [if], data = [none] } } }
public class class_name { FunctionTypeBuilder inferTemplateTypeName(@Nullable JSDocInfo info, @Nullable JSType ownerType) { // NOTE: these template type names may override a list // of inherited ones from an overridden function. if (info != null && !maybeUseNativeClassTemplateNames(info)) { Immutabl...
public class class_name { FunctionTypeBuilder inferTemplateTypeName(@Nullable JSDocInfo info, @Nullable JSType ownerType) { // NOTE: these template type names may override a list // of inherited ones from an overridden function. if (info != null && !maybeUseNativeClassTemplateNames(info)) { Immutabl...
public class class_name { public void swap(Tree<T> node) { Tree<T> thisParent = this.parent; List<Tree<T>> thisChildren = new ArrayList<>(this.children); this.removeFromParent(); if (node.parent != null) { node.parent.add(this); } node.children.forEach(this::add); node.rem...
public class class_name { public void swap(Tree<T> node) { Tree<T> thisParent = this.parent; List<Tree<T>> thisChildren = new ArrayList<>(this.children); this.removeFromParent(); if (node.parent != null) { node.parent.add(this); // depends on control dependency: [if], data = [none] } ...
public class class_name { private void updatePreferenceCache() { for (PrefsProtos.Pref pref : service.listPrefs(true, null)) { preferences.add(new ScopePreference(this, pref)); } } }
public class class_name { private void updatePreferenceCache() { for (PrefsProtos.Pref pref : service.listPrefs(true, null)) { preferences.add(new ScopePreference(this, pref)); // depends on control dependency: [for], data = [pref] } } }
public class class_name { private List<Proposition> filterMatches(Proposition inProposition, Collection<Proposition> propositions, Set<Proposition> cache) { TemporalProposition inTp = null; if (this.relation != null) { if (inProposition instanceof TemporalProposition) { ...
public class class_name { private List<Proposition> filterMatches(Proposition inProposition, Collection<Proposition> propositions, Set<Proposition> cache) { TemporalProposition inTp = null; if (this.relation != null) { if (inProposition instanceof TemporalProposition) { ...
public class class_name { protected IRExpression compileExpansionDirectlyToArray( IType rootType, IType rootComponentType, IType resultType, IType resultCompType ) { // Evaluate the root and assign it to a temp variable IRSymbol tempRoot = _cc().makeAndIndexTempSymbol( getDescriptor( rootType ) ); IRStatem...
public class class_name { protected IRExpression compileExpansionDirectlyToArray( IType rootType, IType rootComponentType, IType resultType, IType resultCompType ) { // Evaluate the root and assign it to a temp variable IRSymbol tempRoot = _cc().makeAndIndexTempSymbol( getDescriptor( rootType ) ); IRStatem...
public class class_name { public static Object toObject(VectorTile.Tile.Value value) { Object result = null; if(value.hasDoubleValue()) { result = value.getDoubleValue(); } else if(value.hasFloatValue()) { result = value.getFloatValue(); } else if(value.hasInt...
public class class_name { public static Object toObject(VectorTile.Tile.Value value) { Object result = null; if(value.hasDoubleValue()) { result = value.getDoubleValue(); // depends on control dependency: [if], data = [none] } else if(value.hasFloatValue()) { result = ...
public class class_name { public synchronized void cancel() // d583637 { ivIsCanceled = true; stopAlarm(); // F743-33394 - Wait for the sweep to finish. while (ivIsRunning) { try { wait(); } catch (InterruptedException ex) { i...
public class class_name { public synchronized void cancel() // d583637 { ivIsCanceled = true; stopAlarm(); // F743-33394 - Wait for the sweep to finish. while (ivIsRunning) { try { wait(); // depends on control dependency: [try], data = [none] ...
public class class_name { @Nonnull public static char [] replaceMultiple (@Nullable final char [] aInput, @Nonnull final char [] aSearchChars, @Nonnull final char [] [] aReplacementStrings) { ValueEnforcer.notNull (aSearchChars, ...
public class class_name { @Nonnull public static char [] replaceMultiple (@Nullable final char [] aInput, @Nonnull final char [] aSearchChars, @Nonnull final char [] [] aReplacementStrings) { ValueEnforcer.notNull (aSearchChars, ...
public class class_name { private static String[] tokenizePathAsArray(String path) { String root = null; if (FileUtil.isAbsolutePath(path)) { String[] s = FileUtil.dissect(path); root = s[0]; path = s[1]; } char sep = File.separatorChar; int s...
public class class_name { private static String[] tokenizePathAsArray(String path) { String root = null; if (FileUtil.isAbsolutePath(path)) { String[] s = FileUtil.dissect(path); root = s[0]; // depends on control dependency: [if], data = [none] path = s[1]; // depen...
public class class_name { @Override protected void closeStartElement(boolean emptyElem) throws XMLStreamException { mStartElementOpen = false; try { if (emptyElem) { mWriter.writeStartTagEmptyEnd(); } else { mWriter.writeStartTagE...
public class class_name { @Override protected void closeStartElement(boolean emptyElem) throws XMLStreamException { mStartElementOpen = false; try { if (emptyElem) { mWriter.writeStartTagEmptyEnd(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static Object invokeGroovyObjectInvoker(MissingMethodException e, Object receiver, String name, Object[] args) { if (e instanceof MissingMethodExecutionFailed) { throw (MissingMethodException)e.getCause(); } else if (receiver.getClass() == e.getType() && e.g...
public class class_name { public static Object invokeGroovyObjectInvoker(MissingMethodException e, Object receiver, String name, Object[] args) { if (e instanceof MissingMethodExecutionFailed) { throw (MissingMethodException)e.getCause(); } else if (receiver.getClass() == e.getType() && e.g...
public class class_name { private void printClassList(PrintStream out, Iterable<EntityIdValue> classes) { out.print(",\""); boolean first = true; for (EntityIdValue superClass : classes) { if (first) { first = false; } else { out.print("@"); } // makeshift escaping for Miga: out.print(getC...
public class class_name { private void printClassList(PrintStream out, Iterable<EntityIdValue> classes) { out.print(",\""); boolean first = true; for (EntityIdValue superClass : classes) { if (first) { first = false; // depends on control dependency: [if], data = [none] } else { out.print("@"); // ...
public class class_name { @Override public void doConnectionSetup(Connection conn) throws SQLException { SQLWarning warn = conn.getWarnings(); if (warn != null) { SQLException sqlex = null; String sqlstate = warn.getSQLState(); if (sqlstate.equals("010UF")) { /...
public class class_name { @Override public void doConnectionSetup(Connection conn) throws SQLException { SQLWarning warn = conn.getWarnings(); if (warn != null) { SQLException sqlex = null; String sqlstate = warn.getSQLState(); if (sqlstate.equals("010UF")) { /...
public class class_name { BaseRow removeLast() { Map.Entry<BaseRow, Collection<BaseRow>> last = treeMap.lastEntry(); BaseRow lastElement = null; if (last != null) { Collection<BaseRow> list = last.getValue(); lastElement = getLastElement(list); if (lastElement != null) { if (list.remove(lastElement)...
public class class_name { BaseRow removeLast() { Map.Entry<BaseRow, Collection<BaseRow>> last = treeMap.lastEntry(); BaseRow lastElement = null; if (last != null) { Collection<BaseRow> list = last.getValue(); lastElement = getLastElement(list); // depends on control dependency: [if], data = [none] if (l...
public class class_name { @Override public void close() { if (client != null) { try { client.close(); } catch (final IOException e) { LOGGER.error("Unable to close HTTP client", e); } } } }
public class class_name { @Override public void close() { if (client != null) { try { client.close(); // depends on control dependency: [try], data = [none] } catch (final IOException e) { LOGGER.error("Unable to close HTTP client", e); } ...
public class class_name { public static void renew(GramJob job, GSSCredential newCred, boolean limitedDelegation) throws GramException, GSSException { GSSCredential currentCred = getJobCredentials(job); GlobusURL jobURL = job.getID(); if (jobURL == null) { ...
public class class_name { public static void renew(GramJob job, GSSCredential newCred, boolean limitedDelegation) throws GramException, GSSException { GSSCredential currentCred = getJobCredentials(job); GlobusURL jobURL = job.getID(); if (jobURL == null) { ...
public class class_name { public static String getProjectName( File inputDefFile) { String projectName = null; if( inputDefFile != null) { String inputBase = FilenameUtils.getBaseName( inputDefFile.getName()); projectName = inputBase.toLowerCase().endsWith( "-input") ? in...
public class class_name { public static String getProjectName( File inputDefFile) { String projectName = null; if( inputDefFile != null) { String inputBase = FilenameUtils.getBaseName( inputDefFile.getName()); projectName = inputBase.toLowerCase().endsWith( "-input") ? in...
public class class_name { @SuppressWarnings("unchecked") public TemporalDataModelIF<Long, Long> runLenskitRecommender(final RUN_OPTIONS opts, final DataAccessObject trainingModel, final DataAccessObject testModel) throws RecommenderException { if (isAlreadyRecommended()) { return null; ...
public class class_name { @SuppressWarnings("unchecked") public TemporalDataModelIF<Long, Long> runLenskitRecommender(final RUN_OPTIONS opts, final DataAccessObject trainingModel, final DataAccessObject testModel) throws RecommenderException { if (isAlreadyRecommended()) { return null; ...
public class class_name { public ENTITY findOne(Match... matches) { List<ENTITY> os = find(Arrays.asList(matches), null, 0, 1); if (os == null || os.size() == 0) { return null; } return os.get(0); } }
public class class_name { public ENTITY findOne(Match... matches) { List<ENTITY> os = find(Arrays.asList(matches), null, 0, 1); if (os == null || os.size() == 0) { return null; // depends on control dependency: [if], data = [none] } return os.get(0); } }
public class class_name { public static boolean isMessyCode(String strName) { Pattern p = Pattern.compile("\\s*|t*|r*|n*"); Matcher m = p.matcher(strName); String after = m.replaceAll(""); String temp = after.replaceAll("\\p{P}", ""); char[] ch = temp.trim().toCharArray(); ...
public class class_name { public static boolean isMessyCode(String strName) { Pattern p = Pattern.compile("\\s*|t*|r*|n*"); Matcher m = p.matcher(strName); String after = m.replaceAll(""); String temp = after.replaceAll("\\p{P}", ""); char[] ch = temp.trim().toCharArray(); ...
public class class_name { public int getVisibleRowCapacity() { int rh = getCalculatedRowHeight(); double visibleHeight = getVisibleHeight(); int rows = (int) ((visibleHeight < 1) ? 0 : Math.floor(visibleHeight / rh)); int calcHeight = rh * rows; while (calcHeight < visibleHeig...
public class class_name { public int getVisibleRowCapacity() { int rh = getCalculatedRowHeight(); double visibleHeight = getVisibleHeight(); int rows = (int) ((visibleHeight < 1) ? 0 : Math.floor(visibleHeight / rh)); int calcHeight = rh * rows; while (calcHeight < visibleHeig...
public class class_name { public java.awt.Image createAwtImage(Color foreground, Color background) { int f = foreground.getRGB(); int g = background.getRGB(); Canvas canvas = new Canvas(); int barWidth = (int)x; if (barWidth <= 0) barWidth = 1; int barDistanc...
public class class_name { public java.awt.Image createAwtImage(Color foreground, Color background) { int f = foreground.getRGB(); int g = background.getRGB(); Canvas canvas = new Canvas(); int barWidth = (int)x; if (barWidth <= 0) barWidth = 1; int barDistanc...
public class class_name { protected void onRemoved() { List<FilterChangeListener> listeners = getAllListeners(); for (FilterChangeListener listener : listeners) { listener.onRemove(this); } } }
public class class_name { protected void onRemoved() { List<FilterChangeListener> listeners = getAllListeners(); for (FilterChangeListener listener : listeners) { listener.onRemove(this); // depends on control dependency: [for], data = [listener] } } }
public class class_name { private void clearMetadata(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.pla...
public class class_name { private void clearMetadata(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.pla...
public class class_name { @Override public void logout() { if (!isAuthenticated()) return; // call cleanSubject() if there is an AuthConfigProvider for the HttpServlet layer and appContext. String appContext = this.buildAppContext(); if (AuthConfigFactory.getFactory().g...
public class class_name { @Override public void logout() { if (!isAuthenticated()) return; // call cleanSubject() if there is an AuthConfigProvider for the HttpServlet layer and appContext. String appContext = this.buildAppContext(); if (AuthConfigFactory.getFactory().g...
public class class_name { private InputStream parseEntity(DataSource ds) { try { return ds.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } } }
public class class_name { private InputStream parseEntity(DataSource ds) { try { return ds.getInputStream(); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new RuntimeException(e); } // depends on control dependency: [catch], data ...
public class class_name { public static <T> Collection<T> addAll(Collection<T> collection, T[] values) { if (null != collection && null != values) { for (T value : values) { collection.add(value); } } return collection; } }
public class class_name { public static <T> Collection<T> addAll(Collection<T> collection, T[] values) { if (null != collection && null != values) { for (T value : values) { collection.add(value); // depends on control dependency: [for], data = [value] } } return collection; } }
public class class_name { public void viewLocationDidChange (int dx, int dy) { if (_renderOrder >= HUD_LAYER) { setLocation(_bounds.x + dx, _bounds.y + dy); } } }
public class class_name { public void viewLocationDidChange (int dx, int dy) { if (_renderOrder >= HUD_LAYER) { setLocation(_bounds.x + dx, _bounds.y + dy); // depends on control dependency: [if], data = [none] } } }
public class class_name { @Override public void showCache(Formatter format) { ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size()); for (CacheElement elem : cache.values()) { allFiles.addAll(elem.list); } Collections.sort(allFiles); // sort so oldest are on top format...
public class class_name { @Override public void showCache(Formatter format) { ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size()); for (CacheElement elem : cache.values()) { allFiles.addAll(elem.list); // depends on control dependency: [for], data = [elem] } Collections.s...
public class class_name { public void removeSnapshots() { VersionList versionToRemove = new VersionList(); // collect Versions to be removed for (Version ver : this) { if (ver.isSnapshot()) { versionToRemove.add(ver); } } // remove them ...
public class class_name { public void removeSnapshots() { VersionList versionToRemove = new VersionList(); // collect Versions to be removed for (Version ver : this) { if (ver.isSnapshot()) { versionToRemove.add(ver); // depends on control dependency: [if], data = [...
public class class_name { public EClass getEDI() { if (ediEClass == null) { ediEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(239); } return ediEClass; } }
public class class_name { public EClass getEDI() { if (ediEClass == null) { ediEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(239); // depends on control dependency: [if], data = [none] } return ediEClass; } }
public class class_name { public static Type getType(Field field) { if (null == field) { return null; } Type type = field.getGenericType(); if (null == type) { type = field.getType(); } return type; } }
public class class_name { public static Type getType(Field field) { if (null == field) { return null; // depends on control dependency: [if], data = [none] } Type type = field.getGenericType(); if (null == type) { type = field.getType(); // depends on control dependency: [if], data = [none] } ...
public class class_name { private String internalCategoryRootPath(String basePath, String categoryPath) { if (categoryPath.startsWith("/") && basePath.endsWith("/")) { // one slash too much return basePath + categoryPath.substring(1); } else if (!categoryPath.startsWith("/") &&...
public class class_name { private String internalCategoryRootPath(String basePath, String categoryPath) { if (categoryPath.startsWith("/") && basePath.endsWith("/")) { // one slash too much return basePath + categoryPath.substring(1); // depends on control dependency: [if], data = [non...
public class class_name { public static Environment of(@NonNull String location) { if (location.startsWith(PREFIX_CLASSPATH)) { location = location.substring(PREFIX_CLASSPATH.length()); return loadClasspath(location); } else if (location.startsWith(PREFIX_FILE)) { lo...
public class class_name { public static Environment of(@NonNull String location) { if (location.startsWith(PREFIX_CLASSPATH)) { location = location.substring(PREFIX_CLASSPATH.length()); // depends on control dependency: [if], data = [none] return loadClasspath(location); // depends on c...
public class class_name { public void setCurrentIndex(long curr) { try { if (curr < 0 || curr > count) { throw new RuntimeException(curr + " is not in the range 0 to " + count); } seek(getHeaderSize() + curr * getEntryLength()); } catch (IOException e...
public class class_name { public void setCurrentIndex(long curr) { try { if (curr < 0 || curr > count) { throw new RuntimeException(curr + " is not in the range 0 to " + count); } seek(getHeaderSize() + curr * getEntryLength()); // depends on control dependen...
public class class_name { private String transformContent(String content) { try { List<CmsJsonPart> parts = CmsJsonPart.parseJsonParts(content); JSONArray keys = new JSONArray(); JSONObject output = new JSONObject(); for (CmsJsonPart part : parts) { ...
public class class_name { private String transformContent(String content) { try { List<CmsJsonPart> parts = CmsJsonPart.parseJsonParts(content); JSONArray keys = new JSONArray(); JSONObject output = new JSONObject(); for (CmsJsonPart part : parts) { ...
public class class_name { private int coordIndex(GridRecord record) { double val = record.getLevel1(); double val2 = record.getLevel2(); if (usesBounds && (val > val2)) { val = record.getLevel2(); val2 = record.getLevel1(); } for (int i = 0; i < levels.size(); i++) { LevelCoord l...
public class class_name { private int coordIndex(GridRecord record) { double val = record.getLevel1(); double val2 = record.getLevel2(); if (usesBounds && (val > val2)) { val = record.getLevel2(); // depends on control dependency: [if], data = [none] val2 = record.getLevel1(); // depends on con...
public class class_name { public static String toSql(String name, String in) { if (in.indexOf('\\') != -1) { // has one or more escapes, un-escape and translate StringBuffer out = new StringBuffer(); out.append('\''); boolean needLike = false; boolean...
public class class_name { public static String toSql(String name, String in) { if (in.indexOf('\\') != -1) { // has one or more escapes, un-escape and translate StringBuffer out = new StringBuffer(); out.append('\''); // depends on control dependency: [if], data = [none] ...
public class class_name { public EClass getGFLT() { if (gfltEClass == null) { gfltEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(449); } return gfltEClass; } }
public class class_name { public EClass getGFLT() { if (gfltEClass == null) { gfltEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(449); // depends on control dependency: [if], data = [none] } return gfltEClass; } }
public class class_name { public DescribeRemediationConfigurationsRequest withConfigRuleNames(String... configRuleNames) { if (this.configRuleNames == null) { setConfigRuleNames(new com.amazonaws.internal.SdkInternalList<String>(configRuleNames.length)); } for (String ele : configRu...
public class class_name { public DescribeRemediationConfigurationsRequest withConfigRuleNames(String... configRuleNames) { if (this.configRuleNames == null) { setConfigRuleNames(new com.amazonaws.internal.SdkInternalList<String>(configRuleNames.length)); // depends on control dependency: [if], data...
public class class_name { public static void resourceToFile(String resourceName, File dest, Class src) { InputStream is = null; OutputStream os = null; try { is = src.getClassLoader().getResourceAsStream(resourceName); if (is == null) { throw new RuntimeException("Could not ...
public class class_name { public static void resourceToFile(String resourceName, File dest, Class src) { InputStream is = null; OutputStream os = null; try { is = src.getClassLoader().getResourceAsStream(resourceName); // depends on control dependency: [try], data = [none] if (is == null...
public class class_name { public java.util.List<RebootRequest> getRebootWorkspaceRequests() { if (rebootWorkspaceRequests == null) { rebootWorkspaceRequests = new com.amazonaws.internal.SdkInternalList<RebootRequest>(); } return rebootWorkspaceRequests; } }
public class class_name { public java.util.List<RebootRequest> getRebootWorkspaceRequests() { if (rebootWorkspaceRequests == null) { rebootWorkspaceRequests = new com.amazonaws.internal.SdkInternalList<RebootRequest>(); // depends on control dependency: [if], data = [none] } return ...
public class class_name { private void initObjectTypes(Properties info) throws SQLException { // Add in the types that come packaged with the driver. // These can be overridden later if desired. addDataType("box", org.postgresql.geometric.PGbox.class); addDataType("circle", org.postgresql.geometric.PGc...
public class class_name { private void initObjectTypes(Properties info) throws SQLException { // Add in the types that come packaged with the driver. // These can be overridden later if desired. addDataType("box", org.postgresql.geometric.PGbox.class); addDataType("circle", org.postgresql.geometric.PGc...
public class class_name { @Override public void notifyHangupListeners(Integer cause, String causeText) { this._isLive = false; if (this.hangupListener != null) { this.hangupListener.channelHangup(this, cause, causeText); } else { ...
public class class_name { @Override public void notifyHangupListeners(Integer cause, String causeText) { this._isLive = false; if (this.hangupListener != null) { this.hangupListener.channelHangup(this, cause, causeText); // depends on control dependency: [if], data = ...
public class class_name { public com.google.protobuf.ByteString getUfsFingerprintBytes() { java.lang.Object ref = ufsFingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref);...
public class class_name { public com.google.protobuf.ByteString getUfsFingerprintBytes() { java.lang.Object ref = ufsFingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref);...
public class class_name { public PartnerLogData container(FailureScopeController failureScopeController) { if (tc.isEntryEnabled()) Tr.entry(tc, "container", failureScopeController); final PartnerLogData pld = new XARecoveryData(failureScopeController, this); // // Now try...
public class class_name { public PartnerLogData container(FailureScopeController failureScopeController) { if (tc.isEntryEnabled()) Tr.entry(tc, "container", failureScopeController); final PartnerLogData pld = new XARecoveryData(failureScopeController, this); // // Now try...
public class class_name { protected void handleUnmappedAttribute(final Map<String, List<Object>> attributesToRelease, final String attributeName, final Object attributeValue) { LOGGER.debug("Found attribute [{}] that is not defined in pattern definitions", attributeName); if (excludeUnmappedAttributes)...
public class class_name { protected void handleUnmappedAttribute(final Map<String, List<Object>> attributesToRelease, final String attributeName, final Object attributeValue) { LOGGER.debug("Found attribute [{}] that is not defined in pattern definitions", attributeName); if (excludeUnmappedAttributes)...
public class class_name { public <T> void setState(HttpConnectionInterceptor interceptor, String stateName, T stateObjectToStore) { Map<String, Object> state = interceptorStates.get(interceptor); if (state == null) { interceptorStates.put(interceptor, (state = new ConcurrentHash...
public class class_name { public <T> void setState(HttpConnectionInterceptor interceptor, String stateName, T stateObjectToStore) { Map<String, Object> state = interceptorStates.get(interceptor); if (state == null) { interceptorStates.put(interceptor, (state = new ConcurrentHash...
public class class_name { public Optional<List<String>> getOptionalStringList(final String param) { if (isPresent(param)) { return Optional.of(getStringList(param)); } return Optional.absent(); } }
public class class_name { public Optional<List<String>> getOptionalStringList(final String param) { if (isPresent(param)) { return Optional.of(getStringList(param)); // depends on control dependency: [if], data = [none] } return Optional.absent(); } }
public class class_name { private void scanAnnotation(List<AuthzHandler> authzArray, List<Annotation> annotations) { if (null == annotations || 0 == annotations.size()) { return; } for (Annotation a : annotations) { if (a instanceof Requir...
public class class_name { private void scanAnnotation(List<AuthzHandler> authzArray, List<Annotation> annotations) { if (null == annotations || 0 == annotations.size()) { return; // depends on control dependency: [if], data = [none] } for (Annotation ...
public class class_name { public void copyFrom(XNElement other) { content = other.content; userObject = other.userObject; for (Map.Entry<XAttributeName, String> me : other.attributes.entrySet()) { XAttributeName an = new XAttributeName(me.getKey().name, me.getKey().namespace, me.get...
public class class_name { public void copyFrom(XNElement other) { content = other.content; userObject = other.userObject; for (Map.Entry<XAttributeName, String> me : other.attributes.entrySet()) { XAttributeName an = new XAttributeName(me.getKey().name, me.getKey().namespace, me.get...
public class class_name { private ResponseEntity<String> makeRestCall(String instanceUrl, String suffix) { ResponseEntity<String> response = null; try { response = restOperations.exchange(joinUrl(instanceUrl, artifactorySettings.getEndpoint(), suffix), HttpMethod.GET, new HttpEntity<>(createHeaders(ins...
public class class_name { private ResponseEntity<String> makeRestCall(String instanceUrl, String suffix) { ResponseEntity<String> response = null; try { response = restOperations.exchange(joinUrl(instanceUrl, artifactorySettings.getEndpoint(), suffix), HttpMethod.GET, new HttpEntity<>(createHeaders(ins...
public class class_name { public void marshall(UpdatePresetRequest updatePresetRequest, ProtocolMarshaller protocolMarshaller) { if (updatePresetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(UpdatePresetRequest updatePresetRequest, ProtocolMarshaller protocolMarshaller) { if (updatePresetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { @Nonnull public IMicroDocument getAsDocument (@Nonnull @Nonempty final String sFullContextPath) { final String sNamespaceURL = CXMLSitemap.XML_NAMESPACE_0_9; final IMicroDocument ret = new MicroDocument (); final IMicroElement eSitemapindex = ret.appendElement (sNamespaceURL, ...
public class class_name { @Nonnull public IMicroDocument getAsDocument (@Nonnull @Nonempty final String sFullContextPath) { final String sNamespaceURL = CXMLSitemap.XML_NAMESPACE_0_9; final IMicroDocument ret = new MicroDocument (); final IMicroElement eSitemapindex = ret.appendElement (sNamespaceURL, ...
public class class_name { public static void closeResultSet(ResultSet rs){ if (rs != null) { try { rs.close(); } catch (Exception e) { log.warn("Exception when closing database result set.", e); } } } }
public class class_name { public static void closeResultSet(ResultSet rs){ if (rs != null) { try { rs.close(); // depends on control dependency: [try], data = [none] } catch (Exception e) { log.warn("Exception when closing database result set.", e); } // depends on control dependency: [catch]...
public class class_name { private void buildFilterMenus() { buildFilterSubMenu(firstNameFilterMenu, FIRST_NAME); if (firstNameFilterMenu.getChildCount() == 0) { firstNameFilterMenu.setVisible(false); } buildFilterSubMenu(lastNameFilterMenu, LAST_NAME); if (lastNameFilterMenu.getChildCount() == 0) { la...
public class class_name { private void buildFilterMenus() { buildFilterSubMenu(firstNameFilterMenu, FIRST_NAME); if (firstNameFilterMenu.getChildCount() == 0) { firstNameFilterMenu.setVisible(false); // depends on control dependency: [if], data = [none] } buildFilterSubMenu(lastNameFilterMenu, LAST_NAME); ...
public class class_name { public static String dumpString(byte[] frame, int offset, int length, boolean ascii) { if ((frame == null)|| (length == 0)) return null; // Main formatting is performed in buf. asciibuf is used to hold the // ascii translation. asciibuf is appended to buf before a new line is star...
public class class_name { public static String dumpString(byte[] frame, int offset, int length, boolean ascii) { if ((frame == null)|| (length == 0)) return null; // Main formatting is performed in buf. asciibuf is used to hold the // ascii translation. asciibuf is appended to buf before a new line is star...
public class class_name { public static void decodeIncommingData(IoBuffer in, IoSession session) { log.trace("Decoding: {}", in); // get decoder state DecoderState decoderState = (DecoderState) session.getAttribute(DECODER_STATE_KEY); if (decoderState.fin == Byte.MIN_VALUE) { ...
public class class_name { public static void decodeIncommingData(IoBuffer in, IoSession session) { log.trace("Decoding: {}", in); // get decoder state DecoderState decoderState = (DecoderState) session.getAttribute(DECODER_STATE_KEY); if (decoderState.fin == Byte.MIN_VALUE) { ...
public class class_name { private boolean isValid(final String fileType) { boolean result = false; if (fileType != null && fileType.length() > 1) { // the shortest I can think of would be something like ".h" if (fileType.startsWith(".")) { // assume it's a file extension result = true; } else if (fileTyp...
public class class_name { private boolean isValid(final String fileType) { boolean result = false; if (fileType != null && fileType.length() > 1) { // the shortest I can think of would be something like ".h" if (fileType.startsWith(".")) { // assume it's a file extension result = true; // depends on control...
public class class_name { private Ref scope(String idStr) { if (!limited && idStr.equals("var")) { String name = identifier(false); if (name != null) { cfml.removeSpace(); return new Variable(new lucee.runtime.interpreter.ref.var.Scope(ScopeSupport.SCOPE_VAR), name, limited); } } int scope = limi...
public class class_name { private Ref scope(String idStr) { if (!limited && idStr.equals("var")) { String name = identifier(false); if (name != null) { cfml.removeSpace(); // depends on control dependency: [if], data = [none] return new Variable(new lucee.runtime.interpreter.ref.var.Scope(ScopeSupport.S...
public class class_name { public InvalidRequestException withMutuallyExclusiveParameters(String... mutuallyExclusiveParameters) { if (this.mutuallyExclusiveParameters == null) { setMutuallyExclusiveParameters(new java.util.ArrayList<String>(mutuallyExclusiveParameters.length)); } fo...
public class class_name { public InvalidRequestException withMutuallyExclusiveParameters(String... mutuallyExclusiveParameters) { if (this.mutuallyExclusiveParameters == null) { setMutuallyExclusiveParameters(new java.util.ArrayList<String>(mutuallyExclusiveParameters.length)); // depends on contro...
public class class_name { private void handleJmxRefreshables(List<MBeanWrapper> mbeanWrappers, AttributeNodeForPojo rootNode) { for (MBeanWrapper mbeanWrapper : mbeanWrappers) { Eventloop eventloop = mbeanWrapper.getEventloop(); List<JmxRefreshable> currentRefreshables = rootNode.getAllRefreshables(mbeanWrappe...
public class class_name { private void handleJmxRefreshables(List<MBeanWrapper> mbeanWrappers, AttributeNodeForPojo rootNode) { for (MBeanWrapper mbeanWrapper : mbeanWrappers) { Eventloop eventloop = mbeanWrapper.getEventloop(); List<JmxRefreshable> currentRefreshables = rootNode.getAllRefreshables(mbeanWrappe...
public class class_name { static public JSONObject recreateDocumentFromDocAndReserved(JSONObject doc, JSONObject reserved) throws Exception { JSONObject result = JSONSupport.copyObject( doc ); // Re-insert attributes that start with '_' if( null != reserved ) { Iterator<?> it = reserved.keys(); while( i...
public class class_name { static public JSONObject recreateDocumentFromDocAndReserved(JSONObject doc, JSONObject reserved) throws Exception { JSONObject result = JSONSupport.copyObject( doc ); // Re-insert attributes that start with '_' if( null != reserved ) { Iterator<?> it = reserved.keys(); while( i...
public class class_name { private void uncacheResource(CmsResource resource) { if (resource == null) { return; } if ((m_serializationPolicyPath != null) && resource.getRootPath().equals(m_serializationPolicyPath)) { m_serPolicyOffline = null; } } }
public class class_name { private void uncacheResource(CmsResource resource) { if (resource == null) { return; // depends on control dependency: [if], data = [none] } if ((m_serializationPolicyPath != null) && resource.getRootPath().equals(m_serializationPolicyPath)) { ...
public class class_name { private static String resolveSibling(String fromPath, String toPath) { // If the destination is an absolute path, nothing to do. if (toPath.startsWith("/")) { return toPath; } List<String> fromPathParts = new ArrayList<>(Arrays.asList(fromPath.split("/"))); List<Str...
public class class_name { private static String resolveSibling(String fromPath, String toPath) { // If the destination is an absolute path, nothing to do. if (toPath.startsWith("/")) { return toPath; // depends on control dependency: [if], data = [none] } List<String> fromPathParts = new ArrayLi...
public class class_name { public static List<Boolean> asList(boolean... backingArray) { if (backingArray.length == 0) { return Collections.emptyList(); } return new BooleanArrayAsList(backingArray); } }
public class class_name { public static List<Boolean> asList(boolean... backingArray) { if (backingArray.length == 0) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } return new BooleanArrayAsList(backingArray); } }
public class class_name { public static ActivityChooserModel get(Context context, String historyFileName) { synchronized (sRegistryLock) { ActivityChooserModel dataModel = sDataModelRegistry.get(historyFileName); if (dataModel == null) { dataModel = new ActivityChooserMo...
public class class_name { public static ActivityChooserModel get(Context context, String historyFileName) { synchronized (sRegistryLock) { ActivityChooserModel dataModel = sDataModelRegistry.get(historyFileName); if (dataModel == null) { dataModel = new ActivityChooserMo...
public class class_name { private boolean tryProcessOnOtherMembers(Operation operation, String serviceName, long timeoutNanos) { final OperationService operationService = nodeEngine.getOperationService(); final Collection<Member> targets = nodeEngine.getClusterService().getMembers(DATA_MEMBER_SELECTOR)...
public class class_name { private boolean tryProcessOnOtherMembers(Operation operation, String serviceName, long timeoutNanos) { final OperationService operationService = nodeEngine.getOperationService(); final Collection<Member> targets = nodeEngine.getClusterService().getMembers(DATA_MEMBER_SELECTOR)...
public class class_name { private List<BitcoinScriptWitnessItem> readListOfBitcoinScriptWitnessFromTable(ListObjectInspector loi, Object listOfScriptWitnessItemObject) { int listLength=loi.getListLength(listOfScriptWitnessItemObject); List<BitcoinScriptWitnessItem> result = new ArrayList<>(listLength); StructObjectIns...
public class class_name { private List<BitcoinScriptWitnessItem> readListOfBitcoinScriptWitnessFromTable(ListObjectInspector loi, Object listOfScriptWitnessItemObject) { int listLength=loi.getListLength(listOfScriptWitnessItemObject); List<BitcoinScriptWitnessItem> result = new ArrayList<>(listLength); StructObjectIns...