code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public void update(Object obj) { lock.writeLock().lock(); try { populated = true; this.queueActionLocked(DeltaType.Updated, obj); } finally { lock.writeLock().unlock(); } } }
public class class_name { @Override public void update(Object obj) { lock.writeLock().lock(); try { populated = true; // depends on control dependency: [try], data = [none] this.queueActionLocked(DeltaType.Updated, obj); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public Integer getInteger(final String key) { Number number = (Number) map.get(key); if (number == null) { return null; } if (number instanceof Integer) { return (Integer) number; } return number.intValue(); } }
public class class_name { public Integer getInteger(final String key) { Number number = (Number) map.get(key); if (number == null) { return null; // depends on control dependency: [if], data = [none] } if (number instanceof Integer) { return (Integer) number; // depends on control dependency: [if], data...
public class class_name { protected void removeAllFromAttributeValueSet() { final Collection<AbstractHtml5SharedObject> sharedObjects = getSharedObjects(); boolean listenerInvoked = false; final Collection<WriteLock> writeLocks = lockAndGetWriteLocks(); try { getAttributeV...
public class class_name { protected void removeAllFromAttributeValueSet() { final Collection<AbstractHtml5SharedObject> sharedObjects = getSharedObjects(); boolean listenerInvoked = false; final Collection<WriteLock> writeLocks = lockAndGetWriteLocks(); try { getAttributeV...
public class class_name { public ByteBuffer wrap(int offset, int length) { if (offset > this.memory.length || offset > this.memory.length - length) { throw new IndexOutOfBoundsException(); } if (this.wrapper == null) { this.wrapper = ByteBuffer.wrap(this.memory, offset, length); } else { this.wra...
public class class_name { public ByteBuffer wrap(int offset, int length) { if (offset > this.memory.length || offset > this.memory.length - length) { throw new IndexOutOfBoundsException(); } if (this.wrapper == null) { this.wrapper = ByteBuffer.wrap(this.memory, offset, length); // depends on control de...
public class class_name { protected void initIncidentHandlers() { if (incidentHandlers == null) { incidentHandlers = new HashMap<String, IncidentHandler>(); DefaultIncidentHandler failedJobIncidentHandler = new DefaultIncidentHandler(Incident.FAILED_JOB_HANDLER_TYPE); incidentHandlers.put(failed...
public class class_name { protected void initIncidentHandlers() { if (incidentHandlers == null) { incidentHandlers = new HashMap<String, IncidentHandler>(); // depends on control dependency: [if], data = [none] DefaultIncidentHandler failedJobIncidentHandler = new DefaultIncidentHandler(Incident.FAILE...
public class class_name { @Override public synchronized Map<Object, Object> getProperties() { if (properties == null || this.isAlwaysReload()) { loadProperties(); } // return copy return new HashMap<Object, Object>(properties); } }
public class class_name { @Override public synchronized Map<Object, Object> getProperties() { if (properties == null || this.isAlwaysReload()) { loadProperties(); // depends on control dependency: [if], data = [none] } // return copy return new HashMap<Object, Object>(properties); } }
public class class_name { public MetricDatum withCounts(Double... counts) { if (this.counts == null) { setCounts(new com.amazonaws.internal.SdkInternalList<Double>(counts.length)); } for (Double ele : counts) { this.counts.add(ele); } return this; } }
public class class_name { public MetricDatum withCounts(Double... counts) { if (this.counts == null) { setCounts(new com.amazonaws.internal.SdkInternalList<Double>(counts.length)); // depends on control dependency: [if], data = [none] } for (Double ele : counts) { this.c...
public class class_name { public static String transform(String template, Map<String,Object> map) { // validations if(template == null) { return null; } if(map == null) { return template; } // transform List<String> nameList = new ArrayLi...
public class class_name { public static String transform(String template, Map<String,Object> map) { // validations if(template == null) { return null; // depends on control dependency: [if], data = [none] } if(map == null) { return template; // depends on control...
public class class_name { private void addJolokiaId(Map<String, String> pFinalCfg) { if (!pFinalCfg.containsKey(ConfigKey.AGENT_ID.getKeyValue())) { pFinalCfg.put(ConfigKey.AGENT_ID.getKeyValue(), NetworkUtil.getAgentId(hashCode(),"jvm")); } pFinalCfg.put(ConfigKey.AGENT_TYPE.getKey...
public class class_name { private void addJolokiaId(Map<String, String> pFinalCfg) { if (!pFinalCfg.containsKey(ConfigKey.AGENT_ID.getKeyValue())) { pFinalCfg.put(ConfigKey.AGENT_ID.getKeyValue(), NetworkUtil.getAgentId(hashCode(),"jvm")); // depends on control dependency: [if], data = [none] ...
public class class_name { @SuppressWarnings("unused") private ApproximationLine approximateUpperHullOld(ConvexHull convexHull, double[] log_k, double sum_log_k, double sum_log_k2, double[] log_kDist, double sum_log_kDist, double sum_log_k_kDist) { StringBuilder msg = new StringBuilder(10000); int[] upperHull...
public class class_name { @SuppressWarnings("unused") private ApproximationLine approximateUpperHullOld(ConvexHull convexHull, double[] log_k, double sum_log_k, double sum_log_k2, double[] log_kDist, double sum_log_kDist, double sum_log_k_kDist) { StringBuilder msg = new StringBuilder(10000); int[] upperHull...
public class class_name { @Nullable public <R> R reduce(@Nullable R identity, @NotNull BiFunction<? super R, ? super T, ? extends R> accumulator) { R result = identity; while (iterator.hasNext()) { final T value = iterator.next(); result = accumulator...
public class class_name { @Nullable public <R> R reduce(@Nullable R identity, @NotNull BiFunction<? super R, ? super T, ? extends R> accumulator) { R result = identity; while (iterator.hasNext()) { final T value = iterator.next(); result = accumulator...
public class class_name { private void print(TaskListener listener, int depth) { indent(listener, depth); Run<?, ?> upstreamRun = getUpstreamRun(); if (upstreamRun == null) { listener.getLogger().println("Started by upstream build " + ModelHyperlinkNote.encodeTo('/' + getUpstreamUr...
public class class_name { private void print(TaskListener listener, int depth) { indent(listener, depth); Run<?, ?> upstreamRun = getUpstreamRun(); if (upstreamRun == null) { listener.getLogger().println("Started by upstream build " + ModelHyperlinkNote.encodeTo('/' + getUpstreamUr...
public class class_name { public boolean printData(PrintWriter out, int iPrintOptions) { if ((this.getScreenField().getConverter().getField() instanceof XmlField) || (this.getScreenField().getConverter().getField() instanceof HtmlField) || (this.getScreenField().getConverter().getFi...
public class class_name { public boolean printData(PrintWriter out, int iPrintOptions) { if ((this.getScreenField().getConverter().getField() instanceof XmlField) || (this.getScreenField().getConverter().getField() instanceof HtmlField) || (this.getScreenField().getConverter().getFi...
public class class_name { public static ApplicationContext findApplicationContext(ServletContext servletContext) { if(servletContext == null) { return ContextLoader.getCurrentWebApplicationContext(); } return WebApplicationContextUtils.getWebApplicationContext(servletContext); }...
public class class_name { public static ApplicationContext findApplicationContext(ServletContext servletContext) { if(servletContext == null) { return ContextLoader.getCurrentWebApplicationContext(); // depends on control dependency: [if], data = [none] } return WebApplicationContex...
public class class_name { public BatchGetRepositoriesResult withRepositories(RepositoryMetadata... repositories) { if (this.repositories == null) { setRepositories(new java.util.ArrayList<RepositoryMetadata>(repositories.length)); } for (RepositoryMetadata ele : repositories) { ...
public class class_name { public BatchGetRepositoriesResult withRepositories(RepositoryMetadata... repositories) { if (this.repositories == null) { setRepositories(new java.util.ArrayList<RepositoryMetadata>(repositories.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Object add(String key, Object value) { if (!this.containsKey(key)) { this.put(key, value); return null; } return this.get(key); } }
public class class_name { public Object add(String key, Object value) { if (!this.containsKey(key)) { this.put(key, value); // depends on control dependency: [if], data = [none] return null; // depends on control dependency: [if], data = [none] } return this.get(key); ...
public class class_name { public void startStep(final String uuid, final StepResult result) { final Optional<String> current = threadContext.getCurrent(); if (!current.isPresent()) { LOGGER.error("Could not start step: no test case running"); return; } final Stri...
public class class_name { public void startStep(final String uuid, final StepResult result) { final Optional<String> current = threadContext.getCurrent(); if (!current.isPresent()) { LOGGER.error("Could not start step: no test case running"); // depends on control dependency: [if], data = [...
public class class_name { public static String formatDuration(final long durationMillis, final String format, final boolean padWithZeros) { Validate.inclusiveBetween(0, Long.MAX_VALUE, durationMillis, "durationMillis must not be negative"); final Token[] tokens = lexx(format); long days ...
public class class_name { public static String formatDuration(final long durationMillis, final String format, final boolean padWithZeros) { Validate.inclusiveBetween(0, Long.MAX_VALUE, durationMillis, "durationMillis must not be negative"); final Token[] tokens = lexx(format); long days ...
public class class_name { public void setTextAttributes(byte[] fields, Hashtable attrib) { for (byte field : fields) { getFieldInfos(field).m_textAttributes = attrib; } notifyListeners(); } }
public class class_name { public void setTextAttributes(byte[] fields, Hashtable attrib) { for (byte field : fields) { getFieldInfos(field).m_textAttributes = attrib; // depends on control dependency: [for], data = [field] } notifyListeners(); } }
public class class_name { @NonNull @UiThread private HashMap<Integer, Boolean> generateExpandedStateMap() { HashMap<Integer, Boolean> parentHashMap = new HashMap<>(); int childCount = 0; int listItemCount = mFlatItemList.size(); for (int i = 0; i < listItemCount; i++) { ...
public class class_name { @NonNull @UiThread private HashMap<Integer, Boolean> generateExpandedStateMap() { HashMap<Integer, Boolean> parentHashMap = new HashMap<>(); int childCount = 0; int listItemCount = mFlatItemList.size(); for (int i = 0; i < listItemCount; i++) { ...
public class class_name { public static boolean hasAtLeastOneFieldOrMethod(ClassNode node, String... types) { Set<String> typesSet = new HashSet<>(Arrays.asList(types)); for (FieldNode field : node.getFields()) { if (typesSet.contains(field.getType().getName())) { return true; } } for (MethodNode met...
public class class_name { public static boolean hasAtLeastOneFieldOrMethod(ClassNode node, String... types) { Set<String> typesSet = new HashSet<>(Arrays.asList(types)); for (FieldNode field : node.getFields()) { if (typesSet.contains(field.getType().getName())) { return true; // depends on control dependen...
public class class_name { public boolean doesExist(ClassDescriptor cld, Identity oid, Object obj) { boolean result = false; String sql = (String) sqlSelectMap.get(cld); if(sql == null) { sql = new SqlExistStatement(cld, LoggerFactory.getDefaultLogger()).getStatemen...
public class class_name { public boolean doesExist(ClassDescriptor cld, Identity oid, Object obj) { boolean result = false; String sql = (String) sqlSelectMap.get(cld); if(sql == null) { sql = new SqlExistStatement(cld, LoggerFactory.getDefaultLogger()).getStatemen...
public class class_name { public static PathElement parse(String key) { if ( "*".equals( key ) ) { return new StarAllPathElement( key ); } int numOfStars = StringTools.countMatches( key, "*" ); if (numOfStars == 1) { return new StarSinglePathElement(key); ...
public class class_name { public static PathElement parse(String key) { if ( "*".equals( key ) ) { return new StarAllPathElement( key ); // depends on control dependency: [if], data = [none] } int numOfStars = StringTools.countMatches( key, "*" ); if (numOfStars == 1) { ...
public class class_name { private <E extends WeightedEdge> SparseDoubleVector getVertexWeightVector( WeightedGraph<E> g, int vertex) { if (keepWeightVectors) { SparseDoubleVector weightVec = vertexToWeightVector.get(vertex); if (weightVec == null) { synchroni...
public class class_name { private <E extends WeightedEdge> SparseDoubleVector getVertexWeightVector( WeightedGraph<E> g, int vertex) { if (keepWeightVectors) { SparseDoubleVector weightVec = vertexToWeightVector.get(vertex); if (weightVec == null) { synchroni...
public class class_name { public static String pad(String s, int length) { if (s.length() < length) { StringBuffer a = new StringBuffer(length); a.append(s); for (int i = s.length(); i < length; i++) { a = a.append(" "); } return a.toString(); } else if (s....
public class class_name { public static String pad(String s, int length) { if (s.length() < length) { StringBuffer a = new StringBuffer(length); a.append(s); // depends on control dependency: [if], data = [none] for (int i = s.length(); i < length; i++) { a = a.append(" "); //...
public class class_name { @Override public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { this.lock.lock(); try { if (this.completed) { return this.result; } this.result = getPoolObject(timeout, unit); this.completed = true; return result; }...
public class class_name { @Override public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { this.lock.lock(); try { if (this.completed) { return this.result; // depends on control dependency: [if], data = [none] } this.result = getPoolObject(timeout,...
public class class_name { @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (Intent.ACTION_BATTERY_LOW.equals(action)) { // If we get this action, the battery is discharging => it isn't plugged in so // there's no ...
public class class_name { @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (Intent.ACTION_BATTERY_LOW.equals(action)) { // If we get this action, the battery is discharging => it isn't plugged in so // there's no ...
public class class_name { @Override public void encodeTo(Encoder enc) { if (!isMutated()) { if (flDict == null) { enc.beginDict(0); enc.endDict(); } else { enc.writeValue(flDict); } } else { enc.beginDict(valCou...
public class class_name { @Override public void encodeTo(Encoder enc) { if (!isMutated()) { if (flDict == null) { enc.beginDict(0); // depends on control dependency: [if], data = [none] enc.endDict(); // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean isNexusUsesProxy() { // If they didn't specify whether Nexus needs to use the proxy, we should // still honor the property if it's set. if (line == null || !line.hasOption(ARGUMENT.NEXUS_USES_PROXY)) { try { return settings.ge...
public class class_name { public boolean isNexusUsesProxy() { // If they didn't specify whether Nexus needs to use the proxy, we should // still honor the property if it's set. if (line == null || !line.hasOption(ARGUMENT.NEXUS_USES_PROXY)) { try { return settings.ge...
public class class_name { public static int getTotalPhysicalMemorySizeInMB() { int memorySizeInMB; try { long memorySizeInBytes = ((com.sun.management.OperatingSystemMXBean) ManagementFactory .getOperatingSystemMXBean()).getTotalPhysicalMemorySize(); memorySizeInMB = (int) (me...
public class class_name { public static int getTotalPhysicalMemorySizeInMB() { int memorySizeInMB; try { long memorySizeInBytes = ((com.sun.management.OperatingSystemMXBean) ManagementFactory .getOperatingSystemMXBean()).getTotalPhysicalMemorySize(); memorySizeInMB = (int) (me...
public class class_name { public void createSecurityGroup(String groupName, String description) { AmazonEC2 amazonEC2 = getEc2Client(); try { final CreateSecurityGroupRequest securityGroupRequest = new CreateSecurityGroupRequest() .withGroupName(groupName) .withDescription(desc...
public class class_name { public void createSecurityGroup(String groupName, String description) { AmazonEC2 amazonEC2 = getEc2Client(); try { final CreateSecurityGroupRequest securityGroupRequest = new CreateSecurityGroupRequest() .withGroupName(groupName) .withDescription(desc...
public class class_name { public static Number getPushNumber(InstructionHandle h) { Instruction prevIns = h.getInstruction(); if (prevIns instanceof BIPUSH) { BIPUSH ldcCipher = (BIPUSH) prevIns; return ldcCipher.getValue(); } else if (prevIns instanceof SIPUSH) { ...
public class class_name { public static Number getPushNumber(InstructionHandle h) { Instruction prevIns = h.getInstruction(); if (prevIns instanceof BIPUSH) { BIPUSH ldcCipher = (BIPUSH) prevIns; return ldcCipher.getValue(); // depends on control dependency: [if], data = [none] ...
public class class_name { private void scheduleScanningIfExternalClass(final String className, final String relationship) { // Don't scan Object if (className != null && !className.equals("java.lang.Object") // Only schedule each external class once for scanning, across all threads ...
public class class_name { private void scheduleScanningIfExternalClass(final String className, final String relationship) { // Don't scan Object if (className != null && !className.equals("java.lang.Object") // Only schedule each external class once for scanning, across all threads ...
public class class_name { private Object decodeResult(IoBuffer data) { log.debug("decodeResult - data limit: {}", (data != null ? data.limit() : 0)); processHeaders(data); Input input = new Input(data); String target = null; byte b = data.get(); //look for SOH ...
public class class_name { private Object decodeResult(IoBuffer data) { log.debug("decodeResult - data limit: {}", (data != null ? data.limit() : 0)); processHeaders(data); Input input = new Input(data); String target = null; byte b = data.get(); //look for SOH ...
public class class_name { private void loadShardCache(TableDefinition tableDef) { String appName = tableDef.getAppDef().getAppName(); String tableName = tableDef.getTableName(); m_logger.debug("Loading shard cache for {}.{}", appName, tableName); Date cacheDate = new Date(...
public class class_name { private void loadShardCache(TableDefinition tableDef) { String appName = tableDef.getAppDef().getAppName(); String tableName = tableDef.getTableName(); m_logger.debug("Loading shard cache for {}.{}", appName, tableName); Date cacheDate = new Date(...
public class class_name { @Override public CommerceNotificationQueueEntry fetchByLtS_First(Date sentDate, OrderByComparator<CommerceNotificationQueueEntry> orderByComparator) { List<CommerceNotificationQueueEntry> list = findByLtS(sentDate, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.ge...
public class class_name { @Override public CommerceNotificationQueueEntry fetchByLtS_First(Date sentDate, OrderByComparator<CommerceNotificationQueueEntry> orderByComparator) { List<CommerceNotificationQueueEntry> list = findByLtS(sentDate, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.ge...
public class class_name { public ClassicCounter<K2> setCounter(K1 o, Counter<K2> c) { ClassicCounter<K2> old = getCounter(o); total -= old.totalCount(); if (c instanceof ClassicCounter) { map.put(o, (ClassicCounter<K2>) c); } else { map.put(o, new ClassicCounter<K2>(c)); } t...
public class class_name { public ClassicCounter<K2> setCounter(K1 o, Counter<K2> c) { ClassicCounter<K2> old = getCounter(o); total -= old.totalCount(); if (c instanceof ClassicCounter) { map.put(o, (ClassicCounter<K2>) c); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { static <K, V> RegularImmutableMap<K, V> fromEntryArray(int n, Entry<K, V>[] entryArray) { checkPositionIndex(n, entryArray.length); Entry<K, V>[] entries; if (n == entryArray.length) { entries = entryArray; } else { entries = createEntryArray(n); } int tabl...
public class class_name { static <K, V> RegularImmutableMap<K, V> fromEntryArray(int n, Entry<K, V>[] entryArray) { checkPositionIndex(n, entryArray.length); Entry<K, V>[] entries; if (n == entryArray.length) { entries = entryArray; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public Map<String, String> getInstanceTags() { Map<String, String> map = new HashMap<>(); Instance instance = this.getInstance(); for (Tag tag : instance.getTags()) { map.put(tag.getKey(), tag.getValue()); } return map; } }
public class class_name { public Map<String, String> getInstanceTags() { Map<String, String> map = new HashMap<>(); Instance instance = this.getInstance(); for (Tag tag : instance.getTags()) { map.put(tag.getKey(), tag.getValue()); // depends on control dependency: [for], data = [ta...
public class class_name { public void setHostIds(java.util.Collection<String> hostIds) { if (hostIds == null) { this.hostIds = null; return; } this.hostIds = new com.amazonaws.internal.SdkInternalList<String>(hostIds); } }
public class class_name { public void setHostIds(java.util.Collection<String> hostIds) { if (hostIds == null) { this.hostIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.hostIds = new ...
public class class_name { private void handleFile(final InputGroup group) { // Register a group start handler. The start handler will be called // with the file name. Then we can open the file. group.startHandler(new Handler<String>() { @Override public void handle(String fileName) { fi...
public class class_name { private void handleFile(final InputGroup group) { // Register a group start handler. The start handler will be called // with the file name. Then we can open the file. group.startHandler(new Handler<String>() { @Override public void handle(String fileName) { fi...
public class class_name { @Override public final int compareTo(final Angle angle) { int comparison; comparison = getField(Field.DEGREES) - angle.getField(Field.DEGREES); if (comparison == 0) { comparison = getField(Field.MINUTES) - angle.getField(Field.MINUTES); } if (comparison == 0)...
public class class_name { @Override public final int compareTo(final Angle angle) { int comparison; comparison = getField(Field.DEGREES) - angle.getField(Field.DEGREES); if (comparison == 0) { comparison = getField(Field.MINUTES) - angle.getField(Field.MINUTES); // depends on control dependen...
public class class_name { public void prepare() throws IOException { if (locks != null) { bckFiles = new File[files.length]; for (int i = 0,length = files.length; i < length; i++) { File file = files[i]; if (file.exists()) { ...
public class class_name { public void prepare() throws IOException { if (locks != null) { bckFiles = new File[files.length]; for (int i = 0,length = files.length; i < length; i++) { File file = files[i]; if (file.exists()) { ...
public class class_name { public static void sleep(final long ms) { try { Thread.sleep(ms); } catch (InterruptedException iex) { Thread.currentThread().interrupt(); } } }
public class class_name { public static void sleep(final long ms) { try { Thread.sleep(ms); // depends on control dependency: [try], data = [none] } catch (InterruptedException iex) { Thread.currentThread().interrupt(); } // depends on control dependency: [catch], data = [none] } }
public class class_name { @Override public RepositoryResult<Statement> getStatements(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts) throws RepositoryException { if (contexts == null) { contexts = new Resource[] { null }; } try { if...
public class class_name { @Override public RepositoryResult<Statement> getStatements(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts) throws RepositoryException { if (contexts == null) { contexts = new Resource[] { null }; // depends on control dependency: [if]...
public class class_name { @SuppressWarnings("unchecked") public static <T> Set<T> getTableValue(final Table table) { final Object value = table.getValue(); Set<T> idsReturn; if (value == null) { idsReturn = Collections.emptySet(); } else if (value instanceof Collection) ...
public class class_name { @SuppressWarnings("unchecked") public static <T> Set<T> getTableValue(final Table table) { final Object value = table.getValue(); Set<T> idsReturn; if (value == null) { idsReturn = Collections.emptySet(); // depends on control dependency: [if], data = [...
public class class_name { public EClass getIfcLightIntensityDistribution() { if (ifcLightIntensityDistributionEClass == null) { ifcLightIntensityDistributionEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(292); } return ifcLightIntensityDistr...
public class class_name { public EClass getIfcLightIntensityDistribution() { if (ifcLightIntensityDistributionEClass == null) { ifcLightIntensityDistributionEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(292); // depends on control dependency: [i...
public class class_name { public static base_responses update(nitro_service client, dbdbprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dbdbprofile updateresources[] = new dbdbprofile[resources.length]; for (int i=0;i<resources.length;i++...
public class class_name { public static base_responses update(nitro_service client, dbdbprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dbdbprofile updateresources[] = new dbdbprofile[resources.length]; for (int i=0;i<resources.length;i++...
public class class_name { public int compareSwappedTo(DoubleIntPair other) { int fdiff = this.second - other.second; if(fdiff != 0) { return fdiff; } return Double.compare(this.second, other.second); } }
public class class_name { public int compareSwappedTo(DoubleIntPair other) { int fdiff = this.second - other.second; if(fdiff != 0) { return fdiff; // depends on control dependency: [if], data = [none] } return Double.compare(this.second, other.second); } }
public class class_name { protected static HashMap<String, PropertyPair> generatePropertyPairs(final Class<?> clazzType) { if (!TableServiceEntity.isReflectedEntityCacheDisabled()) { HashMap<String, PropertyPair> props = new HashMap<String, PropertyPair>(); props = TableServiceEntity.ge...
public class class_name { protected static HashMap<String, PropertyPair> generatePropertyPairs(final Class<?> clazzType) { if (!TableServiceEntity.isReflectedEntityCacheDisabled()) { HashMap<String, PropertyPair> props = new HashMap<String, PropertyPair>(); props = TableServiceEntity.ge...
public class class_name { public C getCell(T item) { C cell = pool.poll(); if(cell != null) { cell.updateItem(item); } else { cell = cellFactory.apply(item); } return cell; } }
public class class_name { public C getCell(T item) { C cell = pool.poll(); if(cell != null) { cell.updateItem(item); // depends on control dependency: [if], data = [none] } else { cell = cellFactory.apply(item); // depends on control dependency: [if], data = [none] ...
public class class_name { private static void handleLegacyWeightInitFromJson(String json, Layer layer, ObjectMapper mapper, JsonNode vertices) { if (layer instanceof BaseLayer && ((BaseLayer) layer).getWeightInitFn() == null) { String layerName = layer.getLayerName(); try { ...
public class class_name { private static void handleLegacyWeightInitFromJson(String json, Layer layer, ObjectMapper mapper, JsonNode vertices) { if (layer instanceof BaseLayer && ((BaseLayer) layer).getWeightInitFn() == null) { String layerName = layer.getLayerName(); try { ...
public class class_name { public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { val credential = getCredential(context); if (credential == null) { return null; } if (!clazz.isAssignableFrom(credential.getClass()))...
public class class_name { public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { val credential = getCredential(context); if (credential == null) { return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void removeResourcesInProject(CmsUUID projectId, boolean removeSystemLocks) { Iterator<CmsLock> itLocks = OpenCms.getMemoryMonitor().getAllCachedLocks().iterator(); while (itLocks.hasNext()) { CmsLock currentLock = itLocks.next(); if (removeSyst...
public class class_name { public void removeResourcesInProject(CmsUUID projectId, boolean removeSystemLocks) { Iterator<CmsLock> itLocks = OpenCms.getMemoryMonitor().getAllCachedLocks().iterator(); while (itLocks.hasNext()) { CmsLock currentLock = itLocks.next(); if (removeSyst...
public class class_name { public static boolean zipFolder(File folder, String fileName){ boolean success = false; if(!folder.isDirectory()){ return false; } if(fileName == null){ fileName = folder.getAbsolutePath()+ZIP_EXT; } ZipArchiveOutputStream zipOutput = null; try { zipOutput = new Z...
public class class_name { public static boolean zipFolder(File folder, String fileName){ boolean success = false; if(!folder.isDirectory()){ return false; // depends on control dependency: [if], data = [none] } if(fileName == null){ fileName = folder.getAbsolutePath()+ZIP_EXT; // depends on control de...
public class class_name { public void marshall(DescribeDimensionKeysRequest describeDimensionKeysRequest, ProtocolMarshaller protocolMarshaller) { if (describeDimensionKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DescribeDimensionKeysRequest describeDimensionKeysRequest, ProtocolMarshaller protocolMarshaller) { if (describeDimensionKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private boolean hasFilter(Filter filter, WhileMatchFilter whileMatchFilter) { if (filter == whileMatchFilter) { return true; } if (filter instanceof FilterList) { FilterList list = (FilterList) filter; for (Filter subFilter : list.getFilters()) { if (has...
public class class_name { private boolean hasFilter(Filter filter, WhileMatchFilter whileMatchFilter) { if (filter == whileMatchFilter) { return true; // depends on control dependency: [if], data = [none] } if (filter instanceof FilterList) { FilterList list = (FilterList) filter; for (F...
public class class_name { public void marshall(ThingTypeMetadata thingTypeMetadata, ProtocolMarshaller protocolMarshaller) { if (thingTypeMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(t...
public class class_name { public void marshall(ThingTypeMetadata thingTypeMetadata, ProtocolMarshaller protocolMarshaller) { if (thingTypeMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(t...
public class class_name { private static AbstractPlanNode addCoordinatorToDMLNode( AbstractPlanNode dmlRoot, boolean isReplicated) { dmlRoot = SubPlanAssembler.addSendReceivePair(dmlRoot); AbstractPlanNode sumOrLimitNode; if (isReplicated) { // Replicated table DML resul...
public class class_name { private static AbstractPlanNode addCoordinatorToDMLNode( AbstractPlanNode dmlRoot, boolean isReplicated) { dmlRoot = SubPlanAssembler.addSendReceivePair(dmlRoot); AbstractPlanNode sumOrLimitNode; if (isReplicated) { // Replicated table DML resul...
public class class_name { public static SARLPackageExplorerPart openInActivePerspective() { try { return (SARLPackageExplorerPart) JavaPlugin.getActivePage().showView(ID_PACKAGES); } catch (PartInitException exception) { return null; } } }
public class class_name { public static SARLPackageExplorerPart openInActivePerspective() { try { return (SARLPackageExplorerPart) JavaPlugin.getActivePage().showView(ID_PACKAGES); // depends on control dependency: [try], data = [none] } catch (PartInitException exception) { return null; } // depends on co...
public class class_name { private static boolean isLDHChar(int ch){ // high runner case if(ch>0x007A){ return false; } //[\\u002D \\u0030-\\u0039 \\u0041-\\u005A \\u0061-\\u007A] if( (ch==0x002D) || (0x0030 <= ch && ch <= 0x0039) || (0x0041 <...
public class class_name { private static boolean isLDHChar(int ch){ // high runner case if(ch>0x007A){ return false; // depends on control dependency: [if], data = [none] } //[\\u002D \\u0030-\\u0039 \\u0041-\\u005A \\u0061-\\u007A] if( (ch==0x002D) || (...
public class class_name { public ValidationResult check(Entry entry) { result = new ValidationResult(); if (entry == null) { return result; } //collect all gene features Collection<Feature> geneFeatures = SequenceEntryUtils.getFeaturesContainingQual...
public class class_name { public ValidationResult check(Entry entry) { result = new ValidationResult(); if (entry == null) { return result; // depends on control dependency: [if], data = [none] } //collect all gene features Collection<Feature> geneFeatures = ...
public class class_name { @Nullable private static ObjectType getSuperClassInstanceIfFinal(@Nullable JSType type) { if (type == null) { return null; } ObjectType obj = type.toObjectType(); FunctionType ctor = (obj == null) ? null : obj.getSuperClassConstructor(); JSDocInfo doc = (ctor == n...
public class class_name { @Nullable private static ObjectType getSuperClassInstanceIfFinal(@Nullable JSType type) { if (type == null) { return null; // depends on control dependency: [if], data = [none] } ObjectType obj = type.toObjectType(); FunctionType ctor = (obj == null) ? null : obj.getS...
public class class_name { public <T> T retryOperation(ZooKeeperOperation<T> operation) throws KeeperException, InterruptedException { if (!running.get()) { throw new ArbitrateException("Zookeeper is destory ,should never be used ...."); } KeeperException exception = null; f...
public class class_name { public <T> T retryOperation(ZooKeeperOperation<T> operation) throws KeeperException, InterruptedException { if (!running.get()) { throw new ArbitrateException("Zookeeper is destory ,should never be used ...."); } KeeperException exception = null; f...
public class class_name { private static void checkType( com.netflix.servo.annotations.Monitor anno, Class<?> type, Class<?> container) { if (!isNumericType(type)) { final String msg = "annotation of type " + anno.type().name() + " can only be used" + " with numeric values, " + anno.name() + ...
public class class_name { private static void checkType( com.netflix.servo.annotations.Monitor anno, Class<?> type, Class<?> container) { if (!isNumericType(type)) { final String msg = "annotation of type " + anno.type().name() + " can only be used" // depends on control dependency: [if], data = [none]...
public class class_name { private void putToSessionCache(Identity oid, CacheEntry entry, boolean onlyIfNew) { if(onlyIfNew) { // no synchronization needed, because session cache was used per broker instance if(!sessionCache.containsKey(oid)) sessionCache.put(oid, entry)...
public class class_name { private void putToSessionCache(Identity oid, CacheEntry entry, boolean onlyIfNew) { if(onlyIfNew) { // no synchronization needed, because session cache was used per broker instance if(!sessionCache.containsKey(oid)) sessionCache.put(oid, entry)...
public class class_name { public <Solution> Collection<Variable<Solution, ?>> createFromGetters( Class<Solution> solutionClass) { Collection<Variable<Solution, ?>> variables = new LinkedList<>(); for (Method method : solutionClass.getMethods()) { if (isGetter(method)) { String name = method.getName().sub...
public class class_name { public <Solution> Collection<Variable<Solution, ?>> createFromGetters( Class<Solution> solutionClass) { Collection<Variable<Solution, ?>> variables = new LinkedList<>(); for (Method method : solutionClass.getMethods()) { if (isGetter(method)) { String name = method.getName().sub...
public class class_name { private BlockingExecutor getExecutor(Work work) { BlockingExecutor executor = shortRunningExecutor; if (longRunningExecutor != null && WorkManagerUtil.isLongRunning(work)) { executor = longRunningExecutor; } fireHintsComplete(work); return exe...
public class class_name { private BlockingExecutor getExecutor(Work work) { BlockingExecutor executor = shortRunningExecutor; if (longRunningExecutor != null && WorkManagerUtil.isLongRunning(work)) { executor = longRunningExecutor; // depends on control dependency: [if], data = [none] ...
public class class_name { public void setExclusionPreviews(java.util.Collection<ExclusionPreview> exclusionPreviews) { if (exclusionPreviews == null) { this.exclusionPreviews = null; return; } this.exclusionPreviews = new java.util.ArrayList<ExclusionPreview>(exclusionP...
public class class_name { public void setExclusionPreviews(java.util.Collection<ExclusionPreview> exclusionPreviews) { if (exclusionPreviews == null) { this.exclusionPreviews = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], da...
public class class_name { public void init(String dc_sync_period, String resources_keep_alive_period, String manager_ip, String manager_port) { if (registryInitialized) throw new RuntimeException("Registry was already initialized"); if (dc_sync_period != null) { CONFIG_SYNC_P...
public class class_name { public void init(String dc_sync_period, String resources_keep_alive_period, String manager_ip, String manager_port) { if (registryInitialized) throw new RuntimeException("Registry was already initialized"); if (dc_sync_period != null) { CONFIG_SYNC_P...
public class class_name { public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsDataConfigCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsDataConfigCA> aggsLambda) { DataConfigCQ cq = new DataConfigCQ(); if (queryLambda != null) { ...
public class class_name { public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsDataConfigCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsDataConfigCA> aggsLambda) { DataConfigCQ cq = new DataConfigCQ(); if (queryLambda != null) { ...
public class class_name { @Override public void replace(List list, String resourceVersion) { lock.writeLock().lock(); try { Set<String> keys = new HashSet<>(); for (Object obj : list) { String key = this.keyOf(obj); keys.add(key); this.queueActionLocked(DeltaType.Sync, obj...
public class class_name { @Override public void replace(List list, String resourceVersion) { lock.writeLock().lock(); try { Set<String> keys = new HashSet<>(); for (Object obj : list) { String key = this.keyOf(obj); keys.add(key); // depends on control dependency: [for], data = [n...
public class class_name { public Result<Series> createSeries(Series series) { checkNotNull(series); URI uri = null; try { URIBuilder builder = new URIBuilder(String.format("/%s/series/", API_VERSION)); uri = builder.build(); } catch (URISyntaxException e) { String message = "Could no...
public class class_name { public Result<Series> createSeries(Series series) { checkNotNull(series); URI uri = null; try { URIBuilder builder = new URIBuilder(String.format("/%s/series/", API_VERSION)); uri = builder.build(); // depends on control dependency: [try], data = [none] } catch (U...
public class class_name { private static HashMap<String, PropertyPair> generatePropertyPairsHelper(final Class<?> clazzType) { final Method[] methods = clazzType.getMethods(); final HashMap<String, PropertyPair> propMap = new HashMap<String, PropertyPair>(); String propName = null; Pro...
public class class_name { private static HashMap<String, PropertyPair> generatePropertyPairsHelper(final Class<?> clazzType) { final Method[] methods = clazzType.getMethods(); final HashMap<String, PropertyPair> propMap = new HashMap<String, PropertyPair>(); String propName = null; Pro...
public class class_name { public static <T> boolean replaceAll(List<T> list, T oldVal, T newVal) { boolean result = false; int size = list.size(); if (size < REPLACEALL_THRESHOLD || list instanceof RandomAccess) { if (oldVal==null) { for (int i=0; i<size; i++) { ...
public class class_name { public static <T> boolean replaceAll(List<T> list, T oldVal, T newVal) { boolean result = false; int size = list.size(); if (size < REPLACEALL_THRESHOLD || list instanceof RandomAccess) { if (oldVal==null) { for (int i=0; i<size; i++) { ...
public class class_name { protected long[] convertValueToArray(final Object value) { if (value instanceof Collection) { final Collection collection = (Collection) value; final long[] target = new long[collection.size()]; int i = 0; for (final Object element : collection) { target[i] = convertType(el...
public class class_name { protected long[] convertValueToArray(final Object value) { if (value instanceof Collection) { final Collection collection = (Collection) value; final long[] target = new long[collection.size()]; int i = 0; for (final Object element : collection) { target[i] = convertType(el...
public class class_name { public static TileGrid getTileGrid(BoundingBox totalBox, long matrixWidth, long matrixHeight, BoundingBox boundingBox) { long minColumn = getTileColumn(totalBox, matrixWidth, boundingBox.getMinLongitude()); long maxColumn = getTileColumn(totalBox, matrixWidth, boundingBox.getM...
public class class_name { public static TileGrid getTileGrid(BoundingBox totalBox, long matrixWidth, long matrixHeight, BoundingBox boundingBox) { long minColumn = getTileColumn(totalBox, matrixWidth, boundingBox.getMinLongitude()); long maxColumn = getTileColumn(totalBox, matrixWidth, boundingBox.getM...
public class class_name { private List<DataSource> parseParts(final InputStream entityInputStream, final String contentType) { try { return parsePartsCore(entityInputStream, contentType); } catch (IOException e) { throw new RuntimeException(e); } catch (Messa...
public class class_name { private List<DataSource> parseParts(final InputStream entityInputStream, final String contentType) { try { return parsePartsCore(entityInputStream, contentType); // depends on control dependency: [try], data = [none] } catch (IOException e) { ...
public class class_name { public ArrayList getThreads() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getThreads"); SibTr.exit(tc, "getThreads", _threadCache); } return _threadCache; } }
public class class_name { public ArrayList getThreads() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getThreads"); // depends on control dependency: [if], data = [none] SibTr.exit(tc, "getThreads", _threadCache); // depends on control dependency: [if], data = [none] } return _threadCache...
public class class_name { public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); } }
public class class_name { public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); // depends on control dependency: [if], data = [none] } return fields.entrySet().iterator(); } }
public class class_name { private static void addProvider(){ if (Security.getProvider("BC") == null) { LogUtil.writeLog("add BC provider"); Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); } else { Security.removeProvider("BC"); //解决eclipse调试时tomcat自动重新加载时,BC存在不明原因异常的问题。 ...
public class class_name { private static void addProvider(){ if (Security.getProvider("BC") == null) { LogUtil.writeLog("add BC provider"); // depends on control dependency: [if], data = [none] Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); // depends on control dependency: [if...
public class class_name { @Override protected void onScrollChanged(int l, int t, int oldl, int oldt) { super.onScrollChanged(l, t, oldl, oldt); if (mTrackedChild == null) { if (getChildCount() > 0) { mTrackedChild = getChildInTheMiddle(); mTrackedChildP...
public class class_name { @Override protected void onScrollChanged(int l, int t, int oldl, int oldt) { super.onScrollChanged(l, t, oldl, oldt); if (mTrackedChild == null) { if (getChildCount() > 0) { mTrackedChild = getChildInTheMiddle(); // depends on control dependen...
public class class_name { public void link(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) throws BuildException { final File parentDir = new File(outputFile.getParent()); String parentPath; try { parentPath = parentDir.getCanon...
public class class_name { public void link(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) throws BuildException { final File parentDir = new File(outputFile.getParent()); String parentPath; try { parentPath = parentDir.getCanon...
public class class_name { @SuppressWarnings("unused") private boolean processBoxShadow(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericOneIdent(BoxShadow.class, d, properties)) { return true; } // inset? && <length>{2,4} && <color>? TermList...
public class class_name { @SuppressWarnings("unused") private boolean processBoxShadow(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericOneIdent(BoxShadow.class, d, properties)) { return true; } // inset? && <length>{2,4} && <color>? TermList...
public class class_name { public void marshall(JobFlowInstancesConfig jobFlowInstancesConfig, ProtocolMarshaller protocolMarshaller) { if (jobFlowInstancesConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(JobFlowInstancesConfig jobFlowInstancesConfig, ProtocolMarshaller protocolMarshaller) { if (jobFlowInstancesConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public static FilterBuilder buildFilter(Criteria criteria) { if (criteria.getTransaction() != null && criteria.getTransaction().trim().isEmpty()) { return FilterBuilders.missingFilter(TRANSACTION_FIELD); } return null; } }
public class class_name { public static FilterBuilder buildFilter(Criteria criteria) { if (criteria.getTransaction() != null && criteria.getTransaction().trim().isEmpty()) { return FilterBuilders.missingFilter(TRANSACTION_FIELD); // depends on control dependency: [if], data = [none] } ...
public class class_name { private List<CmsContainerBean> collectModelStructure( String modelInstanceId, String replaceModelId, Map<String, List<CmsContainerBean>> containerByParent, boolean isCopyGroup) { List<CmsContainerBean> result = new ArrayList<CmsContainerBean>(); ...
public class class_name { private List<CmsContainerBean> collectModelStructure( String modelInstanceId, String replaceModelId, Map<String, List<CmsContainerBean>> containerByParent, boolean isCopyGroup) { List<CmsContainerBean> result = new ArrayList<CmsContainerBean>(); ...
public class class_name { public void setFirstProperty() { if (properties.getItemCount() > 0) { properties.setSelectedIndex(0); LinearInterpolator currentValue = (LinearInterpolator) values .get(properties.getSelectedItem()); panel.setInterpolator(currentValue); } } }
public class class_name { public void setFirstProperty() { if (properties.getItemCount() > 0) { properties.setSelectedIndex(0); // depends on control dependency: [if], data = [0)] LinearInterpolator currentValue = (LinearInterpolator) values .get(properties.getSelectedItem()); panel.setInterpola...
public class class_name { public void setPermissions(Map permissions) throws RepositoryException, AccessDeniedException, AccessControlException { checkValid(); if (!isNodeType(Constants.EXO_PRIVILEGEABLE)) { throw new AccessControlException("Node is not exo:privilegeable " + getPat...
public class class_name { public void setPermissions(Map permissions) throws RepositoryException, AccessDeniedException, AccessControlException { checkValid(); if (!isNodeType(Constants.EXO_PRIVILEGEABLE)) { throw new AccessControlException("Node is not exo:privilegeable " + getPat...
public class class_name { public boolean isWhitespace(int start, int length) { int sourcechunk = start >>> m_chunkBits; int sourcecolumn = start & m_chunkMask; int available = m_chunkSize - sourcecolumn; boolean chunkOK; while (length > 0) { int runlength = (length <= available) ? len...
public class class_name { public boolean isWhitespace(int start, int length) { int sourcechunk = start >>> m_chunkBits; int sourcecolumn = start & m_chunkMask; int available = m_chunkSize - sourcecolumn; boolean chunkOK; while (length > 0) { int runlength = (length <= available) ? len...
public class class_name { public final EntityMetadata getEntityMetadata() { EntityMetadata metadata = null; try { metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass); } catch (KunderaException e) { logger.info("No Entity class provided, Proc...
public class class_name { public final EntityMetadata getEntityMetadata() { EntityMetadata metadata = null; try { metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass); // depends on control dependency: [try], data = [none] } catch (KunderaException e) { ...
public class class_name { public byte[] convertToByteSilent(String htmlInput) { try { return convertToByte(htmlInput.getBytes(getEncoding())); } catch (Exception e) { if (LOG.isWarnEnabled()) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_CONVERSION_BYTE...
public class class_name { public byte[] convertToByteSilent(String htmlInput) { try { return convertToByte(htmlInput.getBytes(getEncoding())); // depends on control dependency: [try], data = [none] } catch (Exception e) { if (LOG.isWarnEnabled()) { LOG.warn(Mess...
public class class_name { protected String extractApplicationLabel(final byte[] pData) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Extract Application label"); } String label = null; // Get Preferred name first byte[] labelByte = TlvUtil.getValue(pData, EmvTags.APPLICATION_PREFERRED_NAME); // Get App...
public class class_name { protected String extractApplicationLabel(final byte[] pData) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Extract Application label"); // depends on control dependency: [if], data = [none] } String label = null; // Get Preferred name first byte[] labelByte = TlvUtil.getValue(pD...
public class class_name { @Override public Iterator<Location> iterator() { List<Location> list; if(isComplex()) { list = getSubLocations(); } else { list = new ArrayList<Location>(); list.add(this); } return list.iterator(); } }
public class class_name { @Override public Iterator<Location> iterator() { List<Location> list; if(isComplex()) { list = getSubLocations(); // depends on control dependency: [if], data = [none] } else { list = new ArrayList<Location>(); // depends on control dependency: [if], data = [none] list.add(t...
public class class_name { public static void parseParameters( Map<String, String[]> map, String data, String encoding ) throws UnsupportedEncodingException { if ((data != null) && (data.length() > 0)) { // use the spe...
public class class_name { public static void parseParameters( Map<String, String[]> map, String data, String encoding ) throws UnsupportedEncodingException { if ((data != null) && (data.length() > 0)) { // use the spe...
public class class_name { @Api public void setUseCache(boolean useCache) { if (null == cacheManagerService && useCache) { log.warn("The caching plugin needs to be available to cache WMS requests. Not setting useCache."); } else { this.useCache = useCache; } } }
public class class_name { @Api public void setUseCache(boolean useCache) { if (null == cacheManagerService && useCache) { log.warn("The caching plugin needs to be available to cache WMS requests. Not setting useCache."); // depends on control dependency: [if], data = [none] } else { this.useCache = useCache...
public class class_name { public static float nextFloat(final float startInclusive, final float endInclusive) { Validate.isTrue(endInclusive >= startInclusive, "Start value must be smaller or equal to end value."); Validate.isTrue(startInclusive >= 0, "Both range values must be non-nega...
public class class_name { public static float nextFloat(final float startInclusive, final float endInclusive) { Validate.isTrue(endInclusive >= startInclusive, "Start value must be smaller or equal to end value."); Validate.isTrue(startInclusive >= 0, "Both range values must be non-nega...
public class class_name { public Map<String, Set<String>> getMimeApps() throws OSException { // lazy initialization if (mimeApps == null) { mimeApps = new HashMap<>(); for (String path : MIME_APPS_LISTS) { File mimeAppListFile = new File(path); i...
public class class_name { public Map<String, Set<String>> getMimeApps() throws OSException { // lazy initialization if (mimeApps == null) { mimeApps = new HashMap<>(); for (String path : MIME_APPS_LISTS) { File mimeAppListFile = new File(path); i...
public class class_name { @Nonnull public static FileIOError copyDirRecursive (@Nonnull final Path aSourceDir, @Nonnull final Path aTargetDir) { ValueEnforcer.notNull (aSourceDir, "SourceDirectory"); ValueEnforcer.notNull (aTargetDir, "TargetDirectory"); final Path aRealSourceDir = _getUnifiedPath (aS...
public class class_name { @Nonnull public static FileIOError copyDirRecursive (@Nonnull final Path aSourceDir, @Nonnull final Path aTargetDir) { ValueEnforcer.notNull (aSourceDir, "SourceDirectory"); ValueEnforcer.notNull (aTargetDir, "TargetDirectory"); final Path aRealSourceDir = _getUnifiedPath (aS...
public class class_name { private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { // Read non transient fields. in.defaultReadObject(); // Read transient fields. int n = in.readInt(); if (n == 0) { ivPuIds = NoP...
public class class_name { private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { // Read non transient fields. in.defaultReadObject(); // Read transient fields. int n = in.readInt(); if (n == 0) { ivPuIds = NoP...