code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public @NotNull ListAssert contains(@Nullable Object o, @NotNull Index index) { checkNotNull(index); isNotNull().isNotEmpty(); int indexValue = index.value(); int listSize = actualGroupSize(); if (indexValue < 0 || indexValue >= listSize) { failIndexOutOfBounds(index...
public class class_name { public @NotNull ListAssert contains(@Nullable Object o, @NotNull Index index) { checkNotNull(index); isNotNull().isNotEmpty(); int indexValue = index.value(); int listSize = actualGroupSize(); if (indexValue < 0 || indexValue >= listSize) { failIndexOutOfBounds(index...
public class class_name { @SuppressWarnings("rawtypes") public Map hgetAll(Object key) { Jedis jedis = getJedis(); try { Map<byte[], byte[]> data = jedis.hgetAll(keyToBytes(key)); Map<Object, Object> result = new HashMap<Object, Object>(); for (Entry<byte[], byte[]> e : data.entrySet()) result...
public class class_name { @SuppressWarnings("rawtypes") public Map hgetAll(Object key) { Jedis jedis = getJedis(); try { Map<byte[], byte[]> data = jedis.hgetAll(keyToBytes(key)); Map<Object, Object> result = new HashMap<Object, Object>(); for (Entry<byte[], byte[]> e : data.entrySet()) result...
public class class_name { @Requires("pathName != null") @Ensures("result != null") public static String getRelativeName(String pathName) { int lastSep = pathName.lastIndexOf('.'); if (lastSep == -1) { return pathName; } else { return pathName.substring(lastSep + 1); } } }
public class class_name { @Requires("pathName != null") @Ensures("result != null") public static String getRelativeName(String pathName) { int lastSep = pathName.lastIndexOf('.'); if (lastSep == -1) { return pathName; // depends on control dependency: [if], data = [none] } else { return pat...
public class class_name { public Result<V,E> get(K key) { CacheEntry entry = map.get(key); if(entry == null) { return null; } else { return entry.getResult(); } } }
public class class_name { public Result<V,E> get(K key) { CacheEntry entry = map.get(key); if(entry == null) { return null; // depends on control dependency: [if], data = [none] } else { return entry.getResult(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void tableSwitch(final int[] keys, final TableSwitchGenerator generator) { float density; if (keys.length == 0) { density = 0; } else { density = (float) keys.length / (keys[keys.length - 1] - keys[0] + 1);...
public class class_name { public void tableSwitch(final int[] keys, final TableSwitchGenerator generator) { float density; if (keys.length == 0) { density = 0; // depends on control dependency: [if], data = [none] } else { density = (float) keys.length ...
public class class_name { static SearchBuilder fromJson(String json) { try { return JsonSerializer.fromString(json, SearchBuilderLegacy.class).builder; } catch (IOException e) { throw new IndexException(e, "Unparseable JSON search: {}", json); } } }
public class class_name { static SearchBuilder fromJson(String json) { try { return JsonSerializer.fromString(json, SearchBuilderLegacy.class).builder; // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new IndexException(e, "Unparseable JSON ...
public class class_name { public Observable<ServiceResponse<Page<PublicIPAddressInner>>> listVirtualMachineScaleSetPublicIPAddressesNextWithServiceResponseAsync(final String nextPageLink) { return listVirtualMachineScaleSetPublicIPAddressesNextSinglePageAsync(nextPageLink) .concatMap(new Func1<Serv...
public class class_name { public Observable<ServiceResponse<Page<PublicIPAddressInner>>> listVirtualMachineScaleSetPublicIPAddressesNextWithServiceResponseAsync(final String nextPageLink) { return listVirtualMachineScaleSetPublicIPAddressesNextSinglePageAsync(nextPageLink) .concatMap(new Func1<Serv...
public class class_name { public static ListenableFuture<SnapshotCompletionInterest.SnapshotCompletionEvent> watchSnapshot(final String nonce) { final SettableFuture<SnapshotCompletionInterest.SnapshotCompletionEvent> result = SettableFuture.create(); SnapshotCompletionInterest int...
public class class_name { public static ListenableFuture<SnapshotCompletionInterest.SnapshotCompletionEvent> watchSnapshot(final String nonce) { final SettableFuture<SnapshotCompletionInterest.SnapshotCompletionEvent> result = SettableFuture.create(); SnapshotCompletionInterest int...
public class class_name { public void execute(final Collection<T> targets, final ForceExecuteCallback<T> callback) throws SQLException { Collection<SQLException> exceptions = new LinkedList<>(); for (T each : targets) { try { callback.execute(each); } catch (fina...
public class class_name { public void execute(final Collection<T> targets, final ForceExecuteCallback<T> callback) throws SQLException { Collection<SQLException> exceptions = new LinkedList<>(); for (T each : targets) { try { callback.execute(each); // depends on control dep...
public class class_name { protected void customizePortAddress(Message message) { String address = null; PortComponentRefInfo portInfo = null; if (null != wsrInfo) { QName portQName = getPortQName(message); if (null != portQName) { portInfo = wsrInfo.getP...
public class class_name { protected void customizePortAddress(Message message) { String address = null; PortComponentRefInfo portInfo = null; if (null != wsrInfo) { QName portQName = getPortQName(message); if (null != portQName) { portInfo = wsrInfo.getP...
public class class_name { public boolean visitTree(VisitContext context, VisitCallback callback) { try { pushComponentToEL(context.getFacesContext(), this); if (!isVisitable(context)) { return false; } VisitResult res = c...
public class class_name { public boolean visitTree(VisitContext context, VisitCallback callback) { try { pushComponentToEL(context.getFacesContext(), this); // depends on control dependency: [try], data = [none] if (!isVisitable(context)) { retur...
public class class_name { static boolean load(Map<String, String> storage, boolean reverse, String... pathArray) { StringDictionary dictionary = new StringDictionary("="); for (String path : pathArray) { if (!dictionary.load(path)) return false; } if (reverse) di...
public class class_name { static boolean load(Map<String, String> storage, boolean reverse, String... pathArray) { StringDictionary dictionary = new StringDictionary("="); for (String path : pathArray) { if (!dictionary.load(path)) return false; } if (reverse) di...
public class class_name { private int defaultThreadID() { long tid = Thread.currentThread().getId(); if (tid < MIN_SEQUENTIAL_THREAD_ID) { return (int) tid; } else { Integer id = threadIds.get(); if (id == null) { id = nextThreadId.getAndIncre...
public class class_name { private int defaultThreadID() { long tid = Thread.currentThread().getId(); if (tid < MIN_SEQUENTIAL_THREAD_ID) { return (int) tid; // depends on control dependency: [if], data = [none] } else { Integer id = threadIds.get(); if (id ==...
public class class_name { private void setExpectedAnswers(ArrayList<String> realms) { if (answers == null) { return; } for (String realm : realms) { try { answers.put(realm, ""); } catch (JSONException t) { logger.error("setEx...
public class class_name { private void setExpectedAnswers(ArrayList<String> realms) { if (answers == null) { return; // depends on control dependency: [if], data = [none] } for (String realm : realms) { try { answers.put(realm, ""); // depends on control...
public class class_name { public ConnectionsList withConnections(String... connections) { if (this.connections == null) { setConnections(new java.util.ArrayList<String>(connections.length)); } for (String ele : connections) { this.connections.add(ele); } ...
public class class_name { public ConnectionsList withConnections(String... connections) { if (this.connections == null) { setConnections(new java.util.ArrayList<String>(connections.length)); // depends on control dependency: [if], data = [none] } for (String ele : connections) { ...
public class class_name { public String readDMR() throws DapException { try { if(state != State.INITIAL) throw new DapException("Attempt to read DMR twice"); byte[] dmr8 = null; if(requestmode == RequestMode.DMR) { // The...
public class class_name { public String readDMR() throws DapException { try { if(state != State.INITIAL) throw new DapException("Attempt to read DMR twice"); byte[] dmr8 = null; if(requestmode == RequestMode.DMR) { // The...
public class class_name { public Registration getRegistration (Class type) { if (type == null) throw new IllegalArgumentException("type cannot be null."); Registration registration = classResolver.getRegistration(type); if (registration == null) { if (Proxy.isProxyClass(type)) { // If a Proxy class...
public class class_name { public Registration getRegistration (Class type) { if (type == null) throw new IllegalArgumentException("type cannot be null."); Registration registration = classResolver.getRegistration(type); if (registration == null) { if (Proxy.isProxyClass(type)) { // If a Proxy class...
public class class_name { void open(int groupSize) { try { close(); ConsumerConfig config = consumerConfig; if (groupSize != config.getGroupSize()) { config = new ConsumerConfig(consumerConfig.getGroupId(), consumerConfig.getInstanceId(), ...
public class class_name { void open(int groupSize) { try { close(); // depends on control dependency: [try], data = [none] ConsumerConfig config = consumerConfig; if (groupSize != config.getGroupSize()) { config = new ConsumerConfig(consumerConfig.getGroupId(), ...
public class class_name { public String[] getDeviceStateArray() { final String[] array = new String[deviceStateMap.size()]; int i = 0; for (final Map.Entry<String, DevState> deviceStateEntry : deviceStateMap.entrySet()) { final String deviceName = deviceStateEntry.getKey(); final DevState deviceState = d...
public class class_name { public String[] getDeviceStateArray() { final String[] array = new String[deviceStateMap.size()]; int i = 0; for (final Map.Entry<String, DevState> deviceStateEntry : deviceStateMap.entrySet()) { final String deviceName = deviceStateEntry.getKey(); final DevState deviceState = d...
public class class_name { private static boolean canBulkLoad(AsyncCacheLoader<?, ?> loader) { try { Class<?> defaultLoaderClass = AsyncCacheLoader.class; if (loader instanceof CacheLoader<?, ?>) { defaultLoaderClass = CacheLoader.class; Method classLoadAll = loader.getClass().getMethod...
public class class_name { private static boolean canBulkLoad(AsyncCacheLoader<?, ?> loader) { try { Class<?> defaultLoaderClass = AsyncCacheLoader.class; if (loader instanceof CacheLoader<?, ?>) { defaultLoaderClass = CacheLoader.class; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public Object visitEqualityExpression(ExcellentParser.EqualityExpressionContext ctx) { Pair<Object, Object> args = Conversions.toSame(visit(ctx.expression(0)), visit(ctx.expression(1)), m_evalContext); boolean equal; if (args.getLeft() instanceof String)...
public class class_name { @Override public Object visitEqualityExpression(ExcellentParser.EqualityExpressionContext ctx) { Pair<Object, Object> args = Conversions.toSame(visit(ctx.expression(0)), visit(ctx.expression(1)), m_evalContext); boolean equal; if (args.getLeft() instanceof String)...
public class class_name { private void addDict(String word, String... poses){ if(word.length() > MAX_LEN) MAX_LEN = word.length(); if(word.length() < MIN_LEN) MIN_LEN = word.length(); if(poses==null||poses.length==0){ if(!dp.containsKey(word)) dp.put(word, null); return; } for(int...
public class class_name { private void addDict(String word, String... poses){ if(word.length() > MAX_LEN) MAX_LEN = word.length(); if(word.length() < MIN_LEN) MIN_LEN = word.length(); if(poses==null||poses.length==0){ if(!dp.containsKey(word)) dp.put(word, null); return; // depends on co...
public class class_name { public static String displayNameFor(@Nonnull Job<?, ?> job) { GithubProjectProperty ghProp = job.getProperty(GithubProjectProperty.class); if (ghProp != null && isNotBlank(ghProp.getDisplayName())) { return ghProp.getDisplayName(); } return job.get...
public class class_name { public static String displayNameFor(@Nonnull Job<?, ?> job) { GithubProjectProperty ghProp = job.getProperty(GithubProjectProperty.class); if (ghProp != null && isNotBlank(ghProp.getDisplayName())) { return ghProp.getDisplayName(); // depends on control dependency:...
public class class_name { private char readEscapeCharacter() { if (pos == limit && !fillBuffer(1)) { throw syntaxError("Unterminated escape sequence"); } char escaped = buffer[pos++]; switch (escaped) { case 'u': if (pos + 4 > limit && !fillBuffer(4)) { throw syntaxError("Unt...
public class class_name { private char readEscapeCharacter() { if (pos == limit && !fillBuffer(1)) { throw syntaxError("Unterminated escape sequence"); } char escaped = buffer[pos++]; switch (escaped) { case 'u': if (pos + 4 > limit && !fillBuffer(4)) { throw syntaxError("Unt...
public class class_name { public Element createOrUpdateSingleChild(Element parent, String type) { Element result = null; if (parent.getElementsByTagName(type).getLength() == 0) { switch (namespace) { case HTML: result = Dom.createElementNS(Dom.NS_HTML, type); break; case SVG: result = Dom...
public class class_name { public Element createOrUpdateSingleChild(Element parent, String type) { Element result = null; if (parent.getElementsByTagName(type).getLength() == 0) { switch (namespace) { case HTML: result = Dom.createElementNS(Dom.NS_HTML, type); break; case SVG: result = Dom...
public class class_name { public static String removeAllEmojis(String emojiText) { for (Emoji emoji : EmojiManager.data()) { emojiText = emojiText.replace(emoji.getEmoji(), ""); } return emojiText; } }
public class class_name { public static String removeAllEmojis(String emojiText) { for (Emoji emoji : EmojiManager.data()) { emojiText = emojiText.replace(emoji.getEmoji(), ""); // depends on control dependency: [for], data = [emoji] } return emojiText; } }
public class class_name { public void generateStub(Element element) { try { getClassBuilder(element) .buildStubClass() .build() .writeTo(filer); } catch (Exception ex) { messager.printMessage(Diagnostic.Kind.WARN...
public class class_name { public void generateStub(Element element) { try { getClassBuilder(element) .buildStubClass() .build() .writeTo(filer); // depends on control dependency: [try], data = [none] } catch (Exception ex) { ...
public class class_name { public void update() { if (done) { return; } int processed = AL10.alGetSourcei(source, AL10.AL_BUFFERS_PROCESSED); while (processed > 0) { unqueued.clear(); AL10.alSourceUnqueueBuffers(source, unqueued); if (stream(unqueued.get(0))) { AL10.alSourc...
public class class_name { public void update() { if (done) { return; // depends on control dependency: [if], data = [none] } int processed = AL10.alGetSourcei(source, AL10.AL_BUFFERS_PROCESSED); while (processed > 0) { unqueued.clear(); // depends on control dependency: [while], data = [none] ...
public class class_name { public static final TypeCategory getTypeCategory(Type type) { if (type instanceof GenericObjectType) { return ((GenericObjectType) type).getTypeCategory(); } if (type instanceof ObjectType || type instanceof NullType) { return TypeCategory.PLAI...
public class class_name { public static final TypeCategory getTypeCategory(Type type) { if (type instanceof GenericObjectType) { return ((GenericObjectType) type).getTypeCategory(); // depends on control dependency: [if], data = [none] } if (type instanceof ObjectType || type insta...
public class class_name { public final void enumBodyDeclarations() throws RecognitionException { int enumBodyDeclarations_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 15) ) { return; } // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:334:5: (...
public class class_name { public final void enumBodyDeclarations() throws RecognitionException { int enumBodyDeclarations_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 15) ) { return; } // depends on control dependency: [if], data = [none] // src/main/resources/org...
public class class_name { public void clear() { if (mObjects.isEmpty()) { return; } synchronized (mLock) { final int size = getItemCount(); mObjects.clear(); notifyItemRangeRemoved(0, size); } } }
public class class_name { public void clear() { if (mObjects.isEmpty()) { return; // depends on control dependency: [if], data = [none] } synchronized (mLock) { final int size = getItemCount(); mObjects.clear(); notifyItemRangeRemoved(0, size); ...
public class class_name { public static ValueMatcher build(String value, ValueParser parser) { if (isMatchAllStr(value)) { //兼容Quartz的"?"表达式,不会出现互斥情况,与"*"作用相同 return new AlwaysTrueValueMatcher(); } List<Integer> values = parseArray(value, parser); if (values.size() == 0) { throw new CronExcep...
public class class_name { public static ValueMatcher build(String value, ValueParser parser) { if (isMatchAllStr(value)) { //兼容Quartz的"?"表达式,不会出现互斥情况,与"*"作用相同 return new AlwaysTrueValueMatcher(); // depends on control dependency: [if], data = [none] } List<Integer> values = parseArray(value, parser)...
public class class_name { private void recover(TimerTaskData taskData) { TimerTask task = timerTaskFactory.newTimerTask(taskData); if(task != null) { if (logger.isDebugEnabled()) { logger.debug("Recovering task with id "+taskData.getTaskID()); } task.beforeRecover(); // on recovery the task will al...
public class class_name { private void recover(TimerTaskData taskData) { TimerTask task = timerTaskFactory.newTimerTask(taskData); if(task != null) { if (logger.isDebugEnabled()) { logger.debug("Recovering task with id "+taskData.getTaskID()); // depends on control dependency: [if], data = [none] } ta...
public class class_name { public static String getDescription(Class<?> comp, Locale loc) { Description descr = (Description) comp.getAnnotation(Description.class); if (descr != null) { String lang = loc.getLanguage(); Method[] m = descr.getClass().getMethods(); for (...
public class class_name { public static String getDescription(Class<?> comp, Locale loc) { Description descr = (Description) comp.getAnnotation(Description.class); if (descr != null) { String lang = loc.getLanguage(); Method[] m = descr.getClass().getMethods(); for (...
public class class_name { private static String replaceOperators(String spel) { if (StringUtils.isBlank(spel)) { return spel; } return spel.replaceAll("==", " = ") .replaceAll("&&", " and ") .replaceAll("\\|\\|", " or "); } }
public class class_name { private static String replaceOperators(String spel) { if (StringUtils.isBlank(spel)) { return spel; // depends on control dependency: [if], data = [none] } return spel.replaceAll("==", " = ") .replaceAll("&&", " and ") .replaceAll("\...
public class class_name { public synchronized int addColumn(Vector col) { DoubleVector column = Vectors.asDouble(col); if (isFinished) throw new IllegalStateException( "Cannot add columns to a MatrixBuilder that is finished"); if (column instanceof SparseVector) { ...
public class class_name { public synchronized int addColumn(Vector col) { DoubleVector column = Vectors.asDouble(col); if (isFinished) throw new IllegalStateException( "Cannot add columns to a MatrixBuilder that is finished"); if (column instanceof SparseVector) { ...
public class class_name { private int getYearIfAny(StatementDocument document, String propertyId) { TimeValue date = document.findStatementTimeValue(propertyId); if (date != null && date.getPrecision() >= TimeValue.PREC_YEAR) { return (int) date.getYear(); } else { return Integer.MIN_VALUE; } } }
public class class_name { private int getYearIfAny(StatementDocument document, String propertyId) { TimeValue date = document.findStatementTimeValue(propertyId); if (date != null && date.getPrecision() >= TimeValue.PREC_YEAR) { return (int) date.getYear(); // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean add(WeightedDirectedTypedEdge<T> e) { if (e.from() == rootVertex) { Set<WeightedDirectedTypedEdge<T>> edges = outEdges.get(e.to()); if (edges.contains(e)) return false; // We can't rely on the edge's equality method s...
public class class_name { public boolean add(WeightedDirectedTypedEdge<T> e) { if (e.from() == rootVertex) { Set<WeightedDirectedTypedEdge<T>> edges = outEdges.get(e.to()); if (edges.contains(e)) return false; // We can't rely on the edge's equality method s...
public class class_name { public Object getFirst(String name) { Object value = get(name); if (value instanceof Collection<?>) { @SuppressWarnings("unchecked") Collection<Object> collectionValue = (Collection<Object>) value; Iterator<Object> iterator = collectionValue.iterator(); return ...
public class class_name { public Object getFirst(String name) { Object value = get(name); if (value instanceof Collection<?>) { @SuppressWarnings("unchecked") Collection<Object> collectionValue = (Collection<Object>) value; Iterator<Object> iterator = collectionValue.iterator(); return ...
public class class_name { public static synchronized void getConnectionListener(String poolName, Object mcp, Object cl, boolean pooled, boolean interleaving, Throwable callstack) { if (!interleavi...
public class class_name { public static synchronized void getConnectionListener(String poolName, Object mcp, Object cl, boolean pooled, boolean interleaving, Throwable callstack) { if (!interleavi...
public class class_name { @Override public void componentMetaDataCreated(MetaDataEvent<ComponentMetaData> event) { JaccService js = jaccService.getService(); if (js != null) { MetaData metaData = event.getMetaData(); if (metaData instanceof BeanMetaData) { Be...
public class class_name { @Override public void componentMetaDataCreated(MetaDataEvent<ComponentMetaData> event) { JaccService js = jaccService.getService(); if (js != null) { MetaData metaData = event.getMetaData(); if (metaData instanceof BeanMetaData) { Be...
public class class_name { public static base_responses update(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip updateresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ updateresource...
public class class_name { public static base_responses update(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip updateresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ updateresource...
public class class_name { public Object getProperty(String property) { /** @todo we should check if we have the property with the metaClass instead of try/catch */ try { return super.getProperty(property); } catch (MissingPropertyException e) { return getVariabl...
public class class_name { public Object getProperty(String property) { /** @todo we should check if we have the property with the metaClass instead of try/catch */ try { return super.getProperty(property); // depends on control dependency: [try], data = [none] } catch (Miss...
public class class_name { public String getName() { if(name==null) { String temp = get("iv-user"); if(temp==null)return null; StringBuilder sb = new StringBuilder(); int at = temp.indexOf('@'); if(at<0) { sb.append(temp); } else { sb.append(temp.substring(0, at)); } if(temp.endsWith("...
public class class_name { public String getName() { if(name==null) { String temp = get("iv-user"); if(temp==null)return null; StringBuilder sb = new StringBuilder(); int at = temp.indexOf('@'); if(at<0) { sb.append(temp); // depends on control dependency: [if], data = [none] } else { sb.app...
public class class_name { public static int getTwoWordFreq(Term from, Term to) { if (from.item().bigramEntryMap == null) { return 0; } Integer freq = from.item().bigramEntryMap.get(to.item().getIndex()); if (freq == null) { return 0; } else { ...
public class class_name { public static int getTwoWordFreq(Term from, Term to) { if (from.item().bigramEntryMap == null) { return 0; // depends on control dependency: [if], data = [none] } Integer freq = from.item().bigramEntryMap.get(to.item().getIndex()); if (freq == null)...
public class class_name { public void setBackRouteHeader(byte[] data) { // here in data is whole message, we want first 5 bytes! int thisPointCode = Mtp3.dpc(data, 1); int remotePointCode = Mtp3.opc(data, 1); int sls = Mtp3.sls(data, 1); int si = Mtp3.si(data); int ssi =...
public class class_name { public void setBackRouteHeader(byte[] data) { // here in data is whole message, we want first 5 bytes! int thisPointCode = Mtp3.dpc(data, 1); int remotePointCode = Mtp3.opc(data, 1); int sls = Mtp3.sls(data, 1); int si = Mtp3.si(data); int ssi =...
public class class_name { @Then("^the element on index '(\\d+?)' has '(.+?)' as text$") public void assertSeleniumTextOnElementPresent(Integer index, String text) { assertThat(commonspec.getPreviousWebElements()).as("There are less found elements than required") .hasAtLeast(index); ...
public class class_name { @Then("^the element on index '(\\d+?)' has '(.+?)' as text$") public void assertSeleniumTextOnElementPresent(Integer index, String text) { assertThat(commonspec.getPreviousWebElements()).as("There are less found elements than required") .hasAtLeast(index); ...
public class class_name { private void appendEncoded(StringBuilder builder, String s, Charset charset, boolean isPartiallyEncoded) { if (s == null) { throw new NullPointerException("s == null"); } int escapeStart = -1; for (int i = 0; i < s.length(); i++) { ...
public class class_name { private void appendEncoded(StringBuilder builder, String s, Charset charset, boolean isPartiallyEncoded) { if (s == null) { throw new NullPointerException("s == null"); } int escapeStart = -1; for (int i = 0; i < s.length(); i++) { ...
public class class_name { public void marshall(SchemaAttributeType schemaAttributeType, ProtocolMarshaller protocolMarshaller) { if (schemaAttributeType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(SchemaAttributeType schemaAttributeType, ProtocolMarshaller protocolMarshaller) { if (schemaAttributeType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public CountDownLatch broadcastOperation(final BroadcastOpFactory of, final Collection<MemcachedNode> nodes) { final CountDownLatch latch = new CountDownLatch(nodes.size()); for (MemcachedNode node : nodes) { getLogger().debug("broadcast Operation: node = " + node); O...
public class class_name { public CountDownLatch broadcastOperation(final BroadcastOpFactory of, final Collection<MemcachedNode> nodes) { final CountDownLatch latch = new CountDownLatch(nodes.size()); for (MemcachedNode node : nodes) { getLogger().debug("broadcast Operation: node = " + node); // depe...
public class class_name { public EClass getGSLJ() { if (gsljEClass == null) { gsljEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(487); } return gsljEClass; } }
public class class_name { public EClass getGSLJ() { if (gsljEClass == null) { gsljEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(487); // depends on control dependency: [if], data = [none] } return gsljEClass; } }
public class class_name { public IIsotope[] getIsotopes(int elem) { if (isotopes[elem] == null) return EMPTY_ISOTOPE_ARRAY; List<IIsotope> list = new ArrayList<>(); for (IIsotope isotope : isotopes[elem]) { list.add(clone(isotope)); } return list.toArray(...
public class class_name { public IIsotope[] getIsotopes(int elem) { if (isotopes[elem] == null) return EMPTY_ISOTOPE_ARRAY; List<IIsotope> list = new ArrayList<>(); for (IIsotope isotope : isotopes[elem]) { list.add(clone(isotope)); // depends on control dependency: [for...
public class class_name { public void setEnabled(boolean enabled) { super.setEnabled(enabled); for (short i = 0; i < days.length; i++) { if (days[i] != null) { days[i].setEnabled(enabled); } } for (short i = 0; i < weeks.length; i++) { if (weeks[i] != null) { weeks[i].setEnabled(enabled); ...
public class class_name { public void setEnabled(boolean enabled) { super.setEnabled(enabled); for (short i = 0; i < days.length; i++) { if (days[i] != null) { days[i].setEnabled(enabled); // depends on control dependency: [if], data = [none] } } for (short i = 0; i < weeks.length; i++) { if (we...
public class class_name { public static String resolveAuthBearerToken(final HttpServletRequest request) { String header = request.getHeader(HEADER_AUTHORIZATION); if (header == null) { return null; } int ndx = header.indexOf("Bearer "); if (ndx == -1) { return null; } return header.substring(ndx +...
public class class_name { public static String resolveAuthBearerToken(final HttpServletRequest request) { String header = request.getHeader(HEADER_AUTHORIZATION); if (header == null) { return null; // depends on control dependency: [if], data = [none] } int ndx = header.indexOf("Bearer "); if (ndx == -1) ...
public class class_name { protected List<RedisFuture<Void>> resubscribe() { List<RedisFuture<Void>> result = new ArrayList<>(); if (endpoint.hasChannelSubscriptions()) { result.add(async().subscribe(toArray(endpoint.getChannels()))); } if (endpoint.hasPatternSubscriptions...
public class class_name { protected List<RedisFuture<Void>> resubscribe() { List<RedisFuture<Void>> result = new ArrayList<>(); if (endpoint.hasChannelSubscriptions()) { result.add(async().subscribe(toArray(endpoint.getChannels()))); // depends on control dependency: [if], data = [none] ...
public class class_name { public static HttpHandler getNext(HttpServerExchange httpServerExchange) { String chainId = httpServerExchange.getAttachment(CHAIN_ID); List<HttpHandler> handlersForId = handlerListById.get(chainId); Integer nextIndex = httpServerExchange.getAttachment(CHAIN_SEQ); // Check if we've re...
public class class_name { public static HttpHandler getNext(HttpServerExchange httpServerExchange) { String chainId = httpServerExchange.getAttachment(CHAIN_ID); List<HttpHandler> handlersForId = handlerListById.get(chainId); Integer nextIndex = httpServerExchange.getAttachment(CHAIN_SEQ); // Check if we've re...
public class class_name { public void marshall(ResourceIdentifier resourceIdentifier, ProtocolMarshaller protocolMarshaller) { if (resourceIdentifier == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(ResourceIdentifier resourceIdentifier, ProtocolMarshaller protocolMarshaller) { if (resourceIdentifier == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { static void constructAvgHitsGraph(Map.Entry<String, LrProjectScenarioResults> scenarioResults, JSONObject scenarioGraphData) { Map<Integer, WholeRunResult> avgHitsPerSec = scenarioResults.getValue().getAverageHitsPerSecondResults(); JSONOb...
public class class_name { static void constructAvgHitsGraph(Map.Entry<String, LrProjectScenarioResults> scenarioResults, JSONObject scenarioGraphData) { Map<Integer, WholeRunResult> avgHitsPerSec = scenarioResults.getValue().getAverageHitsPerSecondResults(); JSONOb...
public class class_name { private void createSearchResultsCache() { final String METHODNAME = "createSearchResultsCache"; if (iSearchResultsCacheEnabled) { if (FactoryManager.getCacheUtil().isCacheAvailable()) { iSearchResultsCache = FactoryManager.getCacheUtil().initialize...
public class class_name { private void createSearchResultsCache() { final String METHODNAME = "createSearchResultsCache"; if (iSearchResultsCacheEnabled) { if (FactoryManager.getCacheUtil().isCacheAvailable()) { iSearchResultsCache = FactoryManager.getCacheUtil().initialize...
public class class_name { public static JavaType findRootType(JavaType contentType) { if (contentType.hasGenericTypes()) { return findRootType(contentType.containedType(0)); } else { return contentType; } } }
public class class_name { public static JavaType findRootType(JavaType contentType) { if (contentType.hasGenericTypes()) { return findRootType(contentType.containedType(0)); // depends on control dependency: [if], data = [none] } else { return contentType; // depends on control dependency: [if], data = [non...
public class class_name { public CommandAndIPAddress getCommandAndIPAddress() { CommandAndIPAddress command = null; synchronized(this) { if (commandQueue.size() > 0) { command = commandQueue.remove(0); } } return command; ...
public class class_name { public CommandAndIPAddress getCommandAndIPAddress() { CommandAndIPAddress command = null; synchronized(this) { if (commandQueue.size() > 0) { command = commandQueue.remove(0); // depends on control dependency: [if], data = [0...
public class class_name { public final void mOR() throws RecognitionException { try { int _type = OR; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:632:5: ( ( 'OR' | 'or' ) ) // druidG.g:632:7: ( 'OR' | 'or' ) { // druidG.g:632:7: ( 'OR' | 'or' ) int alt21=2; int LA21_0 = input.LA(1); ...
public class class_name { public final void mOR() throws RecognitionException { try { int _type = OR; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:632:5: ( ( 'OR' | 'or' ) ) // druidG.g:632:7: ( 'OR' | 'or' ) { // druidG.g:632:7: ( 'OR' | 'or' ) int alt21=2; int LA21_0 = input.LA(1); ...
public class class_name { public static void modify(FedoraAPIMMTOM APIM, Uploader UPLOADER, FedoraAPIAMTOM APIA, String directivesFilePath, String logFilePath, boolean i...
public class class_name { public static void modify(FedoraAPIMMTOM APIM, Uploader UPLOADER, FedoraAPIAMTOM APIA, String directivesFilePath, String logFilePath, boolean i...
public class class_name { @SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithSpec(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { final Collection<SpaceID> ispaces = this.spacesByS...
public class class_name { @SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithSpec(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { final Collection<SpaceID> ispaces = this.spacesByS...
public class class_name { @SuppressWarnings("unchecked") public int compare(Subject a, Subject b) { int result = 0; Set<Attribute> setA = new TreeSet<Attribute>(ATTRIBUTE_COMPARATOR); setA.addAll(a.getAttributesAsList()); Set<Attribute> setB = new TreeSet<Attribute>(ATTRIBUTE_COMP...
public class class_name { @SuppressWarnings("unchecked") public int compare(Subject a, Subject b) { int result = 0; Set<Attribute> setA = new TreeSet<Attribute>(ATTRIBUTE_COMPARATOR); setA.addAll(a.getAttributesAsList()); Set<Attribute> setB = new TreeSet<Attribute>(ATTRIBUTE_COMP...
public class class_name { @Override protected void handleTransliterate(Replaceable text, Position offsets, boolean isIncremental) { // start and limit of the input range int start = offsets.start; int limit = offsets.limit; if(start >= limit) { return; ...
public class class_name { @Override protected void handleTransliterate(Replaceable text, Position offsets, boolean isIncremental) { // start and limit of the input range int start = offsets.start; int limit = offsets.limit; if(start >= limit) { return; // dep...
public class class_name { void logPoolState(String... prefix) { if (logger.isDebugEnabled()) { logger.debug("{} - {}stats (total={}, active={}, idle={}, waiting={})", poolName, (prefix.length > 0 ? prefix[0] : ""), getTotalConnections(), getActiveConnection...
public class class_name { void logPoolState(String... prefix) { if (logger.isDebugEnabled()) { logger.debug("{} - {}stats (total={}, active={}, idle={}, waiting={})", poolName, (prefix.length > 0 ? prefix[0] : ""), getTotalConnections(), getActiveConnection...
public class class_name { @SuppressWarnings("unchecked") public <T> T getValue(final String key) { T val = (T) map.get(key); if (val instanceof Map) { return (T) new JsonObject((Map) val); } if (val instanceof List) { return (T) new JsonArray((List) val); } return val; } }
public class class_name { @SuppressWarnings("unchecked") public <T> T getValue(final String key) { T val = (T) map.get(key); if (val instanceof Map) { return (T) new JsonObject((Map) val); // depends on control dependency: [if], data = [none] } if (val instanceof List) { return (T) new JsonArray((List)...
public class class_name { private Iterator<Record> readBatch(final DeltaPlacement placement, final Collection<Key> keys, final ReadConsistency consistency) { checkNotNull(keys, "keys"); // Convert the keys to ByteBuffer Cassandra row keys List<Map.Entry<ByteBuffer, Key>> rowKeys = Lists.newArr...
public class class_name { private Iterator<Record> readBatch(final DeltaPlacement placement, final Collection<Key> keys, final ReadConsistency consistency) { checkNotNull(keys, "keys"); // Convert the keys to ByteBuffer Cassandra row keys List<Map.Entry<ByteBuffer, Key>> rowKeys = Lists.newArr...
public class class_name { private void removeMsg(final AppMsg appMsg) { clearMsg(appMsg); final View view = appMsg.getView(); ViewGroup parent = ((ViewGroup) view.getParent()); if (parent != null) { appMsg.mOutAnimation.setAnimationListener(new OutAnimationListener(appMsg));...
public class class_name { private void removeMsg(final AppMsg appMsg) { clearMsg(appMsg); final View view = appMsg.getView(); ViewGroup parent = ((ViewGroup) view.getParent()); if (parent != null) { appMsg.mOutAnimation.setAnimationListener(new OutAnimationListener(appMsg));...
public class class_name { public static ArrayDBIDs[] randomSplit(DBIDs oids, int p, Random random) { // Fast, and we're single-threaded here anyway. random = random != null ? random : new FastNonThreadsafeRandom(); ArrayModifiableDBIDs ids = newArray(oids); final int size = ids.size(); ArrayDBIDs[]...
public class class_name { public static ArrayDBIDs[] randomSplit(DBIDs oids, int p, Random random) { // Fast, and we're single-threaded here anyway. random = random != null ? random : new FastNonThreadsafeRandom(); ArrayModifiableDBIDs ids = newArray(oids); final int size = ids.size(); ArrayDBIDs[]...
public class class_name { public SkillDetails withSkillTypes(String... skillTypes) { if (this.skillTypes == null) { setSkillTypes(new java.util.ArrayList<String>(skillTypes.length)); } for (String ele : skillTypes) { this.skillTypes.add(ele); } return thi...
public class class_name { public SkillDetails withSkillTypes(String... skillTypes) { if (this.skillTypes == null) { setSkillTypes(new java.util.ArrayList<String>(skillTypes.length)); // depends on control dependency: [if], data = [none] } for (String ele : skillTypes) { ...
public class class_name { public Object put(String key, Short value) { if (value == null) { stateMap.put(key, Type.NULL); } else { stateMap.put(key, Type.LONG); } return super.put(key, value); } }
public class class_name { public Object put(String key, Short value) { if (value == null) { stateMap.put(key, Type.NULL); // depends on control dependency: [if], data = [none] } else { stateMap.put(key, Type.LONG); // depends on control dependency: [if], data = [none] } return super.put(key, value); } ...
public class class_name { private void sendEmptyRequest(String path, String method) throws DatastoreEmulatorException { HttpURLConnection connection = null; try { URL url = new URL(this.host + path); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); co...
public class class_name { private void sendEmptyRequest(String path, String method) throws DatastoreEmulatorException { HttpURLConnection connection = null; try { URL url = new URL(this.host + path); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); co...
public class class_name { @CheckResult @NonNull public static PowerAdapter concat(@NonNull PowerAdapter... adapters) { checkNotNull(adapters, "adapters"); if (adapters.length == 0) { return EMPTY; } if (adapters.length == 1) { return adapters[0]; ...
public class class_name { @CheckResult @NonNull public static PowerAdapter concat(@NonNull PowerAdapter... adapters) { checkNotNull(adapters, "adapters"); if (adapters.length == 0) { return EMPTY; // depends on control dependency: [if], data = [none] } if (adapters.l...
public class class_name { public void marshall(DeleteUserRequest deleteUserRequest, ProtocolMarshaller protocolMarshaller) { if (deleteUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { public void marshall(DeleteUserRequest deleteUserRequest, ProtocolMarshaller protocolMarshaller) { if (deleteUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { public void read_lock( Key<Job> job_key ) { if( _key != null ) { Log.debug("shared-read-lock "+_key+" by job "+job_key); new ReadLock(job_key).invoke(_key); } } }
public class class_name { public void read_lock( Key<Job> job_key ) { if( _key != null ) { Log.debug("shared-read-lock "+_key+" by job "+job_key); // depends on control dependency: [if], data = [none] new ReadLock(job_key).invoke(_key); // depends on control dependency: [if], data = [none] } } ...
public class class_name { public ElementBase realize(ElementBase parent) { if (!deleted && real == null) { real = getDefinition().createElement(parent, null, false); } else if (deleted && real != null) { real.remove(true); real = null; } return real;...
public class class_name { public ElementBase realize(ElementBase parent) { if (!deleted && real == null) { real = getDefinition().createElement(parent, null, false); // depends on control dependency: [if], data = [none] } else if (deleted && real != null) { real.remove(true); //...
public class class_name { @Override public List<E> subList(int fromIndex, int toIndex) { final ReentrantLock lock = this.lock; lock.lock(); try { Object[] elements = getArray(); int len = elements.length; if (fromIndex < 0 || toIndex > len || fromIndex > ...
public class class_name { @Override public List<E> subList(int fromIndex, int toIndex) { final ReentrantLock lock = this.lock; lock.lock(); try { Object[] elements = getArray(); int len = elements.length; if (fromIndex < 0 || toIndex > len || fromIndex > ...
public class class_name { private static List<String> dedup(List<String> encoded, Map<String, Integer> nameToLastIndex) { boolean[] isLastInstance = new boolean[encoded.size()]; for (int idx : nameToLastIndex.values()) { isLastInstance[idx] = true; } List<String> dedupd = ne...
public class class_name { private static List<String> dedup(List<String> encoded, Map<String, Integer> nameToLastIndex) { boolean[] isLastInstance = new boolean[encoded.size()]; for (int idx : nameToLastIndex.values()) { isLastInstance[idx] = true; // depends on control dependency: [for], d...
public class class_name { public static RoleBean unmarshallRole(Map<String, Object> source) { if (source == null) { return null; } RoleBean bean = new RoleBean(); bean.setId(asString(source.get("id"))); bean.setName(asString(source.get("name"))); bean.setDesc...
public class class_name { public static RoleBean unmarshallRole(Map<String, Object> source) { if (source == null) { return null; // depends on control dependency: [if], data = [none] } RoleBean bean = new RoleBean(); bean.setId(asString(source.get("id"))); bean.setNa...
public class class_name { public static String rset(String input, int width) { String result; // result to return StringBuilder pad = new StringBuilder(); if (input == null) { for (int i = 0; i < width - 1; i++) { pad.append(' '); // put blanks into buffer ...
public class class_name { public static String rset(String input, int width) { String result; // result to return StringBuilder pad = new StringBuilder(); if (input == null) { for (int i = 0; i < width - 1; i++) { pad.append(' '); // put blanks into buffer // de...
public class class_name { Duration addDays(final int amount) { Duration duration; if (amount < 0) { duration = getDatatypeFactory().newDuration(false, 0, 0, Math.abs(amount), 0, 0, 0); } else { duration = getDatatypeFactory().newDuration(true, 0, 0, amount, 0, 0, 0); ...
public class class_name { Duration addDays(final int amount) { Duration duration; if (amount < 0) { duration = getDatatypeFactory().newDuration(false, 0, 0, Math.abs(amount), 0, 0, 0); // depends on control dependency: [if], data = [(amount] } else { duration = getDataty...
public class class_name { public void Divide(double scalar) { if (scalar == 0) { try { throw new ArithmeticException("Can not divide by zero."); } catch (Exception e) { e.printStackTrace(); } } this.real /= scalar; ...
public class class_name { public void Divide(double scalar) { if (scalar == 0) { try { throw new ArithmeticException("Can not divide by zero."); } catch (Exception e) { e.printStackTrace(); } // depends on control dependency: [catch],...
public class class_name { public static int getLoadReg(DismantleBytecode dbc, int seen) { if ((seen == Const.ALOAD) || (seen == Const.ILOAD) || (seen == Const.LLOAD) || (seen == Const.FLOAD) || (seen == Const.DLOAD)) { return dbc.getRegisterOperand(); } if (OpcodeUtils.isILoad(seen)...
public class class_name { public static int getLoadReg(DismantleBytecode dbc, int seen) { if ((seen == Const.ALOAD) || (seen == Const.ILOAD) || (seen == Const.LLOAD) || (seen == Const.FLOAD) || (seen == Const.DLOAD)) { return dbc.getRegisterOperand(); // depends on control dependency: [if], data = ...
public class class_name { private void computePartialChunkCrc(long blkoff, long ckoff, int bytesPerChecksum, DataChecksum checksum) throws IOException { // find offset of the beginning of partial chunk. // int sizePartialChunk = (int) (blkoff % bytesPerChecksum); int checksumSize = checksum.getC...
public class class_name { private void computePartialChunkCrc(long blkoff, long ckoff, int bytesPerChecksum, DataChecksum checksum) throws IOException { // find offset of the beginning of partial chunk. // int sizePartialChunk = (int) (blkoff % bytesPerChecksum); int checksumSize = checksum.getC...
public class class_name { public void marshall(MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest, ProtocolMarshaller protocolMarshaller) { if (mergeDeveloperIdentitiesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public void marshall(MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest, ProtocolMarshaller protocolMarshaller) { if (mergeDeveloperIdentitiesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { private String alignINClause(String in) { String paramIn = in; final int indexLowerIn = paramIn.indexOf(IN_LOWER); final int indexLowerInWithParentheses = paramIn.indexOf(IN_LOWER_P); final int indexUpperIn = paramIn.indexOf(IN_UPPER); final int indexUp...
public class class_name { private String alignINClause(String in) { String paramIn = in; final int indexLowerIn = paramIn.indexOf(IN_LOWER); final int indexLowerInWithParentheses = paramIn.indexOf(IN_LOWER_P); final int indexUpperIn = paramIn.indexOf(IN_UPPER); final int indexUp...
public class class_name { @Override public List<ScopNode> getTree(ScopDomain domain){ ScopNode node = getScopNode(domain.getSunid()); List<ScopNode> tree = new ArrayList<ScopNode>(); while (node != null){ //System.out.println("This node: sunid:" + node.getSunid() ); //System.out.println(getScopDescript...
public class class_name { @Override public List<ScopNode> getTree(ScopDomain domain){ ScopNode node = getScopNode(domain.getSunid()); List<ScopNode> tree = new ArrayList<ScopNode>(); while (node != null){ //System.out.println("This node: sunid:" + node.getSunid() ); //System.out.println(getScopDescript...
public class class_name { public ServiceCall<Void> deleteAudio(DeleteAudioOptions deleteAudioOptions) { Validator.notNull(deleteAudioOptions, "deleteAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { deleteAudioOptions.customization...
public class class_name { public ServiceCall<Void> deleteAudio(DeleteAudioOptions deleteAudioOptions) { Validator.notNull(deleteAudioOptions, "deleteAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { deleteAudioOptions.customization...
public class class_name { public @CheckForNull XClass getXClass(ClassDescriptor classDescriptor) { try { IAnalysisCache analysisCache = Global.getAnalysisCache(); return analysisCache.getClassAnalysis(XClass.class, classDescriptor); } catch (CheckedAnalysisException e) { ...
public class class_name { public @CheckForNull XClass getXClass(ClassDescriptor classDescriptor) { try { IAnalysisCache analysisCache = Global.getAnalysisCache(); return analysisCache.getClassAnalysis(XClass.class, classDescriptor); // depends on control dependency: [try], data = [n...
public class class_name { public <T1, T2> void op(BinaryOp op, Local<T1> target, Local<T1> a, Local<T2> b) { Rop rop = op.rop(StdTypeList.make(a.type.ropType, b.type.ropType)); RegisterSpecList sources = RegisterSpecList.make(a.spec(), b.spec()); if (rop.getBranchingness() == BRANCH_NONE) { ...
public class class_name { public <T1, T2> void op(BinaryOp op, Local<T1> target, Local<T1> a, Local<T2> b) { Rop rop = op.rop(StdTypeList.make(a.type.ropType, b.type.ropType)); RegisterSpecList sources = RegisterSpecList.make(a.spec(), b.spec()); if (rop.getBranchingness() == BRANCH_NONE) { ...
public class class_name { public BigMoney minusRetainScale(BigDecimal amountToSubtract, RoundingMode roundingMode) { MoneyUtils.checkNotNull(amountToSubtract, "Amount must not be null"); if (amountToSubtract.compareTo(BigDecimal.ZERO) == 0) { return this; } BigDecimal n...
public class class_name { public BigMoney minusRetainScale(BigDecimal amountToSubtract, RoundingMode roundingMode) { MoneyUtils.checkNotNull(amountToSubtract, "Amount must not be null"); if (amountToSubtract.compareTo(BigDecimal.ZERO) == 0) { return this; // depends on control dependenc...
public class class_name { protected Promise disconnect() { if (client == null) { status.set(STATUS_DISCONNECTED); return Promise.resolve(); } status.set(STATUS_DISCONNECTING); return client.disconnect().then(ok -> { status.set(STATUS_DISCONNECTED); }).catchError(cause -> { logger.error("...
public class class_name { protected Promise disconnect() { if (client == null) { status.set(STATUS_DISCONNECTED); // depends on control dependency: [if], data = [none] return Promise.resolve(); // depends on control dependency: [if], data = [none] } status.set(STATUS_DISCONNECTING); return client.d...
public class class_name { private static OWLValueObject buildFromClasAndCollection(OWLModel model, OWLURIClass uriClass, Collection collection) throws NotYetImplementedException, OWLTranslationException { OWLList<OWLIndividual> owlList = ObjectOWLSTranslator.owlListFromOWLModel(model); Object[...
public class class_name { private static OWLValueObject buildFromClasAndCollection(OWLModel model, OWLURIClass uriClass, Collection collection) throws NotYetImplementedException, OWLTranslationException { OWLList<OWLIndividual> owlList = ObjectOWLSTranslator.owlListFromOWLModel(model); Object[...
public class class_name { @Override public final void reset(final long mNodeKey) { super.reset(mNodeKey); if (mParentAxis != null) { mParentAxis.reset(mNodeKey); } if (mChildAxis != null) { mChildAxis.reset(mNodeKey); } mIsFirst = true; } ...
public class class_name { @Override public final void reset(final long mNodeKey) { super.reset(mNodeKey); if (mParentAxis != null) { mParentAxis.reset(mNodeKey); // depends on control dependency: [if], data = [none] } if (mChildAxis != null) { mChildAxis.rese...
public class class_name { public LocaleEncodingMappingType<LocaleEncodingMappingListType<T>> getOrCreateLocaleEncodingMapping() { List<Node> nodeList = childNode.get("locale-encoding-mapping"); if (nodeList != null && nodeList.size() > 0) { return new LocaleEncodingMappingTypeImpl<Locale...
public class class_name { public LocaleEncodingMappingType<LocaleEncodingMappingListType<T>> getOrCreateLocaleEncodingMapping() { List<Node> nodeList = childNode.get("locale-encoding-mapping"); if (nodeList != null && nodeList.size() > 0) { return new LocaleEncodingMappingTypeImpl<Locale...
public class class_name { public Array convertNestedVariable(ucar.nc2.Variable v, List<Range> section, DodsV dataV, boolean flatten) throws IOException, DAP2Exception { Array data = convertTopVariable(v, section, dataV); if (flatten) { ArrayStructure as = (ArrayStructure) data; // make list o...
public class class_name { public Array convertNestedVariable(ucar.nc2.Variable v, List<Range> section, DodsV dataV, boolean flatten) throws IOException, DAP2Exception { Array data = convertTopVariable(v, section, dataV); if (flatten) { ArrayStructure as = (ArrayStructure) data; // make list o...
public class class_name { public List<AutoScalingPolicy> getTriggeredPolicies() { List<AutoScalingPolicy> triggeredPolicies = new ArrayList<>(); for (AutoScalingPolicy policy : group.getScalingPolicies()) { List<TimePoint<Double>> metricValues = getMetricValues(policy.getMetricName()); int triggerC...
public class class_name { public List<AutoScalingPolicy> getTriggeredPolicies() { List<AutoScalingPolicy> triggeredPolicies = new ArrayList<>(); for (AutoScalingPolicy policy : group.getScalingPolicies()) { List<TimePoint<Double>> metricValues = getMetricValues(policy.getMetricName()); int triggerC...
public class class_name { public List<Item> deleteAllSelectedItems() { List<Item> deletedItems = new ArrayList<>(); final List<Integer> positions = new ArrayList<>(); mFastAdapter.recursive(new AdapterPredicate<Item>() { @Override public boolean apply(@NonNull IAdapter<...
public class class_name { public List<Item> deleteAllSelectedItems() { List<Item> deletedItems = new ArrayList<>(); final List<Integer> positions = new ArrayList<>(); mFastAdapter.recursive(new AdapterPredicate<Item>() { @Override public boolean apply(@NonNull IAdapter<...