code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public synchronized void run() { if (!start()) return; try { inRunnableMode = true; while (!stopRequired) wait(); } catch (InterruptedException e) { log.error("Server was inte...
public class class_name { @Override public synchronized void run() { if (!start()) return; try { inRunnableMode = true; // depends on control dependency: [try], data = [none] while (!stopRequired) wait(); } catch (InterruptedExc...
public class class_name { public void setKnobVisible(final boolean VISIBLE) { if (null == knobVisible) { _knobVisible = VISIBLE; fireUpdateEvent(VISIBILITY_EVENT); } else { knobVisible.set(VISIBLE); } } }
public class class_name { public void setKnobVisible(final boolean VISIBLE) { if (null == knobVisible) { _knobVisible = VISIBLE; // depends on control dependency: [if], data = [none] fireUpdateEvent(VISIBILITY_EVENT); // depends on control dependency: [if], data = [none] } else ...
public class class_name { public static void debugSummaryMessage(TraceComponent callersTrace, Connection connection, ConversationImpl conversation, String remark, int requestNumber) { if(tc.isDebugEnabled() || callersTrace.isDebugEnabled() || SIBMessageTraceJfap.tcjfs.isDebugEnabled()) { final ...
public class class_name { public static void debugSummaryMessage(TraceComponent callersTrace, Connection connection, ConversationImpl conversation, String remark, int requestNumber) { if(tc.isDebugEnabled() || callersTrace.isDebugEnabled() || SIBMessageTraceJfap.tcjfs.isDebugEnabled()) { final ...
public class class_name { private boolean validateTemplateURI(URI flowURI) { if (!this.sysConfig.hasPath(ServiceConfigKeys.TEMPLATE_CATALOGS_FULLY_QUALIFIED_PATH_KEY)) { log.error("Missing config " + ServiceConfigKeys.TEMPLATE_CATALOGS_FULLY_QUALIFIED_PATH_KEY); return false; } if (!flowURI.get...
public class class_name { private boolean validateTemplateURI(URI flowURI) { if (!this.sysConfig.hasPath(ServiceConfigKeys.TEMPLATE_CATALOGS_FULLY_QUALIFIED_PATH_KEY)) { log.error("Missing config " + ServiceConfigKeys.TEMPLATE_CATALOGS_FULLY_QUALIFIED_PATH_KEY); // depends on control dependency: [if], data =...
public class class_name { public static boolean writeTextFile(String _fileName, String _fileContent, Charset _charset, boolean _append) { if (StringUtil.isBlank(_fileName)) { return false; } String allText = ""; if (_append) { File file = new File(_fileName); ...
public class class_name { public static boolean writeTextFile(String _fileName, String _fileContent, Charset _charset, boolean _append) { if (StringUtil.isBlank(_fileName)) { return false; // depends on control dependency: [if], data = [none] } String allText = ""; if (_appe...
public class class_name { protected String selectSubprotocol(String requestedSubprotocols) { if (requestedSubprotocols == null || subprotocols.length == 0) { return null; } String[] requestedSubprotocolArray = requestedSubprotocols.split(","); for (String p: requestedSubpro...
public class class_name { protected String selectSubprotocol(String requestedSubprotocols) { if (requestedSubprotocols == null || subprotocols.length == 0) { return null; // depends on control dependency: [if], data = [none] } String[] requestedSubprotocolArray = requestedSubprotoc...
public class class_name { public File getGeneratedCssFile(String path) { String rootDir = tempDir + JawrConstant.CSS_SMARTSPRITES_TMP_DIR; String fPath = null; if (jawrConfig.isWorkingDirectoryInWebApp()) { fPath = jawrConfig.getContext().getRealPath(rootDir + getCssPath(path)); } else { fPath = rootDi...
public class class_name { public File getGeneratedCssFile(String path) { String rootDir = tempDir + JawrConstant.CSS_SMARTSPRITES_TMP_DIR; String fPath = null; if (jawrConfig.isWorkingDirectoryInWebApp()) { fPath = jawrConfig.getContext().getRealPath(rootDir + getCssPath(path)); // depends on control depende...
public class class_name { public int setValue(double dValue, boolean bDisplayOption, int iMoveMode) { Class<?> classData = this.getDataClass(); if (classData != Object.class) { Object objData = null; if (classData == Short.class) objData = new Short((...
public class class_name { public int setValue(double dValue, boolean bDisplayOption, int iMoveMode) { Class<?> classData = this.getDataClass(); if (classData != Object.class) { Object objData = null; if (classData == Short.class) objData = new Short((...
public class class_name { public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; } return com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } }
public class class_name { public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; // depends on control dependency: [if], data = [none] } return com.google.cloud.datalabeling.v1beta1.GcsSource.ge...
public class class_name { public void runUncachedQuery() throws TimeoutException, InterruptedException { // [START bigquery_query_no_cache] // BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus...
public class class_name { public void runUncachedQuery() throws TimeoutException, InterruptedException { // [START bigquery_query_no_cache] // BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus...
public class class_name { public void setCustomAmiList(java.util.Collection<CustomAmi> customAmiList) { if (customAmiList == null) { this.customAmiList = null; return; } this.customAmiList = new com.amazonaws.internal.SdkInternalList<CustomAmi>(customAmiList); } }
public class class_name { public void setCustomAmiList(java.util.Collection<CustomAmi> customAmiList) { if (customAmiList == null) { this.customAmiList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void handle(ExecuteContext context, SQLExceptionTranslator translator, SQLException exception) { DataAccessException translated = translate(context, translator, exception); if (exception.getNextException() == null) { context.exception(translated); } else { logger.erro...
public class class_name { private void handle(ExecuteContext context, SQLExceptionTranslator translator, SQLException exception) { DataAccessException translated = translate(context, translator, exception); if (exception.getNextException() == null) { context.exception(translated); // depends on control depen...
public class class_name { public static Geometry toJtsGeometry(TDWay way, List<TDWay> innerWays) { if (way == null) { LOGGER.warning("way is null"); return null; } if (way.isForcePolygonLine()) { // may build a single line string if inner ways are empty ...
public class class_name { public static Geometry toJtsGeometry(TDWay way, List<TDWay> innerWays) { if (way == null) { LOGGER.warning("way is null"); // depends on control dependency: [if], data = [none] return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { public final ByteBuffer encode(CharBuffer buffer) { try { return newEncoder() .onMalformedInput(CodingErrorAction.REPLACE) .onUnmappableCharacter(CodingErrorAction.REPLACE).encode( buffer); } catch...
public class class_name { public final ByteBuffer encode(CharBuffer buffer) { try { return newEncoder() .onMalformedInput(CodingErrorAction.REPLACE) .onUnmappableCharacter(CodingErrorAction.REPLACE).encode( buffer); // depends on c...
public class class_name { @Pure public static DBaseFileAttributeProvider getContainer(URL dbaseFile, int recordNumber) { final DBaseFileAttributePool pool = getPool(dbaseFile); if (pool != null) { final DBaseFileAttributeAccessor accessor = pool.getAccessor(recordNumber); if (accessor != null) { return ...
public class class_name { @Pure public static DBaseFileAttributeProvider getContainer(URL dbaseFile, int recordNumber) { final DBaseFileAttributePool pool = getPool(dbaseFile); if (pool != null) { final DBaseFileAttributeAccessor accessor = pool.getAccessor(recordNumber); if (accessor != null) { return ...
public class class_name { private static void shutdown(ExecutorService executorService) { executorService.shutdown(); try { if (!executorService.awaitTermination(60, TimeUnit.SECONDS)) { executorService.shutdownNow(); if (!executorService.awaitTermination(60,...
public class class_name { private static void shutdown(ExecutorService executorService) { executorService.shutdown(); try { if (!executorService.awaitTermination(60, TimeUnit.SECONDS)) { executorService.shutdownNow(); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public EClass getIfcRelConnects() { if (ifcRelConnectsEClass == null) { ifcRelConnectsEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(533); } return ifcRelConnectsEClass; } }
public class class_name { @Override public EClass getIfcRelConnects() { if (ifcRelConnectsEClass == null) { ifcRelConnectsEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(533); // depends on control dependency: [if], data = [none] } return ifcRel...
public class class_name { protected void collectGroups(Group group, Set<String> groupSet) { Enumeration<? extends Principal> members = group.members(); while (members.hasMoreElements()) { Principal member = members.nextElement(); String name = member.getName(); boolean added = groupSet.add(n...
public class class_name { protected void collectGroups(Group group, Set<String> groupSet) { Enumeration<? extends Principal> members = group.members(); while (members.hasMoreElements()) { Principal member = members.nextElement(); String name = member.getName(); boolean added = groupSet.add(n...
public class class_name { @SuppressWarnings("unchecked") public List sortByDateTime(Collection<? extends T> collection, final Field field, final boolean asc) { if (collection == null) { return null; } List list = new ArrayList(); list.addAl...
public class class_name { @SuppressWarnings("unchecked") public List sortByDateTime(Collection<? extends T> collection, final Field field, final boolean asc) { if (collection == null) { return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { private static Method asAccessibleMethod(ReloadableType methodDeclaringTypeReloadableType, Method method, Object target, boolean makeAccessibleCopy) throws IllegalAccessException { if (methodDeclaringTypeReloadableType != null && isDeleted(methodDeclaringTypeReloadableType, method)) {...
public class class_name { private static Method asAccessibleMethod(ReloadableType methodDeclaringTypeReloadableType, Method method, Object target, boolean makeAccessibleCopy) throws IllegalAccessException { if (methodDeclaringTypeReloadableType != null && isDeleted(methodDeclaringTypeReloadableType, method)) {...
public class class_name { public void postRunnable (Runnable unit) { if (!_running) { log.warning("Posting runnable to inactive object manager", "unit", unit, new Exception()); } // just append it to the queue _evqueue.append(unit); } }
public class class_name { public void postRunnable (Runnable unit) { if (!_running) { log.warning("Posting runnable to inactive object manager", "unit", unit, new Exception()); // depends on control dependency: [if], data = [none] } // just append it to ...
public class class_name { public ShareDetails withShareErrors(ShareError... shareErrors) { if (this.shareErrors == null) { setShareErrors(new java.util.ArrayList<ShareError>(shareErrors.length)); } for (ShareError ele : shareErrors) { this.shareErrors.add(ele); }...
public class class_name { public ShareDetails withShareErrors(ShareError... shareErrors) { if (this.shareErrors == null) { setShareErrors(new java.util.ArrayList<ShareError>(shareErrors.length)); // depends on control dependency: [if], data = [none] } for (ShareError ele : shareErro...
public class class_name { public boolean pickLowestCost(Space target, NavPath path) { if (target == this) { return true; } if (links.size() == 0) { return false; } Link bestLink = null; for (int i=0;i<getLinkCount();i++) { Link link = getLink(i); if ((bestLink == null) || (link.getTarget().ge...
public class class_name { public boolean pickLowestCost(Space target, NavPath path) { if (target == this) { return true; // depends on control dependency: [if], data = [none] } if (links.size() == 0) { return false; // depends on control dependency: [if], data = [none] } Link bestLink = null; for (...
public class class_name { @SuppressWarnings( {"unchecked"}) public void registerAnnotations(final Class<? extends Annotation>[] annotations) { this.annotations = annotations; this.annotationParsers = new AnnotationParser[annotations.length]; for (int i = 0; i < annotations.length; i++) { annotationParsers[...
public class class_name { @SuppressWarnings( {"unchecked"}) public void registerAnnotations(final Class<? extends Annotation>[] annotations) { this.annotations = annotations; this.annotationParsers = new AnnotationParser[annotations.length]; for (int i = 0; i < annotations.length; i++) { annotationParsers[...
public class class_name { HashMap<Serializable,BigInteger> buildCheckSumMap(Region<Serializable,Object> region) { if(region.getAttributes().getDataPolicy().withPartitioning()) { region = PartitionRegionHelper.getLocalData(region); } Set<Serializable> keySet = region.keySet(); if(keySet == null ...
public class class_name { HashMap<Serializable,BigInteger> buildCheckSumMap(Region<Serializable,Object> region) { if(region.getAttributes().getDataPolicy().withPartitioning()) { region = PartitionRegionHelper.getLocalData(region); // depends on control dependency: [if], data = [none] } Set<Serializa...
public class class_name { protected static String prependMetadata (String message, JSONObject metadata) { try { if (null != metadata) { String clazz = ""; String method = ""; String file = ""; String line = ""; if (meta...
public class class_name { protected static String prependMetadata (String message, JSONObject metadata) { try { if (null != metadata) { String clazz = ""; String method = ""; String file = ""; String line = ""; if (meta...
public class class_name { public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsClickLogCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) { ClickLogCQ cq = new ClickLogCQ(); if (queryLambda != null) { ...
public class class_name { public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsClickLogCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) { ClickLogCQ cq = new ClickLogCQ(); if (queryLambda != null) { ...
public class class_name { @Override public S unmarshal(T str) { try { return unmarshal.newInstance(str); } catch (IllegalAccessException ex) { throw new IllegalStateException("Constructor is not accessible"); } catch (InstantiationException ex) { t...
public class class_name { @Override public S unmarshal(T str) { try { return unmarshal.newInstance(str); // depends on control dependency: [try], data = [none] } catch (IllegalAccessException ex) { throw new IllegalStateException("Constructor is not accessible"); ...
public class class_name { private void read_env() { String env; try { if ((env = System.getProperty("TANGO_HOST")) == null) { if ((env = System.getenv("TANGO_HOST")) == null) { Except.throw_connection_failed("TangoApi_TANGO_HOST_NOT_SET", "Property \"TANGO_HOST\" not exported...
public class class_name { private void read_env() { String env; try { if ((env = System.getProperty("TANGO_HOST")) == null) { if ((env = System.getenv("TANGO_HOST")) == null) { Except.throw_connection_failed("TangoApi_TANGO_HOST_NOT_SET", "Property \"TANGO_HOST\" not exported...
public class class_name { public boolean remove(Object o) { int i = indexOf(o); if (i == -1) return false; else { removeAt(i); return true; } } }
public class class_name { public boolean remove(Object o) { int i = indexOf(o); if (i == -1) return false; else { removeAt(i); // depends on control dependency: [if], data = [(i] return true; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void addValue(int... value) { /* no-op if disabled */ if (!enabled.get()) return; for (int v : value) { getCurrentBucket().data.addValue(v); } } }
public class class_name { public void addValue(int... value) { /* no-op if disabled */ if (!enabled.get()) return; for (int v : value) { getCurrentBucket().data.addValue(v); // depends on control dependency: [for], data = [v] } } }
public class class_name { public static HorizontalPanel newRow (HasAlignment.VerticalAlignmentConstant valign, String styleName, Widget... contents) { HorizontalPanel row = new HorizontalPanel(); row.setVerticalAlignment(valign); if (styleName != nu...
public class class_name { public static HorizontalPanel newRow (HasAlignment.VerticalAlignmentConstant valign, String styleName, Widget... contents) { HorizontalPanel row = new HorizontalPanel(); row.setVerticalAlignment(valign); if (styleName != nu...
public class class_name { public ArrayList<String> getProteinAliases() throws XPathExpressionException { ArrayList<String> aliasList = new ArrayList<String>(); if (uniprotDoc == null) { return aliasList; } Element uniprotElement = uniprotDoc.getDocumentElement(); Element entryElement = XMLHelper.selectSin...
public class class_name { public ArrayList<String> getProteinAliases() throws XPathExpressionException { ArrayList<String> aliasList = new ArrayList<String>(); if (uniprotDoc == null) { return aliasList; } Element uniprotElement = uniprotDoc.getDocumentElement(); Element entryElement = XMLHelper.selectSin...
public class class_name { public static PlotCanvas plot(String[] rowLabels, String[] columnLabels, double[][] z, Color[] palette) { if (z.length != rowLabels.length || z[0].length != columnLabels.length) { throw new IllegalArgumentException("Data size and label size don't match."); } ...
public class class_name { public static PlotCanvas plot(String[] rowLabels, String[] columnLabels, double[][] z, Color[] palette) { if (z.length != rowLabels.length || z[0].length != columnLabels.length) { throw new IllegalArgumentException("Data size and label size don't match."); } ...
public class class_name { public String getAsText() { if (throwable != null) return throwable.toString(); if (result != null) { try { if (editor != null) { editor.setValue(result); return editor.getAsText(); ...
public class class_name { public String getAsText() { if (throwable != null) return throwable.toString(); if (result != null) { try { if (editor != null) { editor.setValue(result); // depends on control dependency: [if], data = [n...
public class class_name { public DescribeFindingsResult withFindings(Finding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList<Finding>(findings.length)); } for (Finding ele : findings) { this.findings.add(ele); } return this...
public class class_name { public DescribeFindingsResult withFindings(Finding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList<Finding>(findings.length)); // depends on control dependency: [if], data = [none] } for (Finding ele : findings) { ...
public class class_name { public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedPublishingEvent() { List<Node> nodeList = childNode.get("supported-publishing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<...
public class class_name { public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedPublishingEvent() { List<Node> nodeList = childNode.get("supported-publishing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<...
public class class_name { private static String buildProviderUrl(List<String> urls, String baseDn) { Assert.notNull(baseDn, "The Base DN for the LDAP server must not be null."); Assert.notEmpty(urls, "At least one LDAP server URL must be provided."); String trimmedBaseDn = baseDn.trim(); StringBuilder provide...
public class class_name { private static String buildProviderUrl(List<String> urls, String baseDn) { Assert.notNull(baseDn, "The Base DN for the LDAP server must not be null."); Assert.notEmpty(urls, "At least one LDAP server URL must be provided."); String trimmedBaseDn = baseDn.trim(); StringBuilder provide...
public class class_name { public V get(K key) throws E { clean(); ValueRef<K, V> valueRef = mValues.get(key); V value; if (valueRef == null || (value = valueRef.get()) == null) { try { value = create(key); } catch (Exception e) { ...
public class class_name { public V get(K key) throws E { clean(); ValueRef<K, V> valueRef = mValues.get(key); V value; if (valueRef == null || (value = valueRef.get()) == null) { try { value = create(key); // depends on control dependency: [try], d...
public class class_name { public AnnotationVisitor visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) { if (mv != null) { return mv.visitInsnAnnotation(typeRef, typePath, desc, visible); } return null; } }
public class class_name { public AnnotationVisitor visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) { if (mv != null) { return mv.visitInsnAnnotation(typeRef, typePath, desc, visible); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void registerTaskManager(final TaskExecutorConnection taskExecutorConnection, SlotReport initialSlotReport) { checkInit(); LOG.debug("Registering TaskManager {} under {} at the SlotManager.", taskExecutorConnection.getResourceID(), taskExecutorConnection.getInstanceID()); // we...
public class class_name { public void registerTaskManager(final TaskExecutorConnection taskExecutorConnection, SlotReport initialSlotReport) { checkInit(); LOG.debug("Registering TaskManager {} under {} at the SlotManager.", taskExecutorConnection.getResourceID(), taskExecutorConnection.getInstanceID()); // we...
public class class_name { public Iterator<String> getSpaces() { log.debug("getSpaces()"); List<String> spaces = new ArrayList<>(); List<Bucket> buckets = listAllBuckets(); for (Bucket bucket : buckets) { String bucketName = bucket.getName(); if (isSpace(bucketNa...
public class class_name { public Iterator<String> getSpaces() { log.debug("getSpaces()"); List<String> spaces = new ArrayList<>(); List<Bucket> buckets = listAllBuckets(); for (Bucket bucket : buckets) { String bucketName = bucket.getName(); if (isSpace(bucketNa...
public class class_name { public void marshall(UserSettings userSettings, ProtocolMarshaller protocolMarshaller) { if (userSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(userSettings.get...
public class class_name { public void marshall(UserSettings userSettings, ProtocolMarshaller protocolMarshaller) { if (userSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(userSettings.get...
public class class_name { private void close() { assert (fd != null); try { fd.close(); socket.eventClosed(endpoint, fd); } catch (IOException e) { socket.eventCloseFailed(endpoint, ZError.exccode(e)); } fd = null; } }
public class class_name { private void close() { assert (fd != null); try { fd.close(); // depends on control dependency: [try], data = [none] socket.eventClosed(endpoint, fd); // depends on control dependency: [try], data = [none] } catch (IOException e) { ...
public class class_name { public void marshall(EnableDomainTransferLockRequest enableDomainTransferLockRequest, ProtocolMarshaller protocolMarshaller) { if (enableDomainTransferLockRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public void marshall(EnableDomainTransferLockRequest enableDomainTransferLockRequest, ProtocolMarshaller protocolMarshaller) { if (enableDomainTransferLockRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { @Nonnull public String createSessionId(@Nonnull final String sessionId, @Nullable final String memcachedId) { if ( LOG.isDebugEnabled() ) { LOG.debug( "Creating new session id with orig id '" + sessionId + "' and memcached id '" + memcachedId + "'." ); } ...
public class class_name { @Nonnull public String createSessionId(@Nonnull final String sessionId, @Nullable final String memcachedId) { if ( LOG.isDebugEnabled() ) { LOG.debug( "Creating new session id with orig id '" + sessionId + "' and memcached id '" + memcachedId + "'." ); // depends on co...
public class class_name { private File getFileFromPath(final String path) { File result = (path != null) ? new File(path) : null; // AS7-1752 see if a non-existent relative path exists relative to the home dir if (result != null && homeDir != null && !result.exists() && !result.isAbsolute()) { ...
public class class_name { private File getFileFromPath(final String path) { File result = (path != null) ? new File(path) : null; // AS7-1752 see if a non-existent relative path exists relative to the home dir if (result != null && homeDir != null && !result.exists() && !result.isAbsolute()) { ...
public class class_name { private void removeResourceMethods(Object theProvider, Class<?> clazz, Collection<String> resourceNames) throws ConfigurationException { for (Method m : ReflectionUtil.getDeclaredMethods(clazz)) { BaseMethodBinding<?> foundMethodBinding = BaseMethodBinding.bindMethod(m, getFhirContext(),...
public class class_name { private void removeResourceMethods(Object theProvider, Class<?> clazz, Collection<String> resourceNames) throws ConfigurationException { for (Method m : ReflectionUtil.getDeclaredMethods(clazz)) { BaseMethodBinding<?> foundMethodBinding = BaseMethodBinding.bindMethod(m, getFhirContext(),...
public class class_name { public static final String digitsAndPlusOnly(MatcherCompat matcher) { StringBuilder buffer = new StringBuilder(); String matchingRegion = matcher.group(); for (int i = 0, size = matchingRegion.length(); i < size; i++) { char character = matchingRegion.charA...
public class class_name { public static final String digitsAndPlusOnly(MatcherCompat matcher) { StringBuilder buffer = new StringBuilder(); String matchingRegion = matcher.group(); for (int i = 0, size = matchingRegion.length(); i < size; i++) { char character = matchingRegion.charA...
public class class_name { @Pure public int indexOf(BusItineraryHalt bushalt) { if (bushalt == null) { return -1; } if (bushalt.isValidPrimitive()) { return ListUtil.indexOf(this.validHalts, VALID_HALT_COMPARATOR, bushalt); } int idx = ListUtil.indexOf(this.invalidHalts, INVALID_HALT_COMPARATOR, bushal...
public class class_name { @Pure public int indexOf(BusItineraryHalt bushalt) { if (bushalt == null) { return -1; // depends on control dependency: [if], data = [none] } if (bushalt.isValidPrimitive()) { return ListUtil.indexOf(this.validHalts, VALID_HALT_COMPARATOR, bushalt); // depends on control depende...
public class class_name { final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) { final String methodName = "connectionErrorOccurred"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] {e...
public class class_name { final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) { final String methodName = "connectionErrorOccurred"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] {e...
public class class_name { public static ArrayList<String> getSpeechRecognitionResults(int requestCode, int resultCode, Intent data) { ArrayList<String> matches = null; if (requestCode == 0 && resultCode == -1) { matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); StringBuilder sb = ne...
public class class_name { public static ArrayList<String> getSpeechRecognitionResults(int requestCode, int resultCode, Intent data) { ArrayList<String> matches = null; if (requestCode == 0 && resultCode == -1) { matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); // depends on control de...
public class class_name { @Nonnull public SourceLineAnnotation getPrimarySourceLineAnnotation() { // Highest priority: return the first top level source line annotation for (BugAnnotation annotation : annotationList) { if (annotation instanceof SourceLineAnnotation &...
public class class_name { @Nonnull public SourceLineAnnotation getPrimarySourceLineAnnotation() { // Highest priority: return the first top level source line annotation for (BugAnnotation annotation : annotationList) { if (annotation instanceof SourceLineAnnotation &...
public class class_name { public static IClasspathEntry newLibraryEntry(Bundle bundle, IPath precomputedBundlePath, BundleURLMappings javadocURLs) { assert bundle != null; final IPath bundlePath; if (precomputedBundlePath == null) { bundlePath = BundleUtil.getBundlePath(bundle); } else { bundlePath = pre...
public class class_name { public static IClasspathEntry newLibraryEntry(Bundle bundle, IPath precomputedBundlePath, BundleURLMappings javadocURLs) { assert bundle != null; final IPath bundlePath; if (precomputedBundlePath == null) { bundlePath = BundleUtil.getBundlePath(bundle); // depends on control dependen...
public class class_name { @Override public INDArray computeGradient(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask) { labels = labels.castTo(preOutput.dataType()); //No-op if already correct dtype long nSamples = labels.size(0); INDArray output = activationF...
public class class_name { @Override public INDArray computeGradient(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask) { labels = labels.castTo(preOutput.dataType()); //No-op if already correct dtype long nSamples = labels.size(0); INDArray output = activationF...
public class class_name { public <T1,T2> Collection<T2> map (final Collection<? extends T1> collection, final F1<T1,T2> f) { final Collection<T2> result = new LinkedList<T2> (); for (final T1 object : collection) { result.add (f.ru...
public class class_name { public <T1,T2> Collection<T2> map (final Collection<? extends T1> collection, final F1<T1,T2> f) { final Collection<T2> result = new LinkedList<T2> (); for (final T1 object : collection) { result.add (f.ru...
public class class_name { private static boolean samePattern(String value1, String value2) { if (value1.length() == 0) { return value2.length() == 0; } if (value1.charAt(0) == '{') { return value2.length() > 0 && value2.charAt(0) == '{'; } return value1.e...
public class class_name { private static boolean samePattern(String value1, String value2) { if (value1.length() == 0) { return value2.length() == 0; // depends on control dependency: [if], data = [none] } if (value1.charAt(0) == '{') { return value2.length() > 0 && valu...
public class class_name { public static List extractToList(final Collection collection, final String propertyName) { List list = new ArrayList(collection.size()); try { for (Object obj : collection) { list.add(PropertyUtils.getProperty(obj, propertyName)); } } catch (ReflectiveOperationException e) { ...
public class class_name { public static List extractToList(final Collection collection, final String propertyName) { List list = new ArrayList(collection.size()); try { for (Object obj : collection) { list.add(PropertyUtils.getProperty(obj, propertyName)); // depends on control dependency: [for], data = [o...
public class class_name { public boolean recordLends(JSTypeExpression name) { if (!hasAnyTypeRelatedTags()) { currentInfo.setLendsName(name); populated = true; return true; } else { return false; } } }
public class class_name { public boolean recordLends(JSTypeExpression name) { if (!hasAnyTypeRelatedTags()) { currentInfo.setLendsName(name); // depends on control dependency: [if], data = [none] populated = true; // depends on control dependency: [if], data = [none] return true; // depends on co...
public class class_name { public static <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) { if (!matcher.matches(actual)) { Description description = new StringDescription(); description.appendText(reason) .appendText("\nExpected: ") ...
public class class_name { public static <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) { if (!matcher.matches(actual)) { Description description = new StringDescription(); description.appendText(reason) .appendText("\nExpected: ") ...
public class class_name { @Override public synchronized void close() { Set<IXADataRecorder> recoveredXADataRecorders = this.getRecoveredXADataRecorders(); for (IXADataRecorder dataRecorder : recoveredXADataRecorders) { dataRecorder.disqualify(); } } }
public class class_name { @Override public synchronized void close() { Set<IXADataRecorder> recoveredXADataRecorders = this.getRecoveredXADataRecorders(); for (IXADataRecorder dataRecorder : recoveredXADataRecorders) { dataRecorder.disqualify(); // depends on control dependency: [for], data = [dataRecorder]...
public class class_name { public void attach() { mLock.lock(); try { if (mTxnMgr.setLocalScope(this, mDetached)) { mDetached = false; } else if (!mDetached) { throw new IllegalStateException("Transaction scope is not detached"); ...
public class class_name { public void attach() { mLock.lock(); try { if (mTxnMgr.setLocalScope(this, mDetached)) { mDetached = false; // depends on control dependency: [if], data = [none] } else if (!mDetached) { throw new IllegalStateExcept...
public class class_name { @Override public CQVariables getVariables(Bindings bindings) { CQVariablesImpl variables = new CQVariablesImpl(); // Add all of the sling bindings SlingHttpServletRequest request = (SlingHttpServletRequest) bindings .get("request"); variables.putAll(bindings); // Add all of t...
public class class_name { @Override public CQVariables getVariables(Bindings bindings) { CQVariablesImpl variables = new CQVariablesImpl(); // Add all of the sling bindings SlingHttpServletRequest request = (SlingHttpServletRequest) bindings .get("request"); variables.putAll(bindings); // Add all of t...
public class class_name { public String[] getContext(Object o) { String s = (String)o; int prevIndex = -1; int index = s.indexOf(' '); List cuts = new ArrayList(); while (index != -1) { cuts.add(s.substring(prevIndex+1, index)); prevIndex = index; index = s.indexOf(' ', ++index); } cuts.add(s.sub...
public class class_name { public String[] getContext(Object o) { String s = (String)o; int prevIndex = -1; int index = s.indexOf(' '); List cuts = new ArrayList(); while (index != -1) { cuts.add(s.substring(prevIndex+1, index)); // depends on control dependency: [while], data = [none] prevIndex = index;...
public class class_name { public static final void sortAfps(AFPChain afpChain, Atom[] ca1, Atom[] ca2) { List<AFP> afpSet = afpChain.getAfpSet(); if ( debug) System.err.println("entering sortAfps"); int pro1Len = ca1.length; int pro2Len = ca2.length; afpChain.setAfpIndex( new int[pro1Len][pro2...
public class class_name { public static final void sortAfps(AFPChain afpChain, Atom[] ca1, Atom[] ca2) { List<AFP> afpSet = afpChain.getAfpSet(); if ( debug) System.err.println("entering sortAfps"); int pro1Len = ca1.length; int pro2Len = ca2.length; afpChain.setAfpIndex( new int[pro1Len][pro2...
public class class_name { public void marshall(DeleteIPSetRequest deleteIPSetRequest, ProtocolMarshaller protocolMarshaller) { if (deleteIPSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(DeleteIPSetRequest deleteIPSetRequest, ProtocolMarshaller protocolMarshaller) { if (deleteIPSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { private void _addSubtreeClientId(String clientId) { // Loop over the client id and find the substring corresponding to // each ancestor NamingContainer client id. For each ancestor // NamingContainer, add an entry into the map for the full client // id. final char separ...
public class class_name { private void _addSubtreeClientId(String clientId) { // Loop over the client id and find the substring corresponding to // each ancestor NamingContainer client id. For each ancestor // NamingContainer, add an entry into the map for the full client // id. final char separ...
public class class_name { public void marshall(DeleteResolverRequest deleteResolverRequest, ProtocolMarshaller protocolMarshaller) { if (deleteResolverRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(DeleteResolverRequest deleteResolverRequest, ProtocolMarshaller protocolMarshaller) { if (deleteResolverRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public final Pair<String, Double> predictBest(String[] context) { List<Pair<String, Double>> resultList = predict(context); double bestP = -1.0; Pair<String, Double> bestPair = null; for (Pair<String, Double> pair : resultList) { if (pai...
public class class_name { public final Pair<String, Double> predictBest(String[] context) { List<Pair<String, Double>> resultList = predict(context); double bestP = -1.0; Pair<String, Double> bestPair = null; for (Pair<String, Double> pair : resultList) { if (pai...
public class class_name { public float remove(int idx) { float ret = -1f; int p = Arrays.binarySearch(index,0,length, idx); if (p >= 0) { System.arraycopy(data, p+1, data, p, length-p-1); System.arraycopy(index, p+1, index, p, length-p-1); length--; }else{ System.err.println("error"); } return ...
public class class_name { public float remove(int idx) { float ret = -1f; int p = Arrays.binarySearch(index,0,length, idx); if (p >= 0) { System.arraycopy(data, p+1, data, p, length-p-1); // depends on control dependency: [if], data = [none] System.arraycopy(index, p+1, index, p, length-p-1); // depends on...
public class class_name { public synchronized void forceNodeShutdown() { LOGGER.entering(); // stop the node recycle thread stopNodeRecycleThread(); // verify the servlet is supported on the node if (!canForceShutdown) { // allow this proxy to keep going ...
public class class_name { public synchronized void forceNodeShutdown() { LOGGER.entering(); // stop the node recycle thread stopNodeRecycleThread(); // verify the servlet is supported on the node if (!canForceShutdown) { // allow this proxy to keep going ...
public class class_name { public void nextProtocols(String ...protocols) { if (protocols == null || protocols.length == 0) { _nextProtocols = null; return; } StringBuilder sb = new StringBuilder(); for (String protocol : protocols) { if (protocol == null || "".equals(protocol))...
public class class_name { public void nextProtocols(String ...protocols) { if (protocols == null || protocols.length == 0) { _nextProtocols = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } StringBuilder sb = new...
public class class_name { private void stringScan(Bytes bytes) { int mask = IJC | NFP | (validateUTF8 ? NUC : 0); long pos = bytes.readPosition(); long limit = bytes.readLimit(); while (pos < limit && ((CHAR_LOOKUP_TABLE[bytes.readUnsignedByte(pos)] & mask) == 0)) { pos++; ...
public class class_name { private void stringScan(Bytes bytes) { int mask = IJC | NFP | (validateUTF8 ? NUC : 0); long pos = bytes.readPosition(); long limit = bytes.readLimit(); while (pos < limit && ((CHAR_LOOKUP_TABLE[bytes.readUnsignedByte(pos)] & mask) == 0)) { pos++; /...
public class class_name { @Override public boolean replaceTrigger(final TriggerKey triggerKey, final OperableTrigger newTrigger) throws JobPersistenceException { return doWithLock(new LockCallback<Boolean>() { @Override public Boolean doWithLock(JedisCommands jedis) throws JobPersis...
public class class_name { @Override public boolean replaceTrigger(final TriggerKey triggerKey, final OperableTrigger newTrigger) throws JobPersistenceException { return doWithLock(new LockCallback<Boolean>() { @Override public Boolean doWithLock(JedisCommands jedis) throws JobPersis...
public class class_name { public List<ProviderInfo> route(SofaRequest request, List<ProviderInfo> providerInfos) { for (Router router : routers) { providerInfos = router.route(request, providerInfos); } return providerInfos; } }
public class class_name { public List<ProviderInfo> route(SofaRequest request, List<ProviderInfo> providerInfos) { for (Router router : routers) { providerInfos = router.route(request, providerInfos); // depends on control dependency: [for], data = [router] } return providerInfos; ...
public class class_name { private static void checkViolations(List<String> givenViolations, List<String> expectedValidationViolations) { /* * check if number of expected violations matches the given violations */ Assert.assertEquals( String.format( "number of expected validation violations (%s)...
public class class_name { private static void checkViolations(List<String> givenViolations, List<String> expectedValidationViolations) { /* * check if number of expected violations matches the given violations */ Assert.assertEquals( String.format( "number of expected validation violations (%s)...
public class class_name { protected void createRipple(double x, double y) { if(!isRipplerDisabled()) { rippler.setGeneratorCenterX(x); rippler.setGeneratorCenterY(y); rippler.createRipple(); } } }
public class class_name { protected void createRipple(double x, double y) { if(!isRipplerDisabled()) { rippler.setGeneratorCenterX(x); // depends on control dependency: [if], data = [none] rippler.setGeneratorCenterY(y); // depends on control dependency: [if], data = [none] ...
public class class_name { public User createUser(User userParam) { if(userParam != null && this.serviceTicket != null) { userParam.setServiceTicket(this.serviceTicket); } return new User(this.putJson( userParam, WS.Path.User.Version1.userCreate())); ...
public class class_name { public User createUser(User userParam) { if(userParam != null && this.serviceTicket != null) { userParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none] } return new User(this.putJson( ...
public class class_name { public static UIComponent findBsfComponent(UIComponent parent, String targetLib) { if (targetLib.equalsIgnoreCase((String) parent.getAttributes().get("library"))) { return parent; } Iterator<UIComponent> kids = parent.getFacetsAndChildren(); while (kids.hasNext()) { UIComponent ...
public class class_name { public static UIComponent findBsfComponent(UIComponent parent, String targetLib) { if (targetLib.equalsIgnoreCase((String) parent.getAttributes().get("library"))) { return parent; // depends on control dependency: [if], data = [none] } Iterator<UIComponent> kids = parent.getFacetsAnd...
public class class_name { public String handleBooleanAnnotation(String annotation, Boolean value, String message, String validate) { if (!Boolean.TRUE.equals(value)) return ""; // if validate contains annotation, do nothing if (validate != null && validate.toLowerCase().matches(".*@" + annotation.toLowerCas...
public class class_name { public String handleBooleanAnnotation(String annotation, Boolean value, String message, String validate) { if (!Boolean.TRUE.equals(value)) return ""; // if validate contains annotation, do nothing if (validate != null && validate.toLowerCase().matches(".*@" + annotation.toLowerCas...
public class class_name { private double neigh_value(double x_cur, double x_min, double x_max, double r) { double ranval, zvalue, new_value; double work3, work2 = 0, work1 = 0; double x_range = x_max - x_min; // ------------ generate a standard normal random variate (zvalue) ----------------...
public class class_name { private double neigh_value(double x_cur, double x_min, double x_max, double r) { double ranval, zvalue, new_value; double work3, work2 = 0, work1 = 0; double x_range = x_max - x_min; // ------------ generate a standard normal random variate (zvalue) ----------------...
public class class_name { public void sendError(final int sc) { try { response.sendError(sc); } catch (final Exception e) { LOGGER.log(Level.ERROR, "Sends error status code [" + sc + "] failed: " + e.getMessage()); } } }
public class class_name { public void sendError(final int sc) { try { response.sendError(sc); // depends on control dependency: [try], data = [none] } catch (final Exception e) { LOGGER.log(Level.ERROR, "Sends error status code [" + sc + "] failed: " + e.getMessage()); }...
public class class_name { @Override public EEnum getIfcElementCompositionEnum() { if (ifcElementCompositionEnumEEnum == null) { ifcElementCompositionEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(981); } return ifcElementCompositionEnumEEnum;...
public class class_name { @Override public EEnum getIfcElementCompositionEnum() { if (ifcElementCompositionEnumEEnum == null) { ifcElementCompositionEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(981); // depends on control dependency: [if], data ...
public class class_name { private void setRect(double minLat, double minLng, double maxLat, double maxLng) { if (!(minLat < maxLat)) { throw new IllegalArgumentException("GeoBounds is not valid - minLat must be less that maxLat."); } if (!(minLng < maxLng)) { ...
public class class_name { private void setRect(double minLat, double minLng, double maxLat, double maxLng) { if (!(minLat < maxLat)) { throw new IllegalArgumentException("GeoBounds is not valid - minLat must be less that maxLat."); } if (!(minLng < maxLng)) { ...
public class class_name { private ImmutableMember handleProbe(Pair<ImmutableMember, ImmutableMember> members) { ImmutableMember remoteMember = members.getLeft(); ImmutableMember localMember = members.getRight(); LOGGER.trace("{} - Received probe {} from {}", this.localMember.id(), localMember, remoteMembe...
public class class_name { private ImmutableMember handleProbe(Pair<ImmutableMember, ImmutableMember> members) { ImmutableMember remoteMember = members.getLeft(); ImmutableMember localMember = members.getRight(); LOGGER.trace("{} - Received probe {} from {}", this.localMember.id(), localMember, remoteMembe...
public class class_name { public java.util.List<FpgaImage> getFpgaImages() { if (fpgaImages == null) { fpgaImages = new com.amazonaws.internal.SdkInternalList<FpgaImage>(); } return fpgaImages; } }
public class class_name { public java.util.List<FpgaImage> getFpgaImages() { if (fpgaImages == null) { fpgaImages = new com.amazonaws.internal.SdkInternalList<FpgaImage>(); // depends on control dependency: [if], data = [none] } return fpgaImages; } }
public class class_name { @Override public void accept(ClassWriterOutputVisitor visitor) throws IOException { proxyBeanDefinitionWriter.accept(visitor); try (OutputStream out = visitor.visitClass(proxyFullName)) { out.write(classWriter.toByteArray()); for (ExecutableMethodWr...
public class class_name { @Override public void accept(ClassWriterOutputVisitor visitor) throws IOException { proxyBeanDefinitionWriter.accept(visitor); try (OutputStream out = visitor.visitClass(proxyFullName)) { out.write(classWriter.toByteArray()); for (ExecutableMethodWr...
public class class_name { @Override public GraphicsConfiguration getDeviceConfiguration() { if (this.deviceConfiguration == null) { this.deviceConfiguration = new SVGGraphicsConfiguration(this.width, this.height); } return this.deviceConfiguration; } }
public class class_name { @Override public GraphicsConfiguration getDeviceConfiguration() { if (this.deviceConfiguration == null) { this.deviceConfiguration = new SVGGraphicsConfiguration(this.width, this.height); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public boolean hasNext() { // first all items of the second operand are stored in the set. while (mOp2.hasNext()) { if (getNode().getDataKey() < 0) { // only nodes are // allowed throw new XPathError(ErrorType.XPTY0004...
public class class_name { @Override public boolean hasNext() { // first all items of the second operand are stored in the set. while (mOp2.hasNext()) { if (getNode().getDataKey() < 0) { // only nodes are // allowed throw new XPathError(ErrorType.XPTY0004...
public class class_name { @Nullable private static String concat(@Nullable String[] values, @NonNull String delimeter) { if (values == null || values.length == 0) { return null; } final StringBuilder str = new StringBuilder(); for (String val : values) { str....
public class class_name { @Nullable private static String concat(@Nullable String[] values, @NonNull String delimeter) { if (values == null || values.length == 0) { return null; // depends on control dependency: [if], data = [none] } final StringBuilder str = new StringBuilder()...
public class class_name { public void marshall(EbsVolume ebsVolume, ProtocolMarshaller protocolMarshaller) { if (ebsVolume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ebsVolume.getDevice(), DE...
public class class_name { public void marshall(EbsVolume ebsVolume, ProtocolMarshaller protocolMarshaller) { if (ebsVolume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ebsVolume.getDevice(), DE...
public class class_name { public void decompose( DMatrixRMaj A ) { Equation eq = new Equation(); this.QR = A.copy(); int N = Math.min(A.numCols,A.numRows); gammas = new double[ A.numCols ]; for( int i = 0; i < N; i++ ) { // update temporary variables ...
public class class_name { public void decompose( DMatrixRMaj A ) { Equation eq = new Equation(); this.QR = A.copy(); int N = Math.min(A.numCols,A.numRows); gammas = new double[ A.numCols ]; for( int i = 0; i < N; i++ ) { // update temporary variables ...
public class class_name { public static int indexOf(short[] array, short value) { if (null != array) { for (int i = 0; i < array.length; i++) { if (value == array[i]) { return i; } } } return INDEX_NOT_FOUND; } }
public class class_name { public static int indexOf(short[] array, short value) { if (null != array) { for (int i = 0; i < array.length; i++) { if (value == array[i]) { return i; // depends on control dependency: [if], data = [none] } } } return INDEX_NOT_FOUND; } }
public class class_name { @Benchmark boolean isSpace(int reps) { boolean dummy = false; if (overload == Overload.CHAR) { for (int i = 0; i < reps; ++i) { for (int ch = 0; ch < 65536; ++ch) { dummy ^= ((char) ch == ' '); } } ...
public class class_name { @Benchmark boolean isSpace(int reps) { boolean dummy = false; if (overload == Overload.CHAR) { for (int i = 0; i < reps; ++i) { for (int ch = 0; ch < 65536; ++ch) { dummy ^= ((char) ch == ' '); // depends on control dependency: [...
public class class_name { public GenericMatchInfo findBestMatch(String text, int start, EnumSet<GenericNameType> genericTypes) { if (text == null || text.length() == 0 || start < 0 || start >= text.length()) { throw new IllegalArgumentException("bad input text or range"); } GenericM...
public class class_name { public GenericMatchInfo findBestMatch(String text, int start, EnumSet<GenericNameType> genericTypes) { if (text == null || text.length() == 0 || start < 0 || start >= text.length()) { throw new IllegalArgumentException("bad input text or range"); } GenericM...
public class class_name { public void addHiDpiImage(String factor, CmsJspImageBean image) { if (m_hiDpiImages == null) { m_hiDpiImages = CmsCollectionsGenericWrapper.createLazyMap(new CmsScaleHiDpiTransformer()); } m_hiDpiImages.put(factor, image); } }
public class class_name { public void addHiDpiImage(String factor, CmsJspImageBean image) { if (m_hiDpiImages == null) { m_hiDpiImages = CmsCollectionsGenericWrapper.createLazyMap(new CmsScaleHiDpiTransformer()); // depends on control dependency: [if], data = [none] } m_hiDpiImages...
public class class_name { public void register(Collector m) { List<String> names = collectorNames(m); synchronized (collectorsToNames) { for (String name : names) { if (namesToCollectors.containsKey(name)) { throw new IllegalArgumentException("Collector already registered that provides ...
public class class_name { public void register(Collector m) { List<String> names = collectorNames(m); synchronized (collectorsToNames) { for (String name : names) { if (namesToCollectors.containsKey(name)) { throw new IllegalArgumentException("Collector already registered that provides ...
public class class_name { public RangeResponseResult getResponseResult(final long resourceContentLength, String ifRange, Date lastModified, String eTag) { if(ranges.isEmpty()) { return null; } long start = getStart(0); long end = getEnd(0); long rangeLength; ...
public class class_name { public RangeResponseResult getResponseResult(final long resourceContentLength, String ifRange, Date lastModified, String eTag) { if(ranges.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } long start = getStart(0); lo...
public class class_name { public ReturnCode stop() { System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStopping"), serverName)); // Use initialized bootstrap configuration to find the server lock file. ServerLock serverLock = ServerLock.createTestLock(bo...
public class class_name { public ReturnCode stop() { System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStopping"), serverName)); // Use initialized bootstrap configuration to find the server lock file. ServerLock serverLock = ServerLock.createTestLock(bo...
public class class_name { public AwsSecurityFindingFilters withRelatedFindingsId(StringFilter... relatedFindingsId) { if (this.relatedFindingsId == null) { setRelatedFindingsId(new java.util.ArrayList<StringFilter>(relatedFindingsId.length)); } for (StringFilter ele : relatedFinding...
public class class_name { public AwsSecurityFindingFilters withRelatedFindingsId(StringFilter... relatedFindingsId) { if (this.relatedFindingsId == null) { setRelatedFindingsId(new java.util.ArrayList<StringFilter>(relatedFindingsId.length)); // depends on control dependency: [if], data = [none] ...