code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public IPromise atomicQuery(String key, RLFunction<Record,Object> action) { Record rec = getStore().get(key); if ( rec == null ) { final Object apply = action.apply(rec); if ( apply instanceof ChangeMessage ) { receive( (Chan...
public class class_name { public IPromise atomicQuery(String key, RLFunction<Record,Object> action) { Record rec = getStore().get(key); if ( rec == null ) { final Object apply = action.apply(rec); if ( apply instanceof ChangeMessage ) { receive( (Chan...
public class class_name { public byte[] toByteArray() { // computes the real size of the bytecode of this class final int interfaceCount = interfaces.length; int size = 24 + 2 * interfaceCount; // if (fields != null) { // size += fields.length; // } for (MethodW...
public class class_name { public byte[] toByteArray() { // computes the real size of the bytecode of this class final int interfaceCount = interfaces.length; int size = 24 + 2 * interfaceCount; // if (fields != null) { // size += fields.length; // } for (MethodW...
public class class_name { public java.lang.String getServerIp() { java.lang.Object ref = serverIp_; 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.t...
public class class_name { public java.lang.String getServerIp() { java.lang.Object ref = serverIp_; 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.pro...
public class class_name { public static void add_acker(Map stormConf, StormTopology ret) { String key = Config.TOPOLOGY_ACKER_EXECUTORS; Integer ackerNum = JStormUtils.parseInt(stormConf.get(key), 0); // generate outputs HashMap<String, StreamInfo> outputs = new HashMap<>(); A...
public class class_name { public static void add_acker(Map stormConf, StormTopology ret) { String key = Config.TOPOLOGY_ACKER_EXECUTORS; Integer ackerNum = JStormUtils.parseInt(stormConf.get(key), 0); // generate outputs HashMap<String, StreamInfo> outputs = new HashMap<>(); A...
public class class_name { public com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigOrBuilder getCategoricalStatsConfigOrBuilder() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) type_; } return com.google.privacy.dlp.v2.PrivacyMetric.C...
public class class_name { public com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigOrBuilder getCategoricalStatsConfigOrBuilder() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) type_; // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean isBaseLevelForKey(Slice userKey) { // Maybe use binary search to find right entry instead of linear search? UserComparator userComparator = inputVersion.getInternalKeyComparator().getUserComparator(); for (int level = this.level + 2; level < NUM_LEVE...
public class class_name { public boolean isBaseLevelForKey(Slice userKey) { // Maybe use binary search to find right entry instead of linear search? UserComparator userComparator = inputVersion.getInternalKeyComparator().getUserComparator(); for (int level = this.level + 2; level < NUM_LEVE...
public class class_name { public void marshall(GetCoreDefinitionRequest getCoreDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (getCoreDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(GetCoreDefinitionRequest getCoreDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (getCoreDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { @Requires("r != null") public void report(Report r) { if (r.getKind() == Kind.ERROR) { ++errorCount; } reports.add(r); } }
public class class_name { @Requires("r != null") public void report(Report r) { if (r.getKind() == Kind.ERROR) { ++errorCount; // depends on control dependency: [if], data = [none] } reports.add(r); } }
public class class_name { @Override public void onStageTransition(JobExecutionState state, String previousStage, String newStage) { try { _dispatcher.execCallbacks(new StageTransitionCallback(state, previousStage, newStage)); } catch (InterruptedException e) { _dispatcher.getLog().warn("onStageTr...
public class class_name { @Override public void onStageTransition(JobExecutionState state, String previousStage, String newStage) { try { _dispatcher.execCallbacks(new StageTransitionCallback(state, previousStage, newStage)); // depends on control dependency: [try], data = [none] } catch (InterruptedEx...
public class class_name { @Override public void onRefresh(String updatedKey, String configContent) { boolean isDeleted = (configContent == null); if (isDeleted) { LOGGER.info("LEP script deleted by config path: {}", updatedKey); // delete scriptResources.remove(u...
public class class_name { @Override public void onRefresh(String updatedKey, String configContent) { boolean isDeleted = (configContent == null); if (isDeleted) { LOGGER.info("LEP script deleted by config path: {}", updatedKey); // depends on control dependency: [if], data = [none] ...
public class class_name { public static PeriodDuration from(TemporalAmount amount) { if (amount instanceof PeriodDuration) { return (PeriodDuration) amount; } if (amount instanceof Period) { return PeriodDuration.of((Period) amount); } if (amount instance...
public class class_name { public static PeriodDuration from(TemporalAmount amount) { if (amount instanceof PeriodDuration) { return (PeriodDuration) amount; // depends on control dependency: [if], data = [none] } if (amount instanceof Period) { return PeriodDuration.of((...
public class class_name { @SuppressWarnings("unchecked") @Override public <T> List<T> findAll(String collectionName) { CollectionMetaData cmd = cmdMap.get(collectionName); Map<Object, T> collection = (Map<Object, T>) collectionsRef.get().get(collectionName); if((null == cmd) || (null == collection)) { ...
public class class_name { @SuppressWarnings("unchecked") @Override public <T> List<T> findAll(String collectionName) { CollectionMetaData cmd = cmdMap.get(collectionName); Map<Object, T> collection = (Map<Object, T>) collectionsRef.get().get(collectionName); if((null == cmd) || (null == collection)) { ...
public class class_name { public static <T, U> ToLongBiFunction<T, U> toLongBiFunction(CheckedToLongBiFunction<T, U> function, Consumer<Throwable> handler) { return (t, u) -> { try { return function.applyAsLong(t, u); } catch (Throwable e) { h...
public class class_name { public static <T, U> ToLongBiFunction<T, U> toLongBiFunction(CheckedToLongBiFunction<T, U> function, Consumer<Throwable> handler) { return (t, u) -> { try { return function.applyAsLong(t, u); // depends on control dependency: [try], data = [none] ...
public class class_name { public ServiceStatus getServiceStatus() { List<String> reasons = new ArrayList<String>(); Status criticalStatus = Status.UP; for (MonitoredService m : criticals) { ServiceStatus serviceStatus = m.getServiceStatus(); Status status = serviceStat...
public class class_name { public ServiceStatus getServiceStatus() { List<String> reasons = new ArrayList<String>(); Status criticalStatus = Status.UP; for (MonitoredService m : criticals) { ServiceStatus serviceStatus = m.getServiceStatus(); Status status = serviceStat...
public class class_name { private static void addProtocolSpecificHeaders(ResponseBuilder builder, Class<? extends PublicResource> clazz) { List<Term> types=new ArrayList<Term>(); if(PublicRDFSource.class.isAssignableFrom(clazz)) { types.add(LDP.RESOURCE); } if(PublicBasicContainer.class.isAssignableFrom(cla...
public class class_name { private static void addProtocolSpecificHeaders(ResponseBuilder builder, Class<? extends PublicResource> clazz) { List<Term> types=new ArrayList<Term>(); if(PublicRDFSource.class.isAssignableFrom(clazz)) { types.add(LDP.RESOURCE); // depends on control dependency: [if], data = [none] ...
public class class_name { public synchronized Object put(final String key, final Object value) { try { if (maxCacheSize == 0) { return null; } // if the key isn't in the cache and the cache is full... if (!super.containsKey(key) && !list.isEmpty() && list.size() + 1 > maxCacheSize) { final ...
public class class_name { public synchronized Object put(final String key, final Object value) { try { if (maxCacheSize == 0) { return null; // depends on control dependency: [if], data = [none] } // if the key isn't in the cache and the cache is full... if (!super.containsKey(key) && !list.isEmpty(...
public class class_name { public java.util.List<DomainMembership> getDomainMemberships() { if (domainMemberships == null) { domainMemberships = new com.amazonaws.internal.SdkInternalList<DomainMembership>(); } return domainMemberships; } }
public class class_name { public java.util.List<DomainMembership> getDomainMemberships() { if (domainMemberships == null) { domainMemberships = new com.amazonaws.internal.SdkInternalList<DomainMembership>(); // depends on control dependency: [if], data = [none] } return domainMember...
public class class_name { public void closeNotification() throws SIResourceException, SIConnectionLostException, SIErrorException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeNotification"); // Determine if we ...
public class class_name { public void closeNotification() throws SIResourceException, SIConnectionLostException, SIErrorException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeNotification"); // Determine if we ...
public class class_name { private Response getResponseFromProviderUsing(Authentication token) { Client client = getClient(); WebTarget webTarget = client .target(oAuth2ServiceProperties.getUserInfoUri()) .queryParam(oAuth2ServiceProperties.getAccessTokenName(), (String)...
public class class_name { private Response getResponseFromProviderUsing(Authentication token) { Client client = getClient(); WebTarget webTarget = client .target(oAuth2ServiceProperties.getUserInfoUri()) .queryParam(oAuth2ServiceProperties.getAccessTokenName(), (String)...
public class class_name { public INDArray asRowVector(BufferedImage image) { if (centerCropIfNeeded) { image = centerCropIfNeeded(image); } image = scalingIfNeed(image, true); if (channels == 3) { return toINDArrayBGR(image).ravel(); } int[][] ret...
public class class_name { public INDArray asRowVector(BufferedImage image) { if (centerCropIfNeeded) { image = centerCropIfNeeded(image); // depends on control dependency: [if], data = [none] } image = scalingIfNeed(image, true); if (channels == 3) { return toIND...
public class class_name { public Result<Void> createArtifact(AuthzTrans trans, List<ArtiDAO.Data> list) { Validator v = new Validator().artisRequired(list, 1); if(v.err()) { return Result.err(Result.ERR_BadData,v.errs()); } for(ArtiDAO.Data add : list) { try { // Policy 1: MechID must exist in...
public class class_name { public Result<Void> createArtifact(AuthzTrans trans, List<ArtiDAO.Data> list) { Validator v = new Validator().artisRequired(list, 1); if(v.err()) { return Result.err(Result.ERR_BadData,v.errs()); // depends on control dependency: [if], data = [none] } for(ArtiDAO.Data add : li...
public class class_name { private void create(Connection conn) throws SQLException { logger.debug("enter - create()"); try { PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement(CREATE_SEQ); ...
public class class_name { private void create(Connection conn) throws SQLException { logger.debug("enter - create()"); try { PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement(CREATE_SEQ); // depends on...
public class class_name { @SuppressWarnings("unchecked") private void prepareKarafRbacInvocations(String fullName, Map<String, Object> mBeanInfo, Map<String, List<String>> queryForMBeans, Map<String, List<String>> queryForMBe...
public class class_name { @SuppressWarnings("unchecked") private void prepareKarafRbacInvocations(String fullName, Map<String, Object> mBeanInfo, Map<String, List<String>> queryForMBeans, Map<String, List<String>> queryForMBe...
public class class_name { private void setType(UIComponent component, String type) { Method method; try { method = component.getClass().getMethod("getType"); if (null != method) { Object invoke = method.invoke(component); if (invoke != null) { // is it an PrimeFaces component? if (component...
public class class_name { private void setType(UIComponent component, String type) { Method method; try { method = component.getClass().getMethod("getType"); if (null != method) { Object invoke = method.invoke(component); if (invoke != null) { // is it an PrimeFaces component? if (component...
public class class_name { public boolean existsCore(String coreName) { try { CoreStatus status = CoreAdminRequest.getCoreStatus(coreName, solrClient); status.getInstanceDirectory(); } catch (Exception e) { return false; } return true; } }
public class class_name { public boolean existsCore(String coreName) { try { CoreStatus status = CoreAdminRequest.getCoreStatus(coreName, solrClient); status.getInstanceDirectory(); // depends on control dependency: [try], data = [none] } catch (Exception e) { return...
public class class_name { public static ManagedChannel createNettyChannel(String host, BigtableOptions options, ClientInterceptor ... interceptors) throws SSLException { LOG.info("Creating new channel for %s", host); if (LOG.getLog().isDebugEnabled()) { LOG.debug(Throwables.getStackTraceAsString(n...
public class class_name { public static ManagedChannel createNettyChannel(String host, BigtableOptions options, ClientInterceptor ... interceptors) throws SSLException { LOG.info("Creating new channel for %s", host); if (LOG.getLog().isDebugEnabled()) { LOG.debug(Throwables.getStackTraceAsString(n...
public class class_name { private EntityDecl handleExternalEntityDecl(WstxInputSource inputSource, boolean isParam, String id, char c, Location evtLoc) throws XMLStreamException { boolean isPublic = chec...
public class class_name { private EntityDecl handleExternalEntityDecl(WstxInputSource inputSource, boolean isParam, String id, char c, Location evtLoc) throws XMLStreamException { boolean isPublic = chec...
public class class_name { public static double Digamma(double x) { double s = 0; double w = 0; double y = 0; double z = 0; double nz = 0; boolean negative = false; if (x <= 0.0) { negative = true; double q = x; double p = (in...
public class class_name { public static double Digamma(double x) { double s = 0; double w = 0; double y = 0; double z = 0; double nz = 0; boolean negative = false; if (x <= 0.0) { negative = true; // depends on control dependency: [if], data = [none...
public class class_name { @Override public void setTo( Planar<T> orig) { if (orig.width != width || orig.height != height) reshape(orig.width,orig.height); if( orig.getBandType() != getBandType() ) throw new IllegalArgumentException("The band type must be the same"); int N = orig.getNumBands(); if( N !...
public class class_name { @Override public void setTo( Planar<T> orig) { if (orig.width != width || orig.height != height) reshape(orig.width,orig.height); if( orig.getBandType() != getBandType() ) throw new IllegalArgumentException("The band type must be the same"); int N = orig.getNumBands(); if( N !...
public class class_name { public String editDbmsConfiguration() { try { if (isCustomSetup()) { if (hibernateDialect != null && jndiUrl != null) { if (canConnectToDbms()) { getConfigurationActivator().initCustomInstallConfiguration(hibernateDialect, jndiUrl); } else { ...
public class class_name { public String editDbmsConfiguration() { try { if (isCustomSetup()) { if (hibernateDialect != null && jndiUrl != null) { if (canConnectToDbms()) { getConfigurationActivator().initCustomInstallConfiguration(hibernateDialect, jndiUrl); // depends on control dep...
public class class_name { public void marshall(OutputGroup outputGroup, ProtocolMarshaller protocolMarshaller) { if (outputGroup == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(outputGroup.getCust...
public class class_name { public void marshall(OutputGroup outputGroup, ProtocolMarshaller protocolMarshaller) { if (outputGroup == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(outputGroup.getCust...
public class class_name { public void setSamplingTargetDocuments(java.util.Collection<SamplingTargetDocument> samplingTargetDocuments) { if (samplingTargetDocuments == null) { this.samplingTargetDocuments = null; return; } this.samplingTargetDocuments = new java.util.Ar...
public class class_name { public void setSamplingTargetDocuments(java.util.Collection<SamplingTargetDocument> samplingTargetDocuments) { if (samplingTargetDocuments == null) { this.samplingTargetDocuments = null; // depends on control dependency: [if], data = [none] return; // depends o...
public class class_name { public void restoreKey(String key) { if (!key.equalsIgnoreCase("test_mode_opened")) { String originalKey = key.substring(keyTestMode.length()); Object value = get(key); put(originalKey, value); clear(key); } } }
public class class_name { public void restoreKey(String key) { if (!key.equalsIgnoreCase("test_mode_opened")) { String originalKey = key.substring(keyTestMode.length()); Object value = get(key); put(originalKey, value); // depends on control dependency: [if], data = [none] clear(key); // depends on contr...
public class class_name { public EClass getRevisionUpdated() { if (revisionUpdatedEClass == null) { revisionUpdatedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI) .getEClassifiers().get(25); } return revisionUpdatedEClass; } }
public class class_name { public EClass getRevisionUpdated() { if (revisionUpdatedEClass == null) { revisionUpdatedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI) .getEClassifiers().get(25); // depends on control dependency: [if], data = [none] } return revisionUpdatedEC...
public class class_name { public SequencalJobExecuteResults runAll() { SequencalJobExecuteResults results = new SequencalJobExecuteResults(); for (Job job : jobs) { job.setJarByClass(SequencalJobChain.class); try { boolean isSuccessful = job.waitForCompletion(tru...
public class class_name { public SequencalJobExecuteResults runAll() { SequencalJobExecuteResults results = new SequencalJobExecuteResults(); for (Job job : jobs) { job.setJarByClass(SequencalJobChain.class); // depends on control dependency: [for], data = [job] try { ...
public class class_name { public E poll() { final ReentrantLock lock = this.lock; lock.lock(); try { E first = q.peek(); return (first == null || first.getDelay(NANOSECONDS) > 0) ? null : q.poll(); } finally { lock.unlo...
public class class_name { public E poll() { final ReentrantLock lock = this.lock; lock.lock(); try { E first = q.peek(); return (first == null || first.getDelay(NANOSECONDS) > 0) ? null : q.poll(); // depends on control dependency: [try], ...
public class class_name { public static void rename(ObjectNode obj, String oldFieldName, String newFieldName) { if (obj != null && isNotBlank(oldFieldName) && isNotBlank(newFieldName)) { JsonNode node = remove(obj, oldFieldName); if (node != null) { obj.set(newFieldName, node); } } } }
public class class_name { public static void rename(ObjectNode obj, String oldFieldName, String newFieldName) { if (obj != null && isNotBlank(oldFieldName) && isNotBlank(newFieldName)) { JsonNode node = remove(obj, oldFieldName); if (node != null) { obj.set(newFieldName, node); // depends on control depend...
public class class_name { public void moveFieldToThin(FieldInfo fieldInfo, BaseField field, Record record) { if ((field == null) || (!field.getFieldName().equals(fieldInfo.getFieldName()))) { field = null; if (record != null) field = record.getField(fieldInfo...
public class class_name { public void moveFieldToThin(FieldInfo fieldInfo, BaseField field, Record record) { if ((field == null) || (!field.getFieldName().equals(fieldInfo.getFieldName()))) { field = null; // depends on control dependency: [if], data = [none] if (record != n...
public class class_name { public static <T> List<T> toList(Iterable<? extends T> iterable) { List<T> list = new ArrayList<T>(); for (T e : iterable) { list.add(e); } return list; } }
public class class_name { public static <T> List<T> toList(Iterable<? extends T> iterable) { List<T> list = new ArrayList<T>(); for (T e : iterable) { list.add(e); // depends on control dependency: [for], data = [e] } return list; } }
public class class_name { public V get(String key) { int index = exactMatchSearch(key); if (index >= 0) { return getValueAt(index); } return null; } }
public class class_name { public V get(String key) { int index = exactMatchSearch(key); if (index >= 0) { return getValueAt(index); // depends on control dependency: [if], data = [(index] } return null; } }
public class class_name { public char getDataLength() { char length = 0; List<StunAttribute> attrs = getAttributes(); for (StunAttribute att : attrs) { int attLen = att.getDataLength() + StunAttribute.HEADER_LENGTH; // take attribute padding into account: attLen += (4 - (attLen % 4)) % 4; length +...
public class class_name { public char getDataLength() { char length = 0; List<StunAttribute> attrs = getAttributes(); for (StunAttribute att : attrs) { int attLen = att.getDataLength() + StunAttribute.HEADER_LENGTH; // take attribute padding into account: attLen += (4 - (attLen % 4)) % 4; // depends o...
public class class_name { private void traverseNode(String path) { DataNode node = getNode(path); String children[] = null; synchronized (node) { Set<String> childs = node.getChildren(); if (childs != null) { children = childs.toArray(new String[childs.si...
public class class_name { private void traverseNode(String path) { DataNode node = getNode(path); String children[] = null; synchronized (node) { Set<String> childs = node.getChildren(); if (childs != null) { children = childs.toArray(new String[childs.si...
public class class_name { @SuppressWarnings("unchecked") public static <T> Collector<T> initOutputs(AbstractInvokable nepheleTask, ClassLoader cl, TaskConfig config, List<ChainedDriver<?, ?>> chainedTasksTarget, List<BufferWriter> eventualOutputs) throws Exception { final int numOutputs = config.getNumOutput...
public class class_name { @SuppressWarnings("unchecked") public static <T> Collector<T> initOutputs(AbstractInvokable nepheleTask, ClassLoader cl, TaskConfig config, List<ChainedDriver<?, ?>> chainedTasksTarget, List<BufferWriter> eventualOutputs) throws Exception { final int numOutputs = config.getNumOutput...
public class class_name { protected String htmlComponent(CmsSetupComponent component) { StringBuffer html = new StringBuffer(256); html.append("\t<tr>\n"); html.append("\t\t<td>\n"); html.append("\t\t\t<input type='checkbox' name='availableComponents' value='"); html.append(com...
public class class_name { protected String htmlComponent(CmsSetupComponent component) { StringBuffer html = new StringBuffer(256); html.append("\t<tr>\n"); html.append("\t\t<td>\n"); html.append("\t\t\t<input type='checkbox' name='availableComponents' value='"); html.append(com...
public class class_name { public void storeAppSettings(CmsObject cms, Class<? extends I_CmsAppSettings> type, I_CmsAppSettings appSettings) { CmsUser user = cms.getRequestContext().getCurrentUser(); CmsUserSettings settings = new CmsUserSettings(user); String currentSetting = settings.getAddi...
public class class_name { public void storeAppSettings(CmsObject cms, Class<? extends I_CmsAppSettings> type, I_CmsAppSettings appSettings) { CmsUser user = cms.getRequestContext().getCurrentUser(); CmsUserSettings settings = new CmsUserSettings(user); String currentSetting = settings.getAddi...
public class class_name { static FacebookSettings newInstance(Bundle bundle) { FacebookSettings settings = null; int destinationId = bundle.getInt(BUNDLE_KEY_DESTINATION_ID); String accountName = bundle.getString(BUNDLE_KEY_ACCOUNT_NAME); String albumName = bundle.getString(BUNDLE_KEY_...
public class class_name { static FacebookSettings newInstance(Bundle bundle) { FacebookSettings settings = null; int destinationId = bundle.getInt(BUNDLE_KEY_DESTINATION_ID); String accountName = bundle.getString(BUNDLE_KEY_ACCOUNT_NAME); String albumName = bundle.getString(BUNDLE_KEY_...
public class class_name { @VisibleForTesting Map<String, LookupExtractorFactoryMapContainer> getToBeLoadedOnNode( LookupsState<LookupExtractorFactoryMapContainer> currLookupsStateOnNode, Map<String, LookupExtractorFactoryMapContainer> nodeTierLookupsToBe ) { Map<String, LookupExtractorFactoryMapC...
public class class_name { @VisibleForTesting Map<String, LookupExtractorFactoryMapContainer> getToBeLoadedOnNode( LookupsState<LookupExtractorFactoryMapContainer> currLookupsStateOnNode, Map<String, LookupExtractorFactoryMapContainer> nodeTierLookupsToBe ) { Map<String, LookupExtractorFactoryMapC...
public class class_name { public static double[] timesPlus(final double[] v1, final double s1, final double[] v2) { assert v1.length == v2.length : ERR_VEC_DIMENSIONS; final double[] result = new double[v1.length]; for(int i = 0; i < result.length; i++) { result[i] = v1[i] * s1 + v2[i]; } ret...
public class class_name { public static double[] timesPlus(final double[] v1, final double s1, final double[] v2) { assert v1.length == v2.length : ERR_VEC_DIMENSIONS; final double[] result = new double[v1.length]; for(int i = 0; i < result.length; i++) { result[i] = v1[i] * s1 + v2[i]; // depends on...
public class class_name { @Override public synchronized ChainGroupData removeChainGroup(String groupName) throws ChainGroupException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing chain group, " + groupName); } if (null == groupName) ...
public class class_name { @Override public synchronized ChainGroupData removeChainGroup(String groupName) throws ChainGroupException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing chain group, " + groupName); // depends on control dependency: [if], d...
public class class_name { public void setChannel(@Nonnull Channel channel, @CheckForNull OutputStream launchLog, @CheckForNull Channel.Listener listener) throws IOException, InterruptedException { if(this.channel!=null) throw new IllegalStateExc...
public class class_name { public void setChannel(@Nonnull Channel channel, @CheckForNull OutputStream launchLog, @CheckForNull Channel.Listener listener) throws IOException, InterruptedException { if(this.channel!=null) throw new IllegalStateExc...
public class class_name { void assignToRangeVariables() { for (int i = 0; i < rangeVariables.length; i++) { boolean isOuter = rangeVariables[i].isLeftJoin || rangeVariables[i].isRightJoin; if (isOuter) { assignToRangeVariable(rangeVariable...
public class class_name { void assignToRangeVariables() { for (int i = 0; i < rangeVariables.length; i++) { boolean isOuter = rangeVariables[i].isLeftJoin || rangeVariables[i].isRightJoin; if (isOuter) { assignToRangeVariable(rangeVariable...
public class class_name { public void initializeAndWait() throws XMPPException, SmackException, InterruptedException { this.initialize(); try { LOGGER.fine("Initializing transport resolver..."); while (!this.isInitialized()) { LOGGER.fine("Resolver init still pen...
public class class_name { public void initializeAndWait() throws XMPPException, SmackException, InterruptedException { this.initialize(); try { LOGGER.fine("Initializing transport resolver..."); while (!this.isInitialized()) { LOGGER.fine("Resolver init still pen...
public class class_name { public SIMPRequestMessageInfo getRequestMessageInfo() throws SIMPRuntimeOperationFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRequestMessageInfo"); SIMPRequestMessageInfo requestMessageInfo = null; try { ...
public class class_name { public SIMPRequestMessageInfo getRequestMessageInfo() throws SIMPRuntimeOperationFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRequestMessageInfo"); SIMPRequestMessageInfo requestMessageInfo = null; try { ...
public class class_name { public void marshall(ModelArtifacts modelArtifacts, ProtocolMarshaller protocolMarshaller) { if (modelArtifacts == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(modelArtif...
public class class_name { public void marshall(ModelArtifacts modelArtifacts, ProtocolMarshaller protocolMarshaller) { if (modelArtifacts == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(modelArtif...
public class class_name { public static TheHashinator constructHashinator( Class<? extends TheHashinator> hashinatorImplementation, byte configBytes[], boolean cooked) { try { Constructor<? extends TheHashinator> constructor = hashinatorIm...
public class class_name { public static TheHashinator constructHashinator( Class<? extends TheHashinator> hashinatorImplementation, byte configBytes[], boolean cooked) { try { Constructor<? extends TheHashinator> constructor = hashinatorIm...
public class class_name { public int getDataSize() { // Data size is given by lvs int size = 0; for(int i=0; i<numLVs; i++) { size += IOUtils.toInt(lvs[i]); } return size; } }
public class class_name { public int getDataSize() { // Data size is given by lvs int size = 0; for(int i=0; i<numLVs; i++) { size += IOUtils.toInt(lvs[i]); // depends on control dependency: [for], data = [i] } return size; } }
public class class_name { public ExcelWriter setColumnWidth(int columnIndex, int width) { if (columnIndex < 0) { this.sheet.setDefaultColumnWidth(width); } else { this.sheet.setColumnWidth(columnIndex, width * 256); } return this; } }
public class class_name { public ExcelWriter setColumnWidth(int columnIndex, int width) { if (columnIndex < 0) { this.sheet.setDefaultColumnWidth(width); // depends on control dependency: [if], data = [none] } else { this.sheet.setColumnWidth(columnIndex, width * 256); // depends on control dependency: ...
public class class_name { public List<Comment> parse(String jsonText) throws RedditParseException { // Parse to a list of things List<Thing> things = this.parseGeneric(jsonText); // List of comment and submission mixed elements List<Comment> comments = new LinkedList<C...
public class class_name { public List<Comment> parse(String jsonText) throws RedditParseException { // Parse to a list of things List<Thing> things = this.parseGeneric(jsonText); // List of comment and submission mixed elements List<Comment> comments = new LinkedList<C...
public class class_name { protected static Map<String, List<Statement>> addStatementToGroups(Statement statement, Map<String, List<Statement>> claims) { Map<String, List<Statement>> newGroups = new HashMap<>(claims); String pid = statement.getMainSnak().getPropertyId().getId(); if(newGroups.containsKey(pid)) { ...
public class class_name { protected static Map<String, List<Statement>> addStatementToGroups(Statement statement, Map<String, List<Statement>> claims) { Map<String, List<Statement>> newGroups = new HashMap<>(claims); String pid = statement.getMainSnak().getPropertyId().getId(); if(newGroups.containsKey(pid)) { ...
public class class_name { protected int calculateLineIndentationLevel(final ParserData parserData, final String line, int lineNumber) throws IndentationException { char[] lineCharArray = line.toCharArray(); int indentationCount = 0; // Count the amount of whitespace characters befor...
public class class_name { protected int calculateLineIndentationLevel(final ParserData parserData, final String line, int lineNumber) throws IndentationException { char[] lineCharArray = line.toCharArray(); int indentationCount = 0; // Count the amount of whitespace characters befor...
public class class_name { protected Map<String, String> parseHeaderParameters(HttpServletRequest request) { String header = null; Enumeration<String> headers = request.getHeaders("Authorization"); while (headers.hasMoreElements()) { String value = headers.nextElement(); if ((value.toLowerCase()...
public class class_name { protected Map<String, String> parseHeaderParameters(HttpServletRequest request) { String header = null; Enumeration<String> headers = request.getHeaders("Authorization"); while (headers.hasMoreElements()) { String value = headers.nextElement(); if ((value.toLowerCase()...
public class class_name { private List<String> getEchoMessagesFromReturnValue() { List<String> returnListing = new ArrayList(); if(this.returnValue == null) { return returnListing; } Iterator<T> iterForReturnVal = this.returnValue.iterator(); //Only add where the ECHO message is set... while(i...
public class class_name { private List<String> getEchoMessagesFromReturnValue() { List<String> returnListing = new ArrayList(); if(this.returnValue == null) { return returnListing; // depends on control dependency: [if], data = [none] } Iterator<T> iterForReturnVal = this.returnValue.iterator(); ...
public class class_name { public void close() { fsRunning = false; try { if (pendingReplications != null) { pendingReplications.stop(); } if (hbthread != null) { hbthread.interrupt(); } if (underreplthread != null) { underreplthread.interrupt(); ...
public class class_name { public void close() { fsRunning = false; try { if (pendingReplications != null) { pendingReplications.stop(); // depends on control dependency: [if], data = [none] } if (hbthread != null) { hbthread.interrupt(); // depends on control dependency: [if],...
public class class_name { private void determineDefaultAccessTypeAndMetaCompleteness() { for ( EntityMappings mappings : entityMappings ) { PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata(); if ( meta != null ) { if ( meta.getXmlMappingMetadataComplete() != null ) { context.mappingD...
public class class_name { private void determineDefaultAccessTypeAndMetaCompleteness() { for ( EntityMappings mappings : entityMappings ) { PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata(); if ( meta != null ) { if ( meta.getXmlMappingMetadataComplete() != null ) { context.mappingD...
public class class_name { protected static String createToolbar(JavaScriptObject jso) { JsArray<?> jsItemArray = jso.<JsArray<?>> cast(); List<String> jsItemList = new ArrayList<String>(); for (int i = 0; i < jsItemArray.length(); i++) { jsItemList.add(jsItemArray.get(i).toString()...
public class class_name { protected static String createToolbar(JavaScriptObject jso) { JsArray<?> jsItemArray = jso.<JsArray<?>> cast(); List<String> jsItemList = new ArrayList<String>(); for (int i = 0; i < jsItemArray.length(); i++) { jsItemList.add(jsItemArray.get(i).toString()...
public class class_name { public FormValidation doCheckViewName(@QueryParameter String value) { checkPermission(View.CREATE); String name = fixEmpty(value); if (name == null) return FormValidation.ok(); // already exists? if (getView(name) != null) retu...
public class class_name { public FormValidation doCheckViewName(@QueryParameter String value) { checkPermission(View.CREATE); String name = fixEmpty(value); if (name == null) return FormValidation.ok(); // already exists? if (getView(name) != null) retu...
public class class_name { public static <T> T newInstance(Class<T> clazz) { try { return clazz.newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new ResourceException(String.format("couldn't create a new instance of %s", clazz)); } } }
public class class_name { public static <T> T newInstance(Class<T> clazz) { try { return clazz.newInstance(); // depends on control dependency: [try], data = [none] } catch (InstantiationException | IllegalAccessException e) { throw new ResourceException(String.format("couldn't create a new instance of %s"...
public class class_name { public String getList() { String result = ""; int i = 1; for (String s : mReps.keySet()) { result += (i++) + ". key='" + s + "', value='" + mReps.get(s) + "'\n"; } return result; } }
public class class_name { public String getList() { String result = ""; int i = 1; for (String s : mReps.keySet()) { result += (i++) + ". key='" + s + "', value='" + mReps.get(s) + "'\n"; // depends on control dependency: [for], data = [s] } return result; } }
public class class_name { public void sendData(SerialMessage serialMessage) { if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) { logger.error(String.format("Invalid message class %s (0x%02X) for sendData", serialMessage.getMessageClass().getLabel(), serialMessage.getMessage...
public class class_name { public void sendData(SerialMessage serialMessage) { if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) { logger.error(String.format("Invalid message class %s (0x%02X) for sendData", serialMessage.getMessageClass().getLabel(), serialMessage.getMessage...
public class class_name { public void marshall(UpdatePipelineStatusRequest updatePipelineStatusRequest, ProtocolMarshaller protocolMarshaller) { if (updatePipelineStatusRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(UpdatePipelineStatusRequest updatePipelineStatusRequest, ProtocolMarshaller protocolMarshaller) { if (updatePipelineStatusRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @NonNull public IconicsDrawable drawBackgroundContour(boolean drawBackgroundContour) { if (mDrawBackgroundContour != drawBackgroundContour) { mDrawBackgroundContour = drawBackgroundContour; mIconPadding += (mDrawBackgroundContour ? 1 : -1) * mBackgroundCon...
public class class_name { @NonNull public IconicsDrawable drawBackgroundContour(boolean drawBackgroundContour) { if (mDrawBackgroundContour != drawBackgroundContour) { mDrawBackgroundContour = drawBackgroundContour; // depends on control dependency: [if], data = [none] mIconPadding...
public class class_name { public void removeValue() { if (!isSimpleValue()) { m_hasValue = false; m_widgetHolder.clear(); generateLabel(); } else { // only deactivate the widget and restore the default value m_widget.setActive(false);...
public class class_name { public void removeValue() { if (!isSimpleValue()) { m_hasValue = false; // depends on control dependency: [if], data = [none] m_widgetHolder.clear(); // depends on control dependency: [if], data = [none] generateLabel(); // depends on control...
public class class_name { public NetworkInterface withIpv6Addresses(String... ipv6Addresses) { if (this.ipv6Addresses == null) { setIpv6Addresses(new java.util.ArrayList<String>(ipv6Addresses.length)); } for (String ele : ipv6Addresses) { this.ipv6Addresses.add(ele); ...
public class class_name { public NetworkInterface withIpv6Addresses(String... ipv6Addresses) { if (this.ipv6Addresses == null) { setIpv6Addresses(new java.util.ArrayList<String>(ipv6Addresses.length)); // depends on control dependency: [if], data = [none] } for (String ele : ipv6Add...
public class class_name { protected DoubleDataStore computeIDOS(DBIDs ids, KNNQuery<O> knnQ, DoubleDataStore intDims, DoubleMinMax idosminmax) { WritableDoubleDataStore ldms = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC); FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("ID Outl...
public class class_name { protected DoubleDataStore computeIDOS(DBIDs ids, KNNQuery<O> knnQ, DoubleDataStore intDims, DoubleMinMax idosminmax) { WritableDoubleDataStore ldms = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC); FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("ID Outl...
public class class_name { private KeyPersonCompensationDataType getCompensation( KeyPersonDto keyPerson, int budgetPeriod) { KeyPersonCompensationDataType keyPersonCompensation = KeyPersonCompensationDataType.Factory .newInstance(); ScaleTwoDecimal baseSalaryByPeriod; if (keyPerson != null) { ...
public class class_name { private KeyPersonCompensationDataType getCompensation( KeyPersonDto keyPerson, int budgetPeriod) { KeyPersonCompensationDataType keyPersonCompensation = KeyPersonCompensationDataType.Factory .newInstance(); ScaleTwoDecimal baseSalaryByPeriod; if (keyPerson != null) { ...
public class class_name { private <Delegated> MvpPresenter<? super Delegated> getMvpPresenter(Delegated target, PresenterField<Delegated> presenterField, String delegateTag) { Class<? extends MvpPresenter<?>> presenterClass = presenterField.getPresenterClass(); PresenterStore presenterStore = MvpFacade.getInstance...
public class class_name { private <Delegated> MvpPresenter<? super Delegated> getMvpPresenter(Delegated target, PresenterField<Delegated> presenterField, String delegateTag) { Class<? extends MvpPresenter<?>> presenterClass = presenterField.getPresenterClass(); PresenterStore presenterStore = MvpFacade.getInstance...
public class class_name { private long grow(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, HeaderTableItem header, int[] itemset, int[] localItemSupport, int[] prefixItemset) { long n = 1; int support = header.count; int item = header.id; itemset = insert(itemset, item); ...
public class class_name { private long grow(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, HeaderTableItem header, int[] itemset, int[] localItemSupport, int[] prefixItemset) { long n = 1; int support = header.count; int item = header.id; itemset = insert(itemset, item); ...
public class class_name { @Nonnull public String getLine() { if (preLoaded) { if (bufferOffset >= 0) { int lineStart = bufferOffset; if (linePos > 0) { lineStart -= linePos - 1; } int lineEnd = bufferOffset; ...
public class class_name { @Nonnull public String getLine() { if (preLoaded) { if (bufferOffset >= 0) { int lineStart = bufferOffset; if (linePos > 0) { lineStart -= linePos - 1; // depends on control dependency: [if], data = [none] ...
public class class_name { public static int determineNumberOfWorkerThreads() { final int threads = Config.getInstance().getPropertyAsInt(Config.AlpineKey.WORKER_THREADS); if (threads > 0) { return threads; } else if (threads == 0) { final int cores = SystemUtil.getCpuCor...
public class class_name { public static int determineNumberOfWorkerThreads() { final int threads = Config.getInstance().getPropertyAsInt(Config.AlpineKey.WORKER_THREADS); if (threads > 0) { return threads; // depends on control dependency: [if], data = [none] } else if (threads == 0...
public class class_name { @Pure public String getInternalId() { final int endIndex = this.id.indexOf('#'); if (endIndex <= 0) { return null; } return this.id.substring(0, endIndex); } }
public class class_name { @Pure public String getInternalId() { final int endIndex = this.id.indexOf('#'); if (endIndex <= 0) { return null; // depends on control dependency: [if], data = [none] } return this.id.substring(0, endIndex); } }
public class class_name { public GenericUtilities.TypeCategory getTypeCategory() { if (hasParameters() && variable == null && extension == null) { return GenericUtilities.TypeCategory.PARAMETERIZED; } else if (!hasParameters() && variable != null && extension == null) { if ("*"...
public class class_name { public GenericUtilities.TypeCategory getTypeCategory() { if (hasParameters() && variable == null && extension == null) { return GenericUtilities.TypeCategory.PARAMETERIZED; // depends on control dependency: [if], data = [none] } else if (!hasParameters() && variab...
public class class_name { private boolean containsIgnoreCase(List<String> stringlist, String match) { for (String s : stringlist) { if (s.equalsIgnoreCase(match)) { return true; } } return false; } }
public class class_name { private boolean containsIgnoreCase(List<String> stringlist, String match) { for (String s : stringlist) { if (s.equalsIgnoreCase(match)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public void mergeStatistics(Statistics stats) { if (stats.isEmpty()) return; // Merge stats only if they have the same type if (type.equals(stats.type)) { incrementNumNulls(stats.getNumNulls()); if (stats.hasNonNullValue()) { mergeStatisticsMinMax(stats); ...
public class class_name { public void mergeStatistics(Statistics stats) { if (stats.isEmpty()) return; // Merge stats only if they have the same type if (type.equals(stats.type)) { incrementNumNulls(stats.getNumNulls()); // depends on control dependency: [if], data = [none] if (stats.hasNonNul...
public class class_name { @Override public void execute(ExecutorService executor) { try { _appMonitor.removeApplication(_aii.getPid()); @SuppressWarnings("rawtypes") ApplicationHandler handler = _aii.getHandler(); @SuppressWarnings("unchecked") Fu...
public class class_name { @Override public void execute(ExecutorService executor) { try { _appMonitor.removeApplication(_aii.getPid()); // depends on control dependency: [try], data = [none] @SuppressWarnings("rawtypes") ApplicationHandler handler = _aii.getHandler(); ...
public class class_name { public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) { final String[] data = issue.getData(); if (data != null && data.length > 0) { final String expectedType = data[0]; final ReturnTypeAddModification modification = new ReturnTypeA...
public class class_name { public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) { final String[] data = issue.getData(); if (data != null && data.length > 0) { final String expectedType = data[0]; final ReturnTypeAddModification modification = new ReturnTypeA...
public class class_name { public EEnum getIfcOutletTypeEnum() { if (ifcOutletTypeEnumEEnum == null) { ifcOutletTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(864); } return ifcOutletTypeEnumEEnum; } }
public class class_name { public EEnum getIfcOutletTypeEnum() { if (ifcOutletTypeEnumEEnum == null) { ifcOutletTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(864); // depends on control dependency: [if], data = [none] } return ifcOutle...
public class class_name { private void fireTangoPipeEvent(TangoPipe tangoPipe, EventData eventData) { TangoPipeEvent tangoPipeEvent = new TangoPipeEvent(tangoPipe, eventData); // Notifying those that are interested in this event ArrayList<EventListener> listeners = event_listeners.getListeners(...
public class class_name { private void fireTangoPipeEvent(TangoPipe tangoPipe, EventData eventData) { TangoPipeEvent tangoPipeEvent = new TangoPipeEvent(tangoPipe, eventData); // Notifying those that are interested in this event ArrayList<EventListener> listeners = event_listeners.getListeners(...
public class class_name { private Assignment createAssignment(final LNGBooleanVector vec, final Collection<Variable> variables) { final Assignment model = new Assignment(); for (int i = 1; i < vec.size(); i++) { final Variable var = this.f.variable(this.idx2name.get(i)); if (vec...
public class class_name { private Assignment createAssignment(final LNGBooleanVector vec, final Collection<Variable> variables) { final Assignment model = new Assignment(); for (int i = 1; i < vec.size(); i++) { final Variable var = this.f.variable(this.idx2name.get(i)); if (vec...
public class class_name { public static void fire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping) { if (TYPE != null) { CmsDateBoxEvent event = new CmsDateBoxEvent(date, isTyping); source.fireEvent(event); } } }
public class class_name { public static void fire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping) { if (TYPE != null) { CmsDateBoxEvent event = new CmsDateBoxEvent(date, isTyping); source.fireEvent(event); // depends on control dependency: [if], data = [none] ...
public class class_name { public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // src/riemann/Query.g:95:5: ( ( ' ' | '\\t' | '\\r' | '\\n' ) ) // src/riemann/Query.g:95:9: ( ' ' | '\\t' | '\\r' | '\\n'...
public class class_name { public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // src/riemann/Query.g:95:5: ( ( ' ' | '\\t' | '\\r' | '\\n' ) ) // src/riemann/Query.g:95:9: ( ' ' | '\\t' | '\\r' | '\\n'...
public class class_name { public long getDestHighMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestHighMsgs"); SibTr.exit(tc, "getDestHighMsgs", Long.valueOf(_destHighMsgs)); } return _destHighMsgs; } }
public class class_name { public long getDestHighMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestHighMsgs"); // depends on control dependency: [if], data = [none] SibTr.exit(tc, "getDestHighMsgs", Long.valueOf(_destHighMsgs...
public class class_name { public static Path addExtension(Path path, String... extensions) { StringBuilder pathStringBuilder = new StringBuilder(path.toString()); for (String extension : extensions) { if (!Strings.isNullOrEmpty(extension)) { pathStringBuilder.append(extension); } } ...
public class class_name { public static Path addExtension(Path path, String... extensions) { StringBuilder pathStringBuilder = new StringBuilder(path.toString()); for (String extension : extensions) { if (!Strings.isNullOrEmpty(extension)) { pathStringBuilder.append(extension); // depends on cont...
public class class_name { private void copyChildren(int upToChildPosition) { // (ensureRoom isn't called here, as we should always be at/behind key additions) if (copyFromChildPosition >= upToChildPosition) return; int len = upToChildPosition - copyFromChildPosition; if ...
public class class_name { private void copyChildren(int upToChildPosition) { // (ensureRoom isn't called here, as we should always be at/behind key additions) if (copyFromChildPosition >= upToChildPosition) return; int len = upToChildPosition - copyFromChildPosition; if ...
public class class_name { protected <L extends ListWrapper<T>, T extends SearchEntity> L handleSearchForEntitiesWithPost(Class<T> type, String query, Set<String> fieldSet, SearchParams params) { Map<String, String> uriVa...
public class class_name { protected <L extends ListWrapper<T>, T extends SearchEntity> L handleSearchForEntitiesWithPost(Class<T> type, String query, Set<String> fieldSet, SearchParams params) { Map<String, String> uriVa...
public class class_name { public void triggerAsyncRefreshWithDelay(int delayMillis) { final HollowClient client = this.client; final long targetBeginTime = System.currentTimeMillis() + delayMillis; refreshExecutor.execute(new Runnable() { public void run() { try { ...
public class class_name { public void triggerAsyncRefreshWithDelay(int delayMillis) { final HollowClient client = this.client; final long targetBeginTime = System.currentTimeMillis() + delayMillis; refreshExecutor.execute(new Runnable() { public void run() { try { ...
public class class_name { synchronized void listenerStarted(HttpEndpointImpl endpoint, VirtualHostConfig targetConfig, String resolvedHostName, int port, boolean isHttps) { if (!activated) return; // If allowed endpoints are specified for the host and this isn't one of them, don't add this...
public class class_name { synchronized void listenerStarted(HttpEndpointImpl endpoint, VirtualHostConfig targetConfig, String resolvedHostName, int port, boolean isHttps) { if (!activated) return; // If allowed endpoints are specified for the host and this isn't one of them, don't add this...
public class class_name { public void marshall(MaintenanceWindowTask maintenanceWindowTask, ProtocolMarshaller protocolMarshaller) { if (maintenanceWindowTask == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(MaintenanceWindowTask maintenanceWindowTask, ProtocolMarshaller protocolMarshaller) { if (maintenanceWindowTask == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { private synchronized long getUniqueTimeStamp() { //Create a default time stamp: long timeStamp = System.currentTimeMillis(); //Lock file for ensuring we create a unique time stamp for all //processes on the system: File lockFile = null; try {...
public class class_name { private synchronized long getUniqueTimeStamp() { //Create a default time stamp: long timeStamp = System.currentTimeMillis(); //Lock file for ensuring we create a unique time stamp for all //processes on the system: File lockFile = null; try {...
public class class_name { protected void addToQueue(double closestDistanceSq , KdTree.Node node , P target ) { if( !node.isLeaf() ) { Helper h; if( unused.isEmpty() ) { h = new Helper(); } else { h = unused.remove( unused.size()-1 ); } h.closestPossibleSq = closestDistanceSq; h.node = nod...
public class class_name { protected void addToQueue(double closestDistanceSq , KdTree.Node node , P target ) { if( !node.isLeaf() ) { Helper h; if( unused.isEmpty() ) { h = new Helper(); // depends on control dependency: [if], data = [none] } else { h = unused.remove( unused.size()-1 ); // depends ...
public class class_name { private static void pushAnnotations( Deque<GraphAnnotationState> stack, Collection<? extends Annotatable> haveAnnotations) { stack.push(new GraphAnnotationState(haveAnnotations.size())); for (Annotatable h : haveAnnotations) { stack.peek().add(new AnnotationState(h, ...
public class class_name { private static void pushAnnotations( Deque<GraphAnnotationState> stack, Collection<? extends Annotatable> haveAnnotations) { stack.push(new GraphAnnotationState(haveAnnotations.size())); for (Annotatable h : haveAnnotations) { stack.peek().add(new AnnotationState(h, ...