code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Set<String> getUniqueWords(Object document) { Set<String> features = new FastSet<String>(); if (document instanceof AnalyzedText){ features.addAll(((AnalyzedText)document).getUniqueWords()); if (includeLengthCategory){ features.add(((AnalyzedText...
public class class_name { public Set<String> getUniqueWords(Object document) { Set<String> features = new FastSet<String>(); if (document instanceof AnalyzedText){ features.addAll(((AnalyzedText)document).getUniqueWords()); // depends on control dependency: [if], data = [none] if (includeL...
public class class_name { public void start(Intent intent) { intent = setupIntent(intent); if (application != null) { // Extra flag is required when starting from application: intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); application.startActivity(intent); ...
public class class_name { public void start(Intent intent) { intent = setupIntent(intent); if (application != null) { // Extra flag is required when starting from application: intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // depends on control dependency: [if], data = [none] ...
public class class_name { private void checkAndAddLengths(final int... requiredLengths) { for( final int length : requiredLengths ) { if( length < 0 ) { throw new IllegalArgumentException(String.format("required length cannot be negative but was %d", length)); } this.requiredLengths.add(length); ...
public class class_name { private void checkAndAddLengths(final int... requiredLengths) { for( final int length : requiredLengths ) { if( length < 0 ) { throw new IllegalArgumentException(String.format("required length cannot be negative but was %d", length)); } this.requiredLengths.add(length); //...
public class class_name { private void setArgumentValue(final Object value) { try { getUnderlyingField().set(getContainingObject(), value); } catch (final IllegalAccessException e) { throw new CommandLineException.ShouldNeverReachHereException( String.format(...
public class class_name { private void setArgumentValue(final Object value) { try { getUnderlyingField().set(getContainingObject(), value); // depends on control dependency: [try], data = [none] } catch (final IllegalAccessException e) { throw new CommandLineException.ShouldNeve...
public class class_name { public static double[] toN(int n) { double[] result = new double[n]; for (int i = 0; i < n; i++) { result[i] = i; } return result; } }
public class class_name { public static double[] toN(int n) { double[] result = new double[n]; for (int i = 0; i < n; i++) { result[i] = i; // depends on control dependency: [for], data = [i] } return result; } }
public class class_name { @Override public Object getAttribute(String key) { if (userAttributes == null) { return null; } final List<Object> values = userAttributes.get(key); if (values != null && values.size() > 0) { return values.get(0); } ...
public class class_name { @Override public Object getAttribute(String key) { if (userAttributes == null) { return null; // depends on control dependency: [if], data = [none] } final List<Object> values = userAttributes.get(key); if (values != null && values.size() > 0) ...
public class class_name { public static String uriEncode(String value, boolean encodeSlash) { try { StringBuilder builder = new StringBuilder(); for (byte b : value.getBytes(AipClientConst.DEFAULT_ENCODING)) { if (URI_UNRESERVED_CHARACTERS.get(b & 0xFF)) { ...
public class class_name { public static String uriEncode(String value, boolean encodeSlash) { try { StringBuilder builder = new StringBuilder(); for (byte b : value.getBytes(AipClientConst.DEFAULT_ENCODING)) { if (URI_UNRESERVED_CHARACTERS.get(b & 0xFF)) { ...
public class class_name { @Override public Optional<TemplateContentData> load(String responseTemplateName, Input input) throws TemplateLoaderException { TemplateEnumerator templateEnumerator = templateEnumeratorSupplier.apply(responseTemplateName, input); while (templateEnumerator.hasNext()) { ...
public class class_name { @Override public Optional<TemplateContentData> load(String responseTemplateName, Input input) throws TemplateLoaderException { TemplateEnumerator templateEnumerator = templateEnumeratorSupplier.apply(responseTemplateName, input); while (templateEnumerator.hasNext()) { ...
public class class_name { public static void assertVisiblyEquals(String message, Object expected, Object actual) { String expectedInQuotes = inQuotesIfNotNull(expected); String actualInQuotes = inQuotesIfNotNull(actual); if (areBothNull(expected, actual)) { pass(message); ...
public class class_name { public static void assertVisiblyEquals(String message, Object expected, Object actual) { String expectedInQuotes = inQuotesIfNotNull(expected); String actualInQuotes = inQuotesIfNotNull(actual); if (areBothNull(expected, actual)) { pass(message); // depen...
public class class_name { public static QualifiedName of(Class<?> cls) { if (cls.getEnclosingClass() != null) { return QualifiedName.of(cls.getEnclosingClass()).nestedType(cls.getSimpleName()); } else if (cls.getPackage() != null) { return QualifiedName.of(cls.getPackage().getName(), cls.getSimpleN...
public class class_name { public static QualifiedName of(Class<?> cls) { if (cls.getEnclosingClass() != null) { return QualifiedName.of(cls.getEnclosingClass()).nestedType(cls.getSimpleName()); // depends on control dependency: [if], data = [(cls.getEnclosingClass()] } else if (cls.getPackage() != null) ...
public class class_name { public R applyOrElse(P1 p1, P2 p2, F2<? super P1, ? super P2, ? extends R> fallback) { try { return apply(p1, p2); } catch (RuntimeException e) { return fallback.apply(p1, p2); } } }
public class class_name { public R applyOrElse(P1 p1, P2 p2, F2<? super P1, ? super P2, ? extends R> fallback) { try { return apply(p1, p2); // depends on control dependency: [try], data = [none] } catch (RuntimeException e) { return fallback.apply(p1, p2); ...
public class class_name { public WebElement getWebElement() { List<WebElement> elements = getWebElements(); if (elements.size() > match) { return elements.get(match); } String reason = this.prettyOutputStart() + " was not located on the page"; if( !elements.isEmpty()...
public class class_name { public WebElement getWebElement() { List<WebElement> elements = getWebElements(); if (elements.size() > match) { return elements.get(match); // depends on control dependency: [if], data = [match)] } String reason = this.prettyOutputStart() + " was n...
public class class_name { public WorkUnitStream transform(Function<WorkUnit, WorkUnit> function) { if (this.materializedWorkUnits == null) { return new BasicWorkUnitStream(this, Iterators.transform(this.workUnits, function), null); } else { return new BasicWorkUnitStream(this, null, Lists.newArrayL...
public class class_name { public WorkUnitStream transform(Function<WorkUnit, WorkUnit> function) { if (this.materializedWorkUnits == null) { return new BasicWorkUnitStream(this, Iterators.transform(this.workUnits, function), null); // depends on control dependency: [if], data = [null)] } else { ret...
public class class_name { protected Map<ArtifactIdentifier, Collection<BinaryArtifact>> filterBinaryArtifacts(Map<ArtifactIdentifier, Collection<BinaryArtifact>> artifactsMap, String url, String branch) { Map<ArtifactIdentifier, Collection<BinaryArtifact>> rt = new HashMap<>(); String urlNoNull = url != nu...
public class class_name { protected Map<ArtifactIdentifier, Collection<BinaryArtifact>> filterBinaryArtifacts(Map<ArtifactIdentifier, Collection<BinaryArtifact>> artifactsMap, String url, String branch) { Map<ArtifactIdentifier, Collection<BinaryArtifact>> rt = new HashMap<>(); String urlNoNull = url != nu...
public class class_name { public void probeRequest(PrintStream ps, ReqState rs) { Enumeration e; int i; HttpServletRequest request = rs.getRequest(); ps.println("####################### PROBE ##################################"); ps.println("The HttpServletRequest object is...
public class class_name { public void probeRequest(PrintStream ps, ReqState rs) { Enumeration e; int i; HttpServletRequest request = rs.getRequest(); ps.println("####################### PROBE ##################################"); ps.println("The HttpServletRequest object is...
public class class_name { public static boolean copyFile(File srcFile, File destFile) { boolean result = false; try { InputStream in = new FileInputStream(srcFile); try { result = copyToFile(in, destFile); } finally { in.close(); ...
public class class_name { public static boolean copyFile(File srcFile, File destFile) { boolean result = false; try { InputStream in = new FileInputStream(srcFile); try { result = copyToFile(in, destFile); // depends on control dependency: [try], data = [none] ...
public class class_name { static public String getVariableName(NetcdfDataset ds, String key, Formatter errlog) { Variable v = null; String vs = getLiteral(ds, key, errlog); if (vs != null) { v = ds.findVariable(vs); if ((v == null) && (errlog != null)) errlog.format(" Cant find Va...
public class class_name { static public String getVariableName(NetcdfDataset ds, String key, Formatter errlog) { Variable v = null; String vs = getLiteral(ds, key, errlog); if (vs != null) { v = ds.findVariable(vs); // depends on control dependency: [if], data = [(vs] if ((v == null) && (e...
public class class_name { public ProcessDefinitionCacheEntry resolveProcessDefinition(ProcessDefinition processDefinition) { String processDefinitionId = processDefinition.getId(); String deploymentId = processDefinition.getDeploymentId(); ProcessDefinitionCacheEntry cachedProcessDefinition = processDefin...
public class class_name { public ProcessDefinitionCacheEntry resolveProcessDefinition(ProcessDefinition processDefinition) { String processDefinitionId = processDefinition.getId(); String deploymentId = processDefinition.getDeploymentId(); ProcessDefinitionCacheEntry cachedProcessDefinition = processDefin...
public class class_name { @SuppressWarnings("unchecked") protected Collection<IClient> getClients() { if (!hasClients()) { // avoid creating new Collection object if no clients exist. return Collections.EMPTY_SET; } return Collections.unmodifiableCollection(cli...
public class class_name { @SuppressWarnings("unchecked") protected Collection<IClient> getClients() { if (!hasClients()) { // avoid creating new Collection object if no clients exist. return Collections.EMPTY_SET; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static Map<String, String> read(final String path) { Map<String, String> map = new HashMap<String, String>(); if (path != null) { try { Properties p = loadProperties(path); for (Object key : p.keySet()) { ...
public class class_name { public static Map<String, String> read(final String path) { Map<String, String> map = new HashMap<String, String>(); if (path != null) { try { Properties p = loadProperties(path); for (Object key : p.keySet()) { ...
public class class_name { public CreateJobRequest withOutputs(CreateJobOutput... outputs) { if (this.outputs == null) { setOutputs(new com.amazonaws.internal.SdkInternalList<CreateJobOutput>(outputs.length)); } for (CreateJobOutput ele : outputs) { this.outputs.add(ele);...
public class class_name { public CreateJobRequest withOutputs(CreateJobOutput... outputs) { if (this.outputs == null) { setOutputs(new com.amazonaws.internal.SdkInternalList<CreateJobOutput>(outputs.length)); // depends on control dependency: [if], data = [none] } for (CreateJobOutp...
public class class_name { void selectJobsToInitialize() { for (String queue : jobQueues.keySet()) { ArrayList<JobInProgress> jobsToInitialize = getJobsToInitialize(queue); printJobs(jobsToInitialize); JobInitializationThread t = threadsToQueueMap.get(queue); for (JobInProgress job : jobsToI...
public class class_name { void selectJobsToInitialize() { for (String queue : jobQueues.keySet()) { ArrayList<JobInProgress> jobsToInitialize = getJobsToInitialize(queue); printJobs(jobsToInitialize); // depends on control dependency: [for], data = [none] JobInitializationThread t = threadsToQueu...
public class class_name { public static JSONObject getJsonParameterMap(Map<String, String[]> params) { JSONObject result = new JSONObject(); for (Map.Entry<String, String[]> entry : params.entrySet()) { String paramKey = entry.getKey(); JSONArray paramValue = new JSONArray(); ...
public class class_name { public static JSONObject getJsonParameterMap(Map<String, String[]> params) { JSONObject result = new JSONObject(); for (Map.Entry<String, String[]> entry : params.entrySet()) { String paramKey = entry.getKey(); JSONArray paramValue = new JSONArray(); ...
public class class_name { Set<String> getValues(RequestType pType, ObjectName pName) { if (RequestType.READ == pType) { return readAttributes.get(pName); } else if (RequestType.WRITE == pType) { return writeAttributes.get(pName); } else if (RequestType.EXEC == pType) { ...
public class class_name { Set<String> getValues(RequestType pType, ObjectName pName) { if (RequestType.READ == pType) { return readAttributes.get(pName); // depends on control dependency: [if], data = [none] } else if (RequestType.WRITE == pType) { return writeAttributes.get(pNa...
public class class_name { private synchronized void initializeFatClient(String storeName, Properties storeClientProps) { // updates the coordinator metadata with recent stores and cluster xml updateCoordinatorMetadataWithLatestState(); logger.info("Creating a Fat client for store: " + storeNam...
public class class_name { private synchronized void initializeFatClient(String storeName, Properties storeClientProps) { // updates the coordinator metadata with recent stores and cluster xml updateCoordinatorMetadataWithLatestState(); logger.info("Creating a Fat client for store: " + storeNam...
public class class_name { public static CharSequence formatDuration(Context context, ReadableDuration readableDuration) { Resources res = context.getResources(); Duration duration = readableDuration.toDuration(); final int hours = (int) duration.getStandardHours(); if (hours != 0) { ...
public class class_name { public static CharSequence formatDuration(Context context, ReadableDuration readableDuration) { Resources res = context.getResources(); Duration duration = readableDuration.toDuration(); final int hours = (int) duration.getStandardHours(); if (hours != 0) { ...
public class class_name { static int sizeImpl(Multiset<?> multiset) { long size = 0; for (Entry<?> entry : multiset.entrySet()) { size += entry.getCount(); } return Ints.saturatedCast(size); } }
public class class_name { static int sizeImpl(Multiset<?> multiset) { long size = 0; for (Entry<?> entry : multiset.entrySet()) { size += entry.getCount(); // depends on control dependency: [for], data = [entry] } return Ints.saturatedCast(size); } }
public class class_name { private int selectCoords(Collection<Point2d[]> ps, Point2d[] coords, IRing macrocycle, IRingSet ringset) { assert ps.size() != 0; final int[] winding = new int[coords.length]; MacroScore best = null; for (Point2d[] p : ps) { final int wind = windin...
public class class_name { private int selectCoords(Collection<Point2d[]> ps, Point2d[] coords, IRing macrocycle, IRingSet ringset) { assert ps.size() != 0; final int[] winding = new int[coords.length]; MacroScore best = null; for (Point2d[] p : ps) { final int wind = windin...
public class class_name { private static Class<Object> guessMBeanInterface(Object instance) { Class<Object> mbeanInterface = null; Class<Object>[] interfaces = (Class<Object>[])instance.getClass().getInterfaces(); for (Class<Object> anInterface : interfaces) { if (anInterface.getName().endsWith("MBea...
public class class_name { private static Class<Object> guessMBeanInterface(Object instance) { Class<Object> mbeanInterface = null; Class<Object>[] interfaces = (Class<Object>[])instance.getClass().getInterfaces(); for (Class<Object> anInterface : interfaces) { if (anInterface.getName().endsWith("MBea...
public class class_name { public void setEdges(java.util.Collection<Edge> edges) { if (edges == null) { this.edges = null; return; } this.edges = new java.util.ArrayList<Edge>(edges); } }
public class class_name { public void setEdges(java.util.Collection<Edge> edges) { if (edges == null) { this.edges = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.edges = new java.util.Ar...
public class class_name { public static float toFloat(final String str, final float defaultValue) { if (str == null) { return defaultValue; } try { return Float.parseFloat(str); } catch (final NumberFormatException nfe) { return defaultValue; } } }
public class class_name { public static float toFloat(final String str, final float defaultValue) { if (str == null) { return defaultValue; // depends on control dependency: [if], data = [none] } try { return Float.parseFloat(str); // depends on control dependency: [try], data = [...
public class class_name { public void initialize() { if (Ignition.state() == IgniteState.STOPPED) { this.ignite = Ignition.start(igniteConfiguration); LOGGER.debug("Starting ignite cache engine"); } else if (Ignition.state() == IgniteState.STARTED) { this.ignite = Ig...
public class class_name { public void initialize() { if (Ignition.state() == IgniteState.STOPPED) { this.ignite = Ignition.start(igniteConfiguration); // depends on control dependency: [if], data = [none] LOGGER.debug("Starting ignite cache engine"); // depends on control dependency: [i...
public class class_name { private static void findMethodSignatures(String code, Set<String> signatures) { if (code == null) { return; } Matcher matcher = OBJC_METHOD_DECL_PATTERN.matcher(code); while (matcher.find()) { StringBuilder signature = new StringBuilder(); signature.append(ma...
public class class_name { private static void findMethodSignatures(String code, Set<String> signatures) { if (code == null) { return; // depends on control dependency: [if], data = [none] } Matcher matcher = OBJC_METHOD_DECL_PATTERN.matcher(code); while (matcher.find()) { StringBuilder sign...
public class class_name { private void uploadJsonRevision(final RevisionInternal rev) { // Get the revision's properties: if (!db.inlineFollowingAttachmentsIn(rev)) { setError(new CouchbaseLiteException(Status.BAD_ATTACHMENT)); return; } final String path = Stri...
public class class_name { private void uploadJsonRevision(final RevisionInternal rev) { // Get the revision's properties: if (!db.inlineFollowingAttachmentsIn(rev)) { setError(new CouchbaseLiteException(Status.BAD_ATTACHMENT)); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public String getResourcePath(String basePath, String relativePath) { String result = null; if (binaryGeneratorRegistry.isGeneratedBinaryResource(relativePath)) { result = relativePath; } else if (contextPath != null && relativePath.startsWith(contextPath)) { result = ...
public class class_name { @Override public String getResourcePath(String basePath, String relativePath) { String result = null; if (binaryGeneratorRegistry.isGeneratedBinaryResource(relativePath)) { result = relativePath; // depends on control dependency: [if], data = [none] } else if (contextPath != null &...
public class class_name { public PointerDensityHierarchyRepresentationResult run(Database db, Relation<O> relation) { final DistanceQuery<O> distQ = db.getDistanceQuery(relation, getDistanceFunction()); final KNNQuery<O> knnQ = db.getKNNQuery(distQ, minPts); // We need array addressing later. final Arr...
public class class_name { public PointerDensityHierarchyRepresentationResult run(Database db, Relation<O> relation) { final DistanceQuery<O> distQ = db.getDistanceQuery(relation, getDistanceFunction()); final KNNQuery<O> knnQ = db.getKNNQuery(distQ, minPts); // We need array addressing later. final Arr...
public class class_name { public static ResourceCalculatorPlugin getResourceCalculatorPlugin( Class<? extends ResourceCalculatorPlugin> clazz, Configuration conf) { if (clazz != null) { return ReflectionUtils.newInstance(clazz, conf); } // No class given, try a os specific class try { ...
public class class_name { public static ResourceCalculatorPlugin getResourceCalculatorPlugin( Class<? extends ResourceCalculatorPlugin> clazz, Configuration conf) { if (clazz != null) { return ReflectionUtils.newInstance(clazz, conf); // depends on control dependency: [if], data = [(clazz] } ...
public class class_name { public Date cookieExpiration(String expectedCookieName) { Cookie cookie = cookie(expectedCookieName); if (cookie != null) { return cookie.getExpiry(); } return null; } }
public class class_name { public Date cookieExpiration(String expectedCookieName) { Cookie cookie = cookie(expectedCookieName); if (cookie != null) { return cookie.getExpiry(); // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { static String parseRoleIdentifier(final String trackingId) { if (StringUtil.isNullOrWhiteSpace(trackingId) || !trackingId.contains(TRACKING_ID_TOKEN_SEPARATOR)) { return null; } return trackingId.substring(trackingId.indexOf(TRACKING_ID_TOKEN_SEPARATOR)); } }
public class class_name { static String parseRoleIdentifier(final String trackingId) { if (StringUtil.isNullOrWhiteSpace(trackingId) || !trackingId.contains(TRACKING_ID_TOKEN_SEPARATOR)) { return null; // depends on control dependency: [if], data = [none] } return trackingId.substring(trackingId.indexOf(T...
public class class_name { private boolean isProfilingHeader(final String confidentialData, final ILoggingEvent event) { if (!LOGGING_FILTER_NAME.equals(event.getLoggerName())) { return false; } for (final ProfilingFeatureType profileType : ProfilingFeatureType.values()) { ...
public class class_name { private boolean isProfilingHeader(final String confidentialData, final ILoggingEvent event) { if (!LOGGING_FILTER_NAME.equals(event.getLoggerName())) { return false; // depends on control dependency: [if], data = [none] } for (final ProfilingFeatureType pr...
public class class_name { public static <E extends Comparable> PriorityBlockingQueue<E> newPriorityBlockingQueue( Iterable<? extends E> elements) { if (elements instanceof Collection) { return new PriorityBlockingQueue<E>(Collections2.cast(elements)); } PriorityBlockingQueue<E> queue = new Prio...
public class class_name { public static <E extends Comparable> PriorityBlockingQueue<E> newPriorityBlockingQueue( Iterable<? extends E> elements) { if (elements instanceof Collection) { return new PriorityBlockingQueue<E>(Collections2.cast(elements)); // depends on control dependency: [if], data = [non...
public class class_name { private JComponent createControls() { JPanel controls = new JPanel(new FlowLayout(FlowLayout.RIGHT)); final JCheckBox meanCheckBox = new JCheckBox("Show Mean and Standard Deviation", false); meanCheckBox.addItemListener(new ItemListener() { pub...
public class class_name { private JComponent createControls() { JPanel controls = new JPanel(new FlowLayout(FlowLayout.RIGHT)); final JCheckBox meanCheckBox = new JCheckBox("Show Mean and Standard Deviation", false); meanCheckBox.addItemListener(new ItemListener() { pub...
public class class_name { public void marshall(DisableGatewayRequest disableGatewayRequest, ProtocolMarshaller protocolMarshaller) { if (disableGatewayRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(DisableGatewayRequest disableGatewayRequest, ProtocolMarshaller protocolMarshaller) { if (disableGatewayRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public KafkaClient setProducerProperties(Properties props) { if (props == null) { producerProperties = null; } else { producerProperties = new Properties(); producerProperties.putAll(props); } return this; } }
public class class_name { public KafkaClient setProducerProperties(Properties props) { if (props == null) { producerProperties = null; // depends on control dependency: [if], data = [none] } else { producerProperties = new Properties(); // depends on control dependency: [if], da...
public class class_name { public void setAlgorithm(KeyAgreementType dh) { log("DH algorithm set: " + getDHName(dhMode) + " -> " + getDHName(dh)); try { if(dhMode != null && dh.keyType == dhMode.keyType) return; dhMode = dh; switch (dhMode.keyType) { case KeyAgreementType.DH_MODE_DH3K: ...
public class class_name { public void setAlgorithm(KeyAgreementType dh) { log("DH algorithm set: " + getDHName(dhMode) + " -> " + getDHName(dh)); try { if(dhMode != null && dh.keyType == dhMode.keyType) return; dhMode = dh; // depends on control dependency: [try], data = [none] switch (dhMode.keyT...
public class class_name { @Nullable private static Node primaryAccessControlScopeRootFor(Node node) { if (isExtendsTarget(node)) { return node.getParent(); } else if (isFunctionOrClass(node)) { return node; } else { return null; } } }
public class class_name { @Nullable private static Node primaryAccessControlScopeRootFor(Node node) { if (isExtendsTarget(node)) { return node.getParent(); // depends on control dependency: [if], data = [none] } else if (isFunctionOrClass(node)) { return node; // depends on control dependency: [i...
public class class_name { private static char[] extractCodePoint(String codePoint) { try { return Character.toChars(Integer.valueOf(codePoint, 16)); } catch (IllegalArgumentException e) { // This may be caused by NumberFormatException of Integer.valueOf() or // IllegalArgumentException of Cha...
public class class_name { private static char[] extractCodePoint(String codePoint) { try { return Character.toChars(Integer.valueOf(codePoint, 16)); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException e) { // This may be caused by NumberFormatException of Intege...
public class class_name { private void doSave() { if (txt_PubCert.getDocument().getLength() < MIN_CERT_LENGTH) { logger.error("Illegal state! There seems to be no certificate available."); bt_save.setEnabled(false); } final JFileChooser fc = new JFileChooser(System.getProperty("user.home")); fc.set...
public class class_name { private void doSave() { if (txt_PubCert.getDocument().getLength() < MIN_CERT_LENGTH) { logger.error("Illegal state! There seems to be no certificate available."); // depends on control dependency: [if], data = [none] bt_save.setEnabled(false); // depends on control dependency: [if...
public class class_name { public void marshall(RegisterDomainRequest registerDomainRequest, ProtocolMarshaller protocolMarshaller) { if (registerDomainRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(RegisterDomainRequest registerDomainRequest, ProtocolMarshaller protocolMarshaller) { if (registerDomainRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { private static String generateDestinationToHiveColumnMapping( Optional<Map<String, String>> hiveColumns, Table destinationTableMeta) { StringBuilder columns = new StringBuilder(); boolean isFirst = true; List<FieldSchema> fieldList = destinationTableMeta.getSd().getCol...
public class class_name { private static String generateDestinationToHiveColumnMapping( Optional<Map<String, String>> hiveColumns, Table destinationTableMeta) { StringBuilder columns = new StringBuilder(); boolean isFirst = true; List<FieldSchema> fieldList = destinationTableMeta.getSd().getCol...
public class class_name { @Override public void close() { LOG.log(Level.FINER, "Closing the evaluators - begin"); final List<EvaluatorManager> evaluatorsCopy; synchronized (this) { evaluatorsCopy = new ArrayList<>(this.evaluators.values()); } for (final EvaluatorManager evaluatorManager ...
public class class_name { @Override public void close() { LOG.log(Level.FINER, "Closing the evaluators - begin"); final List<EvaluatorManager> evaluatorsCopy; synchronized (this) { evaluatorsCopy = new ArrayList<>(this.evaluators.values()); } for (final EvaluatorManager evaluatorManager ...
public class class_name { private void setAvailabilityState(final AvailabilityState.State controllerAvailability) throws InterruptedException { synchronized (controllerAvailabilityMonitor) { // filter unchanged events if (this.availabilityState.equals(controllerAvailability)) { ...
public class class_name { private void setAvailabilityState(final AvailabilityState.State controllerAvailability) throws InterruptedException { synchronized (controllerAvailabilityMonitor) { // filter unchanged events if (this.availabilityState.equals(controllerAvailability)) { ...
public class class_name { private String getConfigPathFromRoot(File galaxyRoot, String configFileName) throws IOException { if (isPre20141006Release(galaxyRoot)) { return configFileName; } else { File configDirectory = new File(galaxyRoot, CONFIG_DIR_NAME); File toolConf = new File(configDire...
public class class_name { private String getConfigPathFromRoot(File galaxyRoot, String configFileName) throws IOException { if (isPre20141006Release(galaxyRoot)) { return configFileName; } else { File configDirectory = new File(galaxyRoot, CONFIG_DIR_NAME); File toolConf = new File(configDire...
public class class_name { public void marshall(EmergencyContact emergencyContact, ProtocolMarshaller protocolMarshaller) { if (emergencyContact == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(emer...
public class class_name { public void marshall(EmergencyContact emergencyContact, ProtocolMarshaller protocolMarshaller) { if (emergencyContact == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(emer...
public class class_name { @Override public boolean requeueSilent(IQueueMessage<ID, DATA> msg) { try { return putToQueue(msg.clone(), true); } catch (RocksDBException e) { throw new QueueException(e); } } }
public class class_name { @Override public boolean requeueSilent(IQueueMessage<ID, DATA> msg) { try { return putToQueue(msg.clone(), true); // depends on control dependency: [try], data = [none] } catch (RocksDBException e) { throw new QueueException(e); } // depends...
public class class_name { protected String hashByteArray(byte[] data) { if (mCRC32 != null) { return hashCRC32(data); } else if (mHashAlgorithm != null) { return messageDigest(data); } else { // Default. return hashCRC32(data); } } }
public class class_name { protected String hashByteArray(byte[] data) { if (mCRC32 != null) { return hashCRC32(data); // depends on control dependency: [if], data = [none] } else if (mHashAlgorithm != null) { return messageDigest(data); // depends on control dependency: [if], da...
public class class_name { @Deprecated public static String getAlgorithmProperty(String algName, String propName) { ProviderProperty entry = getProviderProperty("Alg." + propName + "." + algName); if (...
public class class_name { @Deprecated public static String getAlgorithmProperty(String algName, String propName) { ProviderProperty entry = getProviderProperty("Alg." + propName + "." + algName); if (...
public class class_name { public FacesConfigNavigationRuleType<WebFacesConfigDescriptor> getOrCreateNavigationRule() { List<Node> nodeList = model.get("navigation-rule"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigNavigationRuleTypeImpl<WebFacesConfigDescriptor>...
public class class_name { public FacesConfigNavigationRuleType<WebFacesConfigDescriptor> getOrCreateNavigationRule() { List<Node> nodeList = model.get("navigation-rule"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigNavigationRuleTypeImpl<WebFacesConfigDescriptor>...
public class class_name { public static CardConfiguration fromJson(JSONObject json) { if (json == null) { json = new JSONObject(); } CardConfiguration cardConfiguration = new CardConfiguration(); JSONArray jsonArray = json.optJSONArray(SUPPORTED_CARD_TYPES_KEY); if...
public class class_name { public static CardConfiguration fromJson(JSONObject json) { if (json == null) { json = new JSONObject(); // depends on control dependency: [if], data = [none] } CardConfiguration cardConfiguration = new CardConfiguration(); JSONArray jsonArray = j...
public class class_name { public static byte min(byte... array) { checkArgument(array.length > 0); byte min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] < min) { min = array[i]; } } return min; } }
public class class_name { public static byte min(byte... array) { checkArgument(array.length > 0); byte min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] < min) { min = array[i]; // depends on control dependency: [if], data = [none] } } return min; } }
public class class_name { public static List<String> getFilesInFolder(String folder, String ext) { // tryto find using normal file system lookup List<String> files = new Vector<>(); File dir = new File(folder); if (dir.exists() && dir.isDirectory()) { String[] list = dir.list(); for (String file : ...
public class class_name { public static List<String> getFilesInFolder(String folder, String ext) { // tryto find using normal file system lookup List<String> files = new Vector<>(); File dir = new File(folder); if (dir.exists() && dir.isDirectory()) { String[] list = dir.list(); for (String file : ...
public class class_name { public SelectBuilder orderBy(String name, boolean ascending) { if (ascending) { orderBys.add(name + " asc"); } else { orderBys.add(name + " desc"); } return this; } }
public class class_name { public SelectBuilder orderBy(String name, boolean ascending) { if (ascending) { orderBys.add(name + " asc"); // depends on control dependency: [if], data = [none] } else { orderBys.add(name + " desc"); // depends on control dependency: [if], data = [non...
public class class_name { public void visit(NodeData node) throws RepositoryException { try { entering(node, currentLevel); if ((maxLevel == -1) || (currentLevel < maxLevel)) { currentLevel++; List<PropertyData> properies = new ArrayList<PropertyData>(...
public class class_name { public void visit(NodeData node) throws RepositoryException { try { entering(node, currentLevel); if ((maxLevel == -1) || (currentLevel < maxLevel)) { currentLevel++; List<PropertyData> properies = new ArrayList<PropertyData>(...
public class class_name { public synchronized void synchronizeSchema() { OObjectDatabaseTx database = ((OObjectDatabaseTx) ODatabaseRecordThreadLocal.instance().get().getDatabaseOwner()); Collection<Class<?>> registeredEntities = database.getEntityManager().getRegisteredEntities(); boolean automaticSchemaG...
public class class_name { public synchronized void synchronizeSchema() { OObjectDatabaseTx database = ((OObjectDatabaseTx) ODatabaseRecordThreadLocal.instance().get().getDatabaseOwner()); Collection<Class<?>> registeredEntities = database.getEntityManager().getRegisteredEntities(); boolean automaticSchemaG...
public class class_name { @SuppressWarnings("unchecked") private void decreaseKey(ReflectedHandle<K, V> n, K newKey) { if (n.inner == null && free != n) { throw new IllegalArgumentException("Invalid handle!"); } int c; if (comparator == null) { c = ((Compara...
public class class_name { @SuppressWarnings("unchecked") private void decreaseKey(ReflectedHandle<K, V> n, K newKey) { if (n.inner == null && free != n) { throw new IllegalArgumentException("Invalid handle!"); } int c; if (comparator == null) { c = ((Compara...
public class class_name { double computeSideError(List<Point2D_I32> contour , int indexA , int indexB ) { assignLine(contour, indexA, indexB, line); // don't sample the end points because the error will be zero by definition int numSamples; double sumOfDistances = 0; int length; if( indexB >= indexA ) { ...
public class class_name { double computeSideError(List<Point2D_I32> contour , int indexA , int indexB ) { assignLine(contour, indexA, indexB, line); // don't sample the end points because the error will be zero by definition int numSamples; double sumOfDistances = 0; int length; if( indexB >= indexA ) { ...
public class class_name { public TaskUpdateOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; } else { this.ocpDate = new DateTimeRfc1123(ocpDate); } return this; } }
public class class_name { public TaskUpdateOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; // depends on control dependency: [if], data = [none] } else { this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if], data...
public class class_name { private static String formatPrincipal(final String username) { if (StringUtils.isNotBlank(LDAP_AUTH_USERNAME_FMT)) { return String.format(LDAP_AUTH_USERNAME_FMT, username); } return username; } }
public class class_name { private static String formatPrincipal(final String username) { if (StringUtils.isNotBlank(LDAP_AUTH_USERNAME_FMT)) { return String.format(LDAP_AUTH_USERNAME_FMT, username); // depends on control dependency: [if], data = [none] } return username; } }
public class class_name { @Nullable public static ImmutableWorkerInfo selectWorker( final Task task, final Map<String, ImmutableWorkerInfo> allWorkers, final WorkerTaskRunnerConfig workerTaskRunnerConfig, @Nullable final AffinityConfig affinityConfig, final Function<ImmutableMap<String,...
public class class_name { @Nullable public static ImmutableWorkerInfo selectWorker( final Task task, final Map<String, ImmutableWorkerInfo> allWorkers, final WorkerTaskRunnerConfig workerTaskRunnerConfig, @Nullable final AffinityConfig affinityConfig, final Function<ImmutableMap<String,...
public class class_name { public boolean matchesTag(final UdpChannel udpChannel) { if (!hasTag || !udpChannel.hasTag() || tag != udpChannel.tag()) { return false; } if (udpChannel.remoteData().getAddress().isAnyLocalAddress() && udpChannel.remoteData().getPo...
public class class_name { public boolean matchesTag(final UdpChannel udpChannel) { if (!hasTag || !udpChannel.hasTag() || tag != udpChannel.tag()) { return false; // depends on control dependency: [if], data = [none] } if (udpChannel.remoteData().getAddress().isAnyLocal...
public class class_name { public void addTaskHook(ITaskHook newHook) { Collection<org.apache.heron.api.hooks.ITaskHook> hooks = delegate.getHooks(); if (hooks == null) { ITaskHookDelegate delegateHook = new ITaskHookDelegate(); delegateHook.addHook(newHook); delegate.addTaskHook(delegateHook...
public class class_name { public void addTaskHook(ITaskHook newHook) { Collection<org.apache.heron.api.hooks.ITaskHook> hooks = delegate.getHooks(); if (hooks == null) { ITaskHookDelegate delegateHook = new ITaskHookDelegate(); delegateHook.addHook(newHook); // depends on control dependency: [if], ...
public class class_name { public static int getFirstScreenHeight() { final GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment .getLocalGraphicsEnvironment(); final GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices(); int height = getScreenHeight(); for (final GraphicsDevice...
public class class_name { public static int getFirstScreenHeight() { final GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment .getLocalGraphicsEnvironment(); final GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices(); int height = getScreenHeight(); for (final GraphicsDevice...
public class class_name { @Override public void close() { if (!this.closed.getAndSet(true)) { this.conditionalUpdateProcessor.close(); this.cacheManager.unregister(this.cache); this.cache.close(); this.recoveryTracker.close(); } } }
public class class_name { @Override public void close() { if (!this.closed.getAndSet(true)) { this.conditionalUpdateProcessor.close(); // depends on control dependency: [if], data = [none] this.cacheManager.unregister(this.cache); // depends on control dependency: [if], data = [none...
public class class_name { @Override public RequestBuilder newRequestBuilder(Class<RequestBuilder> clazz) { RequestBuilder b = null; try { b = clazz.newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessExcept...
public class class_name { @Override public RequestBuilder newRequestBuilder(Class<RequestBuilder> clazz) { RequestBuilder b = null; try { b = clazz.newInstance(); // depends on control dependency: [try], data = [none] } catch (InstantiationException e) { throw new Ru...
public class class_name { public CcgParseResult parse(AnnotatedSentence sentence, ChartCost inputFilter) { AnnotatedSentence annotatedSentence = null; if (supertagger != null) { for (int i = 0; i < multitagThresholds.length; i++) { // Try parsing at each multitag threshold. If parsing succeeds, ...
public class class_name { public CcgParseResult parse(AnnotatedSentence sentence, ChartCost inputFilter) { AnnotatedSentence annotatedSentence = null; if (supertagger != null) { for (int i = 0; i < multitagThresholds.length; i++) { // Try parsing at each multitag threshold. If parsing succeeds, ...
public class class_name { public static Calendar modify(Calendar calendar, int dateField, ModifyType modifyType) { // 上下午特殊处理 if (Calendar.AM_PM == dateField) { boolean isAM = DateUtil.isAM(calendar); switch (modifyType) { case TRUNCATE: calendar.set(Calendar.HOUR_OF_DAY, isAM ? 0 : 12); br...
public class class_name { public static Calendar modify(Calendar calendar, int dateField, ModifyType modifyType) { // 上下午特殊处理 if (Calendar.AM_PM == dateField) { boolean isAM = DateUtil.isAM(calendar); switch (modifyType) { case TRUNCATE: calendar.set(Calendar.HOUR_OF_DAY, isAM ? 0 : 12); br...
public class class_name { public void initialize() { try { writeLock.lock(); if (!isInitialized()) { super.initialize(); setInitialized(true); this.initCalled = true; } } finally { // downgrade to readlock b...
public class class_name { public void initialize() { try { writeLock.lock(); // depends on control dependency: [try], data = [none] if (!isInitialized()) { super.initialize(); // depends on control dependency: [if], data = [none] setInitialized(true); // ...
public class class_name { @Override public void command(String... args) { addArgument(File.class, "xml-config-file-path"); super.command(args); configFile = getArgument("xml-config-file-path"); readConfig(); if (watch) { Thread thread = new T...
public class class_name { @Override public void command(String... args) { addArgument(File.class, "xml-config-file-path"); super.command(args); configFile = getArgument("xml-config-file-path"); readConfig(); if (watch) { Thread thread = new T...
public class class_name { private boolean createEmptyHeader( String filePath, int rows ) { try { RandomAccessFile theCreatedFile = new RandomAccessFile(filePath, "rw"); rowaddresses = new long[rows + 1]; // the size of a long theCreatedFile.write(4); ...
public class class_name { private boolean createEmptyHeader( String filePath, int rows ) { try { RandomAccessFile theCreatedFile = new RandomAccessFile(filePath, "rw"); rowaddresses = new long[rows + 1]; // depends on control dependency: [try], data = [none] // the size of...
public class class_name { protected void trace( int x , int y , int indexInten ) { int dx,dy; int indexOut = output.getIndex(x,y); open.grow().set(x,y); output.data[indexOut] = 1; intensity.data[ indexInten ] = MARK_TRAVERSED; while( open.size() > 0 ) { active.set(open.removeTail()); indexInten = ...
public class class_name { protected void trace( int x , int y , int indexInten ) { int dx,dy; int indexOut = output.getIndex(x,y); open.grow().set(x,y); output.data[indexOut] = 1; intensity.data[ indexInten ] = MARK_TRAVERSED; while( open.size() > 0 ) { active.set(open.removeTail()); // depends on co...
public class class_name { public static synchronized ClassLoader start() { if (isHotdeploy()) { final ClassLoader originalLoader = getThreadContextClassLoader(); if (isAnotherThreadHotdeploy()) { // e.g. job started inheritAnotherThreadClassLoader(); // to use same loade...
public class class_name { public static synchronized ClassLoader start() { if (isHotdeploy()) { final ClassLoader originalLoader = getThreadContextClassLoader(); if (isAnotherThreadHotdeploy()) { // e.g. job started inheritAnotherThreadClassLoader(); // to use same loade...
public class class_name { public static void postJsonMessage(StringEntity input) { String pageToken = FbBotMillContext.getInstance().getPageToken(); // If the page token is invalid, returns. if (!validatePageToken(pageToken)) { return; } String url = FbBotMillNetworkConstants.FACEBOOK_BASE_URL + FbBo...
public class class_name { public static void postJsonMessage(StringEntity input) { String pageToken = FbBotMillContext.getInstance().getPageToken(); // If the page token is invalid, returns. if (!validatePageToken(pageToken)) { return; // depends on control dependency: [if], data = [none] } String url = ...
public class class_name { public static List<DiskRange> mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, DataSize maxMergeDistance, DataSize maxReadSize) { // sort ranges by start offset List<DiskRange> ranges = new ArrayList<>(diskRanges); Collections.sort(ranges, new Comparator<D...
public class class_name { public static List<DiskRange> mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, DataSize maxMergeDistance, DataSize maxReadSize) { // sort ranges by start offset List<DiskRange> ranges = new ArrayList<>(diskRanges); Collections.sort(ranges, new Comparator<D...
public class class_name { public Hessian2Output createHessian2Output() { Hessian2Output out = _freeHessian2Output.allocate(); if (out == null) { out = new Hessian2Output(); out.setSerializerFactory(getSerializerFactory()); } return out; } }
public class class_name { public Hessian2Output createHessian2Output() { Hessian2Output out = _freeHessian2Output.allocate(); if (out == null) { out = new Hessian2Output(); // depends on control dependency: [if], data = [none] out.setSerializerFactory(getSerializerFactory(...
public class class_name { public void marshall(StopDeliveryStreamEncryptionRequest stopDeliveryStreamEncryptionRequest, ProtocolMarshaller protocolMarshaller) { if (stopDeliveryStreamEncryptionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(StopDeliveryStreamEncryptionRequest stopDeliveryStreamEncryptionRequest, ProtocolMarshaller protocolMarshaller) { if (stopDeliveryStreamEncryptionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void postProcessDistances(double distances[]) { for(int i = 0; i < distances.length; i++) { distances[i] = Math.sqrt(distances[i]); } } }
public class class_name { public void postProcessDistances(double distances[]) { for(int i = 0; i < distances.length; i++) { distances[i] = Math.sqrt(distances[i]); // depends on control dependency: [for], data = [i] } } }
public class class_name { @Override public List<String> getNodeNames(CommandContext ctx, OperationRequestAddress prefix) { ModelControllerClient client = ctx.getModelControllerClient(); if(client == null) { return Collections.emptyList(); } if(prefix.isEmpty()) { ...
public class class_name { @Override public List<String> getNodeNames(CommandContext ctx, OperationRequestAddress prefix) { ModelControllerClient client = ctx.getModelControllerClient(); if(client == null) { return Collections.emptyList(); // depends on control dependency: [if], data = ...
public class class_name { private boolean isRecursiveDeleteSafe(@Nullable AlluxioURI alluxioUri) { if (alluxioUri == null || !alluxioUri.toString().startsWith(mRootPath.toString())) { // Path is not part of sub-tree being deleted return false; } if (mUfsSyncChecker == null) { // Delete is...
public class class_name { private boolean isRecursiveDeleteSafe(@Nullable AlluxioURI alluxioUri) { if (alluxioUri == null || !alluxioUri.toString().startsWith(mRootPath.toString())) { // Path is not part of sub-tree being deleted return false; // depends on control dependency: [if], data = [none] }...
public class class_name { private static String getFullNameForItemGroup(@Nullable BlueOrganization org, @Nonnull ItemGroup itemGroup) { if (itemGroup instanceof Item) { return getFullNameForItem(org, (Item)itemGroup); } else { return itemGroup.getFullName(); } } }
public class class_name { private static String getFullNameForItemGroup(@Nullable BlueOrganization org, @Nonnull ItemGroup itemGroup) { if (itemGroup instanceof Item) { return getFullNameForItem(org, (Item)itemGroup); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public FieldDoc wrap(FieldDoc source) { if (source == null || source instanceof Proxy<?> || !(source instanceof FieldDocImpl)) { return source; } return new FieldDocWrapper((FieldDocImpl) source); } }
public class class_name { public FieldDoc wrap(FieldDoc source) { if (source == null || source instanceof Proxy<?> || !(source instanceof FieldDocImpl)) { return source; // depends on control dependency: [if], data = [none] } return new FieldDocWrapper((FieldDocImpl) source); } }
public class class_name { public static DataType getDtypeFromContext() { try { lock.readLock().lock(); if (dtype == null) { lock.readLock().unlock(); lock.writeLock().lock(); if (dtype == null) dtype = getDtypeFromCon...
public class class_name { public static DataType getDtypeFromContext() { try { lock.readLock().lock(); // depends on control dependency: [try], data = [none] if (dtype == null) { lock.readLock().unlock(); // depends on control dependency: [if], data = [none] ...
public class class_name { private static RLPList decodeRLPList(ByteBuffer bb) { byte firstByte = bb.get(); int firstByteUnsigned = firstByte & 0xFF; long payloadSize=-1; if ((firstByteUnsigned>=0xc0) && (firstByteUnsigned<=0xf7)) { // length of the list in bytes int offsetSmallList = 0xc0 & 0xff; payloadSiz...
public class class_name { private static RLPList decodeRLPList(ByteBuffer bb) { byte firstByte = bb.get(); int firstByteUnsigned = firstByte & 0xFF; long payloadSize=-1; if ((firstByteUnsigned>=0xc0) && (firstByteUnsigned<=0xf7)) { // length of the list in bytes int offsetSmallList = 0xc0 & 0xff; payloadSiz...
public class class_name { public T[] getQuantiles(final double[] fRanks) { if (isEmpty()) { return null; } ItemsAuxiliary<T> aux = null; @SuppressWarnings("unchecked") final T[] quantiles = (T[]) Array.newInstance(minValue_.getClass(), fRanks.length); for (int i = 0; i < fRanks.length; i++) { ...
public class class_name { public T[] getQuantiles(final double[] fRanks) { if (isEmpty()) { return null; } // depends on control dependency: [if], data = [none] ItemsAuxiliary<T> aux = null; @SuppressWarnings("unchecked") final T[] quantiles = (T[]) Array.newInstance(minValue_.getClass(), fRanks.length...
public class class_name { private void vaildateHostPort(String host, String port) { if (host == null || !StringUtils.isNumeric(port) || port.isEmpty()) { logger.error("Host or port should not be null / port should be numeric"); throw new IllegalArgumentException("Host or por...
public class class_name { private void vaildateHostPort(String host, String port) { if (host == null || !StringUtils.isNumeric(port) || port.isEmpty()) { logger.error("Host or port should not be null / port should be numeric"); // depends on control dependency: [if], data = [none] ...
public class class_name { private void update(int seqNo, long guessedIndex) { long delta = guessedIndex - (((long) this.roc) << 16 | this.seqNum); /* update the replay bit mask */ if (delta > 0) { replayWindow = replayWindow << delta; replayWindow |= 1; } else { replayWindow |= (1 << delta); } i...
public class class_name { private void update(int seqNo, long guessedIndex) { long delta = guessedIndex - (((long) this.roc) << 16 | this.seqNum); /* update the replay bit mask */ if (delta > 0) { replayWindow = replayWindow << delta; // depends on control dependency: [if], data = [none] replayWindow |= 1...
public class class_name { public static VoltTable unionTables(Collection<VoltTable> operands) { VoltTable result = null; // Locate the first non-null table to get the schema for (VoltTable vt : operands) { if (vt != null) { result = new VoltTable(vt.getTableSchema()...
public class class_name { public static VoltTable unionTables(Collection<VoltTable> operands) { VoltTable result = null; // Locate the first non-null table to get the schema for (VoltTable vt : operands) { if (vt != null) { result = new VoltTable(vt.getTableSchema()...
public class class_name { public static void putIfAbsent(Map<String, String> map, String name, String value) { if (!map.containsKey(name)) { map.put(name, value); } } }
public class class_name { public static void putIfAbsent(Map<String, String> map, String name, String value) { if (!map.containsKey(name)) { map.put(name, value); // depends on control dependency: [if], data = [none] } } }
public class class_name { private static boolean isHeaderAllowingMultipleValues(final Buffer headerName) { final int size = headerName.getReadableBytes(); if (size == 7) { return !isSubjectHeader(headerName); } else if (size == 5) { return !isAllowHeader(headerName); ...
public class class_name { private static boolean isHeaderAllowingMultipleValues(final Buffer headerName) { final int size = headerName.getReadableBytes(); if (size == 7) { return !isSubjectHeader(headerName); // depends on control dependency: [if], data = [none] } else if (size == 5...
public class class_name { public static ClassLoader getClassLoader() { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) { cl = ClassLoader.getSystemClassLoader(); if (cl == null) { // When this method is called for initializing a I...
public class class_name { public static ClassLoader getClassLoader() { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) { cl = ClassLoader.getSystemClassLoader(); // depends on control dependency: [if], data = [none] if (cl == null) { ...
public class class_name { private static void transferNonExistingSymbols(List<String> symbolsList, Map<String, Integer> symbolsMap) { int sid = 1; for (String text : symbolsList) { assert text == null || text.length() > 0; if (text...
public class class_name { private static void transferNonExistingSymbols(List<String> symbolsList, Map<String, Integer> symbolsMap) { int sid = 1; for (String text : symbolsList) { assert text == null || text.length() > 0; // depends on control...