code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public String quoteLiteral(String string) { if (needingQuoteCharacters == null) { needingQuoteCharacters = new UnicodeSet().addAll(syntaxCharacters).addAll(ignorableCharacters).addAll(extraQuotingCharacters); // .addAll(quoteCharacters) if (usingSlash) needingQ...
public class class_name { public String quoteLiteral(String string) { if (needingQuoteCharacters == null) { needingQuoteCharacters = new UnicodeSet().addAll(syntaxCharacters).addAll(ignorableCharacters).addAll(extraQuotingCharacters); // .addAll(quoteCharacters) // depends on control dependency: [i...
public class class_name { public static <E> int drainQueue(Queue<E> queue, int elementsToDrain, Predicate<E> drainedCountFilter) { int drained = 0; boolean drainMore = true; for (int i = 0; i < elementsToDrain && drainMor...
public class class_name { public static <E> int drainQueue(Queue<E> queue, int elementsToDrain, Predicate<E> drainedCountFilter) { int drained = 0; boolean drainMore = true; for (int i = 0; i < elementsToDrain && drainMor...
public class class_name { synchronized String evaluateInterval() { // During shutdown, threadpool may have been nulled out. In that case, don't bother analyzing. // (We could log this in FFDC, but it isn't clear that it's worth doing so.) if (threadPool == null) return "threadPool =...
public class class_name { synchronized String evaluateInterval() { // During shutdown, threadpool may have been nulled out. In that case, don't bother analyzing. // (We could log this in FFDC, but it isn't clear that it's worth doing so.) if (threadPool == null) return "threadPool =...
public class class_name { private void a2(StringBuilder sb, int x) { if (x < 10) { sb.append('0'); } sb.append(x); } }
public class class_name { private void a2(StringBuilder sb, int x) { if (x < 10) { sb.append('0'); // depends on control dependency: [if], data = [none] } sb.append(x); } }
public class class_name { private void readNextPage() throws IOException { processNextPage(); while (currentPageType != PAGE_META_TYPE_1 && currentPageType != PAGE_META_TYPE_2 && currentPageType != PAGE_MIX_TYPE && currentPageType != PAGE_DATA_TYPE) { if (eof) { ...
public class class_name { private void readNextPage() throws IOException { processNextPage(); while (currentPageType != PAGE_META_TYPE_1 && currentPageType != PAGE_META_TYPE_2 && currentPageType != PAGE_MIX_TYPE && currentPageType != PAGE_DATA_TYPE) { if (eof) { ...
public class class_name { public static String convertToHumanFriendlyByteSize(long size) { if (size < 1024) { return size + " B"; } int z = (63 - Long.numberOfLeadingZeros(size)) / 10; double d = (double)size / (1L << (z * 10)); String format = (d % 1.0 == 0) ? "%.0f...
public class class_name { public static String convertToHumanFriendlyByteSize(long size) { if (size < 1024) { return size + " B"; // depends on control dependency: [if], data = [none] } int z = (63 - Long.numberOfLeadingZeros(size)) / 10; double d = (double)size / (1L << (z ...
public class class_name { @Override public Matrix applyCommon(Matrix a, Matrix b) { int n = a.rows() * b.rows(); int m = a.columns() * b.columns(); int p = b.rows(); int q = b.columns(); Matrix result = a.blankOfShape(n, m); for (int i = 0; i < n; i++) { ...
public class class_name { @Override public Matrix applyCommon(Matrix a, Matrix b) { int n = a.rows() * b.rows(); int m = a.columns() * b.columns(); int p = b.rows(); int q = b.columns(); Matrix result = a.blankOfShape(n, m); for (int i = 0; i < n; i++) { ...
public class class_name { public boolean onItemClick(IDrawerItem selectedDrawerItem) { //We only need to clear if the new item is selectable if (selectedDrawerItem.isSelectable()) { //crossfade if we are cross faded if (mCrossFader != null) { if (mCrossFader.isCr...
public class class_name { public boolean onItemClick(IDrawerItem selectedDrawerItem) { //We only need to clear if the new item is selectable if (selectedDrawerItem.isSelectable()) { //crossfade if we are cross faded if (mCrossFader != null) { if (mCrossFader.isCr...
public class class_name { @Override public void close() { LOG.debug("closing " + getClass().getCanonicalName()); if (session != null) { session.close(); } } }
public class class_name { @Override public void close() { LOG.debug("closing " + getClass().getCanonicalName()); if (session != null) { session.close(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public static String paramsToString(String charset, Map<String, String> params) { StringBuffer sb = new StringBuffer(); try { for (Map.Entry<String, String> item : params.entrySet()) { sb.append("&"); sb.append(URLEncoder.encode(item...
public class class_name { public static String paramsToString(String charset, Map<String, String> params) { StringBuffer sb = new StringBuffer(); try { for (Map.Entry<String, String> item : params.entrySet()) { sb.append("&"); // depends on control dependency: [for], data = ...
public class class_name { public static String rewriteMethodSignature(ClassNameRewriter classNameRewriter, String methodSignature) { if (classNameRewriter != IdentityClassNameRewriter.instance()) { SignatureParser parser = new SignatureParser(methodSignature); StringBuilder buf = new S...
public class class_name { public static String rewriteMethodSignature(ClassNameRewriter classNameRewriter, String methodSignature) { if (classNameRewriter != IdentityClassNameRewriter.instance()) { SignatureParser parser = new SignatureParser(methodSignature); StringBuilder buf = new S...
public class class_name { private void generateSources() { try { ExecutorService pool = Executors.newFixedThreadPool(context.getSettings().getNbThread()); for (Java4CppType type : context.getClassesAlreadyDone()) { Class<?> clazz = type.getRawClass(); if...
public class class_name { private void generateSources() { try { ExecutorService pool = Executors.newFixedThreadPool(context.getSettings().getNbThread()); for (Java4CppType type : context.getClassesAlreadyDone()) { Class<?> clazz = type.getRawClass(); if...
public class class_name { private void initialize(String scheme, String authority, String path) { try { this.uri = new URI(scheme, authority, normalizePath(path), null, null).normalize(); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } } }
public class class_name { private void initialize(String scheme, String authority, String path) { try { this.uri = new URI(scheme, authority, normalizePath(path), null, null).normalize(); // depends on control dependency: [try], data = [none] } catch (URISyntaxException e) { throw new IllegalArgumentExceptio...
public class class_name { private V findSmallest(Node node) { if (node == null) { return null; } while (node.left != null) { node = node.left; } return node.item; } }
public class class_name { private V findSmallest(Node node) { if (node == null) { return null; // depends on control dependency: [if], data = [none] } while (node.left != null) { node = node.left; // depends on control dependency: [while], data = [none] } ...
public class class_name { public static double[][] transposeDiagonalTimes(double[][] m1, double[] d2, double[][] m3) { final int innerdim = d2.length; assert m1.length == innerdim : ERR_MATRIX_INNERDIM; assert m3.length == innerdim : ERR_MATRIX_INNERDIM; final int coldim1 = getColumnDimensionality(m1);...
public class class_name { public static double[][] transposeDiagonalTimes(double[][] m1, double[] d2, double[][] m3) { final int innerdim = d2.length; assert m1.length == innerdim : ERR_MATRIX_INNERDIM; assert m3.length == innerdim : ERR_MATRIX_INNERDIM; final int coldim1 = getColumnDimensionality(m1);...
public class class_name { protected List<IAlias> loadAliases(Scriptable cfg) throws IOException { Object aliasList = cfg.get(ALIASES_CONFIGPARAM, cfg); List<IAlias> aliases = new LinkedList<IAlias>(); if (aliasList instanceof Scriptable) { for (Object id : ((Scriptable)aliasList).getIds()) { if (id i...
public class class_name { protected List<IAlias> loadAliases(Scriptable cfg) throws IOException { Object aliasList = cfg.get(ALIASES_CONFIGPARAM, cfg); List<IAlias> aliases = new LinkedList<IAlias>(); if (aliasList instanceof Scriptable) { for (Object id : ((Scriptable)aliasList).getIds()) { if (id i...
public class class_name { private static void getExplicitOverrides(Channel channel, Member member, AtomicLong allow, AtomicLong deny) { PermissionOverride override = channel.getPermissionOverride(member.getGuild().getPublicRole()); long allowRaw = 0; long denyRaw = 0; if (override !...
public class class_name { private static void getExplicitOverrides(Channel channel, Member member, AtomicLong allow, AtomicLong deny) { PermissionOverride override = channel.getPermissionOverride(member.getGuild().getPublicRole()); long allowRaw = 0; long denyRaw = 0; if (override !...
public class class_name { public boolean isPathAvailable(Path path) { try { Configuration conf = HadoopUtils.newConfiguration(); FileSystem fs = FileSystem.get(this.getFsURI(), conf); if (fs.exists(path)) { return true; } else { log.warn("The data path [" + path + "] is not ...
public class class_name { public boolean isPathAvailable(Path path) { try { Configuration conf = HadoopUtils.newConfiguration(); FileSystem fs = FileSystem.get(this.getFsURI(), conf); if (fs.exists(path)) { return true; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static String removeTrailingZeros(final String str) { String result = str; if (str != null && str.length() != 0) { int endIndex = str.length(); while (endIndex > 1) { final char ch = str.charAt(endIndex - 1); if (ch != '0') { break; ...
public class class_name { public static String removeTrailingZeros(final String str) { String result = str; if (str != null && str.length() != 0) { int endIndex = str.length(); while (endIndex > 1) { final char ch = str.charAt(endIndex - 1); if (ch != '0') { break; ...
public class class_name { @RequestMapping(value = "**", method = RequestMethod.GET) public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException { try { setup(req, res); String sresult = null; switch (this.params.command)...
public class class_name { @RequestMapping(value = "**", method = RequestMethod.GET) public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException { try { setup(req, res); String sresult = null; switch (this.params.command)...
public class class_name { public boolean shouldYieldFocus(JComponent input) { boolean isValidInput = verify(input); if (isValidInput) { input.setBackground(background); } else { input.setBackground(warningBackground); } return isValidInput; } }
public class class_name { public boolean shouldYieldFocus(JComponent input) { boolean isValidInput = verify(input); if (isValidInput) { input.setBackground(background); // depends on control dependency: [if], data = [none] } else { input.setBackground(warningBackground);...
public class class_name { public static Treenode findNode(Treeview tree, String path, boolean create, Class<? extends Treenode> clazz, MatchMode matchMode) { if (tree.getChildCount() == 0 && !create) { return null; } return CWFUtil.findNode(tree,...
public class class_name { public static Treenode findNode(Treeview tree, String path, boolean create, Class<? extends Treenode> clazz, MatchMode matchMode) { if (tree.getChildCount() == 0 && !create) { return null; // depends on control dependency: [if], data = [...
public class class_name { Filter getFilterProperty(String name, Filter defaultValue) { String val = getProperty(name); try { if (val != null) { return (Filter) getClassInstance(val).newInstance(); } } catch (Exception ex) { // We got one of a ...
public class class_name { Filter getFilterProperty(String name, Filter defaultValue) { String val = getProperty(name); try { if (val != null) { return (Filter) getClassInstance(val).newInstance(); // depends on control dependency: [if], data = [(val] } } ...
public class class_name { public Drawable downloadTile(final long pMapTileIndex, final int redirectCount, final String targetUrl, final IFilesystemCache pFilesystemCache, final OnlineTileSourceBase pTileSource) throws CantContinueException { //prevent infinite looping of redir...
public class class_name { public Drawable downloadTile(final long pMapTileIndex, final int redirectCount, final String targetUrl, final IFilesystemCache pFilesystemCache, final OnlineTileSourceBase pTileSource) throws CantContinueException { //prevent infinite looping of redir...
public class class_name { public ListAccountSettingsResult withSettings(Setting... settings) { if (this.settings == null) { setSettings(new com.amazonaws.internal.SdkInternalList<Setting>(settings.length)); } for (Setting ele : settings) { this.settings.add(ele); ...
public class class_name { public ListAccountSettingsResult withSettings(Setting... settings) { if (this.settings == null) { setSettings(new com.amazonaws.internal.SdkInternalList<Setting>(settings.length)); // depends on control dependency: [if], data = [none] } for (Setting ele : s...
public class class_name { private String doPasswdAuth(HttpServletRequest request, String authType) throws HttpAuthenticationException { String userName = getUsername(request, authType); // No-op when authType is NOSASL if (!authType.equalsIgnoreCase(HiveAuthFactory.AuthTypes.NOSASL.toString())) { ...
public class class_name { private String doPasswdAuth(HttpServletRequest request, String authType) throws HttpAuthenticationException { String userName = getUsername(request, authType); // No-op when authType is NOSASL if (!authType.equalsIgnoreCase(HiveAuthFactory.AuthTypes.NOSASL.toString())) { ...
public class class_name { public <S extends F> Pattern<T, S> subtype(final Class<S> subtypeClass) { Preconditions.checkNotNull(subtypeClass, "The class cannot be null."); if (condition == null) { this.condition = new SubtypeCondition<F>(subtypeClass); } else { this.condition = new RichAndCondition<>(condi...
public class class_name { public <S extends F> Pattern<T, S> subtype(final Class<S> subtypeClass) { Preconditions.checkNotNull(subtypeClass, "The class cannot be null."); if (condition == null) { this.condition = new SubtypeCondition<F>(subtypeClass); // depends on control dependency: [if], data = [none] } e...
public class class_name { public ClusterDbRevision withRevisionTargets(RevisionTarget... revisionTargets) { if (this.revisionTargets == null) { setRevisionTargets(new com.amazonaws.internal.SdkInternalList<RevisionTarget>(revisionTargets.length)); } for (RevisionTarget ele : revisio...
public class class_name { public ClusterDbRevision withRevisionTargets(RevisionTarget... revisionTargets) { if (this.revisionTargets == null) { setRevisionTargets(new com.amazonaws.internal.SdkInternalList<RevisionTarget>(revisionTargets.length)); // depends on control dependency: [if], data = [non...
public class class_name { private void addTypesToFunctions( Node objLit, String thisType, PolymerClassDefinition.DefinitionType defType) { checkState(objLit.isObjectLit()); for (Node keyNode : objLit.children()) { Node value = keyNode.getLastChild(); if (value != null && value.isFunction()) {...
public class class_name { private void addTypesToFunctions( Node objLit, String thisType, PolymerClassDefinition.DefinitionType defType) { checkState(objLit.isObjectLit()); for (Node keyNode : objLit.children()) { Node value = keyNode.getLastChild(); if (value != null && value.isFunction()) {...
public class class_name { public boolean containsHeaderOut(String name) { ArrayList<String> headerKeys = _headerKeysOut; int size = headerKeys.size(); for (int i = 0; i < size; i++) { String oldKey = headerKeys.get(i); if (oldKey.equalsIgnoreCase(name)) { return true; } ...
public class class_name { public boolean containsHeaderOut(String name) { ArrayList<String> headerKeys = _headerKeysOut; int size = headerKeys.size(); for (int i = 0; i < size; i++) { String oldKey = headerKeys.get(i); if (oldKey.equalsIgnoreCase(name)) { return true; // depends...
public class class_name { public String getParameterIgnoreCase(String name) { for (Map.Entry<String, String[]> entry : customParameters.entrySet()) { if (entry.getKey().equalsIgnoreCase(name)) { return StringUtils.join(entry.getValue(), ","); } } return n...
public class class_name { public String getParameterIgnoreCase(String name) { for (Map.Entry<String, String[]> entry : customParameters.entrySet()) { if (entry.getKey().equalsIgnoreCase(name)) { return StringUtils.join(entry.getValue(), ","); // depends on control dependency: [if], ...
public class class_name { private void ensureBufferAvailable(TableBlock block) throws IOException { if (!block.hasBuffer()) { synchronized (this) { if (!block.hasBuffer()) { ByteBuffer buffer = getBuffer(); block.setBuffer(buffer); ...
public class class_name { private void ensureBufferAvailable(TableBlock block) throws IOException { if (!block.hasBuffer()) { synchronized (this) { if (!block.hasBuffer()) { ByteBuffer buffer = getBuffer(); block.setBuffer(buffer); // depends ...
public class class_name { final Table SYSTEM_BESTROWIDENTIFIER() { Table t = sysTables[SYSTEM_BESTROWIDENTIFIER]; if (t == null) { t = createBlankTable(sysTableHsqlNames[SYSTEM_BESTROWIDENTIFIER]); addColumn(t, "SCOPE", Type.SQL_SMALLINT); // not null a...
public class class_name { final Table SYSTEM_BESTROWIDENTIFIER() { Table t = sysTables[SYSTEM_BESTROWIDENTIFIER]; if (t == null) { t = createBlankTable(sysTableHsqlNames[SYSTEM_BESTROWIDENTIFIER]); // depends on control dependency: [if], data = [none] addColumn(t, "SCOPE", Ty...
public class class_name { @Deprecated public Detector[] instantiateDetectorsInPass(BugReporter bugReporter) { int count; count = 0; for (DetectorFactory factory : orderedFactoryList) { if (factory.isDetectorClassSubtypeOf(Detector.class)) { count++; ...
public class class_name { @Deprecated public Detector[] instantiateDetectorsInPass(BugReporter bugReporter) { int count; count = 0; for (DetectorFactory factory : orderedFactoryList) { if (factory.isDetectorClassSubtypeOf(Detector.class)) { count++; // depends o...
public class class_name { protected void set(double values[][]) { this.nRows = values.length; this.nCols = values[0].length; this.values = values; for (int r = 1; r < nRows; ++r) { nCols = Math.min(nCols, values[r].length); } } }
public class class_name { protected void set(double values[][]) { this.nRows = values.length; this.nCols = values[0].length; this.values = values; for (int r = 1; r < nRows; ++r) { nCols = Math.min(nCols, values[r].length); // depends on control dependency: [for], dat...
public class class_name { private RhinoScriptBuilder initScriptBuilder() { try { RhinoScriptBuilder builder = null; if (scope == null) { builder = RhinoScriptBuilder.newChain().evaluateChain(getCoffeeScriptAsStream(), DEFAULT_COFFE_SCRIPT); scope = builder.getScope(); } else...
public class class_name { private RhinoScriptBuilder initScriptBuilder() { try { RhinoScriptBuilder builder = null; if (scope == null) { builder = RhinoScriptBuilder.newChain().evaluateChain(getCoffeeScriptAsStream(), DEFAULT_COFFE_SCRIPT); // depends on control dependency: [if], data = [n...
public class class_name { static IdentityTemplateLibrary loadFromResource(String resource) { InputStream in = IdentityTemplateLibrary.class.getResourceAsStream(resource); try { return load(in); } catch (IOException e) { throw new IllegalArgumentException("Could not load ...
public class class_name { static IdentityTemplateLibrary loadFromResource(String resource) { InputStream in = IdentityTemplateLibrary.class.getResourceAsStream(resource); try { return load(in); // depends on control dependency: [try], data = [none] } catch (IOException e) { ...
public class class_name { @SuppressWarnings("squid:S2259") // Null pointers should not be dereferenced void setCellValue(Cell cell, Object value) { if (value instanceof Boolean) { cell.setCellValue(toBoolean(value)); } else if (value instanceof LocalDate) { Instant instant = toLocalDate(value).at...
public class class_name { @SuppressWarnings("squid:S2259") // Null pointers should not be dereferenced void setCellValue(Cell cell, Object value) { if (value instanceof Boolean) { cell.setCellValue(toBoolean(value)); // depends on control dependency: [if], data = [none] } else if (value instanceof Loca...
public class class_name { @SuppressWarnings("static-method") protected boolean generatePythonClassDeclaration(String typeName, boolean isAbstract, List<? extends JvmTypeReference> superTypes, String comment, boolean ignoreObjectType, PyAppendable it, IExtraLanguageGeneratorContext context) { if (!Strings.isEm...
public class class_name { @SuppressWarnings("static-method") protected boolean generatePythonClassDeclaration(String typeName, boolean isAbstract, List<? extends JvmTypeReference> superTypes, String comment, boolean ignoreObjectType, PyAppendable it, IExtraLanguageGeneratorContext context) { if (!Strings.isEm...
public class class_name { public int exactMatchSearch(byte[] key) { int unit = _array[0]; int nodePos = 0; for (byte b : key) { // nodePos ^= unit.offset() ^ b nodePos ^= ((unit >>> 10) << ((unit & (1 << 9)) >>> 6)) ^ (b & 0xFF); unit = _array[no...
public class class_name { public int exactMatchSearch(byte[] key) { int unit = _array[0]; int nodePos = 0; for (byte b : key) { // nodePos ^= unit.offset() ^ b nodePos ^= ((unit >>> 10) << ((unit & (1 << 9)) >>> 6)) ^ (b & 0xFF); // depends on control depend...
public class class_name { public void showCorner(boolean leftTop, boolean rightTop, boolean leftBottom, boolean rightBottom) { if (SDK_LOLLIPOP) { ((OptRoundRectDrawable) getBackground()).showCorner(leftTop, rightTop, leftBottom, rightBottom); } else { ((OptRoundRectDrawableWith...
public class class_name { public void showCorner(boolean leftTop, boolean rightTop, boolean leftBottom, boolean rightBottom) { if (SDK_LOLLIPOP) { ((OptRoundRectDrawable) getBackground()).showCorner(leftTop, rightTop, leftBottom, rightBottom); // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean toPostInit() { synchronized (this) { if (_state == STOPPED) { _state = INIT; _lastChangeTime = CurrentTime.currentTime(); notifyListeners(STOPPED, INIT); return true; } else { return _state.isInit(); ...
public class class_name { public boolean toPostInit() { synchronized (this) { if (_state == STOPPED) { _state = INIT; // depends on control dependency: [if], data = [none] _lastChangeTime = CurrentTime.currentTime(); // depends on control dependency: [if], data = [none] noti...
public class class_name { public void marshall(UpdateInstanceProfileRequest updateInstanceProfileRequest, ProtocolMarshaller protocolMarshaller) { if (updateInstanceProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(UpdateInstanceProfileRequest updateInstanceProfileRequest, ProtocolMarshaller protocolMarshaller) { if (updateInstanceProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static int getClassIndex(Instances instances, MiningSchema miningSchema) { String className = null; for (MiningField miningField : miningSchema.getMiningFields()) { if (miningField.getUsageType() == FieldUsageType.PREDICTED) { className = min...
public class class_name { public static int getClassIndex(Instances instances, MiningSchema miningSchema) { String className = null; for (MiningField miningField : miningSchema.getMiningFields()) { if (miningField.getUsageType() == FieldUsageType.PREDICTED) { className = min...
public class class_name { @Override public long getNextIncludedTime (final long timeInMillis) { long nextIncludedTime = timeInMillis + 1; // plus on millisecond while (!isTimeIncluded (nextIncludedTime)) { // If the time is in a range excluded by this calendar, we can // move to the end o...
public class class_name { @Override public long getNextIncludedTime (final long timeInMillis) { long nextIncludedTime = timeInMillis + 1; // plus on millisecond while (!isTimeIncluded (nextIncludedTime)) { // If the time is in a range excluded by this calendar, we can // move to the end o...
public class class_name { private boolean allTypesExist(Collection<? extends Element> elements) { for (Element element : elements) { if (element.asType().getKind() == TypeKind.ERROR) { return false; } } return true; } }
public class class_name { private boolean allTypesExist(Collection<? extends Element> elements) { for (Element element : elements) { if (element.asType().getKind() == TypeKind.ERROR) { return false; // depends on control dependency: [if], data = [none] } } return true; } }
public class class_name { public void marshall(CreateProductRequest createProductRequest, ProtocolMarshaller protocolMarshaller) { if (createProductRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(CreateProductRequest createProductRequest, ProtocolMarshaller protocolMarshaller) { if (createProductRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { @Override public EEnum getIfcElectricTimeControlTypeEnum() { if (ifcElectricTimeControlTypeEnumEEnum == null) { ifcElectricTimeControlTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(979); } return ifcElectricTimeC...
public class class_name { @Override public EEnum getIfcElectricTimeControlTypeEnum() { if (ifcElectricTimeControlTypeEnumEEnum == null) { ifcElectricTimeControlTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(979); // depends on control dependen...
public class class_name { private void optimizeStart() { if (configuration.isPayloadCache()) { if (configuration.getOptimizerStoreClass() == null) { store = new CacheOptimizerStore(); store.start(configuration); return; } try { store = (OptimizerStore) Class.forName(configuration.getOptimi...
public class class_name { private void optimizeStart() { if (configuration.isPayloadCache()) { if (configuration.getOptimizerStoreClass() == null) { store = new CacheOptimizerStore(); // depends on control dependency: [if], data = [none] store.start(configuration); // depends on control dependency: [if],...
public class class_name { protected void createContainerXML(final BuildData buildData, final Level container, final Document doc, final Element parentNode, final String parentFileLocation, final Boolean flattenStructure) throws BuildProcessingException { final List<org.jboss.pressgang.ccms.contents...
public class class_name { protected void createContainerXML(final BuildData buildData, final Level container, final Document doc, final Element parentNode, final String parentFileLocation, final Boolean flattenStructure) throws BuildProcessingException { final List<org.jboss.pressgang.ccms.contents...
public class class_name { protected Escalation findEscalationForEscalationEventDefinition(Element escalationEventDefinition) { String escalationRef = escalationEventDefinition.attribute("escalationRef"); if (escalationRef == null) { addError("escalationEventDefinition does not have required attribute 'es...
public class class_name { protected Escalation findEscalationForEscalationEventDefinition(Element escalationEventDefinition) { String escalationRef = escalationEventDefinition.attribute("escalationRef"); if (escalationRef == null) { addError("escalationEventDefinition does not have required attribute 'es...
public class class_name { @Override public void render(final String word, BufferedImage image) { Graphics2D g = image.createGraphics(); RenderingHints hints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); hints.add(...
public class class_name { @Override public void render(final String word, BufferedImage image) { Graphics2D g = image.createGraphics(); RenderingHints hints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); hints.add(...
public class class_name { private String getIndentation() { final StringBuilder buf = new StringBuilder(); for (int i=0; i<indentLevel; i++) { buf.append("\t"); } return buf.toString(); } }
public class class_name { private String getIndentation() { final StringBuilder buf = new StringBuilder(); for (int i=0; i<indentLevel; i++) { buf.append("\t"); // depends on control dependency: [for], data = [none] } return buf.toString(); } }
public class class_name { private <T extends Snippet> Stream<T> argsToSnippets(Supplier<Stream<T>> snippetSupplier, List<String> args) { Stream<T> result = null; for (String arg : args) { // Find the best match Stream<T> st = layeredSnippetSearch(snippetSupplier, arg...
public class class_name { private <T extends Snippet> Stream<T> argsToSnippets(Supplier<Stream<T>> snippetSupplier, List<String> args) { Stream<T> result = null; for (String arg : args) { // Find the best match Stream<T> st = layeredSnippetSearch(snippetSupplier, arg...
public class class_name { public BatchDeleteConnectionRequest withConnectionNameList(String... connectionNameList) { if (this.connectionNameList == null) { setConnectionNameList(new java.util.ArrayList<String>(connectionNameList.length)); } for (String ele : connectionNameList) { ...
public class class_name { public BatchDeleteConnectionRequest withConnectionNameList(String... connectionNameList) { if (this.connectionNameList == null) { setConnectionNameList(new java.util.ArrayList<String>(connectionNameList.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { static LinkedList<Change> changesFromDelta(String text1, String delta) throws IllegalArgumentException { LinkedList<Change> diffs = new LinkedList<>(); int pointer = 0; // Cursor in text1 String[] tokens = delta.split("\t"); for (String token : tok...
public class class_name { static LinkedList<Change> changesFromDelta(String text1, String delta) throws IllegalArgumentException { LinkedList<Change> diffs = new LinkedList<>(); int pointer = 0; // Cursor in text1 String[] tokens = delta.split("\t"); for (String token : tok...
public class class_name { private void stop() { if (m_bRunning) { instance().m_logger.info("Doradus Server shutting down"); stopServices(); ServerParams.unload(); m_bRunning = false; m_bInitialized = false; } } }
public class class_name { private void stop() { if (m_bRunning) { instance().m_logger.info("Doradus Server shutting down"); // depends on control dependency: [if], data = [none] stopServices(); // depends on control dependency: [if], data = [none] ServerParams.unload(); ...
public class class_name { @Override public String update(EntityUpdateOperation updater) throws ServiceException { updater.setProxyData(createProxyData()); ClientResponse clientResponse = getResource(updater).header("X-HTTP-METHOD", "MERGE").post(ClientResponse.class, ...
public class class_name { @Override public String update(EntityUpdateOperation updater) throws ServiceException { updater.setProxyData(createProxyData()); ClientResponse clientResponse = getResource(updater).header("X-HTTP-METHOD", "MERGE").post(ClientResponse.class, ...
public class class_name { public Response submitRequest(ProtocolHeader h, Protocol request, WatcherRegistration wr){ Packet packet = queuePacket(h, request, null, null, null, wr); synchronized (packet) { while (!packet.finished) { try { packet...
public class class_name { public Response submitRequest(ProtocolHeader h, Protocol request, WatcherRegistration wr){ Packet packet = queuePacket(h, request, null, null, null, wr); synchronized (packet) { while (!packet.finished) { try { packet...
public class class_name { public void setBinaryMediaTypes(java.util.Collection<String> binaryMediaTypes) { if (binaryMediaTypes == null) { this.binaryMediaTypes = null; return; } this.binaryMediaTypes = new java.util.ArrayList<String>(binaryMediaTypes); } }
public class class_name { public void setBinaryMediaTypes(java.util.Collection<String> binaryMediaTypes) { if (binaryMediaTypes == null) { this.binaryMediaTypes = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { @SuppressWarnings("static-method") public String findStringValue(JvmAnnotationReference reference) { assert reference != null; for (final JvmAnnotationValue value : reference.getValues()) { if (value instanceof JvmStringAnnotationValue) { for (final String strValue : ((JvmStringAn...
public class class_name { @SuppressWarnings("static-method") public String findStringValue(JvmAnnotationReference reference) { assert reference != null; for (final JvmAnnotationValue value : reference.getValues()) { if (value instanceof JvmStringAnnotationValue) { for (final String strValue : ((JvmStringAn...
public class class_name { @ConditionBlock public void within(double seconds, Closure<?> conditions) throws InterruptedException { long timeoutMillis = toMillis(seconds); long start = System.currentTimeMillis(); long lastAttempt = 0; Thread.sleep(toMillis(initialDelay)); long currDelay = toMilli...
public class class_name { @ConditionBlock public void within(double seconds, Closure<?> conditions) throws InterruptedException { long timeoutMillis = toMillis(seconds); long start = System.currentTimeMillis(); long lastAttempt = 0; Thread.sleep(toMillis(initialDelay)); long currDelay = toMilli...
public class class_name { public ModifiableHyperBoundingBox computeMBR() { E firstEntry = getEntry(0); if(firstEntry == null) { return null; } // Note: we deliberately get a cloned copy here, since we will modify it. ModifiableHyperBoundingBox mbr = new ModifiableHyperBoundingBox(firstEntry);...
public class class_name { public ModifiableHyperBoundingBox computeMBR() { E firstEntry = getEntry(0); if(firstEntry == null) { return null; // depends on control dependency: [if], data = [none] } // Note: we deliberately get a cloned copy here, since we will modify it. ModifiableHyperBoundin...
public class class_name { protected void onKeepAliveResponse(ChannelHandlerContext ctx, CouchbaseResponse keepAliveResponse) { if (traceEnabled) { LOGGER.trace(logIdent(ctx, endpoint) + "keepAlive was answered, status " + keepAliveResponse.status()); } } }
public class class_name { protected void onKeepAliveResponse(ChannelHandlerContext ctx, CouchbaseResponse keepAliveResponse) { if (traceEnabled) { LOGGER.trace(logIdent(ctx, endpoint) + "keepAlive was answered, status " + keepAliveResponse.status()); // depends on control depend...
public class class_name { static void validateEntityId(EntityType entityType) { // validate entity name (e.g. illegal characters, length) String id = entityType.getId(); if (!id.equals(ATTRIBUTE_META_DATA) && !id.equals(ENTITY_TYPE_META_DATA) && !id.equals(PACKAGE)) { try { Na...
public class class_name { static void validateEntityId(EntityType entityType) { // validate entity name (e.g. illegal characters, length) String id = entityType.getId(); if (!id.equals(ATTRIBUTE_META_DATA) && !id.equals(ENTITY_TYPE_META_DATA) && !id.equals(PACKAGE)) { try { Na...
public class class_name { private BigDecimal toBigDecimal(Object value) { if (value instanceof Long) { return new BigDecimal((Long) value); } else if (value instanceof Integer) { return new BigDecimal((Integer) value); } else if (value instanceof BigInteger) { return new BigDecimal((BigInteger) va...
public class class_name { private BigDecimal toBigDecimal(Object value) { if (value instanceof Long) { return new BigDecimal((Long) value); // depends on control dependency: [if], data = [none] } else if (value instanceof Integer) { return new BigDecimal((Integer) value); // depends on control dependenc...
public class class_name { private void update() { if (!uptodate) { summary.clear(); distinctTraces.clear(); traces.clear(); addTraces(allTraces, false); uptodate = true; ...
public class class_name { private void update() { if (!uptodate) { summary.clear(); // depends on control dependency: [if], data = [none] distinctTraces.clear(); // depends on control dependency: [if], data = [none] traces.clear();...
public class class_name { public String newNonce(HttpRequest request) { long ts=request.getTimeStamp(); long sk=nonceSecret; byte[] nounce = new byte[24]; for (int i=0;i<8;i++) { nounce[i]=(byte)(ts&0xff); ts=ts>>8; nounce[8+i]=(b...
public class class_name { public String newNonce(HttpRequest request) { long ts=request.getTimeStamp(); long sk=nonceSecret; byte[] nounce = new byte[24]; for (int i=0;i<8;i++) { nounce[i]=(byte)(ts&0xff); // depends on control dependency: [for], data = ...
public class class_name { @Transactional public TaskBase findInterruptedTask(ProcessInstance processInstance) { TaskBase ret = null; for (Audit audit : processInstance.getAudits()) { if (audit.isInterrupted()) { ret = getTask( audit.getProcessDefinitionName(), audit.getTaskId()); audit.setInterru...
public class class_name { @Transactional public TaskBase findInterruptedTask(ProcessInstance processInstance) { TaskBase ret = null; for (Audit audit : processInstance.getAudits()) { if (audit.isInterrupted()) { ret = getTask( audit.getProcessDefinitionName(), audit.getTaskId()); // depends on contro...
public class class_name { public HashMap<String, DependencyInfo> parseMixLoc(File mixLock){ logger.info("Hex - parsing " + mixLock.getPath()); HashMap<String, DependencyInfo> dependencyInfoHashMap = new HashMap<>(); FileReader fileReader; BufferedReader bufferedReader; /* ...
public class class_name { public HashMap<String, DependencyInfo> parseMixLoc(File mixLock){ logger.info("Hex - parsing " + mixLock.getPath()); HashMap<String, DependencyInfo> dependencyInfoHashMap = new HashMap<>(); FileReader fileReader; BufferedReader bufferedReader; /* ...
public class class_name { private void init1() { try (BufferedReader br = MyStaticValue.getPersonReader()) { pnMap = new HashMap<>(); String temp = null; String[] strs = null; PersonNatureAttr pna = null; while ((temp = br.readLine()) != null) { ...
public class class_name { private void init1() { try (BufferedReader br = MyStaticValue.getPersonReader()) { pnMap = new HashMap<>(); String temp = null; String[] strs = null; PersonNatureAttr pna = null; while ((temp = br.readLine()) != null) { ...
public class class_name { public boolean remove(int vertex) { // If we can remove the vertex from the global set, then at least one of // the type-specific graphs has this vertex. SparseDirectedTypedEdgeSet<T> edges = vertexToEdges.remove(vertex); if (edges != null) { size -...
public class class_name { public boolean remove(int vertex) { // If we can remove the vertex from the global set, then at least one of // the type-specific graphs has this vertex. SparseDirectedTypedEdgeSet<T> edges = vertexToEdges.remove(vertex); if (edges != null) { size -...
public class class_name { public boolean addProperty(String propertyName) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(propertyName)) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_PROP_1, propertyName)); } return m...
public class class_name { public boolean addProperty(String propertyName) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(propertyName)) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_PROP_1, propertyName)); // depends on control dependency: ...
public class class_name { public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectoryName) { removeEmptyDirectories(new File(outputDirectoryName)); boolean useFrames = System.getProperty(FRAM...
public class class_name { public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectoryName) { removeEmptyDirectories(new File(outputDirectoryName)); boolean useFrames = System.getProperty(FRAM...
public class class_name { @Override protected int getColor(Context ctx) { int color; if (this.isEnabled()) { color = ColorHolder.color(getTextColor(), ctx, R.attr.material_drawer_secondary_text, R.color.material_drawer_secondary_text); } else { color = ColorHolder.co...
public class class_name { @Override protected int getColor(Context ctx) { int color; if (this.isEnabled()) { color = ColorHolder.color(getTextColor(), ctx, R.attr.material_drawer_secondary_text, R.color.material_drawer_secondary_text); // depends on control dependency: [if], data = [non...
public class class_name { protected Map<Integer, Class<?>> prepareOptionalGenericTypeMap(Method executeMethod) { final Parameter[] parameters = executeMethod.getParameters(); if (parameters.length == 0) { return Collections.emptyMap(); } final Map<Integer, Class<?>> optional...
public class class_name { protected Map<Integer, Class<?>> prepareOptionalGenericTypeMap(Method executeMethod) { final Parameter[] parameters = executeMethod.getParameters(); if (parameters.length == 0) { return Collections.emptyMap(); // depends on control dependency: [if], data = [none] ...
public class class_name { private static EvaluationContext buildEvaluationContext(final String expression) { return new DDRSpelEvaluationContext() { @Override public Object lookupVariable(String name) { Object val = null; if (isReservedWords(name)) { ...
public class class_name { private static EvaluationContext buildEvaluationContext(final String expression) { return new DDRSpelEvaluationContext() { @Override public Object lookupVariable(String name) { Object val = null; if (isReservedWords(name)) { ...
public class class_name { public static long bytesToLong(byte[] bytes) { // Magic number 8 should be defined as Long.SIZE / Byte.SIZE long values = 0; for (int i = 0; i < 8; i++) { values <<= 8; values |= (bytes[i] & 0xff); } return values; } }
public class class_name { public static long bytesToLong(byte[] bytes) { // Magic number 8 should be defined as Long.SIZE / Byte.SIZE long values = 0; for (int i = 0; i < 8; i++) { values <<= 8; // depends on control dependency: [for], data = [none] values |= (bytes[i] & 0xff); // depends on control ...
public class class_name { public static String ordinal(final int origI) { final int i = (origI < 0) ? -origI : origI; final int modTen = i % 10; if ( (modTen < 4) && (modTen > 0)) { int modHundred = i % 100; if ( (modHundred < 21) && (modHundred > 3) ) { ...
public class class_name { public static String ordinal(final int origI) { final int i = (origI < 0) ? -origI : origI; final int modTen = i % 10; if ( (modTen < 4) && (modTen > 0)) { int modHundred = i % 100; if ( (modHundred < 21) && (modHundred > 3) ) { ...
public class class_name { protected void set (final float values[][]) { m_nRows = values.length; m_nCols = values[0].length; m_aValues = values; for (int r = 1; r < m_nRows; ++r) { m_nCols = Math.min (m_nCols, values[r].length); } } }
public class class_name { protected void set (final float values[][]) { m_nRows = values.length; m_nCols = values[0].length; m_aValues = values; for (int r = 1; r < m_nRows; ++r) { m_nCols = Math.min (m_nCols, values[r].length); // depends on control dependency: [for], data = [r] } }...
public class class_name { static protected int SFSSelectFeature(Set<Integer> available, DataSet dataSet, Set<Integer> catToRemove, Set<Integer> numToRemove, Set<Integer> catSelecteed, Set<Integer> numSelected, Object evaluater, int folds, Random rand, double[] PbestScore, ...
public class class_name { static protected int SFSSelectFeature(Set<Integer> available, DataSet dataSet, Set<Integer> catToRemove, Set<Integer> numToRemove, Set<Integer> catSelecteed, Set<Integer> numSelected, Object evaluater, int folds, Random rand, double[] PbestScore, ...
public class class_name { public void addPoi(final Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { updatePoi(BLIP.getName(), BLIP.getLocation()); } else { pois.put(BLIP.getName(), BLIP); } checkForBlips(); } }
public class class_name { public void addPoi(final Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { updatePoi(BLIP.getName(), BLIP.getLocation()); // depends on control dependency: [if], data = [none] } else { pois.put(BLIP.getName(), BLIP); // depends on control depend...
public class class_name { public java.lang.String getJobName() { java.lang.Object ref = jobName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toS...
public class class_name { public java.lang.String getJobName() { java.lang.Object ref = jobName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; // depends on control dependency: [if], data = [none] } else { com.google.protobuf.ByteString bs = (com.google.proto...
public class class_name { public synchronized VersionedFile get(String fileName, Version version) { VersionedFile entry = cache.get(fileName); if (entry != null) { if (entry.version().equals(version)) { // Make a defensive copy since the caller might run further passes on it. return entry...
public class class_name { public synchronized VersionedFile get(String fileName, Version version) { VersionedFile entry = cache.get(fileName); if (entry != null) { if (entry.version().equals(version)) { // Make a defensive copy since the caller might run further passes on it. return entry...
public class class_name { public void setResourcesToSkip(java.util.Collection<String> resourcesToSkip) { if (resourcesToSkip == null) { this.resourcesToSkip = null; return; } this.resourcesToSkip = new com.amazonaws.internal.SdkInternalList<String>(resourcesToSkip); ...
public class class_name { public void setResourcesToSkip(java.util.Collection<String> resourcesToSkip) { if (resourcesToSkip == null) { this.resourcesToSkip = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { protected InjectionPoint buildInjectionPoint( final String annotationValue, final String propertyName, final Class propertyType, final Class<? extends MadvocScope> scope) { final String value = annotationValue.trim(); final String name, targetName; if (StringUtil.isNotBlan...
public class class_name { protected InjectionPoint buildInjectionPoint( final String annotationValue, final String propertyName, final Class propertyType, final Class<? extends MadvocScope> scope) { final String value = annotationValue.trim(); final String name, targetName; if (StringUtil.isNotBlan...
public class class_name { public static Fastq convert(final Fastq fastq, final FastqVariant variant) { if (fastq == null) { throw new IllegalArgumentException("fastq must not be null"); } if (variant == null) { throw new IllegalArgumentException("variant must not be null"); } if (fastq.getVariant(...
public class class_name { public static Fastq convert(final Fastq fastq, final FastqVariant variant) { if (fastq == null) { throw new IllegalArgumentException("fastq must not be null"); } if (variant == null) { throw new IllegalArgumentException("variant must not be null"); } if (fastq.getVariant(...
public class class_name { private int skipArc(int offset) { if (isNextSet(offset)) { if (isLabelCompressed(offset)) { offset++; } else { offset += 1 + 1; } } else { offset += 1 + gtl; } return offset; } }
public class class_name { private int skipArc(int offset) { if (isNextSet(offset)) { if (isLabelCompressed(offset)) { offset++; // depends on control dependency: [if], data = [none] } else { offset += 1 + 1; // depends on control dependency: [if], data = [none] } } else { offset += 1 + ...
public class class_name { static final TimeBasedRollStrategy findRollStrategy( final AppenderRollingProperties properties) { if (properties.getDatePattern() == null) { LogLog.error("null date pattern"); return ROLL_ERROR; } // Strip out quoted sections so that we may safely scan the undec...
public class class_name { static final TimeBasedRollStrategy findRollStrategy( final AppenderRollingProperties properties) { if (properties.getDatePattern() == null) { LogLog.error("null date pattern"); // depends on control dependency: [if], data = [none] return ROLL_ERROR; // depends on control...
public class class_name { public LocatedBlock recoverBlock(int namespaceId, Block block, boolean keepLength, DatanodeID[] datanodeids, boolean closeFile, long deadline) throws IOException { int errorCount = 0; // Number of "replicasBeingWritten" in 0.21 parlance - these are replicas // on DNs ...
public class class_name { public LocatedBlock recoverBlock(int namespaceId, Block block, boolean keepLength, DatanodeID[] datanodeids, boolean closeFile, long deadline) throws IOException { int errorCount = 0; // Number of "replicasBeingWritten" in 0.21 parlance - these are replicas // on DNs ...
public class class_name { public boolean limit() { //get connection Object connection = getConnection(); Object result = limitRequest(connection); if (FAIL_CODE != (Long) result) { return true; } else { return false; } } }
public class class_name { public boolean limit() { //get connection Object connection = getConnection(); Object result = limitRequest(connection); if (FAIL_CODE != (Long) result) { return true; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static String formatNameForClassLoading(String name) { if (name.equals("int") || name.equals("long") || name.equals("short") || name.equals("float") || name.equals("double") || name.equals("byte") ...
public class class_name { public static String formatNameForClassLoading(String name) { if (name.equals("int") || name.equals("long") || name.equals("short") || name.equals("float") || name.equals("double") || name.equals("byte") ...
public class class_name { public static boolean call(PageContext pc, String str) { try { return pc.evaluate(str) == null; } catch (PageException e) { return true; } } }
public class class_name { public static boolean call(PageContext pc, String str) { try { return pc.evaluate(str) == null; // depends on control dependency: [try], data = [none] } catch (PageException e) { return true; } // depends on control dependency: [catch], data = [none] } }
public class class_name { public static String encodeHexString(byte[] bytes) { char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; hexChars[j * 2 + 1] = hexArray[v & 0x0F...
public class class_name { public static String encodeHexString(byte[] bytes) { char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; // depends on control dependency: [for], data = [j]...
public class class_name { private Optional<String> getPreferredRack(final List<String> rackNames) { for (final String rackName : getRackNamesOrDefault(rackNames)) { // if it does not end with the any modifier, then we should do an exact match if (!rackName.endsWith(Constants.ANY_RACK)) { if (...
public class class_name { private Optional<String> getPreferredRack(final List<String> rackNames) { for (final String rackName : getRackNamesOrDefault(rackNames)) { // if it does not end with the any modifier, then we should do an exact match if (!rackName.endsWith(Constants.ANY_RACK)) { if (...
public class class_name { @SuppressWarnings("unchecked") public static <K, V> K[] mapKeyToArray(Map<K, V> map, Class<K> clazz) { if (Checker.isNotEmpty(map)) { K[] array = (K[]) Array.newInstance(clazz, map.size()); int i = 0; for (K k : map.keySet()) { a...
public class class_name { @SuppressWarnings("unchecked") public static <K, V> K[] mapKeyToArray(Map<K, V> map, Class<K> clazz) { if (Checker.isNotEmpty(map)) { K[] array = (K[]) Array.newInstance(clazz, map.size()); int i = 0; for (K k : map.keySet()) { a...
public class class_name { public ServiceFuture<List<NodeFile>> listFromTaskAsync(final String jobId, final String taskId, final Boolean recursive, final FileListFromTaskOptions fileListFromTaskOptions, final ListOperationCallback<NodeFile> serviceCallback) { return AzureServiceFuture.fromHeaderPageResponse( ...
public class class_name { public ServiceFuture<List<NodeFile>> listFromTaskAsync(final String jobId, final String taskId, final Boolean recursive, final FileListFromTaskOptions fileListFromTaskOptions, final ListOperationCallback<NodeFile> serviceCallback) { return AzureServiceFuture.fromHeaderPageResponse( ...
public class class_name { private void sortAndCacheEvents(List<? extends WeekViewEvent> events) { sortEvents(events); for (WeekViewEvent event : events) { cacheEvent(event); } } }
public class class_name { private void sortAndCacheEvents(List<? extends WeekViewEvent> events) { sortEvents(events); for (WeekViewEvent event : events) { cacheEvent(event); // depends on control dependency: [for], data = [event] } } }
public class class_name { public void marshall(GetVoiceConnectorOriginationRequest getVoiceConnectorOriginationRequest, ProtocolMarshaller protocolMarshaller) { if (getVoiceConnectorOriginationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(GetVoiceConnectorOriginationRequest getVoiceConnectorOriginationRequest, ProtocolMarshaller protocolMarshaller) { if (getVoiceConnectorOriginationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public RiskExceptionConfigurationType withBlockedIPRangeList(String... blockedIPRangeList) { if (this.blockedIPRangeList == null) { setBlockedIPRangeList(new java.util.ArrayList<String>(blockedIPRangeList.length)); } for (String ele : blockedIPRangeList) { ...
public class class_name { public RiskExceptionConfigurationType withBlockedIPRangeList(String... blockedIPRangeList) { if (this.blockedIPRangeList == null) { setBlockedIPRangeList(new java.util.ArrayList<String>(blockedIPRangeList.length)); // depends on control dependency: [if], data = [none] ...