code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void setInstanceIds(java.util.Collection<InstanceIdDetail> instanceIds) { if (instanceIds == null) { this.instanceIds = null; return; } this.instanceIds = new java.util.ArrayList<InstanceIdDetail>(instanceIds); } }
public class class_name { public void setInstanceIds(java.util.Collection<InstanceIdDetail> instanceIds) { if (instanceIds == null) { this.instanceIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void setDetectionAttributes(java.util.Collection<String> detectionAttributes) { if (detectionAttributes == null) { this.detectionAttributes = null; return; } this.detectionAttributes = new java.util.ArrayList<String>(detectionAttributes)...
public class class_name { public void setDetectionAttributes(java.util.Collection<String> detectionAttributes) { if (detectionAttributes == null) { this.detectionAttributes = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data...
public class class_name { protected void init(String line) throws ProblemFormatException { StringTokenizer st = new StringTokenizer(line); try { this.id = st.nextToken(); this.dimension = Integer.valueOf(st.nextToken()); this.capacity = Integer.valueOf(st.nextToken(...
public class class_name { protected void init(String line) throws ProblemFormatException { StringTokenizer st = new StringTokenizer(line); try { this.id = st.nextToken(); this.dimension = Integer.valueOf(st.nextToken()); this.capacity = Integer.valueOf(st.nextToken(...
public class class_name { private void addQueryParams(final Request request) { if (dateCreatedFrom != null) { request.addQueryParam("DateCreatedFrom", dateCreatedFrom.toString()); } if (dateCreatedTo != null) { request.addQueryParam("DateCreatedTo", dateCreatedTo.toStri...
public class class_name { private void addQueryParams(final Request request) { if (dateCreatedFrom != null) { request.addQueryParam("DateCreatedFrom", dateCreatedFrom.toString()); // depends on control dependency: [if], data = [none] } if (dateCreatedTo != null) { reque...
public class class_name { public int compareTo (@Nonnull final VersionRange rhs) { int i = m_aFloorVersion.compareTo (rhs.m_aFloorVersion); if (i == 0) { if (m_bIncludeFloor && !rhs.m_bIncludeFloor) { // this < rhs i = -1; } else if (!m_bIncludeFloor && rhs...
public class class_name { public int compareTo (@Nonnull final VersionRange rhs) { int i = m_aFloorVersion.compareTo (rhs.m_aFloorVersion); if (i == 0) { if (m_bIncludeFloor && !rhs.m_bIncludeFloor) { // this < rhs i = -1; // depends on control dependency: [if], data = [none] ...
public class class_name { private CompletionStage<Void> initializeSentinels() { if (closed) { return closeFuture; } Duration timeout = getTimeout(); List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>> connectionFutures = potentiallyConnectSentinels(); ...
public class class_name { private CompletionStage<Void> initializeSentinels() { if (closed) { return closeFuture; // depends on control dependency: [if], data = [none] } Duration timeout = getTimeout(); List<ConnectionFuture<StatefulRedisPubSubConnection<String, String>>>...
public class class_name { protected void fail(final Receiver<Void> receiver, final ServerFailure failure) { this.reuse(); failure.setRequestContext(this); Set<Throwable> causes = null; for (final AbstractRequest<?, ?> request : new ArrayList<>(this.state.invocations)) { try { request.onFa...
public class class_name { protected void fail(final Receiver<Void> receiver, final ServerFailure failure) { this.reuse(); failure.setRequestContext(this); Set<Throwable> causes = null; for (final AbstractRequest<?, ?> request : new ArrayList<>(this.state.invocations)) { try { request.onFa...
public class class_name { public void tag(Table table) { int size = table.size(); if (size == 0) return; int tagSize = id2tag.length; double[][] net = new double[size][tagSize]; for (int i = 0; i < size; ++i) { LinkedList<double[]> scoreList = computeScor...
public class class_name { public void tag(Table table) { int size = table.size(); if (size == 0) return; int tagSize = id2tag.length; double[][] net = new double[size][tagSize]; for (int i = 0; i < size; ++i) { LinkedList<double[]> scoreList = computeScor...
public class class_name { private Object[] getObjectIdsImpl(Context cx, Object object) { if (!(object instanceof Scriptable) || object == Undefined.instance) { return Context.emptyArgs; } Object[] ids; Scriptable scriptable = (Scriptable)object; if (scriptable insta...
public class class_name { private Object[] getObjectIdsImpl(Context cx, Object object) { if (!(object instanceof Scriptable) || object == Undefined.instance) { return Context.emptyArgs; // depends on control dependency: [if], data = [none] } Object[] ids; Scriptable scripta...
public class class_name { private GeneralValidator<DPO, RI, RO, RHI> build() { // Create validator GeneralValidator<DPO, RI, RO, RHI> validator = new GeneralValidator<DPO, RI, RO, RHI>(); // Add triggers for (Trigger trigger : addedTriggers) { validator.addTrigger(trigger);...
public class class_name { private GeneralValidator<DPO, RI, RO, RHI> build() { // Create validator GeneralValidator<DPO, RI, RO, RHI> validator = new GeneralValidator<DPO, RI, RO, RHI>(); // Add triggers for (Trigger trigger : addedTriggers) { validator.addTrigger(trigger);...
public class class_name { public final List<PhoneNumberData> getSuggstions(final String psearch, final int plimit, final Locale plocale) { final List<PhoneNumberData> suggestList = new ArrayList<>(plimit); final String cleanedPhoneNumber = cleanString(psearch); PhoneCountryCodeData foundCounty = null...
public class class_name { public final List<PhoneNumberData> getSuggstions(final String psearch, final int plimit, final Locale plocale) { final List<PhoneNumberData> suggestList = new ArrayList<>(plimit); final String cleanedPhoneNumber = cleanString(psearch); PhoneCountryCodeData foundCounty = null...
public class class_name { static <T extends Annotation> Class<?> getTypeOfConstraintValidator( final Class<? extends ConstraintValidator<T, ?>> constraintClass) { int candidateCount = 0; Class<?> result = null; for (final Method method : constraintClass.getMethods()) { if (method.getName().equ...
public class class_name { static <T extends Annotation> Class<?> getTypeOfConstraintValidator( final Class<? extends ConstraintValidator<T, ?>> constraintClass) { int candidateCount = 0; Class<?> result = null; for (final Method method : constraintClass.getMethods()) { if (method.getName().equ...
public class class_name { public void contextInitialized(ServletContextEvent sce) { LogLog.debug("Start to initialize log4j"); LogLog.debug("Confige CXF to use log4j!"); ServletContext sc = sce.getServletContext(); if (Log4jWebUtils.isWatchDisabled(sc)) { Log4jWebUtils.reload(sc); ...
public class class_name { public void contextInitialized(ServletContextEvent sce) { LogLog.debug("Start to initialize log4j"); LogLog.debug("Confige CXF to use log4j!"); ServletContext sc = sce.getServletContext(); if (Log4jWebUtils.isWatchDisabled(sc)) { Log4jWebUtils.reload(sc); ...
public class class_name { public ResponseBuilder updateResource(final Resource res) { final String baseUrl = getBaseUrl(); final String identifier = baseUrl + req.getPartition() + req.getPath() + (ACL.equals(req.getExt()) ? "?ext=acl" : ""); if (isNull(sparqlUpdate)) { ...
public class class_name { public ResponseBuilder updateResource(final Resource res) { final String baseUrl = getBaseUrl(); final String identifier = baseUrl + req.getPartition() + req.getPath() + (ACL.equals(req.getExt()) ? "?ext=acl" : ""); if (isNull(sparqlUpdate)) { ...
public class class_name { @Override public EClass getIfcProductDefinitionShape() { if (ifcProductDefinitionShapeEClass == null) { ifcProductDefinitionShapeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(455); } return ifcProductDefinitionShapeEC...
public class class_name { @Override public EClass getIfcProductDefinitionShape() { if (ifcProductDefinitionShapeEClass == null) { ifcProductDefinitionShapeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(455); // depends on control dependency: [if], d...
public class class_name { @SuppressWarnings("unchecked") public static <K, V> char[] getFirstCharArray(CommandArgs<K, V> commandArgs) { for (SingularArgument singularArgument : commandArgs.singularArguments) { if (singularArgument instanceof CharArrayArgument) { return ((CharA...
public class class_name { @SuppressWarnings("unchecked") public static <K, V> char[] getFirstCharArray(CommandArgs<K, V> commandArgs) { for (SingularArgument singularArgument : commandArgs.singularArguments) { if (singularArgument instanceof CharArrayArgument) { return ((CharA...
public class class_name { public byte[] getSecret (PrivateKey key) { if (_secret == null) { _secret = SecureUtil.decryptBytes(key, _encodedSecret, _salt); } return _secret; } }
public class class_name { public byte[] getSecret (PrivateKey key) { if (_secret == null) { _secret = SecureUtil.decryptBytes(key, _encodedSecret, _salt); // depends on control dependency: [if], data = [none] } return _secret; } }
public class class_name { public void hide() { div.removeFromParent(); if (scrollDisabled) { RootPanel.get().getElement().getStyle().setOverflow(Style.Overflow.AUTO); } if (type == LoaderType.CIRCULAR) { preLoader.removeFromParent(); } else if (type == Lo...
public class class_name { public void hide() { div.removeFromParent(); if (scrollDisabled) { RootPanel.get().getElement().getStyle().setOverflow(Style.Overflow.AUTO); // depends on control dependency: [if], data = [none] } if (type == LoaderType.CIRCULAR) { preLo...
public class class_name { public static <T> T[] reverse(T[] array) { if(array == null) return array; int s = 0; int e = array.length - 1; while(s < e) { // swap index e and s T tmp = array[e]; array[e] = array[s]; array[s] = tmp; s++; e--; } re...
public class class_name { public static <T> T[] reverse(T[] array) { if(array == null) return array; int s = 0; int e = array.length - 1; while(s < e) { // swap index e and s T tmp = array[e]; array[e] = array[s]; // depends on control dependency: [while], data = [none] ...
public class class_name { public void run() { setRunning(true); try { addInfo("listening on " + listener); while (!Thread.currentThread().isInterrupted()) { T client = listener.acceptClient(); if (!configureClient(client)) { addError(client + ": connection dropped"); ...
public class class_name { public void run() { setRunning(true); try { addInfo("listening on " + listener); // depends on control dependency: [try], data = [none] while (!Thread.currentThread().isInterrupted()) { T client = listener.acceptClient(); if (!configureClient(client)) { ...
public class class_name { public static StorageDirView getDirWithMaxFreeSpace(long bytesToBeAvailable, BlockStoreLocation location, BlockMetadataManagerView mManagerView) { long maxFreeSize = -1; StorageDirView selectedDirView = null; if (location.equals(BlockStoreLocation.anyTier())) { for (S...
public class class_name { public static StorageDirView getDirWithMaxFreeSpace(long bytesToBeAvailable, BlockStoreLocation location, BlockMetadataManagerView mManagerView) { long maxFreeSize = -1; StorageDirView selectedDirView = null; if (location.equals(BlockStoreLocation.anyTier())) { for (S...
public class class_name { private int compareIntervals(Interval<K> i1, Interval<K> i2) { int res1 = compare(i1.up, i2.low); if (res1 < 0 || res1 <= 0 && (!i1.includeUpper || !i2.includeLower)) { return -1; } int res2 = compare(i2.up, i1.low); if (res2 < 0 || res2 <= 0 && (!i2.inc...
public class class_name { private int compareIntervals(Interval<K> i1, Interval<K> i2) { int res1 = compare(i1.up, i2.low); if (res1 < 0 || res1 <= 0 && (!i1.includeUpper || !i2.includeLower)) { return -1; // depends on control dependency: [if], data = [none] } int res2 = compare(i2.up...
public class class_name { protected void propagateOnTouch(GVRPickedObject hit) { if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { GVREventManager eventManager = getGVRContext().getEventManager(); GVRSceneObject hitObject = hit.getHitObject(); if (mEv...
public class class_name { protected void propagateOnTouch(GVRPickedObject hit) { if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { GVREventManager eventManager = getGVRContext().getEventManager(); GVRSceneObject hitObject = hit.getHitObject(); if (mEv...
public class class_name { private UndeliverableReturnCode handleUndeliverableMessage( SIMPMessage message, String alternateUser, T...
public class class_name { private UndeliverableReturnCode handleUndeliverableMessage( SIMPMessage message, String alternateUser, T...
public class class_name { public static <T> byte[] toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) { if (buffer.start != buffer.offset) throw new IllegalArgumentException("Buffer previously used and had not been reset."); final XmlXOutput output = new XmlXOutput(buffer, s...
public class class_name { public static <T> byte[] toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) { if (buffer.start != buffer.offset) throw new IllegalArgumentException("Buffer previously used and had not been reset."); final XmlXOutput output = new XmlXOutput(buffer, s...
public class class_name { @Override public synchronized void add(DiscoveryEntry discoveryEntry) { logger.debug("adding discovery entry: {}", discoveryEntry); if (!(discoveryEntry instanceof GlobalDiscoveryEntryPersisted)) { return; } GlobalDiscoveryEntryPersisted globalD...
public class class_name { @Override public synchronized void add(DiscoveryEntry discoveryEntry) { logger.debug("adding discovery entry: {}", discoveryEntry); if (!(discoveryEntry instanceof GlobalDiscoveryEntryPersisted)) { return; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void setQueues(final Collection<String> queues) { for (final Worker worker : this.workers) { worker.setQueues(queues); } } }
public class class_name { @Override public void setQueues(final Collection<String> queues) { for (final Worker worker : this.workers) { worker.setQueues(queues); // depends on control dependency: [for], data = [worker] } } }
public class class_name { @Nonnull public ExpressionTreeElement addSubTree(@Nonnull final ExpressionTree tree) { assertNotEmptySlot(); final ExpressionTreeElement root = tree.getRoot(); if (!root.isEmptySlot()) { root.makeMaxPriority(); addElementToNextFreeSlot(root); } return this; ...
public class class_name { @Nonnull public ExpressionTreeElement addSubTree(@Nonnull final ExpressionTree tree) { assertNotEmptySlot(); final ExpressionTreeElement root = tree.getRoot(); if (!root.isEmptySlot()) { root.makeMaxPriority(); // depends on control dependency: [if], data = [none] a...
public class class_name { protected final void writeIndexLikeList( List<String> dirs, List<String> files, PrintWriter writer ) { // JarIndex is sorting the directories by ascending order. // it has no value but cosmetic since it will be read into a // hashtable by the classloader, but we'll...
public class class_name { protected final void writeIndexLikeList( List<String> dirs, List<String> files, PrintWriter writer ) { // JarIndex is sorting the directories by ascending order. // it has no value but cosmetic since it will be read into a // hashtable by the classloader, but we'll...
public class class_name { static String escape(final String text) { if (text == null) { return null; } StringBuilder strBuilder = null; final int offset = 0; final int max = text.length(); int readOffset = offset; for (int i = offset; i < max; i+...
public class class_name { static String escape(final String text) { if (text == null) { return null; // depends on control dependency: [if], data = [none] } StringBuilder strBuilder = null; final int offset = 0; final int max = text.length(); int readOffs...
public class class_name { protected RollbackPatch createRollbackPatch(final String patchId, final Patch.PatchType patchType) { // Process elements final List<PatchElement> elements = new ArrayList<PatchElement>(); // Process layers for (final PatchEntry entry : getLayers()) { ...
public class class_name { protected RollbackPatch createRollbackPatch(final String patchId, final Patch.PatchType patchType) { // Process elements final List<PatchElement> elements = new ArrayList<PatchElement>(); // Process layers for (final PatchEntry entry : getLayers()) { ...
public class class_name { public static boolean setFeatureStyle(MarkerOptions markerOptions, FeatureStyle featureStyle, float density, IconCache iconCache) { boolean featureStyleSet = false; if (featureStyle != null) { featureStyleSet = setIcon(markerOptions, featureStyle.getIcon(), dens...
public class class_name { public static boolean setFeatureStyle(MarkerOptions markerOptions, FeatureStyle featureStyle, float density, IconCache iconCache) { boolean featureStyleSet = false; if (featureStyle != null) { featureStyleSet = setIcon(markerOptions, featureStyle.getIcon(), dens...
public class class_name { public ClassInfoModel readClassInfo(PropertyOwner recordOwner, String className) { String strParamRecord = null; String strParamScreenType = null; String strParamMenu = null; String strParamHelp = null; if (className == null) { ...
public class class_name { public ClassInfoModel readClassInfo(PropertyOwner recordOwner, String className) { String strParamRecord = null; String strParamScreenType = null; String strParamMenu = null; String strParamHelp = null; if (className == null) { ...
public class class_name { private URL getRequiredUrlParameter(String keyword, Map<String, String> parms) { String urlString = getRequiredParameter(keyword, parms); try { return new URL(urlString); } catch (MalformedURLException e) { ...
public class class_name { private URL getRequiredUrlParameter(String keyword, Map<String, String> parms) { String urlString = getRequiredParameter(keyword, parms); try { return new URL(urlString); // depends on control dependency: [try], data = [none]...
public class class_name { String getContentByCardId(String cardId) { Map<String, Object> request = new HashMap<>(); request.put("card_id", cardId); String url = WxEndpoint.get("url.card.mpnews.gethtml"); String json = JsonMapper.defaultMapper().toJson(request); logger.deb...
public class class_name { String getContentByCardId(String cardId) { Map<String, Object> request = new HashMap<>(); request.put("card_id", cardId); String url = WxEndpoint.get("url.card.mpnews.gethtml"); String json = JsonMapper.defaultMapper().toJson(request); logger.deb...
public class class_name { public void marshall(Configuration configuration, ProtocolMarshaller protocolMarshaller) { if (configuration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(configuration...
public class class_name { public void marshall(Configuration configuration, ProtocolMarshaller protocolMarshaller) { if (configuration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(configuration...
public class class_name { public void solve() { while (true) { try { // Is our proof of work valid yet? if (checkProofOfWork(false)) return; // No, so increment the nonce and try again. setNonce(getNonce() + 1); ...
public class class_name { public void solve() { while (true) { try { // Is our proof of work valid yet? if (checkProofOfWork(false)) return; // No, so increment the nonce and try again. setNonce(getNonce() + 1); // ...
public class class_name { @Override public String resolve(HttpServletRequest request) { String authorizationHeaderToken = resolveFromAuthorizationHeader(request); String parameterToken = resolveFromRequestParameters(request); if (authorizationHeaderToken != null) { if (parameterToken != null) { BearerTok...
public class class_name { @Override public String resolve(HttpServletRequest request) { String authorizationHeaderToken = resolveFromAuthorizationHeader(request); String parameterToken = resolveFromRequestParameters(request); if (authorizationHeaderToken != null) { if (parameterToken != null) { BearerTok...
public class class_name { public void onCompleted() { mSerializingExecutor.execute(() -> { Preconditions.checkState(mContext != null); try { completeRequest(mContext); replySuccess(); } catch (Exception e) { LogUtils.warnWithException(LOG, "Exception occurred while complet...
public class class_name { public void onCompleted() { mSerializingExecutor.execute(() -> { Preconditions.checkState(mContext != null); try { completeRequest(mContext); // depends on control dependency: [try], data = [none] replySuccess(); // depends on control dependency: [try], data = ...
public class class_name { @Override public void endElement(String uri, String local, String raw) { //NOPMD logger.debug("END Element: ", raw); logger.debug(" uri: ", uri); logger.debug(" local: ", local); logger.debug(" raw: ", raw); logger.debug(" chars: ", currentChars...
public class class_name { @Override public void endElement(String uri, String local, String raw) { //NOPMD logger.debug("END Element: ", raw); logger.debug(" uri: ", uri); logger.debug(" local: ", local); logger.debug(" raw: ", raw); logger.debug(" chars: ", currentChars...
public class class_name { private void closeChannel() { if (this.channel != null) { if (this.channel.isConnected()) { try { this.channel.disconnect(); } catch (IOException e) { logger.warn(e.getMessage(), e); } ...
public class class_name { private void closeChannel() { if (this.channel != null) { if (this.channel.isConnected()) { try { this.channel.disconnect(); // depends on control dependency: [try], data = [none] } catch (IOException e) { ...
public class class_name { public void add(String name, String... values) { if (containsKey(name)) { List<String> list = get(name); for (String value: values) { list.add(value); } } else { put(name, values); } } }
public class class_name { public void add(String name, String... values) { if (containsKey(name)) { List<String> list = get(name); for (String value: values) { list.add(value); // depends on control dependency: [for], data = [value] } } else { put(name, values); // depends on co...
public class class_name { public String getXPathBase() { String xPathBase = ""; if (this.getElement() != null) { String locator = getLocator(); if (!locator.startsWith("link=") && !locator.startsWith("xpath=") && !locator.startsWith("/")) { if (locator.startsWit...
public class class_name { public String getXPathBase() { String xPathBase = ""; if (this.getElement() != null) { String locator = getLocator(); if (!locator.startsWith("link=") && !locator.startsWith("xpath=") && !locator.startsWith("/")) { if (locator.startsWit...
public class class_name { public Parcelable onSaveInstanceState() { if (isInEditMode) return null; Parcelable superState = delegateCallback.superOnSaveInstanceState(); if (keepPresenterDuringScreenOrientationChange) { return new MosbySavedState(superState, mosbyViewId); } else { return su...
public class class_name { public Parcelable onSaveInstanceState() { if (isInEditMode) return null; Parcelable superState = delegateCallback.superOnSaveInstanceState(); if (keepPresenterDuringScreenOrientationChange) { return new MosbySavedState(superState, mosbyViewId); // depends on control depend...
public class class_name { @Override public String getName() { String name = null; if (webAppConfig!=null) { name=webAppConfig.getModuleName(); } return name; } }
public class class_name { @Override public String getName() { String name = null; if (webAppConfig!=null) { name=webAppConfig.getModuleName(); // depends on control dependency: [if], data = [none] } return name; } }
public class class_name { private int readCRS(JsonParser jp) throws IOException, SQLException { int srid = 0; jp.nextToken(); //START_OBJECT { jp.nextToken();// crs type jp.nextToken(); // crs name String firstField = jp.getText(); if(firstField.equalsIgnoreCase(GeoJsonF...
public class class_name { private int readCRS(JsonParser jp) throws IOException, SQLException { int srid = 0; jp.nextToken(); //START_OBJECT { jp.nextToken();// crs type jp.nextToken(); // crs name String firstField = jp.getText(); if(firstField.equalsIgnoreCase(GeoJsonF...
public class class_name { public String getInformationURL(final String locale) { if (this.uiInfo != null) { val informationUrl = getLocalizedValues(locale, this.uiInfo.getInformationURLs()); return informationUrl != null ? informationUrl : super.getInformationURL(); } re...
public class class_name { public String getInformationURL(final String locale) { if (this.uiInfo != null) { val informationUrl = getLocalizedValues(locale, this.uiInfo.getInformationURLs()); return informationUrl != null ? informationUrl : super.getInformationURL(); // depends on contro...
public class class_name { public void zmatrixChainToCartesian(IAtomContainer molecule, boolean flagBranched) { Point3d result = null; for (int index = 0; index < distances.length; index++) { if (index == 0) { result = new Point3d(0d, 0d, 0d); } else if (index == ...
public class class_name { public void zmatrixChainToCartesian(IAtomContainer molecule, boolean flagBranched) { Point3d result = null; for (int index = 0; index < distances.length; index++) { if (index == 0) { result = new Point3d(0d, 0d, 0d); // depends on control dependency...
public class class_name { public void marshall(GetCampaignActivitiesRequest getCampaignActivitiesRequest, ProtocolMarshaller protocolMarshaller) { if (getCampaignActivitiesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetCampaignActivitiesRequest getCampaignActivitiesRequest, ProtocolMarshaller protocolMarshaller) { if (getCampaignActivitiesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Subscribe public void onSuiteResult(AggregatedSuiteResultEvent e) { // Calculate summaries. summaryListener.suiteSummary(e); Description suiteDescription = e.getDescription(); String displayName = suiteDescription.getDisplayName(); if (displayName.trim().isEmpty()) { ...
public class class_name { @Subscribe public void onSuiteResult(AggregatedSuiteResultEvent e) { // Calculate summaries. summaryListener.suiteSummary(e); Description suiteDescription = e.getDescription(); String displayName = suiteDescription.getDisplayName(); if (displayName.trim().isEmpty()) { ...
public class class_name { @Override public synchronized T get() { T val; synchronized(this) { if(valRef==null || (val = valRef.get())==null) { val = make(); valRef = new WeakReference<T>(val); } } return val; } }
public class class_name { @Override public synchronized T get() { T val; synchronized(this) { if(valRef==null || (val = valRef.get())==null) { val = make(); // depends on control dependency: [if], data = [none] valRef = new WeakReference<T>(val); // depends on control dependency: [if], data = [n...
public class class_name { public static double blackScholesGeneralizedOptionVega( double forward, double volatility, double optionMaturity, double optionStrike, double payoffUnit) { if(optionStrike <= 0.0 || optionMaturity <= 0.0) { // The Black-Scholes model does not consider it being an option...
public class class_name { public static double blackScholesGeneralizedOptionVega( double forward, double volatility, double optionMaturity, double optionStrike, double payoffUnit) { if(optionStrike <= 0.0 || optionMaturity <= 0.0) { // The Black-Scholes model does not consider it being an option...
public class class_name { public void removePropertyChangeListener( String propertyName, PropertyChangeListener listener) { if (listener == null || propertyName == null) { return; } listener = this.map.extract(listener); if (listener != null) ...
public class class_name { public void removePropertyChangeListener( String propertyName, PropertyChangeListener listener) { if (listener == null || propertyName == null) { return; // depends on control dependency: [if], data = [none] } listener = this...
public class class_name { BitSet toEdgeVector(final int[] path) { final BitSet incidence = new BitSet(edges.size()); int len = path.length - 1; for (int i = 0; i < len; i++) { incidence.set(indexOfEdge(path[i], path[i + 1])); } return incidence; } }
public class class_name { BitSet toEdgeVector(final int[] path) { final BitSet incidence = new BitSet(edges.size()); int len = path.length - 1; for (int i = 0; i < len; i++) { incidence.set(indexOfEdge(path[i], path[i + 1])); // depends on control dependency: [for], data = [i] ...
public class class_name { public String removeProperty(final String propertyName) throws DOMException { if (null == propertyName) { return ""; } for (int i = 0; i < properties_.size(); i++) { final Property p = properties_.get(i); if (p != null && propertyNam...
public class class_name { public String removeProperty(final String propertyName) throws DOMException { if (null == propertyName) { return ""; } for (int i = 0; i < properties_.size(); i++) { final Property p = properties_.get(i); if (p != null && propertyNam...
public class class_name { public void putDefaults(Map map) { Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry)it.next(); Object key = entry.getKey(); if (!containsKey(key)) { put(key, entry.getValue()); ...
public class class_name { public void putDefaults(Map map) { Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry)it.next(); Object key = entry.getKey(); if (!containsKey(key)) { put(key, entry.getValue()); // d...
public class class_name { @SuppressWarnings("static-method") protected int getIssueAdornment(XtendMember element) { final ICompositeNode node = NodeModelUtils.getNode(element); if (node == null) { return 0; } // Error markers are more important than warning markers. // Order of checks: // - parser erro...
public class class_name { @SuppressWarnings("static-method") protected int getIssueAdornment(XtendMember element) { final ICompositeNode node = NodeModelUtils.getNode(element); if (node == null) { return 0; // depends on control dependency: [if], data = [none] } // Error markers are more important than war...
public class class_name { protected boolean validate(String text) { try { String[] strings = text.split(","); for (int i = 0; i < strings.length; i++) { Integer.parseInt(strings[i].trim()); } return true; } catch (NumberFormatException e) { return false; } } }
public class class_name { protected boolean validate(String text) { try { String[] strings = text.split(","); for (int i = 0; i < strings.length; i++) { Integer.parseInt(strings[i].trim()); // depends on control dependency: [for], data = [i] } return true; // depends on control dependency: [try...
public class class_name { public static CmsMacroResolver getMacroResolverForProperties( final CmsObject cms, final I_CmsXmlContentHandler contentHandler, final CmsXmlContent content, final Function<String, String> stringtemplateSource, final CmsResource containerPage) { ...
public class class_name { public static CmsMacroResolver getMacroResolverForProperties( final CmsObject cms, final I_CmsXmlContentHandler contentHandler, final CmsXmlContent content, final Function<String, String> stringtemplateSource, final CmsResource containerPage) { ...
public class class_name { @Override public synchronized UserTransaction getUserTransaction() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getUserTransaction"); // Calling getUserTransaction is not allowed ...
public class class_name { @Override public synchronized UserTransaction getUserTransaction() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getUserTransaction"); // Calling getUserTransaction is not allowed ...
public class class_name { @Override public String getLocalName() { try { collaborator.preInvoke(componentMetaData); return request.getLocalName(); } finally { collaborator.postInvoke(); } } }
public class class_name { @Override public String getLocalName() { try { collaborator.preInvoke(componentMetaData); // depends on control dependency: [try], data = [none] return request.getLocalName(); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public synchronized Exception getException(Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getException", conversation); checkReleased(); // The top level exception we want to return at the end E...
public class class_name { public synchronized Exception getException(Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getException", conversation); checkReleased(); // The top level exception we want to return at the end E...
public class class_name { public static int searchLast(long[] longArray, long value, int occurrence) { if(occurrence <= 0 || occurrence > longArray.length) { throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than " + "the array length: " + occ...
public class class_name { public static int searchLast(long[] longArray, long value, int occurrence) { if(occurrence <= 0 || occurrence > longArray.length) { throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than " + "the array length: " + occ...
public class class_name { public String asString(final String format) { try { return format(EnglishEnums.valueOf(MapFormat.class, format), new StringBuilder()).toString(); } catch (final IllegalArgumentException ex) { return asString(); } } }
public class class_name { public String asString(final String format) { try { return format(EnglishEnums.valueOf(MapFormat.class, format), new StringBuilder()).toString(); // depends on control dependency: [try], data = [none] } catch (final IllegalArgumentException ex) { return...
public class class_name { public static <P extends Enum<P>> boolean hasEnum(final JSONObject json, final String key, final Class<? extends Enum> enumType) { if (hasInstanceOf(json, key, enumType)) { return true; } final Object o...
public class class_name { public static <P extends Enum<P>> boolean hasEnum(final JSONObject json, final String key, final Class<? extends Enum> enumType) { if (hasInstanceOf(json, key, enumType)) { return true; // depends on control dependency:...
public class class_name { @RequestMapping(path = "/{customerId}", method = RequestMethod.DELETE) public ResponseEntity removeCustomer(@PathVariable("customerId") Long customerId){ boolean succeed = customerService.removeCustomer(customerId); if(succeed){ return new ResponseEntity(HttpSt...
public class class_name { @RequestMapping(path = "/{customerId}", method = RequestMethod.DELETE) public ResponseEntity removeCustomer(@PathVariable("customerId") Long customerId){ boolean succeed = customerService.removeCustomer(customerId); if(succeed){ return new ResponseEntity(HttpSt...
public class class_name { private static String[] readArgsFile(String argsFile) throws IOException { final ArrayList<String> lines = new ArrayList<String>(); final BufferedReader reader = new BufferedReader( new InputStreamReader( new FileInputStream(argsFile), "UTF-8")); try { St...
public class class_name { private static String[] readArgsFile(String argsFile) throws IOException { final ArrayList<String> lines = new ArrayList<String>(); final BufferedReader reader = new BufferedReader( new InputStreamReader( new FileInputStream(argsFile), "UTF-8")); try { St...
public class class_name { private void executeStatement(String statement) throws SQLException { Statement stmt = null; try { stmt = m_con.createStatement(); stmt.execute(statement); } finally { if (stmt != null) { stmt.close(); }...
public class class_name { private void executeStatement(String statement) throws SQLException { Statement stmt = null; try { stmt = m_con.createStatement(); stmt.execute(statement); } finally { if (stmt != null) { stmt.close(); // depends on...
public class class_name { private double[] multiScore(MultiStringWrapper ms,MultiStringWrapper mt) { if (ms.size() != mt.size()) { throw new IllegalArgumentException("inputs have different numbers of fields"); } int n = ms.size(); double scores[] = new double[n]; for (int i=0; i<n; i++) { scores[i] =...
public class class_name { private double[] multiScore(MultiStringWrapper ms,MultiStringWrapper mt) { if (ms.size() != mt.size()) { throw new IllegalArgumentException("inputs have different numbers of fields"); } int n = ms.size(); double scores[] = new double[n]; for (int i=0; i<n; i++) { scores[i] =...
public class class_name { static public FwdPassReturn activateHelper(final BaseLayer layer, final NeuralNetConfiguration conf, final IActivation gateActivationFn, //Activation function for the gates - sigmoid or hard sigmoid (must be found in range 0 to 1) ...
public class class_name { static public FwdPassReturn activateHelper(final BaseLayer layer, final NeuralNetConfiguration conf, final IActivation gateActivationFn, //Activation function for the gates - sigmoid or hard sigmoid (must be found in range 0 to 1) ...
public class class_name { protected final Map<String,Object> readMapFrom( RawDataBuffer in ) { int mapSize = in.readInt(); if (mapSize == 0) return null; Map<String,Object> map = new HashMap<>(Math.max(17,mapSize*4/3)); for (int n = 0 ; n < mapSize ; n++) {...
public class class_name { protected final Map<String,Object> readMapFrom( RawDataBuffer in ) { int mapSize = in.readInt(); if (mapSize == 0) return null; Map<String,Object> map = new HashMap<>(Math.max(17,mapSize*4/3)); for (int n = 0 ; n < mapSize ; n++) {...
public class class_name { public void marshall(OriginationRoute originationRoute, ProtocolMarshaller protocolMarshaller) { if (originationRoute == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(orig...
public class class_name { public void marshall(OriginationRoute originationRoute, ProtocolMarshaller protocolMarshaller) { if (originationRoute == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(orig...
public class class_name { @Override protected GeneratedData genVdmToTargetLang(List<IRStatus<PIR>> statuses) throws AnalysisException { GeneratedData r = new GeneratedData(); try { // Apply transformations for (IRStatus<PIR> status : statuses) { // make init ...
public class class_name { @Override protected GeneratedData genVdmToTargetLang(List<IRStatus<PIR>> statuses) throws AnalysisException { GeneratedData r = new GeneratedData(); try { // Apply transformations for (IRStatus<PIR> status : statuses) { // make init ...
public class class_name { private void browseForImage() { if (emitter != null) { int resp = chooser.showOpenDialog(this); if (resp == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); String path = file.getParentFile().getAbsolutePath(); String name = file.getName(); ...
public class class_name { private void browseForImage() { if (emitter != null) { int resp = chooser.showOpenDialog(this); if (resp == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); String path = file.getParentFile().getAbsolutePath(); String name = file.getName(); ...
public class class_name { private void removeWorker(final Worker worker) { log.info("Kaboom! Worker[%s] removed!", worker.getHost()); final ZkWorker zkWorker = zkWorkers.get(worker.getHost()); if (zkWorker != null) { try { scheduleTasksCleanupForWorker(worker.getHost(), getAssignedTasks(wo...
public class class_name { private void removeWorker(final Worker worker) { log.info("Kaboom! Worker[%s] removed!", worker.getHost()); final ZkWorker zkWorker = zkWorkers.get(worker.getHost()); if (zkWorker != null) { try { scheduleTasksCleanupForWorker(worker.getHost(), getAssignedTasks(wo...
public class class_name { static Map<String, DBObject> getDocumentFromObject(Metamodel metaModel, Object obj, Set<Attribute> columns, String tableName) throws PropertyAccessException { Map<String, DBObject> embeddedObjects = new HashMap<String, DBObject>(); // BasicDBObject dBObj = ...
public class class_name { static Map<String, DBObject> getDocumentFromObject(Metamodel metaModel, Object obj, Set<Attribute> columns, String tableName) throws PropertyAccessException { Map<String, DBObject> embeddedObjects = new HashMap<String, DBObject>(); // BasicDBObject dBObj = ...
public class class_name { protected void initJsonWriter() { String writerList = config.getJsonWriters(); if (writerList != null) { String[] writers = writerList.split(","); Set<String> supportedWriters = TreeWriterRegistry.getWritersByFormat("json"); TreeWriter selectedWriter = null; for (String writer...
public class class_name { protected void initJsonWriter() { String writerList = config.getJsonWriters(); if (writerList != null) { String[] writers = writerList.split(","); Set<String> supportedWriters = TreeWriterRegistry.getWritersByFormat("json"); TreeWriter selectedWriter = null; for (String writer...
public class class_name { private void setExternalProperties(String name, HColumnDescriptor hColumnDescriptor) { Properties properties = externalProperties != null ? externalProperties.get(name) : null; if (properties != null && !properties.isEmpty()) { for (Object obj : propert...
public class class_name { private void setExternalProperties(String name, HColumnDescriptor hColumnDescriptor) { Properties properties = externalProperties != null ? externalProperties.get(name) : null; if (properties != null && !properties.isEmpty()) { for (Object obj : propert...
public class class_name { public static long parseTimestampFromUIDString(String s, final int start, final int end) { long ret = 0; for (int i = start; i < end && i < start + 9; i++) { ret <<= 5; char c = s.charAt(i); if (c >= '0' && c <= '9') { ret |=...
public class class_name { public static long parseTimestampFromUIDString(String s, final int start, final int end) { long ret = 0; for (int i = start; i < end && i < start + 9; i++) { ret <<= 5; // depends on control dependency: [for], data = [none] char c = s.charAt(i); ...
public class class_name { public static void addPropertyBigInteger( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, BigInteger value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public static void addPropertyBigInteger( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, BigInteger value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public static String syncRestCall(final String purl) { try { return CACHE.get(purl); } catch (final ExecutionException e) { GWT.log(e.getMessage(), e); return null; } } }
public class class_name { public static String syncRestCall(final String purl) { try { return CACHE.get(purl); // depends on control dependency: [try], data = [none] } catch (final ExecutionException e) { GWT.log(e.getMessage(), e); return null; } // depends on control dependency: [catch]...
public class class_name { @Override public boolean isSupported(TemporalField field) { if (field == WEEK_OF_WEEK_BASED_YEAR || field == WEEK_BASED_YEAR) { return true; } else if (field instanceof ChronoField) { return false; } return field != null && field.isS...
public class class_name { @Override public boolean isSupported(TemporalField field) { if (field == WEEK_OF_WEEK_BASED_YEAR || field == WEEK_BASED_YEAR) { return true; // depends on control dependency: [if], data = [none] } else if (field instanceof ChronoField) { return fals...
public class class_name { public void doIt() { if (nodeidx == -1) { GetLogsTask t = new GetLogsTask(); t.doIt(); bytes = t._bytes; } else { H2ONode node = H2O.CLOUD._memary[nodeidx]; GetLogsTask t = new GetLogsTask(); Log.trace("GetLogsTask starting to node " + nodeidx +...
public class class_name { public void doIt() { if (nodeidx == -1) { GetLogsTask t = new GetLogsTask(); t.doIt(); // depends on control dependency: [if], data = [none] bytes = t._bytes; // depends on control dependency: [if], data = [none] } else { H2ONode node = H2O.CLOUD._memary[no...
public class class_name { public Object valueAtIn(int index, List aList) { if (aList.size() > index) { return aList.get(index); } else { throw new SlimFixtureException(false, "list only has " + aList.size() + " elements"); } } }
public class class_name { public Object valueAtIn(int index, List aList) { if (aList.size() > index) { return aList.get(index); // depends on control dependency: [if], data = [index)] } else { throw new SlimFixtureException(false, "list only has " + aList.size() + " elements"); ...
public class class_name { public static List<Parameter> mergeParameters(List<Parameter> one, List<Parameter> two) { if (isAllNull(one, two) || !isAllNotNull(one, two)) return null; if (one.size() != two.size()) return null; List<Parameter> result = new ArrayList<>(); for (int index = ...
public class class_name { public static List<Parameter> mergeParameters(List<Parameter> one, List<Parameter> two) { if (isAllNull(one, two) || !isAllNotNull(one, two)) return null; if (one.size() != two.size()) return null; List<Parameter> result = new ArrayList<>(); for (int index = ...
public class class_name { private void applyFontToToolbar(final Toolbar view) { final CharSequence previousTitle = view.getTitle(); final CharSequence previousSubtitle = view.getSubtitle(); // The toolbar inflates both the title and the subtitle views lazily but luckily they do it // sy...
public class class_name { private void applyFontToToolbar(final Toolbar view) { final CharSequence previousTitle = view.getTitle(); final CharSequence previousSubtitle = view.getSubtitle(); // The toolbar inflates both the title and the subtitle views lazily but luckily they do it // sy...
public class class_name { public synchronized ApiFuture<FlatRow> add(Query query) { Preconditions.checkNotNull(query); ReadRowsRequest request = query.toProto(requestContext); Preconditions.checkArgument(request.getRows().getRowKeysCount() == 1); ByteString rowKey = request.getRows().getRowKeysList()....
public class class_name { public synchronized ApiFuture<FlatRow> add(Query query) { Preconditions.checkNotNull(query); ReadRowsRequest request = query.toProto(requestContext); Preconditions.checkArgument(request.getRows().getRowKeysCount() == 1); ByteString rowKey = request.getRows().getRowKeysList()....
public class class_name { @Override public void shutdown() throws JournalException { synchronized (JournalWriter.SYNCHRONIZER) { if (state == SHUTDOWN) { return; } if (state == FILE_OPEN) { closeFile(); } logger.de...
public class class_name { @Override public void shutdown() throws JournalException { synchronized (JournalWriter.SYNCHRONIZER) { if (state == SHUTDOWN) { return; // depends on control dependency: [if], data = [none] } if (state == FILE_OPEN) { ...
public class class_name { public AtomicLongConfig findAtomicLongConfig(String name) { name = getBaseName(name); AtomicLongConfig config = lookupByPattern(configPatternMatcher, atomicLongConfigs, name); if (config != null) { return config.getAsReadOnly(); } return get...
public class class_name { public AtomicLongConfig findAtomicLongConfig(String name) { name = getBaseName(name); AtomicLongConfig config = lookupByPattern(configPatternMatcher, atomicLongConfigs, name); if (config != null) { return config.getAsReadOnly(); // depends on control depend...
public class class_name { @Override public OutlierResult run(Database db, Relation<V> relation) { DBIDs ids = relation.getDBIDs(); WritableDoubleDataStore abodvalues = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC); DoubleMinMax minmaxabod = new DoubleMinMax(); if(kernelFunction.g...
public class class_name { @Override public OutlierResult run(Database db, Relation<V> relation) { DBIDs ids = relation.getDBIDs(); WritableDoubleDataStore abodvalues = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC); DoubleMinMax minmaxabod = new DoubleMinMax(); if(kernelFunction.g...
public class class_name { @SuppressWarnings("unused") // used by jelly public boolean isUsingSecurityToken() { try { return !Jenkins.get().getInstallState().isSetupComplete() && isUsingSecurityDefaults(); } catch (Exception e) { // ignore } ...
public class class_name { @SuppressWarnings("unused") // used by jelly public boolean isUsingSecurityToken() { try { return !Jenkins.get().getInstallState().isSetupComplete() && isUsingSecurityDefaults(); // depends on control dependency: [try], data = [none] } catch...
public class class_name { public static long current(Context context, String tag) { Long appRxValue = sReceivedBytes.get(tag); Long appTxValue = sSendBytes.get(tag); if (appRxValue == null || appTxValue == null) { if (DEBUG) { LogUtils.w(TAG, "current() appRxValue or...
public class class_name { public static long current(Context context, String tag) { Long appRxValue = sReceivedBytes.get(tag); Long appTxValue = sSendBytes.get(tag); if (appRxValue == null || appTxValue == null) { if (DEBUG) { LogUtils.w(TAG, "current() appRxValue or...
public class class_name { @SuppressWarnings("unchecked") public static <T, R> boolean tryScalarXMapSubscribe(Publisher<T> source, Subscriber<? super R> subscriber, Function<? super T, ? extends Publisher<? extends R>> mapper) { if (source instanceof Callable) { T t; ...
public class class_name { @SuppressWarnings("unchecked") public static <T, R> boolean tryScalarXMapSubscribe(Publisher<T> source, Subscriber<? super R> subscriber, Function<? super T, ? extends Publisher<? extends R>> mapper) { if (source instanceof Callable) { T t; ...
public class class_name { @Override public void updateReport(AllTablesReportDelta delta) { checkNotNull(delta, "delta"); updateMetadata(delta); if (delta.getTable().isPresent()) { updateTableData(delta, delta.getTable().get()); } } }
public class class_name { @Override public void updateReport(AllTablesReportDelta delta) { checkNotNull(delta, "delta"); updateMetadata(delta); if (delta.getTable().isPresent()) { updateTableData(delta, delta.getTable().get()); // depends on control dependency: [if], data = [n...
public class class_name { private void onScrollingDown() { if (!hidden) { hidden = true; if (animatedView.getAnimation() == null) { ObjectAnimator animator = createAnimator(true); animator.start(); } } } }
public class class_name { private void onScrollingDown() { if (!hidden) { hidden = true; // depends on control dependency: [if], data = [none] if (animatedView.getAnimation() == null) { ObjectAnimator animator = createAnimator(true); animator.start(); //...
public class class_name { @CanIgnoreReturnValue @Override public List<V> replaceValues(@Nullable K key, Iterable<? extends V> values) { List<V> oldValues = getCopy(key); ListIterator<V> keyValues = new ValueForKeyIterator(key); Iterator<? extends V> newValues = values.iterator(); // Replace existi...
public class class_name { @CanIgnoreReturnValue @Override public List<V> replaceValues(@Nullable K key, Iterable<? extends V> values) { List<V> oldValues = getCopy(key); ListIterator<V> keyValues = new ValueForKeyIterator(key); Iterator<? extends V> newValues = values.iterator(); // Replace existi...
public class class_name { public ServletType<WebAppType<T>> getOrCreateServlet() { List<Node> nodeList = childNode.get("servlet"); if (nodeList != null && nodeList.size() > 0) { return new ServletTypeImpl<WebAppType<T>>(this, "servlet", childNode, nodeList.get(0)); } return c...
public class class_name { public ServletType<WebAppType<T>> getOrCreateServlet() { List<Node> nodeList = childNode.get("servlet"); if (nodeList != null && nodeList.size() > 0) { return new ServletTypeImpl<WebAppType<T>>(this, "servlet", childNode, nodeList.get(0)); // depends on control ...
public class class_name { public Observable<ServiceResponse<Page<DiagnosticCategoryInner>>> listSiteDiagnosticCategoriesSlotWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String slot) { return listSiteDiagnosticCategoriesSlotSinglePageAsync(resourceGroupName, siteName, sl...
public class class_name { public Observable<ServiceResponse<Page<DiagnosticCategoryInner>>> listSiteDiagnosticCategoriesSlotWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String slot) { return listSiteDiagnosticCategoriesSlotSinglePageAsync(resourceGroupName, siteName, sl...
public class class_name { private String calculateSHA256Hash(byte[] msg, int offset, int len) { // Calculate the SHA256 digest of the Hello message Digest digest = platform.getCrypto().createDigestSHA256(); digest.update(msg, offset, len); int digestLen = digest.getDigestLength(); // prepare space for hexade...
public class class_name { private String calculateSHA256Hash(byte[] msg, int offset, int len) { // Calculate the SHA256 digest of the Hello message Digest digest = platform.getCrypto().createDigestSHA256(); digest.update(msg, offset, len); int digestLen = digest.getDigestLength(); // prepare space for hexade...
public class class_name { public Object getInstanceOf(String key){ try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); return Class.forName((String)classesMap.get(key),true,loader).newInstance(); } catch (IllegalAccessException e) { logger.logp(Level.SEVERE,"JspClassFactory"...
public class class_name { public Object getInstanceOf(String key){ try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); return Class.forName((String)classesMap.get(key),true,loader).newInstance(); // depends on control dependency: [try], data = [none] } catch (IllegalAccessExcept...