code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void marshall(DeleteFileShareRequest deleteFileShareRequest, ProtocolMarshaller protocolMarshaller) { if (deleteFileShareRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(DeleteFileShareRequest deleteFileShareRequest, ProtocolMarshaller protocolMarshaller) { if (deleteFileShareRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public static double blackScholesOptionValue( double initialStockValue, double riskFreeRate, double volatility, double optionMaturity, double optionStrike, boolean isCall) { double callValue = blackScholesOptionValue(initialStockValue, riskFreeRate, volatility, optionMatu...
public class class_name { public static double blackScholesOptionValue( double initialStockValue, double riskFreeRate, double volatility, double optionMaturity, double optionStrike, boolean isCall) { double callValue = blackScholesOptionValue(initialStockValue, riskFreeRate, volatility, optionMatu...
public class class_name { public String getUserCertFile() { String location; location = System.getProperty("X509_USER_CERT"); if (location != null) { return location; } location = getProperty("usercert"); if (location != null) { return location; } return ConfigUtil.discoverUserCertLocation(); } }
public class class_name { public String getUserCertFile() { String location; location = System.getProperty("X509_USER_CERT"); if (location != null) { return location; // depends on control dependency: [if], data = [none] } location = getProperty("usercert"); if (location != null) { return location; // ...
public class class_name { private AstNumList parseNumList() { ArrayList<Double> bases = new ArrayList<>(); ArrayList<Double> strides = new ArrayList<>(); ArrayList<Long> counts = new ArrayList<>(); while (skipWS() != ']') { double base = number(); double count = 1; double stride = 1;...
public class class_name { private AstNumList parseNumList() { ArrayList<Double> bases = new ArrayList<>(); ArrayList<Double> strides = new ArrayList<>(); ArrayList<Long> counts = new ArrayList<>(); while (skipWS() != ']') { double base = number(); double count = 1; double stride = 1;...
public class class_name { public static Point3dfx convert(Tuple3D<?> tuple) { if (tuple instanceof Point3dfx) { return (Point3dfx) tuple; } return new Point3dfx(tuple.getX(), tuple.getY(), tuple.getZ()); } }
public class class_name { public static Point3dfx convert(Tuple3D<?> tuple) { if (tuple instanceof Point3dfx) { return (Point3dfx) tuple; // depends on control dependency: [if], data = [none] } return new Point3dfx(tuple.getX(), tuple.getY(), tuple.getZ()); } }
public class class_name { @Override @SuppressWarnings("deprecation") public byte[] takeScreenshot() { ViewHierarchyAnalyzer viewAnalyzer = ViewHierarchyAnalyzer.getDefaultInstance(); // TODO ddary review later, but with getRecentDecorView() it seems to work better // long drawingTime = 0; // View ...
public class class_name { @Override @SuppressWarnings("deprecation") public byte[] takeScreenshot() { ViewHierarchyAnalyzer viewAnalyzer = ViewHierarchyAnalyzer.getDefaultInstance(); // TODO ddary review later, but with getRecentDecorView() it seems to work better // long drawingTime = 0; // View ...
public class class_name { public static String getPreparedSql(String patternSql) { Matcher matcher = PATTERN.matcher(patternSql); StringBuilder preparedSql = new StringBuilder(); int i = 0; int start = 0; while (matcher.find()) { i++; preparedSql.append(p...
public class class_name { public static String getPreparedSql(String patternSql) { Matcher matcher = PATTERN.matcher(patternSql); StringBuilder preparedSql = new StringBuilder(); int i = 0; int start = 0; while (matcher.find()) { i++; // depends on control dependency...
public class class_name { public static TimeZone getBrowserTimeZone() { if (!StringUtils.isEmpty(fixedTimeZoneProperty)) { return TimeZone.getTimeZone(fixedTimeZoneProperty); } final WebBrowser webBrowser = com.vaadin.server.Page.getCurrent().getWebBrowser(); final String...
public class class_name { public static TimeZone getBrowserTimeZone() { if (!StringUtils.isEmpty(fixedTimeZoneProperty)) { return TimeZone.getTimeZone(fixedTimeZoneProperty); // depends on control dependency: [if], data = [none] } final WebBrowser webBrowser = com.vaadin.server.P...
public class class_name { @Override public synchronized void stop(final StopContext context) { Runnable r = new Runnable() { @Override public void run() { try { StreamUtils.safeClose(connection); responseAttachmentSupport.shutd...
public class class_name { @Override public synchronized void stop(final StopContext context) { Runnable r = new Runnable() { @Override public void run() { try { StreamUtils.safeClose(connection); // depends on control dependency: [try], data = [no...
public class class_name { private Map<Integer, Class<? extends T>> findInstanceAbleScript(Set<Class<? extends T>> scriptClazzs) throws InstantiationException, IllegalAccessException { Map<Integer, Class<? extends T>> codeMap = new ConcurrentHashMap<Integer, Class<? extends T>>(); for (Class<? extends T> scriptC...
public class class_name { private Map<Integer, Class<? extends T>> findInstanceAbleScript(Set<Class<? extends T>> scriptClazzs) throws InstantiationException, IllegalAccessException { Map<Integer, Class<? extends T>> codeMap = new ConcurrentHashMap<Integer, Class<? extends T>>(); for (Class<? extends T> scriptC...
public class class_name { @Override public Iterable<Object> loadAllKeys() { if (isMapLoader()) { Iterable<Object> allKeys; try { allKeys = mapLoader.loadAllKeys(); } catch (AbstractMethodError e) { // Invoke reflectively to preserve backwa...
public class class_name { @Override public Iterable<Object> loadAllKeys() { if (isMapLoader()) { Iterable<Object> allKeys; try { allKeys = mapLoader.loadAllKeys(); // depends on control dependency: [try], data = [none] } catch (AbstractMethodError e) { ...
public class class_name { @Override public boolean subscribe(IConsumer consumer, Map<String, Object> paramMap) { if (consumer instanceof IPushableConsumer) { boolean success = super.subscribe(consumer, paramMap); if (log.isDebugEnabled()) { log.debug("Consumer subscr...
public class class_name { @Override public boolean subscribe(IConsumer consumer, Map<String, Object> paramMap) { if (consumer instanceof IPushableConsumer) { boolean success = super.subscribe(consumer, paramMap); if (log.isDebugEnabled()) { log.debug("Consumer subscr...
public class class_name { public static String get( String calendarType, DisplayStyle style, Locale locale ) { DisplayMode mode = DisplayMode.ofStyle(style.getStyleValue()); if (calendarType.equals(CalendarText.ISO_CALENDAR_TYPE)) { return CalendarText.patternF...
public class class_name { public static String get( String calendarType, DisplayStyle style, Locale locale ) { DisplayMode mode = DisplayMode.ofStyle(style.getStyleValue()); if (calendarType.equals(CalendarText.ISO_CALENDAR_TYPE)) { return CalendarText.patternF...
public class class_name { public EEnum getIfcSurfaceSide() { if (ifcSurfaceSideEEnum == null) { ifcSurfaceSideEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(908); } return ifcSurfaceSideEEnum; } }
public class class_name { public EEnum getIfcSurfaceSide() { if (ifcSurfaceSideEEnum == null) { ifcSurfaceSideEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(908); // depends on control dependency: [if], data = [none] } return ifcSurfaceSideEEn...
public class class_name { public static double normInf(double[] x) { int n = x.length; double f = Math.abs(x[0]); for (int i = 1; i < n; i++) { f = Math.max(f, Math.abs(x[i])); } return f; } }
public class class_name { public static double normInf(double[] x) { int n = x.length; double f = Math.abs(x[0]); for (int i = 1; i < n; i++) { f = Math.max(f, Math.abs(x[i])); // depends on control dependency: [for], data = [i] } return f; } }
public class class_name { public int getServerPort() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); } // 321485 int port = this._request.getServerPort(); if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { /...
public class class_name { public int getServerPort() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); // depends on control dependency: [if], data = [none] } // 321485 int port = this._request.getServerPort(); if (TraceComponent.isAny...
public class class_name { public int skip(int maxSize) { int s = maxSize; while (hasRemaining()) { ByteBuf buf = bufs[first]; int remaining = buf.readRemaining(); if (s < remaining) { buf.moveHead(s); return maxSize; } else { buf.recycle(); first = next(first); s -= remaining; } ...
public class class_name { public int skip(int maxSize) { int s = maxSize; while (hasRemaining()) { ByteBuf buf = bufs[first]; int remaining = buf.readRemaining(); if (s < remaining) { buf.moveHead(s); // depends on control dependency: [if], data = [(s] return maxSize; // depends on control depende...
public class class_name { public void updateValue() { try { Method method = m_propertyMetadata.getSetMethod(); //Object convertedValue = ValidationUtils.convertTo(getClazz(), m_currentValue); if (m_currentValue == null && method.getParameterTypes()[0].isPrimitive...
public class class_name { public void updateValue() { try { Method method = m_propertyMetadata.getSetMethod(); //Object convertedValue = ValidationUtils.convertTo(getClazz(), m_currentValue); if (m_currentValue == null && method.getParameterTypes()[0].isPrimitive...
public class class_name { private boolean checkParents( boolean exclusive ) { if (path.equals("/")) { return true; } if (owner == null) { // no owner, checking parents return parent != null && parent.checkParents(exclusive); } // there already...
public class class_name { private boolean checkParents( boolean exclusive ) { if (path.equals("/")) { return true; // depends on control dependency: [if], data = [none] } if (owner == null) { // no owner, checking parents return parent != null && parent.check...
public class class_name { @Override protected void readRow(int uniqueID, byte[] data) { if (data[0] != (byte) 0xFF) { Map<String, Object> map = new HashMap<String, Object>(); map.put("UNIQUE_ID", Integer.valueOf(uniqueID)); map.put("NAME", PEPUtility.getString(data, 1, 8)); ...
public class class_name { @Override protected void readRow(int uniqueID, byte[] data) { if (data[0] != (byte) 0xFF) { Map<String, Object> map = new HashMap<String, Object>(); map.put("UNIQUE_ID", Integer.valueOf(uniqueID)); // depends on control dependency: [if], data = [none] ...
public class class_name { public void printInferredRelations(ClassDoc c) { // check if the source is excluded from inference if (hidden(c)) return; Options opt = optionProvider.getOptionsFor(c); for (FieldDoc field : c.fields(false)) { if(hidden(field)) continue; // skip statics if(field.is...
public class class_name { public void printInferredRelations(ClassDoc c) { // check if the source is excluded from inference if (hidden(c)) return; Options opt = optionProvider.getOptionsFor(c); for (FieldDoc field : c.fields(false)) { if(hidden(field)) continue; // skip statics if(field.is...
public class class_name { public void stop() { // Invalidate all sessions to cause unbind events ArrayList sessions = new ArrayList(_sessions.values()); for (Iterator i = sessions.iterator(); i.hasNext(); ) { Session session = (Session)i.next(); session.inval...
public class class_name { public void stop() { // Invalidate all sessions to cause unbind events ArrayList sessions = new ArrayList(_sessions.values()); for (Iterator i = sessions.iterator(); i.hasNext(); ) { Session session = (Session)i.next(); session.inval...
public class class_name { @Override @Transactional(propagation = Propagation.NEVER) public List<Long> getResources(final String theUuid, int theFrom, int theTo) { TransactionTemplate txTemplate = new TransactionTemplate(myManagedTxManager); txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQU...
public class class_name { @Override @Transactional(propagation = Propagation.NEVER) public List<Long> getResources(final String theUuid, int theFrom, int theTo) { TransactionTemplate txTemplate = new TransactionTemplate(myManagedTxManager); txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQU...
public class class_name { public void join() { try { if (server != null) server.join(); if (triggerThread != null) triggerThread.join(); if (urfThread != null) urfThread.join(); if (blockFixerThread != null) blockFixerThread.join(); if (blockCopierThread != null) blockCopierThread.joi...
public class class_name { public void join() { try { if (server != null) server.join(); if (triggerThread != null) triggerThread.join(); if (urfThread != null) urfThread.join(); if (blockFixerThread != null) blockFixerThread.join(); if (blockCopierThread != null) blockCopierThread.joi...
public class class_name { protected boolean performEditOperation(HttpServletRequest request) throws CmsException { boolean useTempfileProject = Boolean.valueOf(getParamUsetempfileproject()).booleanValue(); try { if (useTempfileProject) { switchToTempProject(); }...
public class class_name { protected boolean performEditOperation(HttpServletRequest request) throws CmsException { boolean useTempfileProject = Boolean.valueOf(getParamUsetempfileproject()).booleanValue(); try { if (useTempfileProject) { switchToTempProject(); // depends on...
public class class_name { @Override public Integer getInteger(final String key, final Integer defaultValue) { try { String value = get(key); if (value == null) { return defaultValue; } return Integer.valueOf(value); } catch (NumberFormatException ex) { throw new ConversionException(ex); } ...
public class class_name { @Override public Integer getInteger(final String key, final Integer defaultValue) { try { String value = get(key); if (value == null) { return defaultValue; // depends on control dependency: [if], data = [none] } return Integer.valueOf(value); // depends on control depend...
public class class_name { public static void configure(Job conf, SimpleConfiguration config) { try { FluoConfiguration fconfig = new FluoConfiguration(config); try (Environment env = new Environment(fconfig)) { long ts = env.getSharedResources().getTimestampTracker().allocateTimesta...
public class class_name { public static void configure(Job conf, SimpleConfiguration config) { try { FluoConfiguration fconfig = new FluoConfiguration(config); try (Environment env = new Environment(fconfig)) { long ts = env.getSharedResources().getTimestampTracker().allocateTimesta...
public class class_name { public int purge() { int result = 0; synchronized(queue) { for (int i = queue.size(); i > 0; i--) { if (queue.get(i).state == TimerTask.CANCELLED) { queue.quickRemove(i); result++; } ...
public class class_name { public int purge() { int result = 0; synchronized(queue) { for (int i = queue.size(); i > 0; i--) { if (queue.get(i).state == TimerTask.CANCELLED) { queue.quickRemove(i); // depends on control dependency: [if], data = [none...
public class class_name { public static List<Node> getParentChangeScopeNodes(List<Node> scopeNodes) { Set<Node> parentScopeNodes = new LinkedHashSet<>(scopeNodes); for (Node scopeNode : scopeNodes) { parentScopeNodes.add(getEnclosingChangeScopeRoot(scopeNode)); } return new ArrayList<>(parentScop...
public class class_name { public static List<Node> getParentChangeScopeNodes(List<Node> scopeNodes) { Set<Node> parentScopeNodes = new LinkedHashSet<>(scopeNodes); for (Node scopeNode : scopeNodes) { parentScopeNodes.add(getEnclosingChangeScopeRoot(scopeNode)); // depends on control dependency: [for], da...
public class class_name { public void addExtensions(Collection<ExtensionElement> extensions) { if (extensions == null) return; for (ExtensionElement packetExtension : extensions) { addExtension(packetExtension); } } }
public class class_name { public void addExtensions(Collection<ExtensionElement> extensions) { if (extensions == null) return; for (ExtensionElement packetExtension : extensions) { addExtension(packetExtension); // depends on control dependency: [for], data = [packetExtension] } ...
public class class_name { private void _processQueue () { SoftValue <K, V> aSoftValue; while ((aSoftValue = GenericReflection.uncheckedCast (m_aQueue.poll ())) != null) { m_aSrcMap.remove (aSoftValue.m_aKey); } } }
public class class_name { private void _processQueue () { SoftValue <K, V> aSoftValue; while ((aSoftValue = GenericReflection.uncheckedCast (m_aQueue.poll ())) != null) { m_aSrcMap.remove (aSoftValue.m_aKey); // depends on control dependency: [while], data = [none] } } }
public class class_name { public Object execute(final Map<Object, Object> iArgs) { ODatabaseDocumentInternal db = getDatabase(); db.begin(); if (className == null && clusterName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); OMo...
public class class_name { public Object execute(final Map<Object, Object> iArgs) { ODatabaseDocumentInternal db = getDatabase(); db.begin(); if (className == null && clusterName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); OMo...
public class class_name { @Override public Location translate() { if (this.location == null) { // In OCPP 1.5, OUTLET is the default value. return Location.OUTLET; } switch (this.location) { case INLET: return Location.INLET; ...
public class class_name { @Override public Location translate() { if (this.location == null) { // In OCPP 1.5, OUTLET is the default value. return Location.OUTLET; // depends on control dependency: [if], data = [none] } switch (this.location) { case INLE...
public class class_name { public static byte getByte(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 1)) { return segments[0].get(offset); } else { return getByteMultiSegments(segments, offset); } } }
public class class_name { public static byte getByte(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 1)) { return segments[0].get(offset); // depends on control dependency: [if], data = [none] } else { return getByteMultiSegments(segments, offset); // depends on control dependenc...
public class class_name { private VectorServerLayer searchLayer(MapPresenter mapPresenter, String layerId) { if (layerId != null) { for (int i = 0; i < mapPresenter.getLayersModel().getLayerCount(); i++) { Layer layer = mapPresenter.getLayersModel().getLayer(i); if (layer instanceof VectorServerLayer) { ...
public class class_name { private VectorServerLayer searchLayer(MapPresenter mapPresenter, String layerId) { if (layerId != null) { for (int i = 0; i < mapPresenter.getLayersModel().getLayerCount(); i++) { Layer layer = mapPresenter.getLayersModel().getLayer(i); if (layer instanceof VectorServerLayer) { ...
public class class_name { public static String toBinaryString(byte[] bytes, boolean isMSB) { StringBuilder sb = new StringBuilder(); for (byte b : bytes) { String binary = String.format("%8s", Integer.toBinaryString(b & 0xFF)) .replace(' ', '0'); if (isMSB) sb.append(binary); ...
public class class_name { public static String toBinaryString(byte[] bytes, boolean isMSB) { StringBuilder sb = new StringBuilder(); for (byte b : bytes) { String binary = String.format("%8s", Integer.toBinaryString(b & 0xFF)) .replace(' ', '0'); // depends on control dependency: [for], data = ...
public class class_name { protected void writeObject(Object o) { if (o == null) { return; } getPersistenceDelegate(o.getClass()).writeObject(o, this); } }
public class class_name { protected void writeObject(Object o) { if (o == null) { return; // depends on control dependency: [if], data = [none] } getPersistenceDelegate(o.getClass()).writeObject(o, this); } }
public class class_name { private void addDryRun(GitAddOptions options, GitAddResponseImpl response) { if (options.dryRun()) { response.setDryRun(true); } } }
public class class_name { private void addDryRun(GitAddOptions options, GitAddResponseImpl response) { if (options.dryRun()) { response.setDryRun(true); // depends on control dependency: [if], data = [none] } } }
public class class_name { public DescribeAutomationExecutionsRequest withFilters(AutomationExecutionFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<AutomationExecutionFilter>(filters.length)); } for (AutomationExecutionFilter el...
public class class_name { public DescribeAutomationExecutionsRequest withFilters(AutomationExecutionFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<AutomationExecutionFilter>(filters.length)); // depends on control dependency: [if], data = [non...
public class class_name { public void marshall(ElasticsearchSettings elasticsearchSettings, ProtocolMarshaller protocolMarshaller) { if (elasticsearchSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(ElasticsearchSettings elasticsearchSettings, ProtocolMarshaller protocolMarshaller) { if (elasticsearchSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { @Override public void export(ITextNode[] nodes, String masterlanguage, String language, Status[] states) { LOG.info("Exporting CSV file..."); String[][] values = getValues(nodes, masterlanguage, language, states); try { printer.print(values); } catch (IOException e) { ...
public class class_name { @Override public void export(ITextNode[] nodes, String masterlanguage, String language, Status[] states) { LOG.info("Exporting CSV file..."); String[][] values = getValues(nodes, masterlanguage, language, states); try { printer.print(values); // depends on control dependen...
public class class_name { public synchronized KeyStroke getNextCharacter(boolean blockingIO) throws IOException { KeyStroke bestMatch = null; int bestLen = 0; int curLen = 0; while(true) { if ( curLen < currentMatching.size() ) { // (re-)consume characters...
public class class_name { public synchronized KeyStroke getNextCharacter(boolean blockingIO) throws IOException { KeyStroke bestMatch = null; int bestLen = 0; int curLen = 0; while(true) { if ( curLen < currentMatching.size() ) { // (re-)consume characters...
public class class_name { @SuppressWarnings("unchecked") public static <E> E getObject(String className) { if (className == null) { return (E) null; } try { return (E) Class.forName(className).newInstance(); } catch (InstantiationException e) { th...
public class class_name { @SuppressWarnings("unchecked") public static <E> E getObject(String className) { if (className == null) { return (E) null; // depends on control dependency: [if], data = [none] } try { return (E) Class.forName(className).newInstance(); // de...
public class class_name { public void marshall(ListSimulationApplicationsRequest listSimulationApplicationsRequest, ProtocolMarshaller protocolMarshaller) { if (listSimulationApplicationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(ListSimulationApplicationsRequest listSimulationApplicationsRequest, ProtocolMarshaller protocolMarshaller) { if (listSimulationApplicationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { private List<GovernmentBodyAnnualOutcomeSummary> readCsvContent(final InputStream is,final String[] specificFields) throws IOException { final CSVParser parser = CSVParser.parse(new InputStreamReader(is,Charsets.UTF_8), CSVFormat.EXCEL.withHeader().withDelimiter(';')); final List<CSVRecor...
public class class_name { private List<GovernmentBodyAnnualOutcomeSummary> readCsvContent(final InputStream is,final String[] specificFields) throws IOException { final CSVParser parser = CSVParser.parse(new InputStreamReader(is,Charsets.UTF_8), CSVFormat.EXCEL.withHeader().withDelimiter(';')); final List<CSVRecor...
public class class_name { public Actions sendKeys(CharSequence... keys) { if (isBuildingActions()) { action.addAction(new SendKeysAction(jsonKeyboard, jsonMouse, null, keys)); } return sendKeysInTicks(keys); } }
public class class_name { public Actions sendKeys(CharSequence... keys) { if (isBuildingActions()) { action.addAction(new SendKeysAction(jsonKeyboard, jsonMouse, null, keys)); // depends on control dependency: [if], data = [none] } return sendKeysInTicks(keys); } }
public class class_name { private void generateTableAttributeUpdates(long currentOffset, long newOffset, int processedCount, UpdateInstructions update) { // Add an Update for the INDEX_OFFSET to indicate we have indexed everything up to this offset. Preconditions.checkArgument(currentOffset <= newOffse...
public class class_name { private void generateTableAttributeUpdates(long currentOffset, long newOffset, int processedCount, UpdateInstructions update) { // Add an Update for the INDEX_OFFSET to indicate we have indexed everything up to this offset. Preconditions.checkArgument(currentOffset <= newOffse...
public class class_name { public void pauseAll() { FileDownloadTaskLauncher.getImpl().expireAll(); final BaseDownloadTask.IRunningTask[] downloadList = FileDownloadList.getImpl().copy(); for (BaseDownloadTask.IRunningTask task : downloadList) { task.getOrigin().pause(); } ...
public class class_name { public void pauseAll() { FileDownloadTaskLauncher.getImpl().expireAll(); final BaseDownloadTask.IRunningTask[] downloadList = FileDownloadList.getImpl().copy(); for (BaseDownloadTask.IRunningTask task : downloadList) { task.getOrigin().pause(); // depends o...
public class class_name { public int getFontNumber(RtfFont font) { if(font instanceof RtfParagraphStyle) { font = new RtfFont(this.document, font); } int fontIndex = -1; for(int i = 0; i < fontList.size(); i++) { if(fontList.get(i).equals(font)) { ...
public class class_name { public int getFontNumber(RtfFont font) { if(font instanceof RtfParagraphStyle) { font = new RtfFont(this.document, font); // depends on control dependency: [if], data = [none] } int fontIndex = -1; for(int i = 0; i < fontList.size(); i++) { ...
public class class_name { public static String urlEncode(String value) { try { return URLEncoder.encode(value, StandardCharsets.UTF_8.displayName()); } catch (UnsupportedEncodingException ex) { throw new Utf8EncodingException(ex); } } }
public class class_name { public static String urlEncode(String value) { try { return URLEncoder.encode(value, StandardCharsets.UTF_8.displayName()); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException ex) { throw new Utf8EncodingException(ex); } // depends on con...
public class class_name { private static void bodyWithBuilderAndSeparator( SourceBuilder code, Datatype datatype, Map<Property, PropertyCodeGenerator> generatorsByProperty, String typename) { Variable result = new Variable("result"); Variable separator = new Variable("separator"); ...
public class class_name { private static void bodyWithBuilderAndSeparator( SourceBuilder code, Datatype datatype, Map<Property, PropertyCodeGenerator> generatorsByProperty, String typename) { Variable result = new Variable("result"); Variable separator = new Variable("separator"); ...
public class class_name { public final void commitPersistUnlock(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commitPersistUnlock", transaction); AbstractItem item = null; ...
public class class_name { public final void commitPersistUnlock(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commitPersistUnlock", transaction); AbstractItem item = null; ...
public class class_name { protected Collection childrenNamesSpi(String nodePath) { HashSet allKids = new HashSet(); try { if (nodeExists( nodePath)) { PreferencesExt node = (PreferencesExt) node( nodePath); allKids.addAll( node.children.keySet()); } } catch (java.u...
public class class_name { protected Collection childrenNamesSpi(String nodePath) { HashSet allKids = new HashSet(); try { if (nodeExists( nodePath)) { PreferencesExt node = (PreferencesExt) node( nodePath); allKids.addAll( node.children.keySet()); // depends on control dependenc...
public class class_name { private void fireTangoArchiveEvent(TangoArchive tangoArchive, EventData eventData) { TangoArchiveEvent archiveEvent = new TangoArchiveEvent(tangoArchive, eventData); // Notifying those that are interested in this event ArrayList<EventListener> listeners = event_listene...
public class class_name { private void fireTangoArchiveEvent(TangoArchive tangoArchive, EventData eventData) { TangoArchiveEvent archiveEvent = new TangoArchiveEvent(tangoArchive, eventData); // Notifying those that are interested in this event ArrayList<EventListener> listeners = event_listene...
public class class_name { private <T> MembersInjectorImpl<T> createWithListeners(TypeLiteral<T> type, Errors errors) throws ErrorsException { int numErrorsBefore = errors.size(); Set<InjectionPoint> injectionPoints; try { injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); ...
public class class_name { private <T> MembersInjectorImpl<T> createWithListeners(TypeLiteral<T> type, Errors errors) throws ErrorsException { int numErrorsBefore = errors.size(); Set<InjectionPoint> injectionPoints; try { injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); ...
public class class_name { public ColumnValueSelector<?> makeColumnValueSelector(String columnName, ColumnSelectorFactory factory) { final VirtualColumn virtualColumn = getVirtualColumn(columnName); if (virtualColumn == null) { throw new IAE("No such virtual column[%s]", columnName); } else { ...
public class class_name { public ColumnValueSelector<?> makeColumnValueSelector(String columnName, ColumnSelectorFactory factory) { final VirtualColumn virtualColumn = getVirtualColumn(columnName); if (virtualColumn == null) { throw new IAE("No such virtual column[%s]", columnName); } else { ...
public class class_name { protected void parseBindType(RoundEnvironment roundEnv) { for (Element item : roundEnv.getElementsAnnotatedWith(BindType.class)) { AssertKripton.assertTrueOrInvalidKindForAnnotationException(item.getKind() == ElementKind.CLASS, item, BindType.class); globalBeanElements.put(item.toS...
public class class_name { protected void parseBindType(RoundEnvironment roundEnv) { for (Element item : roundEnv.getElementsAnnotatedWith(BindType.class)) { AssertKripton.assertTrueOrInvalidKindForAnnotationException(item.getKind() == ElementKind.CLASS, item, BindType.class); // depends on control dependency: [...
public class class_name { private void convert(final int iIndex) { if (converted || !convertToRecord) return; final Object o = list.get(iIndex); final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get(); if (o != null) { ODocument doc = new ODocument(); if (o instanceof O...
public class class_name { private void convert(final int iIndex) { if (converted || !convertToRecord) return; final Object o = list.get(iIndex); final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get(); if (o != null) { ODocument doc = new ODocument(); if (o instanceof O...
public class class_name { public void releaseCache() { if (originalThunks != null) { // OPTIMIZATION: // Rather than use the standard iterator, which creates lots of int[] arrays on the heap, which need to be GC'd, // we use the fast version that just mutates one array. Sinc...
public class class_name { public void releaseCache() { if (originalThunks != null) { // OPTIMIZATION: // Rather than use the standard iterator, which creates lots of int[] arrays on the heap, which need to be GC'd, // we use the fast version that just mutates one array. Sinc...
public class class_name { @Override public void accept(double value) { writeLock.lock(); try { eliminate(); endIncr(); PrimitiveIterator.OfInt rev = modReverseIterator(); int e = rev.nextInt(); assign(e, value); ...
public class class_name { @Override public void accept(double value) { writeLock.lock(); try { eliminate(); // depends on control dependency: [try], data = [none] endIncr(); // depends on control dependency: [try], data = [none] PrimitiveItera...
public class class_name { public boolean isValid() { if (name == null) { return false; } if (type == null || !type.isValid()) { return false; } else if (type == Type.Link) { if (url == null) { return false; } } ...
public class class_name { public boolean isValid() { if (name == null) { return false; // depends on control dependency: [if], data = [none] } if (type == null || !type.isValid()) { return false; // depends on control dependency: [if], data = [none] } else if (t...
public class class_name { public String digest(String message) { final byte[] messageAsByteArray; try { messageAsByteArray = message.getBytes(charsetName); } catch (UnsupportedEncodingException e) { throw new DigestException("error converting message to byte array: charsetName=" + charsetName, e); } ...
public class class_name { public String digest(String message) { final byte[] messageAsByteArray; try { messageAsByteArray = message.getBytes(charsetName); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new DigestException("error converting message ...
public class class_name { public void marshall(InputAttachment inputAttachment, ProtocolMarshaller protocolMarshaller) { if (inputAttachment == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inputAt...
public class class_name { public void marshall(InputAttachment inputAttachment, ProtocolMarshaller protocolMarshaller) { if (inputAttachment == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inputAt...
public class class_name { @Override @SuppressWarnings("unchecked") public void visit(final Visitable visitable) { if (visitable instanceof Identifiable) { ((Identifiable) visitable).setId(null); } } }
public class class_name { @Override @SuppressWarnings("unchecked") public void visit(final Visitable visitable) { if (visitable instanceof Identifiable) { ((Identifiable) visitable).setId(null); // depends on control dependency: [if], data = [none] } } }
public class class_name { @HiddenApi @Implementation(minSdk = LOLLIPOP) public void recycleUnchecked() { if (getApiLevel() >= LOLLIPOP) { unschedule(); directlyOn(realMessage, Message.class, "recycleUnchecked"); } else { // provide forward compatibility with SDK 21. recycle(); }...
public class class_name { @HiddenApi @Implementation(minSdk = LOLLIPOP) public void recycleUnchecked() { if (getApiLevel() >= LOLLIPOP) { unschedule(); // depends on control dependency: [if], data = [none] directlyOn(realMessage, Message.class, "recycleUnchecked"); // depends on control dependency:...
public class class_name { void endOfRunDb() { DbConn cnx = null; try { cnx = Helpers.getNewDbSession(); // Done: put inside history & remove instance from queue. History.create(cnx, this.ji, this.resultStatus, endDate); jqmlogger.trace("An H...
public class class_name { void endOfRunDb() { DbConn cnx = null; try { cnx = Helpers.getNewDbSession(); // depends on control dependency: [try], data = [none] // Done: put inside history & remove instance from queue. History.create(cnx, this.ji, this.re...
public class class_name { private static void validateFiles(File zipFile, File... srcFiles) throws UtilException { if(zipFile.isDirectory()) { throw new UtilException("Zip file [{}] must not be a directory !", zipFile.getAbsoluteFile()); } for (File srcFile : srcFiles) { if(null == srcFile) { ...
public class class_name { private static void validateFiles(File zipFile, File... srcFiles) throws UtilException { if(zipFile.isDirectory()) { throw new UtilException("Zip file [{}] must not be a directory !", zipFile.getAbsoluteFile()); } for (File srcFile : srcFiles) { if(null == srcFile) { ...
public class class_name { final void recycleVideoBuffer(BaseVideoFrame frame) { // Make sure we are in started state if (state.isStarted()) { enqueueBuffer(object, frame.getBufferInex()); synchronized(availableVideoFrames){ availableVideoFrames.add(frame); availableVideoFrames.notify(); } } ...
public class class_name { final void recycleVideoBuffer(BaseVideoFrame frame) { // Make sure we are in started state if (state.isStarted()) { enqueueBuffer(object, frame.getBufferInex()); // depends on control dependency: [if], data = [none] synchronized(availableVideoFrames){ // depends on control depend...
public class class_name { @Override public int read(byte[] buffer, int offset, int length) { if (offset < 0 || length < 0 || offset + length > buffer.length) { throw new ArrayIndexOutOfBoundsException( "length=" + buffer.length + "; regionStart=" + offset + "; regionLength=" +...
public class class_name { @Override public int read(byte[] buffer, int offset, int length) { if (offset < 0 || length < 0 || offset + length > buffer.length) { throw new ArrayIndexOutOfBoundsException( "length=" + buffer.length + "; regionStart=" + offset + "; regionLength=" +...
public class class_name { public Object getAttributeValue(FeatureDescriptor feature, String attributeName) { if (feature == null || attributeName == null) { return null; } return feature.getValue(attributeName); } }
public class class_name { public Object getAttributeValue(FeatureDescriptor feature, String attributeName) { if (feature == null || attributeName == null) { return null; // depends on control dependency: [if], data = [none] } return feature.getV...
public class class_name { void findVertexNeighbors(Vertex target , List<ChessboardCorner> corners ) { // if( target.index == 18 ) { // System.out.println("Vertex Neighbors "+target.index); // } ChessboardCorner targetCorner = corners.get(target.index); // distance is Euclidean squared double maxDist = Doub...
public class class_name { void findVertexNeighbors(Vertex target , List<ChessboardCorner> corners ) { // if( target.index == 18 ) { // System.out.println("Vertex Neighbors "+target.index); // } ChessboardCorner targetCorner = corners.get(target.index); // distance is Euclidean squared double maxDist = Doub...
public class class_name { JPAPUnitInfo findPersistenceUnitInfo(JPAPuId puId) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "findPersistenceUnitInfo : " + puId); if (isTraceOn && tc.isDebugEnabled()) ...
public class class_name { JPAPUnitInfo findPersistenceUnitInfo(JPAPuId puId) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "findPersistenceUnitInfo : " + puId); if (isTraceOn && tc.isDebugEnabled()) ...
public class class_name { private void addPostParams(final Request request) { if (defaults != null) { request.addPostParam("Defaults", Converter.mapToJson(defaults)); } } }
public class class_name { private void addPostParams(final Request request) { if (defaults != null) { request.addPostParam("Defaults", Converter.mapToJson(defaults)); // depends on control dependency: [if], data = [(defaults] } } }
public class class_name { boolean isLeaf(treeNode node){ if(node.lc == null && node.rc == null){ return true; } else { return false; } } }
public class class_name { boolean isLeaf(treeNode node){ if(node.lc == null && node.rc == null){ return true; // depends on control dependency: [if], data = [none] } else { return false; // depends on control dependency: [if], data = [none] } } }
public class class_name { public boolean setKDR(int keyDefinitionRate) { boolean res = true; if ((keyDefinitionRate > 64) || (keyDefinitionRate <= 0)) { log("setKDR() - invalid parameter " + keyDefinitionRate); res = false; } else { kdr = keyDefinitionRate; } return res; } }
public class class_name { public boolean setKDR(int keyDefinitionRate) { boolean res = true; if ((keyDefinitionRate > 64) || (keyDefinitionRate <= 0)) { log("setKDR() - invalid parameter " + keyDefinitionRate); // depends on control dependency: [if], data = [none] res = false; // depends on control dependenc...
public class class_name { public void setParamTabExWorkplaceSearchResult(String style) { if (style == null) { style = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchViewStyle().getMode(); } m_userSettings.setWorkplaceSearchViewStyle(CmsSearchResultStyle.va...
public class class_name { public void setParamTabExWorkplaceSearchResult(String style) { if (style == null) { style = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchViewStyle().getMode(); // depends on control dependency: [if], data = [none] } m_userSettin...
public class class_name { public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber); try { ConsumerSession cs = getConsumerSession(); if (cs !=null) cs.close(); try { ...
public class class_name { public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber); try { ConsumerSession cs = getConsumerSession(); if (cs !=null) cs.close(); try { ...
public class class_name { @Override public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) { super.replaceUnsolvedElements(elementWrapper); XsdAbstractElement element = elementWrapper.getElement(); if (element instanceof XsdSimpleType && simpleType != null && type.equals...
public class class_name { @Override public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) { super.replaceUnsolvedElements(elementWrapper); XsdAbstractElement element = elementWrapper.getElement(); if (element instanceof XsdSimpleType && simpleType != null && type.equals...
public class class_name { public void onShutdown(){ CacheRegistry.getInstance().clearDynamicServices();// clear dynamic cache services synchronized (allCaches) { for (String cacheName : allCaches.keySet()) { CacheService cachingObj= allCaches.get(cacheName); ...
public class class_name { public void onShutdown(){ CacheRegistry.getInstance().clearDynamicServices();// clear dynamic cache services synchronized (allCaches) { for (String cacheName : allCaches.keySet()) { CacheService cachingObj= allCaches.get(cacheName); ...
public class class_name { public void setValue(List<Token[]> tokensList) { if (type == null) { type = ItemType.LIST; } if (!isListableType()) { throw new IllegalArgumentException("The item type must be 'array', 'list' or 'set' for this item " + this); } t...
public class class_name { public void setValue(List<Token[]> tokensList) { if (type == null) { type = ItemType.LIST; // depends on control dependency: [if], data = [none] } if (!isListableType()) { throw new IllegalArgumentException("The item type must be 'array', 'list'...
public class class_name { private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return tr...
public class class_name { private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return tr...
public class class_name { private static boolean isStartOfDoubleBond(IAtomContainer container, IAtom a, IAtom parent, boolean[] doubleBondConfiguration) { int hcount; if (a.getImplicitHydrogenCount() == CDKConstants.UNSET) hcount = 0; else hcount = a.getImpli...
public class class_name { private static boolean isStartOfDoubleBond(IAtomContainer container, IAtom a, IAtom parent, boolean[] doubleBondConfiguration) { int hcount; if (a.getImplicitHydrogenCount() == CDKConstants.UNSET) hcount = 0; else hcount = a.getImpli...
public class class_name { public EEnum getPPORGObjType() { if (pporgObjTypeEEnum == null) { pporgObjTypeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(122); } return pporgObjTypeEEnum; } }
public class class_name { public EEnum getPPORGObjType() { if (pporgObjTypeEEnum == null) { pporgObjTypeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(122); // depends on control dependency: [if], data = [none] } return pporgObjTypeEEnum; } }
public class class_name { @Override public Object read(List<Slice> slices) throws DapException { switch (this.scheme) { case ATOMIC: return readAtomic(slices); case STRUCTURE: if(((DapVariable) this.getTemplate()).getRank() > 0 ...
public class class_name { @Override public Object read(List<Slice> slices) throws DapException { switch (this.scheme) { case ATOMIC: return readAtomic(slices); case STRUCTURE: if(((DapVariable) this.getTemplate()).getRank() > 0 ...
public class class_name { public void removeConverter() { if (m_converter != null) { Converter converter = m_converter; m_converter = null; // This keeps this from being called twice converter.removeComponent(null); // Just in case a converter was used (remo...
public class class_name { public void removeConverter() { if (m_converter != null) { Converter converter = m_converter; m_converter = null; // This keeps this from being called twice // depends on control dependency: [if], data = [none] converter.removeComponen...
public class class_name { @Override public void release(Pointer pointer, MemoryKind kind) { if (kind == MemoryKind.DEVICE) { NativeOpsHolder.getInstance().getDeviceNativeOps().freeDevice(pointer, 0); pointer.setNull(); } else if (kind == MemoryKind.HOST) { Native...
public class class_name { @Override public void release(Pointer pointer, MemoryKind kind) { if (kind == MemoryKind.DEVICE) { NativeOpsHolder.getInstance().getDeviceNativeOps().freeDevice(pointer, 0); // depends on control dependency: [if], data = [none] pointer.setNull(); // depends...
public class class_name { @Override public String getTrimmedPath(String path) { if (path == null) { return "/"; } if (!path.startsWith("/")) { try { path = new URL(path).getPath(); } catch (MalformedURLException ex) {...
public class class_name { @Override public String getTrimmedPath(String path) { if (path == null) { return "/"; // depends on control dependency: [if], data = [none] } if (!path.startsWith("/")) { try { path = new URL(path).getPath(); // depend...
public class class_name { @Override public String permissionsToString() { if (this.permissions == null) { return Constants.EMPTY_STRING; } // The service supports a fixed order => raud final StringBuilder builder = new StringBuilder(); if (this.permissions.cont...
public class class_name { @Override public String permissionsToString() { if (this.permissions == null) { return Constants.EMPTY_STRING; // depends on control dependency: [if], data = [none] } // The service supports a fixed order => raud final StringBuilder builder = n...
public class class_name { int refreshAndGetMin() { int min = Integer.MAX_VALUE; ResultSubpartition[] allPartitions = partition.getAllPartitions(); if (allPartitions.length == 0) { // meaningful value when no channels exist: return 0; } for (ResultSubpartition part : allPartitions) { int size = par...
public class class_name { int refreshAndGetMin() { int min = Integer.MAX_VALUE; ResultSubpartition[] allPartitions = partition.getAllPartitions(); if (allPartitions.length == 0) { // meaningful value when no channels exist: return 0; // depends on control dependency: [if], data = [none] } for (Result...
public class class_name { @GET @Path("/{variantId}") @Produces(MediaType.APPLICATION_JSON) public Response findVariantById(@PathParam("variantId") String variantId) { Variant variant = variantService.findByVariantID(variantId); if (variant == null) { return Response.status(Res...
public class class_name { @GET @Path("/{variantId}") @Produces(MediaType.APPLICATION_JSON) public Response findVariantById(@PathParam("variantId") String variantId) { Variant variant = variantService.findByVariantID(variantId); if (variant == null) { return Response.status(Res...
public class class_name { public PropsEntries profile(final String... profiles) { if (profiles == null) { return this; } for (String profile : profiles) { addProfiles(profile); } return this; } }
public class class_name { public PropsEntries profile(final String... profiles) { if (profiles == null) { return this; // depends on control dependency: [if], data = [none] } for (String profile : profiles) { addProfiles(profile); // depends on control dependency: [for], data = [profile] } return this;...
public class class_name { private void addWrapper(MethodSpec.Builder method, String pattern) { method.addComment("$S", pattern); for (Node node : WRAPPER_PARSER.parseWrapper(pattern)) { if (node instanceof Text) { method.addStatement("b.append($S)", ((Text)node).text()); } else if (node in...
public class class_name { private void addWrapper(MethodSpec.Builder method, String pattern) { method.addComment("$S", pattern); for (Node node : WRAPPER_PARSER.parseWrapper(pattern)) { if (node instanceof Text) { method.addStatement("b.append($S)", ((Text)node).text()); // depends on control dep...
public class class_name { public boolean validateMinimumVersion( @NonNull Context context, @NonNull PackageInfo packageInfo, int minimumVersion) { if (isDebug(context)) { return true; } return packageInfo.versionCode >= minimumVersion; } }
public class class_name { public boolean validateMinimumVersion( @NonNull Context context, @NonNull PackageInfo packageInfo, int minimumVersion) { if (isDebug(context)) { return true; // depends on control dependency: [if], data = [none] } return packageInfo.versionCode...
public class class_name { @Pure public static List<UUID> getAttributeUUIDs(Node document, boolean caseSensitive, String... path) { assert document != null : AssertMessages.notNullParameter(0); final List<UUID> ids = new ArrayList<>(); final String v = getAttributeValue(document, caseSensitive, 0, path); if (v...
public class class_name { @Pure public static List<UUID> getAttributeUUIDs(Node document, boolean caseSensitive, String... path) { assert document != null : AssertMessages.notNullParameter(0); final List<UUID> ids = new ArrayList<>(); final String v = getAttributeValue(document, caseSensitive, 0, path); if (v...
public class class_name { public Action onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { final byte flags = header.flags(); Action action = Action.CONTINUE; if ((flags & UNFRAGMENTED) == UNFRAGMENTED) { action = delegate....
public class class_name { public Action onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { final byte flags = header.flags(); Action action = Action.CONTINUE; if ((flags & UNFRAGMENTED) == UNFRAGMENTED) { action = delegate....
public class class_name { public void addUniqueField(int field) { if (this.uniqueFields == null) { this.uniqueFields = new HashSet<FieldSet>(); } this.uniqueFields.add(new FieldSet(field)); } }
public class class_name { public void addUniqueField(int field) { if (this.uniqueFields == null) { this.uniqueFields = new HashSet<FieldSet>(); // depends on control dependency: [if], data = [none] } this.uniqueFields.add(new FieldSet(field)); } }
public class class_name { @Nullable public static View getViewForPosition(@NonNull final ListViewWrapper listViewWrapper, final int position) { int childCount = listViewWrapper.getChildCount(); View downView = null; for (int i = 0; i < childCount && downView == null; i++) { View...
public class class_name { @Nullable public static View getViewForPosition(@NonNull final ListViewWrapper listViewWrapper, final int position) { int childCount = listViewWrapper.getChildCount(); View downView = null; for (int i = 0; i < childCount && downView == null; i++) { View...
public class class_name { public void sendMessage(BaseMessage messageOut, BaseInternalMessageProcessor messageOutProcessor) { int iErrorCode = this.convertToExternal(messageOut, messageOutProcessor); // Convert my standard message to the external format for this message BaseMessage messageReplyI...
public class class_name { public void sendMessage(BaseMessage messageOut, BaseInternalMessageProcessor messageOutProcessor) { int iErrorCode = this.convertToExternal(messageOut, messageOutProcessor); // Convert my standard message to the external format for this message BaseMessage messageReplyI...
public class class_name { public String get(String key) { if (properties.get(key) != null) { return properties.get(key); } else { return getConfigurationValue(key); } } }
public class class_name { public String get(String key) { if (properties.get(key) != null) { return properties.get(key); // depends on control dependency: [if], data = [none] } else { return getConfigurationValue(key); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Decimal minus(Decimal subtrahend) { if ((this == NaN) || (subtrahend == NaN)) { return NaN; } return new Decimal(delegate.subtract(subtrahend.delegate, MATH_CONTEXT)); } }
public class class_name { public Decimal minus(Decimal subtrahend) { if ((this == NaN) || (subtrahend == NaN)) { return NaN; // depends on control dependency: [if], data = [none] } return new Decimal(delegate.subtract(subtrahend.delegate, MATH_CONTEXT)); } }