code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static PropertyEditorFinder getInstance(ClassLoader classLoader) { PropertyEditorFinder result = _INSTANCE; if (result == null) { synchronized (_LOCK) { result = _INSTANCE; if (result == null) { init(classL...
public class class_name { public static PropertyEditorFinder getInstance(ClassLoader classLoader) { PropertyEditorFinder result = _INSTANCE; if (result == null) { synchronized (_LOCK) { // depends on control dependency: [if], data = [none] result = _INSTANCE; ...
public class class_name { protected boolean mergeSegments() { // See if merging will cause a degenerate case if( splits.size() <= 3 ) return false; boolean change = false; work.reset(); for( int i = 0; i < splits.size; i++ ) { int start = splits.data[i]; int end = splits.data[(i+2)%splits.size]; ...
public class class_name { protected boolean mergeSegments() { // See if merging will cause a degenerate case if( splits.size() <= 3 ) return false; boolean change = false; work.reset(); for( int i = 0; i < splits.size; i++ ) { int start = splits.data[i]; int end = splits.data[(i+2)%splits.size]; ...
public class class_name { public Map<String, String> getPrefixes(boolean onlyCommonPrefixes) { final Map<String, String> prefixes = new LinkedHashMap<String, String>(); for (final String term : termDefinitions.keySet()) { if (term.contains(":")) { continue; } ...
public class class_name { public Map<String, String> getPrefixes(boolean onlyCommonPrefixes) { final Map<String, String> prefixes = new LinkedHashMap<String, String>(); for (final String term : termDefinitions.keySet()) { if (term.contains(":")) { continue; } ...
public class class_name { public JTSGeometryExpression<Geometry> convexHull() { if (convexHull == null) { convexHull = JTSGeometryExpressions.geometryOperation(SpatialOps.CONVEXHULL, mixin); } return convexHull; } }
public class class_name { public JTSGeometryExpression<Geometry> convexHull() { if (convexHull == null) { convexHull = JTSGeometryExpressions.geometryOperation(SpatialOps.CONVEXHULL, mixin); // depends on control dependency: [if], data = [none] } return convexHull; } }
public class class_name { private Field[] getAllInstanceFields(final Object obj) { Field[] fields = instanceFieldsByClass.get(obj.getClass()); if (fields == null) { List<Field> fieldList = ReflectionUtil. getAllFields(obj, excludeStatic, excludeTransient); fields = fieldList.toArray(new Field[fieldList...
public class class_name { private Field[] getAllInstanceFields(final Object obj) { Field[] fields = instanceFieldsByClass.get(obj.getClass()); if (fields == null) { List<Field> fieldList = ReflectionUtil. getAllFields(obj, excludeStatic, excludeTransient); fields = fieldList.toArray(new Field[fieldList...
public class class_name { static boolean isValidMonth(@Nullable String monthString) { if (monthString == null) { return false; } try { int monthInt = Integer.parseInt(monthString); return monthInt > 0 && monthInt <= 12; } catch (NumberFormatException...
public class class_name { static boolean isValidMonth(@Nullable String monthString) { if (monthString == null) { return false; // depends on control dependency: [if], data = [none] } try { int monthInt = Integer.parseInt(monthString); return monthInt > 0 && ...
public class class_name { private void setupAuthMode() { String apiKey = getStringProperty(P_APIKEY); if (Strings.isNullOrEmpty(apiKey)) { // try to use the user/pass mode instead forceUserPassAuthMode(getStringProperty(P_USERNAME), getStringProperty(P_PASSWORD)); } else { // ok the key i...
public class class_name { private void setupAuthMode() { String apiKey = getStringProperty(P_APIKEY); if (Strings.isNullOrEmpty(apiKey)) { // try to use the user/pass mode instead forceUserPassAuthMode(getStringProperty(P_USERNAME), getStringProperty(P_PASSWORD)); // depends on control dependency: ...
public class class_name { public void highlightConsecutiveIdentifiers(List<Integer> hashes, boolean backward) { final int startPos = highlightFirstIdentifier(hashes.get(0), backward); if (startPos >= 0) { highlightRemainingIdentifiers(hashes.subList(1, hashes.size()), startPos); } ...
public class class_name { public void highlightConsecutiveIdentifiers(List<Integer> hashes, boolean backward) { final int startPos = highlightFirstIdentifier(hashes.get(0), backward); if (startPos >= 0) { highlightRemainingIdentifiers(hashes.subList(1, hashes.size()), startPos); // depends ...
public class class_name { @SuppressLint("RestrictedApi") public static void hideStatusBar(Context context) { if (Jzvd.TOOL_BAR_EXIST) { JZUtils.getWindow(context).setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } } }
public class class_name { @SuppressLint("RestrictedApi") public static void hideStatusBar(Context context) { if (Jzvd.TOOL_BAR_EXIST) { JZUtils.getWindow(context).setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // depends on control dependency: ...
public class class_name { public void setNetworkProtocol(java.util.Collection<StringFilter> networkProtocol) { if (networkProtocol == null) { this.networkProtocol = null; return; } this.networkProtocol = new java.util.ArrayList<StringFilter>(networkProtocol); } }
public class class_name { public void setNetworkProtocol(java.util.Collection<StringFilter> networkProtocol) { if (networkProtocol == null) { this.networkProtocol = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public synchronized UserAgent getUserAgent() { if (this.userAgent == null) { if (isService) { this.userAgent = new UserAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, ...
public class class_name { public synchronized UserAgent getUserAgent() { if (this.userAgent == null) { if (isService) { this.userAgent = new UserAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, ...
public class class_name { public String getClassIdentity(XEvent event) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < keys.length; i++) { XAttribute attribute = event.getAttributes().get(keys[i]); // if (attribute == null) { // return null; // } if (attribute != null) { sb.append(at...
public class class_name { public String getClassIdentity(XEvent event) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < keys.length; i++) { XAttribute attribute = event.getAttributes().get(keys[i]); // if (attribute == null) { // return null; // } if (attribute != null) { sb.append(at...
public class class_name { public static void close(ParcelFileDescriptor descriptor) { if (descriptor == null) { return; } try { descriptor.close(); } catch (IOException e) { Log.e(TAG, "something went wrong on close descriptor: ", e); } } ...
public class class_name { public static void close(ParcelFileDescriptor descriptor) { if (descriptor == null) { return; // depends on control dependency: [if], data = [none] } try { descriptor.close(); // depends on control dependency: [try], data = [none] } catc...
public class class_name { private void copyStream(InputStream inputStream) throws IOException { OutputStream outputStream = null; try { outputStream = getContext().getOutputStream(); byte[] buffer = new byte[65535]; int bufferLen; int totalLen = 0; while ((bufferLen = inputStream.read(buffer)...
public class class_name { private void copyStream(InputStream inputStream) throws IOException { OutputStream outputStream = null; try { outputStream = getContext().getOutputStream(); byte[] buffer = new byte[65535]; int bufferLen; int totalLen = 0; while ((bufferLen = inputStream.read(buffer)...
public class class_name { @Nullable static ExecutableElement findLargestPublicConstructor(TypeElement typeElement) { List<ExecutableElement> constructors = FluentIterable.from(ElementFilter.constructorsIn(typeElement.getEnclosedElements())) .filter(FILTER_NON_PUBLIC) .toList(); ...
public class class_name { @Nullable static ExecutableElement findLargestPublicConstructor(TypeElement typeElement) { List<ExecutableElement> constructors = FluentIterable.from(ElementFilter.constructorsIn(typeElement.getEnclosedElements())) .filter(FILTER_NON_PUBLIC) .toList(); ...
public class class_name { @Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { boolean responseSet = false; boolean validRequest = Arrays.asList( CSS_STYLESHEET, BANNER_IMAGE ).contains( req.getServletPath()); if( ! validRequest ) this.lo...
public class class_name { @Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { boolean responseSet = false; boolean validRequest = Arrays.asList( CSS_STYLESHEET, BANNER_IMAGE ).contains( req.getServletPath()); if( ! validRequest ) this.lo...
public class class_name { private Bitmap getBitmap(int layer) { Bitmap bitmap = layeredBitmap[layer]; if (bitmap == null) { createBitmapAndCanvas(layer); bitmap = layeredBitmap[layer]; } return bitmap; } }
public class class_name { private Bitmap getBitmap(int layer) { Bitmap bitmap = layeredBitmap[layer]; if (bitmap == null) { createBitmapAndCanvas(layer); // depends on control dependency: [if], data = [none] bitmap = layeredBitmap[layer]; // depends on control dependency: [if], ...
public class class_name { public void setRolloffFactor (float rolloff) { if (_rolloffFactor != rolloff) { AL10.alSourcef(_id, AL10.AL_ROLLOFF_FACTOR, _rolloffFactor = rolloff); } } }
public class class_name { public void setRolloffFactor (float rolloff) { if (_rolloffFactor != rolloff) { AL10.alSourcef(_id, AL10.AL_ROLLOFF_FACTOR, _rolloffFactor = rolloff); // depends on control dependency: [if], data = [rolloff)] } } }
public class class_name { private double[][] computeLookupADC(double[] queryVector) { double[][] distances = new double[numSubVectors][numProductCentroids]; for (int i = 0; i < numSubVectors; i++) { int subvectorStart = i * subVectorLength; for (int j = 0; j < numProductCentroids; j++) { for (int ...
public class class_name { private double[][] computeLookupADC(double[] queryVector) { double[][] distances = new double[numSubVectors][numProductCentroids]; for (int i = 0; i < numSubVectors; i++) { int subvectorStart = i * subVectorLength; for (int j = 0; j < numProductCentroids; j++) { for (int ...
public class class_name { public <T> CompletableFuture<VersionedMetadata<T>> getData(final String path, Function<byte[], T> fromBytes) { final CompletableFuture<VersionedMetadata<T>> result = new CompletableFuture<>(); try { client.getData().inBackground( callback(event...
public class class_name { public <T> CompletableFuture<VersionedMetadata<T>> getData(final String path, Function<byte[], T> fromBytes) { final CompletableFuture<VersionedMetadata<T>> result = new CompletableFuture<>(); try { client.getData().inBackground( callback(event...
public class class_name { protected synchronized void create(boolean stream) throws IOException { this.stream = stream; if (!stream) { ResourceManager.beforeUdpCreate(); try { socketCreate(false); } catch (IOException ioe) { ResourceM...
public class class_name { protected synchronized void create(boolean stream) throws IOException { this.stream = stream; if (!stream) { ResourceManager.beforeUdpCreate(); try { socketCreate(false); // depends on control dependency: [try], data = [none] ...
public class class_name { public static long initialMemory() { long memory = 0; for (MemoryPoolMXBean mp : ManagementFactory.getMemoryPoolMXBeans()) { memory += mp.getUsage().getInit(); } return memory; } }
public class class_name { public static long initialMemory() { long memory = 0; for (MemoryPoolMXBean mp : ManagementFactory.getMemoryPoolMXBeans()) { memory += mp.getUsage().getInit(); // depends on control dependency: [for], data = [mp] } return memory; } }
public class class_name { public Graph build(){ boolean isStartNode = true; for( Tree<Row> current = root.findPreOrderNext(); current != null; current = current.findPreOrderNext() ){ Node node = nodeBuilder.createNode( current ); if( node == null ){ // The curren...
public class class_name { public Graph build(){ boolean isStartNode = true; for( Tree<Row> current = root.findPreOrderNext(); current != null; current = current.findPreOrderNext() ){ Node node = nodeBuilder.createNode( current ); if( node == null ){ // The curren...
public class class_name { public String constructUnsignedPayload() { // TODO reverse order when V4 becomes default if (Storage.SignUrlOption.SignatureVersion.V4.equals(signatureVersion)) { return constructV4UnsignedPayload(); } return constructV2UnsignedPayload(); } }
public class class_name { public String constructUnsignedPayload() { // TODO reverse order when V4 becomes default if (Storage.SignUrlOption.SignatureVersion.V4.equals(signatureVersion)) { return constructV4UnsignedPayload(); // depends on control dependency: [if], data = [none] } return construc...
public class class_name { public static <E> void startConverters(Converter<E> head) { Converter<E> c = head; while (c != null) { // CompositeConverter is a subclass of DynamicConverter if (c instanceof CompositeConverter) { CompositeConverter<E> cc = (CompositeConverter<E>) c; Conv...
public class class_name { public static <E> void startConverters(Converter<E> head) { Converter<E> c = head; while (c != null) { // CompositeConverter is a subclass of DynamicConverter if (c instanceof CompositeConverter) { CompositeConverter<E> cc = (CompositeConverter<E>) c; Conv...
public class class_name { private static boolean criteriaListForcesUserLimitation(Set<String> userAndGroupIds, List<QueryCriteria> criteriaList) { boolean userLimitiationIntersection = false; if( criteriaList.isEmpty() ) { return false; } for( QueryCriteria criteria : crite...
public class class_name { private static boolean criteriaListForcesUserLimitation(Set<String> userAndGroupIds, List<QueryCriteria> criteriaList) { boolean userLimitiationIntersection = false; if( criteriaList.isEmpty() ) { return false; // depends on control dependency: [if], data = [none]...
public class class_name { public double score(int termFreq, int docLen, double avgDocLen, int titleTermFreq, int titleLen, double avgTitleLen, int anchorTermFreq, int anchorLen, double avgAnchorLen, long N, long n) { if (termFreq <= 0) return 0.0; double tf = wBody * termFreq / (1.0 + bBody * (docLen ...
public class class_name { public double score(int termFreq, int docLen, double avgDocLen, int titleTermFreq, int titleLen, double avgTitleLen, int anchorTermFreq, int anchorLen, double avgAnchorLen, long N, long n) { if (termFreq <= 0) return 0.0; double tf = wBody * termFreq / (1.0 + bBody * (docLen ...
public class class_name { private String nextQuotedValue(char quote) throws IOException { // Like nextNonWhitespace, this uses locals 'p' and 'l' to save inner-loop field access. char[] buffer = this.buffer; StringBuilder builder = null; while (true) { int p = pos; int l = limit; /* t...
public class class_name { private String nextQuotedValue(char quote) throws IOException { // Like nextNonWhitespace, this uses locals 'p' and 'l' to save inner-loop field access. char[] buffer = this.buffer; StringBuilder builder = null; while (true) { int p = pos; int l = limit; /* t...
public class class_name { public List<PartialResponseAttributesType<PartialResponseChangesType<T>>> getAllAttributes() { List<PartialResponseAttributesType<PartialResponseChangesType<T>>> list = new ArrayList<PartialResponseAttributesType<PartialResponseChangesType<T>>>(); List<Node> nodeList = childNod...
public class class_name { public List<PartialResponseAttributesType<PartialResponseChangesType<T>>> getAllAttributes() { List<PartialResponseAttributesType<PartialResponseChangesType<T>>> list = new ArrayList<PartialResponseAttributesType<PartialResponseChangesType<T>>>(); List<Node> nodeList = childNod...
public class class_name { String stripAppId(String origId) { if (origId == null || origId.isEmpty()) { return ""; } Matcher m = stripBracketsPattern.matcher(origId); String cleanedAppId = m.replaceAll(""); Matcher tailMatcher = stripSequencePattern.matcher(cleanedAppId); if (tailMatcher.m...
public class class_name { String stripAppId(String origId) { if (origId == null || origId.isEmpty()) { return ""; // depends on control dependency: [if], data = [none] } Matcher m = stripBracketsPattern.matcher(origId); String cleanedAppId = m.replaceAll(""); Matcher tailMatcher = stripSequen...
public class class_name { @SuppressWarnings({"checkstyle:parameternumber", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) private void crossSegmentTwoShadowLines( int shadowX0, int shadowY0, int shadowZ0, int shadowX1, int shadowY1, int shadowZ1, i...
public class class_name { @SuppressWarnings({"checkstyle:parameternumber", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) private void crossSegmentTwoShadowLines( int shadowX0, int shadowY0, int shadowZ0, int shadowX1, int shadowY1, int shadowZ1, i...
public class class_name { private void truncateUncommittedEntries() { if (type() == CopycatServer.State.PASSIVE) { context.getLog().truncate(Math.min(context.getCommitIndex(), context.getLog().lastIndex())); } } }
public class class_name { private void truncateUncommittedEntries() { if (type() == CopycatServer.State.PASSIVE) { context.getLog().truncate(Math.min(context.getCommitIndex(), context.getLog().lastIndex())); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void marshall(VocabularyInfo vocabularyInfo, ProtocolMarshaller protocolMarshaller) { if (vocabularyInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(vocabulary...
public class class_name { public void marshall(VocabularyInfo vocabularyInfo, ProtocolMarshaller protocolMarshaller) { if (vocabularyInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(vocabulary...
public class class_name { private void deleteGroup(List<Segment> group) { // Delete the old segments. for (Segment oldSegment : group) { oldSegment.close(); oldSegment.delete(); } } }
public class class_name { private void deleteGroup(List<Segment> group) { // Delete the old segments. for (Segment oldSegment : group) { oldSegment.close(); // depends on control dependency: [for], data = [oldSegment] oldSegment.delete(); // depends on control dependency: [for], data = [oldSegment]...
public class class_name { public static void addPropertyString( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, String value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public static void addPropertyString( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, String value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public com.google.protobuf.ByteString getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newVa...
public class class_name { public com.google.protobuf.ByteString getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newVa...
public class class_name { public static String getVersion() { String version = null; // try to load from maven properties first try { Properties p = new Properties(); InputStream is = VersionHelper.class.getResourceAsStream("/META-INF/maven/io.redlink/redlink-sdk-java/p...
public class class_name { public static String getVersion() { String version = null; // try to load from maven properties first try { Properties p = new Properties(); InputStream is = VersionHelper.class.getResourceAsStream("/META-INF/maven/io.redlink/redlink-sdk-java/p...
public class class_name { @Override public Status match(int cc) { if (expression[idx] == '*') { okStatus = Status.WillMatch; if (cc == expression[idx+1]) { idx++; } else { return ...
public class class_name { @Override public Status match(int cc) { if (expression[idx] == '*') { okStatus = Status.WillMatch; // depends on control dependency: [if], data = [none] if (cc == expression[idx+1]) { idx++; // depends on con...
public class class_name { public static boolean contains(String[] vals, String value) { for (int i = 0; i < vals.length; i++) { if (vals[i].equals(value)) { return true; } } return false; } }
public class class_name { public static boolean contains(String[] vals, String value) { for (int i = 0; i < vals.length; i++) { if (vals[i].equals(value)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { protected void preNativeCall() { //get logger Logger logger=this.getLogger(); //get log level LogLevel logLevel=logger.getLogLevel(); boolean debugMode=false; if(logLevel.equals(LogLevel.DEBUG)) { debugM...
public class class_name { protected void preNativeCall() { //get logger Logger logger=this.getLogger(); //get log level LogLevel logLevel=logger.getLogLevel(); boolean debugMode=false; if(logLevel.equals(LogLevel.DEBUG)) { debugM...
public class class_name { public Set keySet() { if (keySet == null) { keySet = new AbstractSet() { public Iterator iterator() { return new IntHashIterator(KEYS); } public int size() { return count; ...
public class class_name { public Set keySet() { if (keySet == null) { keySet = new AbstractSet() { public Iterator iterator() { return new IntHashIterator(KEYS); } public int size() { return count; ...
public class class_name { private static Object getParam(final Object param) { final StringBuilder sb = new StringBuilder(); if(param instanceof String){ sb.append("'"); sb.append((String)param); sb.append("'"); } else if(param instanceof Boolean){ sb.append(String.valueOf((Boolean)param)); } ...
public class class_name { private static Object getParam(final Object param) { final StringBuilder sb = new StringBuilder(); if(param instanceof String){ sb.append("'"); // depends on control dependency: [if], data = [none] sb.append((String)param); // depends on control dependency: [if], data = [none] sb...
public class class_name { protected void getDependencies(JSONObject jsonObject, String rootDirectory, Collection<DependencyInfo> dependencies) { try { CommandLineProcess npmLs = new CommandLineProcess(rootDirectory, getLsCommandParams()); npmLs.setTimeoutReadLineSeconds(this.npmTimeoutD...
public class class_name { protected void getDependencies(JSONObject jsonObject, String rootDirectory, Collection<DependencyInfo> dependencies) { try { CommandLineProcess npmLs = new CommandLineProcess(rootDirectory, getLsCommandParams()); npmLs.setTimeoutReadLineSeconds(this.npmTimeoutD...
public class class_name { public void setRoundingIncrement(BigDecimal newValue) { int i = newValue == null ? 0 : newValue.compareTo(BigDecimal.ZERO); if (i < 0) { throw new IllegalArgumentException("Illegal rounding increment"); } if (i == 0) { setInternalRoundin...
public class class_name { public void setRoundingIncrement(BigDecimal newValue) { int i = newValue == null ? 0 : newValue.compareTo(BigDecimal.ZERO); if (i < 0) { throw new IllegalArgumentException("Illegal rounding increment"); } if (i == 0) { setInternalRoundin...
public class class_name { public static List<? extends Element> getEnclosedElementsDeclarationOrder(TypeElement type) { List<? extends Element> result = null; try { Object binding = field(type, "_binding"); Class<?> sourceTypeBinding = null; { Class<...
public class class_name { public static List<? extends Element> getEnclosedElementsDeclarationOrder(TypeElement type) { List<? extends Element> result = null; try { Object binding = field(type, "_binding"); Class<?> sourceTypeBinding = null; { Class<...
public class class_name { public static boolean isNumber(final String text, final int start, final int len){ for(int i=start; i<start+len; i++){ char c = text.charAt(i); if(!isNumber(c)){ return false; } } //指定的字符串已经识别为数字串 //下面要判断数字串是否...
public class class_name { public static boolean isNumber(final String text, final int start, final int len){ for(int i=start; i<start+len; i++){ char c = text.charAt(i); if(!isNumber(c)){ return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { public Set<CurrencyUnit> getCurrencies(CurrencyQuery currencyQuery) { Set<CurrencyUnit> result = new HashSet<>(CURRENCY_UNITS.size()); if (currencyQuery.get(LocalDateTime.class) != null || currencyQuery.get(LocalDate.class) != null) { return Collections.emptySet();...
public class class_name { public Set<CurrencyUnit> getCurrencies(CurrencyQuery currencyQuery) { Set<CurrencyUnit> result = new HashSet<>(CURRENCY_UNITS.size()); if (currencyQuery.get(LocalDateTime.class) != null || currencyQuery.get(LocalDate.class) != null) { return Collections.emptySet();...
public class class_name { public static long[] hash(final String in, final long seed, final long[] hashOut) { if ((in == null) || (in.length() == 0)) { return emptyOrNull(seed, hashOut); } final byte[] byteArr = in.getBytes(UTF_8); return hash(Memory.wrap(byteArr), 0L, byteArr.length, seed, hashO...
public class class_name { public static long[] hash(final String in, final long seed, final long[] hashOut) { if ((in == null) || (in.length() == 0)) { return emptyOrNull(seed, hashOut); // depends on control dependency: [if], data = [none] } final byte[] byteArr = in.getBytes(UTF_8); return hash...
public class class_name { private void ensurePKsFromHierarchy(ClassDescriptorDef classDef) throws ConstraintException { SequencedHashMap pks = new SequencedHashMap(); for (Iterator it = classDef.getAllExtentClasses(); it.hasNext();) { ClassDescriptorDef subTypeDef = (Clas...
public class class_name { private void ensurePKsFromHierarchy(ClassDescriptorDef classDef) throws ConstraintException { SequencedHashMap pks = new SequencedHashMap(); for (Iterator it = classDef.getAllExtentClasses(); it.hasNext();) { ClassDescriptorDef subTypeDef = (Clas...
public class class_name { public Number getValue() { if ((getText() == null) || "".equals(getText().trim())) return null; try { Number n = format.parse(getText()); if (n.getClass() == this.numberClass) return n; else if (this.numberClass == BigDecimal.class) { BigDecimal bd = new BigDecimal(n.d...
public class class_name { public Number getValue() { if ((getText() == null) || "".equals(getText().trim())) return null; try { Number n = format.parse(getText()); if (n.getClass() == this.numberClass) return n; else if (this.numberClass == BigDecimal.class) { BigDecimal bd = new BigDecimal(n.d...
public class class_name { public GetAccountAuthorizationDetailsResult withUserDetailList(UserDetail... userDetailList) { if (this.userDetailList == null) { setUserDetailList(new com.amazonaws.internal.SdkInternalList<UserDetail>(userDetailList.length)); } for (UserDetail ele : userD...
public class class_name { public GetAccountAuthorizationDetailsResult withUserDetailList(UserDetail... userDetailList) { if (this.userDetailList == null) { setUserDetailList(new com.amazonaws.internal.SdkInternalList<UserDetail>(userDetailList.length)); // depends on control dependency: [if], data ...
public class class_name { private boolean areElementsSame(int index1, int[] target, int index2, int length) { for (int i = 0; i < length; ++i) { if (v[index1 + i] != target[index2 + i]) { return false; } } return true; } }
public class class_name { private boolean areElementsSame(int index1, int[] target, int index2, int length) { for (int i = 0; i < length; ++i) { if (v[index1 + i] != target[index2 + i]) { return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void visitObjectWithSpread(NodeTraversal t, Node obj) { checkArgument(obj.isObjectLit()); // Add an empty target object literal so changes made by Object.assign will not affect any other // variables. Node result = astFactory.createObjectDotAssignCall( ...
public class class_name { private void visitObjectWithSpread(NodeTraversal t, Node obj) { checkArgument(obj.isObjectLit()); // Add an empty target object literal so changes made by Object.assign will not affect any other // variables. Node result = astFactory.createObjectDotAssignCall( ...
public class class_name { protected String trimResourceName(String resourceName) { if (resourceName.startsWith("/")) { resourceName = resourceName.substring(1); } if (resourceName.endsWith("/")) { resourceName = resourceName.substring(0, resourceName.length() - 1); ...
public class class_name { protected String trimResourceName(String resourceName) { if (resourceName.startsWith("/")) { resourceName = resourceName.substring(1); // depends on control dependency: [if], data = [none] } if (resourceName.endsWith("/")) { resourceName = reso...
public class class_name { @Override public DataPoint[] getSeries(long timestampStartMs, long timestampEndMs, int steps, DataPoint.Type type) { DataPoint[] origin = getAllInRange(timestampStartMs, timestampEndMs); if (steps < 1) { steps = 1; } if (steps == 1)...
public class class_name { @Override public DataPoint[] getSeries(long timestampStartMs, long timestampEndMs, int steps, DataPoint.Type type) { DataPoint[] origin = getAllInRange(timestampStartMs, timestampEndMs); if (steps < 1) { steps = 1; // depends on control dependency:...
public class class_name { private static ILocationData createLocationData(ITraceURIConverter converter, ILocationInFileProvider locationProvider, EObject object, ILocationInFileProviderExtension.RegionDescription query, boolean skipEmpty) { ITextRegion textRegion = locationProvider instanceof ILocationInFileProvider...
public class class_name { private static ILocationData createLocationData(ITraceURIConverter converter, ILocationInFileProvider locationProvider, EObject object, ILocationInFileProviderExtension.RegionDescription query, boolean skipEmpty) { ITextRegion textRegion = locationProvider instanceof ILocationInFileProvider...
public class class_name { private void initDecompressor(ChannelHandlerContext ctx, int streamId, Http2Headers headers, boolean endOfStream) throws Http2Exception { final Http2Stream stream = connection.stream(streamId); if (stream == null) { return; } Http2Decom...
public class class_name { private void initDecompressor(ChannelHandlerContext ctx, int streamId, Http2Headers headers, boolean endOfStream) throws Http2Exception { final Http2Stream stream = connection.stream(streamId); if (stream == null) { return; } Http2Decom...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <IFileItem> parseRequest (@Nonnull final IRequestContext aCtx) throws FileUploadException { final ICommonsList <IFileItem> aItems = new CommonsArrayList <> (); boolean bSuccessful = false; try { final IFileItemIterat...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <IFileItem> parseRequest (@Nonnull final IRequestContext aCtx) throws FileUploadException { final ICommonsList <IFileItem> aItems = new CommonsArrayList <> (); boolean bSuccessful = false; try { final IFileItemIterat...
public class class_name { protected void notifyListenersPostResourceFound(HttpMessage message, int depth, String uri, String requestBody) { for (SpiderParserListener l : listeners) { l.resourcePostURIFound(message, depth, uri, requestBody); } } }
public class class_name { protected void notifyListenersPostResourceFound(HttpMessage message, int depth, String uri, String requestBody) { for (SpiderParserListener l : listeners) { l.resourcePostURIFound(message, depth, uri, requestBody); // depends on control dependency: [for], data = [l] } } }
public class class_name { public void reset() { if (null != hazelcastInstance) { synchronized (mutex) { if (null == hazelcastInstance) { hazelcastInstance.shutdown(); hazelcastInstance = null; } } } ...
public class class_name { public void reset() { if (null != hazelcastInstance) { synchronized (mutex) { // depends on control dependency: [if], data = [none] if (null == hazelcastInstance) { hazelcastInstance.shutdown(); // depends on control dependency: [if], da...
public class class_name { public static List<AnnotatedHttpServiceElement> find(String pathPrefix, Object object, Iterable<?> exceptionHandlersAndConverters) { Builder<ExceptionHandlerFunction> exceptionHandlers = null; Builder<RequestConverterFun...
public class class_name { public static List<AnnotatedHttpServiceElement> find(String pathPrefix, Object object, Iterable<?> exceptionHandlersAndConverters) { Builder<ExceptionHandlerFunction> exceptionHandlers = null; Builder<RequestConverterFun...
public class class_name { private void addMeterValuesToTransaction(final Transaction transaction, final List<MeterValue> meterValues) { for (MeterValue meterValue : meterValues) { addMeterValueToTransaction(transaction, meterValue); } } }
public class class_name { private void addMeterValuesToTransaction(final Transaction transaction, final List<MeterValue> meterValues) { for (MeterValue meterValue : meterValues) { addMeterValueToTransaction(transaction, meterValue); // depends on control dependency: [for], data = [meterValue] ...
public class class_name { private ApplicationDefinition getApplicationDefinition(Tenant tenant, String appName) { Iterator<DColumn> colIter = DBService.instance(tenant).getAllColumns(SchemaService.APPS_STORE_NAME, appName).iterator(); if (!colIter.hasNext()) { return null; ...
public class class_name { private ApplicationDefinition getApplicationDefinition(Tenant tenant, String appName) { Iterator<DColumn> colIter = DBService.instance(tenant).getAllColumns(SchemaService.APPS_STORE_NAME, appName).iterator(); if (!colIter.hasNext()) { return null; ...
public class class_name { public double getCovariance() { if(covariance == null) { Observation o = new Observation(); for(int i=0; i<observationA.getObservationCount(); i++) o.addValue(observationA.getValueAt(i)*observationB.getValueAt(i)); covariance = o.getExpectation()-observationA.getExpectatio...
public class class_name { public double getCovariance() { if(covariance == null) { Observation o = new Observation(); for(int i=0; i<observationA.getObservationCount(); i++) o.addValue(observationA.getValueAt(i)*observationB.getValueAt(i)); covariance = o.getExpectation()-observationA.getExpectatio...
public class class_name { @Override public void verify(Statement s) throws SymbolWarning, IndexingFailure, ResourceDownloadError { List<Parameter> parameters = s.getAllParameters(); // first iteration to open all namespaces for (Parameter p : parameters) { if (p.get...
public class class_name { @Override public void verify(Statement s) throws SymbolWarning, IndexingFailure, ResourceDownloadError { List<Parameter> parameters = s.getAllParameters(); // first iteration to open all namespaces for (Parameter p : parameters) { if (p.get...
public class class_name { @Override public boolean remove(Object o) { Integer id = indexOf((Record) o); if(id == null) { return false; } remove(id); return true; } }
public class class_name { @Override public boolean remove(Object o) { Integer id = indexOf((Record) o); if(id == null) { return false; // depends on control dependency: [if], data = [none] } remove(id); return true; } }
public class class_name { @Override public void drawText(Graphics2D graphics, int width, int height) { int textLength = (int) (width * textWidthPercent); // 计算水印字体大小 int fontsize = textLength / text.length(); if(fontsize < minFontSize) { return ; } graph...
public class class_name { @Override public void drawText(Graphics2D graphics, int width, int height) { int textLength = (int) (width * textWidthPercent); // 计算水印字体大小 int fontsize = textLength / text.length(); if(fontsize < minFontSize) { return ; // depends on control de...
public class class_name { public void update(final String datum) { if ((datum == null) || datum.isEmpty()) { return; } final byte[] data = datum.getBytes(UTF_8); final long[] arr = hash(data, seed); hashUpdate(arr[0], arr[1]); } }
public class class_name { public void update(final String datum) { if ((datum == null) || datum.isEmpty()) { return; } // depends on control dependency: [if], data = [none] final byte[] data = datum.getBytes(UTF_8); final long[] arr = hash(data, seed); hashUpdate(arr[0], arr[1]); } }
public class class_name { public void removeObservableListener(ObservableListener<String> listener) { if (adaptersByListener.containsKey(listener)) { DocumentListener adapter = adaptersByListener.remove(listener); textComponent.getDocument().removeDocumentListener(adapter); } } }
public class class_name { public void removeObservableListener(ObservableListener<String> listener) { if (adaptersByListener.containsKey(listener)) { DocumentListener adapter = adaptersByListener.remove(listener); textComponent.getDocument().removeDocumentListener(adapter); // depends on control dependen...
public class class_name { @Override public Collection<V> get(@Nullable K key) { Collection<V> collection = map.get(key); if (collection == null) { collection = createCollection(key); } return wrapCollection(key, collection); } }
public class class_name { @Override public Collection<V> get(@Nullable K key) { Collection<V> collection = map.get(key); if (collection == null) { collection = createCollection(key); // depends on control dependency: [if], data = [none] } return wrapCollection(key, collection); } }
public class class_name { String stringValue( CssFormatter formatter ) { String str; try { formatter.addOutput(); appendTo( formatter ); } catch( Exception ex ) { throw createException( ex ); } finally { str = formatter.releaseOutput(); ...
public class class_name { String stringValue( CssFormatter formatter ) { String str; try { formatter.addOutput(); // depends on control dependency: [try], data = [none] appendTo( formatter ); // depends on control dependency: [try], data = [none] } catch( Exception ex ) ...
public class class_name { public static void setDnsCache(long expireMillis, String host, String... ips) { try { InetAddressCacheUtil.setInetAddressCache(host, ips, System.currentTimeMillis() + expireMillis); } catch (Exception e) { final String message = String.format("Fail to s...
public class class_name { public static void setDnsCache(long expireMillis, String host, String... ips) { try { InetAddressCacheUtil.setInetAddressCache(host, ips, System.currentTimeMillis() + expireMillis); // depends on control dependency: [try], data = [none] } catch (Exception e) { ...
public class class_name { private static boolean namedNodeMapsAreEqual(final NamedNodeMap a, final NamedNodeMap b) { if (a == b) { return true; } if ((a == null) || (b == null)) { return false; } if (a.getLength() != b.getLength()) { return fa...
public class class_name { private static boolean namedNodeMapsAreEqual(final NamedNodeMap a, final NamedNodeMap b) { if (a == b) { return true; // depends on control dependency: [if], data = [none] } if ((a == null) || (b == null)) { return false; // depends on control d...
public class class_name { public void setPathSelfScore(Term from, boolean asc) { double score = this.selfScore + from.score; // 维特比进行最优路径的构建 if (this.from == null) { this.setFromAndScore(from, score); } else { if ((this.score > score) == asc) { this.setFromAndScore(from, score); } } } }
public class class_name { public void setPathSelfScore(Term from, boolean asc) { double score = this.selfScore + from.score; // 维特比进行最优路径的构建 if (this.from == null) { this.setFromAndScore(from, score); // depends on control dependency: [if], data = [none] } else { if ((this.score > score) == asc) { th...
public class class_name { static private final Date parseISODate(String stringValue) { try { return getDateFormat().parse(stringValue); } catch (ParseException pe) { if (LOG.isLoggable(Level.INFO)) { LOG.log(Level.INFO, "CANNOT_PARSE_VALUE_INTO_DATE_WITH_YYYY_MM_DD_PATTE...
public class class_name { static private final Date parseISODate(String stringValue) { try { return getDateFormat().parse(stringValue); // depends on control dependency: [try], data = [none] } catch (ParseException pe) { if (LOG.isLoggable(Level.INFO)) { LOG.log(Level.IN...
public class class_name { @Override public Collection<URL> getURLs() { try { // As a container URL, the URL must end with a trailing slash. URL entryUrl = rootContainer.createEntryUri( getRelativePath() + "/" ).toURL(); return Collections.singleton(entryUrl); } c...
public class class_name { @Override public Collection<URL> getURLs() { try { // As a container URL, the URL must end with a trailing slash. URL entryUrl = rootContainer.createEntryUri( getRelativePath() + "/" ).toURL(); return Collections.singleton(entryUrl); // depends ...
public class class_name { public String readLine() throws IOException { StringBuilder str = new StringBuilder(); while (true) { int c = read(); if (c < 0) { break; } if (c == '\n') { // if possible consume another '\r' ...
public class class_name { public String readLine() throws IOException { StringBuilder str = new StringBuilder(); while (true) { int c = read(); if (c < 0) { break; } if (c == '\n') { // if possible consume another '\r' ...
public class class_name { public static void main(String[] args) { System.out.println(version); if (args.length < 1) { // No arguments - lazily initialize readme, print readme and usage initReadme(); if (readme != null) { System.out.println(readme); ...
public class class_name { public static void main(String[] args) { System.out.println(version); if (args.length < 1) { // No arguments - lazily initialize readme, print readme and usage initReadme(); // depends on control dependency: [if], data = [none] if (readme !...
public class class_name { public void storeMtoNImplementor(CollectionDescriptor cod, Object realObject, Object otherObj, Collection mnKeys) { ClassDescriptor cld = pb.getDescriptorRepository().getDescriptorFor(realObject.getClass()); ValueContainer[] pkValues = pb.serviceBrokerHelper().getKeyVal...
public class class_name { public void storeMtoNImplementor(CollectionDescriptor cod, Object realObject, Object otherObj, Collection mnKeys) { ClassDescriptor cld = pb.getDescriptorRepository().getDescriptorFor(realObject.getClass()); ValueContainer[] pkValues = pb.serviceBrokerHelper().getKeyVal...
public class class_name { public void addFields(List<ModelFieldBean> modelFields) { Assert.notNull(modelFields, "modelFields must not be null"); for (ModelFieldBean bean : modelFields) { this.fields.put(bean.getName(), bean); } } }
public class class_name { public void addFields(List<ModelFieldBean> modelFields) { Assert.notNull(modelFields, "modelFields must not be null"); for (ModelFieldBean bean : modelFields) { this.fields.put(bean.getName(), bean); // depends on control dependency: [for], data = [bean] } } }
public class class_name { public Observable<ServiceResponse<List<TypeFieldInner>>> listFieldsByModuleAndTypeWithServiceResponseAsync(String resourceGroupName, String automationAccountName, String moduleName, String typeName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Par...
public class class_name { public Observable<ServiceResponse<List<TypeFieldInner>>> listFieldsByModuleAndTypeWithServiceResponseAsync(String resourceGroupName, String automationAccountName, String moduleName, String typeName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Par...
public class class_name { public DescribeClientVpnRoutesResult withRoutes(ClientVpnRoute... routes) { if (this.routes == null) { setRoutes(new com.amazonaws.internal.SdkInternalList<ClientVpnRoute>(routes.length)); } for (ClientVpnRoute ele : routes) { this.routes.add(el...
public class class_name { public DescribeClientVpnRoutesResult withRoutes(ClientVpnRoute... routes) { if (this.routes == null) { setRoutes(new com.amazonaws.internal.SdkInternalList<ClientVpnRoute>(routes.length)); // depends on control dependency: [if], data = [none] } for (ClientV...
public class class_name { public void setShadowsEnabled(final boolean ENABLED) { if (null == shadowsEnabled) { _shadowsEnabled = ENABLED; fireUpdateEvent(REDRAW_EVENT); } else { shadowsEnabled.set(ENABLED); } } }
public class class_name { public void setShadowsEnabled(final boolean ENABLED) { if (null == shadowsEnabled) { _shadowsEnabled = ENABLED; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] } ...
public class class_name { private static <T> void aggregateRoutes( String method, Map<PathPattern, T> routes, List<String> accMethods, List<String> accPatterns, List<String> accTargets) { for (Map.Entry<PathPattern, T> entry : routes.entrySet()) { accMethods.add(method); accPatterns.add("/" + entry.getKey(...
public class class_name { private static <T> void aggregateRoutes( String method, Map<PathPattern, T> routes, List<String> accMethods, List<String> accPatterns, List<String> accTargets) { for (Map.Entry<PathPattern, T> entry : routes.entrySet()) { accMethods.add(method); // depends on control dependency: [for...
public class class_name { public long compute(java.util.Vector<Long> e, java.util.Vector<java.util.List<Edge>> c, java.util.Vector<java.util.List<EdgeFlow>> x) { assert e.size() == c.size(); assert x.size() == c.size(); numNodes = e.size(); nodesToQ = new java.util.Vector<Integer>(); ...
public class class_name { public long compute(java.util.Vector<Long> e, java.util.Vector<java.util.List<Edge>> c, java.util.Vector<java.util.List<EdgeFlow>> x) { assert e.size() == c.size(); assert x.size() == c.size(); numNodes = e.size(); nodesToQ = new java.util.Vector<Integer>(); ...
public class class_name { private boolean validOrthologousStatement(final Statement stmt) { // test statement is well-formed if (stmt.getRelationshipType() == RelationshipType.ORTHOLOGOUS && stmt.getObject() != null && stmt.getObject().getTerm() != null) { /...
public class class_name { private boolean validOrthologousStatement(final Statement stmt) { // test statement is well-formed if (stmt.getRelationshipType() == RelationshipType.ORTHOLOGOUS && stmt.getObject() != null && stmt.getObject().getTerm() != null) { /...
public class class_name { public PropertyMetadata visitProperty(String propertyType, String name, @Nullable String description, @Nullable String defaultValue) { if (!configurations.isE...
public class class_name { public PropertyMetadata visitProperty(String propertyType, String name, @Nullable String description, @Nullable String defaultValue) { if (!configurations.isE...
public class class_name { protected Authenticated getAuthObjFromFile(final File authFile) { if (authFile == null) { getLog().debug(AUTH_FILE_NOT_CONFIG); return null; } if (!authFile.exists()) { getLog().error(AUTH_FILE_NOT_EXIST + authFile.getAbsolutePath()...
public class class_name { protected Authenticated getAuthObjFromFile(final File authFile) { if (authFile == null) { getLog().debug(AUTH_FILE_NOT_CONFIG); // depends on control dependency: [if], data = [none] return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static String encode(String password, String algorithm) { byte[] unencodedPassword = password.getBytes(); MessageDigest md = null; try { // first create an instance, given the provider md = MessageDigest.getInstance(algorithm); } catch (Exception e) { ...
public class class_name { public static String encode(String password, String algorithm) { byte[] unencodedPassword = password.getBytes(); MessageDigest md = null; try { // first create an instance, given the provider md = MessageDigest.getInstance(algorithm); // depends on control dependency: ...
public class class_name { @NotNull protected Map<String, Map<String, Object>> toTypeArguments(ParameterElement... parameters) { final LinkedHashMap<String, Map<String, Object>> map = new LinkedHashMap<>(parameters.length); for (ParameterElement ce : parameters) { final ClassElement t...
public class class_name { @NotNull protected Map<String, Map<String, Object>> toTypeArguments(ParameterElement... parameters) { final LinkedHashMap<String, Map<String, Object>> map = new LinkedHashMap<>(parameters.length); for (ParameterElement ce : parameters) { final ClassElement t...
public class class_name { protected Component lookForComponent(String name, Component[] components) { for (int i = 0; i < components.length && !mFindWithEqual; i++) { //String componentName = ComponentNamer.getInstance().getNameForComponent(components[c]); Component c = components[i]; ...
public class class_name { protected Component lookForComponent(String name, Component[] components) { for (int i = 0; i < components.length && !mFindWithEqual; i++) { //String componentName = ComponentNamer.getInstance().getNameForComponent(components[c]); Component c = components[i]; ...
public class class_name { public boolean skipRecord() throws IOException { checkClosed(); boolean recordRead = false; if (hasMoreData) { recordRead = readRecord(); if (recordRead) { currentRecord--; } } return recordRead; } }
public class class_name { public boolean skipRecord() throws IOException { checkClosed(); boolean recordRead = false; if (hasMoreData) { recordRead = readRecord(); if (recordRead) { currentRecord--; // depends on control dependency: [if], data = [none] } } return recordRead; } }
public class class_name { private String getNamePattern() { String niceName = m_typeShortName.getValue(); if (m_typeShortName.getValue().contains("-")) { int maxLength = 0; String[] nameParts = niceName.split("-"); for (int i = 0; i < nameParts.length; i++) { ...
public class class_name { private String getNamePattern() { String niceName = m_typeShortName.getValue(); if (m_typeShortName.getValue().contains("-")) { int maxLength = 0; String[] nameParts = niceName.split("-"); for (int i = 0; i < nameParts.length; i++) { ...
public class class_name { public EClass getIfcWall() { if (ifcWallEClass == null) { ifcWallEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(640); } return ifcWallEClass; } }
public class class_name { public EClass getIfcWall() { if (ifcWallEClass == null) { ifcWallEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(640); // depends on control dependency: [if], data = [none] } return ifcWallEClass; } }
public class class_name { public void putAllRequestBaggage(Map<String, String> requestBaggage) { if (BAGGAGE_ENABLE && requestBaggage != null) { this.requestBaggage.putAll(requestBaggage); } } }
public class class_name { public void putAllRequestBaggage(Map<String, String> requestBaggage) { if (BAGGAGE_ENABLE && requestBaggage != null) { this.requestBaggage.putAll(requestBaggage); // depends on control dependency: [if], data = [none] } } }
public class class_name { private Class getCollectionType() { Class collectionType = Collection.class; IParsedElement parent = getParsedElement().getParent(); if( parent instanceof NewExpression ) { IType newType = ((NewExpression)parent).getType(); IJavaClassInfo classInfo = IRTypeResolv...
public class class_name { private Class getCollectionType() { Class collectionType = Collection.class; IParsedElement parent = getParsedElement().getParent(); if( parent instanceof NewExpression ) { IType newType = ((NewExpression)parent).getType(); IJavaClassInfo classInfo = IRTypeResolv...
public class class_name { protected void makeRunnerIfNeeded() { // We don't need to make a SVG runner when there are no pending updates. boolean stop = true; for(WeakReference<UpdateRunner> wur : updaterunner) { UpdateRunner ur = wur.get(); if(ur == null) { updaterunner.remove(wur); ...
public class class_name { protected void makeRunnerIfNeeded() { // We don't need to make a SVG runner when there are no pending updates. boolean stop = true; for(WeakReference<UpdateRunner> wur : updaterunner) { UpdateRunner ur = wur.get(); if(ur == null) { updaterunner.remove(wur); // ...
public class class_name { public ZipMessage addEntry(File file) { try { addEntry(new Entry(file)); } catch (IOException e) { throw new CitrusRuntimeException("Failed to read zip entry content from given file", e); } return this; } }
public class class_name { public ZipMessage addEntry(File file) { try { addEntry(new Entry(file)); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new CitrusRuntimeException("Failed to read zip entry content from given file", e); } ...
public class class_name { @Override public IntSetBitStore range(int from, int to) { if (from < 0) throw new IllegalArgumentException(); if (to < from) throw new IllegalArgumentException(); to += start; if (to > finish) throw new IllegalArgumentException(); from += start; SortedSet<Integer> sub; if (to =...
public class class_name { @Override public IntSetBitStore range(int from, int to) { if (from < 0) throw new IllegalArgumentException(); if (to < from) throw new IllegalArgumentException(); to += start; if (to > finish) throw new IllegalArgumentException(); from += start; SortedSet<Integer> sub; if (to =...
public class class_name { public static int indexOf(double[] array, double[] sub, int startIndex, int endIndex) { int sublen = sub.length; if (sublen == 0) { return startIndex; } int total = endIndex - sublen + 1; double c = sub[0]; mainloop: for (int i = startIndex; i < total; i++) { if (Double.co...
public class class_name { public static int indexOf(double[] array, double[] sub, int startIndex, int endIndex) { int sublen = sub.length; if (sublen == 0) { return startIndex; // depends on control dependency: [if], data = [none] } int total = endIndex - sublen + 1; double c = sub[0]; mainloop: for (...