code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public void setValueAt(final Object value, final List<Integer> row, final int col) { if (!isEditable()) { throw new IllegalStateException("Attempted to set a value on an uneditable model"); } Object rowBean = getRowBean(row); if (rowBean == null) { return; } int...
public class class_name { @Override public void setValueAt(final Object value, final List<Integer> row, final int col) { if (!isEditable()) { throw new IllegalStateException("Attempted to set a value on an uneditable model"); } Object rowBean = getRowBean(row); if (rowBean == null) { return; // depends...
public class class_name { public static void main(String[] args) { try { Twitter twitter = new TwitterFactory().getInstance(); int page = 1; List<User> users; do { users = twitter.getBlocksList(page); for (User user : users) { ...
public class class_name { public static void main(String[] args) { try { Twitter twitter = new TwitterFactory().getInstance(); int page = 1; List<User> users; do { users = twitter.getBlocksList(page); for (User user : users) { ...
public class class_name { public static boolean isUDPLower(final Buffer t) { try { return t.capacity() == 3 && t.getByte(0) == 'u' && t.getByte(1) == 'd' && t.getByte(2) == 'p'; } catch (final IOException e) { return false; } } }
public class class_name { public static boolean isUDPLower(final Buffer t) { try { return t.capacity() == 3 && t.getByte(0) == 'u' && t.getByte(1) == 'd' && t.getByte(2) == 'p'; // depends on control dependency: [try], data = [none] } catch (final IOException e) { return false; ...
public class class_name { protected void init(Context context, AttributeSet attrs, int defStyle) { // Load custom attributes final int layoutId; final CharSequence floatLabelText; final int floatLabelTextAppearance; final int floatLabelTextColor; final float floatLabelTe...
public class class_name { protected void init(Context context, AttributeSet attrs, int defStyle) { // Load custom attributes final int layoutId; final CharSequence floatLabelText; final int floatLabelTextAppearance; final int floatLabelTextColor; final float floatLabelTe...
public class class_name { private ApiDoc getApiDoc(Class<?> controller, MethodDisplay displayMethodAs) { log.debug("Getting JSONDoc for class: " + controller.getName()); ApiDoc apiDoc = initApiDoc(controller); apiDoc.setSupportedversions(JSONDocApiVersionDocBuilder.build(controller)); apiDoc.setAuth(JSONDocAp...
public class class_name { private ApiDoc getApiDoc(Class<?> controller, MethodDisplay displayMethodAs) { log.debug("Getting JSONDoc for class: " + controller.getName()); ApiDoc apiDoc = initApiDoc(controller); apiDoc.setSupportedversions(JSONDocApiVersionDocBuilder.build(controller)); apiDoc.setAuth(JSONDocAp...
public class class_name { public static int compareLexicographically(IntTuple t0, IntTuple t1) { Utils.checkForEqualSize(t0, t1); for (int i=0; i<t0.getSize(); i++) { if (t0.get(i) < t1.get(i)) { return -1; } else if (...
public class class_name { public static int compareLexicographically(IntTuple t0, IntTuple t1) { Utils.checkForEqualSize(t0, t1); for (int i=0; i<t0.getSize(); i++) { if (t0.get(i) < t1.get(i)) { return -1; // depends on control dependency: [i...
public class class_name { public static long mediaToEdited(TrakBox trak, long mediaTv, int movieTimescale) { if (trak.getEdits() == null) return mediaTv; long accum = 0; for (Edit edit : trak.getEdits()) { if (mediaTv < edit.getMediaTime()) return accum; ...
public class class_name { public static long mediaToEdited(TrakBox trak, long mediaTv, int movieTimescale) { if (trak.getEdits() == null) return mediaTv; long accum = 0; for (Edit edit : trak.getEdits()) { if (mediaTv < edit.getMediaTime()) return accum; ...
public class class_name { public static void loadFromDiskAnd( DataFileManager manager, IndyObjectMapper serializer, StoreKey key, final ChangeSummary summary, Consumer<ArtifactStore> consumer ) { if ( key != null ) // Load a single file { DataFile...
public class class_name { public static void loadFromDiskAnd( DataFileManager manager, IndyObjectMapper serializer, StoreKey key, final ChangeSummary summary, Consumer<ArtifactStore> consumer ) { if ( key != null ) // Load a single file { DataFile...
public class class_name { @NonNull public static SourceParams createCardParams(@NonNull Card card) { final SourceParams params = new SourceParams().setType(Source.CARD); // Not enforcing all fields to exist at this level. // Instead, the server will return an error for invalid data. ...
public class class_name { @NonNull public static SourceParams createCardParams(@NonNull Card card) { final SourceParams params = new SourceParams().setType(Source.CARD); // Not enforcing all fields to exist at this level. // Instead, the server will return an error for invalid data. ...
public class class_name { private void resolvePackageDependencies() throws IOException { // FIXME: should produce a wy.lock file? Configuration.Schema buildSchema = environment.getBuildSchema(); // Global root is where all dependencies will be stored Path.Root repository = getRepositoryRoot(); // Dig out all...
public class class_name { private void resolvePackageDependencies() throws IOException { // FIXME: should produce a wy.lock file? Configuration.Schema buildSchema = environment.getBuildSchema(); // Global root is where all dependencies will be stored Path.Root repository = getRepositoryRoot(); // Dig out all...
public class class_name { protected void setObject(PreparedStatement statement, int i, Object value) throws SQLException { if (value instanceof InParameter || value instanceof OutParameter) { if (value instanceof InParameter) { InParameter in = (InParameter) value; ...
public class class_name { protected void setObject(PreparedStatement statement, int i, Object value) throws SQLException { if (value instanceof InParameter || value instanceof OutParameter) { if (value instanceof InParameter) { InParameter in = (InParameter) value; ...
public class class_name { public static ReferenceBase createFromXsd(XsdAbstractElement element) { String ref = getRef(element); String name = getName(element); if (!(element instanceof XsdNamedElements)){ return new ConcreteElement(element); } if (ref == null){ ...
public class class_name { public static ReferenceBase createFromXsd(XsdAbstractElement element) { String ref = getRef(element); String name = getName(element); if (!(element instanceof XsdNamedElements)){ return new ConcreteElement(element); // depends on control dependency: [if], ...
public class class_name { public void executeTaskIfMatch(long millis) { final Lock readLock = lock.readLock(); try { readLock.lock(); executeTaskIfMatchInternal(millis); } finally { readLock.unlock(); } } }
public class class_name { public void executeTaskIfMatch(long millis) { final Lock readLock = lock.readLock(); try { readLock.lock(); // depends on control dependency: [try], data = [none] executeTaskIfMatchInternal(millis); // depends on control dependency: [try], data = [none] } finally { readLo...
public class class_name { public WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback) { Validator.notNull(recognizeOptions, "recognizeOptions cannot be null"); Validator.notNull(recognizeOptions.audio(), "audio cannot be null"); Validator.notNull(callback, "callb...
public class class_name { public WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback) { Validator.notNull(recognizeOptions, "recognizeOptions cannot be null"); Validator.notNull(recognizeOptions.audio(), "audio cannot be null"); Validator.notNull(callback, "callb...
public class class_name { public GraphicalModel compileModel() { GraphicalModel compiled = new GraphicalModel(); for (GraphicalModel.Factor factor : model.factors) { compiled.addStaticFactor(factor.neigborIndices, factor.getDimensions(), assign -> factor.getAssignmentValue(assign, weights)); ...
public class class_name { public GraphicalModel compileModel() { GraphicalModel compiled = new GraphicalModel(); for (GraphicalModel.Factor factor : model.factors) { compiled.addStaticFactor(factor.neigborIndices, factor.getDimensions(), assign -> factor.getAssignmentValue(assign, weights)); //...
public class class_name { public static String encode (String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp, boolean encodeNonLatin) { if (string == null) { return ""...
public class class_name { public static String encode (String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp, boolean encodeNonLatin) { if (string == null) { return ""...
public class class_name { public final void mNS_PREFIX() throws RecognitionException { try { int _type = NS_PREFIX; int _channel = DEFAULT_TOKEN_CHANNEL; // BELScript.g:293:10: ( LETTER ( LETTER | DIGIT )* ':' ) // BELScript.g:294:5: LETTER ( LETTER | DIGIT )* ':...
public class class_name { public final void mNS_PREFIX() throws RecognitionException { try { int _type = NS_PREFIX; int _channel = DEFAULT_TOKEN_CHANNEL; // BELScript.g:293:10: ( LETTER ( LETTER | DIGIT )* ':' ) // BELScript.g:294:5: LETTER ( LETTER | DIGIT )* ':...
public class class_name { public void init(byte[] blob, int start, int len) throws SshException { ByteArrayReader bar = new ByteArrayReader(blob, start, len); try { // this.hostKey = hostKey; RSAPublicKeySpec rsaKey; // Extract the key information String header = bar.readString(); if (!header.eq...
public class class_name { public void init(byte[] blob, int start, int len) throws SshException { ByteArrayReader bar = new ByteArrayReader(blob, start, len); try { // this.hostKey = hostKey; RSAPublicKeySpec rsaKey; // Extract the key information String header = bar.readString(); if (!header.eq...
public class class_name { @Override public void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception { checkFile(query); List<String> typeNames = getTypeNames(); for (Result result : results) { String[] keyString = KeyUtils.getKeyString(server, query, result, typeNames, ...
public class class_name { @Override public void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception { checkFile(query); List<String> typeNames = getTypeNames(); for (Result result : results) { String[] keyString = KeyUtils.getKeyString(server, query, result, typeNames, ...
public class class_name { @Override public MultipleObjectsBundle delete(DBIDs ids) { // Prepare bundle to return MultipleObjectsBundle bundle = new MultipleObjectsBundle(); for(Relation<?> relation : relations) { ArrayList<Object> data = new ArrayList<>(ids.size()); for(DBIDIter iter = ids.it...
public class class_name { @Override public MultipleObjectsBundle delete(DBIDs ids) { // Prepare bundle to return MultipleObjectsBundle bundle = new MultipleObjectsBundle(); for(Relation<?> relation : relations) { ArrayList<Object> data = new ArrayList<>(ids.size()); for(DBIDIter iter = ids.it...
public class class_name { void format(StringBuilder sb, Temporal localDate) { //Instant localDate = ClockCurrent.GMT.instant(); int len = _timestamp.length; for (int j = 0; j < len; j++) { _timestamp[j].format(sb, localDate); } } }
public class class_name { void format(StringBuilder sb, Temporal localDate) { //Instant localDate = ClockCurrent.GMT.instant(); int len = _timestamp.length; for (int j = 0; j < len; j++) { _timestamp[j].format(sb, localDate); // depends on control dependency: [for], data = [j] } } }
public class class_name { @MainThread private void handleEventResult(Event event, EventResult result) { if (!activeEvents.contains(event)) { Utils.logE(event.getKey(), "Cannot send result of finished event"); return; } scheduleResultCallbacks(event, result); ...
public class class_name { @MainThread private void handleEventResult(Event event, EventResult result) { if (!activeEvents.contains(event)) { Utils.logE(event.getKey(), "Cannot send result of finished event"); // depends on control dependency: [if], data = [none] return; // depends o...
public class class_name { public boolean setPartitions(Collection<Collection<Node>> parts) { if (!isDisjoint(parts)) { return false; } partitions = parts; return true; } }
public class class_name { public boolean setPartitions(Collection<Collection<Node>> parts) { if (!isDisjoint(parts)) { return false; // depends on control dependency: [if], data = [none] } partitions = parts; return true; } }
public class class_name { public static int w(String msg) { // This is a quick check to avoid the expensive stack trace reflection. if (!activated) { return 0; } String caller = LogHelper.getCaller(); if (caller != null) { return w(caller, msg); }...
public class class_name { public static int w(String msg) { // This is a quick check to avoid the expensive stack trace reflection. if (!activated) { return 0; // depends on control dependency: [if], data = [none] } String caller = LogHelper.getCaller(); if (caller !...
public class class_name { public double getCouponPayment(int periodIndex, AnalyticModel model) { ForwardCurve forwardCurve = model.getForwardCurve(forwardCurveName); if(forwardCurve == null && forwardCurveName != null && forwardCurveName.length() > 0) { throw new IllegalArgumentException("No forward curve with...
public class class_name { public double getCouponPayment(int periodIndex, AnalyticModel model) { ForwardCurve forwardCurve = model.getForwardCurve(forwardCurveName); if(forwardCurve == null && forwardCurveName != null && forwardCurveName.length() > 0) { throw new IllegalArgumentException("No forward curve with...
public class class_name { @Override @SuppressWarnings("unchecked") public <V> Iterator<VertexProperty<V>> properties(String... propertyKeys) { Objects.requireNonNull(propertyKeys, "propertyKeys cannot be null"); // check we have properties with key if (!properties.isEmpty()) { ...
public class class_name { @Override @SuppressWarnings("unchecked") public <V> Iterator<VertexProperty<V>> properties(String... propertyKeys) { Objects.requireNonNull(propertyKeys, "propertyKeys cannot be null"); // check we have properties with key if (!properties.isEmpty()) { ...
public class class_name { private void validate(QPath path) throws RepositoryException, AccessDeniedException, ReferentialIntegrityException { List<ItemState> changes = changesLog.getAllStates(); for (ItemState itemState : changes) { if (itemState.isInternallyCreated()) { ...
public class class_name { private void validate(QPath path) throws RepositoryException, AccessDeniedException, ReferentialIntegrityException { List<ItemState> changes = changesLog.getAllStates(); for (ItemState itemState : changes) { if (itemState.isInternallyCreated()) { ...
public class class_name { public ClassRef toInternalReference() { List<TypeRef> arguments = new ArrayList<TypeRef>(); for (TypeParamDef parameter : parameters) { arguments.add(parameter.toReference()); } return new ClassRefBuilder() .withDefinition(this) ...
public class class_name { public ClassRef toInternalReference() { List<TypeRef> arguments = new ArrayList<TypeRef>(); for (TypeParamDef parameter : parameters) { arguments.add(parameter.toReference()); // depends on control dependency: [for], data = [parameter] } return new ...
public class class_name { public static long factorial(int arg) { if (arg <= 0) { throw new IllegalArgumentException("参数必须大于0"); } long result = 1; for (int i = arg; i > 0; i--) { result *= i; } return result; } }
public class class_name { public static long factorial(int arg) { if (arg <= 0) { throw new IllegalArgumentException("参数必须大于0"); } long result = 1; for (int i = arg; i > 0; i--) { result *= i; // depends on control dependency: [for], data = [i] } ...
public class class_name { private double calculateEntropy(MapCount<String> mc) { double totalFrequency = 0.; Set<Map.Entry<String, Double>> entrySet = mc.get().entrySet(); for (Map.Entry<String, Double> entry : entrySet) { totalFrequency += entry.getValue(); } doubl...
public class class_name { private double calculateEntropy(MapCount<String> mc) { double totalFrequency = 0.; Set<Map.Entry<String, Double>> entrySet = mc.get().entrySet(); for (Map.Entry<String, Double> entry : entrySet) { totalFrequency += entry.getValue(); // depends on control de...
public class class_name { @Override public <T> Provider<T> provider(Key<T> key) { Objects.requireNonNull(key); Provider<T> provider = (Provider) _providerMap.get(key); if (provider == null) { provider = lookupProvider(key); if (provider == null) { provider = autoProvider(key); ...
public class class_name { @Override public <T> Provider<T> provider(Key<T> key) { Objects.requireNonNull(key); Provider<T> provider = (Provider) _providerMap.get(key); if (provider == null) { provider = lookupProvider(key); // depends on control dependency: [if], data = [none] if (provid...
public class class_name { public static CompactHeightfield buildCompactHeightfield(Context ctx, int walkableHeight, int walkableClimb, Heightfield hf) { ctx.startTimer("BUILD_COMPACTHEIGHTFIELD"); CompactHeightfield chf = new CompactHeightfield(); int w = hf.width; int h =...
public class class_name { public static CompactHeightfield buildCompactHeightfield(Context ctx, int walkableHeight, int walkableClimb, Heightfield hf) { ctx.startTimer("BUILD_COMPACTHEIGHTFIELD"); CompactHeightfield chf = new CompactHeightfield(); int w = hf.width; int h =...
public class class_name { protected void destroyConnection(ConnectionHandle conn) { postDestroyConnection(conn); conn.setInReplayMode(true); // we're dead, stop attempting to replay anything try { conn.internalClose(); } catch (SQLException e) { logger.error("Error in attempting to close connectio...
public class class_name { protected void destroyConnection(ConnectionHandle conn) { postDestroyConnection(conn); conn.setInReplayMode(true); // we're dead, stop attempting to replay anything try { conn.internalClose(); // depends on control dependency: [try], data = [none] } catch (SQLException e) { ...
public class class_name { private void propagateStatusAndAlert(final ExecutableFlowBase base, final Status status) { if (!Status.isStatusFinished(base.getStatus()) && base.getStatus() != Status.KILLING) { this.logger.info("Setting " + base.getNestedId() + " to " + status); boolean shouldAlert = false; ...
public class class_name { private void propagateStatusAndAlert(final ExecutableFlowBase base, final Status status) { if (!Status.isStatusFinished(base.getStatus()) && base.getStatus() != Status.KILLING) { this.logger.info("Setting " + base.getNestedId() + " to " + status); // depends on control dependency: [...
public class class_name { public void setScte35Descriptors(java.util.Collection<Scte35Descriptor> scte35Descriptors) { if (scte35Descriptors == null) { this.scte35Descriptors = null; return; } this.scte35Descriptors = new java.util.ArrayList<Scte35Descriptor>(scte35Desc...
public class class_name { public void setScte35Descriptors(java.util.Collection<Scte35Descriptor> scte35Descriptors) { if (scte35Descriptors == null) { this.scte35Descriptors = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], da...
public class class_name { public static ResultSet createGeneratedData(long[] data, Protocol protocol, boolean findColumnReturnsOne) { ColumnInformation[] columns = new ColumnInformation[1]; columns[0] = ColumnInformation.create("insert_id", ColumnType.BIGINT); List<byte[]> rows = new ArrayList<>(); ...
public class class_name { public static ResultSet createGeneratedData(long[] data, Protocol protocol, boolean findColumnReturnsOne) { ColumnInformation[] columns = new ColumnInformation[1]; columns[0] = ColumnInformation.create("insert_id", ColumnType.BIGINT); List<byte[]> rows = new ArrayList<>(); ...
public class class_name { boolean updateCallback(Task<?> task, Activity callback, String annotationId) { if (task == null || callback == null) { return false; } WeakReference<TaskRunnable<?>> reference = mTaskRunnables.get(task.getKey()); if (reference == null) { ...
public class class_name { boolean updateCallback(Task<?> task, Activity callback, String annotationId) { if (task == null || callback == null) { return false; // depends on control dependency: [if], data = [none] } WeakReference<TaskRunnable<?>> reference = mTaskRunnables.get(task....
public class class_name { public String contentsAsString() { if (mResultString == null) { // Has array been requested? Can make a shortcut, if so: if (mResultArray != null) { mResultString = new String(mResultArray); } else { // Do we use ...
public class class_name { public String contentsAsString() { if (mResultString == null) { // Has array been requested? Can make a shortcut, if so: if (mResultArray != null) { mResultString = new String(mResultArray); // depends on control dependency: [if], data = [(m...
public class class_name { public void submit(Runnable task) { queue.add(task); while(true) { long cur = combinedState.get(); int shutdown = (int)(cur >> 63) & 1; if (shutdown != 0) { throw new RejectedExecutionExceptio...
public class class_name { public void submit(Runnable task) { queue.add(task); while(true) { long cur = combinedState.get(); int shutdown = (int)(cur >> 63) & 1; if (shutdown != 0) { throw new RejectedExecutionExceptio...
public class class_name { public void placeFusedRing(IRing ring, IAtomContainer sharedAtoms, Vector2d ringCenterVector, double bondLength) { logger.debug("RingPlacer.placeFusedRing() start"); final IAtom beg =...
public class class_name { public void placeFusedRing(IRing ring, IAtomContainer sharedAtoms, Vector2d ringCenterVector, double bondLength) { logger.debug("RingPlacer.placeFusedRing() start"); final IAtom beg =...
public class class_name { public int handleMessage(BaseMessage message) { try { int iMessageType = Integer.parseInt((String)message.get(MessageConstants.MESSAGE_TYPE_PARAM)); if ((iMessageType == Constants.AFTER_UPDATE_TYPE) || (iMessageType == ...
public class class_name { public int handleMessage(BaseMessage message) { try { int iMessageType = Integer.parseInt((String)message.get(MessageConstants.MESSAGE_TYPE_PARAM)); if ((iMessageType == Constants.AFTER_UPDATE_TYPE) || (iMessageType == ...
public class class_name { @Override public void getAPIConfiguration() { getDispatcher().invokeLater(new AsyncTask(CONFIGURATION, listeners) { @Override public void invoke(List<TwitterListener> listeners) throws TwitterException { TwitterAPIConfiguration apiConf = twi...
public class class_name { @Override public void getAPIConfiguration() { getDispatcher().invokeLater(new AsyncTask(CONFIGURATION, listeners) { @Override public void invoke(List<TwitterListener> listeners) throws TwitterException { TwitterAPIConfiguration apiConf = twi...
public class class_name { @Override public double integrate(DoubleUnaryOperator integrand) { double lowerBound = getLowerBound(); double upperBound = getUpperBound(); double range = upperBound-lowerBound; int numberOfIntervalls = (int) ((numberOfEvaluationPoints-1) / 2.0); double fullIntervall = ra...
public class class_name { @Override public double integrate(DoubleUnaryOperator integrand) { double lowerBound = getLowerBound(); double upperBound = getUpperBound(); double range = upperBound-lowerBound; int numberOfIntervalls = (int) ((numberOfEvaluationPoints-1) / 2.0); double fullIntervall = ra...
public class class_name { protected void awaitForPushToFinish(Future<?> future, long timeout, TimeUnit unit) { final boolean debugEnabled = log.isDebugEnabled(); try { if (debugEnabled) log.debug("wait for state push to cache loader to finish"); future.get(timeout, unit); } catch (T...
public class class_name { protected void awaitForPushToFinish(Future<?> future, long timeout, TimeUnit unit) { final boolean debugEnabled = log.isDebugEnabled(); try { if (debugEnabled) log.debug("wait for state push to cache loader to finish"); future.get(timeout, unit); // depends on co...
public class class_name { @Override protected void startUp() { long traceId = LoggerHelpers.traceEnterWithContext(log, this.objectId, "startUp"); try { log.info("Starting REST server listening on port: {}", this.restServerConfig.getPort()); if (restServerConfig.isTlsEnabled(...
public class class_name { @Override protected void startUp() { long traceId = LoggerHelpers.traceEnterWithContext(log, this.objectId, "startUp"); try { log.info("Starting REST server listening on port: {}", this.restServerConfig.getPort()); // depends on control dependency: [try], data ...
public class class_name { @SuppressWarnings("unused") public boolean shouldTransform(Class<?> classBeingRedefined) { for (StaticClassTransformer transformer : transformers) { if (transformer.shouldTransform(classBeingRedefined)) { return true; } } re...
public class class_name { @SuppressWarnings("unused") public boolean shouldTransform(Class<?> classBeingRedefined) { for (StaticClassTransformer transformer : transformers) { if (transformer.shouldTransform(classBeingRedefined)) { return true; // depends on control dependency: [...
public class class_name { private static BooleanNode doesArrayContain(JsonNode subject, JsonNode search) { Iterator<JsonNode> elements = subject.elements(); while (elements.hasNext()) { if (elements.next().equals(search)) { return BooleanNode.TRUE; } } ...
public class class_name { private static BooleanNode doesArrayContain(JsonNode subject, JsonNode search) { Iterator<JsonNode> elements = subject.elements(); while (elements.hasNext()) { if (elements.next().equals(search)) { return BooleanNode.TRUE; // depends on control depe...
public class class_name { private byte getByte(int index) { if (index < initialSize) { return pool.get(0)[index]; } index -= initialSize; return pool.get(index / incrementalSize + 1)[index % incrementalSize]; } }
public class class_name { private byte getByte(int index) { if (index < initialSize) { return pool.get(0)[index]; // depends on control dependency: [if], data = [none] } index -= initialSize; return pool.get(index / incrementalSize + 1)[index % incrementalSize]; ...
public class class_name { public XMLString getStringValue(int nodeHandle) { int type = getNodeType(nodeHandle); Node node = getNode(nodeHandle); // %TBD% If an element only has one text node, we should just use it // directly. if(DTM.ELEMENT_NODE == type || DTM.DOCUMENT_NODE == type || DTM...
public class class_name { public XMLString getStringValue(int nodeHandle) { int type = getNodeType(nodeHandle); Node node = getNode(nodeHandle); // %TBD% If an element only has one text node, we should just use it // directly. if(DTM.ELEMENT_NODE == type || DTM.DOCUMENT_NODE == type || DTM...
public class class_name { @Override public synchronized void recordAllocatedEvaluator(final String id) { if (this.fileSystem != null && this.changeLogLocation != null) { final String entry = ADD_FLAG + id + System.lineSeparator(); this.logContainerChange(entry); } } }
public class class_name { @Override public synchronized void recordAllocatedEvaluator(final String id) { if (this.fileSystem != null && this.changeLogLocation != null) { final String entry = ADD_FLAG + id + System.lineSeparator(); this.logContainerChange(entry); // depends on control dependency: [if]...
public class class_name { private void handleNoBreadcrumbsIntent(@NonNull final Bundle extras) { if (extras.containsKey(EXTRA_NO_BREAD_CRUMBS)) { hideBreadCrumb(extras.getBoolean(EXTRA_NO_BREAD_CRUMBS)); } } }
public class class_name { private void handleNoBreadcrumbsIntent(@NonNull final Bundle extras) { if (extras.containsKey(EXTRA_NO_BREAD_CRUMBS)) { hideBreadCrumb(extras.getBoolean(EXTRA_NO_BREAD_CRUMBS)); // depends on control dependency: [if], data = [none] } } }
public class class_name { private String waitForPattern(long timeout, TailLogBufferedReader bufferedReader, Pattern pattern, boolean searchWithinLines, long timeoutInSeconds) throws IOException { StringBuilder sb = new StringBuilder(); String result; label: while(true) { whi...
public class class_name { private String waitForPattern(long timeout, TailLogBufferedReader bufferedReader, Pattern pattern, boolean searchWithinLines, long timeoutInSeconds) throws IOException { StringBuilder sb = new StringBuilder(); String result; label: while(true) { whi...
public class class_name { public String toHexString() { char[] chars = new char[OBJECT_ID_LENGTH * 2]; int i = 0; for (byte b : toByteArray()) { chars[i++] = HEX_CHARS[b >> 4 & 0xF]; chars[i++] = HEX_CHARS[b & 0xF]; } return new String(chars); } }
public class class_name { public String toHexString() { char[] chars = new char[OBJECT_ID_LENGTH * 2]; int i = 0; for (byte b : toByteArray()) { chars[i++] = HEX_CHARS[b >> 4 & 0xF]; // depends on control dependency: [for], data = [b] chars[i++] = HEX_CHARS[b & 0xF]; // ...
public class class_name { @Nonnull public Configuration filter(Configuration config) { final Map<String, Object> values = Maps.newHashMap(); for (final ConfigurationField field : fields.values()) { final String name = field.getName(); final String type = field.getFieldType(...
public class class_name { @Nonnull public Configuration filter(Configuration config) { final Map<String, Object> values = Maps.newHashMap(); for (final ConfigurationField field : fields.values()) { final String name = field.getName(); final String type = field.getFieldType(...
public class class_name { protected ArrayBufferView getTypedArray(Buffer buffer, int type, int byteSize) { if (!(buffer instanceof HasArrayBufferView)) { throw new RuntimeException("Native buffer required " + buffer); } HasArrayBufferView arrayHolder = (HasArrayBufferView) buffer; int bufferEleme...
public class class_name { protected ArrayBufferView getTypedArray(Buffer buffer, int type, int byteSize) { if (!(buffer instanceof HasArrayBufferView)) { throw new RuntimeException("Native buffer required " + buffer); } HasArrayBufferView arrayHolder = (HasArrayBufferView) buffer; int bufferEleme...
public class class_name { public void add(final EventListener<T> eventListener) { if (eventListener.subscriber()) { if (debug) logger.debug("subscription to channel <> from <> ", name, eventListener); listeners.add(eventListener); stats.recordLevel(eventBusName + "::" + name...
public class class_name { public void add(final EventListener<T> eventListener) { if (eventListener.subscriber()) { if (debug) logger.debug("subscription to channel <> from <> ", name, eventListener); listeners.add(eventListener); // depends on control dependency: [if], data = [none] ...
public class class_name { @Validate public void start() { Boolean enabled = configuration.getBooleanWithDefault("ehcache.enabled", true); if (!enabled) { return; } File config = new File(configuration.getBaseDir(), CUSTOM_CONFIGURATION); final ClassLoader origin...
public class class_name { @Validate public void start() { Boolean enabled = configuration.getBooleanWithDefault("ehcache.enabled", true); if (!enabled) { return; // depends on control dependency: [if], data = [none] } File config = new File(configuration.getBaseDir(), C...
public class class_name { public static synchronized IClient getNamedClient(String name) { if (simpleClientMap.get(name) != null) { return simpleClientMap.get(name); } try { return registerClientFromProperties(name, getNamedConfig(name)); } catch (ClientException...
public class class_name { public static synchronized IClient getNamedClient(String name) { if (simpleClientMap.get(name) != null) { return simpleClientMap.get(name); // depends on control dependency: [if], data = [none] } try { return registerClientFromProperties(name, g...
public class class_name { Element getElementById(String name) { for (Attr attr : attributes) { if (attr.isId() && name.equals(attr.getValue())) { return this; } } /* * TODO: Remove this behavior. * The spec explicitly says that this is ...
public class class_name { Element getElementById(String name) { for (Attr attr : attributes) { if (attr.isId() && name.equals(attr.getValue())) { return this; // depends on control dependency: [if], data = [none] } } /* * TODO: Remove this behav...
public class class_name { public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; 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.toStr...
public class class_name { public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; 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.protobu...
public class class_name { @Override public void beginDefinitionList(Map<String, String> parameters) { if (getBlockState().getDefinitionListDepth() == 1 && !getBlockState().isInList()) { printEmptyLine(); } else { print("\n"); } printParameters(parameters)...
public class class_name { @Override public void beginDefinitionList(Map<String, String> parameters) { if (getBlockState().getDefinitionListDepth() == 1 && !getBlockState().isInList()) { printEmptyLine(); // depends on control dependency: [if], data = [none] } else { prin...
public class class_name { public EClass getMetricAdjustment() { if (metricAdjustmentEClass == null) { metricAdjustmentEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(521); } return metricAdjustmentEClass; } }
public class class_name { public EClass getMetricAdjustment() { if (metricAdjustmentEClass == null) { metricAdjustmentEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(521); // depends on control dependency: [if], data = [none] } return metricAdjustmentEClass...
public class class_name { public void parse(final String filename, final File dir) { filePath = stripFragment(filename); dirPath = dir; try { final File f = new File(dir, filePath); reader.setErrorHandler(new DITAOTXMLErrorHandler(f.getAbsolutePath(), logger)); ...
public class class_name { public void parse(final String filename, final File dir) { filePath = stripFragment(filename); dirPath = dir; try { final File f = new File(dir, filePath); reader.setErrorHandler(new DITAOTXMLErrorHandler(f.getAbsolutePath(), logger)); // depend...
public class class_name { public Observable<ServiceResponse<List<Iteration>>> getIterationsWithServiceResponseAsync(UUID projectId) { if (projectId == null) { throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); } if (this.client.apiKey() == nul...
public class class_name { public Observable<ServiceResponse<List<Iteration>>> getIterationsWithServiceResponseAsync(UUID projectId) { if (projectId == null) { throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); } if (this.client.apiKey() == nul...
public class class_name { @Override protected void immediateTimeout() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "immediateTimeout"); } // if we do not have a selector, then there has not been a read yet // on this connection...
public class class_name { @Override protected void immediateTimeout() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "immediateTimeout"); // depends on control dependency: [if], data = [none] } // if we do not have a selector, then there...
public class class_name { public void rollbackToPosition(short partition, long seqno) { PartitionState ps = partitionStates.get(partition); ps.setStartSeqno(seqno); ps.setSnapshotStartSeqno(seqno); ps.setSnapshotEndSeqno(seqno); List<FailoverLogEntry> failoverLog = ps.getFailoverLog(); Iterator...
public class class_name { public void rollbackToPosition(short partition, long seqno) { PartitionState ps = partitionStates.get(partition); ps.setStartSeqno(seqno); ps.setSnapshotStartSeqno(seqno); ps.setSnapshotEndSeqno(seqno); List<FailoverLogEntry> failoverLog = ps.getFailoverLog(); Iterator...
public class class_name { @Override public void prepare(ResponseBuilder rb) throws IOException { // System.out // .println(System.nanoTime() + " - " + Thread.currentThread().getId() // + " - " + rb.req.getParams().getBool(ShardParams.IS_SHARD, false) // + " PREPARE " + rb.stage + " " + rb.req.getParamString()...
public class class_name { @Override public void prepare(ResponseBuilder rb) throws IOException { // System.out // .println(System.nanoTime() + " - " + Thread.currentThread().getId() // + " - " + rb.req.getParams().getBool(ShardParams.IS_SHARD, false) // + " PREPARE " + rb.stage + " " + rb.req.getParamString()...
public class class_name { public double inverseCumulativeDistribution(double x) { double p = Math.exp(-lambda); double dp = p; int k = 0; while(x > p) { k++; dp *= lambda / k; p += dp; } return k; } }
public class class_name { public double inverseCumulativeDistribution(double x) { double p = Math.exp(-lambda); double dp = p; int k = 0; while(x > p) { k++; // depends on control dependency: [while], data = [none] dp *= lambda / k; // depends on control dependency: [while], data = [none] p += dp; // ...
public class class_name { public static void setDnsCache(String host, String... ips) { try { InetAddressCacheUtil.setInetAddressCache(host, ips, NEVER_EXPIRATION); } catch (Exception e) { final String message = String.format("Fail to setDnsCache for host %s ip %s, cause: %s", ...
public class class_name { public static void setDnsCache(String host, String... ips) { try { InetAddressCacheUtil.setInetAddressCache(host, ips, NEVER_EXPIRATION); // depends on control dependency: [try], data = [none] } catch (Exception e) { final String message = String.format...
public class class_name { AddIfCluster addIfCluster(Object... objects) { if (addIfCluster == null) { addIfCluster = new AddIfCluster(!getWebServer().isStandalone()); } addIfCluster.ifAdd(objects); return addIfCluster; } }
public class class_name { AddIfCluster addIfCluster(Object... objects) { if (addIfCluster == null) { addIfCluster = new AddIfCluster(!getWebServer().isStandalone()); // depends on control dependency: [if], data = [none] } addIfCluster.ifAdd(objects); return addIfCluster; } }
public class class_name { @Transactional protected synchronized void _checkAlertExistence(boolean enabled) { for (String alertName : new String[] { FILE_DESCRIPTORS_ALERT, PHYSICAL_MEMORY_ALERT, SWAP_SPACE_ALERT }) { if (_alertService.findAlertByNameAndOwner(_constructAlertName(alertName), _adminUser) == null) {...
public class class_name { @Transactional protected synchronized void _checkAlertExistence(boolean enabled) { for (String alertName : new String[] { FILE_DESCRIPTORS_ALERT, PHYSICAL_MEMORY_ALERT, SWAP_SPACE_ALERT }) { if (_alertService.findAlertByNameAndOwner(_constructAlertName(alertName), _adminUser) == null) {...
public class class_name { @Override public final Object put(final Object key, final Object value) { try { CellMapKey mkey = new CellMapKey((String) key); if (!mkey.isParseSuccess()) { return null; } Cell poiCell = parent.getCellHelper() .getPoiCellWithRowColFromCurrentPage(mkey.getRowIn...
public class class_name { @Override public final Object put(final Object key, final Object value) { try { CellMapKey mkey = new CellMapKey((String) key); if (!mkey.isParseSuccess()) { return null; // depends on control dependency: [if], data = [none] } Cell poiCell = parent.getCellHelper() ...
public class class_name { @SuppressWarnings("unused") public Map<String, Timestamp> getUserContributionMap(final int articleID, String[] groupfilter, boolean onlyRegistered) throws WikiApiException { Map<String, Timestamp> authorTSMap = new HashMap<String, Timestamp>(); tr...
public class class_name { @SuppressWarnings("unused") public Map<String, Timestamp> getUserContributionMap(final int articleID, String[] groupfilter, boolean onlyRegistered) throws WikiApiException { Map<String, Timestamp> authorTSMap = new HashMap<String, Timestamp>(); tr...
public class class_name { public void del(final OnItemSnapshot onItemSnapshot, final OnError onError){ TableMetadata tm = context.getTableMeta(this.table.name); if(tm == null){ this.table.meta(new OnTableMetadata(){ @Override public void run(TableMetadata tableMetadata) { _del(onItemSnapshot, onErr...
public class class_name { public void del(final OnItemSnapshot onItemSnapshot, final OnError onError){ TableMetadata tm = context.getTableMeta(this.table.name); if(tm == null){ this.table.meta(new OnTableMetadata(){ @Override public void run(TableMetadata tableMetadata) { _del(onItemSnapshot, onErr...
public class class_name { static MavenResolvedArtifact fromArtifactResult(final ArtifactResult artifactResult) { final Artifact artifact = artifactResult.getArtifact(); final DependencyNode root = artifactResult.getRequest().getDependencyNode(); // SHRINKRES-143 lets ignore invalid scope ...
public class class_name { static MavenResolvedArtifact fromArtifactResult(final ArtifactResult artifactResult) { final Artifact artifact = artifactResult.getArtifact(); final DependencyNode root = artifactResult.getRequest().getDependencyNode(); // SHRINKRES-143 lets ignore invalid scope ...
public class class_name { public void marshall(CreateBrokerRequest createBrokerRequest, ProtocolMarshaller protocolMarshaller) { if (createBrokerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(CreateBrokerRequest createBrokerRequest, ProtocolMarshaller protocolMarshaller) { if (createBrokerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public static String unicodeToChinese(String unicode) { StringBuilder out = new StringBuilder(); if (!isEmpty(unicode)) { for (int i = 0; i < unicode.length(); i++) { out.append(unicode.charAt(i)); } } return out.toString(); } }
public class class_name { public static String unicodeToChinese(String unicode) { StringBuilder out = new StringBuilder(); if (!isEmpty(unicode)) { for (int i = 0; i < unicode.length(); i++) { out.append(unicode.charAt(i)); // depends on control dependency: [for], data = [i] } } return out.toString()...
public class class_name { public static String transformClassName(String className) { int lastDot = className.lastIndexOf('.'); if (lastDot >= 0) { String pkg = className.substring(0, lastDot); if (!isUnlikelyToBeRenamed(pkg)) { className = className.substring(la...
public class class_name { public static String transformClassName(String className) { int lastDot = className.lastIndexOf('.'); if (lastDot >= 0) { String pkg = className.substring(0, lastDot); if (!isUnlikelyToBeRenamed(pkg)) { className = className.substring(la...
public class class_name { public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // /home/victor/srec/core/src/main/antlr/srec.g:147:2: ( ( ' ' | '\\t' )+ ) // /home/victor/srec/core/src/main/antlr/srec.g...
public class class_name { public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // /home/victor/srec/core/src/main/antlr/srec.g:147:2: ( ( ' ' | '\\t' )+ ) // /home/victor/srec/core/src/main/antlr/srec.g...
public class class_name { protected void recycleByRenderState(RecyclerView.Recycler recycler, RenderState renderState) { if (renderState.mLayoutDirection == RenderState.LAYOUT_START) { recycleViewsFromEnd(recycler, renderState.mScrollingOffset); } else { recycleViewsFromStart(re...
public class class_name { protected void recycleByRenderState(RecyclerView.Recycler recycler, RenderState renderState) { if (renderState.mLayoutDirection == RenderState.LAYOUT_START) { recycleViewsFromEnd(recycler, renderState.mScrollingOffset); // depends on control dependency: [if], data = [none]...
public class class_name { private void readConfig(){ configuration = MoskitoConfigurationHolder.getConfiguration(); ThresholdsConfig config = configuration.getThresholdsConfig(); ThresholdConfig[] tcs = config.getThresholds(); if (tcs!=null && tcs.length>0){ for (ThresholdConfig tc : tcs){ ThresholdDef...
public class class_name { private void readConfig(){ configuration = MoskitoConfigurationHolder.getConfiguration(); ThresholdsConfig config = configuration.getThresholdsConfig(); ThresholdConfig[] tcs = config.getThresholds(); if (tcs!=null && tcs.length>0){ for (ThresholdConfig tc : tcs){ ThresholdDef...
public class class_name { public LocalDateTime parseLocalDateTime(String text) { InternalParser parser = requireParser(); Chronology chrono = selectChronology(null).withUTC(); // always use UTC, avoiding DST gaps DateTimeParserBucket bucket = new DateTimeParserBucket(0, chrono, iLocal...
public class class_name { public LocalDateTime parseLocalDateTime(String text) { InternalParser parser = requireParser(); Chronology chrono = selectChronology(null).withUTC(); // always use UTC, avoiding DST gaps DateTimeParserBucket bucket = new DateTimeParserBucket(0, chrono, iLocal...
public class class_name { public String getConfigFolder() { // check if the system property is set and return its value if (CmsStringUtil.isNotEmpty(System.getProperty(CONFIG_FOLDER_PROPERTY))) { return System.getProperty(CONFIG_FOLDER_PROPERTY); } else { return getAbso...
public class class_name { public String getConfigFolder() { // check if the system property is set and return its value if (CmsStringUtil.isNotEmpty(System.getProperty(CONFIG_FOLDER_PROPERTY))) { return System.getProperty(CONFIG_FOLDER_PROPERTY); // depends on control dependency: [if], dat...
public class class_name { @Override public TransportResult doDelete(URI uri) { HttpDelete request = new HttpDelete(uri); request.setHeader(apiAuthHeaderKey, getApitraryApi().getApiKey()); request.setHeader("Content-Type", contentType); request.setHeader("Accept", contentType); log.debug("DELETE " + reques...
public class class_name { @Override public TransportResult doDelete(URI uri) { HttpDelete request = new HttpDelete(uri); request.setHeader(apiAuthHeaderKey, getApitraryApi().getApiKey()); request.setHeader("Content-Type", contentType); request.setHeader("Accept", contentType); log.debug("DELETE " + reques...
public class class_name { public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { AnnivMaster recAnnivMaster = (AnnivMaster)this.getOwner(); if (iChangeType == DBConstants.AFTER_ADD_TYPE) { Object bookmark = recAnnivMaster.getLastModified(DBConstant...
public class class_name { public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { AnnivMaster recAnnivMaster = (AnnivMaster)this.getOwner(); if (iChangeType == DBConstants.AFTER_ADD_TYPE) { Object bookmark = recAnnivMaster.getLastModified(DBConstant...
public class class_name { public EClass getIfcDerivedUnitElement() { if (ifcDerivedUnitElementEClass == null) { ifcDerivedUnitElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(146); } return ifcDerivedUnitElementEClass; } }
public class class_name { public EClass getIfcDerivedUnitElement() { if (ifcDerivedUnitElementEClass == null) { ifcDerivedUnitElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(146); // depends on control dependency: [if], data = [none] } ...
public class class_name { private @Nullable TypeElement findParentType(TypeElement typeElement, Set<TypeElement> parents) { TypeMirror type; while (true) { type = typeElement.getSuperclass(); if (type.getKind() == TypeKind.NONE) { return null; } typeElement = (TypeElement) ((Dec...
public class class_name { private @Nullable TypeElement findParentType(TypeElement typeElement, Set<TypeElement> parents) { TypeMirror type; while (true) { type = typeElement.getSuperclass(); // depends on control dependency: [while], data = [none] if (type.getKind() == TypeKind.NONE) { ret...
public class class_name { private static RecursiveDeleteResult recursiveDeleteFiles(HdfsEnvironment hdfsEnvironment, HdfsContext context, Path directory, List<String> filePrefixes, boolean deleteEmptyDirectories) { FileSystem fileSystem; try { fileSystem = hdfsEnvironment.getFileSystem(...
public class class_name { private static RecursiveDeleteResult recursiveDeleteFiles(HdfsEnvironment hdfsEnvironment, HdfsContext context, Path directory, List<String> filePrefixes, boolean deleteEmptyDirectories) { FileSystem fileSystem; try { fileSystem = hdfsEnvironment.getFileSystem(...
public class class_name { public T findOne(DBObject query, DBObject fields, ReadPreference readPref) { DBCursor<T> cursor = find(query, fields).setReadPreference(readPref); if (cursor.hasNext()) { return cursor.next(); } else { return null; } } }
public class class_name { public T findOne(DBObject query, DBObject fields, ReadPreference readPref) { DBCursor<T> cursor = find(query, fields).setReadPreference(readPref); if (cursor.hasNext()) { return cursor.next(); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public void register(Object object) { Class<?> listenerClass = object.getClass(); if(!Modifier.isPublic(listenerClass.getModifiers())){ throw new IllegalArgumentException(String.format(Locale.ENGLISH, "Event Subscriber class %s needs to be pub...
public class class_name { public void register(Object object) { Class<?> listenerClass = object.getClass(); if(!Modifier.isPublic(listenerClass.getModifiers())){ throw new IllegalArgumentException(String.format(Locale.ENGLISH, "Event Subscriber class %s needs to be pub...
public class class_name { public static String absolute(String path, ClassLoader klassLoader, String enc) { path = normalize(path, enc); if (Strings.isEmpty(path)) return null; File f = new File(path); if (!f.exists()) { URL url = null; try {...
public class class_name { public static String absolute(String path, ClassLoader klassLoader, String enc) { path = normalize(path, enc); if (Strings.isEmpty(path)) return null; File f = new File(path); if (!f.exists()) { URL url = null; try {...
public class class_name { private Label pushSuccessors(final Label listOfLabelsToProcess) { Label newListOfLabelsToProcess = listOfLabelsToProcess; Edge outgoingEdge = outgoingEdges; while (outgoingEdge != null) { // By construction, the second outgoing edge of a basic block that ends with a jsr inst...
public class class_name { private Label pushSuccessors(final Label listOfLabelsToProcess) { Label newListOfLabelsToProcess = listOfLabelsToProcess; Edge outgoingEdge = outgoingEdges; while (outgoingEdge != null) { // By construction, the second outgoing edge of a basic block that ends with a jsr inst...
public class class_name { @Override public List<DocumentRevs> getRevisions(String documentId, Collection<String> revisionIds, Collection<String> attsSince, boolean pullAttachmentsInline)...
public class class_name { @Override public List<DocumentRevs> getRevisions(String documentId, Collection<String> revisionIds, Collection<String> attsSince, boolean pullAttachmentsInline)...
public class class_name { public String get(String key) { if(key==null)return null; int idx=0,equal=0,amp=0; while(idx>=0 && (equal = tresp.indexOf('=',idx))>=0) { amp = tresp.indexOf('&',equal); if(key.regionMatches(0, tresp, idx, equal-idx)) { return amp>=0?tresp.substring(equal+1, amp):tresp.substri...
public class class_name { public String get(String key) { if(key==null)return null; int idx=0,equal=0,amp=0; while(idx>=0 && (equal = tresp.indexOf('=',idx))>=0) { amp = tresp.indexOf('&',equal); // depends on control dependency: [while], data = [none] if(key.regionMatches(0, tresp, idx, equal-idx)) { ...
public class class_name { public void removeProperty(final Collection<String> col, final String name) { try { String v = getProperty(col, name); if (v == null) { return; } col.remove(name + "=" + v); } catch (Throwable t) { throw new RuntimeE...
public class class_name { public void removeProperty(final Collection<String> col, final String name) { try { String v = getProperty(col, name); if (v == null) { return; // depends on control dependency: [if], data = [none] } col.remove(name + "=" + v)...
public class class_name { public ProvisionedProductPlanDetails withProvisioningParameters(UpdateProvisioningParameter... provisioningParameters) { if (this.provisioningParameters == null) { setProvisioningParameters(new java.util.ArrayList<UpdateProvisioningParameter>(provisioningParameters.length)...
public class class_name { public ProvisionedProductPlanDetails withProvisioningParameters(UpdateProvisioningParameter... provisioningParameters) { if (this.provisioningParameters == null) { setProvisioningParameters(new java.util.ArrayList<UpdateProvisioningParameter>(provisioningParameters.length)...
public class class_name { synchronized boolean remove(BlockInfo blockInfo, int priLevel) { INodeFile fileINode = blockInfo.getINode(); if (priLevel == QUEUE_WITH_CORRUPT_BLOCKS && fileINode != null && fileINode.getStorageType().equals(StorageType.RAID_STORAGE)) { RaidCodec codec = ((INodeRaidStor...
public class class_name { synchronized boolean remove(BlockInfo blockInfo, int priLevel) { INodeFile fileINode = blockInfo.getINode(); if (priLevel == QUEUE_WITH_CORRUPT_BLOCKS && fileINode != null && fileINode.getStorageType().equals(StorageType.RAID_STORAGE)) { RaidCodec codec = ((INodeRaidStor...
public class class_name { public static int findUnlinked(int pos, int end, DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder) { while(pos < end) { if(!builder.isLinked(ix.seek(pos))) { return pos; } ++pos; } return -1; } }
public class class_name { public static int findUnlinked(int pos, int end, DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder) { while(pos < end) { if(!builder.isLinked(ix.seek(pos))) { return pos; // depends on control dependency: [if], data = [none] } ++pos; // depends on c...
public class class_name { @Override public Map<String, Object> getValues(double evaluationTime, Model model) { Map<String, Object> result = new HashMap<>(); try { double value = getValue((CharacteristicFunctionModel) model); result.put("value", value); } catch (CalculationException e) { result.put("e...
public class class_name { @Override public Map<String, Object> getValues(double evaluationTime, Model model) { Map<String, Object> result = new HashMap<>(); try { double value = getValue((CharacteristicFunctionModel) model); result.put("value", value); // depends on control dependency: [try], data = [none...
public class class_name { private void waitForStarted() { debug("GuestNode#waitForStarted(): Waiting for other clusters started"); while (true) { boolean othersStarted = true; for (Object key : clustersProperties.keySet()) { String clusterName = (String) key; Long startedAt = region.get(createStar...
public class class_name { private void waitForStarted() { debug("GuestNode#waitForStarted(): Waiting for other clusters started"); while (true) { boolean othersStarted = true; for (Object key : clustersProperties.keySet()) { String clusterName = (String) key; Long startedAt = region.get(createStar...