code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { Node tryOptimizeBlock(Node n) { // Remove any useless children for (Node c = n.getFirstChild(); c != null; ) { Node next = c.getNext(); // save c.next, since 'c' may be removed if (!isUnremovableNode(c) && !mayHaveSideEffects(c)) { checkNormalization(!NodeUtil.isF...
public class class_name { Node tryOptimizeBlock(Node n) { // Remove any useless children for (Node c = n.getFirstChild(); c != null; ) { Node next = c.getNext(); // save c.next, since 'c' may be removed if (!isUnremovableNode(c) && !mayHaveSideEffects(c)) { checkNormalization(!NodeUtil.isF...
public class class_name { protected String getSingleStringAttribute(MBeanServerExecutor pMBeanServerExecutor, String pMBeanName, String pAttribute) { Set<ObjectName> serverMBeanNames = searchMBeans(pMBeanServerExecutor, pMBeanName); if (serverMBeanNames.size() == 0) { return null; }...
public class class_name { protected String getSingleStringAttribute(MBeanServerExecutor pMBeanServerExecutor, String pMBeanName, String pAttribute) { Set<ObjectName> serverMBeanNames = searchMBeans(pMBeanServerExecutor, pMBeanName); if (serverMBeanNames.size() == 0) { return null; // depend...
public class class_name { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/{alertId}/notifications/{notificationId}/triggers/{triggerId}") @Description( "Associates the trigger having the given ID to the given notification ID. Both the trigger and notification must be owned by the alert." ) public Trigge...
public class class_name { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/{alertId}/notifications/{notificationId}/triggers/{triggerId}") @Description( "Associates the trigger having the given ID to the given notification ID. Both the trigger and notification must be owned by the alert." ) public Trigge...
public class class_name { public static @DottedClassName String extractPackageName(@DottedClassName String className) { int i = className.lastIndexOf('.'); if (i < 0) { return ""; } return className.substring(0, i); } }
public class class_name { public static @DottedClassName String extractPackageName(@DottedClassName String className) { int i = className.lastIndexOf('.'); if (i < 0) { return ""; // depends on control dependency: [if], data = [none] } return className.substring(0, i); ...
public class class_name { public boolean buildData(String[] data) { final int length = data.length; for (int i = 0; i < length; i++) { addAddressToList(data[i]); } return true; } }
public class class_name { public boolean buildData(String[] data) { final int length = data.length; for (int i = 0; i < length; i++) { addAddressToList(data[i]); // depends on control dependency: [for], data = [i] } return true; } }
public class class_name { private double radicalInverse(long i) { double digit = 1.0 / (double) base; double radical = digit; double inverse = 0.0; while(i > 0) { inverse += digit * (double) (i % base); digit *= radical; i /= base; } return inverse; } }
public class class_name { private double radicalInverse(long i) { double digit = 1.0 / (double) base; double radical = digit; double inverse = 0.0; while(i > 0) { inverse += digit * (double) (i % base); // depends on control dependency: [while], data = [(i] digit *= radical; // depends on c...
public class class_name { public static base_responses add(nitro_service client, pqpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { pqpolicy addresources[] = new pqpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresou...
public class class_name { public static base_responses add(nitro_service client, pqpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { pqpolicy addresources[] = new pqpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresou...
public class class_name { public static JulianChronology getInstance(DateTimeZone zone, int minDaysInFirstWeek) { if (zone == null) { zone = DateTimeZone.getDefault(); } JulianChronology chrono; JulianChronology[] chronos = cCache.get(zone); if (chronos == null) { ...
public class class_name { public static JulianChronology getInstance(DateTimeZone zone, int minDaysInFirstWeek) { if (zone == null) { zone = DateTimeZone.getDefault(); // depends on control dependency: [if], data = [none] } JulianChronology chrono; JulianChronology[] chronos...
public class class_name { protected <T extends DataSiftResult, A extends DataSiftResult> void unwrapFuture(FutureData<T> futureToUnwrap, final FutureData<A> ...
public class class_name { protected <T extends DataSiftResult, A extends DataSiftResult> void unwrapFuture(FutureData<T> futureToUnwrap, final FutureData<A> ...
public class class_name { public BaseServerResponseException addResponseHeader(String theName, String theValue) { Validate.notBlank(theName, "theName must not be null or empty"); Validate.notBlank(theValue, "theValue must not be null or empty"); if (getResponseHeaders().containsKey(theName) == false) { getRes...
public class class_name { public BaseServerResponseException addResponseHeader(String theName, String theValue) { Validate.notBlank(theName, "theName must not be null or empty"); Validate.notBlank(theValue, "theValue must not be null or empty"); if (getResponseHeaders().containsKey(theName) == false) { getRes...
public class class_name { @Override public Object visit(Before before, Object extraData) { String propertyName = getPropertyName(before.getExpression1()); String finalName = parsePropertyName(propertyName, before); Object literal = getLiteralValue(before.getExpression2()); if (literal instanceof Date) { re...
public class class_name { @Override public Object visit(Before before, Object extraData) { String propertyName = getPropertyName(before.getExpression1()); String finalName = parsePropertyName(propertyName, before); Object literal = getLiteralValue(before.getExpression2()); if (literal instanceof Date) { re...
public class class_name { public void marshall(EyeOpen eyeOpen, ProtocolMarshaller protocolMarshaller) { if (eyeOpen == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(eyeOpen.getValue(), VALUE_BINDI...
public class class_name { public void marshall(EyeOpen eyeOpen, ProtocolMarshaller protocolMarshaller) { if (eyeOpen == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(eyeOpen.getValue(), VALUE_BINDI...
public class class_name { public void showTracking(Formatter format) { if (track == null) return; List<Tracker> all = new ArrayList<>(track.size()); for (Tracker val : track.values()) all.add(val); Collections.sort(all); // LOOK what should we sort by ?? int count = 0; int countAll = 0; ...
public class class_name { public void showTracking(Formatter format) { if (track == null) return; List<Tracker> all = new ArrayList<>(track.size()); for (Tracker val : track.values()) all.add(val); Collections.sort(all); // LOOK what should we sort by ?? int count = 0; int countAll = 0; ...
public class class_name { protected ObjectOutputStream getObjectOutputStream (FramingOutputStream fout) { // we're lazy about creating our output stream because we may be inheriting it from our // authing connection and we don't want to unnecessarily create it in that case if (_oout == null...
public class class_name { protected ObjectOutputStream getObjectOutputStream (FramingOutputStream fout) { // we're lazy about creating our output stream because we may be inheriting it from our // authing connection and we don't want to unnecessarily create it in that case if (_oout == null...
public class class_name { @Override public NamespaceGroup convert(XBELNamespaceGroup source) { if (source == null) return null; String defaultResourceLocation = source.getDefaultResourceLocation(); List<XBELNamespace> xbelnamespaces = source.getNamespace(); NamespaceGroup dest = n...
public class class_name { @Override public NamespaceGroup convert(XBELNamespaceGroup source) { if (source == null) return null; String defaultResourceLocation = source.getDefaultResourceLocation(); List<XBELNamespace> xbelnamespaces = source.getNamespace(); NamespaceGroup dest = n...
public class class_name { public void setUsers(final List<User> users) { synchronized(this.getUsers()) { if(users != this.getUsers()) { this.getUsers().clear(); if(users != null) { this.getU...
public class class_name { public void setUsers(final List<User> users) { synchronized(this.getUsers()) { if(users != this.getUsers()) { this.getUsers().clear(); // depends on control dependency: [if], data = [none] if(users !=...
public class class_name { @Override public Header getResponseHeader(String headerName) { if (headerName == null) { return null; } else { return getResponseHeaderGroup().getCondensedHeader(headerName); } } }
public class class_name { @Override public Header getResponseHeader(String headerName) { if (headerName == null) { return null; // depends on control dependency: [if], data = [none] } else { return getResponseHeaderGroup().getCondensedHeader(headerName); // depends o...
public class class_name { public boolean reverseTransformPacket(RawPacket pkt) { int seqNo = pkt.getSequenceNumber(); if (!seqNumSet) { seqNumSet = true; seqNum = seqNo; } // Guess the SRTP index (48 bit), see rFC 3711, 3.3.1 // Stores the guessed roc in this.guessedROC long guessedIndex = guessI...
public class class_name { public boolean reverseTransformPacket(RawPacket pkt) { int seqNo = pkt.getSequenceNumber(); if (!seqNumSet) { seqNumSet = true; // depends on control dependency: [if], data = [none] seqNum = seqNo; // depends on control dependency: [if], data = [none] } // Guess the SRTP ind...
public class class_name { public void unreferenceSSTables() { Set<SSTableReader> notCompacting; View currentView, newView; do { currentView = view.get(); notCompacting = currentView.nonCompactingSStables(); newView = currentView.replace(notCompac...
public class class_name { public void unreferenceSSTables() { Set<SSTableReader> notCompacting; View currentView, newView; do { currentView = view.get(); notCompacting = currentView.nonCompactingSStables(); newView = currentView.replace(notCompac...
public class class_name { public static List<String> get(String name, @Nullable Path file) { if (file != null) { if (!file.toString().isEmpty()) { return Arrays.asList("--" + name + "=" + file.toString()); } } return Collections.emptyList(); } }
public class class_name { public static List<String> get(String name, @Nullable Path file) { if (file != null) { if (!file.toString().isEmpty()) { return Arrays.asList("--" + name + "=" + file.toString()); // depends on control dependency: [if], data = [none] } } return Collections.empt...
public class class_name { private String getAvailableLocalVariant(String path, String baseName) { //First look for a bundle with the locale of the folder.. try { CmsProperty propLoc = m_clonedCms.readPropertyObject(path, CmsPropertyDefinition.PROPERTY_LOCALE, true); if (!propLo...
public class class_name { private String getAvailableLocalVariant(String path, String baseName) { //First look for a bundle with the locale of the folder.. try { CmsProperty propLoc = m_clonedCms.readPropertyObject(path, CmsPropertyDefinition.PROPERTY_LOCALE, true); if (!propLo...
public class class_name { public static <T> Stream<T> makeRef(AbstractPipeline<?, T, ?> upstream, long skip, long limit) { if (skip < 0) throw new IllegalArgumentException("Skip must be non-negative: " + skip); return new ReferencePipeline.StatefulOp...
public class class_name { public static <T> Stream<T> makeRef(AbstractPipeline<?, T, ?> upstream, long skip, long limit) { if (skip < 0) throw new IllegalArgumentException("Skip must be non-negative: " + skip); return new ReferencePipeline.StatefulOp...
public class class_name { static final long[] compactCachePart(final long[] srcCache, final int lgArrLongs, final int curCount, final long thetaLong, final boolean dstOrdered) { if (curCount == 0) { return new long[0]; } final long[] cacheOut = new long[curCount]; final int len = 1 << lgArr...
public class class_name { static final long[] compactCachePart(final long[] srcCache, final int lgArrLongs, final int curCount, final long thetaLong, final boolean dstOrdered) { if (curCount == 0) { return new long[0]; // depends on control dependency: [if], data = [none] } final long[] cacheOu...
public class class_name { @Override public void resolve(final ValueStack values) throws Exception { if (values.size() < 2) throw new Exception("missing operands for " + toString()); try { final String tableName = values.popString(); final Double base...
public class class_name { @Override public void resolve(final ValueStack values) throws Exception { if (values.size() < 2) throw new Exception("missing operands for " + toString()); try { final String tableName = values.popString(); final Double base...
public class class_name { @Override public TimeZoneTransition getNextTransition(long base, boolean inclusive) { complete(); if (historicTransitions == null) { return null; } boolean isFinal = false; TimeZoneTransition result; TimeZoneTransition tzt = hist...
public class class_name { @Override public TimeZoneTransition getNextTransition(long base, boolean inclusive) { complete(); if (historicTransitions == null) { return null; // depends on control dependency: [if], data = [none] } boolean isFinal = false; TimeZoneTr...
public class class_name { public DrawerBuilder addStickyDrawerItems(@NonNull IDrawerItem... stickyDrawerItems) { if (this.mStickyDrawerItems == null) { this.mStickyDrawerItems = new ArrayList<>(); } Collections.addAll(this.mStickyDrawerItems, stickyDrawerItems); return thi...
public class class_name { public DrawerBuilder addStickyDrawerItems(@NonNull IDrawerItem... stickyDrawerItems) { if (this.mStickyDrawerItems == null) { this.mStickyDrawerItems = new ArrayList<>(); // depends on control dependency: [if], data = [none] } Collections.addAll(this.mStic...
public class class_name { @GwtIncompatible // NavigableSet public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set) { if (set instanceof ImmutableSortedSet || set instanceof UnmodifiableNavigableSet) { return set; } return new UnmodifiableNavigableSet<E>(set); } }
public class class_name { @GwtIncompatible // NavigableSet public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set) { if (set instanceof ImmutableSortedSet || set instanceof UnmodifiableNavigableSet) { return set; // depends on control dependency: [if], data = [none] } return...
public class class_name { public GroupMember getMemberFor(String commandId) { for (Iterator it = members.iterator(); it.hasNext();) { GroupMember member = (GroupMember)it.next(); if (member.managesCommand(commandId)) { return member; } } retur...
public class class_name { public GroupMember getMemberFor(String commandId) { for (Iterator it = members.iterator(); it.hasNext();) { GroupMember member = (GroupMember)it.next(); if (member.managesCommand(commandId)) { return member; // depends on control dependency: [if...
public class class_name { public CachedMethods withItems(Method... items) { com.amazonaws.internal.SdkInternalList<String> itemsCopy = new com.amazonaws.internal.SdkInternalList<String>(items.length); for (Method value : items) { itemsCopy.add(value.toString()); } if (getIte...
public class class_name { public CachedMethods withItems(Method... items) { com.amazonaws.internal.SdkInternalList<String> itemsCopy = new com.amazonaws.internal.SdkInternalList<String>(items.length); for (Method value : items) { itemsCopy.add(value.toString()); // depends on control depend...
public class class_name { public static Set<XMethod> resolveMethodCallTargets(ReferenceType receiverType, InvokeInstruction invokeInstruction, ConstantPoolGen cpg, boolean receiverTypeIsExact) throws ClassNotFoundException { if (invokeInstruction.getOpcode() == Const.INVOKESTATIC) { th...
public class class_name { public static Set<XMethod> resolveMethodCallTargets(ReferenceType receiverType, InvokeInstruction invokeInstruction, ConstantPoolGen cpg, boolean receiverTypeIsExact) throws ClassNotFoundException { if (invokeInstruction.getOpcode() == Const.INVOKESTATIC) { th...
public class class_name { public String toPlainString() { if(scale==0) { if(intCompact!=INFLATED) { return Long.toString(intCompact); } else { return intVal.toString(); } } if(this.scale<0) { // No decimal point if(...
public class class_name { public String toPlainString() { if(scale==0) { if(intCompact!=INFLATED) { return Long.toString(intCompact); // depends on control dependency: [if], data = [(intCompact] } else { return intVal.toString(); // depends on control dep...
public class class_name { public RandomVariableInterface[] getInitialValue() { RandomVariableInterface[] initialState = getInitialState(); RandomVariableInterface[] value = new RandomVariableInterface[initialState.length]; for(int i= 0; i<value.length; i++) { value[i] = applyStateSpaceTransform(i,initialStat...
public class class_name { public RandomVariableInterface[] getInitialValue() { RandomVariableInterface[] initialState = getInitialState(); RandomVariableInterface[] value = new RandomVariableInterface[initialState.length]; for(int i= 0; i<value.length; i++) { value[i] = applyStateSpaceTransform(i,initialStat...
public class class_name { public static Resource getFileResource(String filePath) { String path; if (filePath.contains(FILE_PATH_CHARSET_PARAMETER)) { path = filePath.substring(0, filePath.indexOf(FileUtils.FILE_PATH_CHARSET_PARAMETER)); } else { path = filePath; ...
public class class_name { public static Resource getFileResource(String filePath) { String path; if (filePath.contains(FILE_PATH_CHARSET_PARAMETER)) { path = filePath.substring(0, filePath.indexOf(FileUtils.FILE_PATH_CHARSET_PARAMETER)); // depends on control dependency: [if], data = [none...
public class class_name { public static String getArtefactDirectory(String path) { if (path != null) { final Matcher matcher = RESOURCE_PATH_PATTERN.matcher(path); if (matcher.find()) { return matcher.group(1); } } return null; } }
public class class_name { public static String getArtefactDirectory(String path) { if (path != null) { final Matcher matcher = RESOURCE_PATH_PATTERN.matcher(path); if (matcher.find()) { return matcher.group(1); // depends on control dependency: [if], data = [none] ...
public class class_name { public int compareTo(Object obj) { if (obj == this) return 0; if (obj == null) throw new NullPointerException(); if (obj.getClass() == this.getClass()) { return ((CongestionControlNotification) obj).localAddress.compareTo(this.localAddress); } ...
public class class_name { public int compareTo(Object obj) { if (obj == this) return 0; if (obj == null) throw new NullPointerException(); if (obj.getClass() == this.getClass()) { return ((CongestionControlNotification) obj).localAddress.compareTo(this.localAddress); // depends on cont...
public class class_name { public static void register(final MBeanServer mbs, final Object obj) { final ObjectName mBeanName = JmxUtils.getObjectName(obj.getClass()); try { mbs.registerMBean(obj, mBeanName); } catch (final InstanceAlreadyExistsExceptio...
public class class_name { public static void register(final MBeanServer mbs, final Object obj) { final ObjectName mBeanName = JmxUtils.getObjectName(obj.getClass()); try { mbs.registerMBean(obj, mBeanName); // depends on control dependency: [try], data = [none] ...
public class class_name { public static Optional<StopEvent> createStopEvent(Identification source) { try { StopEvent stopRequest = new StopEvent(source); return Optional.of(stopRequest); } catch (IllegalArgumentException e) { return Optional.empty(); } } ...
public class class_name { public static Optional<StopEvent> createStopEvent(Identification source) { try { StopEvent stopRequest = new StopEvent(source); return Optional.of(stopRequest); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException e) ...
public class class_name { public int getHeight() { int levels = 0; N node = getRoot(); while(!node.isLeaf()) { if(node.getNumEntries() > 0) { node = getNode(node.getEntry(0)); levels++; } } return levels; } }
public class class_name { public int getHeight() { int levels = 0; N node = getRoot(); while(!node.isLeaf()) { if(node.getNumEntries() > 0) { node = getNode(node.getEntry(0)); // depends on control dependency: [if], data = [0)] levels++; // depends on control dependency: [if], data =...
public class class_name { public void updateStreams (float time) { // iterate backwards through the list so that streams can dispose of themselves during // their update for (int ii = _streams.size() - 1; ii >= 0; ii--) { _streams.get(ii).update(time); } // dele...
public class class_name { public void updateStreams (float time) { // iterate backwards through the list so that streams can dispose of themselves during // their update for (int ii = _streams.size() - 1; ii >= 0; ii--) { _streams.get(ii).update(time); // depends on control depe...
public class class_name { public double getRewardTotal() { double rewards = 0.0; for (Map.Entry<Integer, Float> entry : this.map.entrySet()) { rewards += entry.getValue(); } return rewards; } }
public class class_name { public double getRewardTotal() { double rewards = 0.0; for (Map.Entry<Integer, Float> entry : this.map.entrySet()) { rewards += entry.getValue(); // depends on control dependency: [for], data = [entry] } return rewards; } }
public class class_name { protected byte[] getGetProcessingOptions(final byte[] pPdol) throws CommunicationException { // List Tag and length from PDOL List<TagAndLength> list = TlvUtil.parseTagAndLength(pPdol); ByteArrayOutputStream out = new ByteArrayOutputStream(); try { out.write(EmvTags.COMMAND_TEMPLAT...
public class class_name { protected byte[] getGetProcessingOptions(final byte[] pPdol) throws CommunicationException { // List Tag and length from PDOL List<TagAndLength> list = TlvUtil.parseTagAndLength(pPdol); ByteArrayOutputStream out = new ByteArrayOutputStream(); try { out.write(EmvTags.COMMAND_TEMPLAT...
public class class_name { public VirtualFlowHit<C> hit(double x, double y) { double bOff = orientation.getX(x, y); double lOff = orientation.getY(x, y); bOff += breadthOffset0.getValue(); if(items.isEmpty()) { return orientation.hitAfterCells(bOff, lOff); } ...
public class class_name { public VirtualFlowHit<C> hit(double x, double y) { double bOff = orientation.getX(x, y); double lOff = orientation.getY(x, y); bOff += breadthOffset0.getValue(); if(items.isEmpty()) { return orientation.hitAfterCells(bOff, lOff); // depends on con...
public class class_name { public void setUserGroup(String userGroup) { CmsGroup group = checkGroup(userGroup); if (group != null) { m_project.setGroupId(group.getId()); } } }
public class class_name { public void setUserGroup(String userGroup) { CmsGroup group = checkGroup(userGroup); if (group != null) { m_project.setGroupId(group.getId()); // depends on control dependency: [if], data = [(group] } } }
public class class_name { private int getByteLength(final Object val) { if (val == null) { return 0; } String str = val.toString(); try { return str.getBytes(System.getProperty("file.encoding")).length; } catch (UnsupportedEncodingException ex) { return 1; } } }
public class class_name { private int getByteLength(final Object val) { if (val == null) { return 0; // depends on control dependency: [if], data = [none] } String str = val.toString(); try { return str.getBytes(System.getProperty("file.encoding")).length; } catch (UnsupportedEncodingException ex) { ...
public class class_name { public void marshall(CreateThreatIntelSetRequest createThreatIntelSetRequest, ProtocolMarshaller protocolMarshaller) { if (createThreatIntelSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(CreateThreatIntelSetRequest createThreatIntelSetRequest, ProtocolMarshaller protocolMarshaller) { if (createThreatIntelSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Override public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "run : async method " + methodInfos[ivMethodId].getMethodName() + " : " + this); // F743-22763 // A...
public class class_name { @Override public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "run : async method " + methodInfos[ivMethodId].getMethodName() + " : " + this); // F743-22763 // A...
public class class_name { public static Optional<SaltVersion> parse(String versionString) { Matcher matcher = SALT_VERSION_REGEX.matcher(versionString); if (matcher.matches()) { int year = Integer.parseInt(matcher.group(1)); int month = Integer.parseInt(matcher.group(2)); ...
public class class_name { public static Optional<SaltVersion> parse(String versionString) { Matcher matcher = SALT_VERSION_REGEX.matcher(versionString); if (matcher.matches()) { int year = Integer.parseInt(matcher.group(1)); int month = Integer.parseInt(matcher.group(2)); ...
public class class_name { public DirectoryOperation copyLocalDirectory(String localdir, String remotedir, boolean recurse, boolean sync, boolean commit, FileTransferProgress progress) throws FileNotFoundException, SftpStatusException, SshException, TransferCancelledException { DirectoryOperation op = new Di...
public class class_name { public DirectoryOperation copyLocalDirectory(String localdir, String remotedir, boolean recurse, boolean sync, boolean commit, FileTransferProgress progress) throws FileNotFoundException, SftpStatusException, SshException, TransferCancelledException { DirectoryOperation op = new Di...
public class class_name { public static boolean copyFile(String srcFile, String destFile) { boolean flag = false; FileInputStream fin = null; FileOutputStream fout = null; FileChannel fcin = null; FileChannel fcout = null; try { // 获取源文件和目标文件的输入输出流 fin = new FileInputStream(srcFile); fout = new Fi...
public class class_name { public static boolean copyFile(String srcFile, String destFile) { boolean flag = false; FileInputStream fin = null; FileOutputStream fout = null; FileChannel fcin = null; FileChannel fcout = null; try { // 获取源文件和目标文件的输入输出流 fin = new FileInputStream(srcFile); // depends on co...
public class class_name { public void setResponseDescription(Element value) { Element child = getLastChild(root, "responsedescription"); //$NON-NLS-1$ if (child != null) root.removeChild(child); if (value == null) { child = setChild(root, "responsedescription", childName...
public class class_name { public void setResponseDescription(Element value) { Element child = getLastChild(root, "responsedescription"); //$NON-NLS-1$ if (child != null) root.removeChild(child); if (value == null) { child = setChild(root, "responsedescription", childName...
public class class_name { private int parseVersion( String uri ) { if( uri.length() <= 1 || uri.charAt(0) != '/' ) // If not a leading slash, then I am confused return (0<<16)|LATEST_VERSION; if( uri.startsWith("/latest") ) return (("/latest".length())<<16)|LATEST_VERSION; int idx=1; ...
public class class_name { private int parseVersion( String uri ) { if( uri.length() <= 1 || uri.charAt(0) != '/' ) // If not a leading slash, then I am confused return (0<<16)|LATEST_VERSION; if( uri.startsWith("/latest") ) return (("/latest".length())<<16)|LATEST_VERSION; int idx=1; ...
public class class_name { public static synchronized void setTraceMemoryDestination(String location, long maxSize) { LogRepositoryWriter old = getBinaryHandler().getTraceWriter(); LogRepositoryWriterCBuffImpl writer; // Check if trace writer need to be changed. if (location == null && old instanceof LogReposit...
public class class_name { public static synchronized void setTraceMemoryDestination(String location, long maxSize) { LogRepositoryWriter old = getBinaryHandler().getTraceWriter(); LogRepositoryWriterCBuffImpl writer; // Check if trace writer need to be changed. if (location == null && old instanceof LogReposit...
public class class_name { @Override public void addAppender(Appender newAppender) { if (aai == null) { synchronized (this) { if (aai == null) { aai = new NFAppenderAttachableImpl(); } } } aai.addAppender(newAppender...
public class class_name { @Override public void addAppender(Appender newAppender) { if (aai == null) { synchronized (this) { // depends on control dependency: [if], data = [none] if (aai == null) { aai = new NFAppenderAttachableImpl(); // depends on control d...
public class class_name { public String getClassName() { switch (sort) { case VOID: return "void"; case BOOLEAN: return "boolean"; case CHAR: return "char"; case BYTE: return "byte"; case SHORT: return "short"; case INT: return "in...
public class class_name { public String getClassName() { switch (sort) { case VOID: return "void"; case BOOLEAN: return "boolean"; case CHAR: return "char"; case BYTE: return "byte"; case SHORT: return "short"; case INT: return "in...
public class class_name { private List<String> getSchemaGeneratorSourceFiles(final List<URL> sources) throws IOException, MojoExecutionException { final SortedMap<String, String> className2SourcePath = new TreeMap<String, String>(); final File baseDir = getProject().getBasedir(); f...
public class class_name { private List<String> getSchemaGeneratorSourceFiles(final List<URL> sources) throws IOException, MojoExecutionException { final SortedMap<String, String> className2SourcePath = new TreeMap<String, String>(); final File baseDir = getProject().getBasedir(); f...
public class class_name { protected EntityManagerFactory lookupEntityManagerFactory(OpenEntityManager openEntityManager) { String emfBeanName = openEntityManager.name(); String puName = openEntityManager.unitName(); if (StringUtils.hasLength(emfBeanName)) { return this.applicationCo...
public class class_name { protected EntityManagerFactory lookupEntityManagerFactory(OpenEntityManager openEntityManager) { String emfBeanName = openEntityManager.name(); String puName = openEntityManager.unitName(); if (StringUtils.hasLength(emfBeanName)) { return this.applicationCo...
public class class_name { public Observable<ServiceResponse<Page<PolicyDefinitionInner>>> listByManagementGroupSinglePageAsync(final String managementGroupId) { if (managementGroupId == null) { throw new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."); ...
public class class_name { public Observable<ServiceResponse<Page<PolicyDefinitionInner>>> listByManagementGroupSinglePageAsync(final String managementGroupId) { if (managementGroupId == null) { throw new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."); ...
public class class_name { public static boolean areRightLinksConsistent(CalendarHashChain calendarHashChain1, CalendarHashChain calendarHashChain2) { notNull(calendarHashChain1, "CalendarHashChain"); notNull(calendarHashChain2, "CalendarHashChain"); ...
public class class_name { public static boolean areRightLinksConsistent(CalendarHashChain calendarHashChain1, CalendarHashChain calendarHashChain2) { notNull(calendarHashChain1, "CalendarHashChain"); notNull(calendarHashChain2, "CalendarHashChain"); ...
public class class_name { public static String extractDDLToken(String sql) { String ddlToken = null; Matcher ddlMatcher = PAT_ANY_DDL_FIRST_TOKEN.matcher(sql); if (ddlMatcher.find()) { ddlToken = ddlMatcher.group(1).toLowerCase(); } return ddlToken; } }
public class class_name { public static String extractDDLToken(String sql) { String ddlToken = null; Matcher ddlMatcher = PAT_ANY_DDL_FIRST_TOKEN.matcher(sql); if (ddlMatcher.find()) { ddlToken = ddlMatcher.group(1).toLowerCase(); // depends on control dependency: [if], data = [...
public class class_name { @Override public boolean addAll(Collection<? extends BooleanTerm> terms) { boolean modified = false; // a null booleanTerms means that the expression is // already true, so no need to modify it if (terms == null) { modified = booleanTerms != null; booleanTerms = null; ...
public class class_name { @Override public boolean addAll(Collection<? extends BooleanTerm> terms) { boolean modified = false; // a null booleanTerms means that the expression is // already true, so no need to modify it if (terms == null) { modified = booleanTerms != null; // depends on control depe...
public class class_name { @Override public int compareTo(ChildData rhs) { if ( this == rhs ) { return 0; } if ( rhs == null || getClass() != rhs.getClass() ) { return -1; } return path.compareTo(rhs.path); } }
public class class_name { @Override public int compareTo(ChildData rhs) { if ( this == rhs ) { return 0; // depends on control dependency: [if], data = [none] } if ( rhs == null || getClass() != rhs.getClass() ) { return -1; // depends on control ...
public class class_name { public String categoryAndFunction(String category) { if (category == null) { return null; } String catFunc = category; int i = lastIndexOfNumericTag(catFunc); while (i >= 0) { catFunc = catFunc.substring(0, i); i = lastIndexOfNumericTag(catFunc); ...
public class class_name { public String categoryAndFunction(String category) { if (category == null) { return null; // depends on control dependency: [if], data = [none] } String catFunc = category; int i = lastIndexOfNumericTag(catFunc); while (i >= 0) { catFunc = catFunc.substr...
public class class_name { @Override public void keyReleased(KeyEvent e){ int code = e.getKeyCode(); //String s = e.getKeyText(code); //System.out.println(s); if (( code == KeyEvent.VK_UP ) || ( code == KeyEvent.VK_KP_UP)) { // go one back in history; if ( historyPosition > 0){ historyPosition= ...
public class class_name { @Override public void keyReleased(KeyEvent e){ int code = e.getKeyCode(); //String s = e.getKeyText(code); //System.out.println(s); if (( code == KeyEvent.VK_UP ) || ( code == KeyEvent.VK_KP_UP)) { // go one back in history; if ( historyPosition > 0){ historyPosition= ...
public class class_name { @Override public int indexOf(String label) { T token = tokenFor(label); if (token != null) { return token.getIndex(); } else return -2; } }
public class class_name { @Override public int indexOf(String label) { T token = tokenFor(label); if (token != null) { return token.getIndex(); // depends on control dependency: [if], data = [none] } else return -2; } }
public class class_name { private void injectDependencies(TypeElement component, ComponentInjectedDependenciesBuilder dependenciesBuilder, MethodSpec.Builder createdMethodBuilder) { if (!dependenciesBuilder.hasInjectedDependencies()) { return; } createDependenciesInstance(component, crea...
public class class_name { private void injectDependencies(TypeElement component, ComponentInjectedDependenciesBuilder dependenciesBuilder, MethodSpec.Builder createdMethodBuilder) { if (!dependenciesBuilder.hasInjectedDependencies()) { return; // depends on control dependency: [if], data = [none]...
public class class_name { private void addPostParams(final Request request) { if (roleSid != null) { request.addPostParam("RoleSid", roleSid); } if (lastConsumedMessageIndex != null) { request.addPostParam("LastConsumedMessageIndex", lastConsumedMessageIndex.toString())...
public class class_name { private void addPostParams(final Request request) { if (roleSid != null) { request.addPostParam("RoleSid", roleSid); // depends on control dependency: [if], data = [none] } if (lastConsumedMessageIndex != null) { request.addPostParam("LastConsu...
public class class_name { public static long[] parseRange(String rangeValue) { int phyphen = rangeValue.indexOf('-'); if (phyphen == -1) { // this is a syntax error. return null; } try { if (phyphen == 0) { // -N (suffix-byte-range-spec) long end = Long.parseLong(rangeValue.substring(1)); ...
public class class_name { public static long[] parseRange(String rangeValue) { int phyphen = rangeValue.indexOf('-'); if (phyphen == -1) { // this is a syntax error. return null; // depends on control dependency: [if], data = [none] } try { if (phyphen == 0) { // -N (suffix-byte-range-spec) lo...
public class class_name { @Nonnull public static Charset getCharsetFromName (@Nonnull @Nonempty final String sCharsetName) { ValueEnforcer.notNull (sCharsetName, "CharsetName"); try { return Charset.forName (sCharsetName); } catch (final IllegalCharsetNameException ex) { // Not ...
public class class_name { @Nonnull public static Charset getCharsetFromName (@Nonnull @Nonempty final String sCharsetName) { ValueEnforcer.notNull (sCharsetName, "CharsetName"); try { return Charset.forName (sCharsetName); // depends on control dependency: [try], data = [none] } catch (fi...
public class class_name { @Deprecated public static String toPlainText(String text, int offset, int capacity) { PlainTextState state = PlainTextState.TEXT; StringBuilder plainText = new StringBuilder(); for(int i = offset; i < text.length() && plainText.length() <= capacity; ++i) { int c ...
public class class_name { @Deprecated public static String toPlainText(String text, int offset, int capacity) { PlainTextState state = PlainTextState.TEXT; StringBuilder plainText = new StringBuilder(); for(int i = offset; i < text.length() && plainText.length() <= capacity; ++i) { int c ...
public class class_name { public static ILoggerFactory getILoggerFactory() { if (INITIALIZATION_STATE == UNINITIALIZED) { synchronized (LoggerFactory.class) { if (INITIALIZATION_STATE == UNINITIALIZED) { INITIALIZATION_STATE = ONGOING_INITIALIZATION; ...
public class class_name { public static ILoggerFactory getILoggerFactory() { if (INITIALIZATION_STATE == UNINITIALIZED) { synchronized (LoggerFactory.class) { // depends on control dependency: [if], data = [none] if (INITIALIZATION_STATE == UNINITIALIZED) { I...
public class class_name { private UnicodeSet add_unchecked(int start, int end) { if (start < MIN_VALUE || start > MAX_VALUE) { throw new IllegalArgumentException("Invalid code point U+" + Utility.hex(start, 6)); } if (end < MIN_VALUE || end > MAX_VALUE) { throw new Illeg...
public class class_name { private UnicodeSet add_unchecked(int start, int end) { if (start < MIN_VALUE || start > MAX_VALUE) { throw new IllegalArgumentException("Invalid code point U+" + Utility.hex(start, 6)); } if (end < MIN_VALUE || end > MAX_VALUE) { throw new Illeg...
public class class_name { public int[] cwaArray() { int[] arr = new int[numSamples()]; for (int recall = 1; recall <= numSamples(); recall++) { arr[recall - 1] = logPrecision(recall); } return arr; } }
public class class_name { public int[] cwaArray() { int[] arr = new int[numSamples()]; for (int recall = 1; recall <= numSamples(); recall++) { arr[recall - 1] = logPrecision(recall); // depends on control dependency: [for], data = [recall] } return arr; } }
public class class_name { @Nonnull public EContinue encode (@Nonnull final String sSource, @Nonnull final ByteBuffer aDestBuffer) { ValueEnforcer.notNull (sSource, "Source"); ValueEnforcer.notNull (aDestBuffer, "DestBuffer"); // We need to special case the empty string if (sSource.length () == 0) ...
public class class_name { @Nonnull public EContinue encode (@Nonnull final String sSource, @Nonnull final ByteBuffer aDestBuffer) { ValueEnforcer.notNull (sSource, "Source"); ValueEnforcer.notNull (aDestBuffer, "DestBuffer"); // We need to special case the empty string if (sSource.length () == 0) ...
public class class_name { public static double distanceInMeters(@Nonnull final Point p1, @Nonnull final Point p2) { checkNonnull("p1", p1); checkNonnull("p2", p2); final Point from; final Point to; if (p1.getLonDeg() <= p2.getLonDeg()) { from = p1; to = ...
public class class_name { public static double distanceInMeters(@Nonnull final Point p1, @Nonnull final Point p2) { checkNonnull("p1", p1); checkNonnull("p2", p2); final Point from; final Point to; if (p1.getLonDeg() <= p2.getLonDeg()) { from = p1; // depends on con...
public class class_name { public static List<ExcelHeader> getHeaderList(Class<?> clz) throws Excel4JException { List<ExcelHeader> headers = new ArrayList<>(); List<Field> fields = new ArrayList<>(); for (Class<?> clazz = clz; clazz != Object.class; clazz = clazz.getSuperclass()) { ...
public class class_name { public static List<ExcelHeader> getHeaderList(Class<?> clz) throws Excel4JException { List<ExcelHeader> headers = new ArrayList<>(); List<Field> fields = new ArrayList<>(); for (Class<?> clazz = clz; clazz != Object.class; clazz = clazz.getSuperclass()) { ...
public class class_name { public void marshall(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest, ProtocolMarshaller protocolMarshaller) { if (removeAllResourcePermissionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest, ProtocolMarshaller protocolMarshaller) { if (removeAllResourcePermissionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void revokeToken() { URL url = null; try { url = new URL(this.revokeURL); } catch (MalformedURLException e) { assert false : "An invalid refresh URL indicates a bug in the SDK."; throw new RuntimeException("An invalid refresh...
public class class_name { public void revokeToken() { URL url = null; try { url = new URL(this.revokeURL); // depends on control dependency: [try], data = [none] } catch (MalformedURLException e) { assert false : "An invalid refresh URL indicates a bug in the SDK."; ...
public class class_name { private void zipFiles(final File file, ZipOutputStream zos) throws IOException { if (file.isDirectory()) { File[] fList; List<File> foundedFiles; if (null != this.fileFilter) { final File[] tmpfList = file.listFiles(this.fileFilter); final List<File> foundedDirs = Fil...
public class class_name { private void zipFiles(final File file, ZipOutputStream zos) throws IOException { if (file.isDirectory()) { File[] fList; List<File> foundedFiles; if (null != this.fileFilter) { final File[] tmpfList = file.listFiles(this.fileFilter); final List<File> foundedDirs = Fil...
public class class_name { public V getAndRemove(String key) { try { V objToShare = retrieveSharedQueue(key).take(); mediations.remove(key); return objToShare; } catch (InterruptedException e) { throw new RuntimeException(e); } } }
public class class_name { public V getAndRemove(String key) { try { V objToShare = retrieveSharedQueue(key).take(); mediations.remove(key); // depends on control dependency: [try], data = [none] return objToShare; // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { ...
public class class_name { private void setValue(int newPosition, T1 valueSum, T2 valueSumOfLogs, T1 valueSumOfSquares, T1 valueMin, T1 valueMax, long valueN, boolean currentExisting) { if (valueN > 0) { if (currentExisting) { newAdvancedValueSumList[newPosition] = operations ....
public class class_name { private void setValue(int newPosition, T1 valueSum, T2 valueSumOfLogs, T1 valueSumOfSquares, T1 valueMin, T1 valueMax, long valueN, boolean currentExisting) { if (valueN > 0) { if (currentExisting) { newAdvancedValueSumList[newPosition] = operations ....
public class class_name { public @CheckForNull Plugin getPlugin(String artifactId, @CheckForNull VersionNumber minVersion) { if (minVersion == null) { return getPlugin(artifactId); } for (UpdateSite s : sites) { Plugin p = s.getPlugin(artifactId); if (p!=null...
public class class_name { public @CheckForNull Plugin getPlugin(String artifactId, @CheckForNull VersionNumber minVersion) { if (minVersion == null) { return getPlugin(artifactId); // depends on control dependency: [if], data = [none] } for (UpdateSite s : sites) { Plugi...
public class class_name { public void update(int[] goldIndex, int[] predictIndex) { for (int i = 0; i < goldIndex.length; ++i) { if (goldIndex[i] == predictIndex[i]) continue; else // 预测与答案不一致 { parameter[goldIndex[i]]++; // 奖励正确的特...
public class class_name { public void update(int[] goldIndex, int[] predictIndex) { for (int i = 0; i < goldIndex.length; ++i) { if (goldIndex[i] == predictIndex[i]) continue; else // 预测与答案不一致 { parameter[goldIndex[i]]++; // 奖励正确的特...
public class class_name { @Deprecated public boolean skeletonsAreSimilar(String id, String skeleton) { if (id.equals(skeleton)) { return true; // fast path } // must clone array, make sure items are in same order. TreeSet<String> parser1 = getSet(id); TreeSet<Str...
public class class_name { @Deprecated public boolean skeletonsAreSimilar(String id, String skeleton) { if (id.equals(skeleton)) { return true; // fast path // depends on control dependency: [if], data = [none] } // must clone array, make sure items are in same order. Tre...
public class class_name { public static String recommend(BitmapStatistics s) { if (s.containerCount() == 0) { return "Empty statistics, cannot recommend."; } StringBuilder sb = new StringBuilder(); containerCountRecommendations(s, sb); double acFraction = s.containerFraction(s.getArrayContain...
public class class_name { public static String recommend(BitmapStatistics s) { if (s.containerCount() == 0) { return "Empty statistics, cannot recommend."; // depends on control dependency: [if], data = [none] } StringBuilder sb = new StringBuilder(); containerCountRecommendations(s, sb); dou...
public class class_name { public static IDocTypeProcessor wrap(final IDocTypeProcessor processor, final IProcessorDialect dialect) { Validate.notNull(dialect, "Dialect cannot be null"); if (processor == null) { return null; } return new DocTypeProcessorWrapper(processor, dia...
public class class_name { public static IDocTypeProcessor wrap(final IDocTypeProcessor processor, final IProcessorDialect dialect) { Validate.notNull(dialect, "Dialect cannot be null"); if (processor == null) { return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { private List<String> existingRWPaths() { String[] lines = mountReader(); List<String> pathsFound = new ArrayList<>(); for (String line : lines) { // Split lines into parts String[] args = line.split(" "); if (args.length < 4){ ...
public class class_name { private List<String> existingRWPaths() { String[] lines = mountReader(); List<String> pathsFound = new ArrayList<>(); for (String line : lines) { // Split lines into parts String[] args = line.split(" "); if (args.length < 4){ ...
public class class_name { private void printBanner() { if (null != blade.bannerText()) { System.out.println(blade.bannerText()); } else { String text = Const.BANNER_TEXT + NEW_LINE + StringKit.padLeft(" :: Blade :: (v", Const.BANNER_PADDING - 9) + Const.VERSI...
public class class_name { private void printBanner() { if (null != blade.bannerText()) { System.out.println(blade.bannerText()); // depends on control dependency: [if], data = [blade.bannerText())] } else { String text = Const.BANNER_TEXT + NEW_LINE + StringK...
public class class_name { protected synchronized void startWatchingFiles() { famList.clear(); FilesystemAlterationMonitor fam = new FilesystemAlterationMonitor(); FileChangeListener wurflListener = new WurflFileListener(); fam.addListener(wurflFile, wurflListener); fam.start(); fam...
public class class_name { protected synchronized void startWatchingFiles() { famList.clear(); FilesystemAlterationMonitor fam = new FilesystemAlterationMonitor(); FileChangeListener wurflListener = new WurflFileListener(); fam.addListener(wurflFile, wurflListener); fam.start(); fam...
public class class_name { public AwsSecurityFindingFilters withNetworkProtocol(StringFilter... networkProtocol) { if (this.networkProtocol == null) { setNetworkProtocol(new java.util.ArrayList<StringFilter>(networkProtocol.length)); } for (StringFilter ele : networkProtocol) { ...
public class class_name { public AwsSecurityFindingFilters withNetworkProtocol(StringFilter... networkProtocol) { if (this.networkProtocol == null) { setNetworkProtocol(new java.util.ArrayList<StringFilter>(networkProtocol.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { private ProtoNetwork stage4(final ProtoNetwork pn) { beginStage(PHASE3_STAGE4_HDR, "4", NUM_PHASES); if (!getPhaseConfiguration().getInjectOrthology()) { final StringBuilder bldr = new StringBuilder(); bldr.append(ORTHO_INJECTION_DISABLED); ...
public class class_name { private ProtoNetwork stage4(final ProtoNetwork pn) { beginStage(PHASE3_STAGE4_HDR, "4", NUM_PHASES); if (!getPhaseConfiguration().getInjectOrthology()) { final StringBuilder bldr = new StringBuilder(); bldr.append(ORTHO_INJECTION_DISABLED); // depends ...
public class class_name { public SimpleBitSet get(int fromIndex, int toIndex) { checkRange(fromIndex, toIndex); checkInvariants(); int len = length(); // If no set bits in range return empty bitset if (len <= fromIndex || fromIndex == toIndex) return new SimpleBitSet(0); // An optimization if (toI...
public class class_name { public SimpleBitSet get(int fromIndex, int toIndex) { checkRange(fromIndex, toIndex); checkInvariants(); int len = length(); // If no set bits in range return empty bitset if (len <= fromIndex || fromIndex == toIndex) return new SimpleBitSet(0); // An optimization if (toI...
public class class_name { public IPv6AddressPool allocate() { if (!isExhausted()) { // get the first range of free subnets, and take the first subnet of that range final IPv6AddressRange firstFreeRange = freeRanges.first(); final IPv6Network allocated = IPv6Netwo...
public class class_name { public IPv6AddressPool allocate() { if (!isExhausted()) { // get the first range of free subnets, and take the first subnet of that range final IPv6AddressRange firstFreeRange = freeRanges.first(); final IPv6Network allocated = IPv6Netwo...
public class class_name { private DateColumn fillWith(int count, Iterator<LocalDate> iterator, Consumer<LocalDate> acceptor) { for (int r = 0; r < count; r++) { if (!iterator.hasNext()) { break; } acceptor.accept(iterator.next()); } return thi...
public class class_name { private DateColumn fillWith(int count, Iterator<LocalDate> iterator, Consumer<LocalDate> acceptor) { for (int r = 0; r < count; r++) { if (!iterator.hasNext()) { break; } acceptor.accept(iterator.next()); // depends on control depend...
public class class_name { public static String replaceTokens(String template, Pattern pattern, Map<String, String> replacements) { StringBuffer sb = new StringBuffer(); Matcher matcher = pattern.matcher(template); while (matcher.find()) { Strin...
public class class_name { public static String replaceTokens(String template, Pattern pattern, Map<String, String> replacements) { StringBuffer sb = new StringBuffer(); Matcher matcher = pattern.matcher(template); while (matcher.find()) { Strin...
public class class_name { public SipURI getLocalSipURI(String transport) { checkState(); SipUri sipURI = localSipURIs.get(transport); if (sipURI == null) { ListeningPoint lp = getListeningPoint(transport); if (lp != null) { sipURI = new SipUri(); try { sipURI.setHost(lp.getIPAddress()); s...
public class class_name { public SipURI getLocalSipURI(String transport) { checkState(); SipUri sipURI = localSipURIs.get(transport); if (sipURI == null) { ListeningPoint lp = getListeningPoint(transport); if (lp != null) { sipURI = new SipUri(); // depends on control dependency: [if], data = [none] ...
public class class_name { private final V finish_removal(BinTreeNode<K,V> node, BinTreeNode<K,V> prev, int son, BinTreeNode<K,V> m) { if(m != null) { // set up the links for m m.left = node.left; m.right = node.right; } if(prev == null) root = m; else { if(son == 0) prev.left = m; ...
public class class_name { private final V finish_removal(BinTreeNode<K,V> node, BinTreeNode<K,V> prev, int son, BinTreeNode<K,V> m) { if(m != null) { // set up the links for m m.left = node.left; // depends on control dependency: [if], data = [none] m.right = node.right; // depends on control depend...
public class class_name { public Attribute getAttribute(final int index) { if (attributes == null) { return null; } if ((index < 0) || (index >= attributes.size())) { return null; } return attributes.get(index); } }
public class class_name { public Attribute getAttribute(final int index) { if (attributes == null) { return null; // depends on control dependency: [if], data = [none] } if ((index < 0) || (index >= attributes.size())) { return null; // depends on control dependency: [if], data = [none] } return attrib...
public class class_name { @SuppressWarnings("unchecked") private Spliterator<?> sourceSpliterator(int terminalFlags) { // Get the source spliterator of the pipeline Spliterator<?> spliterator = null; if (sourceStage.sourceSpliterator != null) { spliterator = sourceStage.sourceSp...
public class class_name { @SuppressWarnings("unchecked") private Spliterator<?> sourceSpliterator(int terminalFlags) { // Get the source spliterator of the pipeline Spliterator<?> spliterator = null; if (sourceStage.sourceSpliterator != null) { spliterator = sourceStage.sourceSp...
public class class_name { public void setFilters(java.util.Collection<InventoryFilter> filters) { if (filters == null) { this.filters = null; return; } this.filters = new java.util.ArrayList<InventoryFilter>(filters); } }
public class class_name { public void setFilters(java.util.Collection<InventoryFilter> filters) { if (filters == null) { this.filters = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.filte...
public class class_name { public Routes add(Routes routes) { routes.config(); /** * 如果子 Routes 没有配置 mappingSuperClass,则使用顶层 Routes 的配置 * 主要是为了让 jfinal weixin 用户有更好的体验 * * 因为顶层 Routes 和模块级 Routes 配置都可以生效,减少学习成本 */ if (routes.mappingSuperClass == null) { routes.mappingSuperClass = t...
public class class_name { public Routes add(Routes routes) { routes.config(); /** * 如果子 Routes 没有配置 mappingSuperClass,则使用顶层 Routes 的配置 * 主要是为了让 jfinal weixin 用户有更好的体验 * * 因为顶层 Routes 和模块级 Routes 配置都可以生效,减少学习成本 */ if (routes.mappingSuperClass == null) { routes.mappingSuperClass = t...