code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Dateitem findMatchingItem(DateRange range) { for (BaseComponent item : getChildren()) { if (range.equals(item.getData())) { return (Dateitem) item; } } return null; } }
public class class_name { public Dateitem findMatchingItem(DateRange range) { for (BaseComponent item : getChildren()) { if (range.equals(item.getData())) { return (Dateitem) item; // depends on control dependency: [if], data = [none] } } return ...
public class class_name { @VisibleForTesting RangeSet<RowKeyWrapper> rowSetToRangeSet(RowSet btRowSet) { RangeSet<RowKeyWrapper> rangeSet = TreeRangeSet.create(); for (RowRange btRowRange : btRowSet.getRowRangesList()) { rangeSet.add(rowRangeToRange(btRowRange)); } for (ByteString key : btRowSe...
public class class_name { @VisibleForTesting RangeSet<RowKeyWrapper> rowSetToRangeSet(RowSet btRowSet) { RangeSet<RowKeyWrapper> rangeSet = TreeRangeSet.create(); for (RowRange btRowRange : btRowSet.getRowRangesList()) { rangeSet.add(rowRangeToRange(btRowRange)); // depends on control dependency: [for]...
public class class_name { private void prepareJavaSERuntime(final List<File> artifacts) throws MojoExecutionException { final File artifact = getProjectJarArtifact(artifacts); if (artifact == null) { return; } switch (runtimeSetting.getOsEnum()) { case Windows: ...
public class class_name { private void prepareJavaSERuntime(final List<File> artifacts) throws MojoExecutionException { final File artifact = getProjectJarArtifact(artifacts); if (artifact == null) { return; } switch (runtimeSetting.getOsEnum()) { case Windows: ...
public class class_name { public static byte[] textToNumericFormatV4(final String src) { if (src.length() == 0) { return null; } final byte[] res = new byte[INADDR4SZ]; final String[] s = src.split("\\.", -1); long val; try { switch (s.length) { case 1: /* ...
public class class_name { public static byte[] textToNumericFormatV4(final String src) { if (src.length() == 0) { return null; // depends on control dependency: [if], data = [none] } final byte[] res = new byte[INADDR4SZ]; final String[] s = src.split("\\.", -1); long val; try { sw...
public class class_name { public static WebXML getInstance(String webxml) { WebXML wx = null; BeanReader reader = new BeanReader(); reader.getXMLIntrospector().getConfiguration() .setAttributesForPrimitives(false); reader.getBindingConfiguration().setMapIDs(false); ...
public class class_name { public static WebXML getInstance(String webxml) { WebXML wx = null; BeanReader reader = new BeanReader(); reader.getXMLIntrospector().getConfiguration() .setAttributesForPrimitives(false); reader.getBindingConfiguration().setMapIDs(false); ...
public class class_name { public static String printArray(int[] array) { String result = "["; for (int i = 0; i < array.length; i++) { result += array[i]; result += (i < (array.length - 1)) ? ", " : ""; } result += "]"; return result; }...
public class class_name { public static String printArray(int[] array) { String result = "["; for (int i = 0; i < array.length; i++) { result += array[i]; // depends on control dependency: [for], data = [i] result += (i < (array.length - 1)) ? ", " : ""; // depends ...
public class class_name { public E set(int index, E element) { try { ListIterator<E> e = listIterator(index); E oldVal = e.next(); e.set(element); return oldVal; } catch (NoSuchElementException exc) { throw new IndexOutOfBoundsException("Index...
public class class_name { public E set(int index, E element) { try { ListIterator<E> e = listIterator(index); E oldVal = e.next(); e.set(element); // depends on control dependency: [try], data = [none] return oldVal; // depends on control dependency: [try], data ...
public class class_name { public String serializeConditionList(List<Condition> list) { ObjectMapper om = getObjectMapper(); try { return om.writeValueAsString(new ListWrappers.ConditionList(list)); } catch (Exception e) { throw new RuntimeException(e); } } }
public class class_name { public String serializeConditionList(List<Condition> list) { ObjectMapper om = getObjectMapper(); try { return om.writeValueAsString(new ListWrappers.ConditionList(list)); // depends on control dependency: [try], data = [none] } catch (Exception e) { ...
public class class_name { public synchronized void highlight(Parent pane, String query) { if (this.parent != null && !boxes.isEmpty()) { clear(); } if(query == null || query.isEmpty()) return; this.parent = pane; Set<Node> nodes = getTextNodes(pane); Array...
public class class_name { public synchronized void highlight(Parent pane, String query) { if (this.parent != null && !boxes.isEmpty()) { clear(); // depends on control dependency: [if], data = [none] } if(query == null || query.isEmpty()) return; this.parent = pane; ...
public class class_name { public static String escape(String string) { StringBuilder sb = new StringBuilder(string.length()); for (final int cp : codePointIterator(string)) { switch (cp) { case '&': sb.append("&amp;"); break; case '<':...
public class class_name { public static String escape(String string) { StringBuilder sb = new StringBuilder(string.length()); for (final int cp : codePointIterator(string)) { switch (cp) { case '&': sb.append("&amp;"); break; case '<':...
public class class_name { protected void configureThresholdEvaluatorBuilder(final ThresholdsEvaluatorBuilder thrb, final ICommandLine cl) throws BadThresholdException { if (cl.hasOption("th")) { for (Object obj : cl.getOptionValues("th")) { thrb.withThreshold(obj.toString()); ...
public class class_name { protected void configureThresholdEvaluatorBuilder(final ThresholdsEvaluatorBuilder thrb, final ICommandLine cl) throws BadThresholdException { if (cl.hasOption("th")) { for (Object obj : cl.getOptionValues("th")) { thrb.withThreshold(obj.toString()); // dep...
public class class_name { @SuppressWarnings("unchecked") private void callCommand(final Wave wave) { // Use the Wave UID to guarantee that a new fresh command is built and used ! final Command command = wave.contains(JRebirthWaves.REUSE_COMMAND) && wave.get(JRebirthWaves.REUSE_COMMAND) ...
public class class_name { @SuppressWarnings("unchecked") private void callCommand(final Wave wave) { // Use the Wave UID to guarantee that a new fresh command is built and used ! final Command command = wave.contains(JRebirthWaves.REUSE_COMMAND) && wave.get(JRebirthWaves.REUSE_COMMAND) ...
public class class_name { private static Map<WriterKind, PrintWriter> initWriters(Context context) { PrintWriter out = context.get(outKey); PrintWriter err = context.get(errKey); if (out == null && err == null) { out = new PrintWriter(System.out, true); err = new PrintWr...
public class class_name { private static Map<WriterKind, PrintWriter> initWriters(Context context) { PrintWriter out = context.get(outKey); PrintWriter err = context.get(errKey); if (out == null && err == null) { out = new PrintWriter(System.out, true); // depends on control depende...
public class class_name { @SuppressWarnings("unchecked") @Override public E get() { if (getPreferences().contains(getKey())) { return (E) enumValues[getPreferences().getInt(getKey(), 0)]; } else { return getDefaultValue(); } } }
public class class_name { @SuppressWarnings("unchecked") @Override public E get() { if (getPreferences().contains(getKey())) { return (E) enumValues[getPreferences().getInt(getKey(), 0)]; // depends on control dependency: [if], data = [none] } else { return getDefaultValue(); // depends on contro...
public class class_name { public static CmsObject convertCmsObject(Object input) { CmsObject result; if (input instanceof CmsObject) { result = (CmsObject)input; } else if (input instanceof ServletRequest) { result = CmsFlexController.getCmsObject((ServletRequest)input)...
public class class_name { public static CmsObject convertCmsObject(Object input) { CmsObject result; if (input instanceof CmsObject) { result = (CmsObject)input; // depends on control dependency: [if], data = [none] } else if (input instanceof ServletRequest) { result =...
public class class_name { private static MessageDigest getMessageDigest(String algorithm) { try { return MessageDigest.getInstance(algorithm); } catch (NoSuchAlgorithmException e) { LOGGER.error(e.getMessage()); final String msg = String.format("Failed to obtain the ...
public class class_name { private static MessageDigest getMessageDigest(String algorithm) { try { return MessageDigest.getInstance(algorithm); // depends on control dependency: [try], data = [none] } catch (NoSuchAlgorithmException e) { LOGGER.error(e.getMessage()); ...
public class class_name { public static String getFirstComparableOrPrimitiveFromClass( Class<?> clz ) { List<Field> fields = Reflection.getAllFields( clz ); for ( Field field : fields ) { if ( ( field.getType().isPrimitive() || Typ.isComparable( field.getType() ) && !Mo...
public class class_name { public static String getFirstComparableOrPrimitiveFromClass( Class<?> clz ) { List<Field> fields = Reflection.getAllFields( clz ); for ( Field field : fields ) { if ( ( field.getType().isPrimitive() || Typ.isComparable( field.getType() ) && !Mo...
public class class_name { public static <T> T queryForObject(String sql, Class<T> clz, Object... args) { T result = null; List<T> list = queryForList(sql, clz, args); if (list.size() > 0) { result = list.get(0); } return result; } }
public class class_name { public static <T> T queryForObject(String sql, Class<T> clz, Object... args) { T result = null; List<T> list = queryForList(sql, clz, args); if (list.size() > 0) { result = list.get(0); // depends on control dependency: [if], data = [0)] } return result; } }
public class class_name { public void removeNodeMetaData(Object key) { if (key==null) throw new GroovyBugError("Tried to remove meta data with null key "+this+"."); if (metaDataMap == null) { return; } metaDataMap.remove(key); } }
public class class_name { public void removeNodeMetaData(Object key) { if (key==null) throw new GroovyBugError("Tried to remove meta data with null key "+this+"."); if (metaDataMap == null) { return; // depends on control dependency: [if], data = [none] } metaDataMap.remove(...
public class class_name { @Override public Map<String, String> getArgumentsAsMap() { Map<String, String> variables = new VariableFromCsvFileReader(getFileName()).getDataAsMap(getVariablePrefix(), getSeparator(), getSkipLines()); //store in System Properties also if (isStoreAsSystemProperty(...
public class class_name { @Override public Map<String, String> getArgumentsAsMap() { Map<String, String> variables = new VariableFromCsvFileReader(getFileName()).getDataAsMap(getVariablePrefix(), getSeparator(), getSkipLines()); //store in System Properties also if (isStoreAsSystemProperty(...
public class class_name { public static <KeyType> int requiredBufferCapacity( KeySerde<KeyType> keySerde, AggregatorFactory[] aggregatorFactories ) { int recordSize = keySerde.keySize(); for (AggregatorFactory aggregatorFactory : aggregatorFactories) { recordSize += aggregatorFactory.getM...
public class class_name { public static <KeyType> int requiredBufferCapacity( KeySerde<KeyType> keySerde, AggregatorFactory[] aggregatorFactories ) { int recordSize = keySerde.keySize(); for (AggregatorFactory aggregatorFactory : aggregatorFactories) { recordSize += aggregatorFactory.getM...
public class class_name { public void load(String soundFile) { if (mSoundFile != null) { unload(); } mSoundFile = soundFile; if (mAudioListener != null) { mAudioListener.getAudioEngine().preloadSoundFile(soundFile); Log.d("SOUND", ...
public class class_name { public void load(String soundFile) { if (mSoundFile != null) { unload(); // depends on control dependency: [if], data = [none] } mSoundFile = soundFile; if (mAudioListener != null) { mAudioListener.getAudioEngine().pr...
public class class_name { public Element collectionToElement() { final Collection collection = this; final Element element = new Element("collection", AtomService.ATOM_PROTOCOL); element.setAttribute("href", collection.getHref()); final Element titleElem = new Element("title", AtomServ...
public class class_name { public Element collectionToElement() { final Collection collection = this; final Element element = new Element("collection", AtomService.ATOM_PROTOCOL); element.setAttribute("href", collection.getHref()); final Element titleElem = new Element("title", AtomServ...
public class class_name { public void forEachIndexed(int from, int step, @NotNull IndexedIntConsumer action) { int index = from; while (iterator.hasNext()) { action.accept(index, iterator.nextInt()); index += step; } } }
public class class_name { public void forEachIndexed(int from, int step, @NotNull IndexedIntConsumer action) { int index = from; while (iterator.hasNext()) { action.accept(index, iterator.nextInt()); // depends on control dependency: [while], data = [none] ...
public class class_name { protected void setupMavenPaths() { if (getAddCompileSourceRoot()) { getProject().addCompileSourceRoot(getGenerateDirectory().getPath()); } if (getAddTestCompileSourceRoot()) { getProject().addTestCompileSourceRoot(getGenerateDirectory().getPath()); } if (getEpisode() ...
public class class_name { protected void setupMavenPaths() { if (getAddCompileSourceRoot()) { getProject().addCompileSourceRoot(getGenerateDirectory().getPath()); // depends on control dependency: [if], data = [none] } if (getAddTestCompileSourceRoot()) { getProject().addTestCompileSourceRoot(getGen...
public class class_name { public java.util.List<String> getIamRoles() { if (iamRoles == null) { iamRoles = new com.amazonaws.internal.SdkInternalList<String>(); } return iamRoles; } }
public class class_name { public java.util.List<String> getIamRoles() { if (iamRoles == null) { iamRoles = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return iamRoles; } }
public class class_name { public AwsSecurityFindingFilters withMalwareState(StringFilter... malwareState) { if (this.malwareState == null) { setMalwareState(new java.util.ArrayList<StringFilter>(malwareState.length)); } for (StringFilter ele : malwareState) { this.malwar...
public class class_name { public AwsSecurityFindingFilters withMalwareState(StringFilter... malwareState) { if (this.malwareState == null) { setMalwareState(new java.util.ArrayList<StringFilter>(malwareState.length)); // depends on control dependency: [if], data = [none] } for (Stri...
public class class_name { private <X> void populateRelationMetaData(EntityType entityType, Class<X> clazz, EntityMetadata metadata) { Set<Attribute> attributes = entityType.getAttributes(); for (Attribute attribute : attributes) { if (attribute.isAssociation()) { ...
public class class_name { private <X> void populateRelationMetaData(EntityType entityType, Class<X> clazz, EntityMetadata metadata) { Set<Attribute> attributes = entityType.getAttributes(); for (Attribute attribute : attributes) { if (attribute.isAssociation()) { ...
public class class_name { public static Map<String, I_CmsFormField> createFields(Collection<CmsXmlContentProperty> propertyConfigurations) { // using LinkedHashMap to preserve the order Map<String, I_CmsFormField> result = new LinkedHashMap<String, I_CmsFormField>(); for (CmsXmlContentProperty...
public class class_name { public static Map<String, I_CmsFormField> createFields(Collection<CmsXmlContentProperty> propertyConfigurations) { // using LinkedHashMap to preserve the order Map<String, I_CmsFormField> result = new LinkedHashMap<String, I_CmsFormField>(); for (CmsXmlContentProperty...
public class class_name { @SuppressWarnings({ "PMD.CyclomaticComplexity", "PMD.NPathComplexity", "PMD.CollapsibleIfStatements", "PMD.DataflowAnomalyAnalysis" }) public int matches(URI resource) { if (protocol != null && !protocol.equals("*")) { if (resource.getScheme() == null) { ...
public class class_name { @SuppressWarnings({ "PMD.CyclomaticComplexity", "PMD.NPathComplexity", "PMD.CollapsibleIfStatements", "PMD.DataflowAnomalyAnalysis" }) public int matches(URI resource) { if (protocol != null && !protocol.equals("*")) { if (resource.getScheme() == null) { ...
public class class_name { public void marshall(DisableKeyRequest disableKeyRequest, ProtocolMarshaller protocolMarshaller) { if (disableKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { public void marshall(DisableKeyRequest disableKeyRequest, ProtocolMarshaller protocolMarshaller) { if (disableKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { @Override public EClass getIfcStructuralAction() { if (ifcStructuralActionEClass == null) { ifcStructuralActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(628); } return ifcStructuralActionEClass; } }
public class class_name { @Override public EClass getIfcStructuralAction() { if (ifcStructuralActionEClass == null) { ifcStructuralActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(628); // depends on control dependency: [if], data = [none] } ...
public class class_name { @SuppressWarnings("unchecked") private int unsafeCompare(Object k1, Object k2) { Comparator<? super K> comparator = comparator(); if (comparator == null) { return ((Comparable<Object>) k1).compareTo(k2); } else { return ((Comparator<Object>) comparator).compare(k1, k...
public class class_name { @SuppressWarnings("unchecked") private int unsafeCompare(Object k1, Object k2) { Comparator<? super K> comparator = comparator(); if (comparator == null) { return ((Comparable<Object>) k1).compareTo(k2); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { @Override public UserGroupCallbackModel getUserGroupCallback() { if (_userGroupCallback == null) { _userGroupCallback = (UserGroupCallbackModel)getFirstChildModel(USER_GROUP_CALLBACK); } return _userGroupCallback; } }
public class class_name { @Override public UserGroupCallbackModel getUserGroupCallback() { if (_userGroupCallback == null) { _userGroupCallback = (UserGroupCallbackModel)getFirstChildModel(USER_GROUP_CALLBACK); // depends on control dependency: [if], data = [none] } return _user...
public class class_name { protected void merge(int size, MatrixParadigm mat, double[] bestd, int[] besti, PointerHierarchyRepresentationBuilder builder, double mindist, int x, int y) { // Avoid allocating memory, by reusing existing iterators: final DBIDArrayIter ix = mat.ix.seek(x), iy = mat.iy.seek(y); i...
public class class_name { protected void merge(int size, MatrixParadigm mat, double[] bestd, int[] besti, PointerHierarchyRepresentationBuilder builder, double mindist, int x, int y) { // Avoid allocating memory, by reusing existing iterators: final DBIDArrayIter ix = mat.ix.seek(x), iy = mat.iy.seek(y); i...
public class class_name { public static void collectFrom(List<Selector> selectors, Collection<?> results) { if (results.size() == 0) { return; } Map<String, FieldAccess> fields = BeanUtils.getFieldsFromObject(results.iterator().next()); collectFrom(selectors, results, fie...
public class class_name { public static void collectFrom(List<Selector> selectors, Collection<?> results) { if (results.size() == 0) { return; // depends on control dependency: [if], data = [none] } Map<String, FieldAccess> fields = BeanUtils.getFieldsFromObject(results.iterator()...
public class class_name { @Override protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException { if (engine.getMode() != Mode.EVIDENCE_COLLECTION) { try { final Settings settings = engine.getSettings(); final String[] tmp = settings.getA...
public class class_name { @Override protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException { if (engine.getMode() != Mode.EVIDENCE_COLLECTION) { try { final Settings settings = engine.getSettings(); final String[] tmp = settings.getA...
public class class_name { private ExecutorConfig getOrFindExecutorConfig(String name) { ExecutorConfig cfg = executorConfigCache.get(name); if (cfg != null) { return cfg; } else { cfg = nodeEngine.getConfig().findExecutorConfig(name); ExecutorConfig executorC...
public class class_name { private ExecutorConfig getOrFindExecutorConfig(String name) { ExecutorConfig cfg = executorConfigCache.get(name); if (cfg != null) { return cfg; // depends on control dependency: [if], data = [none] } else { cfg = nodeEngine.getConfig().findExec...
public class class_name { protected List<EquPart> negatize(final List<EquPart> equParts) { int left = 0; for (int right = 1; right < equParts.size(); right++) { left = right - 1; if (equParts.get(left) instanceof OpSubtract) if (left == 0) ...
public class class_name { protected List<EquPart> negatize(final List<EquPart> equParts) { int left = 0; for (int right = 1; right < equParts.size(); right++) { left = right - 1; // depends on control dependency: [for], data = [right] if (equParts.get(left) instance...
public class class_name { private Subre parsebranch(int stopper, int type, State left, State right, boolean partial) throws RegexException { State lp; /* left end of current construct */ boolean seencontent = false; /* is there anything in this branch yet? */ Subre t; lp = left; ...
public class class_name { private Subre parsebranch(int stopper, int type, State left, State right, boolean partial) throws RegexException { State lp; /* left end of current construct */ boolean seencontent = false; /* is there anything in this branch yet? */ Subre t; lp = left; ...
public class class_name { public EEnum getExtendedResourceLocalIdentifierResType() { if (extendedResourceLocalIdentifierResTypeEEnum == null) { extendedResourceLocalIdentifierResTypeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(178); } return extendedResour...
public class class_name { public EEnum getExtendedResourceLocalIdentifierResType() { if (extendedResourceLocalIdentifierResTypeEEnum == null) { extendedResourceLocalIdentifierResTypeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(178); // depends on control depen...
public class class_name { public String fileToString(File f) throws MelcoePDPException { ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] bytes = new byte[1024]; try { FileInputStream fis = new FileInputStream(f); int count = fis.read(bytes); ...
public class class_name { public String fileToString(File f) throws MelcoePDPException { ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] bytes = new byte[1024]; try { FileInputStream fis = new FileInputStream(f); int count = fis.read(bytes); ...
public class class_name { synchronized public boolean load() { if (null == this.settingLoader) { settingLoader = new SettingLoader(this.groupedMap, this.charset, this.isUseVariable); } return settingLoader.load(new UrlResource(this.settingUrl)); } }
public class class_name { synchronized public boolean load() { if (null == this.settingLoader) { settingLoader = new SettingLoader(this.groupedMap, this.charset, this.isUseVariable); // depends on control dependency: [if], data = [none] } return settingLoader.load(new UrlResource(this.settingUrl)); } }
public class class_name { public static String printThrowable(Throwable t) { if (t == null) { return "No Exception details"; } StringBuilder s = new StringBuilder(); doPrintStackTrace(s, t, null, "", new HashSet<Throwable>()); return s.toString(); } }
public class class_name { public static String printThrowable(Throwable t) { if (t == null) { return "No Exception details"; // depends on control dependency: [if], data = [none] } StringBuilder s = new StringBuilder(); doPrintStackTrace(s, t, null, "", new HashSet<Throwable...
public class class_name { protected StringDistance[] getInnerDistances() { StringDistance[] innerDistances = new StringDistance[ innerLearners.length ]; for (int j=0; j<innerLearners.length; j++) { innerDistances[j] = innerLearners[j].getDistance(); } return innerDistances; } }
public class class_name { protected StringDistance[] getInnerDistances() { StringDistance[] innerDistances = new StringDistance[ innerLearners.length ]; for (int j=0; j<innerLearners.length; j++) { innerDistances[j] = innerLearners[j].getDistance(); // depends on control dependency: [for], data = [j] } re...
public class class_name { public List<String> getGVParameterNames(Document document, String gvname, String version) { ArrayList<String> ret = new ArrayList<>(); Element gvdef = document.getElementById(gvname + version); NodeList gvcontent = gvdef.getChildNodes(); int len = gvcontent.get...
public class class_name { public List<String> getGVParameterNames(Document document, String gvname, String version) { ArrayList<String> ret = new ArrayList<>(); Element gvdef = document.getElementById(gvname + version); NodeList gvcontent = gvdef.getChildNodes(); int len = gvcontent.get...
public class class_name { private void advanceAllocatingFrom(CommitLogSegment old) { while (true) { CommitLogSegment next; synchronized (this) { // do this in a critical section so we can atomically remove from availableSegments and add to allocat...
public class class_name { private void advanceAllocatingFrom(CommitLogSegment old) { while (true) { CommitLogSegment next; synchronized (this) // depends on control dependency: [while], data = [none] { // do this in a critical section so we can at...
public class class_name { @Override public final boolean containsValue(Object value) { int mc = this.modCount; @SuppressWarnings("unchecked") V v = (V) value; boolean found = false; Segment<K, V> segment; for (long segmentIndex = 0; segmentIndex >= 0; se...
public class class_name { @Override public final boolean containsValue(Object value) { int mc = this.modCount; @SuppressWarnings("unchecked") V v = (V) value; boolean found = false; Segment<K, V> segment; for (long segmentIndex = 0; segmentIndex >= 0; se...
public class class_name { static long getGenerationStampFromSeperateChecksumFile(String[] listdir, String blockName) { for (int j = 0; j < listdir.length; j++) { String path = listdir[j]; if (!path.startsWith(blockName)) { continue; } String[] vals = StringUtils.split(path, '_'); ...
public class class_name { static long getGenerationStampFromSeperateChecksumFile(String[] listdir, String blockName) { for (int j = 0; j < listdir.length; j++) { String path = listdir[j]; if (!path.startsWith(blockName)) { continue; } String[] vals = StringUtils.split(path, '_'); ...
public class class_name { public static int search(byte[] byteArray, byte value) { int start = 0; int end = byteArray.length - 1; int middle = 0; while(start <= end) { middle = (start + end) >> 1; if(value == byteArray[middle]) { ...
public class class_name { public static int search(byte[] byteArray, byte value) { int start = 0; int end = byteArray.length - 1; int middle = 0; while(start <= end) { middle = (start + end) >> 1; // depends on control dependency: [while], data = [(start] ...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfOuterFloorSurface() { if (_GenericApplicationPropertyOfOuterFloorSurface == null) { _GenericApplicationPropertyOfOuterFloorSurface = new ArrayList<JAXBElement<Object>>(); } return this._Generi...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfOuterFloorSurface() { if (_GenericApplicationPropertyOfOuterFloorSurface == null) { _GenericApplicationPropertyOfOuterFloorSurface = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if...
public class class_name { private void startOpenSessionRequest(final Activity activity, final Fragment fragment) { // State transition. mLinkRequestState = STATE_OPEN_SESSION_REQUEST; // Construct status callback. Session.StatusCallback statusCallback = new Session.StatusCallback() { ...
public class class_name { private void startOpenSessionRequest(final Activity activity, final Fragment fragment) { // State transition. mLinkRequestState = STATE_OPEN_SESSION_REQUEST; // Construct status callback. Session.StatusCallback statusCallback = new Session.StatusCallback() { ...
public class class_name { private static boolean generateAsResource(MetaDataObject metaDataObject) { if (metaDataObject instanceof MetaResource) { return true; } List<MetaDataObject> subTypes = metaDataObject.getSubTypes(true, false); if (!subTypes.isEmpty()) { for (MetaDataObject subType : subTypes) { ...
public class class_name { private static boolean generateAsResource(MetaDataObject metaDataObject) { if (metaDataObject instanceof MetaResource) { return true; // depends on control dependency: [if], data = [none] } List<MetaDataObject> subTypes = metaDataObject.getSubTypes(true, false); if (!subTypes.isEmp...
public class class_name { @Override public RemoteEvent<T> decode(final byte[] data) { final WakeMessagePBuf pbuf; try { pbuf = WakeMessagePBuf.parseFrom(data); return new RemoteEvent<T>(null, null, pbuf.getSeq(), decoder.decode(pbuf.getData().toByteArray())); } catch (final InvalidProtocolBuf...
public class class_name { @Override public RemoteEvent<T> decode(final byte[] data) { final WakeMessagePBuf pbuf; try { pbuf = WakeMessagePBuf.parseFrom(data); // depends on control dependency: [try], data = [none] return new RemoteEvent<T>(null, null, pbuf.getSeq(), decoder.decode(pbuf.getData()...
public class class_name { public static final String getStringAttribute(Path path, String attribute, LinkOption... options) throws IOException { attribute = attribute.startsWith("user:") ? attribute : "user:"+attribute; byte[] attr = (byte[]) Files.getAttribute(path, attribute, options); ...
public class class_name { public static final String getStringAttribute(Path path, String attribute, LinkOption... options) throws IOException { attribute = attribute.startsWith("user:") ? attribute : "user:"+attribute; byte[] attr = (byte[]) Files.getAttribute(path, attribute, options); ...
public class class_name { private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { s.defaultReadObject(); // Read in elements until trailing null sentinel found Node<E> h = null, t = null; for (Object item; (item = s.readObject()...
public class class_name { private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { s.defaultReadObject(); // Read in elements until trailing null sentinel found Node<E> h = null, t = null; for (Object item; (item = s.readObject()...
public class class_name { public Map<KamEdge, List<Statement>> evidence(Collection<KamEdge> edges) throws SQLException { if (edges == null) throw new IllegalArgumentException("edges is null"); PreparedStatement ps; ResultSet rs = null; Map<KamEdge, List<Statement>> results ...
public class class_name { public Map<KamEdge, List<Statement>> evidence(Collection<KamEdge> edges) throws SQLException { if (edges == null) throw new IllegalArgumentException("edges is null"); PreparedStatement ps; ResultSet rs = null; Map<KamEdge, List<Statement>> results ...
public class class_name { private void handleSerialFactory() { String serialProvider = _externalContext.getInitParameter(StateUtils.SERIAL_FACTORY); SerialFactory serialFactory = null; if (serialProvider == null) { serialFactory = new DefaultSerialFactory(); } ...
public class class_name { private void handleSerialFactory() { String serialProvider = _externalContext.getInitParameter(StateUtils.SERIAL_FACTORY); SerialFactory serialFactory = null; if (serialProvider == null) { serialFactory = new DefaultSerialFactory(); // depends...
public class class_name { @Override protected void initParser() throws MtasConfigException { super.initParser(); if (config != null) { // find namespaceURI for (int i = 0; i < config.children.size(); i++) { MtasConfiguration current = config.children.get(i); if (current.name.equal...
public class class_name { @Override protected void initParser() throws MtasConfigException { super.initParser(); if (config != null) { // find namespaceURI for (int i = 0; i < config.children.size(); i++) { MtasConfiguration current = config.children.get(i); if (current.name.equal...
public class class_name { public void setLayer(VectorLayer layer) { this.layer = layer; Object value = layerSelect.getValue(); if (value == null || !value.equals(layer.getLabel())) { layerSelect.setValue(layer.getLabel()); } empty(); } }
public class class_name { public void setLayer(VectorLayer layer) { this.layer = layer; Object value = layerSelect.getValue(); if (value == null || !value.equals(layer.getLabel())) { layerSelect.setValue(layer.getLabel()); // depends on control dependency: [if], data = [none] } empty(); } }
public class class_name { private String getBestPattern(String skeleton, DateTimeMatcher skipMatcher, int options) { EnumSet<DTPGflags> flags = EnumSet.noneOf(DTPGflags.class); // Replace hour metacharacters 'j', 'C', and 'J', set flags as necessary StringBuilder skeletonCopy = new StringBuilde...
public class class_name { private String getBestPattern(String skeleton, DateTimeMatcher skipMatcher, int options) { EnumSet<DTPGflags> flags = EnumSet.noneOf(DTPGflags.class); // Replace hour metacharacters 'j', 'C', and 'J', set flags as necessary StringBuilder skeletonCopy = new StringBuilde...
public class class_name { @Override public List<PathMapping> getPathMappings(JoinableResourceBundle bundle, String resourcePath, ResourceReaderHandler rsReader) { List<PathMapping> pathMappings = new ArrayList<>(); PathMapping pathMapping = null; GeneratorMappingHelper helper = new GeneratorMappingHelper(re...
public class class_name { @Override public List<PathMapping> getPathMappings(JoinableResourceBundle bundle, String resourcePath, ResourceReaderHandler rsReader) { List<PathMapping> pathMappings = new ArrayList<>(); PathMapping pathMapping = null; GeneratorMappingHelper helper = new GeneratorMappingHelper(re...
public class class_name { static boolean registerMBean(Object mbean, String name) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); synchronized (mbs) { ObjectName objName = new ObjectName(name); if (mbs.isRegistered(objName)) { ...
public class class_name { static boolean registerMBean(Object mbean, String name) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); synchronized (mbs) { // depends on control dependency: [try], data = [none] ObjectName objName = new ObjectName(name); ...
public class class_name { private static TermvectorNumberBasic computeTermvectorNumberBasic( List<Integer> docSet, int termDocId, TermsEnum termsEnum, LeafReader r, LeafReaderContext lrc, PostingsEnum postingsEnum) throws IOException { TermvectorNumberBasic result = new TermvectorNumberBasic(); boo...
public class class_name { private static TermvectorNumberBasic computeTermvectorNumberBasic( List<Integer> docSet, int termDocId, TermsEnum termsEnum, LeafReader r, LeafReaderContext lrc, PostingsEnum postingsEnum) throws IOException { TermvectorNumberBasic result = new TermvectorNumberBasic(); boo...
public class class_name { public Observable<ServiceResponse<MatchResponse>> matchFileInputWithServiceResponseAsync(byte[] imageStream, String listId, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot...
public class class_name { public Observable<ServiceResponse<MatchResponse>> matchFileInputWithServiceResponseAsync(byte[] imageStream, String listId, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot...
public class class_name { public static Map<IssueCategoryModel, List<ProblemSummary>> getProblemSummaries(GraphContext graphContext, Set<ProjectModel> projectModels, Set<String> includeTags, Set<String> excludeTags, ...
public class class_name { public static Map<IssueCategoryModel, List<ProblemSummary>> getProblemSummaries(GraphContext graphContext, Set<ProjectModel> projectModels, Set<String> includeTags, Set<String> excludeTags, ...
public class class_name { boolean isUsingSecurityDefaults() { Jenkins j = Jenkins.get(); if (j.getSecurityRealm() instanceof HudsonPrivateSecurityRealm) { HudsonPrivateSecurityRealm securityRealm = (HudsonPrivateSecurityRealm)j.getSecurityRealm(); try { if(securi...
public class class_name { boolean isUsingSecurityDefaults() { Jenkins j = Jenkins.get(); if (j.getSecurityRealm() instanceof HudsonPrivateSecurityRealm) { HudsonPrivateSecurityRealm securityRealm = (HudsonPrivateSecurityRealm)j.getSecurityRealm(); try { if(securi...
public class class_name { private void writeExternalEntry0(ReplicableEntry entry, Bytes destination) { destination.writeByte(ENTRY_HUNK); destination.writeStopBit(entry.originTimestamp()); if (entry.originIdentifier() == 0) throw new IllegalStateException("Identifier can't be 0"); ...
public class class_name { private void writeExternalEntry0(ReplicableEntry entry, Bytes destination) { destination.writeByte(ENTRY_HUNK); destination.writeStopBit(entry.originTimestamp()); if (entry.originIdentifier() == 0) throw new IllegalStateException("Identifier can't be 0"); ...
public class class_name { @Override protected void deregister(ServiceInstance instance) { if (instance.getInstanceId().isPresent()) { DeregisterInstanceRequest deregisterInstanceRequest = new DeregisterInstanceRequest().withServiceId(route53AutoRegistrationConfiguration.getAwsServiceId()) ...
public class class_name { @Override protected void deregister(ServiceInstance instance) { if (instance.getInstanceId().isPresent()) { DeregisterInstanceRequest deregisterInstanceRequest = new DeregisterInstanceRequest().withServiceId(route53AutoRegistrationConfiguration.getAwsServiceId()) ...
public class class_name { public int getHeight() { if (getAttributes().isDefined(Attribute.HEIGHT)) { final int high = (int) (getAttributes().getHeight() + 0.5); if (high > 0) { return high; } } if (null != m_video) ...
public class class_name { public int getHeight() { if (getAttributes().isDefined(Attribute.HEIGHT)) { final int high = (int) (getAttributes().getHeight() + 0.5); if (high > 0) { return high; // depends on control dependency: [if], data = [none] ...
public class class_name { public void sendASCII(ReqState rs, String dataSet) throws DAP2Exception, ParseException { if (Debug.isSet("showResponse")) System.out.println("Sending OPeNDAP ASCII Data For: " + dataSet + " CE: '" + rs.getC...
public class class_name { public void sendASCII(ReqState rs, String dataSet) throws DAP2Exception, ParseException { if (Debug.isSet("showResponse")) System.out.println("Sending OPeNDAP ASCII Data For: " + dataSet + " CE: '" + rs.getC...
public class class_name { public static float max(final float a, final float b) { if (Float.isNaN(a)) { return b; } else if (Float.isNaN(b)) { return a; } else { return Math.max(a, b); } } }
public class class_name { public static float max(final float a, final float b) { if (Float.isNaN(a)) { return b; // depends on control dependency: [if], data = [none] } else if (Float.isNaN(b)) { return a; // depends on control dependency: [if], data = [none] } els...
public class class_name { protected void calculateBarPositions(int _DataSize) { int dataSize = mScrollEnabled ? mVisibleBars : _DataSize; float barWidth = mBarWidth; float margin = mBarMargin; if (!mFixedBarWidth) { // calculate the bar width if the bars should be dyna...
public class class_name { protected void calculateBarPositions(int _DataSize) { int dataSize = mScrollEnabled ? mVisibleBars : _DataSize; float barWidth = mBarWidth; float margin = mBarMargin; if (!mFixedBarWidth) { // calculate the bar width if the bars should be dyna...
public class class_name { protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs) { int s = getImportCount(); for (int j = 0; j < s; j++) { getImport(j).callVisitors(visitor); } s = getIncludeCount(); for (int j = 0; j < s; j++) { getIncl...
public class class_name { protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs) { int s = getImportCount(); for (int j = 0; j < s; j++) { getImport(j).callVisitors(visitor); // depends on control dependency: [for], data = [j] } s = getIncludeCount(); ...
public class class_name { public static <T, X, E extends Throwable> List<X> collect (List<T> coll, APartialFunction<? super T, ? extends X, E> pf) throws E { final List<X> result = createEmptyListOfType (coll, true); for (T o: coll) { if (pf.isDefinedAt (o)) { result.add (p...
public class class_name { public static <T, X, E extends Throwable> List<X> collect (List<T> coll, APartialFunction<? super T, ? extends X, E> pf) throws E { final List<X> result = createEmptyListOfType (coll, true); for (T o: coll) { if (pf.isDefinedAt (o)) { result.add (p...
public class class_name { private static void setIncomeBudgetPeriods(PHS398CoverPageSupplement20 coverPageSupplement, List<? extends BudgetProjectIncomeContract> projectIncomes) { if (projectIncomes.isEmpty()) { coverPageSupplement.setProgramIncome(YesNoDataType.N_NO); } else { ...
public class class_name { private static void setIncomeBudgetPeriods(PHS398CoverPageSupplement20 coverPageSupplement, List<? extends BudgetProjectIncomeContract> projectIncomes) { if (projectIncomes.isEmpty()) { coverPageSupplement.setProgramIncome(YesNoDataType.N_NO); // depends on con...
public class class_name { protected Map jsonMap() { checkJsonContentType(); try { return JsonHelper.toMap(getRequestString()); } catch (IOException e) { throw new WebException(e); } } }
public class class_name { protected Map jsonMap() { checkJsonContentType(); try { return JsonHelper.toMap(getRequestString()); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new WebException(e); } // depends on control depe...
public class class_name { public String getHtml() { LagartoDomBuilderConfig lagartoDomBuilderConfig; if (ownerDocument == null) { lagartoDomBuilderConfig = ((Document) this).getConfig(); } else { lagartoDomBuilderConfig = ownerDocument.getConfig(); } LagartoHtmlRenderer lagartoHtmlRenderer = lagar...
public class class_name { public String getHtml() { LagartoDomBuilderConfig lagartoDomBuilderConfig; if (ownerDocument == null) { lagartoDomBuilderConfig = ((Document) this).getConfig(); // depends on control dependency: [if], data = [none] } else { lagartoDomBuilderConfig = ownerDocument.getConfig(); // d...
public class class_name { protected void beginReplicating() { Log.v(TAG, "submit startReplicating()"); executor.submit(new Runnable() { @Override public void run() { if (isRunning()) { Log.v(TAG, "start startReplicating()"); ...
public class class_name { protected void beginReplicating() { Log.v(TAG, "submit startReplicating()"); executor.submit(new Runnable() { @Override public void run() { if (isRunning()) { Log.v(TAG, "start startReplicating()"); // depends on cont...
public class class_name { @Deprecated public static int resetBitmapRangeAndCardinalityChange(LongBuffer bitmap, int start, int end) { if (BufferUtil.isBackedBySimpleArray(bitmap)) { return Util.resetBitmapRangeAndCardinalityChange(bitmap.array(), start, end); } int cardbefore = cardinalityInBitmapW...
public class class_name { @Deprecated public static int resetBitmapRangeAndCardinalityChange(LongBuffer bitmap, int start, int end) { if (BufferUtil.isBackedBySimpleArray(bitmap)) { return Util.resetBitmapRangeAndCardinalityChange(bitmap.array(), start, end); // depends on control dependency: [if], data = ...
public class class_name { public void afterCompleted(Event event) { ChaincodeMessage message = messageHelper(event); logger.debug(String.format("[%s]sending COMPLETED to validator for tid", shortID(message))); try { serialSend(message); } catch (Exception e) { event.cancel(new Exception("send COMPLETED f...
public class class_name { public void afterCompleted(Event event) { ChaincodeMessage message = messageHelper(event); logger.debug(String.format("[%s]sending COMPLETED to validator for tid", shortID(message))); try { serialSend(message); // depends on control dependency: [try], data = [none] } catch (Excepti...
public class class_name { public void setName(String name) { if (isJB()) { this.name = name; } else { ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), di -> di.name = name); } } }
public class class_name { public void setName(String name) { if (isJB()) { this.name = name; // depends on control dependency: [if], data = [none] } else { ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), di -> di.name = name); // depends on control dependency: [if], data = [...
public class class_name { protected <T> T childActorFor(final Class<T> protocol, final Definition definition) { if (definition.supervisor() != null) { return lifeCycle.environment.stage.actorFor(protocol, definition, this, definition.supervisor(), logger()); } else { if (this instanceof Supervisor)...
public class class_name { protected <T> T childActorFor(final Class<T> protocol, final Definition definition) { if (definition.supervisor() != null) { return lifeCycle.environment.stage.actorFor(protocol, definition, this, definition.supervisor(), logger()); // depends on control dependency: [if], data = [no...
public class class_name { @Override public boolean containsKey(T key) { try { if (emulateIsAbsent) lock.readLock().lock(); return compressedEntries.containsKey(key); } finally { if (emulateIsAbsent) lock.readLock().unlock(); ...
public class class_name { @Override public boolean containsKey(T key) { try { if (emulateIsAbsent) lock.readLock().lock(); return compressedEntries.containsKey(key); // depends on control dependency: [try], data = [none] } finally { if (emulateIs...
public class class_name { public ExecutorConfig findExecutorConfig(String name) { name = getBaseName(name); ExecutorConfig config = lookupByPattern(configPatternMatcher, executorConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getExecutor...
public class class_name { public ExecutorConfig findExecutorConfig(String name) { name = getBaseName(name); ExecutorConfig config = lookupByPattern(configPatternMatcher, executorConfigs, name); if (config != null) { return config.getAsReadOnly(); // depends on control dependency: [i...
public class class_name { private static byte[] base64Decode(String value) { if (value == null) { return null; } try { return Base64.decodeBase64(value.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } }
public class class_name { private static byte[] base64Decode(String value) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } try { return Base64.decodeBase64(value.getBytes("UTF-8")); // depends on control dependency: [try], data = [none] } ...
public class class_name { static private SnowflakeDateTimeFormat specializedFormatter( Map<String, Object> parameters, String id, String param, String defaultFormat) { String sqlFormat = SnowflakeDateTimeFormat.effectiveSpecializedTimestampFormat( (String) effectivePar...
public class class_name { static private SnowflakeDateTimeFormat specializedFormatter( Map<String, Object> parameters, String id, String param, String defaultFormat) { String sqlFormat = SnowflakeDateTimeFormat.effectiveSpecializedTimestampFormat( (String) effectivePar...
public class class_name { public static Version of(String version) { String[] tokens = StringUtil.tokenizeVersionString(version); if (tokens != null && tokens.length >= 2) { return Version.of(Byte.valueOf(tokens[0]), Byte.valueOf(tokens[1])); } else { throw new IllegalAr...
public class class_name { public static Version of(String version) { String[] tokens = StringUtil.tokenizeVersionString(version); if (tokens != null && tokens.length >= 2) { return Version.of(Byte.valueOf(tokens[0]), Byte.valueOf(tokens[1])); // depends on control dependency: [if], data = [...
public class class_name { public void fireChangeEvent() { String result = ""; // check if there is a radio button selected. if (m_group.getSelectedButton() != null) { // set the name of the selected radio button. result = m_group.getSelectedButton().getName(); ...
public class class_name { public void fireChangeEvent() { String result = ""; // check if there is a radio button selected. if (m_group.getSelectedButton() != null) { // set the name of the selected radio button. result = m_group.getSelectedButton().getName(); //...
public class class_name { public Observable<ServiceResponse<Page<ApplicationStackInner>>> getAvailableStacksWithServiceResponseAsync() { return getAvailableStacksSinglePageAsync() .concatMap(new Func1<ServiceResponse<Page<ApplicationStackInner>>, Observable<ServiceResponse<Page<ApplicationStackInne...
public class class_name { public Observable<ServiceResponse<Page<ApplicationStackInner>>> getAvailableStacksWithServiceResponseAsync() { return getAvailableStacksSinglePageAsync() .concatMap(new Func1<ServiceResponse<Page<ApplicationStackInner>>, Observable<ServiceResponse<Page<ApplicationStackInne...
public class class_name { private static int findIndex(String[] array, String target){ for (int i = 0; i < array.length; i++) { if (target.equals(array[i])) { return i; } } return -1; } }
public class class_name { private static int findIndex(String[] array, String target){ for (int i = 0; i < array.length; i++) { if (target.equals(array[i])) { return i; // depends on control dependency: [if], data = [none] } } return -1; } }
public class class_name { public List<LineString> lineStrings() { List<List<Point>> coordinates = coordinates(); List<LineString> lineStrings = new ArrayList<>(coordinates.size()); for (List<Point> points : coordinates) { lineStrings.add(LineString.fromLngLats(points)); } return lineStrings; ...
public class class_name { public List<LineString> lineStrings() { List<List<Point>> coordinates = coordinates(); List<LineString> lineStrings = new ArrayList<>(coordinates.size()); for (List<Point> points : coordinates) { lineStrings.add(LineString.fromLngLats(points)); // depends on control dependen...
public class class_name { private CollectTweaksResult collectTweaks(Node root) { CollectTweaks pass = new CollectTweaks(); NodeTraversal.traverse(compiler, root, pass); Map<String, TweakInfo> tweakInfos = pass.allTweaks; for (TweakInfo tweakInfo : tweakInfos.values()) { tweakInfo.emitAllWarnings...
public class class_name { private CollectTweaksResult collectTweaks(Node root) { CollectTweaks pass = new CollectTweaks(); NodeTraversal.traverse(compiler, root, pass); Map<String, TweakInfo> tweakInfos = pass.allTweaks; for (TweakInfo tweakInfo : tweakInfos.values()) { tweakInfo.emitAllWarnings...
public class class_name { public void setFontAssetDelegate( @SuppressWarnings("NullableProblems") FontAssetDelegate assetDelegate) { this.fontAssetDelegate = assetDelegate; if (fontAssetManager != null) { fontAssetManager.setDelegate(assetDelegate); } } }
public class class_name { public void setFontAssetDelegate( @SuppressWarnings("NullableProblems") FontAssetDelegate assetDelegate) { this.fontAssetDelegate = assetDelegate; if (fontAssetManager != null) { fontAssetManager.setDelegate(assetDelegate); // depends on control dependency: [if], data = [n...
public class class_name { static void copyState(Object object, Object context, FieldMatchingStrategy strategy) { if (object == null) { throw new IllegalArgumentException("object to set state cannot be null"); } else if (context == null) { throw new IllegalArgumentException("cont...
public class class_name { static void copyState(Object object, Object context, FieldMatchingStrategy strategy) { if (object == null) { throw new IllegalArgumentException("object to set state cannot be null"); } else if (context == null) { throw new IllegalArgumentException("cont...
public class class_name { public void setFilters(String value) { m_filters = new ArrayList<String>(); List<String> filters = CmsStringUtil.splitAsList(value, ':'); Iterator<String> i = filters.iterator(); while (i.hasNext()) { String filter = i.next(); filter = ...
public class class_name { public void setFilters(String value) { m_filters = new ArrayList<String>(); List<String> filters = CmsStringUtil.splitAsList(value, ':'); Iterator<String> i = filters.iterator(); while (i.hasNext()) { String filter = i.next(); filter = ...
public class class_name { public DescribeInstanceAssociationsStatusResult withInstanceAssociationStatusInfos(InstanceAssociationStatusInfo... instanceAssociationStatusInfos) { if (this.instanceAssociationStatusInfos == null) { setInstanceAssociationStatusInfos(new com.amazonaws.internal.SdkInternal...
public class class_name { public DescribeInstanceAssociationsStatusResult withInstanceAssociationStatusInfos(InstanceAssociationStatusInfo... instanceAssociationStatusInfos) { if (this.instanceAssociationStatusInfos == null) { setInstanceAssociationStatusInfos(new com.amazonaws.internal.SdkInternal...
public class class_name { public void addElement(Element element) { if (element == null) return; if (element instanceof Image) { Image img = (Image)element; PdfPTable t = new PdfPTable(1); float w = img.getWidthPercentage(); if (w == 0) { ...
public class class_name { public void addElement(Element element) { if (element == null) return; if (element instanceof Image) { Image img = (Image)element; PdfPTable t = new PdfPTable(1); float w = img.getWidthPercentage(); if (w == 0) { ...
public class class_name { public List<T> getSelectedValues() { Object[] curVal = (Object[]) $(listbox.getElement()).val(); List<T> selectedValues = new ArrayList<>(); if (curVal == null || curVal.length < 1) { return selectedValues; } List<String> keyIndex = getVal...
public class class_name { public List<T> getSelectedValues() { Object[] curVal = (Object[]) $(listbox.getElement()).val(); List<T> selectedValues = new ArrayList<>(); if (curVal == null || curVal.length < 1) { return selectedValues; // depends on control dependency: [if], data = [n...
public class class_name { public Icons getTableIcons(String featureTable) { Icons icons = null; Long id = contentsId.getId(featureTable); if (id != null) { icons = getTableIcons(featureTable, id); } return icons; } }
public class class_name { public Icons getTableIcons(String featureTable) { Icons icons = null; Long id = contentsId.getId(featureTable); if (id != null) { icons = getTableIcons(featureTable, id); // depends on control dependency: [if], data = [none] } return icons; ...