code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static boolean exists(String URLName) { try { HttpURLConnection.setFollowRedirects(false); // note : you may also need // HttpURLConnection.setInstanceFollowRedirects(false) HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection(); ...
public class class_name { public static boolean exists(String URLName) { try { HttpURLConnection.setFollowRedirects(false); // depends on control dependency: [try], data = [none] // note : you may also need // HttpURLConnection.setInstanceFollowRedirects(false) HttpURLConnection con = (Http...
public class class_name { void forcedUndeployScan() { if (acquireScanLock()) { try { ROOT_LOGGER.tracef("Performing a post-boot forced undeploy scan for scan directory %s", deploymentDir.getAbsolutePath()); ScanContext scanContext = new ScanContext(deploymentOperati...
public class class_name { void forcedUndeployScan() { if (acquireScanLock()) { try { ROOT_LOGGER.tracef("Performing a post-boot forced undeploy scan for scan directory %s", deploymentDir.getAbsolutePath()); // depends on control dependency: [try], data = [none] Scan...
public class class_name { public ServiceCall<Intent> createIntent(CreateIntentOptions createIntentOptions) { Validator.notNull(createIntentOptions, "createIntentOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "intents" }; String[] pathParameters = { createIntentOptions.workspaceId() };...
public class class_name { public ServiceCall<Intent> createIntent(CreateIntentOptions createIntentOptions) { Validator.notNull(createIntentOptions, "createIntentOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "intents" }; String[] pathParameters = { createIntentOptions.workspaceId() };...
public class class_name { @Deprecated public MultiValueMap<String, Object> toRequestParameters() { MultiValueMap<String, Object> tweetParameters = toTweetParameters(); if (mediaResource != null) { tweetParameters.set("media", mediaResource); } return tweetParameters; } }
public class class_name { @Deprecated public MultiValueMap<String, Object> toRequestParameters() { MultiValueMap<String, Object> tweetParameters = toTweetParameters(); if (mediaResource != null) { tweetParameters.set("media", mediaResource); // depends on control dependency: [if], data = [none] } retur...
public class class_name { public static synchronized File extractTessResources(String resourceName) { File targetPath = null; try { targetPath = new File(TESS4J_TEMP_DIR, resourceName); Enumeration<URL> resources = LoadLibs.class.getClassLoader().getResources(resourceName); ...
public class class_name { public static synchronized File extractTessResources(String resourceName) { File targetPath = null; try { targetPath = new File(TESS4J_TEMP_DIR, resourceName); // depends on control dependency: [try], data = [none] Enumeration<URL> resources = LoadLib...
public class class_name { public WebhookDefinition withFilters(WebhookFilterRule... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList<WebhookFilterRule>(filters.length)); } for (WebhookFilterRule ele : filters) { this.filters.add(ele); } ...
public class class_name { public WebhookDefinition withFilters(WebhookFilterRule... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList<WebhookFilterRule>(filters.length)); // depends on control dependency: [if], data = [none] } for (WebhookFilterRule ele : fil...
public class class_name { public static Context getOrCreate(NetworkParameters params) { Context context; try { context = get(); } catch (IllegalStateException e) { log.warn("Implicitly creating context. This is a migration step and this message will eventually go away.")...
public class class_name { public static Context getOrCreate(NetworkParameters params) { Context context; try { context = get(); // depends on control dependency: [try], data = [none] } catch (IllegalStateException e) { log.warn("Implicitly creating context. This is a mig...
public class class_name { public void setScheduledUpdateGroupActions(java.util.Collection<ScheduledUpdateGroupActionRequest> scheduledUpdateGroupActions) { if (scheduledUpdateGroupActions == null) { this.scheduledUpdateGroupActions = null; return; } this.scheduledUpdate...
public class class_name { public void setScheduledUpdateGroupActions(java.util.Collection<ScheduledUpdateGroupActionRequest> scheduledUpdateGroupActions) { if (scheduledUpdateGroupActions == null) { this.scheduledUpdateGroupActions = null; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public EClass getIfcCircleHollowProfileDef() { if (ifcCircleHollowProfileDefEClass == null) { ifcCircleHollowProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(92); } return ifcCircleHollowProfileDefECl...
public class class_name { @Override public EClass getIfcCircleHollowProfileDef() { if (ifcCircleHollowProfileDefEClass == null) { ifcCircleHollowProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(92); // depends on control dependency: [if], da...
public class class_name { @Override public List<CPAttachmentFileEntry> findByC_C_LtD_S(long classNameId, long classPK, Date displayDate, int status, int start, int end, OrderByComparator<CPAttachmentFileEntry> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath =...
public class class_name { @Override public List<CPAttachmentFileEntry> findByC_C_LtD_S(long classNameId, long classPK, Date displayDate, int status, int start, int end, OrderByComparator<CPAttachmentFileEntry> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath =...
public class class_name { protected int nextEscapeIndex(CharSequence csq, int start, int end) { int index = start; while (index < end) { int cp = codePointAt(csq, index, end); if (cp < 0 || escape(cp) != null) { break; } index += Character.isSupplementaryCodePoint(cp) ? 2 : 1; ...
public class class_name { protected int nextEscapeIndex(CharSequence csq, int start, int end) { int index = start; while (index < end) { int cp = codePointAt(csq, index, end); if (cp < 0 || escape(cp) != null) { break; } index += Character.isSupplementaryCodePoint(cp) ? 2 : 1; /...
public class class_name { public DescribeEnvironmentsRequest withEnvironmentNames(String... environmentNames) { if (this.environmentNames == null) { setEnvironmentNames(new com.amazonaws.internal.SdkInternalList<String>(environmentNames.length)); } for (String ele : environmentNames...
public class class_name { public DescribeEnvironmentsRequest withEnvironmentNames(String... environmentNames) { if (this.environmentNames == null) { setEnvironmentNames(new com.amazonaws.internal.SdkInternalList<String>(environmentNames.length)); // depends on control dependency: [if], data = [none...
public class class_name { public static List<StackLine> getStackLines(SrcTree srcTree, StackTraceElement[] elements, LineReplacer replacer) { List<StackLine> stackLines = new ArrayList<>(elements.length); for (StackTraceElement element : elements) { StackLine stackLine = getStac...
public class class_name { public static List<StackLine> getStackLines(SrcTree srcTree, StackTraceElement[] elements, LineReplacer replacer) { List<StackLine> stackLines = new ArrayList<>(elements.length); for (StackTraceElement element : elements) { StackLine stackLine = getStac...
public class class_name { public MoneyAmountStyle withExtendedGroupingSize(Integer extendedGroupingSize) { int sizeVal = (extendedGroupingSize == null ? -1 : extendedGroupingSize); if (extendedGroupingSize != null && sizeVal < 0) { throw new IllegalArgumentException("Extended grouping si...
public class class_name { public MoneyAmountStyle withExtendedGroupingSize(Integer extendedGroupingSize) { int sizeVal = (extendedGroupingSize == null ? -1 : extendedGroupingSize); if (extendedGroupingSize != null && sizeVal < 0) { throw new IllegalArgumentException("Extended grouping si...
public class class_name { public String render() { StringBuilder builder = new StringBuilder(column); if (order != null) { builder.append(" ").append(getOrder().name()); } return builder.toString(); } }
public class class_name { public String render() { StringBuilder builder = new StringBuilder(column); if (order != null) { builder.append(" ").append(getOrder().name()); // depends on control dependency: [if], data = [none] } return builder.toString(); } }
public class class_name { public BoundingBox getBoundingBox(Projection projection) { BoundingBox boundingBox = null; List<String> tables = null; try { tables = getTables(); } catch (SQLException e) { throw new GeoPackageException( "Failed to query for contents tables", e); } for (String table...
public class class_name { public BoundingBox getBoundingBox(Projection projection) { BoundingBox boundingBox = null; List<String> tables = null; try { tables = getTables(); // depends on control dependency: [try], data = [none] } catch (SQLException e) { throw new GeoPackageException( "Failed to q...
public class class_name { public static String getText(){ Transferable contents = clipboard().getContents(null); try{ if(contents!=null && contents.isDataFlavorSupported(DataFlavor.stringFlavor)) return (String)contents.getTransferData(DataFlavor.stringFlavor); e...
public class class_name { public static String getText(){ Transferable contents = clipboard().getContents(null); try{ if(contents!=null && contents.isDataFlavorSupported(DataFlavor.stringFlavor)) return (String)contents.getTransferData(DataFlavor.stringFlavor); e...
public class class_name { private final boolean matchChildBlock(int bufferIndex) { // // Match the pattern we see at the start of the child block // int index = 0; for (byte b : CHILD_BLOCK_PATTERN) { if (b != m_buffer[bufferIndex + index]) { return ...
public class class_name { private final boolean matchChildBlock(int bufferIndex) { // // Match the pattern we see at the start of the child block // int index = 0; for (byte b : CHILD_BLOCK_PATTERN) { if (b != m_buffer[bufferIndex + index]) { return ...
public class class_name { public char match(String str1, String str2) { if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) { return IMappingElement.IDK; } float sim = 1 - (float) getLevenshteinDistance(str1, str2) / java.lang.Math.max(str1.length(), st...
public class class_name { public char match(String str1, String str2) { if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) { return IMappingElement.IDK; // depends on control dependency: [if], data = [none] } float sim = 1 - (float) getLevenshteinDista...
public class class_name { protected Set<URI> getValidDatasetURIs(Path datasetCommonRoot) { Collection<URI> allDatasetURIs; Set<URI> disabledURISet = new HashSet(); // This try block basically populate the Valid dataset URI set. try { allDatasetURIs = configClient.getImportedBy(new URI(whitelistT...
public class class_name { protected Set<URI> getValidDatasetURIs(Path datasetCommonRoot) { Collection<URI> allDatasetURIs; Set<URI> disabledURISet = new HashSet(); // This try block basically populate the Valid dataset URI set. try { allDatasetURIs = configClient.getImportedBy(new URI(whitelistT...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTunnelFurniture() { if (_GenericApplicationPropertyOfTunnelFurniture == null) { _GenericApplicationPropertyOfTunnelFurniture = new ArrayList<JAXBElement<Object>>(); } return this._GenericAppli...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTunnelFurniture() { if (_GenericApplicationPropertyOfTunnelFurniture == null) { _GenericApplicationPropertyOfTunnelFurniture = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], dat...
public class class_name { @Override public void connect(String ip, int port) { network.connect(ip, port); for (final ConnectionListener listener : listeners) { network.addListener(listener); } network.addListener(this); } }
public class class_name { @Override public void connect(String ip, int port) { network.connect(ip, port); for (final ConnectionListener listener : listeners) { network.addListener(listener); // depends on control dependency: [for], data = [listener] } ...
public class class_name { public CmsLoginManager getLoginManager() { if (m_loginManager == null) { // no login manager configured, create default m_loginManager = new CmsLoginManager( CmsLoginManager.DISABLE_MINUTES_DEFAULT, CmsLoginManager.MAX_BAD_ATTEM...
public class class_name { public CmsLoginManager getLoginManager() { if (m_loginManager == null) { // no login manager configured, create default m_loginManager = new CmsLoginManager( CmsLoginManager.DISABLE_MINUTES_DEFAULT, CmsLoginManager.MAX_BAD_ATTEM...
public class class_name { @CanIgnoreReturnValue @Override public final int add(@NullableDecl E element, int occurrences) { if (occurrences == 0) { return count(element); } checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences); int entryIndex = backingMap.indexOf(el...
public class class_name { @CanIgnoreReturnValue @Override public final int add(@NullableDecl E element, int occurrences) { if (occurrences == 0) { return count(element); // depends on control dependency: [if], data = [none] } checkArgument(occurrences > 0, "occurrences cannot be negative: %s", oc...
public class class_name { private void matchEndLine() { // First, parse all whitespace characters except for new lines index = skipLineSpace(index); // Second, check whether we've reached the end-of-file (as signaled by // running out of tokens), or we've encountered some token which not a // newline. if ...
public class class_name { private void matchEndLine() { // First, parse all whitespace characters except for new lines index = skipLineSpace(index); // Second, check whether we've reached the end-of-file (as signaled by // running out of tokens), or we've encountered some token which not a // newline. if ...
public class class_name { public static <T> Observable<T> from(final ListenableFuture<T> future, final Scheduler scheduler) { final Worker worker = scheduler.createWorker(); return from(future, new Executor() { @Override public void execute(final Runnable command) { ...
public class class_name { public static <T> Observable<T> from(final ListenableFuture<T> future, final Scheduler scheduler) { final Worker worker = scheduler.createWorker(); return from(future, new Executor() { @Override public void execute(final Runnable command) { ...
public class class_name { public final void setScheduledExecutor(ScheduledExecutorService scheduledExecutor) { if (scheduledExecutor != null) { this.scheduledExecutor = scheduledExecutor; this.enterpriseConcurrentScheduler = managedScheduledExecutorServiceClass != null && managedSchedul...
public class class_name { public final void setScheduledExecutor(ScheduledExecutorService scheduledExecutor) { if (scheduledExecutor != null) { this.scheduledExecutor = scheduledExecutor; // depends on control dependency: [if], data = [none] this.enterpriseConcurrentScheduler = managedS...
public class class_name { @SuppressWarnings("unchecked") public <T extends BaseTopicWrapper<T>> List<T> getAllTopics(boolean ignoreRevisions) { final List<T> topics = new ArrayList<T>(); for (final Entry<Integer, List<ITopicNode>> entry : this.topics.entrySet()) { final Integer topicId ...
public class class_name { @SuppressWarnings("unchecked") public <T extends BaseTopicWrapper<T>> List<T> getAllTopics(boolean ignoreRevisions) { final List<T> topics = new ArrayList<T>(); for (final Entry<Integer, List<ITopicNode>> entry : this.topics.entrySet()) { final Integer topicId ...
public class class_name { public Collection<EntityAnnotation> getEntityAnnotations(TextAnnotation ta) { Collection<EntityAnnotation> eas = getEntityAnnotations(); Collection<EntityAnnotation> result = Sets.newHashSet(); for (EntityAnnotation ea : eas) { if (ea.getRelations() != nul...
public class class_name { public Collection<EntityAnnotation> getEntityAnnotations(TextAnnotation ta) { Collection<EntityAnnotation> eas = getEntityAnnotations(); Collection<EntityAnnotation> result = Sets.newHashSet(); for (EntityAnnotation ea : eas) { if (ea.getRelations() != nul...
public class class_name { private String exportCloseLink() { String closeLink = null; if (getRequest().getAttribute(I_CmsDialogConstants.ATTR_CLOSE_LINK) != null) { closeLink = (String)getRequest().getAttribute(I_CmsDialogConstants.ATTR_CLOSE_LINK); } if (CmsStringUti...
public class class_name { private String exportCloseLink() { String closeLink = null; if (getRequest().getAttribute(I_CmsDialogConstants.ATTR_CLOSE_LINK) != null) { closeLink = (String)getRequest().getAttribute(I_CmsDialogConstants.ATTR_CLOSE_LINK); // depends on control dependency: [...
public class class_name { @Override public void addURL(URL url, boolean isScanned) { if (containsURL(url)) { return; } super.addURL(url, isScanned); if (isScanned) _pendingScanRoots.add(new ScanRoot(url, null)); } }
public class class_name { @Override public void addURL(URL url, boolean isScanned) { if (containsURL(url)) { return; // depends on control dependency: [if], data = [none] } super.addURL(url, isScanned); if (isScanned) _pendingScanRoots.add(new ScanRoot(url, null)); } }
public class class_name { public static final byte[] toAsciiBytes(final String value) { byte[] result = new byte[value.length()]; for (int i = 0; i < value.length(); i++) { result[i] = (byte) value.charAt(i); } return result; } }
public class class_name { public static final byte[] toAsciiBytes(final String value) { byte[] result = new byte[value.length()]; for (int i = 0; i < value.length(); i++) { result[i] = (byte) value.charAt(i); // depends on control dependency: [for], data = [i] ...
public class class_name { public static Class<?> resolveCaller() { Class<?> callerClass = null; StackTraceElement[] stackTraces = Thread.currentThread().getStackTrace(); int stackSize = stackTraces.length; // StackTrace is below. So check from 3rd element. // 1st:java.lang...
public class class_name { public static Class<?> resolveCaller() { Class<?> callerClass = null; StackTraceElement[] stackTraces = Thread.currentThread().getStackTrace(); int stackSize = stackTraces.length; // StackTrace is below. So check from 3rd element. // 1st:java.lang...
public class class_name { private void replyError() { Error error = Preconditions.checkNotNull(mContext.getError()); if (error.isNotifyClient()) { mResponseObserver.onError(error.getCause().toGrpcStatusException()); } } }
public class class_name { private void replyError() { Error error = Preconditions.checkNotNull(mContext.getError()); if (error.isNotifyClient()) { mResponseObserver.onError(error.getCause().toGrpcStatusException()); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void appendFieldCriteria(TableAlias alias, PathInfo pathInfo, FieldCriteria c, StringBuffer buf) { appendColName(alias, pathInfo, c.isTranslateAttribute(), buf); buf.append(c.getClause()); if (c.isTranslateField()) { appendColName((String...
public class class_name { private void appendFieldCriteria(TableAlias alias, PathInfo pathInfo, FieldCriteria c, StringBuffer buf) { appendColName(alias, pathInfo, c.isTranslateAttribute(), buf); buf.append(c.getClause()); if (c.isTranslateField()) { appendColName((String...
public class class_name { private void shutDownSqlDrivers() { // This manually deregisters JDBC driver, which prevents Tomcat 7 from complaining about memory leaks Enumeration<Driver> drivers = DriverManager.getDrivers(); while (drivers.hasMoreElements()) { Driver driver = drivers....
public class class_name { private void shutDownSqlDrivers() { // This manually deregisters JDBC driver, which prevents Tomcat 7 from complaining about memory leaks Enumeration<Driver> drivers = DriverManager.getDrivers(); while (drivers.hasMoreElements()) { Driver driver = drivers....
public class class_name { @Override public EClass getIfcBoundaryCurve() { if (ifcBoundaryCurveEClass == null) { ifcBoundaryCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(48); } return ifcBoundaryCurveEClass; } }
public class class_name { @Override public EClass getIfcBoundaryCurve() { if (ifcBoundaryCurveEClass == null) { ifcBoundaryCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(48); // depends on control dependency: [if], data = [none] } return i...
public class class_name { public static Duration add(Duration a, Duration b, ProjectProperties defaults) { if (a == null && b == null) { return null; } if (a == null) { return b; } if (b == null) { return a; } TimeUnit unit = a.g...
public class class_name { public static Duration add(Duration a, Duration b, ProjectProperties defaults) { if (a == null && b == null) { return null; // depends on control dependency: [if], data = [none] } if (a == null) { return b; // depends on control dependency: [...
public class class_name { public void marshall(PutMethodRequest putMethodRequest, ProtocolMarshaller protocolMarshaller) { if (putMethodRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putM...
public class class_name { public void marshall(PutMethodRequest putMethodRequest, ProtocolMarshaller protocolMarshaller) { if (putMethodRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putM...
public class class_name { public final MobicentsSipSession getSipSession() { if(logger.isDebugEnabled()) { logger.debug("getSipSession"); } if(sipSession == null && sessionKey == null) { sessionKey = getSipSessionKey(); if(logger.isDebugEnabled()) { logger.debug("sessionKey is " + sessionKey); }...
public class class_name { public final MobicentsSipSession getSipSession() { if(logger.isDebugEnabled()) { logger.debug("getSipSession"); // depends on control dependency: [if], data = [none] } if(sipSession == null && sessionKey == null) { sessionKey = getSipSessionKey(); // depends on control dependency...
public class class_name { public void clearErrors() { errorLabel.setText(StringUtils.EMPTY); errorLabel.getElement().getStyle().setDisplay(Display.NONE); if (contents.getWidget() != null) { contents.getWidget().removeStyleName(decoratorStyle.errorInputStyle()); contents.getWidget().removeStyleN...
public class class_name { public void clearErrors() { errorLabel.setText(StringUtils.EMPTY); errorLabel.getElement().getStyle().setDisplay(Display.NONE); if (contents.getWidget() != null) { contents.getWidget().removeStyleName(decoratorStyle.errorInputStyle()); // depends on control dependency: [if],...
public class class_name { public void clear() { Entry tab[] = mTable; mModCount++; for (int index = tab.length; --index >= 0; ) { tab[index] = null; } mCount = 0; } }
public class class_name { public void clear() { Entry tab[] = mTable; mModCount++; for (int index = tab.length; --index >= 0; ) { tab[index] = null; // depends on control dependency: [for], data = [index] } mCount = 0; } }
public class class_name { public static boolean adjustProtonation(IMolecularFormula mf, int hcnt) { if (mf == null) throw new NullPointerException("No formula provided"); if (hcnt == 0) return false; // no protons to add final IChemObjectBuilder bldr = mf.getBuilder(); final int ...
public class class_name { public static boolean adjustProtonation(IMolecularFormula mf, int hcnt) { if (mf == null) throw new NullPointerException("No formula provided"); if (hcnt == 0) return false; // no protons to add final IChemObjectBuilder bldr = mf.getBuilder(); final int ...
public class class_name { protected CmsParameterConfiguration getComponentsProperties(String location) throws FileNotFoundException, CmsConfigurationException { InputStream stream = null; ZipFile zipFile = null; try { // try to interpret the fileName as a folder Fil...
public class class_name { protected CmsParameterConfiguration getComponentsProperties(String location) throws FileNotFoundException, CmsConfigurationException { InputStream stream = null; ZipFile zipFile = null; try { // try to interpret the fileName as a folder Fil...
public class class_name { private PHS398Checklist13Document getPHS398Checklist() { PHS398Checklist13Document phsChecklistDocument = PHS398Checklist13Document.Factory .newInstance(); PHS398Checklist13 phsChecklist = PHS398Checklist13.Factory.newInstance(); answerHeaders = getPropDevQuestionAnswerService().get...
public class class_name { private PHS398Checklist13Document getPHS398Checklist() { PHS398Checklist13Document phsChecklistDocument = PHS398Checklist13Document.Factory .newInstance(); PHS398Checklist13 phsChecklist = PHS398Checklist13.Factory.newInstance(); answerHeaders = getPropDevQuestionAnswerService().get...
public class class_name { public void addGLL( GLLSentence gll ) { try { if (gll.isValid()) position = gll.getPosition(); } catch (Exception e) { // ignore it, this should be handled in the isValid, // if an exception is thrown, we can't deal with it h...
public class class_name { public void addGLL( GLLSentence gll ) { try { if (gll.isValid()) position = gll.getPosition(); } catch (Exception e) { // ignore it, this should be handled in the isValid, // if an exception is thrown, we can't deal with it h...
public class class_name { @Pure public boolean isContainerColorUsed() { final AttributeValue val = getAttributeCollection().getAttribute(ATTR_USE_CONTAINER_COLOR); if (val != null) { try { return val.getBoolean(); } catch (AttributeException e) { // } } return false; } }
public class class_name { @Pure public boolean isContainerColorUsed() { final AttributeValue val = getAttributeCollection().getAttribute(ATTR_USE_CONTAINER_COLOR); if (val != null) { try { return val.getBoolean(); // depends on control dependency: [try], data = [none] } catch (AttributeException e) { ...
public class class_name { @CommandArgument public void stat(int index) { if (this.jobProgressStates == null) { System.err.println("Server not running"); return; } if (index == 0) { List<ProgressState> progress = new ArrayList<ProgressState>(this.jobProgressStates); if (progress !=...
public class class_name { @CommandArgument public void stat(int index) { if (this.jobProgressStates == null) { System.err.println("Server not running"); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } if (index == 0) { ...
public class class_name { public void addTrackPositionListener(int player, TrackPositionListener listener) { listenerPlayerNumbers.put(listener, player); TrackPositionUpdate currentPosition = positions.get(player); if (currentPosition != null) { listener.movementChanged(currentPosi...
public class class_name { public void addTrackPositionListener(int player, TrackPositionListener listener) { listenerPlayerNumbers.put(listener, player); TrackPositionUpdate currentPosition = positions.get(player); if (currentPosition != null) { listener.movementChanged(currentPosi...
public class class_name { protected List<String> idsList() { if (!isForAll()) { return CmsStringUtil.splitAsList(getParamSessionids(), CmsHtmlList.ITEM_SEPARATOR); } List<CmsUser> manageableUsers = new ArrayList<CmsUser>(); try { manageableUsers = OpenCms.getRol...
public class class_name { protected List<String> idsList() { if (!isForAll()) { return CmsStringUtil.splitAsList(getParamSessionids(), CmsHtmlList.ITEM_SEPARATOR); // depends on control dependency: [if], data = [none] } List<CmsUser> manageableUsers = new ArrayList<CmsUser>(); ...
public class class_name { public @NotNull StringAssert contains(String expected) { isNotNull(); if (actual.indexOf(expected) != -1) { return this; } failIfCustomMessageIsSet(); throw failure(format("<%s> should contain the String:<%s>", actual, expected)); } }
public class class_name { public @NotNull StringAssert contains(String expected) { isNotNull(); if (actual.indexOf(expected) != -1) { return this; // depends on control dependency: [if], data = [none] } failIfCustomMessageIsSet(); throw failure(format("<%s> should contain the String:<%s>", ac...
public class class_name { private float[] nGroups0(int bitmap_flag, float ref, float mv1) { float[] data = new float[totalNPoints]; if (bitmap_flag == 255) { for (int i = 0; i < totalNPoints; i++) { data[i] = ref; } } else if (bitmap_flag == 0 || bitmap_flag == 254) { int mask = ...
public class class_name { private float[] nGroups0(int bitmap_flag, float ref, float mv1) { float[] data = new float[totalNPoints]; if (bitmap_flag == 255) { for (int i = 0; i < totalNPoints; i++) { data[i] = ref; // depends on control dependency: [for], data = [i] } } else if (bitmap_...
public class class_name { protected void setAuditMessageElements(EventIdentificationType eventId, ActiveParticipantType[] participants, AuditSourceIdentificationType[] sourceIds, ParticipantObjectIdentificationType[] objectIds) { AuditMessage auditMessage = getAuditMe...
public class class_name { protected void setAuditMessageElements(EventIdentificationType eventId, ActiveParticipantType[] participants, AuditSourceIdentificationType[] sourceIds, ParticipantObjectIdentificationType[] objectIds) { AuditMessage auditMessage = getAuditMe...
public class class_name { public static List<ChannelBuilder> builders(ClassLoader classLoader, ServiceDomain serviceDomain, KnowledgeComponentImplementationModel implementationModel) { List<ChannelBuilder> builders = new ArrayList<ChannelBuilder>(); if (implementationModel != null) { Channe...
public class class_name { public static List<ChannelBuilder> builders(ClassLoader classLoader, ServiceDomain serviceDomain, KnowledgeComponentImplementationModel implementationModel) { List<ChannelBuilder> builders = new ArrayList<ChannelBuilder>(); if (implementationModel != null) { Channe...
public class class_name { public HttpRequest path(String path) { // this must be the only place that sets the path if (!path.startsWith(StringPool.SLASH)) { path = StringPool.SLASH + path; } int ndx = path.indexOf('?'); if (ndx != -1) { String queryString = path.substring(ndx + 1); path = path.s...
public class class_name { public HttpRequest path(String path) { // this must be the only place that sets the path if (!path.startsWith(StringPool.SLASH)) { path = StringPool.SLASH + path; // depends on control dependency: [if], data = [none] } int ndx = path.indexOf('?'); if (ndx != -1) { String qu...
public class class_name { private void addPostParams(final Request request) { if (actions != null) { request.addPostParam("Actions", Converter.mapToJson(actions)); } } }
public class class_name { private void addPostParams(final Request request) { if (actions != null) { request.addPostParam("Actions", Converter.mapToJson(actions)); // depends on control dependency: [if], data = [(actions] } } }
public class class_name { public List<Integer> searchBigBytes(byte[] srcBytes, byte[] searchBytes) { int numOfThreadsOptimized = (srcBytes.length / analyzeByteArrayUnitSize); if (numOfThreadsOptimized == 0) { numOfThreadsOptimized = 1; } return searchBigBytes(srcBytes, searchBytes, numOfThreadsOp...
public class class_name { public List<Integer> searchBigBytes(byte[] srcBytes, byte[] searchBytes) { int numOfThreadsOptimized = (srcBytes.length / analyzeByteArrayUnitSize); if (numOfThreadsOptimized == 0) { numOfThreadsOptimized = 1; // depends on control dependency: [if], data = [none] } retur...
public class class_name { public RegexPatternSet withRegexPatternStrings(String... regexPatternStrings) { if (this.regexPatternStrings == null) { setRegexPatternStrings(new java.util.ArrayList<String>(regexPatternStrings.length)); } for (String ele : regexPatternStrings) { ...
public class class_name { public RegexPatternSet withRegexPatternStrings(String... regexPatternStrings) { if (this.regexPatternStrings == null) { setRegexPatternStrings(new java.util.ArrayList<String>(regexPatternStrings.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static byte[] compressByGzip(byte[] sourceBytes) { ByteArrayOutputStream out = new ByteArrayOutputStream(); try { GZIPOutputStream gzip = null; try { gzip = new GZIPOutputStream(out); gzip.write(sourceBytes); ...
public class class_name { public static byte[] compressByGzip(byte[] sourceBytes) { ByteArrayOutputStream out = new ByteArrayOutputStream(); try { GZIPOutputStream gzip = null; try { gzip = new GZIPOutputStream(out); // depends on control dependency: [try], data ...
public class class_name { public java.lang.String getTypeHint() { java.lang.Object ref = typeHint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.t...
public class class_name { public java.lang.String getTypeHint() { java.lang.Object ref = typeHint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; // depends on control dependency: [if], data = [none] } else { com.google.protobuf.ByteString bs = (com.google.pro...
public class class_name { protected void checkAccess() throws EFapsException { for (final Instance instance : getInstances()) { if (!instance.getType().hasAccess(instance, AccessTypeEnums.DELETE.getAccessType(), null)) { LOG.error("Delete not permitted for Person: {} on ...
public class class_name { protected void checkAccess() throws EFapsException { for (final Instance instance : getInstances()) { if (!instance.getType().hasAccess(instance, AccessTypeEnums.DELETE.getAccessType(), null)) { LOG.error("Delete not permitted for Person: {} on ...
public class class_name { public void marshall(HadoopJarStepConfig hadoopJarStepConfig, ProtocolMarshaller protocolMarshaller) { if (hadoopJarStepConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(HadoopJarStepConfig hadoopJarStepConfig, ProtocolMarshaller protocolMarshaller) { if (hadoopJarStepConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { private void runEDBPostHooks(EDBCommit commit) { for (EDBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (Exception e) { ...
public class class_name { private void runEDBPostHooks(EDBCommit commit) { for (EDBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); // depends on control dependency: [try], data = [none] } catch (ServiceUnavailableException e) { /...
public class class_name { public void negotiateInitialValueTypes() { // Either of the function result type or parameter type could be null or a specific supported value type, or a generic // NUMERIC. Replace any "generic" type (null or NUMERIC) with the more specific type without over-specifying ...
public class class_name { public void negotiateInitialValueTypes() { // Either of the function result type or parameter type could be null or a specific supported value type, or a generic // NUMERIC. Replace any "generic" type (null or NUMERIC) with the more specific type without over-specifying ...
public class class_name { public AuthorizingCallbackHandler getCallbackHandler(final String mechanismName, final Map<String, String> mechanismProperties) { return new AuthorizingCallbackHandler() { Subject subject = new Subject(); Principal userPrincipal; public void handle(final Cal...
public class class_name { public AuthorizingCallbackHandler getCallbackHandler(final String mechanismName, final Map<String, String> mechanismProperties) { return new AuthorizingCallbackHandler() { Subject subject = new Subject(); Principal userPrincipal; public void handle(final Cal...
public class class_name { private static Float parseOpacity(String val) { try { float o = parseFloat(val); return (o < 0f) ? 0f : (o > 1f) ? 1f : o; } catch (SVGParseException e) { return null; } } }
public class class_name { private static Float parseOpacity(String val) { try { float o = parseFloat(val); return (o < 0f) ? 0f : (o > 1f) ? 1f : o; // depends on control dependency: [try], data = [none] } catch (SVGParseException e) { return null; } // depends...
public class class_name { protected void moveUp(int pos) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "moveUp", new Integer(pos)); PriorityQueueNode node = elements[pos]; long priority = node.priority; while ((pos > 0) && (elements[parent(pos)].priority > priority)) { setElement(e...
public class class_name { protected void moveUp(int pos) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "moveUp", new Integer(pos)); PriorityQueueNode node = elements[pos]; long priority = node.priority; while ((pos > 0) && (elements[parent(pos)].priority > priority)) { setElement(e...
public class class_name { @Override public <T> T createMockComponent(final Class<T> type) { if (Modifier.isFinal(type.getModifiers()) || type.isPrimitive()) { LOG.warn("Skipping creation of a mock : {} as it is final or primitive type.", type.getSimpleName()); return null; } T mock = createNiceMock(type)...
public class class_name { @Override public <T> T createMockComponent(final Class<T> type) { if (Modifier.isFinal(type.getModifiers()) || type.isPrimitive()) { LOG.warn("Skipping creation of a mock : {} as it is final or primitive type.", type.getSimpleName()); // depends on control dependency: [if], data = [non...
public class class_name { public JSONArray names() { JSONArray ja = new JSONArray(); Iterator<String> keys = keys(); while (keys.hasNext()) { ja.put(keys.next()); } return ja.length() == 0 ? null : ja; } }
public class class_name { public JSONArray names() { JSONArray ja = new JSONArray(); Iterator<String> keys = keys(); while (keys.hasNext()) { ja.put(keys.next()); // depends on control dependency: [while], data = [none] } return ja.length() == 0 ? null : ja; } }
public class class_name { @Override public FileEntry next () { FileEntry n = this.next; try { FileEntry ne = advance(); if ( ne == null ) { doClose(); return n; } this.next = ne; } catch ( CIFSException ...
public class class_name { @Override public FileEntry next () { FileEntry n = this.next; try { FileEntry ne = advance(); if ( ne == null ) { doClose(); // depends on control dependency: [if], data = [none] return n; // depends on control depend...
public class class_name { private Set<String> determineReturnTypes(final MethodResult result) { final List<Instruction> visitedInstructions = interpretRelevantInstructions(result.getInstructions()); // find project defined methods in invoke occurrences final Set<ProjectMethod> projectMethods =...
public class class_name { private Set<String> determineReturnTypes(final MethodResult result) { final List<Instruction> visitedInstructions = interpretRelevantInstructions(result.getInstructions()); // find project defined methods in invoke occurrences final Set<ProjectMethod> projectMethods =...
public class class_name { protected List<?> prepareObjectList(VirtualForm virtualForm, Object bean, String name, Object value, StringBuilder pathSb, FormMappingOption option, PropertyDesc pd) { final List<?> mappedValue; if (isJsonParameterProperty(pd)) { // e.g. public List<SeaJsonBean> js...
public class class_name { protected List<?> prepareObjectList(VirtualForm virtualForm, Object bean, String name, Object value, StringBuilder pathSb, FormMappingOption option, PropertyDesc pd) { final List<?> mappedValue; if (isJsonParameterProperty(pd)) { // e.g. public List<SeaJsonBean> js...
public class class_name { public <T> JsonReaderI<T> getMapper(Class<T> type) { // look for cached Mapper @SuppressWarnings("unchecked") JsonReaderI<T> map = (JsonReaderI<T>) cache.get(type); if (map != null) return map; /* * Special handle */ if (type instanceof Class) { if (Map.class.isAssigna...
public class class_name { public <T> JsonReaderI<T> getMapper(Class<T> type) { // look for cached Mapper @SuppressWarnings("unchecked") JsonReaderI<T> map = (JsonReaderI<T>) cache.get(type); if (map != null) return map; /* * Special handle */ if (type instanceof Class) { if (Map.class.isAssigna...
public class class_name { public static final int getDynamicStoreInitialCapacity(int initialLevel) { // Compute maxLevel LinearHashing h = new LinearHashing(DynamicConstants.SUB_ARRAY_SIZE); h.reinit(Integer.MAX_VALUE); int maxLevel = h.getLevel(); // Compute initialCap...
public class class_name { public static final int getDynamicStoreInitialCapacity(int initialLevel) { // Compute maxLevel LinearHashing h = new LinearHashing(DynamicConstants.SUB_ARRAY_SIZE); h.reinit(Integer.MAX_VALUE); int maxLevel = h.getLevel(); // Compute initialCap...
public class class_name { public static String sanitize(final String input, final Policy policy) { if (policy == null) { throw new SystemException("AntiSamy policy cannot be null"); } if (Util.empty(input)) { return input; } try { CleanResults results = ANTISAMY.scan(input, policy); String result...
public class class_name { public static String sanitize(final String input, final Policy policy) { if (policy == null) { throw new SystemException("AntiSamy policy cannot be null"); } if (Util.empty(input)) { return input; // depends on control dependency: [if], data = [none] } try { CleanResults re...
public class class_name { public Set<String> setUnCapitalize(final Set<?> target) { if (target == null) { return null; } final Set<String> result = new LinkedHashSet<String>(target.size() + 2); for (final Object element : target) { result.add(unCapitalize(element...
public class class_name { public Set<String> setUnCapitalize(final Set<?> target) { if (target == null) { return null; // depends on control dependency: [if], data = [none] } final Set<String> result = new LinkedHashSet<String>(target.size() + 2); for (final Object element :...
public class class_name { public static int getContentLengthValue(H2HeaderField header) { if ("content-length".equalsIgnoreCase(header.getName())) { return Integer.parseInt(header.getValue()); } return -1; } }
public class class_name { public static int getContentLengthValue(H2HeaderField header) { if ("content-length".equalsIgnoreCase(header.getName())) { return Integer.parseInt(header.getValue()); // depends on control dependency: [if], data = [none] } return -1; } }
public class class_name { private static SymbolTable readOneImport(IonReader ionRep, IonCatalog catalog) { assert (ionRep.getType() == IonType.STRUCT); String name = null; int version = -1; int maxid = -1; ionRep.stepIn();...
public class class_name { private static SymbolTable readOneImport(IonReader ionRep, IonCatalog catalog) { assert (ionRep.getType() == IonType.STRUCT); String name = null; int version = -1; int maxid = -1; ionRep.stepIn();...
public class class_name { public static String insert(final String src, final String insert, int offset) { if (offset < 0) { offset = 0; } if (offset > src.length()) { offset = src.length(); } StringBuilder sb = new StringBuilder(src); sb.insert(offset, insert); return sb.toString(); } }
public class class_name { public static String insert(final String src, final String insert, int offset) { if (offset < 0) { offset = 0; // depends on control dependency: [if], data = [none] } if (offset > src.length()) { offset = src.length(); // depends on control dependency: [if], data = [none] } St...
public class class_name { protected String getETag( final StoredObject so ) { String resourceLength = ""; String lastModified = ""; if ( so != null && so.isResource() ) { resourceLength = new Long( so.getResourceLength() ).toString(); lastModified = new Lon...
public class class_name { protected String getETag( final StoredObject so ) { String resourceLength = ""; String lastModified = ""; if ( so != null && so.isResource() ) { resourceLength = new Long( so.getResourceLength() ).toString(); // depends on control dependency: ...
public class class_name { public static int getOptions(CollationData data, CollationSettings settings, char[] primaries) { char[] header = data.fastLatinTableHeader; if(header == null) { return -1; } assert((header[0] >> 8) == VERSION); if(primaries.length != LATIN_LIMIT) { ...
public class class_name { public static int getOptions(CollationData data, CollationSettings settings, char[] primaries) { char[] header = data.fastLatinTableHeader; if(header == null) { return -1; } // depends on control dependency: [if], data = [none] assert((header[0] >> 8) == VE...
public class class_name { @Override public boolean hasNext() { resetToLastKey(); long key = mNextKey; if (key != NULL_NODE) { moveTo(mNextKey); while (((ITreeStructData)getNode()).hasFirstChild() && key != mLastParent.peek()) { mLastParent.push(key); ...
public class class_name { @Override public boolean hasNext() { resetToLastKey(); long key = mNextKey; if (key != NULL_NODE) { moveTo(mNextKey); // depends on control dependency: [if], data = [none] while (((ITreeStructData)getNode()).hasFirstChild() && key != mLastPa...
public class class_name { public boolean cancel(SipApplicationSessionTimerTask expirationTimerTask) { boolean cancelled = ((StandardSasTimerTask)expirationTimerTask).cancel(); // Purge is expensive when called frequently, only call it every now and then. // We do not sync the numCancelled varia...
public class class_name { public boolean cancel(SipApplicationSessionTimerTask expirationTimerTask) { boolean cancelled = ((StandardSasTimerTask)expirationTimerTask).cancel(); // Purge is expensive when called frequently, only call it every now and then. // We do not sync the numCancelled varia...
public class class_name { public Entry findLastTerm() { for (int i = entries.size() - 1; i >= 0; i--) { final Entry entry = entries.get(i); if (ENTRY_TYPE_TERM == entry.type) { return entry; } } return null; } }
public class class_name { public Entry findLastTerm() { for (int i = entries.size() - 1; i >= 0; i--) { final Entry entry = entries.get(i); if (ENTRY_TYPE_TERM == entry.type) { return entry; // depends on control dependency: [if], data = [none] ...
public class class_name { public String decorateTagAction(String content, String configFile, String locale, ServletRequest req) { try { Locale loc = null; CmsFlexController controller = CmsFlexController.getController(req); if (CmsStringUtil.isEmpty(locale)) { ...
public class class_name { public String decorateTagAction(String content, String configFile, String locale, ServletRequest req) { try { Locale loc = null; CmsFlexController controller = CmsFlexController.getController(req); if (CmsStringUtil.isEmpty(locale)) { ...
public class class_name { private static OtpTransport r4_publish(final OtpLocalNode node) throws IOException { OtpTransport s = null; try { @SuppressWarnings("resource") final OtpOutputStream obuf = new OtpOutputStream(); s = node.createTransport((String...
public class class_name { private static OtpTransport r4_publish(final OtpLocalNode node) throws IOException { OtpTransport s = null; try { @SuppressWarnings("resource") final OtpOutputStream obuf = new OtpOutputStream(); s = node.createTransport((String...
public class class_name { private TableModel createTableModel(Object object, Set<String> excludedMethods) { List<Method> methods = new ArrayList<Method>(); for (Method method : object.getClass().getMethods()) { if ((method.getParameterTypes().length == 0) || (method.getParameterTypes().le...
public class class_name { private TableModel createTableModel(Object object, Set<String> excludedMethods) { List<Method> methods = new ArrayList<Method>(); for (Method method : object.getClass().getMethods()) { if ((method.getParameterTypes().length == 0) || (method.getParameterTypes().le...
public class class_name { private static String[] getHttpMethodAndPath(Method method) { if(null == method){ return null; } String[] httpMethodAndPath; Route routeAnnotation = method.getAnnotation(Route.class); if(null != routeAnnotation){//从Annotation中获取HttpMethod和路径 httpMethodAndPath = getH...
public class class_name { private static String[] getHttpMethodAndPath(Method method) { if(null == method){ return null; // depends on control dependency: [if], data = [none] } String[] httpMethodAndPath; Route routeAnnotation = method.getAnnotation(Route.class); if(null != routeAnnotation){//从A...
public class class_name { private String getInfoFormat(List<WorkerInfo> workerInfoList, boolean isShort) { int maxWorkerNameLength = workerInfoList.stream().map(w -> w.getAddress().getHost().length()) .max(Comparator.comparing(Integer::intValue)).get(); int firstIndent = 16; if (firstIndent <= maxW...
public class class_name { private String getInfoFormat(List<WorkerInfo> workerInfoList, boolean isShort) { int maxWorkerNameLength = workerInfoList.stream().map(w -> w.getAddress().getHost().length()) .max(Comparator.comparing(Integer::intValue)).get(); int firstIndent = 16; if (firstIndent <= maxW...
public class class_name { public int getWidth() { try { return ((RemoteWebElement) getElement()).getSize().width; } catch (NumberFormatException e) { throw new WebElementException("Attribute " + WIDTH + " not found for Image " + getLocator(), e); } } }
public class class_name { public int getWidth() { try { return ((RemoteWebElement) getElement()).getSize().width; // depends on control dependency: [try], data = [none] } catch (NumberFormatException e) { throw new WebElementException("Attribute " + WIDTH + " not found for Image...
public class class_name { public static String bareMIME(final String pMIME) { int idx; if (pMIME != null && (idx = pMIME.indexOf(';')) >= 0) { return pMIME.substring(0, idx); } return pMIME; } }
public class class_name { public static String bareMIME(final String pMIME) { int idx; if (pMIME != null && (idx = pMIME.indexOf(';')) >= 0) { return pMIME.substring(0, idx); // depends on control dependency: [if], data = [none] } return pMIME; } }
public class class_name { @javax.annotation.Nonnull public static double[] op(@javax.annotation.Nonnull final double[] a, @javax.annotation.Nonnull final DoubleUnaryOperator fn) { @javax.annotation.Nonnull final double[] c = new double[a.length]; for (int j = 0; j < a.length; j++) { c[j] = fn.applyAsDo...
public class class_name { @javax.annotation.Nonnull public static double[] op(@javax.annotation.Nonnull final double[] a, @javax.annotation.Nonnull final DoubleUnaryOperator fn) { @javax.annotation.Nonnull final double[] c = new double[a.length]; for (int j = 0; j < a.length; j++) { c[j] = fn.applyAsDo...
public class class_name { private AuthToken parseAuthorizationToken(String authHeader) { try { String tokenEncoded = authHeader.substring(11); return AuthTokenUtil.consumeToken(tokenEncoded); } catch (IllegalArgumentException e) { // TODO log this error r...
public class class_name { private AuthToken parseAuthorizationToken(String authHeader) { try { String tokenEncoded = authHeader.substring(11); return AuthTokenUtil.consumeToken(tokenEncoded); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentExceptio...
public class class_name { private TreeNode apportion(TreeNode v, TreeNode defaultAncestor, TreeNode leftSibling, TreeNode parentOfV) { TreeNode w = leftSibling; if (w == null) { // v has no left sibling return defaultAncestor; } // v has left sibling w // The following variables "v..." are used to ...
public class class_name { private TreeNode apportion(TreeNode v, TreeNode defaultAncestor, TreeNode leftSibling, TreeNode parentOfV) { TreeNode w = leftSibling; if (w == null) { // v has no left sibling return defaultAncestor; // depends on control dependency: [if], data = [none] } // v has left sibli...
public class class_name { public static String getTableNameForAppid(String appIdentifier) { if (StringUtils.isBlank(appIdentifier)) { return null; } else { if (isSharedAppid(appIdentifier)) { // app is sharing a table with other apps appIdentifier = SHARED_TABLE; } return (App.isRoot(appIdentif...
public class class_name { public static String getTableNameForAppid(String appIdentifier) { if (StringUtils.isBlank(appIdentifier)) { return null; // depends on control dependency: [if], data = [none] } else { if (isSharedAppid(appIdentifier)) { // app is sharing a table with other apps appIdentifier...
public class class_name { private static String escapeKeyword(String symbol, EscapeStrategy strategy) { if (tsKeywords.contains(symbol)) { if (strategy.equals(EscapeStrategy.MANGLE)) { return symbol + "$"; } else { return "\"" + symbol + "\""; } } else { return symbol; ...
public class class_name { private static String escapeKeyword(String symbol, EscapeStrategy strategy) { if (tsKeywords.contains(symbol)) { if (strategy.equals(EscapeStrategy.MANGLE)) { return symbol + "$"; // depends on control dependency: [if], data = [none] } else { return "\"" + symb...
public class class_name { public List<BitcoinTransactionInput> parseTransactionInputs(ByteBuffer rawByteBuffer, long noOfTransactionInputs) { ArrayList<BitcoinTransactionInput> currentTransactionInput = new ArrayList<>((int)noOfTransactionInputs); for (int i=0;i<noOfTransactionInputs;i++) { // read previous Hash...
public class class_name { public List<BitcoinTransactionInput> parseTransactionInputs(ByteBuffer rawByteBuffer, long noOfTransactionInputs) { ArrayList<BitcoinTransactionInput> currentTransactionInput = new ArrayList<>((int)noOfTransactionInputs); for (int i=0;i<noOfTransactionInputs;i++) { // read previous Hash...
public class class_name { public void warning (String msg) { StackTraceElement caller = StackTraceUtils.getCallerStackTraceElement (); if (caller != null) { logger.logp (Level.WARNING, caller.getClassName (), caller.getMethodName () + "():" + caller.getLineNumber (), msg); } else { logger.logp (Level.WARNI...
public class class_name { public void warning (String msg) { StackTraceElement caller = StackTraceUtils.getCallerStackTraceElement (); if (caller != null) { logger.logp (Level.WARNING, caller.getClassName (), caller.getMethodName () + "():" + caller.getLineNumber (), msg); } else { logger.logp (Level.WARNI...
public class class_name { public static @Nonnull JsonArray toJsonJLineString(@Nonnull double[][] lineString) { JsonArray points = array(); for (double[] values : lineString) { JsonArray subArray = array(); for (double value : values) { subArray.add(primitive(valu...
public class class_name { public static @Nonnull JsonArray toJsonJLineString(@Nonnull double[][] lineString) { JsonArray points = array(); for (double[] values : lineString) { JsonArray subArray = array(); for (double value : values) { subArray.add(primitive(valu...
public class class_name { @Override protected void initGraphics() { // Set initial size if (Double.compare(clock.getPrefWidth(), 0.0) <= 0 || Double.compare(clock.getPrefHeight(), 0.0) <= 0 || Double.compare(clock.getWidth(), 0.0) <= 0 || Double.compare(clock.getHeight(), 0.0) <= 0) { ...
public class class_name { @Override protected void initGraphics() { // Set initial size if (Double.compare(clock.getPrefWidth(), 0.0) <= 0 || Double.compare(clock.getPrefHeight(), 0.0) <= 0 || Double.compare(clock.getWidth(), 0.0) <= 0 || Double.compare(clock.getHeight(), 0.0) <= 0) { ...