code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public String get() { synchronized (LOCK) { if (!initialised) { // generate the random number Random rnd = new Random(); // @todo need a different seed, this is now time based and I // would prefer something different, like an object address // get the random number, inst...
public class class_name { public String get() { synchronized (LOCK) { if (!initialised) { // generate the random number Random rnd = new Random(); // @todo need a different seed, this is now time based and I // would prefer something different, like an object address // get the random number, inst...
public class class_name { public LocalisationManager getLocalisationManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLocalisationManager", this); // Instantiate LocalisationManager to manage localisations and interface to WLM if (...
public class class_name { public LocalisationManager getLocalisationManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLocalisationManager", this); // Instantiate LocalisationManager to manage localisations and interface to WLM if (...
public class class_name { static Method getMethodOptional( Class<?> type, String methodName, Class<?>... parameterTypes) { try { return type.getMethod(methodName, parameterTypes); } catch (SecurityException e) { return null; ...
public class class_name { static Method getMethodOptional( Class<?> type, String methodName, Class<?>... parameterTypes) { try { return type.getMethod(methodName, parameterTypes); // depends on control dependency: [try], data = [none] } catch (SecurityExc...
public class class_name { public void updateBean(final Object bean) { this.setBean(bean); if (this.cd != null && this.cd.isSupplier()) { final Object newBean = ((Supplier)this.bean).get(); setBean(newBean); } } }
public class class_name { public void updateBean(final Object bean) { this.setBean(bean); if (this.cd != null && this.cd.isSupplier()) { final Object newBean = ((Supplier)this.bean).get(); setBean(newBean); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Object invoke(String operationName, final StubStrategy stubStrategy, Object[] params) throws Throwable { if (operationName.equals("_get_handle") && this instanceof javax.ejb.EJBObject) { if (handle == null) { handle = new HandleImplII...
public class class_name { public Object invoke(String operationName, final StubStrategy stubStrategy, Object[] params) throws Throwable { if (operationName.equals("_get_handle") && this instanceof javax.ejb.EJBObject) { if (handle == null) { handle = new HandleImplII...
public class class_name { public FileGetFromTaskOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; } else { this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince); } return this; ...
public class class_name { public FileGetFromTaskOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none] } else { this.ifUnmodifiedSince = new DateTimeRfc1123...
public class class_name { public static void validateClusterStores(final Cluster cluster, final List<StoreDefinition> storeDefs) { // Constructing a StoreRoutingPlan has the (desirable in this // case) side-effect of verifying that the store definition is co...
public class class_name { public static void validateClusterStores(final Cluster cluster, final List<StoreDefinition> storeDefs) { // Constructing a StoreRoutingPlan has the (desirable in this // case) side-effect of verifying that the store definition is co...
public class class_name { public T min() { if (sum == 0) return null; int minCount = Integer.MAX_VALUE; int minIndex = -1; for (TIntIntIterator it = indexToCount.iterator(); it.hasNext(); ) { it.advance(); if (it.value() < minCount) { ...
public class class_name { public T min() { if (sum == 0) return null; int minCount = Integer.MAX_VALUE; int minIndex = -1; for (TIntIntIterator it = indexToCount.iterator(); it.hasNext(); ) { it.advance(); // depends on control dependency: [for], data = [it] ...
public class class_name { public LoggingEvent rewrite(final LoggingEvent source) { Object msg = source.getMessage(); if (!(msg instanceof String)) { Object newMsg = msg; Map rewriteProps = new HashMap(source.getProperties()); try { PropertyDescriptor...
public class class_name { public LoggingEvent rewrite(final LoggingEvent source) { Object msg = source.getMessage(); if (!(msg instanceof String)) { Object newMsg = msg; Map rewriteProps = new HashMap(source.getProperties()); try { PropertyDescriptor...
public class class_name { public static InternalQName decode(InternalQName name) { String decoded = decode(name.getName()); if (decoded.equals(name.getName())) { return name; } else { return new InternalQName(name.getNamespace(), decoded.toString()); ...
public class class_name { public static InternalQName decode(InternalQName name) { String decoded = decode(name.getName()); if (decoded.equals(name.getName())) { return name; // depends on control dependency: [if], data = [none] } else { return new Inte...
public class class_name { public static Geometry rotate(Geometry geom, double theta) { if (geom != null) { Coordinate center = geom.getEnvelopeInternal().centre(); return rotate(geom, theta, center.x, center.y); } else { return null; } } }
public class class_name { public static Geometry rotate(Geometry geom, double theta) { if (geom != null) { Coordinate center = geom.getEnvelopeInternal().centre(); return rotate(geom, theta, center.x, center.y); // depends on control dependency: [if], data = [(geom] } else { ...
public class class_name { private static String[] splitOnTokens(String text, String oneAnySymbolStr, String noneOrMoreSymbolsStr) { if (!hasWildcards(text, ONE_ANY_SYMBOL, NONE_OR_MORE_SYMBOLS)) { return new String[] { text }; } List<String> list = new ArrayList<>(); StringBuilder buffer = new StringBuilder...
public class class_name { private static String[] splitOnTokens(String text, String oneAnySymbolStr, String noneOrMoreSymbolsStr) { if (!hasWildcards(text, ONE_ANY_SYMBOL, NONE_OR_MORE_SYMBOLS)) { return new String[] { text }; // depends on control dependency: [if], data = [none] } List<String> list = new Arr...
public class class_name { public EClass getIfcRadiusDimension() { if (ifcRadiusDimensionEClass == null) { ifcRadiusDimensionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(419); } return ifcRadiusDimensionEClass; } }
public class class_name { public EClass getIfcRadiusDimension() { if (ifcRadiusDimensionEClass == null) { ifcRadiusDimensionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(419); // depends on control dependency: [if], data = [none] } return i...
public class class_name { public void marshall(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest, ProtocolMarshaller protocolMarshaller) { if (listSentimentDetectionJobsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest, ProtocolMarshaller protocolMarshaller) { if (listSentimentDetectionJobsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { @Override protected void registerGlobalWebAppListeners() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.entering(CLASS_NAME, "registerGlobalWebAppListeners"); // Notify PreEventListe...
public class class_name { @Override protected void registerGlobalWebAppListeners() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.entering(CLASS_NAME, "registerGlobalWebAppListeners"); // Notify PreEventListe...
public class class_name { protected String getParentPropertyName(String propertyName) { if (!PropertyAccessorUtils.isIndexedProperty(propertyName)) { return ""; } else { return propertyName.substring(0, propertyName.lastIndexOf(PROPERTY_KEY_PREFIX_CHAR)); } } }
public class class_name { protected String getParentPropertyName(String propertyName) { if (!PropertyAccessorUtils.isIndexedProperty(propertyName)) { return ""; // depends on control dependency: [if], data = [none] } else { return propertyName.substring(0, propertyName.lastIndexOf(PROPERTY_KEY_PREFIX_CHAR)...
public class class_name { public static ClassReader of(byte[] binaryRepresentation) { if (EXPERIMENTAL) { byte[] actualVersion = new byte[]{binaryRepresentation[4], binaryRepresentation[5], binaryRepresentation[6], binaryRepresentation[7]}; binaryRepresentation[4] = (byte) (Opcodes.V12 ...
public class class_name { public static ClassReader of(byte[] binaryRepresentation) { if (EXPERIMENTAL) { byte[] actualVersion = new byte[]{binaryRepresentation[4], binaryRepresentation[5], binaryRepresentation[6], binaryRepresentation[7]}; binaryRepresentation[4] = (byte) (Opcodes.V12 ...
public class class_name { public static Locale getMainLocale(CmsObject cms, CmsResource res) { CmsLocaleManager localeManager = OpenCms.getLocaleManager(); List<Locale> defaultLocales = null; // must switch project id in stored Admin context to match current project String defaultNames...
public class class_name { public static Locale getMainLocale(CmsObject cms, CmsResource res) { CmsLocaleManager localeManager = OpenCms.getLocaleManager(); List<Locale> defaultLocales = null; // must switch project id in stored Admin context to match current project String defaultNames...
public class class_name { public KeyManagerConfigurer keyPassword(String key, String password) { if (keyPasswords == null) { keyPasswords = new HashMap<>(); } keyPasswords.put(key, password); return this; } }
public class class_name { public KeyManagerConfigurer keyPassword(String key, String password) { if (keyPasswords == null) { keyPasswords = new HashMap<>(); // depends on control dependency: [if], data = [none] } keyPasswords.put(key, password); return this; } }
public class class_name { private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); boolean isValid = maxOffset >= -1 && formats.length > maxOffset && offsets.length > maxOffset && argumentNumbers.l...
public class class_name { private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); boolean isValid = maxOffset >= -1 && formats.length > maxOffset && offsets.length > maxOffset && argumentNumbers.l...
public class class_name { public static Props loadPropsInDir(final Props parent, final File dir, final String... suffixes) { try { final Props props = new Props(parent); final File[] files = dir.listFiles(); Arrays.sort(files); if (files != null) { for (final File f : files) { ...
public class class_name { public static Props loadPropsInDir(final Props parent, final File dir, final String... suffixes) { try { final Props props = new Props(parent); final File[] files = dir.listFiles(); Arrays.sort(files); // depends on control dependency: [try], data = [none] if (file...
public class class_name { private void getActiveFlowsWithExecutorHelper( final List<Pair<ExecutableFlow, Optional<Executor>>> flows, final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) { for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) { flows.add(new Pair<...
public class class_name { private void getActiveFlowsWithExecutorHelper( final List<Pair<ExecutableFlow, Optional<Executor>>> flows, final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) { for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) { flows.add(new Pair<...
public class class_name { public static String numericOffset(String initial, String offset) { BigDecimal number; BigDecimal dOffset; try { number = new BigDecimal(initial); dOffset = new BigDecimal(offset); } catch (Exception ex) { return null; ...
public class class_name { public static String numericOffset(String initial, String offset) { BigDecimal number; BigDecimal dOffset; try { number = new BigDecimal(initial); // depends on control dependency: [try], data = [none] dOffset = new BigDecimal(offset); // depen...
public class class_name { public void setPoolSize(int poolSize) { // Assert.isTrue(poolSize > 0, "'poolSize' must be 1 or higher"); this.poolSize = poolSize; if (this.scheduledExecutor instanceof ScheduledThreadPoolExecutor) { ((ScheduledThreadPoolExecutor) this.scheduledExecutor).s...
public class class_name { public void setPoolSize(int poolSize) { // Assert.isTrue(poolSize > 0, "'poolSize' must be 1 or higher"); this.poolSize = poolSize; if (this.scheduledExecutor instanceof ScheduledThreadPoolExecutor) { ((ScheduledThreadPoolExecutor) this.scheduledExecutor).s...
public class class_name { public void addImport(ImportDescr importDescr) { for (Dialect dialect : this.map.values()) { dialect.addImport(importDescr); } } }
public class class_name { public void addImport(ImportDescr importDescr) { for (Dialect dialect : this.map.values()) { dialect.addImport(importDescr); // depends on control dependency: [for], data = [dialect] } } }
public class class_name { private void setCredential(Subject subject, WSPrincipal principal) throws CredentialException { String securityName = principal.getName(); Hashtable<String, ?> customProperties = getUniqueIdHashtableFromSubject(subject); if (customProperties == null || customProperties...
public class class_name { private void setCredential(Subject subject, WSPrincipal principal) throws CredentialException { String securityName = principal.getName(); Hashtable<String, ?> customProperties = getUniqueIdHashtableFromSubject(subject); if (customProperties == null || customProperties...
public class class_name { private static void parsePatternTo(DateTimeFormatterBuilder builder, String pattern) { int length = pattern.length(); int[] indexRef = new int[1]; for (int i=0; i<length; i++) { indexRef[0] = i; String token = parseToken(pattern, indexRef); ...
public class class_name { private static void parsePatternTo(DateTimeFormatterBuilder builder, String pattern) { int length = pattern.length(); int[] indexRef = new int[1]; for (int i=0; i<length; i++) { indexRef[0] = i; // depends on control dependency: [for], data = [i] ...
public class class_name { public UUID getUUID(FastTrackField type) { String value = getString(type); UUID result = null; if (value != null && !value.isEmpty() && value.length() >= 36) { if (value.startsWith("{")) { value = value.substring(1, value.length() - 1);...
public class class_name { public UUID getUUID(FastTrackField type) { String value = getString(type); UUID result = null; if (value != null && !value.isEmpty() && value.length() >= 36) { if (value.startsWith("{")) { value = value.substring(1, value.length() - 1);...
public class class_name { public static JsonObject serialize(Context<?> context) { if (context instanceof NetworkContext) { return serialize(NetworkContext.class.cast(context)); } else if (context instanceof ComponentContext) { return serialize(ComponentContext.class.cast(context)); } else if (...
public class class_name { public static JsonObject serialize(Context<?> context) { if (context instanceof NetworkContext) { return serialize(NetworkContext.class.cast(context)); // depends on control dependency: [if], data = [none] } else if (context instanceof ComponentContext) { return serialize(...
public class class_name { @Override public CommerceTierPriceEntry fetchByC_LtM_Last(long commercePriceEntryId, int minQuantity, OrderByComparator<CommerceTierPriceEntry> orderByComparator) { int count = countByC_LtM(commercePriceEntryId, minQuantity); if (count == 0) { return null; } List<CommerceTie...
public class class_name { @Override public CommerceTierPriceEntry fetchByC_LtM_Last(long commercePriceEntryId, int minQuantity, OrderByComparator<CommerceTierPriceEntry> orderByComparator) { int count = countByC_LtM(commercePriceEntryId, minQuantity); if (count == 0) { return null; // depends on control d...
public class class_name { public void marshall(ReferenceDataSourceUpdate referenceDataSourceUpdate, ProtocolMarshaller protocolMarshaller) { if (referenceDataSourceUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(ReferenceDataSourceUpdate referenceDataSourceUpdate, ProtocolMarshaller protocolMarshaller) { if (referenceDataSourceUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { private static Map<String, String> extractChallenge(String authenticateHeader, String authChallengePrefix) { if (!isValidChallenge(authenticateHeader, authChallengePrefix)) { return null; } authenticateHeader = authenticateHeader.toLowerCase().replace(auth...
public class class_name { private static Map<String, String> extractChallenge(String authenticateHeader, String authChallengePrefix) { if (!isValidChallenge(authenticateHeader, authChallengePrefix)) { return null; // depends on control dependency: [if], data = [none] } authenticate...
public class class_name { protected void extractPropertyDescriptor(Field field, Object defaultInstance) { DefaultPropertyDescriptor desc = new DefaultPropertyDescriptor(); // is parameter hidden PropertyHidden parameterHidden = field.getAnnotation(PropertyHidden.class); if (parame...
public class class_name { protected void extractPropertyDescriptor(Field field, Object defaultInstance) { DefaultPropertyDescriptor desc = new DefaultPropertyDescriptor(); // is parameter hidden PropertyHidden parameterHidden = field.getAnnotation(PropertyHidden.class); if (parame...
public class class_name { private static void ensureSameWidgetSize(final DecoratedTabPanel panel) { if (!panel.isAttached()) { throw new IllegalArgumentException("panel not attached: " + panel); } int maxw = 0; int maxh = 0; for (final Widget widget : panel) { final int w = widget.getOf...
public class class_name { private static void ensureSameWidgetSize(final DecoratedTabPanel panel) { if (!panel.isAttached()) { throw new IllegalArgumentException("panel not attached: " + panel); } int maxw = 0; int maxh = 0; for (final Widget widget : panel) { final int w = widget.getOf...
public class class_name { public static FunctionLib combineFLDs(FunctionLib[] flds) { FunctionLib fl = new FunctionLib(); if (ArrayUtil.isEmpty(flds)) return fl; setAttributes(flds[0], fl); // add functions for (int i = 0; i < flds.length; i++) { copyFunctions(flds[i], fl); } return fl; } }
public class class_name { public static FunctionLib combineFLDs(FunctionLib[] flds) { FunctionLib fl = new FunctionLib(); if (ArrayUtil.isEmpty(flds)) return fl; setAttributes(flds[0], fl); // add functions for (int i = 0; i < flds.length; i++) { copyFunctions(flds[i], fl); // depends on control dependency...
public class class_name { public <T extends Throwable> T throwing(Level level, T throwable) { if (instanceofLAL) { ((LocationAwareLogger) logger).log(THROWING_MARKER, FQCN, level.level, "throwing", null, throwable); } return throwable; } }
public class class_name { public <T extends Throwable> T throwing(Level level, T throwable) { if (instanceofLAL) { ((LocationAwareLogger) logger).log(THROWING_MARKER, FQCN, level.level, "throwing", null, throwable); // depends on control dependency: [if], data = [none] } return thro...
public class class_name { private void enhanceCommandArray(IAgentCommand[] startupCommandAry) throws BadCompletedRequestListener { if (getTraceWriter().getTraceFilterExt() instanceof IncludeAnyOfTheseEventsFilterExt) { IncludeAnyOfTheseEventsFilterExt myFilter = (IncludeAnyOfTheseEventsFilterExt) getTraceWriter(...
public class class_name { private void enhanceCommandArray(IAgentCommand[] startupCommandAry) throws BadCompletedRequestListener { if (getTraceWriter().getTraceFilterExt() instanceof IncludeAnyOfTheseEventsFilterExt) { IncludeAnyOfTheseEventsFilterExt myFilter = (IncludeAnyOfTheseEventsFilterExt) getTraceWriter(...
public class class_name { private void handleSelectTrack(EventModel eventModel, ResourceModel<String> resourceModel) { Optional<TrackInfo> trackInfo = TrackInfoResource.getTrackInfo(eventModel); if (!trackInfo.isPresent()) { musicHelper.playerError(PlayerError.ERROR_ILLEGAL + "command: " + ...
public class class_name { private void handleSelectTrack(EventModel eventModel, ResourceModel<String> resourceModel) { Optional<TrackInfo> trackInfo = TrackInfoResource.getTrackInfo(eventModel); if (!trackInfo.isPresent()) { musicHelper.playerError(PlayerError.ERROR_ILLEGAL + "command: " + ...
public class class_name { protected String getArgumentTypesAsString() { if(!getArguments().isEmpty()) { StringBuilder b = new StringBuilder(); b.append("("); for(int i=0; i<getArguments().size(); ++i) { LightweightTypeReference actualType = getActualType(getArguments().get(i)); if(actualType != null...
public class class_name { protected String getArgumentTypesAsString() { if(!getArguments().isEmpty()) { StringBuilder b = new StringBuilder(); b.append("("); // depends on control dependency: [if], data = [none] for(int i=0; i<getArguments().size(); ++i) { LightweightTypeReference actualType = getActual...
public class class_name { private static List<Element> getLastPartition(List<List<Element>> partitions) { if (partitions.isEmpty()) { List<Element> newPartition = new LinkedList<Element>(); partitions.add(newPartition); return newPartition; } else { return partitions.get(partitions.size() - 1); } } ...
public class class_name { private static List<Element> getLastPartition(List<List<Element>> partitions) { if (partitions.isEmpty()) { List<Element> newPartition = new LinkedList<Element>(); partitions.add(newPartition); // depends on control dependency: [if], data = [none] return newPartition; // depends on...
public class class_name { @Override public float getProgress() { if (length == 0) return 1; if (!isBGZF) return (float)(in.getPosition() - fileStart) / length; try { if (in.peek() == -1) return 1; } catch (IOException e) { return 1; } // Add 1 to the denominator to make sure that we neve...
public class class_name { @Override public float getProgress() { if (length == 0) return 1; if (!isBGZF) return (float)(in.getPosition() - fileStart) / length; try { if (in.peek() == -1) return 1; } catch (IOException e) { return 1; } // depends on control dependency: [catch], data = [none]...
public class class_name { private void index(Set<PermissionBean> permissions) { for (PermissionBean permissionBean : permissions) { PermissionType permissionName = permissionBean.getName(); String orgQualifier = permissionBean.getOrganizationId(); String qualifiedPermission ...
public class class_name { private void index(Set<PermissionBean> permissions) { for (PermissionBean permissionBean : permissions) { PermissionType permissionName = permissionBean.getName(); String orgQualifier = permissionBean.getOrganizationId(); String qualifiedPermission ...
public class class_name { public void endConnection(SuroConnection connection) { if (connection != null && shouldChangeConnection(connection)) { connection.initStat(); connectionPool.put(connection.getServer(), connection); connection = chooseFromPool(); } i...
public class class_name { public void endConnection(SuroConnection connection) { if (connection != null && shouldChangeConnection(connection)) { connection.initStat(); // depends on control dependency: [if], data = [none] connectionPool.put(connection.getServer(), connection); // depend...
public class class_name { public Cell getCellByName(String cellName) { Set<String> keys = cells.keySet(); for (String key : keys) { List<Cell> cellList = cells.get(key); for (Cell c : cellList) { if (c.getCellName().equals(cellName)) { return...
public class class_name { public Cell getCellByName(String cellName) { Set<String> keys = cells.keySet(); for (String key : keys) { List<Cell> cellList = cells.get(key); for (Cell c : cellList) { if (c.getCellName().equals(cellName)) { return...
public class class_name { public static String getFullColumnClassName(String className) { if (className.startsWith("java.")) { return className; } if ("String".equals(className)) { return "java.lang.String"; } else if ("Int".equals(className)) { return "java.lang.Integer"; } else if ("Double...
public class class_name { public static String getFullColumnClassName(String className) { if (className.startsWith("java.")) { return className; // depends on control dependency: [if], data = [none] } if ("String".equals(className)) { return "java.lang.String"; // depends on control dependency: [if], ...
public class class_name { public void process( List<DMatrixRMaj> homographies ) { if( assumeZeroSkew ) { if( homographies.size() < 2 ) throw new IllegalArgumentException("At least two homographies are required. Found "+homographies.size()); } else if( homographies.size() < 3 ) { throw new IllegalArgument...
public class class_name { public void process( List<DMatrixRMaj> homographies ) { if( assumeZeroSkew ) { if( homographies.size() < 2 ) throw new IllegalArgumentException("At least two homographies are required. Found "+homographies.size()); } else if( homographies.size() < 3 ) { throw new IllegalArgument...
public class class_name { public String getServer() { String str = url.getHost(); if( str.length() == 0 ) { return null; } return str; } }
public class class_name { public String getServer() { String str = url.getHost(); if( str.length() == 0 ) { return null; // depends on control dependency: [if], data = [none] } return str; } }
public class class_name { public Observable<ServiceResponse<EffectiveNetworkSecurityGroupListResultInner>> beginListEffectiveNetworkSecurityGroupsWithServiceResponseAsync(String resourceGroupName, String networkInterfaceName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Pa...
public class class_name { public Observable<ServiceResponse<EffectiveNetworkSecurityGroupListResultInner>> beginListEffectiveNetworkSecurityGroupsWithServiceResponseAsync(String resourceGroupName, String networkInterfaceName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Pa...
public class class_name { public <T extends SubSystem> void addSystem(Class<T> systemApi, T system) { SubSystem oldSystem = _systemMap.putIfAbsent(systemApi, system); if (oldSystem != null) { throw new IllegalStateException(L.l("duplicate system '{0}' is not allowed because another system with t...
public class class_name { public <T extends SubSystem> void addSystem(Class<T> systemApi, T system) { SubSystem oldSystem = _systemMap.putIfAbsent(systemApi, system); if (oldSystem != null) { throw new IllegalStateException(L.l("duplicate system '{0}' is not allowed because another system with t...
public class class_name { private void displaySplashScreen(BeanFactory beanFactory) { this.splashScreen = beanFactory.getBean(SplashScreen.class); logger.debug("Displaying application splash screen..."); try { SwingUtilities.invokeAndWait(new Runnable() {...
public class class_name { private void displaySplashScreen(BeanFactory beanFactory) { this.splashScreen = beanFactory.getBean(SplashScreen.class); logger.debug("Displaying application splash screen..."); try { SwingUtilities.invokeAndWait(new Runnable() {...
public class class_name { public boolean isPresentInExternalStore(String id) { if (_sessions != null) { return ((BackedHashMap) _sessions).isPresent(id); } return false; } }
public class class_name { public boolean isPresentInExternalStore(String id) { if (_sessions != null) { return ((BackedHashMap) _sessions).isPresent(id); // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { public TopologyMetric getTopologyMetric(String topologyId) { long start = System.nanoTime(); try { TopologyMetric ret = new TopologyMetric(); List<MetricInfo> topologyMetrics = metricCache.getMetricData(topologyId, MetaType.TOPOLOGY); List<M...
public class class_name { public TopologyMetric getTopologyMetric(String topologyId) { long start = System.nanoTime(); try { TopologyMetric ret = new TopologyMetric(); List<MetricInfo> topologyMetrics = metricCache.getMetricData(topologyId, MetaType.TOPOLOGY); List<M...
public class class_name { public void flush() throws IOException { checkClosed(); try { if (bpos > 0) { lo.write(buf, 0, bpos); } bpos = 0; } catch (SQLException se) { throw new IOException(se.toString()); } } }
public class class_name { public void flush() throws IOException { checkClosed(); try { if (bpos > 0) { lo.write(buf, 0, bpos); // depends on control dependency: [if], data = [none] } bpos = 0; } catch (SQLException se) { throw new IOException(se.toString()); } } }
public class class_name { public void saveTaskUpdateForRetry(SingularityTaskHistoryUpdate taskHistoryUpdate) { String parentPath = ZKPaths.makePath(SNS_TASK_RETRY_ROOT, taskHistoryUpdate.getTaskId().getRequestId()); if (!isChildNodeCountSafe(parentPath)) { LOG.warn("Too many queued webhooks for path {}, ...
public class class_name { public void saveTaskUpdateForRetry(SingularityTaskHistoryUpdate taskHistoryUpdate) { String parentPath = ZKPaths.makePath(SNS_TASK_RETRY_ROOT, taskHistoryUpdate.getTaskId().getRequestId()); if (!isChildNodeCountSafe(parentPath)) { LOG.warn("Too many queued webhooks for path {}, ...
public class class_name { public boolean isValid() { if (documentFields.size() == 0) return false; put(PdfName.FIELDS, documentFields); if (sigFlags != 0) put(PdfName.SIGFLAGS, new PdfNumber(sigFlags)); if (calculationOrder.size() > 0) put(PdfName.CO, calculation...
public class class_name { public boolean isValid() { if (documentFields.size() == 0) return false; put(PdfName.FIELDS, documentFields); if (sigFlags != 0) put(PdfName.SIGFLAGS, new PdfNumber(sigFlags)); if (calculationOrder.size() > 0) put(PdfName.CO, calculation...
public class class_name { Expr and() { Expr expr = equalNotEqual(); for (Tok tok=peek(); tok.sym==Sym.AND; tok=peek()) { move(); expr = new Logic(Sym.AND, expr, equalNotEqual(), location); } return expr; } }
public class class_name { Expr and() { Expr expr = equalNotEqual(); for (Tok tok=peek(); tok.sym==Sym.AND; tok=peek()) { move(); // depends on control dependency: [for], data = [none] expr = new Logic(Sym.AND, expr, equalNotEqual(), location); // depends on control dependency: [for], data = [none] } ...
public class class_name { private Object saveMap(FacesContext context, Map<Serializable, Object> map) { if (map.isEmpty()) { if (!component.initialStateMarked()) { // only need to propagate the component's delta status when // delta tracking has been disabled. We'r...
public class class_name { private Object saveMap(FacesContext context, Map<Serializable, Object> map) { if (map.isEmpty()) { if (!component.initialStateMarked()) { // only need to propagate the component's delta status when // delta tracking has been disabled. We'r...
public class class_name { public VoltTable sortByAverage(String tableName) { List<ProcProfRow> sorted = new ArrayList<ProcProfRow>(m_table); Collections.sort(sorted, new Comparator<ProcProfRow>() { @Override public int compare(ProcProfRow lhs, ProcProfRow rhs) { ...
public class class_name { public VoltTable sortByAverage(String tableName) { List<ProcProfRow> sorted = new ArrayList<ProcProfRow>(m_table); Collections.sort(sorted, new Comparator<ProcProfRow>() { @Override public int compare(ProcProfRow lhs, ProcProfRow rhs) { ...
public class class_name { private final void readGlyf(FontFileReader in) throws IOException { TTFDirTabEntry dirTab = (TTFDirTabEntry)dirTabs.get("glyf"); if (dirTab == null) { throw new IOException("glyf table not found, cannot continue"); } for (int i = 0; i < (numberOfGly...
public class class_name { private final void readGlyf(FontFileReader in) throws IOException { TTFDirTabEntry dirTab = (TTFDirTabEntry)dirTabs.get("glyf"); if (dirTab == null) { throw new IOException("glyf table not found, cannot continue"); } for (int i = 0; i < (numberOfGly...
public class class_name { public ExplorationStep next() { if (this.candidates == null) { return null; } while (true) { int candidate = this.candidates.next(); if (candidate < 0) { return null; } try { if (this.selectChain == null || this.selectChain.select(candidate, this)) { Trans...
public class class_name { public ExplorationStep next() { if (this.candidates == null) { return null; // depends on control dependency: [if], data = [none] } while (true) { int candidate = this.candidates.next(); if (candidate < 0) { return null; // depends on control dependency: [if], data = [non...
public class class_name { private void addReachableRoles(Set<GrantedAuthority> reachableRoles, GrantedAuthority authority) { for (GrantedAuthority testAuthority : reachableRoles) { String testKey = testAuthority.getAuthority(); if ((testKey != null) && (testKey.equals(authority.getAuthority()))) { retu...
public class class_name { private void addReachableRoles(Set<GrantedAuthority> reachableRoles, GrantedAuthority authority) { for (GrantedAuthority testAuthority : reachableRoles) { String testKey = testAuthority.getAuthority(); if ((testKey != null) && (testKey.equals(authority.getAuthority()))) { retu...
public class class_name { private static Expression transformInlineConstants(final Expression exp) { if (exp instanceof AnnotationConstantExpression) { ConstantExpression ce = (ConstantExpression) exp; if (ce.getValue() instanceof AnnotationNode) { // replicate a little ...
public class class_name { private static Expression transformInlineConstants(final Expression exp) { if (exp instanceof AnnotationConstantExpression) { ConstantExpression ce = (ConstantExpression) exp; if (ce.getValue() instanceof AnnotationNode) { // replicate a little ...
public class class_name { public IAtomContainer getUnsetAtomsInAtomContainer(IAtom atom, IAtomContainer ac) { List atoms = ac.getConnectedAtomsList(atom); IAtomContainer connectedAtoms = atom.getBuilder().newInstance(IAtomContainer.class); for (int i = 0; i < atoms.size(); i++) { IA...
public class class_name { public IAtomContainer getUnsetAtomsInAtomContainer(IAtom atom, IAtomContainer ac) { List atoms = ac.getConnectedAtomsList(atom); IAtomContainer connectedAtoms = atom.getBuilder().newInstance(IAtomContainer.class); for (int i = 0; i < atoms.size(); i++) { IA...
public class class_name { @Override public CookieBuilder cookie(String key, String value) { CookieBuilderImpl cookieBuilder = new CookieBuilderImpl(key, value); requestHttp().cookie(cookieBuilder); if (secure() != null) { cookieBuilder.secure(true); } cookieBuilder.httpOnly(tru...
public class class_name { @Override public CookieBuilder cookie(String key, String value) { CookieBuilderImpl cookieBuilder = new CookieBuilderImpl(key, value); requestHttp().cookie(cookieBuilder); if (secure() != null) { cookieBuilder.secure(true); // depends on control dependency: [if...
public class class_name { private static String prepareMessage(EntityConfig config, TaskRequest req) { // Assertions... if (config == null) { String msg = "Argument 'config' cannot be null."; throw new IllegalArgumentException(msg); } if (req == null) { ...
public class class_name { private static String prepareMessage(EntityConfig config, TaskRequest req) { // Assertions... if (config == null) { String msg = "Argument 'config' cannot be null."; throw new IllegalArgumentException(msg); } if (req == null) { ...
public class class_name { public static boolean symbolNeedsQuoting(CharSequence symbol, boolean quoteOperators) { int length = symbol.length(); // If the symbol's text matches an Ion keyword or it's an empty symbol, we must quote it. // Eg,...
public class class_name { public static boolean symbolNeedsQuoting(CharSequence symbol, boolean quoteOperators) { int length = symbol.length(); // If the symbol's text matches an Ion keyword or it's an empty symbol, we must quote it. // Eg,...
public class class_name { public static double getDistanceBetween( IHMConnection connection, Coordinate p1, Coordinate p2, int srid ) throws Exception { if (srid < 0) { srid = 4326; } GeometryFactory gf = new GeometryFactory(); LineString lineString = gf.createLineString(new...
public class class_name { public static double getDistanceBetween( IHMConnection connection, Coordinate p1, Coordinate p2, int srid ) throws Exception { if (srid < 0) { srid = 4326; } GeometryFactory gf = new GeometryFactory(); LineString lineString = gf.createLineString(new...
public class class_name { private JButton getBtnOk() { if (btnOk == null) { btnOk = new JButton(); btnOk.setText(Constant.messages.getString("all.button.save")); btnOk.setMinimumSize(new java.awt.Dimension(75,30)); btnOk.setPreferredSize(new java.awt.Dimension(75,30)); btnOk.setMaximumSize(new j...
public class class_name { private JButton getBtnOk() { if (btnOk == null) { btnOk = new JButton(); // depends on control dependency: [if], data = [none] btnOk.setText(Constant.messages.getString("all.button.save")); // depends on control dependency: [if], data = [none] btnOk.setMinimumSize(new java.awt....
public class class_name { private static boolean endsWith(final String s, final String suffix, final boolean ignoreCase) { if (s == null || suffix == null) { return s == null && suffix == null; } if (suffix.length() > s.length()) { return false; } final i...
public class class_name { private static boolean endsWith(final String s, final String suffix, final boolean ignoreCase) { if (s == null || suffix == null) { return s == null && suffix == null; // depends on control dependency: [if], data = [none] } if (suffix.length() > s.length())...
public class class_name { public static int getRecordsYield() { String s = System.getProperty(RECORDS_YIELD_PROPERTY); int records = Integer.MAX_VALUE; if (s != null) { try { records = Integer.parseInt(s); } catch (NumberFormatException ex) { ...
public class class_name { public static int getRecordsYield() { String s = System.getProperty(RECORDS_YIELD_PROPERTY); int records = Integer.MAX_VALUE; if (s != null) { try { records = Integer.parseInt(s); // depends on control dependency: [try], data = [none] ...
public class class_name { private FieldStats getStats(XField field) { FieldStats stats = statMap.get(field); if (stats == null) { stats = new FieldStats(field); statMap.put(field, stats); } return stats; } }
public class class_name { private FieldStats getStats(XField field) { FieldStats stats = statMap.get(field); if (stats == null) { stats = new FieldStats(field); // depends on control dependency: [if], data = [none] statMap.put(field, stats); // depends on control dependency: [if...
public class class_name { public static String getTwoDay(String sj1, String sj2) { SimpleDateFormat myFormatter = new SimpleDateFormat("yyyy-MM-dd"); long day = 0; try { Date date = myFormatter.parse(sj1); Date mydate = myFormatter.parse(sj2); day = (date.get...
public class class_name { public static String getTwoDay(String sj1, String sj2) { SimpleDateFormat myFormatter = new SimpleDateFormat("yyyy-MM-dd"); long day = 0; try { Date date = myFormatter.parse(sj1); Date mydate = myFormatter.parse(sj2); day = (date.get...
public class class_name { public void setLockingMode( @Nullable final String lockingMode ) { if ( lockingMode == null && _lockingMode == null || lockingMode != null && lockingMode.equals( _lockingMode ) ) { return; } _lockingMode = lockingMode; if ( _manager....
public class class_name { public void setLockingMode( @Nullable final String lockingMode ) { if ( lockingMode == null && _lockingMode == null || lockingMode != null && lockingMode.equals( _lockingMode ) ) { return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public String getHost() { String hostAndPort = hostAndPort(); int indexOfMaohao = hostAndPort.indexOf(":"); if (indexOfMaohao == -1) { return hostAndPort; } else { return hostAndPort.substring(0, indexOfMaohao); } } }
public class class_name { public String getHost() { String hostAndPort = hostAndPort(); int indexOfMaohao = hostAndPort.indexOf(":"); if (indexOfMaohao == -1) { return hostAndPort; // depends on control dependency: [if], data = [none] } else { return hostAndPort....
public class class_name { protected boolean checkImmutable(String translatedName, List<String> immutableResources) { boolean resourceNotImmutable = true; if (immutableResources.contains(translatedName)) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.g...
public class class_name { protected boolean checkImmutable(String translatedName, List<String> immutableResources) { boolean resourceNotImmutable = true; if (immutableResources.contains(translatedName)) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.g...
public class class_name { @Override public IRfSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) { if (clazz.equals(ClientRfSession.class)) { ClientRfSessionDataLocalImpl data = new ClientRfSessionDataLocalImpl(); data.setSessionId(sessionId); return data; ...
public class class_name { @Override public IRfSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) { if (clazz.equals(ClientRfSession.class)) { ClientRfSessionDataLocalImpl data = new ClientRfSessionDataLocalImpl(); data.setSessionId(sessionId); // depends on contro...
public class class_name { public static String digitToChinese(Number n) { if(null == n) { return "零"; } return NumberChineseFormater.format(n.doubleValue(), true, true); } }
public class class_name { public static String digitToChinese(Number n) { if(null == n) { return "零"; // depends on control dependency: [if], data = [none] } return NumberChineseFormater.format(n.doubleValue(), true, true); } }
public class class_name { public boolean execute(Campaign campaign) { boolean campaignResult = true; currentCampaign = campaign; campaignStartTimeStamp = new Date(); try { createReport(); for (CampaignRun run : currentCampaign.getRuns()) { if (Te...
public class class_name { public boolean execute(Campaign campaign) { boolean campaignResult = true; currentCampaign = campaign; campaignStartTimeStamp = new Date(); try { createReport(); // depends on control dependency: [try], data = [none] for (CampaignRun ru...
public class class_name { public static InternalKnowledgeRuntime retrieveKnowledgeRuntime(Object streamContext) { InternalKnowledgeRuntime kruntime = null; if ( streamContext instanceof MarshallerWriteContext ) { MarshallerWriteContext context = (MarshallerWriteContext) streamContext; ...
public class class_name { public static InternalKnowledgeRuntime retrieveKnowledgeRuntime(Object streamContext) { InternalKnowledgeRuntime kruntime = null; if ( streamContext instanceof MarshallerWriteContext ) { MarshallerWriteContext context = (MarshallerWriteContext) streamContext; ...
public class class_name { public static Path[] stat2Paths(FileStatus[] stats) { if (stats == null) return null; Path[] ret = new Path[stats.length]; for (int i = 0; i < stats.length; ++i) { ret[i] = stats[i].getPath(); } return ret; } }
public class class_name { public static Path[] stat2Paths(FileStatus[] stats) { if (stats == null) return null; Path[] ret = new Path[stats.length]; for (int i = 0; i < stats.length; ++i) { ret[i] = stats[i].getPath(); // depends on control dependency: [for], data = [i] } return ret; ...
public class class_name { private void checkIfMessageDuplicated(String msgName, Node msgNode) { if (messageNames.containsKey(msgName)) { MessageLocation location = messageNames.get(msgName); compiler.report(JSError.make(msgNode, MESSAGE_DUPLICATE_KEY, msgName, location.messageNode.getSourceFi...
public class class_name { private void checkIfMessageDuplicated(String msgName, Node msgNode) { if (messageNames.containsKey(msgName)) { MessageLocation location = messageNames.get(msgName); compiler.report(JSError.make(msgNode, MESSAGE_DUPLICATE_KEY, msgName, location.messageNode.getSourceFi...
public class class_name { public <T> Request<T> add(Request<T> request) { // Tag the request as belonging to this queue and add it to the set of current requests. request.setRequestQueue(this); synchronized (mCurrentRequests) { mCurrentRequests.add(request); } // Pr...
public class class_name { public <T> Request<T> add(Request<T> request) { // Tag the request as belonging to this queue and add it to the set of current requests. request.setRequestQueue(this); synchronized (mCurrentRequests) { mCurrentRequests.add(request); } // Pr...
public class class_name { public CreateCloudFormationChangeSetRequest withResourceTypes(String... resourceTypes) { if (this.resourceTypes == null) { setResourceTypes(new java.util.ArrayList<String>(resourceTypes.length)); } for (String ele : resourceTypes) { this.resourc...
public class class_name { public CreateCloudFormationChangeSetRequest withResourceTypes(String... resourceTypes) { if (this.resourceTypes == null) { setResourceTypes(new java.util.ArrayList<String>(resourceTypes.length)); // depends on control dependency: [if], data = [none] } for (...
public class class_name { public static byte[] copyByteBufToByteArray(ByteBuf input) { byte[] copy; int length = input.readableBytes(); if (input.hasArray()) { byte[] inputBytes = input.array(); int offset = input.arrayOffset() + input.readerIndex(); copy = A...
public class class_name { public static byte[] copyByteBufToByteArray(ByteBuf input) { byte[] copy; int length = input.readableBytes(); if (input.hasArray()) { byte[] inputBytes = input.array(); int offset = input.arrayOffset() + input.readerIndex(); copy = A...
public class class_name { public DeviceAttribute[] write_read_attribute(final DeviceProxy deviceProxy, final DeviceAttribute[] deviceAttributes, final String[] readNames) throws DevFailed { checkIfTango(deviceProxy, "write_read_attribute"); build_connection(deviceProxy); // Manage Access control if (d...
public class class_name { public DeviceAttribute[] write_read_attribute(final DeviceProxy deviceProxy, final DeviceAttribute[] deviceAttributes, final String[] readNames) throws DevFailed { checkIfTango(deviceProxy, "write_read_attribute"); build_connection(deviceProxy); // Manage Access control if (d...
public class class_name { @Override public RandomVariableInterface getValue(final double evaluationTime, final LIBORModelMonteCarloSimulationInterface model) throws CalculationException { // Ignite asynchronous calculation if possible ArrayList< Future<RandomVariableInterface> > results = new ArrayList< Future<R...
public class class_name { @Override public RandomVariableInterface getValue(final double evaluationTime, final LIBORModelMonteCarloSimulationInterface model) throws CalculationException { // Ignite asynchronous calculation if possible ArrayList< Future<RandomVariableInterface> > results = new ArrayList< Future<R...
public class class_name { private static double scale(MetricDto metric, double value) { if (metric.getDecimalScale() == null) { return value; } BigDecimal bd = BigDecimal.valueOf(value); return bd.setScale(metric.getDecimalScale(), RoundingMode.HALF_UP).doubleValue(); } }
public class class_name { private static double scale(MetricDto metric, double value) { if (metric.getDecimalScale() == null) { return value; // depends on control dependency: [if], data = [none] } BigDecimal bd = BigDecimal.valueOf(value); return bd.setScale(metric.getDecimalScale(), RoundingMod...
public class class_name { public static String getString(Cursor cursor, String columnName) { if (cursor == null) { return null; } return cursor.getString(cursor.getColumnIndex(columnName)); } }
public class class_name { public static String getString(Cursor cursor, String columnName) { if (cursor == null) { return null; // depends on control dependency: [if], data = [none] } return cursor.getString(cursor.getColumnIndex(columnName)); } }
public class class_name { public InputStream getAsStream(final Archive<?> archive) { final Archive<?> testable = findTestableArchive(archive); final Collection<Node> values = collectPersistenceXml(testable); if (values.size() == 1) { return values.iterator().next().getAsset().openSt...
public class class_name { public InputStream getAsStream(final Archive<?> archive) { final Archive<?> testable = findTestableArchive(archive); final Collection<Node> values = collectPersistenceXml(testable); if (values.size() == 1) { return values.iterator().next().getAsset().openSt...
public class class_name { public void updateDialogTitle() { String title; if ((m_model != null) && (m_model.getGroups().size() > 1)) { title = Messages.get().key( Messages.GUI_PUBLISH_DIALOG_TITLE_3, m_publishDialog.getSelectedWorkflow().getNiceName(), ...
public class class_name { public void updateDialogTitle() { String title; if ((m_model != null) && (m_model.getGroups().size() > 1)) { title = Messages.get().key( Messages.GUI_PUBLISH_DIALOG_TITLE_3, m_publishDialog.getSelectedWorkflow().getNiceName(), ...
public class class_name { public static boolean allDone(Collection<Future> futures) { for (Future f : futures) { if (!f.isDone()) { return false; } } return true; } }
public class class_name { public static boolean allDone(Collection<Future> futures) { for (Future f : futures) { if (!f.isDone()) { return false; // depends on control dependency: [if], data = [none] } } return true; } }
public class class_name { @Override public E next() { if (fetchSize <= 0 || count > fetchSize || scrollComplete) { throw new NoSuchElementException("Nothing to scroll further for:" + m.getEntityClazz()); } else { E objectToReturn = currentObject; ...
public class class_name { @Override public E next() { if (fetchSize <= 0 || count > fetchSize || scrollComplete) { throw new NoSuchElementException("Nothing to scroll further for:" + m.getEntityClazz()); } else { E objectToReturn = currentObject; ...
public class class_name { public double length() { if (this.isEmpty()) return 0; double length = 0; PathIterator3f pi = getPathIterator(MathConstants.SPLINE_APPROXIMATION_RATIO); AbstractPathElement3F pathElement = pi.next(); if (pathElement.type != PathElementType.MOVE_TO) { throw new Ille...
public class class_name { public double length() { if (this.isEmpty()) return 0; double length = 0; PathIterator3f pi = getPathIterator(MathConstants.SPLINE_APPROXIMATION_RATIO); AbstractPathElement3F pathElement = pi.next(); if (pathElement.type != PathElementType.MOVE_TO) { throw new Ille...
public class class_name { public void marshall(CreateLogStreamRequest createLogStreamRequest, ProtocolMarshaller protocolMarshaller) { if (createLogStreamRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(CreateLogStreamRequest createLogStreamRequest, ProtocolMarshaller protocolMarshaller) { if (createLogStreamRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { @Override public EClass getIfcAudioVisualAppliance() { if (ifcAudioVisualApplianceEClass == null) { ifcAudioVisualApplianceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(29); } return ifcAudioVisualApplianceEClass; }...
public class class_name { @Override public EClass getIfcAudioVisualAppliance() { if (ifcAudioVisualApplianceEClass == null) { ifcAudioVisualApplianceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(29); // depends on control dependency: [if], data = [...
public class class_name { public static INDArray toArray(ArrowWritableRecordBatch arrowWritableRecordBatch) { List<FieldVector> columnVectors = arrowWritableRecordBatch.getList(); Schema schema = arrowWritableRecordBatch.getSchema(); for(int i = 0; i < schema.numColumns(); i++) { sw...
public class class_name { public static INDArray toArray(ArrowWritableRecordBatch arrowWritableRecordBatch) { List<FieldVector> columnVectors = arrowWritableRecordBatch.getList(); Schema schema = arrowWritableRecordBatch.getSchema(); for(int i = 0; i < schema.numColumns(); i++) { sw...
public class class_name { public ClassInfo getClassInfo(final String className) { for (final ClassInfo ci : classInfoSet) { if (ci.getName().equals(className)) { return ci; } } return null; } }
public class class_name { public ClassInfo getClassInfo(final String className) { for (final ClassInfo ci : classInfoSet) { if (ci.getName().equals(className)) { return ci; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { public static String reverseDelimited(final String str, final char delimiter) { if (N.isNullOrEmpty(str)) { return str; } // could implement manually, but simple way is to reuse other, // probably slower, methods. final String[] strs...
public class class_name { public static String reverseDelimited(final String str, final char delimiter) { if (N.isNullOrEmpty(str)) { return str; // depends on control dependency: [if], data = [none] } // could implement manually, but simple way is to reuse other, // ...
public class class_name { public double[] applyRelativeInverse(double[] v) { if(inv == null) { updateInverse(); } return unhomogeneRelativeVector(times(inv, homogeneRelativeVector(v))); } }
public class class_name { public double[] applyRelativeInverse(double[] v) { if(inv == null) { updateInverse(); // depends on control dependency: [if], data = [none] } return unhomogeneRelativeVector(times(inv, homogeneRelativeVector(v))); } }
public class class_name { public static boolean isUsingGenericsOrIsArrayUsingGenerics(ClassNode cn) { if (cn.isArray()) { return isUsingGenericsOrIsArrayUsingGenerics(cn.getComponentType()); } return (cn.isUsingGenerics() && cn.getGenericsTypes() != null); } }
public class class_name { public static boolean isUsingGenericsOrIsArrayUsingGenerics(ClassNode cn) { if (cn.isArray()) { return isUsingGenericsOrIsArrayUsingGenerics(cn.getComponentType()); // depends on control dependency: [if], data = [none] } return (cn.isUsingGenerics() && cn.g...