code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void shrink(int delta) { if (delta <= 0) { return; } int newLimit = buffer.limit() - delta; if (newLimit <= 0) { newLimit = 0; } this.buffer.limit(newLimit); } }
public class class_name { public void shrink(int delta) { if (delta <= 0) { return; // depends on control dependency: [if], data = [none] } int newLimit = buffer.limit() - delta; if (newLimit <= 0) { newLimit = 0; // depends on control dependency: [if], data = [...
public class class_name { public void drawImage (final PDInlineImage inlineImage, final float x, final float y, final float width, final float height) throws IOException { if (inTextMode) { throw new Ill...
public class class_name { public void drawImage (final PDInlineImage inlineImage, final float x, final float y, final float width, final float height) throws IOException { if (inTextMode) { throw new Ill...
public class class_name { private void processDependencies(JsonObject json, File baseDir, File rootFile, String parentPackage, Engine engine) throws AnalysisException { if (json.containsKey("dependencies")) { final JsonObject deps = json.getJsonObject("dependencies"); for (M...
public class class_name { private void processDependencies(JsonObject json, File baseDir, File rootFile, String parentPackage, Engine engine) throws AnalysisException { if (json.containsKey("dependencies")) { final JsonObject deps = json.getJsonObject("dependencies"); for (M...
public class class_name { protected final void assertDoesNotHaveDuplicates() { isNotNull(); Collection<?> duplicates = duplicatesFrom(actualAsList()); if (duplicates.isEmpty()) { return; } failIfCustomMessageIsSet(); throw failure(format("<%s> contains duplicate(s):<%s>", actual, duplicat...
public class class_name { protected final void assertDoesNotHaveDuplicates() { isNotNull(); Collection<?> duplicates = duplicatesFrom(actualAsList()); if (duplicates.isEmpty()) { return; // depends on control dependency: [if], data = [none] } failIfCustomMessageIsSet(); throw failure(form...
public class class_name { @Override public void startMonitor() { // 监听application.yml变化 executor.scheduleWithFixedDelay(() -> { try { loadRemoteConfig(); } catch (Throwable e) { logger.error("scan remote application.yml failed", e); ...
public class class_name { @Override public void startMonitor() { // 监听application.yml变化 executor.scheduleWithFixedDelay(() -> { try { loadRemoteConfig(); // depends on control dependency: [try], data = [none] } catch (Throwable e) { log...
public class class_name { public static boolean isTime(String s) { // Build a time formatter using the format specified by timeFormat DateFormat dateFormatter = new SimpleDateFormat(timeFormat); try { dateFormatter.parse(s); return true; } c...
public class class_name { public static boolean isTime(String s) { // Build a time formatter using the format specified by timeFormat DateFormat dateFormatter = new SimpleDateFormat(timeFormat); try { dateFormatter.parse(s); // depends on control dependency: [try], data...
public class class_name { protected void doNotifyListenersOfRemovedValues(Set<R> oldItems) { List<SetValueChangeListener<R>> listenersCopy = new ArrayList<SetValueChangeListener<R>>(listeners); Set<R> unmodifiable = Collections.unmodifiableSet(oldItems); for (SetValueChangeListener<R> listener ...
public class class_name { protected void doNotifyListenersOfRemovedValues(Set<R> oldItems) { List<SetValueChangeListener<R>> listenersCopy = new ArrayList<SetValueChangeListener<R>>(listeners); Set<R> unmodifiable = Collections.unmodifiableSet(oldItems); for (SetValueChangeListener<R> listener ...
public class class_name { private void generateBuilderClass() { if (data.isSkipBuilderGeneration()) { return; } List<PropertyGen> nonDerived = nonDerivedProperties(); generateSeparator(); String finalType = data.isTypeFinal() ? "final " : ""; addLine(1, "/**"...
public class class_name { private void generateBuilderClass() { if (data.isSkipBuilderGeneration()) { return; // depends on control dependency: [if], data = [none] } List<PropertyGen> nonDerived = nonDerivedProperties(); generateSeparator(); String finalType = data.i...
public class class_name { public boolean nextLine() throws IOException { while(reader.readLine(buf.delete(0, buf.length()))) { ++lineNumber; if(lengthWithoutLinefeed(buf) > 0) { return true; } } return false; } }
public class class_name { public boolean nextLine() throws IOException { while(reader.readLine(buf.delete(0, buf.length()))) { ++lineNumber; if(lengthWithoutLinefeed(buf) > 0) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public void marshall(HandshakeFilter handshakeFilter, ProtocolMarshaller protocolMarshaller) { if (handshakeFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(handsha...
public class class_name { public void marshall(HandshakeFilter handshakeFilter, ProtocolMarshaller protocolMarshaller) { if (handshakeFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(handsha...
public class class_name { void notifyAcceptOutbind(Outbind outbind) throws IllegalStateException { this.lock.lock(); try { if (this.request == null) { this.request = new OutbindRequest(outbind); this.requestCondition.signal(); } else { throw new IllegalStateException("...
public class class_name { void notifyAcceptOutbind(Outbind outbind) throws IllegalStateException { this.lock.lock(); try { if (this.request == null) { this.request = new OutbindRequest(outbind); // depends on control dependency: [if], data = [none] this.requestCondition.signal(); // depen...
public class class_name { public static <T> String concatenate(Collection<T> values, String sepStr) { assert values != null; assert sepStr != null; // Watch for the empty case first. if (values.size() == 0) { return ""; } // This handles any size >...
public class class_name { public static <T> String concatenate(Collection<T> values, String sepStr) { assert values != null; assert sepStr != null; // Watch for the empty case first. if (values.size() == 0) { return ""; // depends on control dependency: [if], data = ...
public class class_name { private void resizeStorage() { int currentElementsPerNode = maxElementsPerNode; int newElementsPerNode = (int) (currentElementsPerNode * RESIZE_MULTIPLE); if (newElementsPerNode <= currentElementsPerNode) { throw new IllegalStateException("cannot resize fix...
public class class_name { private void resizeStorage() { int currentElementsPerNode = maxElementsPerNode; int newElementsPerNode = (int) (currentElementsPerNode * RESIZE_MULTIPLE); if (newElementsPerNode <= currentElementsPerNode) { throw new IllegalStateException("cannot resize fix...
public class class_name { int createUserIndexForChains() { if (m_chainIndices == null) { m_chainIndices = new ArrayList<AttributeStreamOfInt32>(3); } AttributeStreamOfInt32 new_stream = new AttributeStreamOfInt32( m_chainData.capacity(), -1); for (int i = 0, n = m_chainIndices.size(); i < n; i++) { ...
public class class_name { int createUserIndexForChains() { if (m_chainIndices == null) { m_chainIndices = new ArrayList<AttributeStreamOfInt32>(3); // depends on control dependency: [if], data = [none] } AttributeStreamOfInt32 new_stream = new AttributeStreamOfInt32( m_chainData.capacity(), -1); for (i...
public class class_name { public boolean checkAndReturn() { // Check if any thread has been interrupted if (interrupted.get()) { // If so, interrupt this thread interrupt(); return true; } // Check if this thread has been interrupted if (Threa...
public class class_name { public boolean checkAndReturn() { // Check if any thread has been interrupted if (interrupted.get()) { // If so, interrupt this thread interrupt(); // depends on control dependency: [if], data = [none] return true; // depends on control depe...
public class class_name { public static UUID getPrevious(UUID uuid) { checkArgument(uuid.version() == 1, "Not a time UUID"); UUID min = minimumUuid(); long lsb = uuid.getLeastSignificantBits(); if (lsb > min.getLeastSignificantBits()) { return new UUID(uuid.getMostSignifican...
public class class_name { public static UUID getPrevious(UUID uuid) { checkArgument(uuid.version() == 1, "Not a time UUID"); UUID min = minimumUuid(); long lsb = uuid.getLeastSignificantBits(); if (lsb > min.getLeastSignificantBits()) { return new UUID(uuid.getMostSignifican...
public class class_name { @NonNull static Set<String> scopeCollectionToStringSet(@NonNull Collection<Scope> scopeCollection) { Set<String> stringCollection = new HashSet<>(); for (Scope scope : scopeCollection) { stringCollection.add(scope.name()); } return stringCollec...
public class class_name { @NonNull static Set<String> scopeCollectionToStringSet(@NonNull Collection<Scope> scopeCollection) { Set<String> stringCollection = new HashSet<>(); for (Scope scope : scopeCollection) { stringCollection.add(scope.name()); // depends on control dependency: [for...
public class class_name { public static String[] convertListTokenToArrayStrings( final List<Token> tokenizedSentence) { final List<String> tokensList = new ArrayList<>(); for (final Token token : tokenizedSentence) { tokensList.add(token.getTokenValue()); } return tokensList.toArray(new Str...
public class class_name { public static String[] convertListTokenToArrayStrings( final List<Token> tokenizedSentence) { final List<String> tokensList = new ArrayList<>(); for (final Token token : tokenizedSentence) { tokensList.add(token.getTokenValue()); // depends on control dependency: [for], da...
public class class_name { public ModelHandler borrowtHandlerObject(String formName) { ModelHandler modelHandler = null; try { modelHandler = handlerObjectFactory.borrowHandlerObject(formName); modelHandler.setModelMapping(modelFactory.getModelMapping(formName)); } catch (Exception ex) { Debug.logE...
public class class_name { public ModelHandler borrowtHandlerObject(String formName) { ModelHandler modelHandler = null; try { modelHandler = handlerObjectFactory.borrowHandlerObject(formName); // depends on control dependency: [try], data = [none] modelHandler.setModelMapping(modelFactory.getModelMapping...
public class class_name { private Collection<Sentence> readDoc() throws IOException { final Collection<Sentence> sentences = new ArrayList<>(); StringBuilder sentence = new StringBuilder(); Collection<ConllToken> tokens = new ArrayList<>(); int tokenStartIndex = 0; for (String l...
public class class_name { private Collection<Sentence> readDoc() throws IOException { final Collection<Sentence> sentences = new ArrayList<>(); StringBuilder sentence = new StringBuilder(); Collection<ConllToken> tokens = new ArrayList<>(); int tokenStartIndex = 0; for (String l...
public class class_name { @SuppressWarnings("unchecked") public static <K, V> Cache<K, V> getGlobalCache() { if (caches.containsKey(GLOBAL_CACHE)) { return Cast.as(caches.get(GLOBAL_CACHE)); } return register(getCacheSpec(GLOBAL_CACHE)); } }
public class class_name { @SuppressWarnings("unchecked") public static <K, V> Cache<K, V> getGlobalCache() { if (caches.containsKey(GLOBAL_CACHE)) { return Cast.as(caches.get(GLOBAL_CACHE)); // depends on control dependency: [if], data = [none] } return register(getCacheSpec(GLOBAL_CACHE)...
public class class_name { private void addActionFromRouteElem(ControllerRouteModel<Raml> elem, Resource resource) { Action action = new Action(); action.setType(ActionType.valueOf(elem.getHttpMethod().name())); action.setDescription(elem.getDescription()); //handle body addBod...
public class class_name { private void addActionFromRouteElem(ControllerRouteModel<Raml> elem, Resource resource) { Action action = new Action(); action.setType(ActionType.valueOf(elem.getHttpMethod().name())); action.setDescription(elem.getDescription()); //handle body addBod...
public class class_name { @Override public List<LocalDate> getIMMDates(final LocalDate start, final LocalDate end, final IMMPeriod period) { final List<LocalDate> dates = new ArrayList<>(); LocalDate date = start; while (true) { date = getNextIMMDate(true, date, period); ...
public class class_name { @Override public List<LocalDate> getIMMDates(final LocalDate start, final LocalDate end, final IMMPeriod period) { final List<LocalDate> dates = new ArrayList<>(); LocalDate date = start; while (true) { date = getNextIMMDate(true, date, period); ...
public class class_name { protected void viewLocationDidChange (int dx, int dy) { // inform our view trackers for (int ii = 0, ll = _trackers.size(); ii < ll; ii++) { _trackers.get(ii).viewLocationDidChange(dx, dy); } // pass the word on to our sprite/anim managers via ...
public class class_name { protected void viewLocationDidChange (int dx, int dy) { // inform our view trackers for (int ii = 0, ll = _trackers.size(); ii < ll; ii++) { _trackers.get(ii).viewLocationDidChange(dx, dy); // depends on control dependency: [for], data = [ii] } ...
public class class_name { public synchronized static void addShutdownHook(Runnable task) { if (task != null) { Runtime.getRuntime().addShutdownHook(new Thread(() -> { try { task.run(); } catch (RuntimeException rex) { Say.warn("Exception while processing shutdown-hook", rex); } })); ...
public class class_name { public synchronized static void addShutdownHook(Runnable task) { if (task != null) { Runtime.getRuntime().addShutdownHook(new Thread(() -> { try { task.run(); // depends on control dependency: [if], data = [none] } catch (RuntimeException rex) { Say.warn("Exception ...
public class class_name { @Override public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates) { if(!ctx.isDomainMode()) { return -1; } if(buffer.isEmpty()) { candidates.add("{rollout"); return 0; } try { ...
public class class_name { @Override public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates) { if(!ctx.isDomainMode()) { return -1; // depends on control dependency: [if], data = [none] } if(buffer.isEmpty()) { candidates.add("{roll...
public class class_name { private int findKey(K key) { int i = 0; for (K otherKey : this.keys) { if (this.comparator.compare(key, otherKey) == 0) { return i; } i++; } return -1; } }
public class class_name { private int findKey(K key) { int i = 0; for (K otherKey : this.keys) { if (this.comparator.compare(key, otherKey) == 0) { return i; // depends on control dependency: [if], data = [none] } i++; // depends on control dependency: [for], data = [none] } r...
public class class_name { public void run() { while (continueBackup) { if (changedListVersion < changedList.getVersion()) { cleanupBackupDir(SAVED_BACKUPS); String filename = String.valueOf(System.currentTimeMillis()); File persistFile = new File(back...
public class class_name { public void run() { while (continueBackup) { if (changedListVersion < changedList.getVersion()) { cleanupBackupDir(SAVED_BACKUPS); // depends on control dependency: [if], data = [none] String filename = String.valueOf(System.currentTimeMilli...
public class class_name { public static <T extends Comparable<? super T>> T max(T[] numberArray) { if (isEmpty(numberArray)) { throw new IllegalArgumentException("Number array must not empty !"); } T max = numberArray[0]; for (int i = 0; i < numberArray.length; i++) { if (ObjectUtil.compare(max, nu...
public class class_name { public static <T extends Comparable<? super T>> T max(T[] numberArray) { if (isEmpty(numberArray)) { throw new IllegalArgumentException("Number array must not empty !"); } T max = numberArray[0]; for (int i = 0; i < numberArray.length; i++) { if (ObjectUtil.compare(max, nu...
public class class_name { public static ListBoxModel getParsersAsListModel() { ListBoxModel items = new ListBoxModel(); for (ParserDescription parser : getAvailableParsers()) { items.add(parser.getName(), parser.getGroup()); } return items; } }
public class class_name { public static ListBoxModel getParsersAsListModel() { ListBoxModel items = new ListBoxModel(); for (ParserDescription parser : getAvailableParsers()) { items.add(parser.getName(), parser.getGroup()); // depends on control dependency: [for], data = [parser] }...
public class class_name { public void unsetActiveSession() { if (log.isInfoEnabled()) { log.info("Setting no active session for site '" + site + "'."); } if (this.activeSession != null) { this.activeSession.setActive(false); // If the active session was one with no tokens, delete it, at it will probabl...
public class class_name { public void unsetActiveSession() { if (log.isInfoEnabled()) { log.info("Setting no active session for site '" + site + "'."); // depends on control dependency: [if], data = [none] } if (this.activeSession != null) { this.activeSession.setActive(false); // depends on control depen...
public class class_name { @Override public Content getNavLinkPrevious() { Content li; if (prev == null) { li = HtmlTree.LI(contents.prevPackageLabel); } else { DocPath path = DocPath.relativePath(packageElement, prev); li = HtmlTree.LI(getHyperLink(path.r...
public class class_name { @Override public Content getNavLinkPrevious() { Content li; if (prev == null) { li = HtmlTree.LI(contents.prevPackageLabel); // depends on control dependency: [if], data = [none] } else { DocPath path = DocPath.relativePath(packageElement, p...
public class class_name { public void marshall(BatchScheduleActionCreateResult batchScheduleActionCreateResult, ProtocolMarshaller protocolMarshaller) { if (batchScheduleActionCreateResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public void marshall(BatchScheduleActionCreateResult batchScheduleActionCreateResult, ProtocolMarshaller protocolMarshaller) { if (batchScheduleActionCreateResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public static RingbufferStoreWrapper create(ObjectNamespace namespace, RingbufferStoreConfig storeConfig, InMemoryFormat inMemoryFormat, SerializationService serializationService, ...
public class class_name { public static RingbufferStoreWrapper create(ObjectNamespace namespace, RingbufferStoreConfig storeConfig, InMemoryFormat inMemoryFormat, SerializationService serializationService, ...
public class class_name { public void addClassCompileTask(final String className, final BaseDescr descr, final String text, final MemoryResourceReader src, final ErrorHandler ...
public class class_name { public void addClassCompileTask(final String className, final BaseDescr descr, final String text, final MemoryResourceReader src, final ErrorHandler ...
public class class_name { private void createPreStreamingTags(int timestamp, boolean clear) { log.debug("Creating pre-streaming tags"); if (clear) { firstTags.clear(); } ITag tag = null; IoBuffer body = null; if (hasVideo) { //video tag #1 ...
public class class_name { private void createPreStreamingTags(int timestamp, boolean clear) { log.debug("Creating pre-streaming tags"); if (clear) { firstTags.clear(); // depends on control dependency: [if], data = [none] } ITag tag = null; IoBuffer body = null; ...
public class class_name { public void allowASCII(boolean allow) { this.allowASCII = allow; ISO9660NamingConventions.FORCE_ISO9660_CHARSET = !allow; if (allow) { System.out.println("Warning: Allowing the full ASCII character set breaks ISO 9660 conformance."); } } }
public class class_name { public void allowASCII(boolean allow) { this.allowASCII = allow; ISO9660NamingConventions.FORCE_ISO9660_CHARSET = !allow; if (allow) { System.out.println("Warning: Allowing the full ASCII character set breaks ISO 9660 conformance."); // depends on control d...
public class class_name { public CreateWorkspacesResult withFailedRequests(FailedCreateWorkspaceRequest... failedRequests) { if (this.failedRequests == null) { setFailedRequests(new com.amazonaws.internal.SdkInternalList<FailedCreateWorkspaceRequest>(failedRequests.length)); } for (...
public class class_name { public CreateWorkspacesResult withFailedRequests(FailedCreateWorkspaceRequest... failedRequests) { if (this.failedRequests == null) { setFailedRequests(new com.amazonaws.internal.SdkInternalList<FailedCreateWorkspaceRequest>(failedRequests.length)); // depends on control d...
public class class_name { private void showDialog(final AjaxRequestTarget _target, final String _key, final boolean _isSniplett, final boolean _goOnButton) { final ModalWindowContainer modal = ((AbstractContentPage) getPage...
public class class_name { private void showDialog(final AjaxRequestTarget _target, final String _key, final boolean _isSniplett, final boolean _goOnButton) { final ModalWindowContainer modal = ((AbstractContentPage) getPage...
public class class_name { @Override public void fluff(String format, Object... args) { if (showFluff()) { hard(format, args); } } }
public class class_name { @Override public void fluff(String format, Object... args) { if (showFluff()) { hard(format, args); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void marshall(RoomData roomData, ProtocolMarshaller protocolMarshaller) { if (roomData == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(roomData.getRoomArn(), ROOMA...
public class class_name { public void marshall(RoomData roomData, ProtocolMarshaller protocolMarshaller) { if (roomData == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(roomData.getRoomArn(), ROOMA...
public class class_name { private void updateListenersIfNeeded(int player, TrackPositionUpdate update, Beat beat) { // Iterate over a copy to avoid issues with concurrent modification for (Map.Entry<TrackPositionListener, TrackPositionUpdate> entry : new HashMap<TrackPositionListener, T...
public class class_name { private void updateListenersIfNeeded(int player, TrackPositionUpdate update, Beat beat) { // Iterate over a copy to avoid issues with concurrent modification for (Map.Entry<TrackPositionListener, TrackPositionUpdate> entry : new HashMap<TrackPositionListener, T...
public class class_name { public static final void intToBytes( int i, byte[] data, int[] offset ) { /** * TODO: We use network-order within OceanStore, but temporarily * supporting intel-order to work with some JNI code until JNI code is * set to interoperate with network-order. ...
public class class_name { public static final void intToBytes( int i, byte[] data, int[] offset ) { /** * TODO: We use network-order within OceanStore, but temporarily * supporting intel-order to work with some JNI code until JNI code is * set to interoperate with network-order. ...
public class class_name { public boolean contains(final T element) { if (element == null) { return false; } return lowerEndpoint.includes(element) && upperEndpoint.includes(element); } }
public class class_name { public boolean contains(final T element) { if (element == null) { return false; // depends on control dependency: [if], data = [none] } return lowerEndpoint.includes(element) && upperEndpoint.includes(element); } }
public class class_name { @Override public void onConnect(int rst, HuaweiApiClient client) { HMSAgentLog.d("onConnect:" + rst); if (client == null || !ApiClientMgr.INST.isConnect(client)) { HMSAgentLog.e("client not connted"); onPMSPayEnd(rst, null); re...
public class class_name { @Override public void onConnect(int rst, HuaweiApiClient client) { HMSAgentLog.d("onConnect:" + rst); if (client == null || !ApiClientMgr.INST.isConnect(client)) { HMSAgentLog.e("client not connted"); // depends on control dependency: [if], data = [non...
public class class_name { public void update(String jsonString, Object object) { try { mapper.readerForUpdating(object).readValue(jsonString); } catch (JsonProcessingException e) { logger.warn("update json string:" + jsonString + " to object:" + object + " error.", e); } catch (IOException e) { logger.w...
public class class_name { public void update(String jsonString, Object object) { try { mapper.readerForUpdating(object).readValue(jsonString); // depends on control dependency: [try], data = [none] } catch (JsonProcessingException e) { logger.warn("update json string:" + jsonString + " to object:" + object +...
public class class_name { private static void listAllThreads(final PrintWriter out) { final ThreadGroup currentThreadGroup = Thread.currentThread().getThreadGroup(); ThreadGroup rootThreadGroup = currentThreadGroup; ThreadGroup parent = rootThreadGroup.getParent(); while (parent !...
public class class_name { private static void listAllThreads(final PrintWriter out) { final ThreadGroup currentThreadGroup = Thread.currentThread().getThreadGroup(); ThreadGroup rootThreadGroup = currentThreadGroup; ThreadGroup parent = rootThreadGroup.getParent(); while (parent !...
public class class_name { public static DruidPlugin druidPlugin( Properties dbProp ) { String dbUrl = dbProp.getProperty(GojaPropConst.DBURL), username = dbProp.getProperty(GojaPropConst.DBUSERNAME), password = dbProp.getProperty(GojaPropConst.DBPASSWORD); ...
public class class_name { public static DruidPlugin druidPlugin( Properties dbProp ) { String dbUrl = dbProp.getProperty(GojaPropConst.DBURL), username = dbProp.getProperty(GojaPropConst.DBUSERNAME), password = dbProp.getProperty(GojaPropConst.DBPASSWORD); ...
public class class_name { public static BufferedImage grayImage(Object srcIm) { BufferedImage srcImage = read(srcIm); BufferedImage grayImage = new BufferedImage(srcImage.getWidth(), srcImage.getHeight(), ...
public class class_name { public static BufferedImage grayImage(Object srcIm) { BufferedImage srcImage = read(srcIm); BufferedImage grayImage = new BufferedImage(srcImage.getWidth(), srcImage.getHeight(), ...
public class class_name { @Override protected void onVisibilityChanged(View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); if (changedView != this) { return; } if (visibility == View.VISIBLE) { resumePresenter(); } else { pausePresenter(); ...
public class class_name { @Override protected void onVisibilityChanged(View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); if (changedView != this) { return; // depends on control dependency: [if], data = [none] } if (visibility == View.VISIBLE) { resume...
public class class_name { private static MutableFst makeFilter(WriteableSymbolTable table, Semiring semiring, String eps1, String eps2) { MutableFst filter = new MutableFst(semiring, table, table); // State 0 MutableState s0 = filter.newStartState(); s0.setFinalWeight(semiring.one()); MutableStat...
public class class_name { private static MutableFst makeFilter(WriteableSymbolTable table, Semiring semiring, String eps1, String eps2) { MutableFst filter = new MutableFst(semiring, table, table); // State 0 MutableState s0 = filter.newStartState(); s0.setFinalWeight(semiring.one()); MutableStat...
public class class_name { public ParcelFileDescriptor executeForBlobFileDescriptor(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) { if (sql == null) { throw new IllegalArgumentException("sql must not be null."); } final int cookie = mRecentOperati...
public class class_name { public ParcelFileDescriptor executeForBlobFileDescriptor(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) { if (sql == null) { throw new IllegalArgumentException("sql must not be null."); } final int cookie = mRecentOperati...
public class class_name { public boolean hasEntry(String dictName, String entryID) { if (hasDictionary(dictName)) { Dictionary dictionary = (Dictionary) dictionaries.get(dictName); return dictionary.hasEntry(entryID.toLowerCase()); } else { return false; } ...
public class class_name { public boolean hasEntry(String dictName, String entryID) { if (hasDictionary(dictName)) { Dictionary dictionary = (Dictionary) dictionaries.get(dictName); return dictionary.hasEntry(entryID.toLowerCase()); // depends on control dependency: [if], data = [none] ...
public class class_name { public void showAt(final int x, final int y) { setPopupPositionAndShow(new PopupPanel.PositionCallback() { @Override public void setPosition(int offsetWidth, int offsetHeight) { int left = x + Window.getScrollLeft(); int top =...
public class class_name { public void showAt(final int x, final int y) { setPopupPositionAndShow(new PopupPanel.PositionCallback() { @Override public void setPosition(int offsetWidth, int offsetHeight) { int left = x + Window.getScrollLeft(); int top =...
public class class_name { boolean removeListenerByProbe(ProbeImpl probe, ProbeListener listener) { boolean deactivatedProbe = false; Set<ProbeListener> listeners = listenersByProbe.get(probe); if (listeners != null) { listeners.remove(listener); if (listeners.isEmpty())...
public class class_name { boolean removeListenerByProbe(ProbeImpl probe, ProbeListener listener) { boolean deactivatedProbe = false; Set<ProbeListener> listeners = listenersByProbe.get(probe); if (listeners != null) { listeners.remove(listener); // depends on control dependency: [i...
public class class_name { private void addMessagingActiveMQExtension(OperationContext context, Map<PathAddress, ModelNode> migrationOperations, boolean describe) { Resource root = context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS, false); if (root.getChildrenNames(EXTENSION).contains(MESSAGING_ACT...
public class class_name { private void addMessagingActiveMQExtension(OperationContext context, Map<PathAddress, ModelNode> migrationOperations, boolean describe) { Resource root = context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS, false); if (root.getChildrenNames(EXTENSION).contains(MESSAGING_ACT...
public class class_name { private void collect(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, int[] itemset, int support) { if (list != null) { synchronized (list) { list.add(new ItemSet(itemset, support)); } } if (out != null) { ...
public class class_name { private void collect(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, int[] itemset, int support) { if (list != null) { synchronized (list) { // depends on control dependency: [if], data = [(list] list.add(new ItemSet(itemset, support)); ...
public class class_name { private static void getChroma0X(byte[] pels, int picW, int picH, byte[] blk, int blkOff, int blkStride, int fullX, int fullY, int fracY, int blkW, int blkH) { int w00 = fullY * picW + fullX; int w01 = w00 + (fullY < picH - 1 ? picW : 0); int eMy = 8 - fracY...
public class class_name { private static void getChroma0X(byte[] pels, int picW, int picH, byte[] blk, int blkOff, int blkStride, int fullX, int fullY, int fracY, int blkW, int blkH) { int w00 = fullY * picW + fullX; int w01 = w00 + (fullY < picH - 1 ? picW : 0); int eMy = 8 - fracY...
public class class_name { @Override public void solve(DMatrixRMaj B , DMatrixRMaj X ) { if( B.numRows != n ) { throw new IllegalArgumentException("Unexpected matrix size"); } X.reshape(n,B.numCols); if(decomposer.isLower()) { solveLower(A,B,X,vv); } ...
public class class_name { @Override public void solve(DMatrixRMaj B , DMatrixRMaj X ) { if( B.numRows != n ) { throw new IllegalArgumentException("Unexpected matrix size"); } X.reshape(n,B.numCols); if(decomposer.isLower()) { solveLower(A,B,X,vv); // depends...
public class class_name { public static StringConsumers buildConsumer(Properties props, final String topic,// final String groupId,// final IMessageListener<String> listener,// ...
public class class_name { public static StringConsumers buildConsumer(Properties props, final String topic,// final String groupId,// final IMessageListener<String> listener,// ...
public class class_name { public int read(byte[] buf, int off, int len) throws IOException { if (off < 0 || len < 0 || off + len < 0 || off + len > buf.length) throw new IndexOutOfBoundsException(); if (len == 0) return 0; if (in == null) throw new XZIOExce...
public class class_name { public int read(byte[] buf, int off, int len) throws IOException { if (off < 0 || len < 0 || off + len < 0 || off + len > buf.length) throw new IndexOutOfBoundsException(); if (len == 0) return 0; if (in == null) throw new XZIOExce...
public class class_name { @Override public final EntityManager createEntityManager(Map map) { // For Application managed persistence context, type is always EXTENDED if (isOpen()) { return new EntityManagerImpl(this, map, transactionType, PersistenceContextType.EXTENDE...
public class class_name { @Override public final EntityManager createEntityManager(Map map) { // For Application managed persistence context, type is always EXTENDED if (isOpen()) { return new EntityManagerImpl(this, map, transactionType, PersistenceContextType.EXTENDE...
public class class_name { public static boolean isHexNumber(String value) { final int index = (value.startsWith("-") ? 1 : 0); if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) { try { Long.decode(value); } catch (NumberFormatException e) { retu...
public class class_name { public static boolean isHexNumber(String value) { final int index = (value.startsWith("-") ? 1 : 0); if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) { try { Long.decode(value); // depends on control dependency: [try], data = ...
public class class_name { public static OrderBy parse(String orderBy) { OrderBy toReturn = new OrderBy(); String[] orderBys = orderBy.split(","); for (String order : orderBys) { order = order.trim(); String[] fields = order.split(":"); Order ord = Order.ASC; NullOrder nullOrd = Null...
public class class_name { public static OrderBy parse(String orderBy) { OrderBy toReturn = new OrderBy(); String[] orderBys = orderBy.split(","); for (String order : orderBys) { order = order.trim(); // depends on control dependency: [for], data = [order] String[] fields = order.split(":"); ...
public class class_name { private static int checkIndexOf(final String str, final int strStartIndex, final String search) { final int endIndex = str.length() - search.length(); if (endIndex >= strStartIndex) { for (int i = strStartIndex; i <= endIndex; i++) { if (checkRegion...
public class class_name { private static int checkIndexOf(final String str, final int strStartIndex, final String search) { final int endIndex = str.length() - search.length(); if (endIndex >= strStartIndex) { for (int i = strStartIndex; i <= endIndex; i++) { if (checkRegion...
public class class_name { private void settingsSaveAsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_settingsSaveAsMenuItemActionPerformed JFileChooser fc = new JFileChooser(); if (settingsFile != null) { fc.setSelectedFile(settingsFile); } else { ...
public class class_name { private void settingsSaveAsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_settingsSaveAsMenuItemActionPerformed JFileChooser fc = new JFileChooser(); if (settingsFile != null) { fc.setSelectedFile(settingsFile); // depends on control dep...
public class class_name { public void setOnlyFirstAndLastTickLabelVisible(final boolean VISIBLE) { if (null == onlyFirstAndLastTickLabelVisible) { _onlyFirstAndLastTickLabelVisible = VISIBLE; fireUpdateEvent(REDRAW_EVENT); } else { onlyFirstAndLastTickLabelVisible.se...
public class class_name { public void setOnlyFirstAndLastTickLabelVisible(final boolean VISIBLE) { if (null == onlyFirstAndLastTickLabelVisible) { _onlyFirstAndLastTickLabelVisible = VISIBLE; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends...
public class class_name { public static <N, V> MutableValueGraph<N, V> inducedSubgraph( ValueGraph<N, V> graph, Iterable<? extends N> nodes) { MutableValueGraph<N, V> subgraph = ValueGraphBuilder.from(graph).build(); for (N node : nodes) { subgraph.addNode(node); } for (N node : subgraph.no...
public class class_name { public static <N, V> MutableValueGraph<N, V> inducedSubgraph( ValueGraph<N, V> graph, Iterable<? extends N> nodes) { MutableValueGraph<N, V> subgraph = ValueGraphBuilder.from(graph).build(); for (N node : nodes) { subgraph.addNode(node); // depends on control dependency: [...
public class class_name { protected Bucket getBucketForValue(long value) { for (Bucket bucket : buckets) { if (bucket.contains(value)) { return bucket; } } throw new IllegalStateException("Non continuous buckets."); } }
public class class_name { protected Bucket getBucketForValue(long value) { for (Bucket bucket : buckets) { if (bucket.contains(value)) { return bucket; // depends on control dependency: [if], data = [none] } } throw new IllegalStateException("Non continuous buckets."); } }
public class class_name { public String getByGroupWithLog(String key, String group) { final String value = getByGroup(key, group); if (value == null) { log.debug("No key define for [{}] of group [{}] !", key, group); } return value; } }
public class class_name { public String getByGroupWithLog(String key, String group) { final String value = getByGroup(key, group); if (value == null) { log.debug("No key define for [{}] of group [{}] !", key, group); // depends on control dependency: [if], data = [none] } return value; } }
public class class_name { public synchronized void waitOnIgnoringInterruptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOnIgnoringInterruptions"); boolean interrupted; do { interrupted = false; try { waitOn(); } catch (Interr...
public class class_name { public synchronized void waitOnIgnoringInterruptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOnIgnoringInterruptions"); boolean interrupted; do { interrupted = false; try { waitOn(); // depends on control dependency:...
public class class_name { public CachedResultSet rename(String... names) { for (int i = 0; i < names.length; ++i) { this.columns[i] = names[i]; } return this; } }
public class class_name { public CachedResultSet rename(String... names) { for (int i = 0; i < names.length; ++i) { this.columns[i] = names[i]; // depends on control dependency: [for], data = [i] } return this; } }
public class class_name { @Deprecated public static int sizeToInt(final Size size) { if (size == null) { return -1; } switch (size) { case ZERO: return 0; case SMALL: return MAX_SMALL; case MEDIUM: return MAX_MED; case LARGE: return MAX_LARGE; default: return COMMON_XL; }...
public class class_name { @Deprecated public static int sizeToInt(final Size size) { if (size == null) { return -1; // depends on control dependency: [if], data = [none] } switch (size) { case ZERO: return 0; case SMALL: return MAX_SMALL; case MEDIUM: return MAX_MED; case LARGE: r...
public class class_name { private void appendRubyElements(RendersnakeHtmlCanvas html, List<SubtitleItem.Inner> elements) throws IOException { for (SubtitleItem.Inner element : elements) { String kanji = element.getKanji(); if (kanji != null) { html.ruby(); html.spanKanji(kanji); html.rt(e...
public class class_name { private void appendRubyElements(RendersnakeHtmlCanvas html, List<SubtitleItem.Inner> elements) throws IOException { for (SubtitleItem.Inner element : elements) { String kanji = element.getKanji(); if (kanji != null) { html.ruby(); // depends on control dependency: [if], d...
public class class_name { public EClass getIfcRampFlight() { if (ifcRampFlightEClass == null) { ifcRampFlightEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(423); } return ifcRampFlightEClass; } }
public class class_name { public EClass getIfcRampFlight() { if (ifcRampFlightEClass == null) { ifcRampFlightEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(423); // depends on control dependency: [if], data = [none] } return ifcRampFlightECl...
public class class_name { public static BufferedImage generate(String content, BarcodeFormat format, QrConfig config) { final BitMatrix bitMatrix = encode(content, format, config); final BufferedImage image = toImage(bitMatrix, config.foreColor, config.backColor); final Image logoImg = config.img; if (null...
public class class_name { public static BufferedImage generate(String content, BarcodeFormat format, QrConfig config) { final BitMatrix bitMatrix = encode(content, format, config); final BufferedImage image = toImage(bitMatrix, config.foreColor, config.backColor); final Image logoImg = config.img; if (null...
public class class_name { @SuppressWarnings("unchecked") public <T> T get(String key, Class<T> type, T defaultValue) { Objects.requireNonNull(key); Objects.requireNonNull(type); String value = _map.get(key); if (value == null) { return defaultValue; } if (type.equals(String.class))...
public class class_name { @SuppressWarnings("unchecked") public <T> T get(String key, Class<T> type, T defaultValue) { Objects.requireNonNull(key); Objects.requireNonNull(type); String value = _map.get(key); if (value == null) { return defaultValue; // depends on control dependency: [if], d...
public class class_name { public List<PropertyType<ValidationConfigurationDescriptor>> getAllProperty() { List<PropertyType<ValidationConfigurationDescriptor>> list = new ArrayList<PropertyType<ValidationConfigurationDescriptor>>(); List<Node> nodeList = model.get("property"); for(Node node: nodeL...
public class class_name { public List<PropertyType<ValidationConfigurationDescriptor>> getAllProperty() { List<PropertyType<ValidationConfigurationDescriptor>> list = new ArrayList<PropertyType<ValidationConfigurationDescriptor>>(); List<Node> nodeList = model.get("property"); for(Node node: nodeL...
public class class_name { protected final void bindPropertiesWithOverrides(final String propertyFile) { checkNotNull(propertyFile, "classpath resource property file must not be null"); Properties properties = new Properties(); // load classpath resource properties InputStream inputStr...
public class class_name { protected final void bindPropertiesWithOverrides(final String propertyFile) { checkNotNull(propertyFile, "classpath resource property file must not be null"); Properties properties = new Properties(); // load classpath resource properties InputStream inputStr...
public class class_name { private Object processElement(byte[] source, int offset, int currentColumnIndex) { byte[] temp; int length = columnsDataLength.get(currentColumnIndex); if (columns.get(currentColumnIndex).getType() == Number.class) { temp = Arrays.copyOfRange(source, offset...
public class class_name { private Object processElement(byte[] source, int offset, int currentColumnIndex) { byte[] temp; int length = columnsDataLength.get(currentColumnIndex); if (columns.get(currentColumnIndex).getType() == Number.class) { temp = Arrays.copyOfRange(source, offset...
public class class_name { public void marshall(ResolverRuleConfig resolverRuleConfig, ProtocolMarshaller protocolMarshaller) { if (resolverRuleConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(ResolverRuleConfig resolverRuleConfig, ProtocolMarshaller protocolMarshaller) { if (resolverRuleConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public static HashMap<String, String> parseDirectives(byte[] buf) throws SaslException { HashMap<String, String> map = new HashMap<>(); boolean gettingKey = true; boolean gettingQuotedValue = false; boolean expectSeparator = false; byte bch;...
public class class_name { public static HashMap<String, String> parseDirectives(byte[] buf) throws SaslException { HashMap<String, String> map = new HashMap<>(); boolean gettingKey = true; boolean gettingQuotedValue = false; boolean expectSeparator = false; byte bch;...
public class class_name { int getExistingPathINodes(byte[][] components, INode[] existing) { assert compareTo(components[0]) == 0 : "Incorrect name " + getLocalName() + " expected " + components[0]; INode curNode = this; int count = 0; int index = existing.length - components.length; if (ind...
public class class_name { int getExistingPathINodes(byte[][] components, INode[] existing) { assert compareTo(components[0]) == 0 : "Incorrect name " + getLocalName() + " expected " + components[0]; INode curNode = this; int count = 0; int index = existing.length - components.length; if (ind...
public class class_name { private void tryRegisterJava8() { try { tryRegister("java.time.Instant", "parse"); tryRegister("java.time.Duration", "parse"); tryRegister("java.time.LocalDate", "parse"); tryRegister("java.time.LocalTime", "parse"); tr...
public class class_name { private void tryRegisterJava8() { try { tryRegister("java.time.Instant", "parse"); // depends on control dependency: [try], data = [none] tryRegister("java.time.Duration", "parse"); // depends on control dependency: [try], data = [none] tryRegis...
public class class_name { public void reportError(Throwable t) { checkNotNull(t); synchronized (lock) { // do not override the initial exception if (error == null) { error = t; } next = null; lock.notifyAll(); } } }
public class class_name { public void reportError(Throwable t) { checkNotNull(t); synchronized (lock) { // do not override the initial exception if (error == null) { error = t; // depends on control dependency: [if], data = [none] } next = null; lock.notifyAll(); } } }
public class class_name { public void initialize(@Nullable KeyParameter aesKey) { DeterministicSeed seed = Main.bitcoin.wallet().getKeyChainSeed(); if (aesKey == null) { if (seed.isEncrypted()) { log.info("Wallet is encrypted, requesting password first."); //...
public class class_name { public void initialize(@Nullable KeyParameter aesKey) { DeterministicSeed seed = Main.bitcoin.wallet().getKeyChainSeed(); if (aesKey == null) { if (seed.isEncrypted()) { log.info("Wallet is encrypted, requesting password first."); // depends on cont...
public class class_name { private AstNode parseCreateIndex( final DdlTokenStream tokens, final AstNode parentNode ) throws ParsingException { assert tokens != null; assert parentNode != null; assert (tokens.matches(STMT_CREATE_INDEX) || tokens.matches(STMT_...
public class class_name { private AstNode parseCreateIndex( final DdlTokenStream tokens, final AstNode parentNode ) throws ParsingException { assert tokens != null; assert parentNode != null; assert (tokens.matches(STMT_CREATE_INDEX) || tokens.matches(STMT_...
public class class_name { public java.util.Map<String, String> getSunday() { if (sunday == null) { sunday = new com.amazonaws.internal.SdkInternalMap<String, String>(); } return sunday; } }
public class class_name { public java.util.Map<String, String> getSunday() { if (sunday == null) { sunday = new com.amazonaws.internal.SdkInternalMap<String, String>(); // depends on control dependency: [if], data = [none] } return sunday; } }
public class class_name { @SuppressWarnings("unchecked") public static <F,T> Expression getJoinedEntityField(From<?, F> grandparentJoin, Attribute<?, T> parentJoinAttr, SingularAttribute fieldAttr) { // task -> * -> origJoin -> (fieldParentAttr field in) tojoinType -> fieldAttr Class toAttrJoinTy...
public class class_name { @SuppressWarnings("unchecked") public static <F,T> Expression getJoinedEntityField(From<?, F> grandparentJoin, Attribute<?, T> parentJoinAttr, SingularAttribute fieldAttr) { // task -> * -> origJoin -> (fieldParentAttr field in) tojoinType -> fieldAttr Class toAttrJoinTy...
public class class_name { public static String bin2hex(final byte[] b) { if (b == null) { return ""; } StringBuffer sb = new StringBuffer(2 * b.length); for (int i = 0; i < b.length; i++) { int v = (256 + b[i]) % 256; sb.append(hex...
public class class_name { public static String bin2hex(final byte[] b) { if (b == null) { return ""; // depends on control dependency: [if], data = [none] } StringBuffer sb = new StringBuffer(2 * b.length); for (int i = 0; i < b.length; i++) { ...
public class class_name { private Locale getLocale(CmsXmlContent content) { List<Locale> locales = content.getLocales(); if (locales.contains(Locale.ENGLISH) || locales.isEmpty()) { return Locale.ENGLISH; } return locales.get(0); } }
public class class_name { private Locale getLocale(CmsXmlContent content) { List<Locale> locales = content.getLocales(); if (locales.contains(Locale.ENGLISH) || locales.isEmpty()) { return Locale.ENGLISH; // depends on control dependency: [if], data = [none] } return locale...
public class class_name { private List<Integer> getFragmentFilteredPageIds(List<String> templateFragments, boolean whitelist) throws WikiApiException{ try { PreparedStatement statement = null; ResultSet result = null; List<Integer> matchedPages = new LinkedList<Integer>(); try { StringBuff...
public class class_name { private List<Integer> getFragmentFilteredPageIds(List<String> templateFragments, boolean whitelist) throws WikiApiException{ try { PreparedStatement statement = null; ResultSet result = null; List<Integer> matchedPages = new LinkedList<Integer>(); try { StringBuff...
public class class_name { public static void main(String[] args) { if (args.length < 1) { System.out.println("Usage: java twitter4j.examples.geo.GetGeoDetails [place id]"); System.exit(-1); } try { Twitter twitter = new TwitterFactory().getInstance(); ...
public class class_name { public static void main(String[] args) { if (args.length < 1) { System.out.println("Usage: java twitter4j.examples.geo.GetGeoDetails [place id]"); // depends on control dependency: [if], data = [none] System.exit(-1); // depends on control dependency: [if], dat...
public class class_name { private boolean isInWhiteList(String tpl) { if ((!whiteList.isEmpty() && whiteList.contains(tpl)) || (whiteList.isEmpty())) { return true; } return false; } }
public class class_name { private boolean isInWhiteList(String tpl) { if ((!whiteList.isEmpty() && whiteList.contains(tpl)) || (whiteList.isEmpty())) { return true; // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { @Override public void visitParameterAnnotation(ParameterAnnotations arg0) { ParameterAnnotationEntry[] parameterAnnotationEntries = arg0.getParameterAnnotationEntries(); int numParametersToMethod = getNumberMethodArguments(); int offset = 0; if (numParamete...
public class class_name { @Override public void visitParameterAnnotation(ParameterAnnotations arg0) { ParameterAnnotationEntry[] parameterAnnotationEntries = arg0.getParameterAnnotationEntries(); int numParametersToMethod = getNumberMethodArguments(); int offset = 0; if (numParamete...
public class class_name { public Subclass withIAMEndpoint(String iamEndpoint) { this.iamEndpoint = iamEndpoint; if ((this.credentials.getCredentials() instanceof IBMOAuthCredentials) && ((IBMOAuthCredentials)this.credentials.getCredentials()).getTokenManager() instanceof DefaultTokenManager)...
public class class_name { public Subclass withIAMEndpoint(String iamEndpoint) { this.iamEndpoint = iamEndpoint; if ((this.credentials.getCredentials() instanceof IBMOAuthCredentials) && ((IBMOAuthCredentials)this.credentials.getCredentials()).getTokenManager() instanceof DefaultTokenManager)...
public class class_name { private boolean registerStream(IClientStream stream) { if (streams.putIfAbsent(stream.getStreamId().doubleValue(), stream) == null) { usedStreams.incrementAndGet(); return true; } log.error("Unable to register stream {}, stream with id {} w...
public class class_name { private boolean registerStream(IClientStream stream) { if (streams.putIfAbsent(stream.getStreamId().doubleValue(), stream) == null) { usedStreams.incrementAndGet(); // depends on control dependency: [if], data = [none] return true; // depends on control dep...
public class class_name { @GET @Path("jd") @Produces(MediaType.APPLICATION_JSON) @HttpCache public List<JobDefDto> getJobDefs() { DbConn cnx = null; try { cnx = Helpers.getDbSession(); return MetaService.getJobDef(cnx); } finally ...
public class class_name { @GET @Path("jd") @Produces(MediaType.APPLICATION_JSON) @HttpCache public List<JobDefDto> getJobDefs() { DbConn cnx = null; try { cnx = Helpers.getDbSession(); // depends on control dependency: [try], data = [none] return Meta...
public class class_name { public V put(K key, V value){ writeLock.lock(); try { cache.put(key, value); } finally { writeLock.unlock(); } return value; } }
public class class_name { public V put(K key, V value){ writeLock.lock(); try { cache.put(key, value); // depends on control dependency: [try], data = [none] } finally { writeLock.unlock(); } return value; } }
public class class_name { private Registry startRmiRegistryProcess(Configuration configuration, final int port) { try { final String javaHome = System.getProperty(JAVA_HOME); String command = null; if (javaHome == null) { command = "rmiregistry"; ...
public class class_name { private Registry startRmiRegistryProcess(Configuration configuration, final int port) { try { final String javaHome = System.getProperty(JAVA_HOME); String command = null; if (javaHome == null) { command = "rmiregistry"; // depends ...