code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void removeArgFromFunction(String varName, DifferentialFunction function) { val args = function.args(); for (int i = 0; i < args.length; i++) { if (args[i].getVarName().equals(varName)) { /** * Since we are removing the vari...
public class class_name { public void removeArgFromFunction(String varName, DifferentialFunction function) { val args = function.args(); for (int i = 0; i < args.length; i++) { if (args[i].getVarName().equals(varName)) { /** * Since we are removing the vari...
public class class_name { public synchronized int removeSubscriber(String eventName, IGenericEvent<T> subscriber) { List<IGenericEvent<T>> subscribers = getSubscribers(eventName, false); if (subscribers != null) { subscribers.remove(subscriber); if (subscri...
public class class_name { public synchronized int removeSubscriber(String eventName, IGenericEvent<T> subscriber) { List<IGenericEvent<T>> subscribers = getSubscribers(eventName, false); if (subscribers != null) { subscribers.remove(subscriber); // depends on control dependency: [i...
public class class_name { public Object createInstance(StoreConfiguration storeConfiguration) { for(CacheStoreFactory factory : factories) { Object instance = factory.createInstance(storeConfiguration); if(instance != null) { return instance; } } throw log.unabl...
public class class_name { public Object createInstance(StoreConfiguration storeConfiguration) { for(CacheStoreFactory factory : factories) { Object instance = factory.createInstance(storeConfiguration); if(instance != null) { return instance; // depends on control dependency: [if], ...
public class class_name { private void reconstituteTargetStreams(ProducerInputHandler inputHandler) throws MessageStoreException, SIException, SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "reconstituteTargetStreams"); /* * Iterate through all contained Protocol It...
public class class_name { private void reconstituteTargetStreams(ProducerInputHandler inputHandler) throws MessageStoreException, SIException, SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "reconstituteTargetStreams"); /* * Iterate through all contained Protocol It...
public class class_name { public String format(Map<?, ?> map, char keyValueSeparator) { if (map == null) { return StringUtils.EMPTY; } Preconditions.checkArgument(keyValueSeparator != ' '); StringBuilder rowString = new StringBuilder(); for (Iterator<?> itr = map.entrySet().iterator(); itr.h...
public class class_name { public String format(Map<?, ?> map, char keyValueSeparator) { if (map == null) { return StringUtils.EMPTY; // depends on control dependency: [if], data = [none] } Preconditions.checkArgument(keyValueSeparator != ' '); StringBuilder rowString = new StringBuilder(); f...
public class class_name { public void setLifecycleHookTypes(java.util.Collection<String> lifecycleHookTypes) { if (lifecycleHookTypes == null) { this.lifecycleHookTypes = null; return; } this.lifecycleHookTypes = new com.amazonaws.internal.SdkInternalList<String>(lifecy...
public class class_name { public void setLifecycleHookTypes(java.util.Collection<String> lifecycleHookTypes) { if (lifecycleHookTypes == null) { this.lifecycleHookTypes = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [...
public class class_name { public static /*@pure@*/ String doubleToString(double value, int afterDecimalPoint) { StringBuffer stringBuffer; double temp; int dotPosition; long precisionValue; temp = value * Math.pow(10.0, afterDecimalPoint); if (Math.abs(temp) < Long.MAX_VALUE) { ...
public class class_name { public static /*@pure@*/ String doubleToString(double value, int afterDecimalPoint) { StringBuffer stringBuffer; double temp; int dotPosition; long precisionValue; temp = value * Math.pow(10.0, afterDecimalPoint); if (Math.abs(temp) < Long.MAX_VALUE) { ...
public class class_name { @Override public int compareTo(final Coordinate other) { if (getX() < other.getX()) { return -1; } if (getX() > other.getX()) { return 1; } if (getY() < other.getY()) { return -1; } if (getY() > ot...
public class class_name { @Override public int compareTo(final Coordinate other) { if (getX() < other.getX()) { return -1; // depends on control dependency: [if], data = [none] } if (getX() > other.getX()) { return 1; // depends on control dependency: [if], data = [n...
public class class_name { public int getNumberBetween(final int min, final int max) { if (max < min) { throw new IllegalArgumentException(String.format("Minimum must be less than minimum (min=%d, max=%d)", min, max)); } if (max == min) { return min; } return min + random.next...
public class class_name { public int getNumberBetween(final int min, final int max) { if (max < min) { throw new IllegalArgumentException(String.format("Minimum must be less than minimum (min=%d, max=%d)", min, max)); } if (max == min) { return min; // depends on control dependency: [if...
public class class_name { public void marshall(UpdateItemRequest updateItemRequest, ProtocolMarshaller protocolMarshaller) { if (updateItemRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(u...
public class class_name { public void marshall(UpdateItemRequest updateItemRequest, ProtocolMarshaller protocolMarshaller) { if (updateItemRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(u...
public class class_name { protected boolean fillAttachmentList(@NonNull Context context, @NonNull String reportText, @NonNull List<Uri> attachments) { final InstanceCreator instanceCreator = new InstanceCreator(); attachments.addAll(instanceCreator.create(config.attachmentUriProvider(), DefaultAttachme...
public class class_name { protected boolean fillAttachmentList(@NonNull Context context, @NonNull String reportText, @NonNull List<Uri> attachments) { final InstanceCreator instanceCreator = new InstanceCreator(); attachments.addAll(instanceCreator.create(config.attachmentUriProvider(), DefaultAttachme...
public class class_name { public static void unregisterMbean(ObjectName name) { try { ManagementFactory.getPlatformMBeanServer().unregisterMBean(name); } catch(Exception e) { logger.error("Error unregistering mbean", e); } } }
public class class_name { public static void unregisterMbean(ObjectName name) { try { ManagementFactory.getPlatformMBeanServer().unregisterMBean(name); // depends on control dependency: [try], data = [none] } catch(Exception e) { logger.error("Error unregistering mbean", e); ...
public class class_name { private String getVariable(GDLParser.HeaderContext header) { if (header != null && header.Identifier() != null) { return header.Identifier().getText(); } return null; } }
public class class_name { private String getVariable(GDLParser.HeaderContext header) { if (header != null && header.Identifier() != null) { return header.Identifier().getText(); // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { private ResponseEntity<String> makeRestCall(String instanceUrl, String endpoint) { String url = normalizeUrl(instanceUrl, "/deployit/" + endpoint); ResponseEntity<String> response = null; try { response = restOperations.exchange(url, HttpMethod.GET, ...
public class class_name { private ResponseEntity<String> makeRestCall(String instanceUrl, String endpoint) { String url = normalizeUrl(instanceUrl, "/deployit/" + endpoint); ResponseEntity<String> response = null; try { response = restOperations.exchange(url, HttpMethod.GET, ...
public class class_name { Scope enterScope() { final Map<VarKey, Variable> currentFrame = new LinkedHashMap<>(); final Label scopeExit = new Label(); frames.push(currentFrame); return new Scope() { boolean exited; @Override Variable createSynthetic( SyntheticVarName varName...
public class class_name { Scope enterScope() { final Map<VarKey, Variable> currentFrame = new LinkedHashMap<>(); final Label scopeExit = new Label(); frames.push(currentFrame); return new Scope() { boolean exited; @Override Variable createSynthetic( SyntheticVarName varName...
public class class_name { private void render(SVG.Symbol obj, Box viewPort) { debug("Symbol render"); if (viewPort.width == 0f || viewPort.height == 0f) return; // "If attribute 'preserveAspectRatio' is not specified, then the effect is as if a value of xMidYMid meet were specifi...
public class class_name { private void render(SVG.Symbol obj, Box viewPort) { debug("Symbol render"); if (viewPort.width == 0f || viewPort.height == 0f) return; // "If attribute 'preserveAspectRatio' is not specified, then the effect is as if a value of xMidYMid meet were specifi...
public class class_name { private void maybeAddGoogScopeUsage(NodeTraversal t, Node n, Node parent) { checkState(NodeUtil.isNameDeclaration(n)); if (n.hasOneChild() && parent == googScopeBlock) { Node rhs = n.getFirstFirstChild(); if (rhs != null && rhs.isQualifiedName()) { Node root = Node...
public class class_name { private void maybeAddGoogScopeUsage(NodeTraversal t, Node n, Node parent) { checkState(NodeUtil.isNameDeclaration(n)); if (n.hasOneChild() && parent == googScopeBlock) { Node rhs = n.getFirstFirstChild(); if (rhs != null && rhs.isQualifiedName()) { Node root = Node...
public class class_name { public static String validateAttributeNames( Enumeration<String> attributeNames) { while (attributeNames.hasMoreElements()) { String attribute = attributeNames.nextElement(); if (!attribute.equals("users") && !attribute.equals("poolGroups") && !attribute.equals...
public class class_name { public static String validateAttributeNames( Enumeration<String> attributeNames) { while (attributeNames.hasMoreElements()) { String attribute = attributeNames.nextElement(); if (!attribute.equals("users") && !attribute.equals("poolGroups") && !attribute.equals...
public class class_name { private Connection getConnection() { JdbcTransaction tx = transationHandler.get(); try { if (tx == null) { return dataSource.getConnection(); } else { return tx.getConnection(); } } catch (SQLException...
public class class_name { private Connection getConnection() { JdbcTransaction tx = transationHandler.get(); try { if (tx == null) { return dataSource.getConnection(); // depends on control dependency: [if], data = [none] } else { return tx.getCon...
public class class_name { public void info( Marker marker, String msg, Throwable t ) { if( m_delegate.isInfoEnabled() ) { setMDCMarker( marker ); m_delegate.inform( msg, t ); resetMDCMarker(); } } }
public class class_name { public void info( Marker marker, String msg, Throwable t ) { if( m_delegate.isInfoEnabled() ) { setMDCMarker( marker ); // depends on control dependency: [if], data = [none] m_delegate.inform( msg, t ); // depends on control dependency: [if], data =...
public class class_name { protected void applyDrawerWithHeader() { setType(SideNavType.DRAWER_WITH_HEADER); applyBodyScroll(); if (isShowOnAttach()) { Scheduler.get().scheduleDeferred(() -> { pushElement(getHeader(), 0); pushElement(getMain(), 0); ...
public class class_name { protected void applyDrawerWithHeader() { setType(SideNavType.DRAWER_WITH_HEADER); applyBodyScroll(); if (isShowOnAttach()) { Scheduler.get().scheduleDeferred(() -> { pushElement(getHeader(), 0); // depends on control dependency: [if], data ...
public class class_name { public void close() throws WLFormatException { if (closed) { return; } closed = true; XMLEventFactory eventFactory = XMLEventFactory.newInstance(); XMLEvent e; try { if (this.xmlEventWriter != null) { ...
public class class_name { public void close() throws WLFormatException { if (closed) { return; } closed = true; XMLEventFactory eventFactory = XMLEventFactory.newInstance(); XMLEvent e; try { if (this.xmlEventWriter != null) { ...
public class class_name { @Override public int equivalence() { int eqct = 0; final List<String> nodes = pnt.getProtoNodes(); final Map<Integer, Integer> nodeTerms = pnt.getNodeTermIndex(); final int termct = nodeTerms.size(); final Map<EquivalentTerm, Integer> nodeCache = s...
public class class_name { @Override public int equivalence() { int eqct = 0; final List<String> nodes = pnt.getProtoNodes(); final Map<Integer, Integer> nodeTerms = pnt.getNodeTermIndex(); final int termct = nodeTerms.size(); final Map<EquivalentTerm, Integer> nodeCache = s...
public class class_name { void addOrder(String condition) { condition = condition.trim(); boolean descending = false; if (condition.startsWith("-")) { descending = true; condition = condition.substring(1).trim(); } // Prevent ordering by @Id or @Parent fields, which are really part of the ke...
public class class_name { void addOrder(String condition) { condition = condition.trim(); boolean descending = false; if (condition.startsWith("-")) { descending = true; // depends on control dependency: [if], data = [none] condition = condition.substring(1).trim(); // depends on control dependency...
public class class_name { public void setMinimumSignificantDigits(int min) { if (min < 1) { min = 1; } // pin max sig dig to >= min int max = Math.max(maxSignificantDigits, min); minSignificantDigits = min; maxSignificantDigits = max; setSignificantDi...
public class class_name { public void setMinimumSignificantDigits(int min) { if (min < 1) { min = 1; // depends on control dependency: [if], data = [none] } // pin max sig dig to >= min int max = Math.max(maxSignificantDigits, min); minSignificantDigits = min; ...
public class class_name { public CreateLoadBalancerRequest withSubnetMappings(SubnetMapping... subnetMappings) { if (this.subnetMappings == null) { setSubnetMappings(new java.util.ArrayList<SubnetMapping>(subnetMappings.length)); } for (SubnetMapping ele : subnetMappings) { ...
public class class_name { public CreateLoadBalancerRequest withSubnetMappings(SubnetMapping... subnetMappings) { if (this.subnetMappings == null) { setSubnetMappings(new java.util.ArrayList<SubnetMapping>(subnetMappings.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void marshall(CreateDeliveryStreamRequest createDeliveryStreamRequest, ProtocolMarshaller protocolMarshaller) { if (createDeliveryStreamRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(CreateDeliveryStreamRequest createDeliveryStreamRequest, ProtocolMarshaller protocolMarshaller) { if (createDeliveryStreamRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static <E> void dotProductInPlace(Counter<E> target, Counter<E> term) { for (E key : target.keySet()) { target.setCount(key, target.getCount(key) * term.getCount(key)); } } }
public class class_name { public static <E> void dotProductInPlace(Counter<E> target, Counter<E> term) { for (E key : target.keySet()) { target.setCount(key, target.getCount(key) * term.getCount(key)); // depends on control dependency: [for], data = [key] } } }
public class class_name { public CmsJspInstanceDateBean getFirst() { if ((m_firstEvent == null) && (m_dates != null) && (!m_dates.isEmpty())) { m_firstEvent = new CmsJspInstanceDateBean((Date)m_dates.first().clone(), CmsJspDateSeriesBean.this); } return m_firstEvent; } }
public class class_name { public CmsJspInstanceDateBean getFirst() { if ((m_firstEvent == null) && (m_dates != null) && (!m_dates.isEmpty())) { m_firstEvent = new CmsJspInstanceDateBean((Date)m_dates.first().clone(), CmsJspDateSeriesBean.this); // depends on control dependency: [if], data = [none]...
public class class_name { public static PlanVersionBean unmarshallPlanVersion(Map<String, Object> source) { if (source == null) { return null; } PlanVersionBean bean = new PlanVersionBean(); bean.setVersion(asString(source.get("version"))); bean.setStatus(asEnum(sour...
public class class_name { public static PlanVersionBean unmarshallPlanVersion(Map<String, Object> source) { if (source == null) { return null; // depends on control dependency: [if], data = [none] } PlanVersionBean bean = new PlanVersionBean(); bean.setVersion(asString(sourc...
public class class_name { @Override protected Object handleGetObject(String key) { try { return this.messageSource.getMessage(key, null, this.locale); } catch (NoSuchMessageException ex) { return null; } } }
public class class_name { @Override protected Object handleGetObject(String key) { try { return this.messageSource.getMessage(key, null, this.locale); // depends on control dependency: [try], data = [none] } catch (NoSuchMessageException ex) { return null; } // depen...
public class class_name { private void readMethods() throws IOException, ClassfileFormatException { // Methods final int methodCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < methodCount; i++) { // Info on modifier flags: http://docs.oracle.com/javase/specs/...
public class class_name { private void readMethods() throws IOException, ClassfileFormatException { // Methods final int methodCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < methodCount; i++) { // Info on modifier flags: http://docs.oracle.com/javase/specs/...
public class class_name { private boolean updateDelivered(Message message) { if (consumers.size() <= 1) { return true; } String pubid = (String) message.getMetadata("cwf.pub.event"); return deliveredMessageCache.putIfAbsent(pubid, "") == null; } }
public class class_name { private boolean updateDelivered(Message message) { if (consumers.size() <= 1) { return true; // depends on control dependency: [if], data = [none] } String pubid = (String) message.getMetadata("cwf.pub.event"); return deliveredMessageCache....
public class class_name { public InternalIndex matchIndex(String pattern, QueryContext.IndexMatchHint matchHint) { if (matchHint == QueryContext.IndexMatchHint.EXACT_NAME) { return indexesByName.get(pattern); } else { return attributeIndexRegistry.match(pattern, matchHint); ...
public class class_name { public InternalIndex matchIndex(String pattern, QueryContext.IndexMatchHint matchHint) { if (matchHint == QueryContext.IndexMatchHint.EXACT_NAME) { return indexesByName.get(pattern); // depends on control dependency: [if], data = [none] } else { return ...
public class class_name { @SuppressWarnings("unchecked") private <T> Optional<T> getValue(Object object, Supplier<Object> method, WaveItem<T> waveItem) { T source = null; if (ClassUtility.getClassFromType(waveItem.type()).isInstance(method.get())) { source = (T) method.get(); }...
public class class_name { @SuppressWarnings("unchecked") private <T> Optional<T> getValue(Object object, Supplier<Object> method, WaveItem<T> waveItem) { T source = null; if (ClassUtility.getClassFromType(waveItem.type()).isInstance(method.get())) { source = (T) method.get(); // depend...
public class class_name { private boolean isCandidate(String name, List<Node> refs) { if (!OptimizeCalls.mayBeOptimizableName(compiler, name)) { return false; } boolean seenCandidateDefiniton = false; boolean seenUse = false; for (Node n : refs) { // Assume indirect definitions referen...
public class class_name { private boolean isCandidate(String name, List<Node> refs) { if (!OptimizeCalls.mayBeOptimizableName(compiler, name)) { return false; // depends on control dependency: [if], data = [none] } boolean seenCandidateDefiniton = false; boolean seenUse = false; for (Node n ...
public class class_name { public void publish(final WebApp webApp) { NullArgumentException.validateNotNull(webApp, "Web app"); LOG.debug("Publishing web application [{}]", webApp); final BundleContext webAppBundleContext = BundleUtils .getBundleContext(webApp.getBundle()); if (webAppBundleContext != n...
public class class_name { public void publish(final WebApp webApp) { NullArgumentException.validateNotNull(webApp, "Web app"); LOG.debug("Publishing web application [{}]", webApp); final BundleContext webAppBundleContext = BundleUtils .getBundleContext(webApp.getBundle()); if (webAppBundleContext != n...
public class class_name { @Override public double execute(Geometry geom1, Geometry geom2, ProgressTracker progressTracker) { if (null == geom1 || null == geom2) { throw new IllegalArgumentException(); } Geometry geometryA = geom1; Geometry geometryB = geom2; if (geometryA.isEmpty() || geometryB.isEm...
public class class_name { @Override public double execute(Geometry geom1, Geometry geom2, ProgressTracker progressTracker) { if (null == geom1 || null == geom2) { throw new IllegalArgumentException(); } Geometry geometryA = geom1; Geometry geometryB = geom2; if (geometryA.isEmpty() || geometryB.isEm...
public class class_name { public List<String> prefixMatch(String prefix) { int curState = 1; IntArrayList bytes = new IntArrayList(prefix.length() * 4); for (int i = 0; i < prefix.length(); i++) { int codePoint = prefix.charAt(i); if (curState < 1) ...
public class class_name { public List<String> prefixMatch(String prefix) { int curState = 1; IntArrayList bytes = new IntArrayList(prefix.length() * 4); for (int i = 0; i < prefix.length(); i++) { int codePoint = prefix.charAt(i); if (curState < 1) ...
public class class_name { public boolean validateAllFields() { boolean cardNumberIsValid = CardUtils.isValidCardNumber(mCardNumberEditText.getCardNumber()); boolean expiryIsValid = mExpiryDateEditText.getValidDateFields() != null && mExpiryDateEditText.isDateValid(); ...
public class class_name { public boolean validateAllFields() { boolean cardNumberIsValid = CardUtils.isValidCardNumber(mCardNumberEditText.getCardNumber()); boolean expiryIsValid = mExpiryDateEditText.getValidDateFields() != null && mExpiryDateEditText.isDateValid(); ...
public class class_name { public int[] calculateInYearsMonthsDaysHoursMinutesAndSeconds(final long compute) { long uebrig = -1; final int[] result = new int[6]; final int years = (int)this.calculateInYears(compute); if (0 < years) { result[0] = years; uebrig = compute - years * ONE_YEAR; } else ...
public class class_name { public int[] calculateInYearsMonthsDaysHoursMinutesAndSeconds(final long compute) { long uebrig = -1; final int[] result = new int[6]; final int years = (int)this.calculateInYears(compute); if (0 < years) { result[0] = years; // depends on control dependency: [if], data = [none...
public class class_name { @Internal public Plan createProgramPlan(String jobName, boolean clearSinks) { if (this.sinks.isEmpty()) { if (wasExecuted) { throw new RuntimeException("No new data sinks have been defined since the " + "last execution. The last execution refers to the latest call to " + ...
public class class_name { @Internal public Plan createProgramPlan(String jobName, boolean clearSinks) { if (this.sinks.isEmpty()) { if (wasExecuted) { throw new RuntimeException("No new data sinks have been defined since the " + "last execution. The last execution refers to the latest call to " + ...
public class class_name { public long getNodeChangedSize(String nodePath) { long nodeDelta = 0; Iterator<ChangesItem> changes = iterator(); while (changes.hasNext()) { nodeDelta += changes.next().getNodeChangedSize(nodePath); } return nodeDelta; } }
public class class_name { public long getNodeChangedSize(String nodePath) { long nodeDelta = 0; Iterator<ChangesItem> changes = iterator(); while (changes.hasNext()) { nodeDelta += changes.next().getNodeChangedSize(nodePath); // depends on control dependency: [while], data = [none]...
public class class_name { public Integer getAsInteger() { if (value instanceof String) { return Integer.valueOf((String)value); } else if (value instanceof Long) { return ((Long)value).intValue(); } return (Integer)value; } }
public class class_name { public Integer getAsInteger() { if (value instanceof String) { return Integer.valueOf((String)value); // depends on control dependency: [if], data = [none] } else if (value instanceof Long) { return ((Long)value).intValue(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void hideHelpBubbles(Widget formPanel, boolean hide) { if (hide) { formPanel.addStyleName(I_CmsLayoutBundle.INSTANCE.form().hideHelpBubbles()); } else { formPanel.removeStyleName(I_CmsLayoutBundle.INSTANCE.form().hideHelpBubbles()); ...
public class class_name { public void hideHelpBubbles(Widget formPanel, boolean hide) { if (hide) { formPanel.addStyleName(I_CmsLayoutBundle.INSTANCE.form().hideHelpBubbles()); // depends on control dependency: [if], data = [none] } else { formPanel.removeStyleName(I_CmsLa...
public class class_name { public void shutdown() { if (shutdown.compareAndSet(false, true)) { Runtime.getRuntime().removeShutdownHook(shutdownHook); try { acceptorSvr.close(); selector.close(); } catch (Throwable t) { log.error...
public class class_name { public void shutdown() { if (shutdown.compareAndSet(false, true)) { Runtime.getRuntime().removeShutdownHook(shutdownHook); // depends on control dependency: [if], data = [none] try { acceptorSvr.close(); // depends on control dependency: [try], ...
public class class_name { @Override public void removePointOfInterest(PointOfInterest poi) { try { if (this.deletePoiLocStatement == null) { this.deletePoiLocStatement = this.conn.prepareStatement(DbConstants.DELETE_INDEX_STATEMENT); } if (this.deletePoiD...
public class class_name { @Override public void removePointOfInterest(PointOfInterest poi) { try { if (this.deletePoiLocStatement == null) { this.deletePoiLocStatement = this.conn.prepareStatement(DbConstants.DELETE_INDEX_STATEMENT); // depends on control dependency: [if], data ...
public class class_name { public void setInventoryDeletions(java.util.Collection<InventoryDeletionStatusItem> inventoryDeletions) { if (inventoryDeletions == null) { this.inventoryDeletions = null; return; } this.inventoryDeletions = new com.amazonaws.internal.SdkIntern...
public class class_name { public void setInventoryDeletions(java.util.Collection<InventoryDeletionStatusItem> inventoryDeletions) { if (inventoryDeletions == null) { this.inventoryDeletions = null; // depends on control dependency: [if], data = [none] return; // depends on control depen...
public class class_name { private String formatNode(PatriciaTrie.PatriciaNode<V> node, int bit, KeyMapper<String> keyMapper, boolean formatBitString) { if (node.getBit() <= bit) { return ""; } else { StringBuffer buffer = new StringBuffer(); buffe...
public class class_name { private String formatNode(PatriciaTrie.PatriciaNode<V> node, int bit, KeyMapper<String> keyMapper, boolean formatBitString) { if (node.getBit() <= bit) { return ""; // depends on control dependency: [if], data = [none] } else { Strin...
public class class_name { public void addContextDataFactory(ContextDataFactory contextDataFactory) { if (contextDataFactories == null) { contextDataFactories = new ArrayList<>(); } contextDataFactories.add(contextDataFactory); } }
public class class_name { public void addContextDataFactory(ContextDataFactory contextDataFactory) { if (contextDataFactories == null) { contextDataFactories = new ArrayList<>(); // depends on control dependency: [if], data = [none] } contextDataFactories.add(contextDataFactory)...
public class class_name { private Formula constructAnd(final LinkedHashSet<? extends Formula> operands) { And tempAnd = null; Map<LinkedHashSet<? extends Formula>, And> opAndMap = this.andsN; if (operands.size() > 1) { switch (operands.size()) { case 2: opAndMap = this.ands2; ...
public class class_name { private Formula constructAnd(final LinkedHashSet<? extends Formula> operands) { And tempAnd = null; Map<LinkedHashSet<? extends Formula>, And> opAndMap = this.andsN; if (operands.size() > 1) { switch (operands.size()) { case 2: opAndMap = this.ands2; ...
public class class_name { public static void checkExit(ProcessAttributes attributes, ProcessResult result) { Set<Integer> allowedExitValues = attributes.getAllowedExitValues(); if (allowedExitValues != null && !allowedExitValues.contains(result.getExitValue())) { StringBuilder sb = new StringBuilder(); ...
public class class_name { public static void checkExit(ProcessAttributes attributes, ProcessResult result) { Set<Integer> allowedExitValues = attributes.getAllowedExitValues(); if (allowedExitValues != null && !allowedExitValues.contains(result.getExitValue())) { StringBuilder sb = new StringBuilder(); ...
public class class_name { public synchronized void addSyncHandler(SynchronousHandler syncHandler) { // Send messages from EMQ to synchronous handler when it subscribes to // receive messages if (earlyMessageQueue != null && earlyMessageQueue.size() != 0 && !synchronousHandlerSet.contains(syncHandler)) { f...
public class class_name { public synchronized void addSyncHandler(SynchronousHandler syncHandler) { // Send messages from EMQ to synchronous handler when it subscribes to // receive messages if (earlyMessageQueue != null && earlyMessageQueue.size() != 0 && !synchronousHandlerSet.contains(syncHandler)) { f...
public class class_name { public static Point3D_F64 closestPoint(LineParametric3D_F64 line, Point3D_F64 pt, Point3D_F64 ret) { if( ret == null ) { ret = new Point3D_F64(); } double dx = pt.x - line.p.x; double dy = pt.y - line.p.y; double dz = pt.z - line.p.z; double n2 = line.slope.normSq(); doub...
public class class_name { public static Point3D_F64 closestPoint(LineParametric3D_F64 line, Point3D_F64 pt, Point3D_F64 ret) { if( ret == null ) { ret = new Point3D_F64(); // depends on control dependency: [if], data = [none] } double dx = pt.x - line.p.x; double dy = pt.y - line.p.y; double dz = pt.z -...
public class class_name { private static void applyVersionForCompatibility(ResTable_config config) { if (config == null) { return; } int min_sdk = 0; if (((config.uiMode & ResTable_config.MASK_UI_MODE_TYPE) == ResTable_config.UI_MODE_TYPE_VR_HEADSET) || (config.colorMode & ResTabl...
public class class_name { private static void applyVersionForCompatibility(ResTable_config config) { if (config == null) { return; // depends on control dependency: [if], data = [none] } int min_sdk = 0; if (((config.uiMode & ResTable_config.MASK_UI_MODE_TYPE) == ResTable_config.UI_MODE_T...
public class class_name { public static LdapIdentityProviderDefinition fromConfig(Map<String, Object> ldapConfig) { Assert.notNull(ldapConfig); LdapIdentityProviderDefinition definition = new LdapIdentityProviderDefinition(); if (ldapConfig==null || ldapConfig.isEmpty()) { return d...
public class class_name { public static LdapIdentityProviderDefinition fromConfig(Map<String, Object> ldapConfig) { Assert.notNull(ldapConfig); LdapIdentityProviderDefinition definition = new LdapIdentityProviderDefinition(); if (ldapConfig==null || ldapConfig.isEmpty()) { return d...
public class class_name { public <T> T get(Class<T> targetClass) { try { return doGet(targetClass); } catch (ReflectiveOperationException e) { throw new RuntimeException(e); } } }
public class class_name { public <T> T get(Class<T> targetClass) { try { return doGet(targetClass); // depends on control dependency: [try], data = [none] } catch (ReflectiveOperationException e) { throw new RuntimeException(e); } // depends on control dependency: [catch], data = [none] } }
public class class_name { private static void onPrintTweets(final List<Tweets> tweets) { for (Iterator<Tweets> iterator = tweets.iterator(); iterator.hasNext();) { int counter = 1; while (iterator.hasNext()) { logger.info("\n"); ...
public class class_name { private static void onPrintTweets(final List<Tweets> tweets) { for (Iterator<Tweets> iterator = tweets.iterator(); iterator.hasNext();) { int counter = 1; while (iterator.hasNext()) { logger.info("\n"); // depen...
public class class_name { @SuppressWarnings("unused") @Internal @UsedByGeneratedCode protected final void indexProperty( @Nonnull Class<? extends Annotation> annotationType, @Nonnull String propertyName, @Nonnull String annotationValue) { indexProperty(annotation...
public class class_name { @SuppressWarnings("unused") @Internal @UsedByGeneratedCode protected final void indexProperty( @Nonnull Class<? extends Annotation> annotationType, @Nonnull String propertyName, @Nonnull String annotationValue) { indexProperty(annotation...
public class class_name { public static String changeCharset(String str, String newCharset) { if (str != null) { // 用默认字符编码解码字符串。 byte[] bs = str.getBytes(); // 用新的字符编码生成字符串 try { return new String(bs, newCharset); } catch (UnsupportedEncodingException e) {} } return ""; } }
public class class_name { public static String changeCharset(String str, String newCharset) { if (str != null) { // 用默认字符编码解码字符串。 byte[] bs = str.getBytes(); // 用新的字符编码生成字符串 try { return new String(bs, newCharset); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncoding...
public class class_name { public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, int maxAge, boolean all_sub_domain) { Cookie cookie = new Cookie(name, value); cookie.setMaxAge(m...
public class class_name { public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, int maxAge, boolean all_sub_domain) { Cookie cookie = new Cookie(name, value); cookie.setMaxAge(m...
public class class_name { public void setPortInfos(java.util.Collection<PortInfo> portInfos) { if (portInfos == null) { this.portInfos = null; return; } this.portInfos = new java.util.ArrayList<PortInfo>(portInfos); } }
public class class_name { public void setPortInfos(java.util.Collection<PortInfo> portInfos) { if (portInfos == null) { this.portInfos = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.port...
public class class_name { public synchronized void addTarget( Conjunction conjunction, MatchTarget object) throws MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry( this,cclass, "addTarget", new Object[] { conjunction, object ...
public class class_name { public synchronized void addTarget( Conjunction conjunction, MatchTarget object) throws MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry( this,cclass, "addTarget", new Object[] { conjunction, object ...
public class class_name { public static Resource getBigIconResource(CmsExplorerTypeSettings explorerType, String resourceName) { if (explorerType == null) { explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting( (resourceName == null) && !CmsResource.isFolder(resource...
public class class_name { public static Resource getBigIconResource(CmsExplorerTypeSettings explorerType, String resourceName) { if (explorerType == null) { explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting( (resourceName == null) && !CmsResource.isFolder(resource...
public class class_name { public FunctionTypeReference getAsFunctionTypeReference(ParameterizedTypeReference typeReference) { FunctionTypeKind functionTypeKind = getFunctionTypeKind(typeReference); if (functionTypeKind == FunctionTypeKind.PROCEDURE) { return getAsProcedureOrNull(typeReference); } else if (fun...
public class class_name { public FunctionTypeReference getAsFunctionTypeReference(ParameterizedTypeReference typeReference) { FunctionTypeKind functionTypeKind = getFunctionTypeKind(typeReference); if (functionTypeKind == FunctionTypeKind.PROCEDURE) { return getAsProcedureOrNull(typeReference); // depends on co...
public class class_name { protected final void destroyHandleList() // d662032 { if (connectionHandleList != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "destroyHandleList: destroying " + connectionHandleList); connect...
public class class_name { protected final void destroyHandleList() // d662032 { if (connectionHandleList != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "destroyHandleList: destroying " + connectionHandleList); connect...
public class class_name { protected final StringBuilder newHeaderValueBuffer() { final StringBuilder buf = new StringBuilder(40); if (noCache) { buf.append(", no-cache"); } if (noStore) { buf.append(", no-store"); } if (noTransform) { ...
public class class_name { protected final StringBuilder newHeaderValueBuffer() { final StringBuilder buf = new StringBuilder(40); if (noCache) { buf.append(", no-cache"); // depends on control dependency: [if], data = [none] } if (noStore) { buf.append(", no-stor...
public class class_name { public void showDataSet( int mtLv, String itemCode, DataSet ds, int in_Digits, int ot_Digits, int r_End_I, int c_End_I ) { // mtLv++; // String oinfo = ""; // String methodName = moduleCode + "." + "showDataSet"; // if ( ds == null ) { oinfo = ...
public class class_name { public void showDataSet( int mtLv, String itemCode, DataSet ds, int in_Digits, int ot_Digits, int r_End_I, int c_End_I ) { // mtLv++; // String oinfo = ""; // String methodName = moduleCode + "." + "showDataSet"; // if ( ds == null ) { oinfo = ...
public class class_name { private void waitForChannelResubscription(final Map<Integer, ChannelCallbackHandler> oldChannelIdSymbolMap) throws BitfinexClientException, InterruptedException { final Stopwatch stopwatch = Stopwatch.createStarted(); final long MAX_WAIT_TIME_IN_MS = TimeUnit.MINUTES.toMillis(3); ...
public class class_name { private void waitForChannelResubscription(final Map<Integer, ChannelCallbackHandler> oldChannelIdSymbolMap) throws BitfinexClientException, InterruptedException { final Stopwatch stopwatch = Stopwatch.createStarted(); final long MAX_WAIT_TIME_IN_MS = TimeUnit.MINUTES.toMillis(3); ...
public class class_name { public static int getFirstDayOfWeek(Context context) { int startDay = Calendar.getInstance().getFirstDayOfWeek(); if (startDay == Calendar.SATURDAY) { return Time.SATURDAY; } else if (startDay == Calendar.MONDAY) { return Time.MONDAY; }...
public class class_name { public static int getFirstDayOfWeek(Context context) { int startDay = Calendar.getInstance().getFirstDayOfWeek(); if (startDay == Calendar.SATURDAY) { return Time.SATURDAY; // depends on control dependency: [if], data = [none] } else if (startDay == Calend...
public class class_name { public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization ...
public class class_name { public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization ...
public class class_name { @Override public CommerceWarehouse fetchByG_C_P_First(long groupId, long commerceCountryId, boolean primary, OrderByComparator<CommerceWarehouse> orderByComparator) { List<CommerceWarehouse> list = findByG_C_P(groupId, commerceCountryId, primary, 0, 1, orderByComparator); if (!l...
public class class_name { @Override public CommerceWarehouse fetchByG_C_P_First(long groupId, long commerceCountryId, boolean primary, OrderByComparator<CommerceWarehouse> orderByComparator) { List<CommerceWarehouse> list = findByG_C_P(groupId, commerceCountryId, primary, 0, 1, orderByComparator); if (!l...
public class class_name { public static Optional<Symbol> filterOrRewrite(Collection<Symbol> columns, Collection<JoinNode.EquiJoinClause> equalities, Symbol column) { // symbol is exposed directly, so no translation needed if (columns.contains(column)) { return Optional.of(column); ...
public class class_name { public static Optional<Symbol> filterOrRewrite(Collection<Symbol> columns, Collection<JoinNode.EquiJoinClause> equalities, Symbol column) { // symbol is exposed directly, so no translation needed if (columns.contains(column)) { return Optional.of(column); // de...
public class class_name { private Scope getMethodScope(boolean isDestroy, Method method) { Scope methodScope; if ( isDestroy ) { Destroy annotation = method.getAnnotation(Destroy.class); methodScope = annotation != null ? annotation.scope() : null; } else { I...
public class class_name { private Scope getMethodScope(boolean isDestroy, Method method) { Scope methodScope; if ( isDestroy ) { Destroy annotation = method.getAnnotation(Destroy.class); methodScope = annotation != null ? annotation.scope() : null; // depends on control dependen...
public class class_name { protected final void waitForDeliverySync() { List<AbstractSession> sessionsSnapshot = new ArrayList<>(sessions.size()); synchronized (sessions) { sessionsSnapshot.addAll(sessions.values()); } for(int n=0;n<sessionsSnapshot.size();n++) ...
public class class_name { protected final void waitForDeliverySync() { List<AbstractSession> sessionsSnapshot = new ArrayList<>(sessions.size()); synchronized (sessions) { sessionsSnapshot.addAll(sessions.values()); } for(int n=0;n<sessionsSnapshot.size();n++) ...
public class class_name { public DescribeNotebookInstanceResult withAcceleratorTypes(NotebookInstanceAcceleratorType... acceleratorTypes) { java.util.ArrayList<String> acceleratorTypesCopy = new java.util.ArrayList<String>(acceleratorTypes.length); for (NotebookInstanceAcceleratorType value : accelerat...
public class class_name { public DescribeNotebookInstanceResult withAcceleratorTypes(NotebookInstanceAcceleratorType... acceleratorTypes) { java.util.ArrayList<String> acceleratorTypesCopy = new java.util.ArrayList<String>(acceleratorTypes.length); for (NotebookInstanceAcceleratorType value : accelerat...
public class class_name { public static boolean waitForRemovalFromJNDI(final Context ctx, final String jndiName, long timeout) { boolean removed = false; while (!removed && timeout > 0) { try { ctx.lookup(jndiName); } catch (NameNotFoundException ex) { ...
public class class_name { public static boolean waitForRemovalFromJNDI(final Context ctx, final String jndiName, long timeout) { boolean removed = false; while (!removed && timeout > 0) { try { ctx.lookup(jndiName); // depends on control dependency: [try], data = [none] ...
public class class_name { private Set<OmemoDevice> getUndecidedDevices(OmemoDevice userDevice, OmemoTrustCallback callback, Set<OmemoDevice> devices) { Set<OmemoDevice> undecidedDevices = new HashSet<>(); for (OmemoDevice device : devices) { OmemoFingerprint fingerprint; try {...
public class class_name { private Set<OmemoDevice> getUndecidedDevices(OmemoDevice userDevice, OmemoTrustCallback callback, Set<OmemoDevice> devices) { Set<OmemoDevice> undecidedDevices = new HashSet<>(); for (OmemoDevice device : devices) { OmemoFingerprint fingerprint; try {...
public class class_name { protected static void populateRequestOptions(RequestOptions modifiedOptions, final RequestOptions clientOptions, final boolean setStartTime) { if (modifiedOptions.getRetryPolicyFactory() == null) { modifiedOptions.setRetryPolicyFactory(clientOptions.getRetryPol...
public class class_name { protected static void populateRequestOptions(RequestOptions modifiedOptions, final RequestOptions clientOptions, final boolean setStartTime) { if (modifiedOptions.getRetryPolicyFactory() == null) { modifiedOptions.setRetryPolicyFactory(clientOptions.getRetryPol...
public class class_name { public void add(int index, int element) { if (index == size())//special case, just appending { add(element); } else { boundsCheck(index); enlargeIfNeeded(1); System.arraycopy(array, index, array, index...
public class class_name { public void add(int index, int element) { if (index == size())//special case, just appending { add(element); // depends on control dependency: [if], data = [none] } else { boundsCheck(index); // depends on control dependency:...
public class class_name { private void setSettings(Map<String, String> settings) { if (settings == null) { m_settings = null; } else { m_settings = new CmsNullIgnoringConcurrentMap<String, String>(settings); } } }
public class class_name { private void setSettings(Map<String, String> settings) { if (settings == null) { m_settings = null; // depends on control dependency: [if], data = [none] } else { m_settings = new CmsNullIgnoringConcurrentMap<String, String>(settings); // depends on co...
public class class_name { @Override public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { LepServiceProvider scanner = getScanner(); Set<String> basePackages = getBasePackages(importingClassMetadata); for (String basePackage : base...
public class class_name { @Override public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { LepServiceProvider scanner = getScanner(); Set<String> basePackages = getBasePackages(importingClassMetadata); for (String basePackage : base...
public class class_name { public synchronized static JsonMapper nonDefaultMapper() { if (nonDefaultJsonMapper == null) { nonDefaultJsonMapper = new JsonMapper(JsonInclude.Include.NON_DEFAULT, false); } return nonDefaultJsonMapper; } }
public class class_name { public synchronized static JsonMapper nonDefaultMapper() { if (nonDefaultJsonMapper == null) { nonDefaultJsonMapper = new JsonMapper(JsonInclude.Include.NON_DEFAULT, false); // depends on control dependency: [if], data = [none] } return nonDefaultJsonMa...
public class class_name { public final EObject ruleNamedArgument() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_calledByName_1_0=null; EObject lv_value_2_0 = null; enterRule(); try { // InternalXtext.g:1657:2: ( (...
public class class_name { public final EObject ruleNamedArgument() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_calledByName_1_0=null; EObject lv_value_2_0 = null; enterRule(); try { // InternalXtext.g:1657:2: ( (...
public class class_name { @Override protected synchronized void includeBaseLocation(String baseLocation) { _locations.add(baseLocation); // only do the processing if the cache has been read. if (_cacheRead) { File[] files = new File(_installDir, baseLocation).listFiles(new File...
public class class_name { @Override protected synchronized void includeBaseLocation(String baseLocation) { _locations.add(baseLocation); // only do the processing if the cache has been read. if (_cacheRead) { File[] files = new File(_installDir, baseLocation).listFiles(new File...
public class class_name { void rollback() { if (publishedFullRegistry == null) { return; } writeLock.lock(); try { publishedFullRegistry.readLock.lock(); try { clear(true); copy(publishedFullRegistry, this); ...
public class class_name { void rollback() { if (publishedFullRegistry == null) { return; // depends on control dependency: [if], data = [none] } writeLock.lock(); try { publishedFullRegistry.readLock.lock(); // depends on control dependency: [try], data = [none] ...
public class class_name { public void read(String filePath) throws IOException{ String line; ArrayList<String> words = new ArrayList<String>(); ArrayList<String> markP = new ArrayList<String>(); ArrayList<String> typeP = new ArrayList<String>(); ArrayList<String> markC = new ArrayList<String>(); ...
public class class_name { public void read(String filePath) throws IOException{ String line; ArrayList<String> words = new ArrayList<String>(); ArrayList<String> markP = new ArrayList<String>(); ArrayList<String> typeP = new ArrayList<String>(); ArrayList<String> markC = new ArrayList<String>(); ...
public class class_name { public static <E, T, U extends T, V extends T> T inject(E[] self, U initialValue, @ClosureParams(value=FromString.class,options="U,E") Closure<V> closure) { Object[] params = new Object[2]; T value = initialValue; for (Object next : self) { params[0] = valu...
public class class_name { public static <E, T, U extends T, V extends T> T inject(E[] self, U initialValue, @ClosureParams(value=FromString.class,options="U,E") Closure<V> closure) { Object[] params = new Object[2]; T value = initialValue; for (Object next : self) { params[0] = valu...
public class class_name { protected void openToThePublic () { if (getListenPorts().length != 0 && !_socketAcceptor.bind()) { queueShutdown(); } else { _datagramReader.bind(); _conmgr.start(); } } }
public class class_name { protected void openToThePublic () { if (getListenPorts().length != 0 && !_socketAcceptor.bind()) { queueShutdown(); // depends on control dependency: [if], data = [none] } else { _datagramReader.bind(); // depends on control dependency: [if], data =...
public class class_name { public static SoyExpression isNonNull(final Expression expr) { if (BytecodeUtils.isPrimitive(expr.resultType())) { return SoyExpression.TRUE; } return SoyExpression.forBool( new Expression(Type.BOOLEAN_TYPE, expr.features()) { @Override protected ...
public class class_name { public static SoyExpression isNonNull(final Expression expr) { if (BytecodeUtils.isPrimitive(expr.resultType())) { return SoyExpression.TRUE; // depends on control dependency: [if], data = [none] } return SoyExpression.forBool( new Expression(Type.BOOLEAN_TYPE, expr....
public class class_name { public void marshall(ListSuitesRequest listSuitesRequest, ProtocolMarshaller protocolMarshaller) { if (listSuitesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(l...
public class class_name { public void marshall(ListSuitesRequest listSuitesRequest, ProtocolMarshaller protocolMarshaller) { if (listSuitesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(l...
public class class_name { @Override public Tree evaluate(Tree t, TregexMatcher m) { newNodeNames = new HashMap<String,Tree>(); coindexer.setLastIndex(t); for (TsurgeonPattern child : children) { t = child.evaluate(t, m); if (t == null) { return null; } } return...
public class class_name { @Override public Tree evaluate(Tree t, TregexMatcher m) { newNodeNames = new HashMap<String,Tree>(); coindexer.setLastIndex(t); for (TsurgeonPattern child : children) { t = child.evaluate(t, m); // depends on control dependency: [for], data = [child] if (t == n...
public class class_name { public void setUpdates(java.util.Collection<IPSetUpdate> updates) { if (updates == null) { this.updates = null; return; } this.updates = new java.util.ArrayList<IPSetUpdate>(updates); } }
public class class_name { public void setUpdates(java.util.Collection<IPSetUpdate> updates) { if (updates == null) { this.updates = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.updates =...
public class class_name { private static void walkComponentTree(Component c, Consumer<Component> visitor) { visitor.accept(c); if (c instanceof HasComponents) { for (Component child : ((HasComponents) c)) { walkComponentTree(child, visitor); } } ...
public class class_name { private static void walkComponentTree(Component c, Consumer<Component> visitor) { visitor.accept(c); if (c instanceof HasComponents) { for (Component child : ((HasComponents) c)) { walkComponentTree(child, visitor); // depends on control depend...
public class class_name { public Subnet withIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) { if (this.ipv6CidrBlockAssociationSet == null) { setIpv6CidrBlockAssociationSet(new com.amazonaws.internal.SdkInternalList<SubnetIpv6CidrBlockAssociation>(ipv6Cidr...
public class class_name { public Subnet withIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) { if (this.ipv6CidrBlockAssociationSet == null) { setIpv6CidrBlockAssociationSet(new com.amazonaws.internal.SdkInternalList<SubnetIpv6CidrBlockAssociation>(ipv6Cidr...
public class class_name { public static <E extends Comparable<E>> int search(E[] array, E value) { int start = 0; int end = array.length - 1; int middle = 0; while(start <= end) { middle = (start + end) >> 1; if(value.equals(arr...
public class class_name { public static <E extends Comparable<E>> int search(E[] array, E value) { int start = 0; int end = array.length - 1; int middle = 0; while(start <= end) { middle = (start + end) >> 1; // depends on control dependency: [while...
public class class_name { public java.util.List<AttachedPolicy> getAttachedPolicies() { if (attachedPolicies == null) { attachedPolicies = new com.amazonaws.internal.SdkInternalList<AttachedPolicy>(); } return attachedPolicies; } }
public class class_name { public java.util.List<AttachedPolicy> getAttachedPolicies() { if (attachedPolicies == null) { attachedPolicies = new com.amazonaws.internal.SdkInternalList<AttachedPolicy>(); // depends on control dependency: [if], data = [none] } return attachedPolicies; ...
public class class_name { public void addTokens(String[] tokens, Node rootNode) { Node thenode = rootNode; for (int i = 0; i < tokens.length; i++) { Node newnode = thenode.addToken(tokens[i]); thenode = newnode; } } }
public class class_name { public void addTokens(String[] tokens, Node rootNode) { Node thenode = rootNode; for (int i = 0; i < tokens.length; i++) { Node newnode = thenode.addToken(tokens[i]); thenode = newnode; // depends on control dependency: [for], data = [none] } ...
public class class_name { public synchronized byte[] allocate(int minSize) { if (minSize <= MAX_SIZE) { for (int i = 0; i < SIZES.length; i++) { if (minSize < SIZES[i]) { if (!fastBuffers.get(SIZES[i]).isEmpty()) { Iterator<byte[]> interat...
public class class_name { public synchronized byte[] allocate(int minSize) { if (minSize <= MAX_SIZE) { for (int i = 0; i < SIZES.length; i++) { if (minSize < SIZES[i]) { if (!fastBuffers.get(SIZES[i]).isEmpty()) { Iterator<byte[]> interat...
public class class_name { @Override public Set<Principal> getPrincipals(final HttpServletRequest request) { LOGGER.debug("Checking for principals using {}", ContainerRolesPrincipalProvider.class.getSimpleName()); if (request == null) { LOGGER.debug("Servlet request was null"); ...
public class class_name { @Override public Set<Principal> getPrincipals(final HttpServletRequest request) { LOGGER.debug("Checking for principals using {}", ContainerRolesPrincipalProvider.class.getSimpleName()); if (request == null) { LOGGER.debug("Servlet request was null"); // depen...