code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private void handleDeclarationBlock(CssToken start, CssTokenIterator iter, final CssContentHandler doc, CssErrorHandler err) throws CssException { while (true) { if (MATCH_CLOSEBRACE.apply(start)) { return; } CssDeclaration decl = handleD...
public class class_name { private void handleDeclarationBlock(CssToken start, CssTokenIterator iter, final CssContentHandler doc, CssErrorHandler err) throws CssException { while (true) { if (MATCH_CLOSEBRACE.apply(start)) { return; // depends on control dependency: [if], dat...
public class class_name { public static TypedValue untypedValue(Object value, boolean isTransient) { if(value == null) { return untypedNullValue(isTransient); } else if (value instanceof TypedValueBuilder<?>) { return ((TypedValueBuilder<?>) value).setTransient(isTransient).create(); } else if ...
public class class_name { public static TypedValue untypedValue(Object value, boolean isTransient) { if(value == null) { return untypedNullValue(isTransient); // depends on control dependency: [if], data = [none] } else if (value instanceof TypedValueBuilder<?>) { return ((TypedValueBuilder<?>) val...
public class class_name { public static int getKeyLength(String cipherSuite) { // Roughly ordered from most common to least common. if (cipherSuite == null) { return 0; } else if (cipherSuite.contains("WITH_AES_256_")) { return 256; } else if (cipherSuite.contain...
public class class_name { public static int getKeyLength(String cipherSuite) { // Roughly ordered from most common to least common. if (cipherSuite == null) { return 0; // depends on control dependency: [if], data = [none] } else if (cipherSuite.contains("WITH_AES_256_")) { ...
public class class_name { public synchronized void transferError(Exception e) { logger.debug("intercepted exception", e); if (transferException == null) { transferException = e; } else if (transferException instanceof InterruptedException || transferException instanceof InterruptedIOException) { //if...
public class class_name { public synchronized void transferError(Exception e) { logger.debug("intercepted exception", e); if (transferException == null) { transferException = e; // depends on control dependency: [if], data = [none] } else if (transferException instanceof InterruptedException || transferEx...
public class class_name { public static void setMetaClass(Object self, MetaClass metaClass) { if (metaClass instanceof HandleMetaClass) metaClass = ((HandleMetaClass)metaClass).getAdaptee(); if (self instanceof Class) { GroovySystem.getMetaClassRegistry().setMetaClass((Class) s...
public class class_name { public static void setMetaClass(Object self, MetaClass metaClass) { if (metaClass instanceof HandleMetaClass) metaClass = ((HandleMetaClass)metaClass).getAdaptee(); if (self instanceof Class) { GroovySystem.getMetaClassRegistry().setMetaClass((Class) s...
public class class_name { private Long getCpuTime() { if (bean instanceof com.sun.management.OperatingSystemMXBean) { //NOSONAR return ((com.sun.management.OperatingSystemMXBean) bean).getProcessCpuTime(); //NOSONAR } else { return -1L; } } }
public class class_name { private Long getCpuTime() { if (bean instanceof com.sun.management.OperatingSystemMXBean) { //NOSONAR return ((com.sun.management.OperatingSystemMXBean) bean).getProcessCpuTime(); //NOSONAR // depends on control dependency: [if], data = [none] } else { ...
public class class_name { @Override public void setIntHeader(final String name, final int value) { if (buffer == null || !name.equalsIgnoreCase(CONTENT_LENGTH)) { super.setIntHeader(name, value); } } }
public class class_name { @Override public void setIntHeader(final String name, final int value) { if (buffer == null || !name.equalsIgnoreCase(CONTENT_LENGTH)) { super.setIntHeader(name, value); // depends on control dependency: [if], data = [none] } } }
public class class_name { @JsonIgnore public String getSigningCertificateDecoded() { if (EncodingUtils.isBase64(signingCertificate)) { return EncodingUtils.decodeBase64ToString(signingCertificate); } return signingCertificate; } }
public class class_name { @JsonIgnore public String getSigningCertificateDecoded() { if (EncodingUtils.isBase64(signingCertificate)) { return EncodingUtils.decodeBase64ToString(signingCertificate); // depends on control dependency: [if], data = [none] } return signingCertificate...
public class class_name { private static <T extends Comparable<T>> Optional<Range<T>> smallestContainerForRange( Collection<Range<T>> ranges, Range<T> target) { Range<T> best = Range.all(); for (final Range<T> r : ranges) { if (r.equals(target)) { continue; } // prefer a smaller...
public class class_name { private static <T extends Comparable<T>> Optional<Range<T>> smallestContainerForRange( Collection<Range<T>> ranges, Range<T> target) { Range<T> best = Range.all(); for (final Range<T> r : ranges) { if (r.equals(target)) { continue; } // prefer a smaller...
public class class_name { protected String getCrid(Map result) { HashMap mgnData = getObjectOr(result, "management", new HashMap()); ArrayList<HashMap> events = getObjectOr(mgnData, "events", new ArrayList()); String crid = null; boolean isPlEventExist = false; for (HashMap eve...
public class class_name { protected String getCrid(Map result) { HashMap mgnData = getObjectOr(result, "management", new HashMap()); ArrayList<HashMap> events = getObjectOr(mgnData, "events", new ArrayList()); String crid = null; boolean isPlEventExist = false; for (HashMap eve...
public class class_name { public void drainAndHalt() { Sequence[] workerSequences = getWorkerSequences(); while (ringBuffer.getCursor() > Util.getMinimumSequence(workerSequences)) { Thread.yield(); } for (WorkProcessor<?> processor : workProcessors) { ...
public class class_name { public void drainAndHalt() { Sequence[] workerSequences = getWorkerSequences(); while (ringBuffer.getCursor() > Util.getMinimumSequence(workerSequences)) { Thread.yield(); // depends on control dependency: [while], data = [none] } for (...
public class class_name { public CommandArgs<K, V> add(Map<K, V> map) { LettuceAssert.notNull(map, "Map must not be null"); for (Map.Entry<K, V> entry : map.entrySet()) { addKey(entry.getKey()).addValue(entry.getValue()); } return this; } }
public class class_name { public CommandArgs<K, V> add(Map<K, V> map) { LettuceAssert.notNull(map, "Map must not be null"); for (Map.Entry<K, V> entry : map.entrySet()) { addKey(entry.getKey()).addValue(entry.getValue()); // depends on control dependency: [for], data = [entry] } ...
public class class_name { public void cancel(String tag) { List<NotificationEntry> entries = mCenter.getEntries(ID, tag); if (entries != null && !entries.isEmpty()) { for (NotificationEntry entry : entries) { cancel(entry); } } } }
public class class_name { public void cancel(String tag) { List<NotificationEntry> entries = mCenter.getEntries(ID, tag); if (entries != null && !entries.isEmpty()) { for (NotificationEntry entry : entries) { cancel(entry); // depends on control dependency: [for], data = [en...
public class class_name { public void onContentChange() { Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { Widget parent = getParent(); while (parent != null) { if (parent instanceof CmsGalleryDialog) { ...
public class class_name { public void onContentChange() { Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { Widget parent = getParent(); while (parent != null) { if (parent instanceof CmsGalleryDialog) { ...
public class class_name { public Tensor select(int dim, int idx) { int[] yDims = IntArrays.removeEntry(this.getDims(), dim); Tensor y = new Tensor(s, yDims); DimIter yIter = new DimIter(y.getDims()); while (yIter.hasNext()) { int[] yIdx = yIter.next(); int[] xIdx...
public class class_name { public Tensor select(int dim, int idx) { int[] yDims = IntArrays.removeEntry(this.getDims(), dim); Tensor y = new Tensor(s, yDims); DimIter yIter = new DimIter(y.getDims()); while (yIter.hasNext()) { int[] yIdx = yIter.next(); int[] xIdx...
public class class_name { public Set<Auth> createAuthsFromString(String authInfo) { if ("".equals(authInfo) || authInfo == null) return Collections.emptySet(); String[] parts = authInfo.split(","); final Set<Auth> auths = new HashSet<Auth>(); try { for (String auth : parts) { StringT...
public class class_name { public Set<Auth> createAuthsFromString(String authInfo) { if ("".equals(authInfo) || authInfo == null) return Collections.emptySet(); String[] parts = authInfo.split(","); final Set<Auth> auths = new HashSet<Auth>(); try { for (String auth : parts) { StringT...
public class class_name { public byte[] getImageBytes(BufferedImage image) { byte[] bytes = null; try { bytes = ImageUtils.writeImageToBytes(image, ImageUtils.IMAGE_FORMAT_PNG); } catch (IOException e) { throw new GeoPackageException("Failed to write image to " + ImageUtils.IMAGE_FORMAT_PNG + " b...
public class class_name { public byte[] getImageBytes(BufferedImage image) { byte[] bytes = null; try { bytes = ImageUtils.writeImageToBytes(image, ImageUtils.IMAGE_FORMAT_PNG); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new GeoPackageException("Failed to wr...
public class class_name { public static void main(String[] args) { try { HadoopLogsAnalyzer analyzer = new HadoopLogsAnalyzer(); int result = ToolRunner.run(analyzer, args); if (result == 0) { return; } System.exit(result); } catch (FileNotFoundException e) { LOG....
public class class_name { public static void main(String[] args) { try { HadoopLogsAnalyzer analyzer = new HadoopLogsAnalyzer(); int result = ToolRunner.run(analyzer, args); if (result == 0) { return; // depends on control dependency: [if], data = [none] } System.exit(resul...
public class class_name { private boolean checkHeader(RandomAccessInputStream raf) throws IOException { raf.seek(HEAD_LOCATION); byte[] buf = new byte[HEAD_SIZE]; if (raf.read(buf) != HEAD_SIZE) { throw new IOException("Error encountered finding id3v2 header"); } String result = new String(buf, ENC_T...
public class class_name { private boolean checkHeader(RandomAccessInputStream raf) throws IOException { raf.seek(HEAD_LOCATION); byte[] buf = new byte[HEAD_SIZE]; if (raf.read(buf) != HEAD_SIZE) { throw new IOException("Error encountered finding id3v2 header"); } String result = new String(buf, ENC_T...
public class class_name { public static List<double[]> op(@javax.annotation.Nonnull final List<double[]> a, @javax.annotation.Nonnull final List<double[]> b, @javax.annotation.Nonnull final DoubleBinaryOperator fn) { assert a.size() == b.size(); return IntStream.range(0, a.size()).parallel().mapToObj(i -> { ...
public class class_name { public static List<double[]> op(@javax.annotation.Nonnull final List<double[]> a, @javax.annotation.Nonnull final List<double[]> b, @javax.annotation.Nonnull final DoubleBinaryOperator fn) { assert a.size() == b.size(); return IntStream.range(0, a.size()).parallel().mapToObj(i -> { ...
public class class_name { private void fireMouseClicked(int button, int x, int y, int clickCount) { consumed = false; for (int i=0;i<mouseListeners.size();i++) { MouseListener listener = (MouseListener) mouseListeners.get(i); if (listener.isAcceptingInput()) { listener.mouseClicked(button, x, y, cli...
public class class_name { private void fireMouseClicked(int button, int x, int y, int clickCount) { consumed = false; for (int i=0;i<mouseListeners.size();i++) { MouseListener listener = (MouseListener) mouseListeners.get(i); if (listener.isAcceptingInput()) { listener.mouseClicked(button, x, y, cli...
public class class_name { public Tracer createTracer(String tracerName, boolean requestedBySource) { TracerImpl tparent = null; TracerImpl t = tracers.get(tracerName); if (t == null) { String[] split = tracerName.split("\\."); String currentName = ""; for (String s : split) { if (tparent == null) ...
public class class_name { public Tracer createTracer(String tracerName, boolean requestedBySource) { TracerImpl tparent = null; TracerImpl t = tracers.get(tracerName); if (t == null) { String[] split = tracerName.split("\\."); String currentName = ""; for (String s : split) { if (tparent == null) ...
public class class_name { private static<V> LongHashTrieMap<V> mergeLeafMaps (long hash0, ALongHashMap<V> elem0, long hash1, ALongHashMap<V> elem1, int level, int size) { final int index0 = (int) ((hash0 >>> level) & 0x3f); final int index1 = (int) ((hash1 >>> level) & 0x3f); if(index0 != index...
public class class_name { private static<V> LongHashTrieMap<V> mergeLeafMaps (long hash0, ALongHashMap<V> elem0, long hash1, ALongHashMap<V> elem1, int level, int size) { final int index0 = (int) ((hash0 >>> level) & 0x3f); final int index1 = (int) ((hash1 >>> level) & 0x3f); if(index0 != index...
public class class_name { public static String getStackTrace(Throwable t, int depth, String prefix) { StringBuffer retval = new StringBuffer(); int nrWritten = 0; retval.append(t.toString() + " with message: " + t.getMessage()); StackTraceElement[] elements = t.getStackTrace(); for (int i = 0; nrWritten < de...
public class class_name { public static String getStackTrace(Throwable t, int depth, String prefix) { StringBuffer retval = new StringBuffer(); int nrWritten = 0; retval.append(t.toString() + " with message: " + t.getMessage()); StackTraceElement[] elements = t.getStackTrace(); for (int i = 0; nrWritten < de...
public class class_name { @Override public List<Group> getSeqResGroups(GroupType type) { List<Group> tmp = new ArrayList<>() ; for (Group g : seqResGroups) { if (g.getType().equals(type)) { tmp.add(g); } } return tmp ; } }
public class class_name { @Override public List<Group> getSeqResGroups(GroupType type) { List<Group> tmp = new ArrayList<>() ; for (Group g : seqResGroups) { if (g.getType().equals(type)) { tmp.add(g); // depends on control dependency: [if], data = [none] } } return tmp ; } }
public class class_name { private void setDeliverValueChangeEvents(boolean enable) { formObjectHolder.setDeliverValueChangeEvents(enable); for (Object o : mediatingValueModels.values()) { FormModelMediatingValueModel valueModel = (FormModelMediatingValueModel) o; valueModel.setD...
public class class_name { private void setDeliverValueChangeEvents(boolean enable) { formObjectHolder.setDeliverValueChangeEvents(enable); for (Object o : mediatingValueModels.values()) { FormModelMediatingValueModel valueModel = (FormModelMediatingValueModel) o; valueModel.setD...
public class class_name { static Optional<BigQueryTableSchema> getTableSchema(Configuration conf) throws IOException { String fieldsJson = conf.get(BigQueryConfiguration.OUTPUT_TABLE_SCHEMA_KEY); if (!Strings.isNullOrEmpty(fieldsJson)) { try { TableSchema tableSchema = BigQueryTableHelper.createT...
public class class_name { static Optional<BigQueryTableSchema> getTableSchema(Configuration conf) throws IOException { String fieldsJson = conf.get(BigQueryConfiguration.OUTPUT_TABLE_SCHEMA_KEY); if (!Strings.isNullOrEmpty(fieldsJson)) { try { TableSchema tableSchema = BigQueryTableHelper.createT...
public class class_name { public void deactivate () { if (_host != null) { // unwire ourselves from the host component Component comp = _host.getComponent(); comp.removeMouseListener(this); comp.removeMouseMotionListener(this); // reinstate the p...
public class class_name { public void deactivate () { if (_host != null) { // unwire ourselves from the host component Component comp = _host.getComponent(); comp.removeMouseListener(this); // depends on control dependency: [if], data = [none] comp.removeMous...
public class class_name { public void setModel (PropertySheetModel pm) { if (pm instanceof org.apache.ojb.tools.mapping.reversedb.DBSchema) { this.aSchema = (org.apache.ojb.tools.mapping.reversedb.DBSchema)pm; this.readValuesFromSchema(); } else throw new IllegalArgumentExce...
public class class_name { public void setModel (PropertySheetModel pm) { if (pm instanceof org.apache.ojb.tools.mapping.reversedb.DBSchema) { this.aSchema = (org.apache.ojb.tools.mapping.reversedb.DBSchema)pm; // depends on control dependency: [if], data = [none] this.readValuesFromSchema();...
public class class_name { private static void parseStyle(SvgElementBase obj, String style) { TextScanner scan = new TextScanner(style.replaceAll("/\\*.*?\\*/", "")); // regex strips block comments while (true) { String propertyName = scan.nextToken(':'); scan.skipWhit...
public class class_name { private static void parseStyle(SvgElementBase obj, String style) { TextScanner scan = new TextScanner(style.replaceAll("/\\*.*?\\*/", "")); // regex strips block comments while (true) { String propertyName = scan.nextToken(':'); scan.skipWhit...
public class class_name { public Object readClassAndObject (Input input) { if (input == null) throw new IllegalArgumentException("input cannot be null."); beginObject(); try { Registration registration = readClass(input); if (registration == null) return null; Class type = registration.getType(); ...
public class class_name { public Object readClassAndObject (Input input) { if (input == null) throw new IllegalArgumentException("input cannot be null."); beginObject(); try { Registration registration = readClass(input); if (registration == null) return null; Class type = registration.getType(); ...
public class class_name { @Override public void setBundleDataHashCode(String variantKey, String bundleDataHashCode) { String prefix = bundleDataHashCode; if (StringUtils.isEmpty(variantKey)) { this.urlPrefix = prefix; } else { prefixMap.put(variantKey, prefix); } } }
public class class_name { @Override public void setBundleDataHashCode(String variantKey, String bundleDataHashCode) { String prefix = bundleDataHashCode; if (StringUtils.isEmpty(variantKey)) { this.urlPrefix = prefix; // depends on control dependency: [if], data = [none] } else { prefixMap.put(variantKe...
public class class_name { public final T pop() { if (size > 0) { T result = heap[1]; // save first value heap[1] = heap[size]; // move last to first heap[size] = null; // permit GC of objects size--; downHeap(); // adjust heap ...
public class class_name { public final T pop() { if (size > 0) { T result = heap[1]; // save first value heap[1] = heap[size]; // move last to first // depends on control dependency: [if], data = [none] heap[size] = null; // permit GC of objects // depends on con...
public class class_name { public byte[] decrypt(byte[] bytes) { lock.lock(); try { if (null == this.params) { cipher.init(Cipher.DECRYPT_MODE, secretKey); } else { cipher.init(Cipher.DECRYPT_MODE, secretKey, params); } return cipher.doFinal(bytes); } catch (Exception e) { throw n...
public class class_name { public byte[] decrypt(byte[] bytes) { lock.lock(); try { if (null == this.params) { cipher.init(Cipher.DECRYPT_MODE, secretKey); // depends on control dependency: [if], data = [none] } else { cipher.init(Cipher.DECRYPT_MODE, secretKey, params); // depends on control d...
public class class_name { public static <E> int exponentialSearchBwd(AbstractCounterexample<E> acex, int low, int high) { assert !acex.testEffects(low, high); int ofs = 1; E effHigh = acex.effect(high); int highIter = high; int lowIter = low; while (highIter - ofs > l...
public class class_name { public static <E> int exponentialSearchBwd(AbstractCounterexample<E> acex, int low, int high) { assert !acex.testEffects(low, high); int ofs = 1; E effHigh = acex.effect(high); int highIter = high; int lowIter = low; while (highIter - ofs > l...
public class class_name { public PtoPMessageItemStream addNewRemotePtoPLocalization( TransactionCommon transaction, SIBUuid8 messagingEngineUuid, LocalizationDefinition destinationLocalizationDefinition, boolean queuePoint, AbstractRemoteSupport remoteSupport) throws SIResourceException { if ...
public class class_name { public PtoPMessageItemStream addNewRemotePtoPLocalization( TransactionCommon transaction, SIBUuid8 messagingEngineUuid, LocalizationDefinition destinationLocalizationDefinition, boolean queuePoint, AbstractRemoteSupport remoteSupport) throws SIResourceException { if ...
public class class_name { public static long[] asLongArray(Collection collection) { long[] result = new long[collection.size()]; int i = 0; for (Object c : collection) { result[i++] = asLong(c); } return result; } }
public class class_name { public static long[] asLongArray(Collection collection) { long[] result = new long[collection.size()]; int i = 0; for (Object c : collection) { result[i++] = asLong(c); // depends on control dependency: [for], data = [c] } return result; ...
public class class_name { private BigDecimal parseBasicNumber(final NumberBuffer buffer) { final StringBuilder builder = new StringBuilder(); int i = buffer.position(); while (i < buffer.length()) { final char c = buffer.charAt(i); if (isArabicNumeral(c)) { ...
public class class_name { private BigDecimal parseBasicNumber(final NumberBuffer buffer) { final StringBuilder builder = new StringBuilder(); int i = buffer.position(); while (i < buffer.length()) { final char c = buffer.charAt(i); if (isArabicNumeral(c)) { ...
public class class_name { public void marshall(ActionTypeSettings actionTypeSettings, ProtocolMarshaller protocolMarshaller) { if (actionTypeSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(ActionTypeSettings actionTypeSettings, ProtocolMarshaller protocolMarshaller) { if (actionTypeSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public int getIntValue(Keyframe<Integer> keyframe, float keyframeProgress) { if (keyframe.startValue == null || keyframe.endValue == null) { throw new IllegalStateException("Missing values for keyframe."); } int startColor = keyframe.startValue; int endColor = keyframe.e...
public class class_name { public int getIntValue(Keyframe<Integer> keyframe, float keyframeProgress) { if (keyframe.startValue == null || keyframe.endValue == null) { throw new IllegalStateException("Missing values for keyframe."); } int startColor = keyframe.startValue; int endColor = keyframe.e...
public class class_name { public void putAll(final Properties p) { synchronized (map) { for (final String key : p.stringPropertyNames()) { map.put(key, p.getProperty(key)); } } } }
public class class_name { public void putAll(final Properties p) { synchronized (map) { for (final String key : p.stringPropertyNames()) { map.put(key, p.getProperty(key)); // depends on control dependency: [for], data = [key] } } } }
public class class_name { public static Iterator<Object> getKeys(Object[] array) { if (array == null) { return null; } ArrayList<Object> keyList = new ArrayList<Object>(); int i = array.length - 2; while (i >= 0) { keyList.add(array[i]...
public class class_name { public static Iterator<Object> getKeys(Object[] array) { if (array == null) { return null; // depends on control dependency: [if], data = [none] } ArrayList<Object> keyList = new ArrayList<Object>(); int i = array.length - 2; whi...
public class class_name { public double[] toArray() { if (vectorOffset > 0 || vectorLength != vector.length()) { double[] r = new double[vectorLength - vectorOffset]; for (int i = vectorOffset; i < vectorLength; ++i) r[i] = doubleVector.get(i); return r; ...
public class class_name { public double[] toArray() { if (vectorOffset > 0 || vectorLength != vector.length()) { double[] r = new double[vectorLength - vectorOffset]; for (int i = vectorOffset; i < vectorLength; ++i) r[i] = doubleVector.get(i); return r; // d...
public class class_name { protected void generateAnonymousClassDefinition(AnonymousClass anonClass, IAppendable it, IExtraLanguageGeneratorContext context) { if (!it.hasName(anonClass) && it instanceof PyAppendable) { final LightweightTypeReference jvmAnonType = getExpectedType(anonClass); final String anonNam...
public class class_name { protected void generateAnonymousClassDefinition(AnonymousClass anonClass, IAppendable it, IExtraLanguageGeneratorContext context) { if (!it.hasName(anonClass) && it instanceof PyAppendable) { final LightweightTypeReference jvmAnonType = getExpectedType(anonClass); final String anonNam...
public class class_name { public static void update(final FileUpdater updater, final File destFile) throws UpdateException { final File lockFile = new File(destFile.getAbsolutePath() + ".lock"); final File newDestFile = new File(destFile.getAbsolutePath() + ".new"); try { // synchr...
public class class_name { public static void update(final FileUpdater updater, final File destFile) throws UpdateException { final File lockFile = new File(destFile.getAbsolutePath() + ".lock"); final File newDestFile = new File(destFile.getAbsolutePath() + ".new"); try { // synchr...
public class class_name { public void setStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress) { if (staleIpPermissionsEgress == null) { this.staleIpPermissionsEgress = null; return; } this.staleIpPermissionsEgress = new com.amazonaw...
public class class_name { public void setStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress) { if (staleIpPermissionsEgress == null) { this.staleIpPermissionsEgress = null; // depends on control dependency: [if], data = [none] return; // depends on...
public class class_name { private void writeNumber(PrintWriter pw, NumberFormat numFormat, Number num){ if( num.doubleValue() == Math.round(num.doubleValue()) ){ // Integer if( null != numFormat ){ pw.print( numFormat.format(num.intValue()) ); } else { pw.print( num.intValue() ); } } else {...
public class class_name { private void writeNumber(PrintWriter pw, NumberFormat numFormat, Number num){ if( num.doubleValue() == Math.round(num.doubleValue()) ){ // Integer if( null != numFormat ){ pw.print( numFormat.format(num.intValue()) ); // depends on control dependency: [if], data = [none] } else...
public class class_name { public static void insert(String key, String... split) { Forest forest = get(key); StringBuilder sb = new StringBuilder(); if (split.length % 2 != 0) { LOG.error("init ambiguity error in line :" + Arrays.toString(split) + " format err !"); retu...
public class class_name { public static void insert(String key, String... split) { Forest forest = get(key); StringBuilder sb = new StringBuilder(); if (split.length % 2 != 0) { LOG.error("init ambiguity error in line :" + Arrays.toString(split) + " format err !"); // depends on co...
public class class_name { @Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler) { checkPreconditions(context, tag, structureHandler); final WebEngineContext webEngineContext = (WebEngineContext) context; final...
public class class_name { @Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler) { checkPreconditions(context, tag, structureHandler); final WebEngineContext webEngineContext = (WebEngineContext) context; final...
public class class_name { public static boolean validateOrInitialize(Connection rawConnection, String sqlQuery, ViburConfig config) { if (sqlQuery == null) { return true; } try { if (sqlQuery.equals(IS_VALID_QUERY)) { return rawConnection.isValid(config....
public class class_name { public static boolean validateOrInitialize(Connection rawConnection, String sqlQuery, ViburConfig config) { if (sqlQuery == null) { return true; // depends on control dependency: [if], data = [none] } try { if (sqlQuery.equals(IS_VALID_QUERY)) ...
public class class_name { public static List<MediaType> parseMediaTypes(String mediaTypes) { if (!StringUtils.hasLength(mediaTypes)) { return Collections.emptyList(); } String[] tokens = mediaTypes.split(",\\s*"); List<MediaType> result = new ArrayList<MediaType>(tokens.length); for (String token : tokens...
public class class_name { public static List<MediaType> parseMediaTypes(String mediaTypes) { if (!StringUtils.hasLength(mediaTypes)) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } String[] tokens = mediaTypes.split(",\\s*"); List<MediaType> result = new ArrayList<M...
public class class_name { @Override public ImmutableList<Require> getRequires() { if (hasFullParseDependencyInfo) { return ImmutableList.copyOf(orderedRequires); } return getDependencyInfo().getRequires(); } }
public class class_name { @Override public ImmutableList<Require> getRequires() { if (hasFullParseDependencyInfo) { return ImmutableList.copyOf(orderedRequires); // depends on control dependency: [if], data = [none] } return getDependencyInfo().getRequires(); } }
public class class_name { public BatchGetQueryExecutionResult withQueryExecutions(QueryExecution... queryExecutions) { if (this.queryExecutions == null) { setQueryExecutions(new java.util.ArrayList<QueryExecution>(queryExecutions.length)); } for (QueryExecution ele : queryExecutions...
public class class_name { public BatchGetQueryExecutionResult withQueryExecutions(QueryExecution... queryExecutions) { if (this.queryExecutions == null) { setQueryExecutions(new java.util.ArrayList<QueryExecution>(queryExecutions.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { private Object getJavaObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception { // Return null if we don't find a binding so that the caller can // use JNDI if enabled. ...
public class class_name { private Object getJavaObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception { // Return null if we don't find a binding so that the caller can // use JNDI if enabled. ...
public class class_name { public void addDispatcher(String dispatcherId, int threadsCount) { synchronized (dispatchers) { if (dispatchers.containsKey(dispatcherId)) { return; } ActorDispatcher dispatcher = new ActorDispatcher(dispatcherId, ThreadPriority.LOW...
public class class_name { public void addDispatcher(String dispatcherId, int threadsCount) { synchronized (dispatchers) { if (dispatchers.containsKey(dispatcherId)) { return; // depends on control dependency: [if], data = [none] } ActorDispatcher dispatcher ...
public class class_name { public void close() { try { state = "CLOSING"; if( connection != null ) { logger.warn("Connection not committed, rolling back."); rollback(); } if( !events.empty() ) { state = "CLOSING EVEN...
public class class_name { public void close() { try { state = "CLOSING"; // depends on control dependency: [try], data = [none] if( connection != null ) { logger.warn("Connection not committed, rolling back."); // depends on control dependency: [if], data = [none] ...
public class class_name { protected void recoverSubscriptions(MultiMEProxyHandler proxyHandler) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "recoverSubscriptions", proxyHandler); iProxyHandler = proxyHandler; ...
public class class_name { protected void recoverSubscriptions(MultiMEProxyHandler proxyHandler) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "recoverSubscriptions", proxyHandler); iProxyHandler = proxyHandler; ...
public class class_name { private static <T> T filterBySupportedProperties( Class<T> factoryClass, Map<String, String> properties, List<TableFactory> foundFactories, List<TableFactory> classFactories) { final List<String> plainGivenKeys = new LinkedList<>(); properties.keySet().forEach(k -> { // replac...
public class class_name { private static <T> T filterBySupportedProperties( Class<T> factoryClass, Map<String, String> properties, List<TableFactory> foundFactories, List<TableFactory> classFactories) { final List<String> plainGivenKeys = new LinkedList<>(); properties.keySet().forEach(k -> { // replac...
public class class_name { private static Pair<Cluster, Cluster> getTwoLastClusters(@NotNull VirtualFileSystem vfs, @NotNull final Transaction txn, @NotNull final File file) { // todo: seek ...
public class class_name { private static Pair<Cluster, Cluster> getTwoLastClusters(@NotNull VirtualFileSystem vfs, @NotNull final Transaction txn, @NotNull final File file) { // todo: seek ...
public class class_name { public void disconnect() { if (connection != null && connection.isOpen()) { connection.close(); transaction = null; setTransaction(null); } } }
public class class_name { public void disconnect() { if (connection != null && connection.isOpen()) { connection.close(); // depends on control dependency: [if], data = [none] transaction = null; // depends on control dependency: [if], data = [none] setTransaction(null); // ...
public class class_name { public void addExcludeResource(String resource) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_MOD_EXCLUDERESOURCE_1, resource)); } m_excluderesources.add(resource); } }
public class class_name { public void addExcludeResource(String resource) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_MOD_EXCLUDERESOURCE_1, resource)); // depends on control dependency: [if], data = [none] } m_excluderesources.add(resour...
public class class_name { private String getCertCN(X509Certificate x509) throws CertificateParsingException { X500Principal principal = x509.getSubjectX500Principal(); String subjectName = principal.getName(); String[] fields = subjectName.split(","); for (String field : field...
public class class_name { private String getCertCN(X509Certificate x509) throws CertificateParsingException { X500Principal principal = x509.getSubjectX500Principal(); String subjectName = principal.getName(); String[] fields = subjectName.split(","); for (String field : field...
public class class_name { public String renderShortName(String shortName) { Assert.notNull(shortName, "No short name specified"); StringBuffer sb = new StringBuffer(shortName.length() + 5); char[] chars = shortName.toCharArray(); sb.append(Character.toUpperCase(chars[0])); for (int i = 1; i < chars.length; i...
public class class_name { public String renderShortName(String shortName) { Assert.notNull(shortName, "No short name specified"); StringBuffer sb = new StringBuffer(shortName.length() + 5); char[] chars = shortName.toCharArray(); sb.append(Character.toUpperCase(chars[0])); for (int i = 1; i < chars.length; i...
public class class_name { protected void agentCreationFailed (ClientObject client, int agentId) { FoundAgent found = resolve(client, agentId, "agentCreationFailed"); if (found == null) { return; } log.info("Agent creation failed", "agent", found.agent.which()); ...
public class class_name { protected void agentCreationFailed (ClientObject client, int agentId) { FoundAgent found = resolve(client, agentId, "agentCreationFailed"); if (found == null) { return; // depends on control dependency: [if], data = [none] } log.info("Agent cre...
public class class_name { public boolean addChild(BaseVertex vertex) { if ( vertex != null && vertices.add( vertex ) ) { firePropertyChange( PROP_CHILD_ADDED, null, vertex ); return true; } return false; ...
public class class_name { public boolean addChild(BaseVertex vertex) { if ( vertex != null && vertices.add( vertex ) ) { firePropertyChange( PROP_CHILD_ADDED, null, vertex ); // depends on control dependency: [if], data = [none] ...
public class class_name { public void maybeAppendColumn(Cell cell, DeletionInfo.InOrderTester tester, int gcBefore) { if (cell.getLocalDeletionTime() >= gcBefore && !tester.isDeleted(cell)) { internalAdd(cell); sortedSize++; } } }
public class class_name { public void maybeAppendColumn(Cell cell, DeletionInfo.InOrderTester tester, int gcBefore) { if (cell.getLocalDeletionTime() >= gcBefore && !tester.isDeleted(cell)) { internalAdd(cell); // depends on control dependency: [if], data = [none] sortedSize...
public class class_name { protected void evaluateProxiedServiceIfNeeded(final Service service, final TicketGrantingTicket ticketGrantingTicket, final RegisteredService registeredService) { val proxiedBy = ticketGrantingTicket.getProxiedBy(); if (proxiedBy != null) { LOGGER.debug("Ticket-gra...
public class class_name { protected void evaluateProxiedServiceIfNeeded(final Service service, final TicketGrantingTicket ticketGrantingTicket, final RegisteredService registeredService) { val proxiedBy = ticketGrantingTicket.getProxiedBy(); if (proxiedBy != null) { LOGGER.debug("Ticket-gra...
public class class_name { private Expr parseNewExpression(EnclosingScope scope, boolean terminated) { int start = index; // try to match a lifetime Identifier lifetime = parseOptionalLifetimeIdentifier(scope, terminated); if (lifetime != null) { scope.mustBeLifetime(lifetime); match(Colon); } else { ...
public class class_name { private Expr parseNewExpression(EnclosingScope scope, boolean terminated) { int start = index; // try to match a lifetime Identifier lifetime = parseOptionalLifetimeIdentifier(scope, terminated); if (lifetime != null) { scope.mustBeLifetime(lifetime); // depends on control dependen...
public class class_name { @Override public void close() { long timeout = 10000; long expires = System.currentTimeMillis() + timeout; if (_logQueue.size() > 0 && System.currentTimeMillis() < expires) { _logQueue.wake(); //try { Thread.sleep(1); } catch (Exception e) {} } } ...
public class class_name { @Override public void close() { long timeout = 10000; long expires = System.currentTimeMillis() + timeout; if (_logQueue.size() > 0 && System.currentTimeMillis() < expires) { _logQueue.wake(); // depends on control dependency: [if], data = [none] //try ...
public class class_name { @Override public void writeMetadata(final byte[] bytes, final IHLLMetadata metadata) { final HLLType type = metadata.HLLType(); final int typeOrdinal = getOrdinal(type); final int explicitCutoffValue; if(metadata.explicitOff()) { explicitCutoff...
public class class_name { @Override public void writeMetadata(final byte[] bytes, final IHLLMetadata metadata) { final HLLType type = metadata.HLLType(); final int typeOrdinal = getOrdinal(type); final int explicitCutoffValue; if(metadata.explicitOff()) { explicitCutoff...
public class class_name { private void readHeader(final PushbackInputStream stream) throws IOException { UnbufferedASCIIReader hdrReader = new UnbufferedASCIIReader(stream); String magic = hdrReader.readLine(); if (!"ply".equals(magic)) { throw new IOException("Invalid P...
public class class_name { private void readHeader(final PushbackInputStream stream) throws IOException { UnbufferedASCIIReader hdrReader = new UnbufferedASCIIReader(stream); String magic = hdrReader.readLine(); if (!"ply".equals(magic)) { throw new IOException("Invalid P...
public class class_name { private static Iterator<MarkerRange.Builder> addProjected( Predicate projected, String name, Iterator<MarkerRange.Builder> inner) { if (projected instanceof In) { return new SetIterator((In) projected, name, inner); } else if (projected instanceof Range) { retu...
public class class_name { private static Iterator<MarkerRange.Builder> addProjected( Predicate projected, String name, Iterator<MarkerRange.Builder> inner) { if (projected instanceof In) { return new SetIterator((In) projected, name, inner); // depends on control dependency: [if], data = [none] ...
public class class_name { public DescribeAccountLimitsResult withAccountLimits(AccountLimit... accountLimits) { if (this.accountLimits == null) { setAccountLimits(new com.amazonaws.internal.SdkInternalList<AccountLimit>(accountLimits.length)); } for (AccountLimit ele : accountLimits...
public class class_name { public DescribeAccountLimitsResult withAccountLimits(AccountLimit... accountLimits) { if (this.accountLimits == null) { setAccountLimits(new com.amazonaws.internal.SdkInternalList<AccountLimit>(accountLimits.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public void requestPermissions(int requestCode) { String[] request = mPermissionsToRequest.toArray(new String[mPermissionsToRequest.size()]); StringBuilder log = new StringBuilder(); log.append("Requesting permissions:\n"); for (String permission : request) {...
public class class_name { public void requestPermissions(int requestCode) { String[] request = mPermissionsToRequest.toArray(new String[mPermissionsToRequest.size()]); StringBuilder log = new StringBuilder(); log.append("Requesting permissions:\n"); for (String permission : request) {...
public class class_name { public int getIndex(XExtension extension) { for (int i = 0; i < extensionList.size(); i++) { if (extensionList.get(i).equals(extension)) { return i; } } return -1; ...
public class class_name { public int getIndex(XExtension extension) { for (int i = 0; i < extensionList.size(); i++) { if (extensionList.get(i).equals(extension)) { return i; // depends on control dependency: [if], data = [none] ...
public class class_name { public Object getImageIcon(Object value) { int index = 0; if (value instanceof Integer) index = ((Integer)value).intValue(); else if (value != null) { try { index = Integer.parseInt(value.toString()); } ca...
public class class_name { public Object getImageIcon(Object value) { int index = 0; if (value instanceof Integer) index = ((Integer)value).intValue(); else if (value != null) { try { index = Integer.parseInt(value.toString()); // depends on co...
public class class_name { private void createMenuEntry( MenuItem parent, final CmsTreeNode<I_CmsContextMenuItem> node, CmsContextMenuTreeBuilder treeBuilder) { Command entryCommand = null; if (node.getChildren().size() == 0) { entryCommand = new Command() { ...
public class class_name { private void createMenuEntry( MenuItem parent, final CmsTreeNode<I_CmsContextMenuItem> node, CmsContextMenuTreeBuilder treeBuilder) { Command entryCommand = null; if (node.getChildren().size() == 0) { entryCommand = new Command() { ...
public class class_name { @Override public void setLimitOfTokenSize(int size) { if (0 >= size) { throw new IllegalArgumentException("Invalid limit on token size: " + size); } this.limitTokenSize = size; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
public class class_name { @Override public void setLimitOfTokenSize(int size) { if (0 >= size) { throw new IllegalArgumentException("Invalid limit on token size: " + size); } this.limitTokenSize = size; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
public class class_name { @Override public Enumeration<String> getEntryPaths(String path, boolean recurse) { path = preSlashify(path); Iterator<Entry> entries; if (path.equals("/")) { // asking for entries of the root container entries = container.iterator(); ...
public class class_name { @Override public Enumeration<String> getEntryPaths(String path, boolean recurse) { path = preSlashify(path); Iterator<Entry> entries; if (path.equals("/")) { // asking for entries of the root container entries = container.iterator(); // depe...
public class class_name { public void setResourceAwsEc2InstanceLaunchedAt(java.util.Collection<DateFilter> resourceAwsEc2InstanceLaunchedAt) { if (resourceAwsEc2InstanceLaunchedAt == null) { this.resourceAwsEc2InstanceLaunchedAt = null; return; } this.resourceAwsEc2Inst...
public class class_name { public void setResourceAwsEc2InstanceLaunchedAt(java.util.Collection<DateFilter> resourceAwsEc2InstanceLaunchedAt) { if (resourceAwsEc2InstanceLaunchedAt == null) { this.resourceAwsEc2InstanceLaunchedAt = null; // depends on control dependency: [if], data = [none] ...
public class class_name { public EClass getIfcCompositeCurveSegment() { if (ifcCompositeCurveSegmentEClass == null) { ifcCompositeCurveSegmentEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(93); } return ifcCompositeCurveSegmentEClass; } }
public class class_name { public EClass getIfcCompositeCurveSegment() { if (ifcCompositeCurveSegmentEClass == null) { ifcCompositeCurveSegmentEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(93); // depends on control dependency: [if], data = [none...
public class class_name { public void marshall(BrokerSummary brokerSummary, ProtocolMarshaller protocolMarshaller) { if (brokerSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(brokerSummary...
public class class_name { public void marshall(BrokerSummary brokerSummary, ProtocolMarshaller protocolMarshaller) { if (brokerSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(brokerSummary...
public class class_name { private PreparedStatement createPreparedStatement(String query, int fetchSize, Object... params) throws SQLException { PreparedStatement stat = connection.prepareStatement(query); stat.setFetchSize(fetchSize); for (int i = 0; i < params.length; i++) { stat....
public class class_name { private PreparedStatement createPreparedStatement(String query, int fetchSize, Object... params) throws SQLException { PreparedStatement stat = connection.prepareStatement(query); stat.setFetchSize(fetchSize); for (int i = 0; i < params.length; i++) { stat....
public class class_name { public static <T> T[] ensureCapacity(final T[] oldElements, final int requiredLength) { T[] result = oldElements; if (oldElements.length < requiredLength) { result = Arrays.copyOf(oldElements, requiredLength); } return result; } }
public class class_name { public static <T> T[] ensureCapacity(final T[] oldElements, final int requiredLength) { T[] result = oldElements; if (oldElements.length < requiredLength) { result = Arrays.copyOf(oldElements, requiredLength); // depends on control dependency: [if], da...
public class class_name { public static void addActionOutput( String name, Object value, ServletRequest request ) { Map map = InternalUtils.getActionOutputMap( request, true ); if ( map.containsKey( name ) ) { if ( _log.isWarnEnabled() ) { _l...
public class class_name { public static void addActionOutput( String name, Object value, ServletRequest request ) { Map map = InternalUtils.getActionOutputMap( request, true ); if ( map.containsKey( name ) ) { if ( _log.isWarnEnabled() ) { _l...
public class class_name { @Override public Promise<T> take() { assert take == null; if (exception == null) { if (put != null && willBeExhausted()) { assert !isEmpty(); T item = doPoll(); SettablePromise<Void> put = this.put; this.put = null; put.set(null); return Promise.of(item); } ...
public class class_name { @Override public Promise<T> take() { assert take == null; if (exception == null) { if (put != null && willBeExhausted()) { assert !isEmpty(); // depends on control dependency: [if], data = [none] T item = doPoll(); SettablePromise<Void> put = this.put; this.put = null;...
public class class_name { private void refresh() { try { Canvas canvas = mSurface.lockCanvas(null); mWebView.draw(canvas); mSurface.unlockCanvasAndPost(canvas); } catch (Surface.OutOfResourcesException t) { Log.e("GVRWebBoardObject", "lockCanvas failed");...
public class class_name { private void refresh() { try { Canvas canvas = mSurface.lockCanvas(null); mWebView.draw(canvas); // depends on control dependency: [try], data = [none] mSurface.unlockCanvasAndPost(canvas); // depends on control dependency: [try], data = [none] ...
public class class_name { protected void registerForMBeanNotifications() { Set<MBeanServerConnection> servers = getMBeanServers(); Exception lastExp = null; StringBuilder errors = new StringBuilder(); for (MBeanServerConnection server : servers) { try { JmxUt...
public class class_name { protected void registerForMBeanNotifications() { Set<MBeanServerConnection> servers = getMBeanServers(); Exception lastExp = null; StringBuilder errors = new StringBuilder(); for (MBeanServerConnection server : servers) { try { JmxUt...
public class class_name { public void goBackTo(final Screen screen, NavigationType navigationType) { navigate(new HistoryRewriter() { @Override public void rewriteHistory(Deque<Screen> history) { checkArgument(history.contains(screen), "Can't go back to a screen that isn't in history."); ...
public class class_name { public void goBackTo(final Screen screen, NavigationType navigationType) { navigate(new HistoryRewriter() { @Override public void rewriteHistory(Deque<Screen> history) { checkArgument(history.contains(screen), "Can't go back to a screen that isn't in history."); ...
public class class_name { public Iterator<MobicentsSipSession> getDerivedSipSessions() { if(derivedSipSessions != null) { return derivedSipSessions.values().iterator(); } return new HashMap<String, MobicentsSipSession>().values().iterator(); } }
public class class_name { public Iterator<MobicentsSipSession> getDerivedSipSessions() { if(derivedSipSessions != null) { return derivedSipSessions.values().iterator(); // depends on control dependency: [if], data = [none] } return new HashMap<String, MobicentsSipSession>().values().iterator(); } }
public class class_name { private void appendList(Output out, Collection collection, String separator, boolean areColumns) { Iterator it = collection.iterator(); boolean hasNext = it.hasNext(); //boolean areColumns = (columns == collection); while (hasNext) { Outputable sql...
public class class_name { private void appendList(Output out, Collection collection, String separator, boolean areColumns) { Iterator it = collection.iterator(); boolean hasNext = it.hasNext(); //boolean areColumns = (columns == collection); while (hasNext) { Outputable sql...
public class class_name { @Override protected void paintComponent(Graphics g) { final Graphics2D G2 = (Graphics2D) g.create(); G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); G2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_REN...
public class class_name { @Override protected void paintComponent(Graphics g) { final Graphics2D G2 = (Graphics2D) g.create(); G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); G2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_REN...
public class class_name { public int[] predict(int[] o) { // The porbability of the most probable path. double[][] trellis = new double[o.length][numStates]; // Backtrace. int[][] psy = new int[o.length][numStates]; // The most likely state sequence. int[] s = new int[o....
public class class_name { public int[] predict(int[] o) { // The porbability of the most probable path. double[][] trellis = new double[o.length][numStates]; // Backtrace. int[][] psy = new int[o.length][numStates]; // The most likely state sequence. int[] s = new int[o....
public class class_name { @Override public <ATTRIBUTE> OptionalThing<ATTRIBUTE> getAttribute(String key, Class<ATTRIBUTE> attributeType) { assertArgumentNotNull("key", key); final OptionalThing<ATTRIBUTE> foundShared = findAttributeInShareStorage(key, attributeType); if (foundShared.isPrese...
public class class_name { @Override public <ATTRIBUTE> OptionalThing<ATTRIBUTE> getAttribute(String key, Class<ATTRIBUTE> attributeType) { assertArgumentNotNull("key", key); final OptionalThing<ATTRIBUTE> foundShared = findAttributeInShareStorage(key, attributeType); if (foundShared.isPrese...
public class class_name { public static void initCipher(Cipher cipher, int mode, SecretKey secretKey, AlgorithmParameterSpec parameterSpec) { try { if (parameterSpec != null) { cipher.init(mode, secretKey, parameterSpec); } else { cipher.init(mode, secretKey); } } catch (InvalidKeyExceptio...
public class class_name { public static void initCipher(Cipher cipher, int mode, SecretKey secretKey, AlgorithmParameterSpec parameterSpec) { try { if (parameterSpec != null) { cipher.init(mode, secretKey, parameterSpec); // depends on control dependency: [if], data = [none] } else { cipher.init(...
public class class_name { private void initSupportedExtensions(SMTPClientSession session, SMTPResponse response) { Iterator<String> lines = response.getLines().iterator(); while(lines.hasNext()) { String line = lines.next(); if (line.equalsIgnoreCase(PIPELINING_EXTENSION)) {...
public class class_name { private void initSupportedExtensions(SMTPClientSession session, SMTPResponse response) { Iterator<String> lines = response.getLines().iterator(); while(lines.hasNext()) { String line = lines.next(); if (line.equalsIgnoreCase(PIPELINING_EXTENSION)) {...
public class class_name { public java.util.List<Interconnect> getInterconnects() { if (interconnects == null) { interconnects = new com.amazonaws.internal.SdkInternalList<Interconnect>(); } return interconnects; } }
public class class_name { public java.util.List<Interconnect> getInterconnects() { if (interconnects == null) { interconnects = new com.amazonaws.internal.SdkInternalList<Interconnect>(); // depends on control dependency: [if], data = [none] } return interconnects; } }
public class class_name { public void marshall(GetByteMatchSetRequest getByteMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (getByteMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(GetByteMatchSetRequest getByteMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (getByteMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public static boolean isCase(Pattern caseValue, Object switchValue) { if (switchValue == null) { return caseValue == null; } final Matcher matcher = caseValue.matcher(switchValue.toString()); if (matcher.matches()) { RegexSupport.setLast...
public class class_name { public static boolean isCase(Pattern caseValue, Object switchValue) { if (switchValue == null) { return caseValue == null; // depends on control dependency: [if], data = [none] } final Matcher matcher = caseValue.matcher(switchValue.toString()); if ...
public class class_name { public void warn( String format, Object[] argArray ) { if( m_delegate.isWarnEnabled() ) { FormattingTuple tuple = MessageFormatter.arrayFormat( format, argArray ); m_delegate.warn( tuple.getMessage(), tuple.getThrowable() ); } } }
public class class_name { public void warn( String format, Object[] argArray ) { if( m_delegate.isWarnEnabled() ) { FormattingTuple tuple = MessageFormatter.arrayFormat( format, argArray ); m_delegate.warn( tuple.getMessage(), tuple.getThrowable() ); // depends on control de...