code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private static InetAddress getInetAddress(String ip) { if (ip == null) return null; InetAddress addr = null; try { addr = InetAddress.getByName(ip); } catch (UnknownHostException e) { Log.err(e); H2O.exit(-1); } return addr; } }
public class class_name { private static InetAddress getInetAddress(String ip) { if (ip == null) return null; InetAddress addr = null; try { addr = InetAddress.getByName(ip); // depends on control dependency: [try], data = [none] } catch (UnknownHostException e) { Log.err(e); H...
public class class_name { private JPanel getPanelHeadline() { if (panelHeadline == null) { panelHeadline = new JPanel(); panelHeadline.setLayout(new BorderLayout(0, 0)); txtHeadline = getTxtHeadline(); panelHeadline.add(txtHeadline, BorderLayout.CENTER); ...
public class class_name { private JPanel getPanelHeadline() { if (panelHeadline == null) { panelHeadline = new JPanel(); // depends on control dependency: [if], data = [none] panelHeadline.setLayout(new BorderLayout(0, 0)); // depends on control dependency: [if], data = [none] ...
public class class_name { public AutoScalingGroup withEnabledMetrics(EnabledMetric... enabledMetrics) { if (this.enabledMetrics == null) { setEnabledMetrics(new com.amazonaws.internal.SdkInternalList<EnabledMetric>(enabledMetrics.length)); } for (EnabledMetric ele : enabledMetrics) ...
public class class_name { public AutoScalingGroup withEnabledMetrics(EnabledMetric... enabledMetrics) { if (this.enabledMetrics == null) { setEnabledMetrics(new com.amazonaws.internal.SdkInternalList<EnabledMetric>(enabledMetrics.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public String getCategoriesAsString() { List<String> categories = getCategories(); String categoriesStr = ""; if (categories != null && !categories.isEmpty()) { categoriesStr = StringUtils.join(categories.toArray(), CATEGORY_SEPARATOR); } return categoriesStr; } }
public class class_name { public String getCategoriesAsString() { List<String> categories = getCategories(); String categoriesStr = ""; if (categories != null && !categories.isEmpty()) { categoriesStr = StringUtils.join(categories.toArray(), CATEGORY_SEPARATOR); // depends on control dependency: [if], data = ...
public class class_name { protected void extendRealmClasspath() throws MojoExecutionException { List<URL> urls = new ArrayList<>(); for (String fileName : compileClasspathElements) { File pathElem = new File(fileName); try { URL url = pathElem.toURI(...
public class class_name { protected void extendRealmClasspath() throws MojoExecutionException { List<URL> urls = new ArrayList<>(); for (String fileName : compileClasspathElements) { File pathElem = new File(fileName); try { URL url = pathElem.toURI(...
public class class_name { @Override public Set<Entry<K, Collection<V>>> entrySet() { return new AbstractSet<Entry<K, Collection<V>>>() { @Override public Iterator<Map.Entry<K, Collection<V>>> iterator() { Filter<Map.Entry<K, Collection<V>>> filter1 = new Filter<Map.Entry<K, Collection<V>...
public class class_name { @Override public Set<Entry<K, Collection<V>>> entrySet() { return new AbstractSet<Entry<K, Collection<V>>>() { @Override public Iterator<Map.Entry<K, Collection<V>>> iterator() { Filter<Map.Entry<K, Collection<V>>> filter1 = new Filter<Map.Entry<K, Collection<V>...
public class class_name { private int skipWhitespace() throws IOException { int c = 0; do { c = r.read(); if (c < 0) { return -1; } } while (Character.isWhitespace(c)); return c; } }
public class class_name { private int skipWhitespace() throws IOException { int c = 0; do { c = r.read(); if (c < 0) { return -1; // depends on control dependency: [if], data = [none] } } while (Character.isWhitespace(c)); return c; } }
public class class_name { @Override public Account getAccountByName(String name) { for (Account account : accountMap.values()) { if (name.equals(account.getRemarkName())) { return account; } if (name.equals(account.getNickName())) { return...
public class class_name { @Override public Account getAccountByName(String name) { for (Account account : accountMap.values()) { if (name.equals(account.getRemarkName())) { return account; // depends on control dependency: [if], data = [none] } if (name.e...
public class class_name { @SuppressWarnings({"unchecked"}) Set<Class<? extends TrailExceptionHandler<?>>> findTrailExceptionHandlers() { Set<Class<? extends TrailExceptionHandler<?>>> trailExceptionHandlers = auditConfig.getExceptionHandlers(); if (trailExceptionHandlers.isEmpty()) { Co...
public class class_name { @SuppressWarnings({"unchecked"}) Set<Class<? extends TrailExceptionHandler<?>>> findTrailExceptionHandlers() { Set<Class<? extends TrailExceptionHandler<?>>> trailExceptionHandlers = auditConfig.getExceptionHandlers(); if (trailExceptionHandlers.isEmpty()) { Co...
public class class_name { public static List<KeyGroupRange> createKeyGroupPartitions(int numberKeyGroups, int parallelism) { Preconditions.checkArgument(numberKeyGroups >= parallelism); List<KeyGroupRange> result = new ArrayList<>(parallelism); for (int i = 0; i < parallelism; ++i) { result.add(KeyGroupRange...
public class class_name { public static List<KeyGroupRange> createKeyGroupPartitions(int numberKeyGroups, int parallelism) { Preconditions.checkArgument(numberKeyGroups >= parallelism); List<KeyGroupRange> result = new ArrayList<>(parallelism); for (int i = 0; i < parallelism; ++i) { result.add(KeyGroupRange...
public class class_name { @SuppressWarnings({ "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity" }) protected XExpression _generate(XSwitchExpression switchStatement, IAppendable it, IExtraLanguageGeneratorContext context) { final String varName; if (switchStatement.getDeclaredParam() != null) { v...
public class class_name { @SuppressWarnings({ "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity" }) protected XExpression _generate(XSwitchExpression switchStatement, IAppendable it, IExtraLanguageGeneratorContext context) { final String varName; if (switchStatement.getDeclaredParam() != null) { v...
public class class_name { public static Typeface getFont(Context context, String fontName) { synchronized (cache) { if (!cache.containsKey(fontName)) { try { Typeface t = Typeface.createFromAsset(context.getAssets(), fontName); cache.put(fontN...
public class class_name { public static Typeface getFont(Context context, String fontName) { synchronized (cache) { if (!cache.containsKey(fontName)) { try { Typeface t = Typeface.createFromAsset(context.getAssets(), fontName); cache.put(fontN...
public class class_name { @Override public EClass getIfcCompressorType() { if (ifcCompressorTypeEClass == null) { ifcCompressorTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(116); } return ifcCompressorTypeEClass; } }
public class class_name { @Override public EClass getIfcCompressorType() { if (ifcCompressorTypeEClass == null) { ifcCompressorTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(116); // depends on control dependency: [if], data = [none] } retu...
public class class_name { public void setListObject(Class<?> listDialog, CmsHtmlList listObject) { if (listObject == null) { // null object: remove the entry from the map getListObjectMap(getSettings()).remove(listDialog.getName()); } else { if ((listObject.getMetad...
public class class_name { public void setListObject(Class<?> listDialog, CmsHtmlList listObject) { if (listObject == null) { // null object: remove the entry from the map getListObjectMap(getSettings()).remove(listDialog.getName()); // depends on control dependency: [if], data = [none]...
public class class_name { public static boolean hasAttribute(String key) { if(localAttributeHolder.get().containsKey(key)) { return true; } return inheritableAttributeHolder.get().containsKey(key); } }
public class class_name { public static boolean hasAttribute(String key) { if(localAttributeHolder.get().containsKey(key)) { return true; // depends on control dependency: [if], data = [none] } return inheritableAttributeHolder.get().containsKey(key); } }
public class class_name { public BigInteger unpackBigInteger() throws IOException { byte b = readByte(); if (Code.isFixInt(b)) { return BigInteger.valueOf((long) b); } switch (b) { case Code.UINT8: // unsigned int 8 byte u8 = readB...
public class class_name { public BigInteger unpackBigInteger() throws IOException { byte b = readByte(); if (Code.isFixInt(b)) { return BigInteger.valueOf((long) b); } switch (b) { case Code.UINT8: // unsigned int 8 byte u8 = readB...
public class class_name { public List<Double> getDoubles(String name, String delimiter) { List<String> strings = getStrings(name, delimiter); List<Double> doubles = new ArrayList<>(strings.size()); for (String value : strings) { try { double i = Double.parseDouble(v...
public class class_name { public List<Double> getDoubles(String name, String delimiter) { List<String> strings = getStrings(name, delimiter); List<Double> doubles = new ArrayList<>(strings.size()); for (String value : strings) { try { double i = Double.parseDouble(v...
public class class_name { public MethodHandle getStaticQuiet(MethodHandles.Lookup lookup, Class<?> target, String name) { try { return getStatic(lookup, target, name); } catch (IllegalAccessException | NoSuchFieldException e) { throw new InvalidTransformException(e); } ...
public class class_name { public MethodHandle getStaticQuiet(MethodHandles.Lookup lookup, Class<?> target, String name) { try { return getStatic(lookup, target, name); // depends on control dependency: [try], data = [none] } catch (IllegalAccessException | NoSuchFieldException e) { ...
public class class_name { public int getEnd(int index) { // Test if the last beginning is the new end if(index == (pastIndex - 1)) { return previousBegin - 1; } // Otherwise find it! int new_end = 0; for(int i = 0; i < index + 1; i++) { new_end += getNodeCount(i); } pastInd...
public class class_name { public int getEnd(int index) { // Test if the last beginning is the new end if(index == (pastIndex - 1)) { return previousBegin - 1; // depends on control dependency: [if], data = [none] } // Otherwise find it! int new_end = 0; for(int i = 0; i < index + 1; i++)...
public class class_name { private void verifyChunks( byte[] dataBuf, int dataOff, int len, byte[] checksumBuf, int checksumOff, int firstChunkOffset, int packetVersion) throws IOException { int chunkOffset = firstChunkOffset; ...
public class class_name { private void verifyChunks( byte[] dataBuf, int dataOff, int len, byte[] checksumBuf, int checksumOff, int firstChunkOffset, int packetVersion) throws IOException { int chunkOffset = firstChunkOffset; ...
public class class_name { public void write(int c) { try { synchronized (lock) { ensureOpen(); out.write(c); } } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { ...
public class class_name { public void write(int c) { try { synchronized (lock) { // depends on control dependency: [try], data = [none] ensureOpen(); out.write(c); } } catch (InterruptedIOException x) { Thread.currentThread().i...
public class class_name { private Status runQuery(QueryOptions options, QueryRowBlock block) { if (options == null) options = new QueryOptions(); // OPT: It would be faster to use separate tables for raw-or ascii-collated views so that // they could be indexed with the right collat...
public class class_name { private Status runQuery(QueryOptions options, QueryRowBlock block) { if (options == null) options = new QueryOptions(); // OPT: It would be faster to use separate tables for raw-or ascii-collated views so that // they could be indexed with the right collat...
public class class_name { public java.util.List<String> getAccess() { if (access == null) { access = new com.amazonaws.internal.SdkInternalList<String>(); } return access; } }
public class class_name { public java.util.List<String> getAccess() { if (access == null) { access = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return access; } }
public class class_name { @Override public void removeByCommerceShippingFixedOptionId( long commerceShippingFixedOptionId) { for (CommerceShippingFixedOptionRel commerceShippingFixedOptionRel : findByCommerceShippingFixedOptionId( commerceShippingFixedOptionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null))...
public class class_name { @Override public void removeByCommerceShippingFixedOptionId( long commerceShippingFixedOptionId) { for (CommerceShippingFixedOptionRel commerceShippingFixedOptionRel : findByCommerceShippingFixedOptionId( commerceShippingFixedOptionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null))...
public class class_name { public Number deserializeNumber(String s) { if(s.indexOf('.') >= 0 || s.indexOf('e') >= 0 || s.indexOf('E') >= 0) { return Double.valueOf(s); } else { Long l = Long.valueOf(s); if(l > Integer.MAX_VALUE || l <Integer.MIN_VALUE) { return l; } else { return new Integer(l....
public class class_name { public Number deserializeNumber(String s) { if(s.indexOf('.') >= 0 || s.indexOf('e') >= 0 || s.indexOf('E') >= 0) { return Double.valueOf(s); // depends on control dependency: [if], data = [none] } else { Long l = Long.valueOf(s); if(l > Integer.MAX_VALUE || l <Integer.MIN_VALUE)...
public class class_name { @Override public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, long delay) { ScheduledExecutorService executor = getScheduledExecutor(); try { return executor.scheduleWithFixedDelay(errorHandlingTask(task, true), 0, delay, TimeUnit.MILLISECONDS); ...
public class class_name { @Override public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, long delay) { ScheduledExecutorService executor = getScheduledExecutor(); try { return executor.scheduleWithFixedDelay(errorHandlingTask(task, true), 0, delay, TimeUnit.MILLISECONDS); // ...
public class class_name { @Override final public void setDRSBootstrap(boolean drsBootstrap) { cache.getCacheConfig().setDrsBootstrapEnabled(drsBootstrap); if (tc.isDebugEnabled()) { Tr.debug(tc, "setDRSBootstrap() set DRSBootStrap to " + drsBootstrap + " for cacheName=" + cache.getCache...
public class class_name { @Override final public void setDRSBootstrap(boolean drsBootstrap) { cache.getCacheConfig().setDrsBootstrapEnabled(drsBootstrap); if (tc.isDebugEnabled()) { Tr.debug(tc, "setDRSBootstrap() set DRSBootStrap to " + drsBootstrap + " for cacheName=" + cache.getCache...
public class class_name { public byte[] convertToXmlByteArray(BucketLoggingConfiguration loggingConfiguration) { // Default log file prefix to the empty string if none is specified String logFilePrefix = loggingConfiguration.getLogFilePrefix(); if (logFilePrefix == null) logFilePref...
public class class_name { public byte[] convertToXmlByteArray(BucketLoggingConfiguration loggingConfiguration) { // Default log file prefix to the empty string if none is specified String logFilePrefix = loggingConfiguration.getLogFilePrefix(); if (logFilePrefix == null) logFilePref...
public class class_name { private Metric checkSlave(final ICommandLine cl, final Mysql mysql, final Connection conn) throws MetricGatheringException { Metric metric = null; try { Map<String, Integer> status = getSlaveStatus(conn); if (status.isEmpty()) { mysql.cl...
public class class_name { private Metric checkSlave(final ICommandLine cl, final Mysql mysql, final Connection conn) throws MetricGatheringException { Metric metric = null; try { Map<String, Integer> status = getSlaveStatus(conn); if (status.isEmpty()) { mysql.cl...
public class class_name { public void marshall(GetStaticIpsRequest getStaticIpsRequest, ProtocolMarshaller protocolMarshaller) { if (getStaticIpsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(GetStaticIpsRequest getStaticIpsRequest, ProtocolMarshaller protocolMarshaller) { if (getStaticIpsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public String putHeader(final String name, final String value) { if (headers == null) { headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); } return headers.put(name, value); } }
public class class_name { public String putHeader(final String name, final String value) { if (headers == null) { headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); // depends on control dependency: [if], data = [none] } return headers.put(name, value); } }
public class class_name { public String get(ConfigKey pKey) { String value = params.get(pKey); if (value != null) { return value; } else { return pKey.getDefaultValue(); } } }
public class class_name { public String get(ConfigKey pKey) { String value = params.get(pKey); if (value != null) { return value; // depends on control dependency: [if], data = [none] } else { return pKey.getDefaultValue(); // depends on control dependency: [if], data = ...
public class class_name { protected List<EndpointInfo> doGetUnboundEndpoints(String tenantId, List<Trace> fragments, boolean compress) { List<EndpointInfo> ret = new ArrayList<EndpointInfo>(); Map<String, EndpointInfo> map = new HashMap<String, EndpointInfo>(); // Process the fragm...
public class class_name { protected List<EndpointInfo> doGetUnboundEndpoints(String tenantId, List<Trace> fragments, boolean compress) { List<EndpointInfo> ret = new ArrayList<EndpointInfo>(); Map<String, EndpointInfo> map = new HashMap<String, EndpointInfo>(); // Process the fragm...
public class class_name { @Override public EClass getIfcElectricApplianceType() { if (ifcElectricApplianceTypeEClass == null) { ifcElectricApplianceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(210); } return ifcElectricApplianceTypeEClass...
public class class_name { @Override public EClass getIfcElectricApplianceType() { if (ifcElectricApplianceTypeEClass == null) { ifcElectricApplianceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(210); // depends on control dependency: [if], data...
public class class_name { public void broadcastEvent(final int code, final Bundle payload) { if (SPFConfig.DEBUG) { Log.d(TAG, "Broadcasting event " + code + " with payload " + payload); } for (final OnEventListener listener : mEventListeners) {//TODO is it thread safe? ...
public class class_name { public void broadcastEvent(final int code, final Bundle payload) { if (SPFConfig.DEBUG) { Log.d(TAG, "Broadcasting event " + code + " with payload " + payload); // depends on control dependency: [if], data = [none] } for (final OnEventListener listener : m...
public class class_name { protected static List<Field> getSerializeFields(Class targetClass) { List<Field> all = new ArrayList<Field>(); for (Class<?> c = targetClass; c != Object.class && c != null; c = c.getSuperclass()) { Field[] fields = c.getDeclaredFields(); for (Field f ...
public class class_name { protected static List<Field> getSerializeFields(Class targetClass) { List<Field> all = new ArrayList<Field>(); for (Class<?> c = targetClass; c != Object.class && c != null; c = c.getSuperclass()) { Field[] fields = c.getDeclaredFields(); for (Field f ...
public class class_name { private void serializeEntityDocument(EntityDocument entityDocument) { try { if (this.entityDocumentCount > 0) { this.outputStream.write(JSON_SEP); } mapper.writeValue(this.outputStream, entityDocument); } catch (IOException e) { reportException(e); } this.entityDocumen...
public class class_name { private void serializeEntityDocument(EntityDocument entityDocument) { try { if (this.entityDocumentCount > 0) { this.outputStream.write(JSON_SEP); // depends on control dependency: [if], data = [none] } mapper.writeValue(this.outputStream, entityDocument); // depends on control...
public class class_name { @Override public Set<ByteBuffer> toBytesSet(List<T> list) { Set<ByteBuffer> bytesList = new HashSet<ByteBuffer>( computeInitialHashSize(list.size())); for (T s : list) { bytesList.add(toByteBuffer(s)); } return bytesList; } }
public class class_name { @Override public Set<ByteBuffer> toBytesSet(List<T> list) { Set<ByteBuffer> bytesList = new HashSet<ByteBuffer>( computeInitialHashSize(list.size())); for (T s : list) { bytesList.add(toByteBuffer(s)); // depends on control dependency: [for], data = [s] } retur...
public class class_name { public SearchOptions setLimit(int limit) { if (limit <= 0) { this.limit = MAX_LIMIT; } else { this.limit = Math.min(limit, MAX_LIMIT); } return this; } }
public class class_name { public SearchOptions setLimit(int limit) { if (limit <= 0) { this.limit = MAX_LIMIT; // depends on control dependency: [if], data = [none] } else { this.limit = Math.min(limit, MAX_LIMIT); // depends on control dependency: [if], data = [(limit] } return this; } }
public class class_name { public static NumberMath getMath(Number left, Number right) { // FloatingPointMath wins according to promotion Matrix if (isFloatingPoint(left) || isFloatingPoint(right)) { return FloatingPointMath.INSTANCE; } NumberMath leftMath = getMath(left); ...
public class class_name { public static NumberMath getMath(Number left, Number right) { // FloatingPointMath wins according to promotion Matrix if (isFloatingPoint(left) || isFloatingPoint(right)) { return FloatingPointMath.INSTANCE; // depends on control dependency: [if], data = [none] ...
public class class_name { public synchronized Object remove(Object key) { int index = keys.indexOf(key); if (index != -1) { Object prev = elements.elementAt(index); keys.removeElementAt(index); elements.removeElementAt(index); return prev; ...
public class class_name { public synchronized Object remove(Object key) { int index = keys.indexOf(key); if (index != -1) { Object prev = elements.elementAt(index); keys.removeElementAt(index); // depends on control dependency: [if], data = [(index] elements.rem...
public class class_name { public void checkForUpdate( GosuPanel gosuPanel ) { try { Path userFile = getUserFile( gosuPanel ); if( !PathUtil.exists( userFile ) || getVersion( gosuPanel ) < 2 ) { PathUtil.delete( getUserGosuEditorDir(), true ); } } catch( Exception e ) ...
public class class_name { public void checkForUpdate( GosuPanel gosuPanel ) { try { Path userFile = getUserFile( gosuPanel ); if( !PathUtil.exists( userFile ) || getVersion( gosuPanel ) < 2 ) { PathUtil.delete( getUserGosuEditorDir(), true ); // depends on control dependency: [if], ...
public class class_name { private void doValidate() { List<String> errors = new ArrayList<>(); // Strip off user from repository name String image = user != null ? repository.substring(user.length() + 1) : repository; Object[] checks = new Object[] { "registry", DOMAIN_REGEX...
public class class_name { private void doValidate() { List<String> errors = new ArrayList<>(); // Strip off user from repository name String image = user != null ? repository.substring(user.length() + 1) : repository; Object[] checks = new Object[] { "registry", DOMAIN_REGEX...
public class class_name { private void resolveTimeFields() { // simplify fields if (fieldValues.containsKey(CLOCK_HOUR_OF_DAY)) { // lenient allows anything, smart allows 0-24, strict allows 1-24 long ch = fieldValues.remove(CLOCK_HOUR_OF_DAY); if (resolverStyle == R...
public class class_name { private void resolveTimeFields() { // simplify fields if (fieldValues.containsKey(CLOCK_HOUR_OF_DAY)) { // lenient allows anything, smart allows 0-24, strict allows 1-24 long ch = fieldValues.remove(CLOCK_HOUR_OF_DAY); if (resolverStyle == R...
public class class_name { public void queueObjects(List<T> objects) { if (objects == null || objects.size() == 0) return; boolean readyToProcess = false; synchronized (mutex) { Log.v(Log.TAG_BATCHER, "%s: queueObjects called with %d objects (current inbox size = %d)", ...
public class class_name { public void queueObjects(List<T> objects) { if (objects == null || objects.size() == 0) return; boolean readyToProcess = false; synchronized (mutex) { Log.v(Log.TAG_BATCHER, "%s: queueObjects called with %d objects (current inbox size = %d)", ...
public class class_name { private static Map<Class<?>, SerDeserializer> loadFromClasspath() { // log errors to System.err, as problems in static initializers can be troublesome to diagnose Map<Class<?>, SerDeserializer> result = new HashMap<>(); URL url = null; try { // this...
public class class_name { private static Map<Class<?>, SerDeserializer> loadFromClasspath() { // log errors to System.err, as problems in static initializers can be troublesome to diagnose Map<Class<?>, SerDeserializer> result = new HashMap<>(); URL url = null; try { // this...
public class class_name { public List<ActiveRule> getActiveRules(RulePriority severity) { List<ActiveRule> result = new ArrayList<>(); for (ActiveRule activeRule : activeRules) { if (activeRule.getSeverity().equals(severity) && activeRule.isEnabled()) { result.add(activeRule); } } r...
public class class_name { public List<ActiveRule> getActiveRules(RulePriority severity) { List<ActiveRule> result = new ArrayList<>(); for (ActiveRule activeRule : activeRules) { if (activeRule.getSeverity().equals(severity) && activeRule.isEnabled()) { result.add(activeRule); // depends on contr...
public class class_name { private static Set<String> getIncludedProjectIdentifiers(final Project project) { return getCachedReference(project, "thorntail_included_project_identifiers", () -> { Set<String> identifiers = new HashSet<>(); // Check for included builds as well. ...
public class class_name { private static Set<String> getIncludedProjectIdentifiers(final Project project) { return getCachedReference(project, "thorntail_included_project_identifiers", () -> { Set<String> identifiers = new HashSet<>(); // Check for included builds as well. ...
public class class_name { private void readColDefinitions() { // VALUE COLUMNS AND COLUMNS THAT ARE NOT PART OF THE PRIMARY KEY Statement query = QueryBuilder.select().from("system", "schema_columns") .where(eq("keyspace_name", keyspaceName)) .and(eq("columnfamily_name", cfName)); ResultSet rs = se...
public class class_name { private void readColDefinitions() { // VALUE COLUMNS AND COLUMNS THAT ARE NOT PART OF THE PRIMARY KEY Statement query = QueryBuilder.select().from("system", "schema_columns") .where(eq("keyspace_name", keyspaceName)) .and(eq("columnfamily_name", cfName)); ResultSet rs = se...
public class class_name { private boolean notOverriddenIn(Type site, Symbol sym) { if (sym.kind != MTH || sym.isConstructor() || sym.isStatic()) return true; else { Symbol s2 = ((MethodSymbol)sym).implementation(site.tsym, types, true); return (s2 == null || s2 == sy...
public class class_name { private boolean notOverriddenIn(Type site, Symbol sym) { if (sym.kind != MTH || sym.isConstructor() || sym.isStatic()) return true; else { Symbol s2 = ((MethodSymbol)sym).implementation(site.tsym, types, true); return (s2 == null || s2 == sy...
public class class_name { public static Map<String, MergedVertex> getMergedVertexes(Shape shape) { Map<String, MergedVertex> mergedVertexes = new HashMap<>(); for (Face f : shape.getFaces()) { for (Vertex v : f.getVertexes()) { MergedVertex mv = mergedVertexes.get(v.baseName()); if (mv == null) ...
public class class_name { public static Map<String, MergedVertex> getMergedVertexes(Shape shape) { Map<String, MergedVertex> mergedVertexes = new HashMap<>(); for (Face f : shape.getFaces()) { for (Vertex v : f.getVertexes()) { MergedVertex mv = mergedVertexes.get(v.baseName()); if (mv == null) ...
public class class_name { @Override public void writeObject(Map<Object, Object> map) { if (!checkWriteReference(map)) { storeReference(map); buf.put(AMF.TYPE_OBJECT); boolean isBeanMap = (map instanceof BeanMap); for (Map.Entry<Object, Object> entry : map.ent...
public class class_name { @Override public void writeObject(Map<Object, Object> map) { if (!checkWriteReference(map)) { storeReference(map); // depends on control dependency: [if], data = [none] buf.put(AMF.TYPE_OBJECT); // depends on control dependency: [if], data = [none] ...
public class class_name { public ResponseLaunchTemplateData withElasticInferenceAccelerators(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators) { if (this.elasticInferenceAccelerators == null) { setElasticInferenceAccelerators(new com.amazonaws.internal.SdkInternalLi...
public class class_name { public ResponseLaunchTemplateData withElasticInferenceAccelerators(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators) { if (this.elasticInferenceAccelerators == null) { setElasticInferenceAccelerators(new com.amazonaws.internal.SdkInternalLi...
public class class_name { public static String getTrimmedStackTrace(Throwable exception) { List<String> trimmedStackTraceLines = getTrimmedStackTraceLines(exception); if (trimmedStackTraceLines.isEmpty()) { return getFullStackTrace(exception); } StringBuilder result = new S...
public class class_name { public static String getTrimmedStackTrace(Throwable exception) { List<String> trimmedStackTraceLines = getTrimmedStackTraceLines(exception); if (trimmedStackTraceLines.isEmpty()) { return getFullStackTrace(exception); // depends on control dependency: [if], data = ...
public class class_name { @SuppressWarnings("PMD.NcssCount") static String escape(String str) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < str.length(); ++i) { char c = str.charAt(i); switch (c) { case '\t': builder.append("\\t"); break; case '\n': builder.ap...
public class class_name { @SuppressWarnings("PMD.NcssCount") static String escape(String str) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < str.length(); ++i) { char c = str.charAt(i); switch (c) { case '\t': builder.append("\\t"); break; case '\n': builder.ap...
public class class_name { public void addSwitchWithOptionalExtraPart(String option, String optionExtraPartSynopsis, String description) { optionList.add(option); optionExtraPartSynopsisMap.put(option, optionExtraPartSynopsis); optionDescriptionMap.put(option, description); // Option wi...
public class class_name { public void addSwitchWithOptionalExtraPart(String option, String optionExtraPartSynopsis, String description) { optionList.add(option); optionExtraPartSynopsisMap.put(option, optionExtraPartSynopsis); optionDescriptionMap.put(option, description); // Option wi...
public class class_name { @SuppressWarnings("unchecked") protected SimpleNumberFormatter<N> createSimpleFormatter(final FieldAccessor field, final Configuration config) { final Optional<CsvNumberFormat> formatAnno = field.getAnnotation(CsvNumberFormat.class); if(!formatAnno.isPresent()...
public class class_name { @SuppressWarnings("unchecked") protected SimpleNumberFormatter<N> createSimpleFormatter(final FieldAccessor field, final Configuration config) { final Optional<CsvNumberFormat> formatAnno = field.getAnnotation(CsvNumberFormat.class); if(!formatAnno.isPresent()...
public class class_name { public final EObject rulePredicated() throws RecognitionException { EObject current = null; Token this_OPEN_0=null; Token this_OPEN_1=null; Token otherlv_3=null; Token otherlv_4=null; Token otherlv_6=null; EObject lv_predicate_2_0 = nul...
public class class_name { public final EObject rulePredicated() throws RecognitionException { EObject current = null; Token this_OPEN_0=null; Token this_OPEN_1=null; Token otherlv_3=null; Token otherlv_4=null; Token otherlv_6=null; EObject lv_predicate_2_0 = nul...
public class class_name { JSMessageData getCopy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "getCopy"); JSMessageImpl copy; synchronized (getMessageLockArtefact()) { // Create a new instance of ourselves copy = new JSMessageImpl(this); // ...
public class class_name { JSMessageData getCopy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "getCopy"); JSMessageImpl copy; synchronized (getMessageLockArtefact()) { // Create a new instance of ourselves copy = new JSMessageImpl(this); // ...
public class class_name { private void readResources(Project project, HashMap<BigInteger, ProjectCalendar> calendarMap) { Project.Resources resources = project.getResources(); if (resources != null) { for (Project.Resources.Resource resource : resources.getResource()) { ...
public class class_name { private void readResources(Project project, HashMap<BigInteger, ProjectCalendar> calendarMap) { Project.Resources resources = project.getResources(); if (resources != null) { for (Project.Resources.Resource resource : resources.getResource()) { ...
public class class_name { public static void closeEL(Closeable c) { try { if (c != null) c.close(); } // catch (AlwaysThrow at) {throw at;} catch (Throwable e) { ExceptionUtil.rethrowIfNecessary(e); } } }
public class class_name { public static void closeEL(Closeable c) { try { if (c != null) c.close(); } // catch (AlwaysThrow at) {throw at;} catch (Throwable e) { ExceptionUtil.rethrowIfNecessary(e); } // depends on control dependency: [catch], data = [none] } }
public class class_name { @Override public SparseMatrix abmm(SparseMatrix B) { if (ncols != B.nrows) { throw new IllegalArgumentException(String.format("Matrix dimensions do not match for matrix multiplication: %d x %d vs %d x %d", nrows(), ncols(), B.nrows(), B.ncols())); } in...
public class class_name { @Override public SparseMatrix abmm(SparseMatrix B) { if (ncols != B.nrows) { throw new IllegalArgumentException(String.format("Matrix dimensions do not match for matrix multiplication: %d x %d vs %d x %d", nrows(), ncols(), B.nrows(), B.ncols())); } in...
public class class_name { public static double spearman(float[] x, float[] y) { if (x.length != y.length) { throw new IllegalArgumentException("Input vector sizes are different."); } int n = x.length; double[] wksp1 = new double[n]; double[] wksp2 = new double[n]; ...
public class class_name { public static double spearman(float[] x, float[] y) { if (x.length != y.length) { throw new IllegalArgumentException("Input vector sizes are different."); } int n = x.length; double[] wksp1 = new double[n]; double[] wksp2 = new double[n]; ...
public class class_name { private void updateViewDefaultTemplateWhenGovernanceIsNotInstalled(DbSession dbSession, PermissionTemplateDto template, DefaultTemplates defaultTemplates) { String viewDefaultTemplateUuid = defaultTemplates.getApplicationsUuid(); if (viewDefaultTemplateUuid != null && viewDefaultTempl...
public class class_name { private void updateViewDefaultTemplateWhenGovernanceIsNotInstalled(DbSession dbSession, PermissionTemplateDto template, DefaultTemplates defaultTemplates) { String viewDefaultTemplateUuid = defaultTemplates.getApplicationsUuid(); if (viewDefaultTemplateUuid != null && viewDefaultTempl...
public class class_name { public static String selectSingleNodeValue(Node node, String xpathQuery) { Node resultNode = node.selectSingleNode(xpathQuery); if (resultNode != null) { return resultNode.getText(); } else { return null; } } }
public class class_name { public static String selectSingleNodeValue(Node node, String xpathQuery) { Node resultNode = node.selectSingleNode(xpathQuery); if (resultNode != null) { return resultNode.getText(); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static void turnOnVIVOPush(final AVCallback<Boolean> callback) { com.vivo.push.PushClient.getInstance(AVOSCloud.getContext()).turnOnPush(new com.vivo.push.IPushActionListener() { public void onStateChanged(int state) { if (null == callback) { AVException exc...
public class class_name { public static void turnOnVIVOPush(final AVCallback<Boolean> callback) { com.vivo.push.PushClient.getInstance(AVOSCloud.getContext()).turnOnPush(new com.vivo.push.IPushActionListener() { public void onStateChanged(int state) { if (null == callback) { AVException exc...
public class class_name { public static Map<Object, Object> getProperties(JComponent component) { Map<Object, Object> retVal = new HashMap<Object, Object>(); Class<?> clazz = component.getClass(); Method[] methods = clazz.getMethods(); Object value = null; for (Method method : methods) { ...
public class class_name { public static Map<Object, Object> getProperties(JComponent component) { Map<Object, Object> retVal = new HashMap<Object, Object>(); Class<?> clazz = component.getClass(); Method[] methods = clazz.getMethods(); Object value = null; for (Method method : methods) { ...
public class class_name { private void migrate(DictSegment[] segmentArray , Map<Character , DictSegment> segmentMap){ for(DictSegment segment : segmentArray){ if(segment != null){ segmentMap.put(segment.nodeChar, segment); } } } }
public class class_name { private void migrate(DictSegment[] segmentArray , Map<Character , DictSegment> segmentMap){ for(DictSegment segment : segmentArray){ if(segment != null){ segmentMap.put(segment.nodeChar, segment); // depends on control dependency: [if], data = [(segment] } } } }
public class class_name { @Override public void removeRequestHeader(String headerName) { Header[] headers = getRequestHeaderGroup().getHeaders(headerName); for (int i = 0; i < headers.length; i++) { getRequestHeaderGroup().removeHeader(headers[i]); } } }
public class class_name { @Override public void removeRequestHeader(String headerName) { Header[] headers = getRequestHeaderGroup().getHeaders(headerName); for (int i = 0; i < headers.length; i++) { getRequestHeaderGroup().removeHeader(headers[i]); // depends on control depende...
public class class_name { public String removeFileExtension(String fileName) { int dotIndex = fileName.lastIndexOf("."); if (dotIndex > 0) { fileName = fileName.substring(0, dotIndex); } return fileName; } }
public class class_name { public String removeFileExtension(String fileName) { int dotIndex = fileName.lastIndexOf("."); if (dotIndex > 0) { fileName = fileName.substring(0, dotIndex); // depends on control dependency: [if], data = [none] } return fileName;...
public class class_name { @Override public EntityIdentifier[] searchForGroups( String query, SearchMethod searchMethod, Class leafType) throws GroupsException { List ids = new ArrayList(); File baseDir = getFileRoot(leafType); if (log.isDebugEnabled()) log.debug( ...
public class class_name { @Override public EntityIdentifier[] searchForGroups( String query, SearchMethod searchMethod, Class leafType) throws GroupsException { List ids = new ArrayList(); File baseDir = getFileRoot(leafType); if (log.isDebugEnabled()) log.debug( ...
public class class_name { static boolean containsUnicodeEscape(String s) { String esc = REGEXP_ESCAPER.regexpEscape(s); for (int i = -1; (i = esc.indexOf("\\u", i + 1)) >= 0;) { int nSlashes = 0; while (i - nSlashes > 0 && '\\' == esc.charAt(i - nSlashes - 1)) { ++nSlashes; } //...
public class class_name { static boolean containsUnicodeEscape(String s) { String esc = REGEXP_ESCAPER.regexpEscape(s); for (int i = -1; (i = esc.indexOf("\\u", i + 1)) >= 0;) { int nSlashes = 0; while (i - nSlashes > 0 && '\\' == esc.charAt(i - nSlashes - 1)) { ++nSlashes; // depends on co...
public class class_name { public Timestamp[] toArray(Timestamp[] a) { int n = data.size(); if (a.length < n) { a = new Timestamp[n]; } for (int i = 0; i < n; i++) { a[i] = data.get(i).timestamp; } for (int i = n; i < a.length; i+...
public class class_name { public Timestamp[] toArray(Timestamp[] a) { int n = data.size(); if (a.length < n) { a = new Timestamp[n]; // depends on control dependency: [if], data = [none] } for (int i = 0; i < n; i++) { a[i] = data.get(i).timestamp; // de...
public class class_name { public void marshall(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest, ProtocolMarshaller protocolMarshaller) { if (deleteBotChannelAssociationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest, ProtocolMarshaller protocolMarshaller) { if (deleteBotChannelAssociationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { private double valueToPixelValue(GriddedTile griddedTile, double value) { double pixelValue = value; if (griddedCoverage != null && griddedCoverage.getDataType() == GriddedCoverageDataType.INTEGER) { pixelValue -= griddedCoverage.getOffset(); pixelValue /= griddedCoverage.get...
public class class_name { private double valueToPixelValue(GriddedTile griddedTile, double value) { double pixelValue = value; if (griddedCoverage != null && griddedCoverage.getDataType() == GriddedCoverageDataType.INTEGER) { pixelValue -= griddedCoverage.getOffset(); // depends on control dependency: [i...
public class class_name { public void marshall(DocumentClassifierProperties documentClassifierProperties, ProtocolMarshaller protocolMarshaller) { if (documentClassifierProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DocumentClassifierProperties documentClassifierProperties, ProtocolMarshaller protocolMarshaller) { if (documentClassifierProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private Table<String, Integer, ProgramController> createFlowlets(Program program, RunId runId, FlowSpecification flowSpec) { Table<String, Integer, ProgramController> flowlets = HashBasedTable.create(); try { fo...
public class class_name { private Table<String, Integer, ProgramController> createFlowlets(Program program, RunId runId, FlowSpecification flowSpec) { Table<String, Integer, ProgramController> flowlets = HashBasedTable.create(); try { fo...
public class class_name { private List<String> getCommand( Element trNode ) { List<String> result = new ArrayList<String>(); Elements trChildNodes = trNode.getElementsByTag( "TD" ); for ( Element trChild : trChildNodes ) { result.add( getTableDataValue( trChild ) ); ...
public class class_name { private List<String> getCommand( Element trNode ) { List<String> result = new ArrayList<String>(); Elements trChildNodes = trNode.getElementsByTag( "TD" ); for ( Element trChild : trChildNodes ) { result.add( getTableDataValue( trChild ) ); // d...
public class class_name { public void gotoNextBlockStart(int index, int xor) { // goto block start pos if (xor < (1 << 10)) { // level = 1 display0 = (Object[]) display1[(index >> 5) & 31]; } else if (xor < (1 << 15)) { // level = 2 display1 = (Object[]) display2[(index >> 10) &...
public class class_name { public void gotoNextBlockStart(int index, int xor) { // goto block start pos if (xor < (1 << 10)) { // level = 1 display0 = (Object[]) display1[(index >> 5) & 31]; // depends on control dependency: [if], data = [none] } else if (xor < (1 << 15)) { // level = 2 ...
public class class_name { private List<DoubleIntInt> computeZijs(double[][] averageDistances, final int dim) { List<DoubleIntInt> z_ijs = new ArrayList<>(averageDistances.length * dim); for(int i = 0; i < averageDistances.length; i++) { double[] x_i = averageDistances[i]; // y_i double y_i = ...
public class class_name { private List<DoubleIntInt> computeZijs(double[][] averageDistances, final int dim) { List<DoubleIntInt> z_ijs = new ArrayList<>(averageDistances.length * dim); for(int i = 0; i < averageDistances.length; i++) { double[] x_i = averageDistances[i]; // y_i double y_i = ...
public class class_name { public void afterResponse(Event event) { ChaincodeMessage message = messageHelper(event); try { sendChannel(message); logger.debug(String.format("[%s]Received %s, communicated (state:%s)", shortID(message), message.getType(), fsm.current())); } catch (Exception e) { logger...
public class class_name { public void afterResponse(Event event) { ChaincodeMessage message = messageHelper(event); try { sendChannel(message); // depends on control dependency: [try], data = [none] logger.debug(String.format("[%s]Received %s, communicated (state:%s)", shortID(message), message.getType(...
public class class_name { public char match(ISense source, ISense target) throws MatcherLibraryException { char result = IMappingElement.IDK; try { String sSynset = source.getGloss(); // get gloss of Immediate ancestor of target node String tLGExtendedGloss = ...
public class class_name { public char match(ISense source, ISense target) throws MatcherLibraryException { char result = IMappingElement.IDK; try { String sSynset = source.getGloss(); // get gloss of Immediate ancestor of target node String tLGExtendedGloss = ...
public class class_name { public void onLeafClick(LeafClickEvent event) { LayerTreeTreeNode layerTreeNode; if (event.getLeaf() instanceof LayerTreeLegendItemNode) { layerTreeNode = ((LayerTreeLegendItemNode) event.getLeaf()).parent; treeGrid.deselectRecord(event.getLeaf()); treeGrid.selectRecord(layerTree...
public class class_name { public void onLeafClick(LeafClickEvent event) { LayerTreeTreeNode layerTreeNode; if (event.getLeaf() instanceof LayerTreeLegendItemNode) { layerTreeNode = ((LayerTreeLegendItemNode) event.getLeaf()).parent; // depends on control dependency: [if], data = [none] treeGrid.deselectRecor...
public class class_name { private String getTypeGenericName(Type type) { StringBuilder sb = new StringBuilder(getTypeName(type)); if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; Type[] generics = parameterizedType.ge...
public class class_name { private String getTypeGenericName(Type type) { StringBuilder sb = new StringBuilder(getTypeName(type)); if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; Type[] generics = parameterizedType.ge...
public class class_name { public static boolean isMaintenanceWindowValid(final MaintenanceWindowLayout maintenanceWindowLayout, final UINotification notification) { if (maintenanceWindowLayout.isEnabled()) { try { MaintenanceScheduleHelper.validateMaintenanceSchedule(mai...
public class class_name { public static boolean isMaintenanceWindowValid(final MaintenanceWindowLayout maintenanceWindowLayout, final UINotification notification) { if (maintenanceWindowLayout.isEnabled()) { try { MaintenanceScheduleHelper.validateMaintenanceSchedule(mai...
public class class_name { public void play(IPlayItem item, boolean withReset) throws StreamNotFoundException, IllegalStateException, IOException { IMessageInput in = null; // cannot play if state is not stopped switch (subscriberStream.getState()) { case STOPPED: in ...
public class class_name { public void play(IPlayItem item, boolean withReset) throws StreamNotFoundException, IllegalStateException, IOException { IMessageInput in = null; // cannot play if state is not stopped switch (subscriberStream.getState()) { case STOPPED: in ...
public class class_name { static int getIndent(PropertySheetTable table, Item item) { int indent; if (item.isProperty()) { // it is a property, it has no parent or a category, and no child if ((item.getParent() == null || !item.getParent().isProperty()) ...
public class class_name { static int getIndent(PropertySheetTable table, Item item) { int indent; if (item.isProperty()) { // it is a property, it has no parent or a category, and no child if ((item.getParent() == null || !item.getParent().isProperty()) ...
public class class_name { public List<Person> nextPeople(int num) { List<Person> names = new ArrayList<Person>(num); for(int i = 0; i < num; i++) { names.add(nextPerson()); } return names; } }
public class class_name { public List<Person> nextPeople(int num) { List<Person> names = new ArrayList<Person>(num); for(int i = 0; i < num; i++) { names.add(nextPerson()); // depends on control dependency: [for], data = [none] } return names; } }
public class class_name { protected TransactionAnnotationValues readTransactionAnnotation(final Method method) { for (AnnotationParser annotationParser : annotationParsers) { TransactionAnnotationValues tad = TransactionAnnotationValues.of(annotationParser, method); if (tad != null) { return tad; } } ...
public class class_name { protected TransactionAnnotationValues readTransactionAnnotation(final Method method) { for (AnnotationParser annotationParser : annotationParsers) { TransactionAnnotationValues tad = TransactionAnnotationValues.of(annotationParser, method); if (tad != null) { return tad; // depend...
public class class_name { public ManagedObject get(Token token) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "get", token); trace.exit(this, c...
public class class_name { public ManagedObject get(Token token) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "get", token); // depends on control dependency: [if], data = [none]...
public class class_name { public EClass getIfcConditionCriterionSelect() { if (ifcConditionCriterionSelectEClass == null) { ifcConditionCriterionSelectEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(944); } return ifcConditionCriterionSelectE...
public class class_name { public EClass getIfcConditionCriterionSelect() { if (ifcConditionCriterionSelectEClass == null) { ifcConditionCriterionSelectEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(944); // depends on control dependency: [if], da...
public class class_name { private SoyList newListFromIterable(Iterable<?> items) { // Create a list backed by a Java list which has eagerly converted each value into a lazy // value provider. Specifically, the list iteration is done eagerly so that the lazy value // provider can cache its value. Immuta...
public class class_name { private SoyList newListFromIterable(Iterable<?> items) { // Create a list backed by a Java list which has eagerly converted each value into a lazy // value provider. Specifically, the list iteration is done eagerly so that the lazy value // provider can cache its value. Immuta...
public class class_name { private int getIntProperty(String key, boolean defaultProvided, int defaultValue, StringBuilder errors) { String value = getStringProperty(key); if (null != value) { try { int realValue = Integer.parseInt(value); if (TraceComponent.i...
public class class_name { private int getIntProperty(String key, boolean defaultProvided, int defaultValue, StringBuilder errors) { String value = getStringProperty(key); if (null != value) { try { int realValue = Integer.parseInt(value); if (TraceComponent.i...
public class class_name { @Override public void addPermissions(Collection<Permission> aPermssions) { if (aPermssions == null) throw new IllegalArgumentException( "aPermssions required in SecurityAccessControl"); // SecurityPermission element = null; for (Iterator<Permission> i = aPermssions.iter...
public class class_name { @Override public void addPermissions(Collection<Permission> aPermssions) { if (aPermssions == null) throw new IllegalArgumentException( "aPermssions required in SecurityAccessControl"); // SecurityPermission element = null; for (Iterator<Permission> i = aPermssions.iter...
public class class_name { public static List<Pattern> convert(final List<String> patternStrings, final String prepend) { // Check sanity List<String> effectivePatternStrings = patternStrings; if (patternStrings == null) { effectivePatternStrings = new ArrayList<String>(); ...
public class class_name { public static List<Pattern> convert(final List<String> patternStrings, final String prepend) { // Check sanity List<String> effectivePatternStrings = patternStrings; if (patternStrings == null) { effectivePatternStrings = new ArrayList<String>(); // depend...
public class class_name { public UriComponents build(boolean encoded) { if (this.ssp != null) { return new OpaqueUriComponents(this.scheme, this.ssp, this.fragment); } else { return new HierarchicalUriComponents(this.scheme, this.userInfo, this.host, this.port, this.pathBuilder.build(), this.queryPara...
public class class_name { public UriComponents build(boolean encoded) { if (this.ssp != null) { return new OpaqueUriComponents(this.scheme, this.ssp, this.fragment); // depends on control dependency: [if], data = [none] } else { return new HierarchicalUriComponents(this.scheme, this.userInfo, this.host, th...
public class class_name { public Resource build() { Resource resource = null; if (_url != null) { resource = _kieResources.newUrlResource(_url); if (resource != null) { if (_resourceType != null) { resource.setResourceType(_resourceType); ...
public class class_name { public Resource build() { Resource resource = null; if (_url != null) { resource = _kieResources.newUrlResource(_url); // depends on control dependency: [if], data = [(_url] if (resource != null) { if (_resourceType != null) { ...
public class class_name { public void setSourceIds(java.util.Collection<String> sourceIds) { if (sourceIds == null) { this.sourceIds = null; return; } this.sourceIds = new com.amazonaws.internal.SdkInternalList<String>(sourceIds); } }
public class class_name { public void setSourceIds(java.util.Collection<String> sourceIds) { if (sourceIds == null) { this.sourceIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.source...
public class class_name { public long getSessionId() { long sessionId = 0; try { ZooKeeper zk = zooKeeper.getZooKeeper(); if (zk != null) { sessionId = zk.getSessionId(); } } catch (Exception e) { // Ignore the exception } ...
public class class_name { public long getSessionId() { long sessionId = 0; try { ZooKeeper zk = zooKeeper.getZooKeeper(); if (zk != null) { sessionId = zk.getSessionId(); // depends on control dependency: [if], data = [none] } } catch (Excepti...
public class class_name { public void startElementContents(ElementBox elem) { //setup transformations for the contents AffineTransform at = Transform.createTransform(elem); if (at != null) { savedTransforms.put(elem, g.getTransform()); g.transform(at); ...
public class class_name { public void startElementContents(ElementBox elem) { //setup transformations for the contents AffineTransform at = Transform.createTransform(elem); if (at != null) { savedTransforms.put(elem, g.getTransform()); // depends on control dependency: [...