code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static CmsModuleImportData readModuleData(CmsObject cms, String importFile, I_CmsReport report) throws CmsException { CmsModuleImportData result = new CmsModuleImportData(); CmsModule module = CmsModuleImportExportHandler.readModuleFromImport(importFile); c...
public class class_name { public static CmsModuleImportData readModuleData(CmsObject cms, String importFile, I_CmsReport report) throws CmsException { CmsModuleImportData result = new CmsModuleImportData(); CmsModule module = CmsModuleImportExportHandler.readModuleFromImport(importFile); c...
public class class_name { public static synchronized boolean shutdown() { if (instance != null) { instance.markShuttingDown(); instance.interrupt(); connectionManagers.clear(); instance = null; return true; } return false; } }
public class class_name { public static synchronized boolean shutdown() { if (instance != null) { instance.markShuttingDown(); // depends on control dependency: [if], data = [none] instance.interrupt(); // depends on control dependency: [if], data = [none] connectionManagers...
public class class_name { protected CSRelatedNodeWrapper findExistingRelatedNode(final Relationship relationship, final List<CSRelatedNodeWrapper> topicRelatedNodes) { if (topicRelatedNodes != null) { // Loop over the current nodes and see if any match for (final CSRelatedNo...
public class class_name { protected CSRelatedNodeWrapper findExistingRelatedNode(final Relationship relationship, final List<CSRelatedNodeWrapper> topicRelatedNodes) { if (topicRelatedNodes != null) { // Loop over the current nodes and see if any match for (final CSRelatedNo...
public class class_name { private void setAndStartTask(ICBTask task){ task.setTaskListener(new CBTaskListener() { @Override public void onTaskStart() { lock.lock(); if (currentExecuteTaskNumber > maxTaskNumber) { try { ...
public class class_name { private void setAndStartTask(ICBTask task){ task.setTaskListener(new CBTaskListener() { @Override public void onTaskStart() { lock.lock(); if (currentExecuteTaskNumber > maxTaskNumber) { try { ...
public class class_name { private JPanel createSorterPane() { JPanel insidePanel = new JPanel(); insidePanel.setLayout(new GridBagLayout()); preview = new JTableHeader(); Sortables[] sortables = MainFrame.getInstance().getAvailableSortables(); preview.setColumnModel(new SorterTa...
public class class_name { private JPanel createSorterPane() { JPanel insidePanel = new JPanel(); insidePanel.setLayout(new GridBagLayout()); preview = new JTableHeader(); Sortables[] sortables = MainFrame.getInstance().getAvailableSortables(); preview.setColumnModel(new SorterTa...
public class class_name { @Action(name = "Customize Windows Guest", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = ...
public class class_name { @Action(name = "Customize Windows Guest", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = ...
public class class_name { @RequestMapping public ModelAndView showSearchForm(RenderRequest request, RenderResponse response) { final Map<String, Object> model = new HashMap<>(); String viewName; // Determine if the new REST search should be used if (isRestSearch(request)) { ...
public class class_name { @RequestMapping public ModelAndView showSearchForm(RenderRequest request, RenderResponse response) { final Map<String, Object> model = new HashMap<>(); String viewName; // Determine if the new REST search should be used if (isRestSearch(request)) { ...
public class class_name { public void stop() throws Throwable { if (validatorFactory != null) validatorFactory.close(); Context context = null; try { Properties properties = new Properties(); properties.setProperty(Context.PROVIDER_URL, jndiProtocol + "://" + jndi...
public class class_name { public void stop() throws Throwable { if (validatorFactory != null) validatorFactory.close(); Context context = null; try { Properties properties = new Properties(); properties.setProperty(Context.PROVIDER_URL, jndiProtocol + "://" + jndi...
public class class_name { public boolean isStartedBy(T element) { if (element == null) { return false; } return comparator.compare(element, min) == 0; } }
public class class_name { public boolean isStartedBy(T element) { if (element == null) { return false; } // depends on control dependency: [if], data = [none] return comparator.compare(element, min) == 0; } }
public class class_name { public ByteBuf tlsunwrap(ByteBuffer srcBuffer, ByteBuf dstBuf, PooledByteBufAllocator allocator) { int writerIndex = dstBuf.writerIndex(); ByteBuffer byteBuffer = dstBuf.nioBuffer(writerIndex, dstBuf.writableBytes()); while (true) { SSLEngineResult result;...
public class class_name { public ByteBuf tlsunwrap(ByteBuffer srcBuffer, ByteBuf dstBuf, PooledByteBufAllocator allocator) { int writerIndex = dstBuf.writerIndex(); ByteBuffer byteBuffer = dstBuf.nioBuffer(writerIndex, dstBuf.writableBytes()); while (true) { SSLEngineResult result;...
public class class_name { private static void addBoxes(final WPanel panel, final int amount) { for (int i = 1; i <= amount; i++) { panel.add(new BoxComponent(String.valueOf(i))); } } }
public class class_name { private static void addBoxes(final WPanel panel, final int amount) { for (int i = 1; i <= amount; i++) { panel.add(new BoxComponent(String.valueOf(i))); // depends on control dependency: [for], data = [i] } } }
public class class_name { public final Object getStatement(StatementCacheKey key) { Object stmt = statementCache.remove(key); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (stmt == null) { Tr.debug(this, tc, "No Matching Prepared Statement found...
public class class_name { public final Object getStatement(StatementCacheKey key) { Object stmt = statementCache.remove(key); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (stmt == null) { Tr.debug(this, tc, "No Matching Prepared Statement found...
public class class_name { public static <T extends V, V> Value<V> from(Optional<T> optional) { LettuceAssert.notNull(optional, "Optional must not be null"); if (optional.isPresent()) { return new Value<V>(optional.get()); } return (Value<V>) EMPTY; } }
public class class_name { public static <T extends V, V> Value<V> from(Optional<T> optional) { LettuceAssert.notNull(optional, "Optional must not be null"); if (optional.isPresent()) { return new Value<V>(optional.get()); // depends on control dependency: [if], data = [none] } ...
public class class_name { public SimpleMatrix getQ() { SimpleMatrix Q = SimpleMatrix.identity(QR.numRows()); int N = Math.min(QR.numCols(),QR.numRows()); // compute Q by first extracting the householder vectors from the columns of QR and then applying it to Q for( int j = N-1; j>= 0; ...
public class class_name { public SimpleMatrix getQ() { SimpleMatrix Q = SimpleMatrix.identity(QR.numRows()); int N = Math.min(QR.numCols(),QR.numRows()); // compute Q by first extracting the householder vectors from the columns of QR and then applying it to Q for( int j = N-1; j>= 0; ...
public class class_name { @Override public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) { if ((defaultNamespace!=null) && (namespaceUri.equals(defaultNamespace))) { return ""; } if (namespaceUri.equals(PROV_NS)) { return "...
public class class_name { @Override public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) { if ((defaultNamespace!=null) && (namespaceUri.equals(defaultNamespace))) { return ""; // depends on control dependency: [if], data = [none] } if...
public class class_name { public void setProductViewDetails(java.util.Collection<ProductViewDetail> productViewDetails) { if (productViewDetails == null) { this.productViewDetails = null; return; } this.productViewDetails = new java.util.ArrayList<ProductViewDetail>(pro...
public class class_name { public void setProductViewDetails(java.util.Collection<ProductViewDetail> productViewDetails) { if (productViewDetails == null) { this.productViewDetails = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if...
public class class_name { public void setServerLaunchConfigurations(java.util.Collection<ServerLaunchConfiguration> serverLaunchConfigurations) { if (serverLaunchConfigurations == null) { this.serverLaunchConfigurations = null; return; } this.serverLaunchConfigurations ...
public class class_name { public void setServerLaunchConfigurations(java.util.Collection<ServerLaunchConfiguration> serverLaunchConfigurations) { if (serverLaunchConfigurations == null) { this.serverLaunchConfigurations = null; // depends on control dependency: [if], data = [none] retur...
public class class_name { public void resume() { if (hasState(PAUSED)) { if (DBG) Log.v(TAG, "resume."); clearState(PAUSED); if (mContentView.isShown()) { schedule(MSG_SHOW, mNotiDisplayTime); return; } if (!mEntries....
public class class_name { public void resume() { if (hasState(PAUSED)) { if (DBG) Log.v(TAG, "resume."); clearState(PAUSED); // depends on control dependency: [if], data = [none] if (mContentView.isShown()) { schedule(MSG_SHOW, mNotiDisplayTime); // depends ...
public class class_name { public void addLast(final T node) { if ( this.firstNode == null ) { this.firstNode = node; this.lastNode = node; } else { T currentLast = this.lastNode; currentLast.setNext( node ); node.setPrevious( currentLast ); ...
public class class_name { public void addLast(final T node) { if ( this.firstNode == null ) { this.firstNode = node; // depends on control dependency: [if], data = [none] this.lastNode = node; // depends on control dependency: [if], data = [none] } else { T currentLa...
public class class_name { public MachineTime<U> dividedBy( long divisor, RoundingMode roundingMode ) { if (divisor == 1) { return this; } BigDecimal value = this.toBigDecimal().setScale(9, RoundingMode.FLOOR).divide(new BigDecimal(divisor), rounding...
public class class_name { public MachineTime<U> dividedBy( long divisor, RoundingMode roundingMode ) { if (divisor == 1) { return this; // depends on control dependency: [if], data = [none] } BigDecimal value = this.toBigDecimal().setScale(9, Roundi...
public class class_name { public void setMaxDateCreated(String maxCreationDate) { if ((CmsStringUtil.isNotEmptyOrWhitespaceOnly(maxCreationDate)) && (!maxCreationDate.equals("0"))) { m_searchParams.setMaxDateCreated(Long.parseLong(maxCreationDate)); } else { m_searchParams.setM...
public class class_name { public void setMaxDateCreated(String maxCreationDate) { if ((CmsStringUtil.isNotEmptyOrWhitespaceOnly(maxCreationDate)) && (!maxCreationDate.equals("0"))) { m_searchParams.setMaxDateCreated(Long.parseLong(maxCreationDate)); // depends on control dependency: [if], data = [...
public class class_name { public static List primitiveArrayToList(Object array) { int size = Array.getLength(array); List list = new ArrayList(size); for (int i = 0; i < size; i++) { Object item = Array.get(array, i); if (item != null && item.getClass().isArray() && item...
public class class_name { public static List primitiveArrayToList(Object array) { int size = Array.getLength(array); List list = new ArrayList(size); for (int i = 0; i < size; i++) { Object item = Array.get(array, i); if (item != null && item.getClass().isArray() && item...
public class class_name { public void addParseBuffer(WsByteBuffer buffer) { // increment where we're about to put the new buffer in int index = ++this.parseIndex; if (null == this.parseBuffers) { // first parse buffer to track this.parseBuffers = new WsByteBuffer[BUFFER...
public class class_name { public void addParseBuffer(WsByteBuffer buffer) { // increment where we're about to put the new buffer in int index = ++this.parseIndex; if (null == this.parseBuffers) { // first parse buffer to track this.parseBuffers = new WsByteBuffer[BUFFER...
public class class_name { public Expression withOr(Expression... or) { if (this.or == null) { setOr(new java.util.ArrayList<Expression>(or.length)); } for (Expression ele : or) { this.or.add(ele); } return this; } }
public class class_name { public Expression withOr(Expression... or) { if (this.or == null) { setOr(new java.util.ArrayList<Expression>(or.length)); // depends on control dependency: [if], data = [none] } for (Expression ele : or) { this.or.add(ele); // depends on contro...
public class class_name { public final EObject ruleXVariableDeclaration() throws RecognitionException { EObject current = null; Token lv_writeable_1_0=null; Token otherlv_2=null; Token otherlv_6=null; EObject lv_type_3_0 = null; AntlrDatatypeRuleToken lv_name_4_0 = nul...
public class class_name { public final EObject ruleXVariableDeclaration() throws RecognitionException { EObject current = null; Token lv_writeable_1_0=null; Token otherlv_2=null; Token otherlv_6=null; EObject lv_type_3_0 = null; AntlrDatatypeRuleToken lv_name_4_0 = nul...
public class class_name { public final void setTimeZone(final TimeZone timezone) { this.timezone = timezone; if (timezone != null) { getFormat().setTimeZone(timezone); } else { resetTimeZone(); } time = new Time(time, getFormat().getTimeZone(), false); } }
public class class_name { public final void setTimeZone(final TimeZone timezone) { this.timezone = timezone; if (timezone != null) { getFormat().setTimeZone(timezone); // depends on control dependency: [if], data = [(timezone] } else { resetTimeZone(); // depends on control dependency: [if], data = [none] ...
public class class_name { private static PersistenceUnitMetadata findWithinDeployment(DeploymentUnit unit, String persistenceUnitName) { if (traceEnabled) { ROOT_LOGGER.tracef("pu findWithinDeployment searching for %s", persistenceUnitName); } for (ResourceRoot root : DeploymentUti...
public class class_name { private static PersistenceUnitMetadata findWithinDeployment(DeploymentUnit unit, String persistenceUnitName) { if (traceEnabled) { ROOT_LOGGER.tracef("pu findWithinDeployment searching for %s", persistenceUnitName); // depends on control dependency: [if], data = [none] ...
public class class_name { protected void threadStop() { if (thread == null) { return; } threadDone = true; thread.interrupt(); try { thread.join(); } catch (InterruptedException e) { ; } thread = null; ...
public class class_name { protected void threadStop() { if (thread == null) { return; // depends on control dependency: [if], data = [none] } threadDone = true; thread.interrupt(); try { thread.join(); // depends on control dependency: [try], data = [no...
public class class_name { public void finished() { final ScheduledFuture<?> scheduled = nextCall.getAndSet(null); if (scheduled != null) { scheduled.cancel(true); } } }
public class class_name { public void finished() { final ScheduledFuture<?> scheduled = nextCall.getAndSet(null); if (scheduled != null) { scheduled.cancel(true); // depends on control dependency: [if], data = [none] } } }
public class class_name { protected static String getCacheKey(URL url) { String protocol = url.getProtocol().toLowerCase(Locale.ROOT); String host = url.getHost().toLowerCase(Locale.ROOT); int port = url.getPort(); if (port == -1) { port = url.getDefaultPort(); } ...
public class class_name { protected static String getCacheKey(URL url) { String protocol = url.getProtocol().toLowerCase(Locale.ROOT); String host = url.getHost().toLowerCase(Locale.ROOT); int port = url.getPort(); if (port == -1) { port = url.getDefaultPort(); // depends o...
public class class_name { @PublicAPI(usage = ACCESS) public static Set<Location> of(Iterable<URL> urls) { ImmutableSet.Builder<Location> result = ImmutableSet.builder(); for (URL url : urls) { result.add(Location.of(url)); } return result.build(); } }
public class class_name { @PublicAPI(usage = ACCESS) public static Set<Location> of(Iterable<URL> urls) { ImmutableSet.Builder<Location> result = ImmutableSet.builder(); for (URL url : urls) { result.add(Location.of(url)); // depends on control dependency: [for], data = [url] } ...
public class class_name { public void load(ClassLoader classLoader) { Map<String, GroovyRunner> map = runnerMap; // direct read if (map == null) { map = getMap(); // initialize and load (recursive call), result ignored if (classLoader == null) { // getMap() alrea...
public class class_name { public void load(ClassLoader classLoader) { Map<String, GroovyRunner> map = runnerMap; // direct read if (map == null) { map = getMap(); // initialize and load (recursive call), result ignored // depends on control dependency: [if], data = [none] if (cl...
public class class_name { private void jenkins48775workaround(Proxy proxy, URL url) { if ("https".equals(url.getProtocol()) && !authCacheSeeded && proxy != Proxy.NO_PROXY) { HttpURLConnection preAuth = null; try { // We do not care if there is anything at this URL, all w...
public class class_name { private void jenkins48775workaround(Proxy proxy, URL url) { if ("https".equals(url.getProtocol()) && !authCacheSeeded && proxy != Proxy.NO_PROXY) { HttpURLConnection preAuth = null; try { // We do not care if there is anything at this URL, all w...
public class class_name { private void updateGUI(SimpleImageSequence<T> sequence) { BufferedImage orig = sequence.getGuiImage(); Graphics2D g2 = orig.createGraphics(); // draw tracks with semi-unique colors so you can track individual points with your eyes for( PointTrack p : tracker.getActiveTracks(null) ) {...
public class class_name { private void updateGUI(SimpleImageSequence<T> sequence) { BufferedImage orig = sequence.getGuiImage(); Graphics2D g2 = orig.createGraphics(); // draw tracks with semi-unique colors so you can track individual points with your eyes for( PointTrack p : tracker.getActiveTracks(null) ) {...
public class class_name { public void beforeBatch(PreparedStatement stmt) throws PlatformException { // Check for Oracle batching support final Method methodSetExecuteBatch; final Method methodSendBatch; methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PAR...
public class class_name { public void beforeBatch(PreparedStatement stmt) throws PlatformException { // Check for Oracle batching support final Method methodSetExecuteBatch; final Method methodSendBatch; methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PAR...
public class class_name { protected void initVisibilities(Element root, CmsXmlContentDefinition contentDefinition) { m_visibilityConfigurations = new HashMap<String, VisibilityConfiguration>(); String mainHandlerClassName = root.attributeValue(APPINFO_ATTR_CLASS); // using self as the default ...
public class class_name { protected void initVisibilities(Element root, CmsXmlContentDefinition contentDefinition) { m_visibilityConfigurations = new HashMap<String, VisibilityConfiguration>(); String mainHandlerClassName = root.attributeValue(APPINFO_ATTR_CLASS); // using self as the default ...
public class class_name { public void marshall(DescribeClusterRequest describeClusterRequest, ProtocolMarshaller protocolMarshaller) { if (describeClusterRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(DescribeClusterRequest describeClusterRequest, ProtocolMarshaller protocolMarshaller) { if (describeClusterRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { @Override public void removeQueue(final String queueName, final boolean all) { for (final Worker worker : this.workers) { worker.removeQueue(queueName, all); } } }
public class class_name { @Override public void removeQueue(final String queueName, final boolean all) { for (final Worker worker : this.workers) { worker.removeQueue(queueName, all); // depends on control dependency: [for], data = [worker] } } }
public class class_name { public static IAtomContainer makeDeepCopy(IAtomContainer container) { IAtomContainer newAtomContainer = container.getBuilder().newInstance(IAtomContainer.class); // Deep copy of the Atoms IAtom[] atoms = copyAtoms(container, newAtomContainer); // De...
public class class_name { public static IAtomContainer makeDeepCopy(IAtomContainer container) { IAtomContainer newAtomContainer = container.getBuilder().newInstance(IAtomContainer.class); // Deep copy of the Atoms IAtom[] atoms = copyAtoms(container, newAtomContainer); // De...
public class class_name { public int getCount(IESigType eSigType) { int result = 0; for (ESigItem item : items) { if (item.getESigType().equals(eSigType)) { result++; } } return result; } }
public class class_name { public int getCount(IESigType eSigType) { int result = 0; for (ESigItem item : items) { if (item.getESigType().equals(eSigType)) { result++; // depends on control dependency: [if], data = [none] } } retu...
public class class_name { public AObject find(String name) { for (int i = 0; i < nextid; i++) { if (objects[i].getName().equals(name)) { return objects[i]; } } return null; } }
public class class_name { public AObject find(String name) { for (int i = 0; i < nextid; i++) { if (objects[i].getName().equals(name)) { return objects[i]; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { InvocationContext getInvocationContextWithImplicitTransaction(int keyCount, boolean forceCreateTransaction) { InvocationContext invocationContext; boolean txInjected = false; if (transactional) { Transaction transaction = getOngoingTransaction(true); if (tr...
public class class_name { InvocationContext getInvocationContextWithImplicitTransaction(int keyCount, boolean forceCreateTransaction) { InvocationContext invocationContext; boolean txInjected = false; if (transactional) { Transaction transaction = getOngoingTransaction(true); if (tr...
public class class_name { public Structure getStructureForDomain(ScopDomain domain, ScopDatabase scopDatabase, boolean strictLigandHandling) throws IOException, StructureException { String pdbId = domain.getPdbId(); Structure fullStructure = getStructureForPdbId(pdbId); Structure structure = domain.reduce(fu...
public class class_name { public Structure getStructureForDomain(ScopDomain domain, ScopDatabase scopDatabase, boolean strictLigandHandling) throws IOException, StructureException { String pdbId = domain.getPdbId(); Structure fullStructure = getStructureForPdbId(pdbId); Structure structure = domain.reduce(fu...
public class class_name { private void checkJodaSetYear() { int COUNT = COUNT_FAST; // Is it fair to use only MutableDateTime here? You decide. MutableDateTime dt = new MutableDateTime(GJChronology.getInstance()); for (int i = 0; i < AVERAGE; i++) { start("Joda", "setYear");...
public class class_name { private void checkJodaSetYear() { int COUNT = COUNT_FAST; // Is it fair to use only MutableDateTime here? You decide. MutableDateTime dt = new MutableDateTime(GJChronology.getInstance()); for (int i = 0; i < AVERAGE; i++) { start("Joda", "setYear");...
public class class_name { public void marshall(UpdateSchemaRequest updateSchemaRequest, ProtocolMarshaller protocolMarshaller) { if (updateSchemaRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(UpdateSchemaRequest updateSchemaRequest, ProtocolMarshaller protocolMarshaller) { if (updateSchemaRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { T getTemporalOfOpenEnd() { T temporal = this.end.getTemporal(); if (temporal == null) { throw new UnsupportedOperationException( "An infinite interval has no finite duration."); } else if (this.end.isClosed()) { return this.get...
public class class_name { T getTemporalOfOpenEnd() { T temporal = this.end.getTemporal(); if (temporal == null) { throw new UnsupportedOperationException( "An infinite interval has no finite duration."); } else if (this.end.isClosed()) { return this.get...
public class class_name { public static void main(String[] args) throws Exception { Logger logger = Logger.getLogger("MASReader.main"); Properties beastConfigProperties = new Properties(); String beastConfigPropertiesFile = null; if (args.length > 0) { beastConfigProperties...
public class class_name { public static void main(String[] args) throws Exception { Logger logger = Logger.getLogger("MASReader.main"); Properties beastConfigProperties = new Properties(); String beastConfigPropertiesFile = null; if (args.length > 0) { beastConfigProperties...
public class class_name { private int probe() { // Fast path for reliable well-distributed probe, available from JDK 7+. // As long as PROBE is final this branch will be inlined. if (PROBE != -1) { int probe; if ((probe = UNSAFE.getInt(Thread.currentThread(), PROBE)) == ...
public class class_name { private int probe() { // Fast path for reliable well-distributed probe, available from JDK 7+. // As long as PROBE is final this branch will be inlined. if (PROBE != -1) { int probe; if ((probe = UNSAFE.getInt(Thread.currentThread(), PROBE)) == ...
public class class_name { @SuppressWarnings("unchecked") public boolean tryStart(final ProcessorGraphNode processorGraphNode) { this.processorLock.lock(); final boolean canStart; try { if (isRunning(processorGraphNode) || isFinished(processorGraphNode) || !al...
public class class_name { @SuppressWarnings("unchecked") public boolean tryStart(final ProcessorGraphNode processorGraphNode) { this.processorLock.lock(); final boolean canStart; try { if (isRunning(processorGraphNode) || isFinished(processorGraphNode) || !al...
public class class_name { private static Object coerceNumber(Object value) { if ( value instanceof Number && !(value instanceof BigDecimal) ) { return getBigDecimalOrNull( value ); } else { return value; } } }
public class class_name { private static Object coerceNumber(Object value) { if ( value instanceof Number && !(value instanceof BigDecimal) ) { return getBigDecimalOrNull( value ); // depends on control dependency: [if], data = [none] } else { return value; // de...
public class class_name { void notifyMessagePreConsume(SITransaction transaction) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePreConsume", transaction); if (!(transaction instanceof SIXAResource)) { ...
public class class_name { void notifyMessagePreConsume(SITransaction transaction) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePreConsume", transaction); if (!(transaction instanceof SIXAResource)) { ...
public class class_name { private ImmutableList<Writer> sortedWriters() { ImmutableList.Builder<Writer> sorted = ImmutableList.builder(); // invertedDependencies is intended to just be a 'view' on dependencies, so when dependencies is modified // we should always also modify invertedDependenci...
public class class_name { private ImmutableList<Writer> sortedWriters() { ImmutableList.Builder<Writer> sorted = ImmutableList.builder(); // invertedDependencies is intended to just be a 'view' on dependencies, so when dependencies is modified // we should always also modify invertedDependenci...
public class class_name { RLSSuspendToken registerSuspend(int timeout) { if (tc.isEntryEnabled()) Tr.entry(tc, "registerSuspend", new Integer(timeout)); // Generate the suspend token // RLSSuspendToken token = new RLSSuspendTokenImpl(); RLSSuspendToken token = Configuration.ge...
public class class_name { RLSSuspendToken registerSuspend(int timeout) { if (tc.isEntryEnabled()) Tr.entry(tc, "registerSuspend", new Integer(timeout)); // Generate the suspend token // RLSSuspendToken token = new RLSSuspendTokenImpl(); RLSSuspendToken token = Configuration.ge...
public class class_name { private static String getAnchorAssociateChartId( final CTTwoCellAnchor ctanchor) { if (ctanchor.getGraphicFrame() == null) { return null; } Node parentNode = ctanchor.getGraphicFrame().getGraphic() .getGraphicData().get...
public class class_name { private static String getAnchorAssociateChartId( final CTTwoCellAnchor ctanchor) { if (ctanchor.getGraphicFrame() == null) { return null; // depends on control dependency: [if], data = [none] } Node parentNode = ctanchor.getGraphicFrame...
public class class_name { public ServiceCall<TranslationResult> translate(TranslateOptions translateOptions) { Validator.notNull(translateOptions, "translateOptions cannot be null"); String[] pathSegments = { "v3/translate" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(get...
public class class_name { public ServiceCall<TranslationResult> translate(TranslateOptions translateOptions) { Validator.notNull(translateOptions, "translateOptions cannot be null"); String[] pathSegments = { "v3/translate" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(get...
public class class_name { private final void decode(ByteBuffer buffer, TextureFormat fmt) throws IOException { byte[] curLine = new byte[width * bytesPerPixel + 1]; byte[] prevLine = new byte[width * bytesPerPixel + 1]; final Inflater inflater = new Inflater(); try { for (int y = 0; y < height; y++) { r...
public class class_name { private final void decode(ByteBuffer buffer, TextureFormat fmt) throws IOException { byte[] curLine = new byte[width * bytesPerPixel + 1]; byte[] prevLine = new byte[width * bytesPerPixel + 1]; final Inflater inflater = new Inflater(); try { for (int y = 0; y < height; y++) { r...
public class class_name { public static void generateFieldParser(BindTypeContext context, PersistType persistType, BindProperty property, Modifier... modifiers) { Converter<String, String> format = CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_CAMEL); MethodSpec.Builder methodBuilder = MethodSpec.methodBuil...
public class class_name { public static void generateFieldParser(BindTypeContext context, PersistType persistType, BindProperty property, Modifier... modifiers) { Converter<String, String> format = CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_CAMEL); MethodSpec.Builder methodBuilder = MethodSpec.methodBuil...
public class class_name { public String toAbsolute(String target) { if (isNotInitialized()) { return getMessage(NOT_INITIALIZED); } return CmsLinkManager.getAbsoluteUri(target, getController().getCurrentRequest().getElementUri()); } }
public class class_name { public String toAbsolute(String target) { if (isNotInitialized()) { return getMessage(NOT_INITIALIZED); // depends on control dependency: [if], data = [none] } return CmsLinkManager.getAbsoluteUri(target, getController().getCurrentRequest().getElementUri()...
public class class_name { public static ICalDataType find(String value) { if ("CID".equalsIgnoreCase(value)) { //"CID" is an alias for "CONTENT-ID" (vCal 1.0, p.17) return CONTENT_ID; } return enums.find(value); } }
public class class_name { public static ICalDataType find(String value) { if ("CID".equalsIgnoreCase(value)) { //"CID" is an alias for "CONTENT-ID" (vCal 1.0, p.17) return CONTENT_ID; // depends on control dependency: [if], data = [none] } return enums.find(value); } }
public class class_name { public boolean isReallocationRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isReallocationRequired"); SibTr.exit(tc, "isReallocationRequired", Boolean.valueOf(reallocateOnCommit)); } return reallocateOnComm...
public class class_name { public boolean isReallocationRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isReallocationRequired"); // depends on control dependency: [if], data = [none] SibTr.exit(tc, "isReallocationRequired", Boolean.valueOf(re...
public class class_name { int writeValueSet(int type, Object id, ValueSet vs, boolean all) { final String methodName = "writeValueSet()"; int returnCode = NO_EXCEPTION; Exception diskException = null; HashtableOnDisk cache_instance = null; if (vs.size() == 0) { retur...
public class class_name { int writeValueSet(int type, Object id, ValueSet vs, boolean all) { final String methodName = "writeValueSet()"; int returnCode = NO_EXCEPTION; Exception diskException = null; HashtableOnDisk cache_instance = null; if (vs.size() == 0) { retur...
public class class_name { public void update(BaseCell cell) { if (cell != null && mGroupBasicAdapter != null) { int position = mGroupBasicAdapter.getPositionByItem(cell); if (position >= 0) { cell.extras.put("_flag_invalidate_", true); mGroupBasicAdapter....
public class class_name { public void update(BaseCell cell) { if (cell != null && mGroupBasicAdapter != null) { int position = mGroupBasicAdapter.getPositionByItem(cell); if (position >= 0) { cell.extras.put("_flag_invalidate_", true); // depends on control dependency: [...
public class class_name { public static LinkedHashMap<String, String> getProjectMetadata( IHMConnection connection ) throws Exception { LinkedHashMap<String, String> metadataMap = new LinkedHashMap<>(); try (IHMStatement statement = connection.createStatement()) { statement.setQueryTimeout(...
public class class_name { public static LinkedHashMap<String, String> getProjectMetadata( IHMConnection connection ) throws Exception { LinkedHashMap<String, String> metadataMap = new LinkedHashMap<>(); try (IHMStatement statement = connection.createStatement()) { statement.setQueryTimeout(...
public class class_name { static CharInput asCharInput(final CharSequence chars) { checkNotNull(chars); return new CharInput() { int index = 0; @Override public int read() { if (index < chars.length()) { return chars.charAt(index++); } else { return -1; ...
public class class_name { static CharInput asCharInput(final CharSequence chars) { checkNotNull(chars); return new CharInput() { int index = 0; @Override public int read() { if (index < chars.length()) { return chars.charAt(index++); // depends on control dependency: [if], ...
public class class_name { public String getString(Enum<?> key, String defaultValue) { if (key == null) { return defaultValue; } return getString(key.name(), defaultValue); } }
public class class_name { public String getString(Enum<?> key, String defaultValue) { if (key == null) { return defaultValue; // depends on control dependency: [if], data = [none] } return getString(key.name(), defaultValue); } }
public class class_name { public String attributes() { if (attributes==null && attributeMap==null) return noAttributes; StringBuffer buf = new StringBuffer(128); synchronized(buf) { if (attributeMap!=null) { Enumeration e = attrib...
public class class_name { public String attributes() { if (attributes==null && attributeMap==null) return noAttributes; StringBuffer buf = new StringBuffer(128); synchronized(buf) { if (attributeMap!=null) { Enumeration e = attrib...
public class class_name { @Override /*! #if ($TemplateOptions.KTypePrimitive) public KType [] toArray() { #else !*/ public Object[] toArray() { /*! #end !*/ final KType[] cloned = Intrinsics.<KType> newArray(size()); int j = 0; if (hasEmptyKey) { cloned[j++] = Intrinsics.empty(); }...
public class class_name { @Override /*! #if ($TemplateOptions.KTypePrimitive) public KType [] toArray() { #else !*/ public Object[] toArray() { /*! #end !*/ final KType[] cloned = Intrinsics.<KType> newArray(size()); int j = 0; if (hasEmptyKey) { cloned[j++] = Intrinsics.empty(); // de...
public class class_name { @SuppressWarnings({ "unchecked", "rawtypes" }) protected void addStoreToSession(String store) { Exception initializationException = null; storeNames.add(store); for(Node node: nodesToStream) { SocketDestination destination = null; Socket...
public class class_name { @SuppressWarnings({ "unchecked", "rawtypes" }) protected void addStoreToSession(String store) { Exception initializationException = null; storeNames.add(store); for(Node node: nodesToStream) { SocketDestination destination = null; Socket...
public class class_name { public Coin getFee() { Coin fee = Coin.ZERO; if (inputs.isEmpty() || outputs.isEmpty()) // Incomplete transaction return null; for (TransactionInput input : inputs) { if (input.getValue() == null) return null; fee = f...
public class class_name { public Coin getFee() { Coin fee = Coin.ZERO; if (inputs.isEmpty() || outputs.isEmpty()) // Incomplete transaction return null; for (TransactionInput input : inputs) { if (input.getValue() == null) return null; fee = f...
public class class_name { @Nullable MultiTaskSlot getUnresolvedRootSlot(AbstractID groupId) { for (MultiTaskSlot multiTaskSlot : unresolvedRootSlots.values()) { if (!multiTaskSlot.contains(groupId)) { return multiTaskSlot; } } return null; } }
public class class_name { @Nullable MultiTaskSlot getUnresolvedRootSlot(AbstractID groupId) { for (MultiTaskSlot multiTaskSlot : unresolvedRootSlots.values()) { if (!multiTaskSlot.contains(groupId)) { return multiTaskSlot; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { public static CreateRequest checkRequest(final FormItemList formItemList, final CreateResponse createResponse) { if (formItemList != null) { final CreateRequestType type = checkType(formItemList, createResponse); if (type != null) { return new CreateRequest(type); } }...
public class class_name { public static CreateRequest checkRequest(final FormItemList formItemList, final CreateResponse createResponse) { if (formItemList != null) { final CreateRequestType type = checkType(formItemList, createResponse); if (type != null) { return new CreateRequest(type); // depen...
public class class_name { protected URL[] getUrls(File directory) throws MalformedURLException, IOException { List<URL> list = new LinkedList<URL>(); if (directory.exists() && directory.isDirectory()) { // Add directory list.add(directory.toURI().toURL()); // Add the c...
public class class_name { protected URL[] getUrls(File directory) throws MalformedURLException, IOException { List<URL> list = new LinkedList<URL>(); if (directory.exists() && directory.isDirectory()) { // Add directory list.add(directory.toURI().toURL()); // Add the c...
public class class_name { public Object getColumnValue(String columnName) { for ( int i = 0; i < getColumnNames().length; i++ ) { String name = getColumnNames()[i]; if ( name.equals( columnName ) ) { return getColumnValues()[i]; } } throw new AssertionFailure( String.format( "Given column %s is...
public class class_name { public Object getColumnValue(String columnName) { for ( int i = 0; i < getColumnNames().length; i++ ) { String name = getColumnNames()[i]; if ( name.equals( columnName ) ) { return getColumnValues()[i]; // depends on control dependency: [if], data = [none] } } throw new As...
public class class_name { @Pure public static String getPreferredAttributeValueForRoadType(RoadType type) { final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class); if (prefs != null) { final String v = prefs.get("ROAD_TYPE_VALUE_" + type.name(), null); //$NON-NLS-1$ if (v != nu...
public class class_name { @Pure public static String getPreferredAttributeValueForRoadType(RoadType type) { final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class); if (prefs != null) { final String v = prefs.get("ROAD_TYPE_VALUE_" + type.name(), null); //$NON-NLS-1$ if (v != nu...
public class class_name { public static long checkPreconditionL( final long value, final LongPredicate predicate, final LongFunction<String> describer) { final boolean ok; try { ok = predicate.test(value); } catch (final Throwable e) { final Violations violations = singleViolation...
public class class_name { public static long checkPreconditionL( final long value, final LongPredicate predicate, final LongFunction<String> describer) { final boolean ok; try { ok = predicate.test(value); // depends on control dependency: [try], data = [none] } catch (final Throwable e...
public class class_name { public void executeReport(final Locale locale) throws MavenReportException { locator.addSearchPath(FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath()); locator.addSearchPath("url", ""); locator.setOutputDirectory(new File(project.ge...
public class class_name { public void executeReport(final Locale locale) throws MavenReportException { locator.addSearchPath(FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath()); locator.addSearchPath("url", ""); locator.setOutputDirectory(new File(project.ge...
public class class_name { protected Map<String, String> getElementAttributes() { // Preserve order of attributes Map<String, String> attrs = new HashMap<>(); if (this.getInputs() != null) { attrs.put("input", this.getInputsAsString()); } if (this.getAction() != null...
public class class_name { protected Map<String, String> getElementAttributes() { // Preserve order of attributes Map<String, String> attrs = new HashMap<>(); if (this.getInputs() != null) { attrs.put("input", this.getInputsAsString()); // depends on control dependency: [if], data =...
public class class_name { public boolean addStylesFontFaceContainerStyle(final FontFaceContainerStyle ffcStyle) { final FontFace fontFace = ffcStyle.getFontFace(); if (fontFace != null) { this.fontFaces.add(fontFace); } return this.addStylesStyle(ffcStyle); } }
public class class_name { public boolean addStylesFontFaceContainerStyle(final FontFaceContainerStyle ffcStyle) { final FontFace fontFace = ffcStyle.getFontFace(); if (fontFace != null) { this.fontFaces.add(fontFace); // depends on control dependency: [if], data = [(fontFace] } ...
public class class_name { public static void printMatrix(int rows, int cols, Matrix m) { for(int col_num = 0; col_num < cols; col_num++) { for (int row_num = 0; row_num < rows; row_num++) { System.out.print(m.get(row_num,col_num) + " "); } System.out.print("\...
public class class_name { public static void printMatrix(int rows, int cols, Matrix m) { for(int col_num = 0; col_num < cols; col_num++) { for (int row_num = 0; row_num < rows; row_num++) { System.out.print(m.get(row_num,col_num) + " "); // depends on control dependency: [for], data...
public class class_name { public static BufferedImage renderLabeled(GrayS32 labelImage, int numRegions, BufferedImage out) { int colors[] = new int[numRegions]; Random rand = new Random(123); for( int i = 0; i < colors.length; i++ ) { colors[i] = rand.nextInt(); } return renderLabeled(labelImage, color...
public class class_name { public static BufferedImage renderLabeled(GrayS32 labelImage, int numRegions, BufferedImage out) { int colors[] = new int[numRegions]; Random rand = new Random(123); for( int i = 0; i < colors.length; i++ ) { colors[i] = rand.nextInt(); // depends on control dependency: [for], data...
public class class_name { public Object getBlockEventResult() { Object result = eventResultCache.get(); if (result != null) { return result; } if (eventResultHandler != null) { result = eventResultHandler.getBlockedValue(); if (result != null){ if (!eventResultCache.compareAndSet(null, r...
public class class_name { public Object getBlockEventResult() { Object result = eventResultCache.get(); if (result != null) { return result; // depends on control dependency: [if], data = [none] } if (eventResultHandler != null) { result = eventResultHandler.getBlockedValue(); // depends on cont...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("VISIBILITY".equals(EVENT_TYPE)) { boolean isDateVisible = clock.isDateVisible(); dateText.setVisible(isDateVisible); dateText.setManaged(is...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("VISIBILITY".equals(EVENT_TYPE)) { boolean isDateVisible = clock.isDateVisible(); dateText.setVisible(isDateVisible); // depends on control dependency: ...
public class class_name { public void checkInternalState(String msg, boolean linkedOnly, Map<String,Source> srcs) { boolean baad = false; Map<String,Source> original = new HashMap<String,Source>(); Map<String,Source> calculated = new HashMap<String,Source>(); for (String s : sources.ke...
public class class_name { public void checkInternalState(String msg, boolean linkedOnly, Map<String,Source> srcs) { boolean baad = false; Map<String,Source> original = new HashMap<String,Source>(); Map<String,Source> calculated = new HashMap<String,Source>(); for (String s : sources.ke...
public class class_name { public static byte[] hex2byte(String str) { byte[] bytes = str.getBytes(); if ((bytes.length % 2) != 0) { throw new IllegalArgumentException(); } byte[] b2 = new byte[bytes.length / 2]; for (int n = 0; n < bytes.length; n += 2) { ...
public class class_name { public static byte[] hex2byte(String str) { byte[] bytes = str.getBytes(); if ((bytes.length % 2) != 0) { throw new IllegalArgumentException(); } byte[] b2 = new byte[bytes.length / 2]; for (int n = 0; n < bytes.length; n += 2) { ...
public class class_name { @Override public void filter(Document document, Map<String, String> cleaningParameters) { List<Element> fontTags = filterDescendants(document.getDocumentElement(), new String[] { TAG_FONT }); for (Element fontTag : fontTags) { Element span = document.create...
public class class_name { @Override public void filter(Document document, Map<String, String> cleaningParameters) { List<Element> fontTags = filterDescendants(document.getDocumentElement(), new String[] { TAG_FONT }); for (Element fontTag : fontTags) { Element span = document.create...
public class class_name { private AdvancedModelWrapper updateEOByUpdatedModel(EDBModelObject reference, AdvancedModelWrapper model, Map<Object, AdvancedModelWrapper> updated) { ModelDescription source = model.getModelDescription(); ModelDescription description = reference.getModelDescriptio...
public class class_name { private AdvancedModelWrapper updateEOByUpdatedModel(EDBModelObject reference, AdvancedModelWrapper model, Map<Object, AdvancedModelWrapper> updated) { ModelDescription source = model.getModelDescription(); ModelDescription description = reference.getModelDescriptio...
public class class_name { public Content getSerializableFields(String heading, Content serializableFieldsTree) { HtmlTree li = new HtmlTree(HtmlTag.LI); li.addStyle(HtmlStyle.blockList); if (serializableFieldsTree.isValid()) { Content headingContent = new StringContent(heading); ...
public class class_name { public Content getSerializableFields(String heading, Content serializableFieldsTree) { HtmlTree li = new HtmlTree(HtmlTag.LI); li.addStyle(HtmlStyle.blockList); if (serializableFieldsTree.isValid()) { Content headingContent = new StringContent(heading); ...
public class class_name { @Override public final IFillerObjectFields<?> lazyGet(//NOPMD Rule:DoubleCheckedLocking final Map<String, Object> pAddParam, final Class<?> pBeanClass) throws Exception { // There is no way to get from Map partially initialized bean // in this double-checked locking implem...
public class class_name { @Override public final IFillerObjectFields<?> lazyGet(//NOPMD Rule:DoubleCheckedLocking final Map<String, Object> pAddParam, final Class<?> pBeanClass) throws Exception { // There is no way to get from Map partially initialized bean // in this double-checked locking implem...
public class class_name { public SessionInfo getLockSessionInfo(Task objSession, String strUserName) { if (objSession == null) { Utility.getLogger().warning("null session"); return new SessionInfo(0, strUserName); // } SessionInfo intSession = (SessionIn...
public class class_name { public SessionInfo getLockSessionInfo(Task objSession, String strUserName) { if (objSession == null) { Utility.getLogger().warning("null session"); // depends on control dependency: [if], data = [none] return new SessionInfo(0, strUserName); // ...
public class class_name { public synchronized void setOption(String key, String value) { if (key == null || value == null) { return; } config.put(key, value); } }
public class class_name { public synchronized void setOption(String key, String value) { if (key == null || value == null) { return; // depends on control dependency: [if], data = [none] } config.put(key, value); } }
public class class_name { public double highestEquivalentValue(final double value) { double nextNonEquivalentValue = nextNonEquivalentValue(value); // Theoretically, nextNonEquivalentValue - ulp(nextNonEquivalentValue) == nextNonEquivalentValue // is possible (if the ulp size switches right at ...
public class class_name { public double highestEquivalentValue(final double value) { double nextNonEquivalentValue = nextNonEquivalentValue(value); // Theoretically, nextNonEquivalentValue - ulp(nextNonEquivalentValue) == nextNonEquivalentValue // is possible (if the ulp size switches right at ...
public class class_name { public void resetAutoLoadLastLoadTime(CacheKeyTO cacheKey) { if (null == autoLoadMap) { return; } AutoLoadTO autoLoadTO = autoLoadMap.get(cacheKey); if (null != autoLoadTO && !autoLoadTO.isLoading()) { autoLoadTO.setLastLoadTime(1L...
public class class_name { public void resetAutoLoadLastLoadTime(CacheKeyTO cacheKey) { if (null == autoLoadMap) { return; // depends on control dependency: [if], data = [none] } AutoLoadTO autoLoadTO = autoLoadMap.get(cacheKey); if (null != autoLoadTO && !autoLoadTO.isL...
public class class_name { public void marshall(ProviderUserIdentifierType providerUserIdentifierType, ProtocolMarshaller protocolMarshaller) { if (providerUserIdentifierType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(ProviderUserIdentifierType providerUserIdentifierType, ProtocolMarshaller protocolMarshaller) { if (providerUserIdentifierType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { @Nonnull public static String normalizeFile(@Nonnull String path, String extension) { path = path.replace("\\", "/"); if (path.startsWith("/")) { path = path.substring(1); } if (extension != null && !extension.startsWith(".")) { exte...
public class class_name { @Nonnull public static String normalizeFile(@Nonnull String path, String extension) { path = path.replace("\\", "/"); if (path.startsWith("/")) { path = path.substring(1); // depends on control dependency: [if], data = [none] } if (extension != ...
public class class_name { private static String getTypeInfo(List<Object> list) { StringBuilder s = new StringBuilder(); for (Object o : list) { if (s.length() > 0) s.append(", "); if (o == null) s.append("null"); else { ...
public class class_name { private static String getTypeInfo(List<Object> list) { StringBuilder s = new StringBuilder(); for (Object o : list) { if (s.length() > 0) s.append(", "); if (o == null) s.append("null"); else { ...
public class class_name { public URI toURI() { String url = toString(); try { return new URI(url); } catch (URISyntaxException e) { throw new RuntimeException("Cannot convert to URI: " + url, e); } } }
public class class_name { public URI toURI() { String url = toString(); try { return new URI(url); // depends on control dependency: [try], data = [none] } catch (URISyntaxException e) { throw new RuntimeException("Cannot convert to URI: " + url, e); } // depends...
public class class_name { public boolean shutdown() { mServer.shutdown(); try { return mServer.awaitTermination(mServerShutdownTimeoutMs, TimeUnit.MILLISECONDS); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); return false; } finally { mServer.shutdownNow...
public class class_name { public boolean shutdown() { mServer.shutdown(); try { return mServer.awaitTermination(mServerShutdownTimeoutMs, TimeUnit.MILLISECONDS); // depends on control dependency: [try], data = [none] } catch (InterruptedException ie) { Thread.currentThread().interrupt(); ...
public class class_name { public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex) { int cnt = from[0].length; double[] toX = to[INDEX_X]; double[] toY = to[INDEX_Y]; double[] fromLat = from[latIndex]; double[] fromLon = from[...
public class class_name { public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex) { int cnt = from[0].length; double[] toX = to[INDEX_X]; double[] toY = to[INDEX_Y]; double[] fromLat = from[latIndex]; double[] fromLon = from[...
public class class_name { private static Set<TypeMirror> nonPrivateDeclaredTypes(Types typeUtils, TypeMirror type) { if (type == null) { return new TypeMirrorSet(); } else { Set<TypeMirror> declared = new TypeMirrorSet(); declared.add(type); List<TypeElement> nestedTypes = Ele...
public class class_name { private static Set<TypeMirror> nonPrivateDeclaredTypes(Types typeUtils, TypeMirror type) { if (type == null) { return new TypeMirrorSet(); // depends on control dependency: [if], data = [none] } else { Set<TypeMirror> declared = new TypeMirrorSet(); declared.add(type...
public class class_name { void resizeLog(int targetSize) throws InternalLogException, LogFullException { if (tc.isEntryEnabled()) Tr.entry(tc, "resizeLog", new Object[] { this, targetSize }); // Check that both files are actually open if (_activeFile == null || _inactiveFile ==...
public class class_name { void resizeLog(int targetSize) throws InternalLogException, LogFullException { if (tc.isEntryEnabled()) Tr.entry(tc, "resizeLog", new Object[] { this, targetSize }); // Check that both files are actually open if (_activeFile == null || _inactiveFile ==...