code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void stopStep(final String uuid) { final Optional<StepResult> found = storage.getStep(uuid); if (!found.isPresent()) { LOGGER.error("Could not stop step: step with uuid {} not found", uuid); return; } final StepResult step = foun...
public class class_name { public void stopStep(final String uuid) { final Optional<StepResult> found = storage.getStep(uuid); if (!found.isPresent()) { LOGGER.error("Could not stop step: step with uuid {} not found", uuid); // depends on control dependency: [if], data = [none] r...
public class class_name { public void marshall(UpdateInputRequest updateInputRequest, ProtocolMarshaller protocolMarshaller) { if (updateInputRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(UpdateInputRequest updateInputRequest, ProtocolMarshaller protocolMarshaller) { if (updateInputRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public boolean remove() { try { if(!isBinary)return getJedisCommands(groupName).del(key) == 1; if(isCluster(groupName)){ return getBinaryJedisClusterCommands(groupName).del(keyBytes) == 1; } return getBinaryJedisCommands(groupName).del(keyBytes) == 1; } finally { getJed...
public class class_name { public boolean remove() { try { if(!isBinary)return getJedisCommands(groupName).del(key) == 1; if(isCluster(groupName)){ return getBinaryJedisClusterCommands(groupName).del(keyBytes) == 1; // depends on control dependency: [if], data = [none] } return getBinaryJedisCommands(...
public class class_name { protected NumberedSplit<InputSplit> allocateSplit(final String evaluatorId, final BlockingQueue<NumberedSplit<InputSplit>> value) { if (value == null) { LOG.log(Level.FINE, "Queue of splits can't be empty. Returning null"); return null; } while (true) { fin...
public class class_name { protected NumberedSplit<InputSplit> allocateSplit(final String evaluatorId, final BlockingQueue<NumberedSplit<InputSplit>> value) { if (value == null) { LOG.log(Level.FINE, "Queue of splits can't be empty. Returning null"); // depends on control dependency: [if], data = [none]...
public class class_name { private static List<Integer> parseArray(String value, ValueParser parser){ final List<Integer> values = new ArrayList<>(); final List<String> parts = StrUtil.split(value, StrUtil.C_COMMA); for (String part : parts) { CollectionUtil.addAllIfNotContains(values, parseStep(part, p...
public class class_name { private static List<Integer> parseArray(String value, ValueParser parser){ final List<Integer> values = new ArrayList<>(); final List<String> parts = StrUtil.split(value, StrUtil.C_COMMA); for (String part : parts) { CollectionUtil.addAllIfNotContains(values, parseStep(part, p...
public class class_name { public DateTimeFormatter getFormatter() { DateTimeFormatter[] f = iFormatter; if (f == null) { if (size() == 0) { return null; } f = new DateTimeFormatter[2]; try { List<DateTimeFieldType> list = n...
public class class_name { public DateTimeFormatter getFormatter() { DateTimeFormatter[] f = iFormatter; if (f == null) { if (size() == 0) { return null; // depends on control dependency: [if], data = [none] } f = new DateTimeFormatter[2]; // depends o...
public class class_name { @Override public EClass getIfcPointOnCurve() { if (ifcPointOnCurveEClass == null) { ifcPointOnCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(432); } return ifcPointOnCurveEClass; } }
public class class_name { @Override public EClass getIfcPointOnCurve() { if (ifcPointOnCurveEClass == null) { ifcPointOnCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(432); // depends on control dependency: [if], data = [none] } return ifc...
public class class_name { public void setUserAttributes(java.util.Collection<Attribute> userAttributes) { if (userAttributes == null) { this.userAttributes = null; return; } this.userAttributes = new java.util.ArrayList<Attribute>(userAttributes); } }
public class class_name { public void setUserAttributes(java.util.Collection<Attribute> userAttributes) { if (userAttributes == null) { this.userAttributes = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public Iterator<T> getInputSplits() { final InputSplitProvider provider = getEnvironment().getInputSplitProvider(); return new Iterator<T>() { private T nextSplit; @Override public boolean hasNext() { if (this.nextSplit == null) { final InputSplit split = provider....
public class class_name { public Iterator<T> getInputSplits() { final InputSplitProvider provider = getEnvironment().getInputSplitProvider(); return new Iterator<T>() { private T nextSplit; @Override public boolean hasNext() { if (this.nextSplit == null) { final InputSplit split = provider....
public class class_name { public void setParts(java.util.Collection<PartListElement> parts) { if (parts == null) { this.parts = null; return; } this.parts = new java.util.ArrayList<PartListElement>(parts); } }
public class class_name { public void setParts(java.util.Collection<PartListElement> parts) { if (parts == null) { this.parts = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.parts = new j...
public class class_name { @SuppressWarnings("unchecked") public boolean updateDoc(Map<String, Object> jsonFields, String collName, String docId) { if (mCollections.containsKey(collName)) { Map<String, Map<String,Object>> collection = mCollections.get(collName); Map<Strin...
public class class_name { @SuppressWarnings("unchecked") public boolean updateDoc(Map<String, Object> jsonFields, String collName, String docId) { if (mCollections.containsKey(collName)) { Map<String, Map<String,Object>> collection = mCollections.get(collName); Map<Strin...
public class class_name { public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Se...
public class class_name { public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Se...
public class class_name { private void extend() { while (!this.extension.empty()) { final int lit = this.extension.back(); int other; boolean satisfied = false; while ((other = this.extension.back()) != 0) { this.extension.pop(); i...
public class class_name { private void extend() { while (!this.extension.empty()) { final int lit = this.extension.back(); int other; boolean satisfied = false; while ((other = this.extension.back()) != 0) { this.extension.pop(); // depends on con...
public class class_name { protected Paint getLinePaint(FeatureStyle featureStyle) { Paint paint = getFeatureStylePaint(featureStyle, FeatureDrawType.STROKE); if (paint == null) { paint = linePaint; } return paint; } }
public class class_name { protected Paint getLinePaint(FeatureStyle featureStyle) { Paint paint = getFeatureStylePaint(featureStyle, FeatureDrawType.STROKE); if (paint == null) { paint = linePaint; // depends on control dependency: [if], data = [none] } return paint; ...
public class class_name { private static Collection<String> toHttpBalancerURIs(Collection<String> uris, AcceptOptionsContext acceptOptionsCtx, TransportFactory transportFactory) throws Exception { List<S...
public class class_name { private static Collection<String> toHttpBalancerURIs(Collection<String> uris, AcceptOptionsContext acceptOptionsCtx, TransportFactory transportFactory) throws Exception { List<S...
public class class_name { public static PlainTime from(WallTime time) { if (time instanceof PlainTime) { return (PlainTime) time; } else if (time instanceof PlainTimestamp) { return ((PlainTimestamp) time).getWallTime(); } else { return PlainTime.of( ...
public class class_name { public static PlainTime from(WallTime time) { if (time instanceof PlainTime) { return (PlainTime) time; // depends on control dependency: [if], data = [none] } else if (time instanceof PlainTimestamp) { return ((PlainTimestamp) time).getWallTime(); // ...
public class class_name { public final EObject entryRuleNotExpression() throws RecognitionException { EObject current = null; EObject iv_ruleNotExpression = null; try { // InternalSimpleAntlr.g:1078:2: (iv_ruleNotExpression= ruleNotExpression EOF ) // InternalSimpleAn...
public class class_name { public final EObject entryRuleNotExpression() throws RecognitionException { EObject current = null; EObject iv_ruleNotExpression = null; try { // InternalSimpleAntlr.g:1078:2: (iv_ruleNotExpression= ruleNotExpression EOF ) // InternalSimpleAn...
public class class_name { private void checkIfLombokClass(ImportTree tree) { String importStr = fullQualifiedName(tree.qualifiedIdentifier()); if (importStr.contains("lombok")) { lombokClass = true; } } }
public class class_name { private void checkIfLombokClass(ImportTree tree) { String importStr = fullQualifiedName(tree.qualifiedIdentifier()); if (importStr.contains("lombok")) { lombokClass = true; // depends on control dependency: [if], data = [none] } } }
public class class_name { private int findOrInsertWeakNode(int index, int weight16, int level) { assert(0 <= index && index < nodes.size()); assert(Collator.SECONDARY <= level && level <= Collator.TERTIARY); if(weight16 == Collation.COMMON_WEIGHT16) { return findCommonNode(index, l...
public class class_name { private int findOrInsertWeakNode(int index, int weight16, int level) { assert(0 <= index && index < nodes.size()); assert(Collator.SECONDARY <= level && level <= Collator.TERTIARY); if(weight16 == Collation.COMMON_WEIGHT16) { return findCommonNode(index, l...
public class class_name { public static int addMonths(int date, int m) { int y0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.YEAR, date); int m0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.MONTH, date); int d0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.DAY, date); int y = m / 12; y0 +...
public class class_name { public static int addMonths(int date, int m) { int y0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.YEAR, date); int m0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.MONTH, date); int d0 = (int) DateTimeUtils.unixDateExtract(TimeUnitRange.DAY, date); int y = m / 12; y0 +...
public class class_name { private static final Date stripDatesAfterCurrentDate(final Date toDate) { final DateTime currentTime = new DateTime(); if (currentTime.isBefore(toDate.getTime())) { return currentTime.plusDays(1).toDate(); } else { return toDate; } } }
public class class_name { private static final Date stripDatesAfterCurrentDate(final Date toDate) { final DateTime currentTime = new DateTime(); if (currentTime.isBefore(toDate.getTime())) { return currentTime.plusDays(1).toDate(); // depends on control dependency: [if], data = [none] } else { return toDa...
public class class_name { public final void error(Object message, Throwable t) { if (isLevelEnabled(LOG_LEVEL_ERROR)) { log(LOG_LEVEL_ERROR, message, t); } } }
public class class_name { public final void error(Object message, Throwable t) { if (isLevelEnabled(LOG_LEVEL_ERROR)) { log(LOG_LEVEL_ERROR, message, t); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void parseConfiguration(List<String> functionsToInspect) { for (String function : functionsToInspect) { Config config = parseConfiguration(function); functions.put(config.name, config); String method = getMethodFromDeclarationName(config.name); if (method ...
public class class_name { private void parseConfiguration(List<String> functionsToInspect) { for (String function : functionsToInspect) { Config config = parseConfiguration(function); functions.put(config.name, config); // depends on control dependency: [for], data = [function] String method = g...
public class class_name { public boolean shouldClearAll(List<CmsPublishedResource> publishedResources) { for (CmsPublishedResource pubRes : publishedResources) { for (String clearPath : m_clearAll) { if (CmsStringUtil.isPrefixPath(clearPath, pubRes.getRootPath())) { ...
public class class_name { public boolean shouldClearAll(List<CmsPublishedResource> publishedResources) { for (CmsPublishedResource pubRes : publishedResources) { for (String clearPath : m_clearAll) { if (CmsStringUtil.isPrefixPath(clearPath, pubRes.getRootPath())) { ...
public class class_name { @Override public void evaluate(DoubleSolution solution) { int numberOfVariables = getNumberOfVariables() ; double[] x = new double[numberOfVariables] ; for (int i = 0; i < numberOfVariables; i++) { x[i] = solution.getVariableValue(i) ; } double sum = 0.0; do...
public class class_name { @Override public void evaluate(DoubleSolution solution) { int numberOfVariables = getNumberOfVariables() ; double[] x = new double[numberOfVariables] ; for (int i = 0; i < numberOfVariables; i++) { x[i] = solution.getVariableValue(i) ; // depends on control dependency: [...
public class class_name { public void setMinuteTickMarkColor(final Color COLOR) { if (null == minuteTickMarkColor) { _minuteTickMarkColor = COLOR; fireUpdateEvent(REDRAW_EVENT); } else { minuteTickMarkColor.set(COLOR); } } }
public class class_name { public void setMinuteTickMarkColor(final Color COLOR) { if (null == minuteTickMarkColor) { _minuteTickMarkColor = COLOR; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] ...
public class class_name { public void clearJavaKeyStoresFromKeyStoreMap(Collection<File> modifiedFiles) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "clearJavaKeyStoresFromKeyStoreMap ", new Object[] { modifiedFiles }); String filePath = null; Str...
public class class_name { public void clearJavaKeyStoresFromKeyStoreMap(Collection<File> modifiedFiles) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "clearJavaKeyStoresFromKeyStoreMap ", new Object[] { modifiedFiles }); String filePath = null; Str...
public class class_name { private String getRow(String rowKey) { try { return cache.get(rowKey); } catch (Exception e) { if (e.getCause() instanceof RowNotFoundException) { return null; } throw new RuntimeException(e); } } }
public class class_name { private String getRow(String rowKey) { try { return cache.get(rowKey); // depends on control dependency: [try], data = [none] } catch (Exception e) { if (e.getCause() instanceof RowNotFoundException) { return null; // depends on control ...
public class class_name { private @Nonnull List<SortableValue> enumsThatExist(BugAspects a) { List<Sortables> orderBeforeDivider = st.getOrderBeforeDivider(); if (orderBeforeDivider.size() == 0) { List<SortableValue> result = Collections.emptyList(); assert false; re...
public class class_name { private @Nonnull List<SortableValue> enumsThatExist(BugAspects a) { List<Sortables> orderBeforeDivider = st.getOrderBeforeDivider(); if (orderBeforeDivider.size() == 0) { List<SortableValue> result = Collections.emptyList(); assert false; re...
public class class_name { public static InstagramErrorResponse parse(Gson gson, String json) { JsonElement jsonElement = gson.fromJson(json, JsonElement.class); JsonElement metaMember = null; if (jsonElement != null) { metaMember = jsonElement.getAsJsonObject().get("meta"); ...
public class class_name { public static InstagramErrorResponse parse(Gson gson, String json) { JsonElement jsonElement = gson.fromJson(json, JsonElement.class); JsonElement metaMember = null; if (jsonElement != null) { metaMember = jsonElement.getAsJsonObject().get("meta"); // depen...
public class class_name { @DefaultVisibilityForTesting static TraceComponent loadTraceComponent(@Nullable ClassLoader classLoader) { try { // Call Class.forName with literal string name of the class to help shading tools. return Provider.createInstance( Class.forName( "io.open...
public class class_name { @DefaultVisibilityForTesting static TraceComponent loadTraceComponent(@Nullable ClassLoader classLoader) { try { // Call Class.forName with literal string name of the class to help shading tools. return Provider.createInstance( Class.forName( "io.open...
public class class_name { private View getViewOnRecyclerItemIndex(ViewGroup recyclerView, int recyclerViewIndex, int itemIndex){ final long endTime = SystemClock.uptimeMillis() + Timeout.getSmallTimeout(); View view = recyclerView.getChildAt(itemIndex); while(view == null){ final boolean timedOut = SystemClo...
public class class_name { private View getViewOnRecyclerItemIndex(ViewGroup recyclerView, int recyclerViewIndex, int itemIndex){ final long endTime = SystemClock.uptimeMillis() + Timeout.getSmallTimeout(); View view = recyclerView.getChildAt(itemIndex); while(view == null){ final boolean timedOut = SystemClo...
public class class_name { static final Memory loadCompactMemory(final long[] compactCache, final short seedHash, final int curCount, final long thetaLong, final WritableMemory dstMem, final byte flags, final int preLongs) { assert (dstMem != null) && (compactCache != null); final int outLongs = pr...
public class class_name { static final Memory loadCompactMemory(final long[] compactCache, final short seedHash, final int curCount, final long thetaLong, final WritableMemory dstMem, final byte flags, final int preLongs) { assert (dstMem != null) && (compactCache != null); final int outLongs = pr...
public class class_name { protected long discountEstimatedProcessedTupleCount(AbstractPlanNode childNode) { // Discount estimated processed tuple count for the outer child based on the number of // filter expressions this child has with a rapidly diminishing effect // that ranges from a discoun...
public class class_name { protected long discountEstimatedProcessedTupleCount(AbstractPlanNode childNode) { // Discount estimated processed tuple count for the outer child based on the number of // filter expressions this child has with a rapidly diminishing effect // that ranges from a discoun...
public class class_name { public static Map<String, Object> getReadOnlyCacheMap() { // for framework if (!exists()) { return DfCollectionUtil.emptyMap(); } return Collections.unmodifiableMap(threadLocal.get()); } }
public class class_name { public static Map<String, Object> getReadOnlyCacheMap() { // for framework if (!exists()) { return DfCollectionUtil.emptyMap(); // depends on control dependency: [if], data = [none] } return Collections.unmodifiableMap(threadLocal.get()); } }
public class class_name { public void releaseAllResources() { synchronized (poolSynch) { Collection pools = poolMap.values(); poolMap = new HashMap(poolMap.size()); ObjectPool op = null; for (Iterator iterator = pools.iterator(); iterator.hasNe...
public class class_name { public void releaseAllResources() { synchronized (poolSynch) { Collection pools = poolMap.values(); poolMap = new HashMap(poolMap.size()); ObjectPool op = null; for (Iterator iterator = pools.iterator(); iterator.hasNe...
public class class_name { private static boolean fixProfileXYZTag(final ICC_Profile profile, final int tagSignature) { byte[] data = profile.getData(tagSignature); // The CMM expects 0x64 65 73 63 ('XYZ ') but is 0x17 A5 05 B8..? if (data != null && intFromBigEndian(data, 0) == CORBIS_RGB_ALTE...
public class class_name { private static boolean fixProfileXYZTag(final ICC_Profile profile, final int tagSignature) { byte[] data = profile.getData(tagSignature); // The CMM expects 0x64 65 73 63 ('XYZ ') but is 0x17 A5 05 B8..? if (data != null && intFromBigEndian(data, 0) == CORBIS_RGB_ALTE...
public class class_name { public Iterable<ActionImport> build(FactoryLookup lookup) { List<ActionImport> actionImports = new ArrayList<>(); for (ActionImportImpl.Builder actionImportBuilder : actionImportBuilders) { actionImportBuilder.setEntitySet( lookup.getEntitySet(a...
public class class_name { public Iterable<ActionImport> build(FactoryLookup lookup) { List<ActionImport> actionImports = new ArrayList<>(); for (ActionImportImpl.Builder actionImportBuilder : actionImportBuilders) { actionImportBuilder.setEntitySet( lookup.getEntitySet(a...
public class class_name { public SQLBuilder set(final Object entity, final Set<String> excludedPropNames) { if (entity instanceof String) { return set(N.asArray((String) entity)); } else if (entity instanceof Map) { if (N.isNullOrEmpty(excludedPropNames)) { ...
public class class_name { public SQLBuilder set(final Object entity, final Set<String> excludedPropNames) { if (entity instanceof String) { return set(N.asArray((String) entity)); // depends on control dependency: [if], data = [none] } else if (entity instanceof Map) { if (N...
public class class_name { public byte[] decrypt(byte[] msg) { if (msg == null) return null; try { Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM_IMPLEMENTATION); SecretKeySpec key = new SecretKeySpec(getMd5(), ENCRYPTION_ALGORITHM); IvParameterSpec iv = new ...
public class class_name { public byte[] decrypt(byte[] msg) { if (msg == null) return null; try { Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM_IMPLEMENTATION); SecretKeySpec key = new SecretKeySpec(getMd5(), ENCRYPTION_ALGORITHM); IvParameterSpec iv = new ...
public class class_name { public Record [] run() { if (done) reset(); if (name.isAbsolute()) resolve(name, null); else if (searchPath == null) resolve(name, Name.root); else { if (name.labels() > defaultNdots) resolve(name, Name.root); if (done) return answers; for (int i = 0; i < searchPath.len...
public class class_name { public Record [] run() { if (done) reset(); if (name.isAbsolute()) resolve(name, null); else if (searchPath == null) resolve(name, Name.root); else { if (name.labels() > defaultNdots) resolve(name, Name.root); if (done) return answers; for (int i = 0; i < searchPath.len...
public class class_name { private void traverseTransientDescendants(ItemData parent, int action, List<ItemState> ret) throws RepositoryException { if (parent.isNode()) { if (action != MERGE_PROPS) { Collection<ItemState> childNodes = changesLog.getLastChildrenStates(...
public class class_name { private void traverseTransientDescendants(ItemData parent, int action, List<ItemState> ret) throws RepositoryException { if (parent.isNode()) { if (action != MERGE_PROPS) { Collection<ItemState> childNodes = changesLog.getLastChildrenStates(...
public class class_name { public static Float toFloat(Object value) { if (value == null) { return null; } else if (value instanceof Float) { return (Float) value; } else if (value instanceof Number) { return ((Number) value).floatValue(); } else { ...
public class class_name { public static Float toFloat(Object value) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } else if (value instanceof Float) { return (Float) value; // depends on control dependency: [if], data = [none] ...
public class class_name { private CmsGallerySearchParameters prepareSearchParams(CmsGallerySearchBean searchData) { // create a new search parameter object CmsGallerySearchParameters params = new CmsGallerySearchParameters(); CmsObject cms = getCmsObject(); // set the selected types t...
public class class_name { private CmsGallerySearchParameters prepareSearchParams(CmsGallerySearchBean searchData) { // create a new search parameter object CmsGallerySearchParameters params = new CmsGallerySearchParameters(); CmsObject cms = getCmsObject(); // set the selected types t...
public class class_name { public FlowResponse submitFaxJob(T inputData,Object contextData,boolean invokeVendorPolicy) { boolean continueFlow=true; VendorPolicy vendorPolicy=null; if(invokeVendorPolicy) { //get vendor policy vendorPolicy=this.FAX_BRIDGE.getVen...
public class class_name { public FlowResponse submitFaxJob(T inputData,Object contextData,boolean invokeVendorPolicy) { boolean continueFlow=true; VendorPolicy vendorPolicy=null; if(invokeVendorPolicy) { //get vendor policy vendorPolicy=this.FAX_BRIDGE.getVen...
public class class_name { public static String getMimeType(byte[] bytes) { String suffix = getFileSuffix(bytes); String mimeType; if ("JPG".equals(suffix)) { mimeType = "image/jpeg"; } else if ("GIF".equals(suffix)) { mimeType = "image/gif"; } else if ("...
public class class_name { public static String getMimeType(byte[] bytes) { String suffix = getFileSuffix(bytes); String mimeType; if ("JPG".equals(suffix)) { mimeType = "image/jpeg"; // depends on control dependency: [if], data = [none] } else if ("GIF".equals(suffix)) { ...
public class class_name { public static <T> Partition<T> singletons(Collection<T> nodes) { final Map<T, T> parents = Maps.newHashMap(); final Map<T, Integer> ranks = Maps.newHashMap(); for (T node : nodes) { parents.put(node, node); // each node is its own head ranks.put...
public class class_name { public static <T> Partition<T> singletons(Collection<T> nodes) { final Map<T, T> parents = Maps.newHashMap(); final Map<T, Integer> ranks = Maps.newHashMap(); for (T node : nodes) { parents.put(node, node); // each node is its own head // depends on control...
public class class_name { public void becomeCloneOf(ManagedObject other) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "becomeCloneOf" , new Object[] { other } ); Tre...
public class class_name { public void becomeCloneOf(ManagedObject other) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "becomeCloneOf" , new Object[] { other } ); Tre...
public class class_name { public static boolean equal(Iterator itr1, Iterator itr2) { if (itr1 == null || itr2 == null) { return false; } else { while (itr1.hasNext() && itr2.hasNext()) { Object i = itr1.next(); Object i2 = itr2.next(); ...
public class class_name { public static boolean equal(Iterator itr1, Iterator itr2) { if (itr1 == null || itr2 == null) { return false; // depends on control dependency: [if], data = [none] } else { while (itr1.hasNext() && itr2.hasNext()) { Object i = itr1.next(...
public class class_name { public static Object loadInstance(Class clazz, Object defaultValue) { try { return clazz.newInstance(); } catch (Throwable t) { ExceptionUtil.rethrowIfNecessary(t); return defaultValue; } } }
public class class_name { public static Object loadInstance(Class clazz, Object defaultValue) { try { return clazz.newInstance(); // depends on control dependency: [try], data = [none] } catch (Throwable t) { ExceptionUtil.rethrowIfNecessary(t); return defaultValue; } // depends on control dependenc...
public class class_name { void setPrimaryView(@NonNull final View primaryView) { if (mPrimaryView != null) { removeView(mPrimaryView); } mPrimaryView = primaryView; addView(mPrimaryView); } }
public class class_name { void setPrimaryView(@NonNull final View primaryView) { if (mPrimaryView != null) { removeView(mPrimaryView); // depends on control dependency: [if], data = [(mPrimaryView] } mPrimaryView = primaryView; addView(mPrimaryView); } }
public class class_name { public void registerMbeans() { ServerAdminMBean serverAdministrationBean = new ServerAdmin(); try { mbeanServer.registerMBean(serverAdministrationBean, JMXUtils.getObjectName(jmxConfig.getContextName(), "ServerAdmin")); } catch (Instanc...
public class class_name { public void registerMbeans() { ServerAdminMBean serverAdministrationBean = new ServerAdmin(); try { mbeanServer.registerMBean(serverAdministrationBean, JMXUtils.getObjectName(jmxConfig.getContextName(), "ServerAdmin")); // depends on control de...
public class class_name { static boolean parseOverallSuccess(SpoonSummary summary) { for (DeviceResult result : summary.getResults().values()) { if (result.getInstallFailed()) { return false; // App and/or test installation failed. } if (!result.getExceptions().isEmpty() || result.getTest...
public class class_name { static boolean parseOverallSuccess(SpoonSummary summary) { for (DeviceResult result : summary.getResults().values()) { if (result.getInstallFailed()) { return false; // App and/or test installation failed. // depends on control dependency: [if], data = [none] } i...
public class class_name { public static String getProjectUrl(final String group) { if (group == null) { // prior 4.0 return PLUGIN_ID; } else { return PLUGIN_ID + ParserRegistry.getUrl(group); } } }
public class class_name { public static String getProjectUrl(final String group) { if (group == null) { // prior 4.0 return PLUGIN_ID; // depends on control dependency: [if], data = [none] } else { return PLUGIN_ID + ParserRegistry.getUrl(group); // depends on control de...
public class class_name { public static Set<IProcessor> createSpringStandardProcessorsSet( final String dialectPrefix, final boolean renderHiddenMarkersBeforeCheckboxes) { /* * It is important that we create new instances here because, if there are * several dialects in the Templa...
public class class_name { public static Set<IProcessor> createSpringStandardProcessorsSet( final String dialectPrefix, final boolean renderHiddenMarkersBeforeCheckboxes) { /* * It is important that we create new instances here because, if there are * several dialects in the Templa...
public class class_name { public static double sum(double[] a, int fromIndex, int toIndex) { double result = 0.0; for (int i = fromIndex; i < toIndex; i++) { result += a[i]; } return result; } }
public class class_name { public static double sum(double[] a, int fromIndex, int toIndex) { double result = 0.0; for (int i = fromIndex; i < toIndex; i++) { result += a[i]; // depends on control dependency: [for], data = [i] } return result; } }
public class class_name { private static int getMaxLength( String[] values ) { int result = 0; for ( int i = 0, curr = 0; i < values.length; i++ ) { if ( ( curr = values[i].length() ) > result ) { result = curr; } } ...
public class class_name { private static int getMaxLength( String[] values ) { int result = 0; for ( int i = 0, curr = 0; i < values.length; i++ ) { if ( ( curr = values[i].length() ) > result ) { result = curr; // depends on control dependen...
public class class_name { public final void finished() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished"); if (null != _lastLink) { _lastLink.cursorRemoved(); _lastLink = null; } if (TraceComponent.i...
public class class_name { public final void finished() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished"); if (null != _lastLink) { _lastLink.cursorRemoved(); // depends on control dependency: [if], data = [none] _la...
public class class_name { private static int utf8Length(String string) { int stringLength = string.length(); int utf8Length = 0; for (int i = 0; i < stringLength; i++) { int c = string.charAt(i); if (c <= 0x007F) { utf8Length++; } else if (c > 0x07FF) { utf8Length += 3; ...
public class class_name { private static int utf8Length(String string) { int stringLength = string.length(); int utf8Length = 0; for (int i = 0; i < stringLength; i++) { int c = string.charAt(i); if (c <= 0x007F) { utf8Length++; // depends on control dependency: [if], data = [none] ...
public class class_name { public void setDependsOn(java.util.Collection<JobDependency> dependsOn) { if (dependsOn == null) { this.dependsOn = null; return; } this.dependsOn = new java.util.ArrayList<JobDependency>(dependsOn); } }
public class class_name { public void setDependsOn(java.util.Collection<JobDependency> dependsOn) { if (dependsOn == null) { this.dependsOn = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this...
public class class_name { public InputStream getResource (String rset, String path) throws IOException { // grab the resource bundles in the specified resource set ResourceBundle[] bundles = getResourceSet(rset); if (bundles == null) { throw new FileNotFoundException( ...
public class class_name { public InputStream getResource (String rset, String path) throws IOException { // grab the resource bundles in the specified resource set ResourceBundle[] bundles = getResourceSet(rset); if (bundles == null) { throw new FileNotFoundException( ...
public class class_name { protected boolean isButtonEnabledForSelectedHistoryReferences(List<HistoryReference> historyReferences) { for (HistoryReference historyReference : historyReferences) { if (historyReference != null && !isButtonEnabledForHistoryReference(historyReference)) { ...
public class class_name { protected boolean isButtonEnabledForSelectedHistoryReferences(List<HistoryReference> historyReferences) { for (HistoryReference historyReference : historyReferences) { if (historyReference != null && !isButtonEnabledForHistoryReference(historyReference)) { ...
public class class_name { public int doSeekCommand(Script recScript, Map<String,Object> properties) { Record record = recScript.getTargetRecord(properties, DBParams.RECORD); if (record == null) return DBConstants.ERROR_RETURN; for (int iKeySeq = 0; iKeySeq < record.getKeyAreaCou...
public class class_name { public int doSeekCommand(Script recScript, Map<String,Object> properties) { Record record = recScript.getTargetRecord(properties, DBParams.RECORD); if (record == null) return DBConstants.ERROR_RETURN; for (int iKeySeq = 0; iKeySeq < record.getKeyAreaCou...
public class class_name { public synchronized void startListening(Context context) { if (!mListening) { mContext = context; IntentFilter filter = new IntentFilter(); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); context.registerReceiver(mReceiver, f...
public class class_name { public synchronized void startListening(Context context) { if (!mListening) { mContext = context; // depends on control dependency: [if], data = [none] IntentFilter filter = new IntentFilter(); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTI...
public class class_name { private String exportTargetFolder() { String targetFolder = null; if (getRequest().getAttribute(I_CmsUploadConstants.ATTR_CURRENT_FOLDER) != null) { targetFolder = (String)getRequest().getAttribute(I_CmsUploadConstants.ATTR_CURRENT_FOLDER); } if (C...
public class class_name { private String exportTargetFolder() { String targetFolder = null; if (getRequest().getAttribute(I_CmsUploadConstants.ATTR_CURRENT_FOLDER) != null) { targetFolder = (String)getRequest().getAttribute(I_CmsUploadConstants.ATTR_CURRENT_FOLDER); // depends on control d...
public class class_name { public void deleteClassArtifactsInTaintedPackages() { for (String pkg : taintedPackages) { Map<String,File> arts = fetchPrevArtifacts(pkg); for (File f : arts.values()) { if (f.exists() && f.getName().endsWith(".class")) { f....
public class class_name { public void deleteClassArtifactsInTaintedPackages() { for (String pkg : taintedPackages) { Map<String,File> arts = fetchPrevArtifacts(pkg); for (File f : arts.values()) { if (f.exists() && f.getName().endsWith(".class")) { f....
public class class_name { private void notifyUIRefreshComplete(boolean ignoreHook) { /** * After hook operation is done, {@link #notifyUIRefreshComplete} will be call in resume action to ignore hook. */ if (mPtrIndicator.hasLeftStartPosition() && !ignoreHook && mRefreshCompleteHook !=...
public class class_name { private void notifyUIRefreshComplete(boolean ignoreHook) { /** * After hook operation is done, {@link #notifyUIRefreshComplete} will be call in resume action to ignore hook. */ if (mPtrIndicator.hasLeftStartPosition() && !ignoreHook && mRefreshCompleteHook !=...
public class class_name { public java.util.Map<String, java.util.List<String>> getArgs() { if (args == null) { args = new com.amazonaws.internal.SdkInternalMap<String, java.util.List<String>>(); } return args; } }
public class class_name { public java.util.Map<String, java.util.List<String>> getArgs() { if (args == null) { args = new com.amazonaws.internal.SdkInternalMap<String, java.util.List<String>>(); // depends on control dependency: [if], data = [none] } return args; } }
public class class_name { protected static NfsGetAttributes makeNfsGetAttributes(Xdr xdr, boolean force) { NfsGetAttributes attributes = null; if (force || xdr.getBoolean()) { attributes = new NfsGetAttributes(); attributes.unmarshalling(xdr); } return attributes...
public class class_name { protected static NfsGetAttributes makeNfsGetAttributes(Xdr xdr, boolean force) { NfsGetAttributes attributes = null; if (force || xdr.getBoolean()) { attributes = new NfsGetAttributes(); // depends on control dependency: [if], data = [none] attributes.u...
public class class_name { private void triggerResolveEnd() { Iterator<TransportResolverListener> iter = getListenersList().iterator(); while (iter.hasNext()) { TransportResolverListener trl = iter.next(); if (trl instanceof TransportResolverListener.Resolver) { T...
public class class_name { private void triggerResolveEnd() { Iterator<TransportResolverListener> iter = getListenersList().iterator(); while (iter.hasNext()) { TransportResolverListener trl = iter.next(); if (trl instanceof TransportResolverListener.Resolver) { T...
public class class_name { private static void setPermissions(DataFormatDefinition dformatDefinition) { // Use Java Reflection to get the method setPermissions. This is done to allow compatibility between fuse 6.3 and fuse 6.2.1 // The xstream library differs on version between the 6.2.1 and 6.3 version...
public class class_name { private static void setPermissions(DataFormatDefinition dformatDefinition) { // Use Java Reflection to get the method setPermissions. This is done to allow compatibility between fuse 6.3 and fuse 6.2.1 // The xstream library differs on version between the 6.2.1 and 6.3 version...
public class class_name { @Nullable private View getViewForId(final long itemId) { ListAdapter adapter = mAdapter; if (itemId == INVALID_ID || adapter == null) { return null; } int firstVisiblePosition = mWrapper.getFirstVisiblePosition(); View result = null; ...
public class class_name { @Nullable private View getViewForId(final long itemId) { ListAdapter adapter = mAdapter; if (itemId == INVALID_ID || adapter == null) { return null; // depends on control dependency: [if], data = [none] } int firstVisiblePosition = mWrapper.get...
public class class_name { public Boolean isKeepAlive(boolean useDefault) { if (m_keepAlive != null) { return m_keepAlive; } if (useDefault) { return Boolean.TRUE; } else { return null; } } }
public class class_name { public Boolean isKeepAlive(boolean useDefault) { if (m_keepAlive != null) { return m_keepAlive; // depends on control dependency: [if], data = [none] } if (useDefault) { return Boolean.TRUE; // depends on control dependency: [if], data = [none]...
public class class_name { <E> Node generate(E entity, PersistenceDelegator delegator, PersistenceCache pc, NodeState state) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(delegator.getKunderaMetadata(), entity.getClass()); if (!new NullOrInvalidEntityRu...
public class class_name { <E> Node generate(E entity, PersistenceDelegator delegator, PersistenceCache pc, NodeState state) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(delegator.getKunderaMetadata(), entity.getClass()); if (!new NullOrInvalidEntityRu...
public class class_name { private List<CmsResource> updateContextDates(CmsDbContext dbc, List<CmsResource> resourceList) { CmsFlexRequestContextInfo info = dbc.getFlexRequestContextInfo(); if (info != null) { for (int i = 0; i < resourceList.size(); i++) { CmsResource resou...
public class class_name { private List<CmsResource> updateContextDates(CmsDbContext dbc, List<CmsResource> resourceList) { CmsFlexRequestContextInfo info = dbc.getFlexRequestContextInfo(); if (info != null) { for (int i = 0; i < resourceList.size(); i++) { CmsResource resou...
public class class_name { @SuppressWarnings("unchecked") @Override protected ConnectionRequest getConnectionRequest(SocketChannel handle) { SelectionKey key = handle.keyFor(selector); if ((key == null) || (!key.isValid())) { return null; } return (ConnectionRequest...
public class class_name { @SuppressWarnings("unchecked") @Override protected ConnectionRequest getConnectionRequest(SocketChannel handle) { SelectionKey key = handle.keyFor(selector); if ((key == null) || (!key.isValid())) { return null; // depends on control dependency: [if], data...
public class class_name { private @Nullable CacheWriterException deleteAllToCacheWriter(Set<? extends K> keys) { if (!configuration.isWriteThrough() || keys.isEmpty()) { return null; } List<K> keysToDelete = new ArrayList<>(keys); try { writer.deleteAll(keysToDelete); return null; ...
public class class_name { private @Nullable CacheWriterException deleteAllToCacheWriter(Set<? extends K> keys) { if (!configuration.isWriteThrough() || keys.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } List<K> keysToDelete = new ArrayList<>(keys); try { ...
public class class_name { int getNumberOfNullEnderParameter(List<String> parameters) { int nbnull = 0; for (int i = parameters.size() - 1; i >= 0; i--) { String parameter = parameters.get(i); if (parameter.equals("null")) { nbnull++; } else { break; } } return nbnull; } }
public class class_name { int getNumberOfNullEnderParameter(List<String> parameters) { int nbnull = 0; for (int i = parameters.size() - 1; i >= 0; i--) { String parameter = parameters.get(i); if (parameter.equals("null")) { nbnull++; // depends on control dependency: [if], data = [none] } else {...
public class class_name { private void setRange(final double RANGE) { if (null == range) { _range = RANGE; setAngleStep(getAngleRange() / RANGE); } else { range.set(RANGE); } } }
public class class_name { private void setRange(final double RANGE) { if (null == range) { _range = RANGE; // depends on control dependency: [if], data = [none] setAngleStep(getAngleRange() / RANGE); // depends on control dependency: [if], data = [none] } else { rang...
public class class_name { public Entry get( String path ) { Entry entry = backing.get( path ); if ( entry == null ) { if ( path.startsWith( "/" ) ) { path = path.substring( 1 ); } if ( path.length() == 0 ) { ...
public class class_name { public Entry get( String path ) { Entry entry = backing.get( path ); if ( entry == null ) { if ( path.startsWith( "/" ) ) { path = path.substring( 1 ); // depends on control dependency: [if], data = [none] } ...
public class class_name { public PagedList<CloudTask> list(final String jobId, final TaskListOptions taskListOptions) { ServiceResponseWithHeaders<Page<CloudTask>, TaskListHeaders> response = listSinglePageAsync(jobId, taskListOptions).toBlocking().single(); return new PagedList<CloudTask>(response.bod...
public class class_name { public PagedList<CloudTask> list(final String jobId, final TaskListOptions taskListOptions) { ServiceResponseWithHeaders<Page<CloudTask>, TaskListHeaders> response = listSinglePageAsync(jobId, taskListOptions).toBlocking().single(); return new PagedList<CloudTask>(response.bod...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders>> listPoolNodeCountsWithServiceResponseAsync(final AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions) { return listPoolNodeCountsSinglePageAsync(accountListPoolNodeCount...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders>> listPoolNodeCountsWithServiceResponseAsync(final AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions) { return listPoolNodeCountsSinglePageAsync(accountListPoolNodeCount...
public class class_name { public boolean containsKey(String group, String key) { group = StrUtil.nullToEmpty(group).trim(); readLock.lock(); try { final LinkedHashMap<String, String> valueMap = this.get(group); if (MapUtil.isNotEmpty(valueMap)) { return valueMap.containsKey(key); } } final...
public class class_name { public boolean containsKey(String group, String key) { group = StrUtil.nullToEmpty(group).trim(); readLock.lock(); try { final LinkedHashMap<String, String> valueMap = this.get(group); if (MapUtil.isNotEmpty(valueMap)) { return valueMap.containsKey(key); // depends on c...
public class class_name { protected void set(double values[]) { this.nRows = values.length; this.nCols = 1; this.values = new double[nRows][1]; for (int r = 0; r < nRows; ++r) { this.values[r][0] = values[r]; } } }
public class class_name { protected void set(double values[]) { this.nRows = values.length; this.nCols = 1; this.values = new double[nRows][1]; for (int r = 0; r < nRows; ++r) { this.values[r][0] = values[r]; // depends on control dependency: [for], data = [r] ...
public class class_name { @Override public Promise subscribe(String channel) { Promise promise = new Promise(); if (client != null) { try { client.subscribe(new Subscription[] { new Subscription(channel, qos) }); subscriptions.put(channel, promise); } catch (Exception cause) { promise.co...
public class class_name { @Override public Promise subscribe(String channel) { Promise promise = new Promise(); if (client != null) { try { client.subscribe(new Subscription[] { new Subscription(channel, qos) }); // depends on control dependency: [try], data = [none] subscriptions.put(channel, pr...
public class class_name { protected void setFileInfo(final String _filename, final long _fileLength) throws EFapsException { if (!_filename.equals(this.fileName) || _fileLength != this.fileLength) { ConnectionResource res = null; try { ...
public class class_name { protected void setFileInfo(final String _filename, final long _fileLength) throws EFapsException { if (!_filename.equals(this.fileName) || _fileLength != this.fileLength) { ConnectionResource res = null; try { ...
public class class_name { protected void sendAppendRequest(RaftMemberContext member, AppendRequest request) { // If this is a heartbeat message and a heartbeat is already in progress, skip the request. if (request.entries().isEmpty() && !member.canHeartbeat()) { return; } // Start the append to ...
public class class_name { protected void sendAppendRequest(RaftMemberContext member, AppendRequest request) { // If this is a heartbeat message and a heartbeat is already in progress, skip the request. if (request.entries().isEmpty() && !member.canHeartbeat()) { return; // depends on control dependency: ...
public class class_name { public static QName getPortQName(ClassInfo classInfo, String seiClassName, String targetNamespace) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Port QName"); if (annotationInfo == null) { return null; } boolean webServic...
public class class_name { public static QName getPortQName(ClassInfo classInfo, String seiClassName, String targetNamespace) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Port QName"); if (annotationInfo == null) { return null; // depends on control dependency: [i...
public class class_name { public static int indexOneOf(CharSequence string, char... chars) { for(int i = 0; i < string.length(); ++i) { for(int j = 0; j < chars.length; ++j) { if(string.charAt(i) == chars[j]) { return i; } } } return -1; } }
public class class_name { public static int indexOneOf(CharSequence string, char... chars) { for(int i = 0; i < string.length(); ++i) { for(int j = 0; j < chars.length; ++j) { if(string.charAt(i) == chars[j]) { return i; // depends on control dependency: [if], data = [none] ...
public class class_name { public YarnSubmissionHelper setJobSubmissionEnvMap(final Map<String, String> map) { for (final Map.Entry<String, String> entry : map.entrySet()) { environmentVariablesMap.put(entry.getKey(), entry.getValue()); } return this; } }
public class class_name { public YarnSubmissionHelper setJobSubmissionEnvMap(final Map<String, String> map) { for (final Map.Entry<String, String> entry : map.entrySet()) { environmentVariablesMap.put(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry] } return ...
public class class_name { public void run(String path, String port) { Server server = new Server(); ServerConnector connector = new ServerConnector(server); connector.setHost("localhost"); connector.setPort(Integer.parseInt(port)); server.addConnector(connector); Resour...
public class class_name { public void run(String path, String port) { Server server = new Server(); ServerConnector connector = new ServerConnector(server); connector.setHost("localhost"); connector.setPort(Integer.parseInt(port)); server.addConnector(connector); Resour...
public class class_name { @Override public void cancelJob(JobListener jobListener) throws JobException { synchronized (this.cancellationRequest) { if (this.cancellationRequested) { // Return immediately if a cancellation has already been requested return; } this.cancellat...
public class class_name { @Override public void cancelJob(JobListener jobListener) throws JobException { synchronized (this.cancellationRequest) { if (this.cancellationRequested) { // Return immediately if a cancellation has already been requested return; // depends on control depende...
public class class_name { public void setJobList(java.util.Collection<GlacierJobDescription> jobList) { if (jobList == null) { this.jobList = null; return; } this.jobList = new java.util.ArrayList<GlacierJobDescription>(jobList); } }
public class class_name { public void setJobList(java.util.Collection<GlacierJobDescription> jobList) { if (jobList == null) { this.jobList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this...
public class class_name { private synchronized void trim() { while (mCurrentSize > mSizeLimit) { byte[] buf = mBuffersByLastUse.remove(0); mBuffersBySize.remove(buf); mCurrentSize -= buf.length; } } }
public class class_name { private synchronized void trim() { while (mCurrentSize > mSizeLimit) { byte[] buf = mBuffersByLastUse.remove(0); mBuffersBySize.remove(buf); // depends on control dependency: [while], data = [none] mCurrentSize -= buf.length; // depends on control d...
public class class_name { protected void dispatchQueuedEvents() { // don't dispatch if we're already dispatching, that would allow reentrancy and out-of-order events. Instead, leave // the events to be dispatched after the in-progress dispatch is complete. if (isDispatching.get()) { return; } ...
public class class_name { protected void dispatchQueuedEvents() { // don't dispatch if we're already dispatching, that would allow reentrancy and out-of-order events. Instead, leave // the events to be dispatched after the in-progress dispatch is complete. if (isDispatching.get()) { return; // depend...
public class class_name { public List<ValidatorMetaData> readMetaData( Class<?> clazz, String propertyName ) { /* Generate a key to the cache based on the classname and the propertyName. */ String propertyKey = clazz.getName() + "." + propertyName; /* Look up the validation meta data in ...
public class class_name { public List<ValidatorMetaData> readMetaData( Class<?> clazz, String propertyName ) { /* Generate a key to the cache based on the classname and the propertyName. */ String propertyKey = clazz.getName() + "." + propertyName; /* Look up the validation meta data in ...
public class class_name { public static WebElement isElementPresentAndGetFirstOne(By element) { final WebDriver webDriver = Context.getDriver(); webDriver.manage().timeouts().implicitlyWait(DriverFactory.IMPLICIT_WAIT * 2, TimeUnit.MICROSECONDS); final List<WebElement> foundElements = ...
public class class_name { public static WebElement isElementPresentAndGetFirstOne(By element) { final WebDriver webDriver = Context.getDriver(); webDriver.manage().timeouts().implicitlyWait(DriverFactory.IMPLICIT_WAIT * 2, TimeUnit.MICROSECONDS); final List<WebElement> foundElements = ...
public class class_name { public List<String> getCSV(HttpHeader header, boolean keepQuotes) { QuotedCSV values = null; for (HttpField f : this) { if (f.getHeader() == header) { if (values == null) values = new QuotedCSV(keepQuotes); values...
public class class_name { public List<String> getCSV(HttpHeader header, boolean keepQuotes) { QuotedCSV values = null; for (HttpField f : this) { if (f.getHeader() == header) { if (values == null) values = new QuotedCSV(keepQuotes); values...
public class class_name { public static void initReadme() { try { InputStream readmeStream = JavadocFixTool.class.getResourceAsStream("/README"); if (readmeStream != null) { BufferedReader readmeReader = new BufferedReader(new InputStreamReader(readmeStream)); ...
public class class_name { public static void initReadme() { try { InputStream readmeStream = JavadocFixTool.class.getResourceAsStream("/README"); if (readmeStream != null) { BufferedReader readmeReader = new BufferedReader(new InputStreamReader(readmeStream)); ...
public class class_name { public CmsUUID getLockedInProjectId() { CmsUUID lockedInProject = null; if (getLock().isNullLock() && !getResource().getState().isUnchanged()) { // resource is unlocked and modified lockedInProject = getResource().getProjectLastModified(); } el...
public class class_name { public CmsUUID getLockedInProjectId() { CmsUUID lockedInProject = null; if (getLock().isNullLock() && !getResource().getState().isUnchanged()) { // resource is unlocked and modified lockedInProject = getResource().getProjectLastModified(); // depends o...