code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @SuppressWarnings("unused") private void close() { try { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Doing client selector close"); } selector.close(); if (LOGGER.isTraceEnabled()) { LOGGER.trace("Clo...
public class class_name { @SuppressWarnings("unused") private void close() { try { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Doing client selector close"); // depends on control dependency: [if], data = [none] } selector.close(); // depends on control ...
public class class_name { private static List<EntryElement> convertAllObjectsToEntryElements(Collection<? extends Object> collection) { List<EntryElement> result = new ArrayList<EntryElement>(); for (Object o : collection) { result.add(transformObjectToEntryElement(o)); } re...
public class class_name { private static List<EntryElement> convertAllObjectsToEntryElements(Collection<? extends Object> collection) { List<EntryElement> result = new ArrayList<EntryElement>(); for (Object o : collection) { result.add(transformObjectToEntryElement(o)); // depends on contro...
public class class_name { public String signCookie(String str) { if (str == null || str.isEmpty()) { throw new IllegalArgumentException("NULL or empty string to sign"); } String signature = getSignature(str); if (LOG.isDebugEnabled()) { LOG.debug("Signature generated for " + str + " is " +...
public class class_name { public String signCookie(String str) { if (str == null || str.isEmpty()) { throw new IllegalArgumentException("NULL or empty string to sign"); } String signature = getSignature(str); if (LOG.isDebugEnabled()) { LOG.debug("Signature generated for " + str + " is " +...
public class class_name { protected void setChangedInLastRequest(final boolean changed) { if (isChangedInLastRequest() != changed) { InputModel model = getOrCreateComponentModel(); model.changedInLastRequest = changed; } } }
public class class_name { protected void setChangedInLastRequest(final boolean changed) { if (isChangedInLastRequest() != changed) { InputModel model = getOrCreateComponentModel(); model.changedInLastRequest = changed; // depends on control dependency: [if], data = [none] } } }
public class class_name { public boolean proofStep(ResolutionState state) { Functor goalTerm = state.getGoalStack().peek().getFunctor(); Functor matchTerm = state.getCurrentClause().getHead(); // This is used to record variables bound on the domain side of the unificiation. This informatio...
public class class_name { public boolean proofStep(ResolutionState state) { Functor goalTerm = state.getGoalStack().peek().getFunctor(); Functor matchTerm = state.getCurrentClause().getHead(); // This is used to record variables bound on the domain side of the unificiation. This informatio...
public class class_name { public static String getTargetFeaturesRange( final TrainingParameters params) { String lemmaRangeFlag = null; if (params.getSettings().get("TargetFeaturesRange") != null) { lemmaRangeFlag = params.getSettings().get("TargetFeaturesRange"); } else { lemmaRangeFlag ...
public class class_name { public static String getTargetFeaturesRange( final TrainingParameters params) { String lemmaRangeFlag = null; if (params.getSettings().get("TargetFeaturesRange") != null) { lemmaRangeFlag = params.getSettings().get("TargetFeaturesRange"); // depends on control dependency: ...
public class class_name { public void runTask() { MainTask tasks[] = new MainTask[jTableAlgorithms.getModel().getRowCount() * jTableStreams.getModel().getRowCount()]; int taskCount = 0; String dir = ""; try { this.currentTask = (MainTask) ClassOption.cliStringToObject( ...
public class class_name { public void runTask() { MainTask tasks[] = new MainTask[jTableAlgorithms.getModel().getRowCount() * jTableStreams.getModel().getRowCount()]; int taskCount = 0; String dir = ""; try { this.currentTask = (MainTask) ClassOption.cliStringToObject( ...
public class class_name { @Override public List<InstalledIdentity> getInstalledIdentities() throws PatchingException { List<InstalledIdentity> installedIdentities; final File metadataDir = installedImage.getInstallationMetadata(); if(!metadataDir.exists()) { installedIdentitie...
public class class_name { @Override public List<InstalledIdentity> getInstalledIdentities() throws PatchingException { List<InstalledIdentity> installedIdentities; final File metadataDir = installedImage.getInstallationMetadata(); if(!metadataDir.exists()) { installedIdentitie...
public class class_name { public List<Feature> getFeature(String label) { if (label == null) { throw new IllegalArgumentException("feature label is null"); } label = label.toUpperCase(); List<Feature> foundFeatures = new ArrayList(); for( Feature feature:features ) { if(feature.getLabel()....
public class class_name { public List<Feature> getFeature(String label) { if (label == null) { throw new IllegalArgumentException("feature label is null"); } label = label.toUpperCase(); List<Feature> foundFeatures = new ArrayList(); for( Feature feature:features ) { if(feature.getLabel()....
public class class_name { @Override public void visit(final FamS fams) { final FamilyNavigator navigator = new FamilyNavigator(fams); final Family family = navigator.getFamily(); if (family.isSet()) { familySNavigators.add(navigator); } } }
public class class_name { @Override public void visit(final FamS fams) { final FamilyNavigator navigator = new FamilyNavigator(fams); final Family family = navigator.getFamily(); if (family.isSet()) { familySNavigators.add(navigator); // depends on control dependency: [if], data...
public class class_name { @Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, Object expressionResult, IElementTagStructureHandler structureHandler) { if (expressionResult == null) { // e.g. la:property="${...
public class class_name { @Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, Object expressionResult, IElementTagStructureHandler structureHandler) { if (expressionResult == null) { // e.g. la:property="${...
public class class_name { @Override public void clear(int fromIndex, int toIndex) { if (fromIndex > toIndex) { throw new IndexOutOfBoundsException( "fromIndex: " + fromIndex + " > toIndex: " + toIndex ); } if (fromIndex == toIndex) { remove(fromIndex); ...
public class class_name { @Override public void clear(int fromIndex, int toIndex) { if (fromIndex > toIndex) { throw new IndexOutOfBoundsException( "fromIndex: " + fromIndex + " > toIndex: " + toIndex ); } if (fromIndex == toIndex) { remove(fromIndex); /...
public class class_name { public <D extends Declaration> Collection<D> filter(Collection<? extends Declaration> decls, Class<D> resType) { ArrayList<D> res = new ArrayList<D>(decls.size()); for (Declaration d : decls) { if (resType.isInstance(d) && matches(d)) { res.add(resType.cast(d)); } } ...
public class class_name { public <D extends Declaration> Collection<D> filter(Collection<? extends Declaration> decls, Class<D> resType) { ArrayList<D> res = new ArrayList<D>(decls.size()); for (Declaration d : decls) { if (resType.isInstance(d) && matches(d)) { res.add(resType.cast(d)); // depends o...
public class class_name { private Element searchForKey(final Element root, final String key, final String tagName) { if (root == null || StringUtils.isEmptyString(key)) { return null; } final Queue<Element> queue = new LinkedList<>(); queue.offer(root); while (!queu...
public class class_name { private Element searchForKey(final Element root, final String key, final String tagName) { if (root == null || StringUtils.isEmptyString(key)) { return null; // depends on control dependency: [if], data = [none] } final Queue<Element> queue = new LinkedList...
public class class_name { protected void recoverFromException(final String channel, final Exception e) { final RecoveryStrategy recoveryStrategy = this.exceptionHandlerRef.get().onException(this, e, channel); switch (recoveryStrategy) { case RECONNECT: LOG.info("Reconnecting to Redi...
public class class_name { protected void recoverFromException(final String channel, final Exception e) { final RecoveryStrategy recoveryStrategy = this.exceptionHandlerRef.get().onException(this, e, channel); switch (recoveryStrategy) { case RECONNECT: LOG.info("Reconnecting to Redi...
public class class_name { private void lockDescendants(Iterable<ElementBase> children, boolean lock) { for (ElementBase child : children) { child.setLocked(lock); lockDescendants(child.getChildren(), lock); } } }
public class class_name { private void lockDescendants(Iterable<ElementBase> children, boolean lock) { for (ElementBase child : children) { child.setLocked(lock); // depends on control dependency: [for], data = [child] lockDescendants(child.getChildren(), lock); // depends on control de...
public class class_name { public static String read(final Reader reader) { final BufferedReader buffer = new BufferedReader(reader, BUFFER_SIZE); try { StringBuilder sb = new StringBuilder(); String line; boolean started = false; // Read line by line while ((line = buffer.readLine()) != null) { ...
public class class_name { public static String read(final Reader reader) { final BufferedReader buffer = new BufferedReader(reader, BUFFER_SIZE); try { StringBuilder sb = new StringBuilder(); String line; boolean started = false; // Read line by line while ((line = buffer.readLine()) != null) { ...
public class class_name { public synchronized K firstKey() { if (!validState) { throw new InvalidStateException(); } final LeafNode<K, V> node = findSideLeafNode(true); if (node == null) { return null; } return node.keys[0]; } }
public class class_name { public synchronized K firstKey() { if (!validState) { throw new InvalidStateException(); } final LeafNode<K, V> node = findSideLeafNode(true); if (node == null) { return null; // depends on control dependency: [if], data = [none] } return node.keys[0]; } }
public class class_name { private Animator createAnimation(final View view, float startAlpha, float endAlpha, @Nullable TransitionValues values) { final float curAlpha = view.getAlpha(); startAlpha = curAlpha * startAlpha; endAlpha = curAlpha * endAlpha; if (values != null && values.va...
public class class_name { private Animator createAnimation(final View view, float startAlpha, float endAlpha, @Nullable TransitionValues values) { final float curAlpha = view.getAlpha(); startAlpha = curAlpha * startAlpha; endAlpha = curAlpha * endAlpha; if (values != null && values.va...
public class class_name { public byte[] toByteArray() { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(this); return baos.toByteArray(); } catch (IOException e) { ...
public class class_name { public byte[] toByteArray() { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(this); // depends on control dependency: [try], data = [none] return bao...
public class class_name { public static void Shuffle(double[] array, long seed) { Random random = new Random(); if (seed != 0) random.setSeed(seed); for (int i = array.length - 1; i > 0; i--) { int index = random.nextInt(i + 1); double temp = array[index]; a...
public class class_name { public static void Shuffle(double[] array, long seed) { Random random = new Random(); if (seed != 0) random.setSeed(seed); for (int i = array.length - 1; i > 0; i--) { int index = random.nextInt(i + 1); double temp = array[index]; a...
public class class_name { public static int[] intArrayCopyOf(CollectionNumber coll) { int[] data = new int[coll.size()]; IteratorNumber iter = coll.iterator(); int index = 0; while (iter.hasNext()) { data[index] = iter.nextInt(); index++; } ...
public class class_name { public static int[] intArrayCopyOf(CollectionNumber coll) { int[] data = new int[coll.size()]; IteratorNumber iter = coll.iterator(); int index = 0; while (iter.hasNext()) { data[index] = iter.nextInt(); // depends on control dependency: [whil...
public class class_name { public void marshall(EventDestination eventDestination, ProtocolMarshaller protocolMarshaller) { if (eventDestination == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(even...
public class class_name { public void marshall(EventDestination eventDestination, ProtocolMarshaller protocolMarshaller) { if (eventDestination == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(even...
public class class_name { public double dot(LongDoubleVector y) { if (y instanceof LongDoubleSortedVector) { LongDoubleSortedVector other = ((LongDoubleSortedVector) y); double dot = 0; int oc = 0; for (int c = 0; c < used; c++) { while (oc < othe...
public class class_name { public double dot(LongDoubleVector y) { if (y instanceof LongDoubleSortedVector) { LongDoubleSortedVector other = ((LongDoubleSortedVector) y); double dot = 0; int oc = 0; for (int c = 0; c < used; c++) { while (oc < othe...
public class class_name { private long checkRegions(final long iOffset, final long iLength) { acquireReadLock(); try { if (iOffset < 0 || iOffset + iLength > size) { throw new OIOException( "You cannot access outside the file size (" + size + " bytes). You have requested portion " + i...
public class class_name { private long checkRegions(final long iOffset, final long iLength) { acquireReadLock(); try { if (iOffset < 0 || iOffset + iLength > size) { throw new OIOException( "You cannot access outside the file size (" + size + " bytes). You have requested portion " + i...
public class class_name { public Resource getResource(final String catalog) { ResourceSelection selection = contextConfig.getSelection(catalog); if (selection == null) { return null; } return repository.getResource(selection); } }
public class class_name { public Resource getResource(final String catalog) { ResourceSelection selection = contextConfig.getSelection(catalog); if (selection == null) { return null; // depends on control dependency: [if], data = [none] } return repository.getResource(selection); } }
public class class_name { public static void rank1UpdateMultL_LeftCol( final int blockLength , final DSubmatrixD1 A , final int row , final double gamma , int zeroOffset ) { final int heightU = Math.min(blockL...
public class class_name { public static void rank1UpdateMultL_LeftCol( final int blockLength , final DSubmatrixD1 A , final int row , final double gamma , int zeroOffset ) { final int heightU = Math.min(blockL...
public class class_name { protected void attemptToSplit(LeafNode node, Node parent, int parentIndex) { // Initialize the split criterion SplitCriterion splitCriterion = (SplitCriterion) getPreparedClassOption(splitCriterionOption); // Using this criterion, find the best split per attribute and rank the results...
public class class_name { protected void attemptToSplit(LeafNode node, Node parent, int parentIndex) { // Initialize the split criterion SplitCriterion splitCriterion = (SplitCriterion) getPreparedClassOption(splitCriterionOption); // Using this criterion, find the best split per attribute and rank the results...
public class class_name { static void deleteOldBuildDataDirs(File tmpDir, Log logger) { if (!tmpDir.exists()) { // Before creation of the @tmp directory return; } File[] buildDataDirs = tmpDir.listFiles(buildDataDir -> { long ageInMilliseconds = new Date().ge...
public class class_name { static void deleteOldBuildDataDirs(File tmpDir, Log logger) { if (!tmpDir.exists()) { // Before creation of the @tmp directory return; // depends on control dependency: [if], data = [none] } File[] buildDataDirs = tmpDir.listFiles(buildDataDir -...
public class class_name { public void setInputList(final List<PathLabel> inputRefs) { this.inputRefs = inputRefs; SwingUtilities.invokeLater(new Runnable() { public void run() { for( int i = 0; i < inputRefs.size(); i++ ) { imageBox.addItem(inputRefs.get(i).getLabel()); } }}); } }
public class class_name { public void setInputList(final List<PathLabel> inputRefs) { this.inputRefs = inputRefs; SwingUtilities.invokeLater(new Runnable() { public void run() { for( int i = 0; i < inputRefs.size(); i++ ) { imageBox.addItem(inputRefs.get(i).getLabel()); // depends on control depende...
public class class_name { public synchronized void stop() { if (isRunning()) { VirtualCdj.getInstance().removeUpdateListener(updateListener); running.set(false); pendingUpdates.clear(); queueHandler.interrupt(); queueHandler = null; // Re...
public class class_name { public synchronized void stop() { if (isRunning()) { VirtualCdj.getInstance().removeUpdateListener(updateListener); // depends on control dependency: [if], data = [none] running.set(false); // depends on control dependency: [if], data = [none] pendi...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <DATATYPE> next () { if (!hasNext ()) throw new NoSuchElementException (); // Not for the very first item, as the first item is the original order final boolean bFirstItem = m_bUseLong ? m_nCombinationsLeft == m_nTotalC...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <DATATYPE> next () { if (!hasNext ()) throw new NoSuchElementException (); // Not for the very first item, as the first item is the original order final boolean bFirstItem = m_bUseLong ? m_nCombinationsLeft == m_nTotalC...
public class class_name { public void setItem(String itemName, String value) { itemName = lookupItemName(itemName, value != null); if (value == null) { items.remove(itemName); index.remove(itemName.toLowerCase()); } else { items.put(itemName, value); ...
public class class_name { public void setItem(String itemName, String value) { itemName = lookupItemName(itemName, value != null); if (value == null) { items.remove(itemName); // depends on control dependency: [if], data = [none] index.remove(itemName.toLowerCase()); // depends...
public class class_name { @Override public Date getValue() { try { return dateTimeFormat != null && textBox.getValue() != null ? dateTimeFormat.parse(textBox.getValue()) : null; } catch (final Exception e) { return null; } } }
public class class_name { @Override public Date getValue() { try { return dateTimeFormat != null && textBox.getValue() != null ? dateTimeFormat.parse(textBox.getValue()) : null; // depends on control dependency: [try], data = [none] } catch (final Exception e) { return null;...
public class class_name { @SuppressWarnings("unchecked") public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) { Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5"); Assert.notNull(servletC...
public class class_name { @SuppressWarnings("unchecked") public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) { Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5"); Assert.notNull(servletC...
public class class_name { public synchronized void init(ImageLoaderConfiguration configuration) { if (configuration == null) { throw new IllegalArgumentException(ERROR_INIT_CONFIG_WITH_NULL); } if (this.configuration == null) { L.d(LOG_INIT_CONFIG); engine = new ImageLoaderEngine(configuration); this...
public class class_name { public synchronized void init(ImageLoaderConfiguration configuration) { if (configuration == null) { throw new IllegalArgumentException(ERROR_INIT_CONFIG_WITH_NULL); } if (this.configuration == null) { L.d(LOG_INIT_CONFIG); // depends on control dependency: [if], data = [none] ...
public class class_name { public void copy(ILocator destination, String depth, boolean overwrite, Collection propertyNames) throws DAVException { // Define the request context. IContext context = newContext(); context.setDepth(depth); context.setOverwrite(overwrite); // Set up ...
public class class_name { public void copy(ILocator destination, String depth, boolean overwrite, Collection propertyNames) throws DAVException { // Define the request context. IContext context = newContext(); context.setDepth(depth); context.setOverwrite(overwrite); // Set up ...
public class class_name { public static Iterator<Cell> gatherTombstones(final ColumnFamily returnCF, final Iterator<? extends OnDiskAtom> iter) { return new Iterator<Cell>() { private Cell next; public boolean hasNext() { if (next != null) ...
public class class_name { public static Iterator<Cell> gatherTombstones(final ColumnFamily returnCF, final Iterator<? extends OnDiskAtom> iter) { return new Iterator<Cell>() { private Cell next; public boolean hasNext() { if (next != null) ...
public class class_name { public EClass getIfcDefinedSymbol() { if (ifcDefinedSymbolEClass == null) { ifcDefinedSymbolEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(143); } return ifcDefinedSymbolEClass; } }
public class class_name { public EClass getIfcDefinedSymbol() { if (ifcDefinedSymbolEClass == null) { ifcDefinedSymbolEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(143); // depends on control dependency: [if], data = [none] } return ifcDefi...
public class class_name { @Override public final int read() throws IOException { assert cursor <= end; if (cursor >= end) { if (includeLevel.in == null) { return -1; } int cp = (int)(cursor % size); long len = s...
public class class_name { @Override public final int read() throws IOException { assert cursor <= end; if (cursor >= end) { if (includeLevel.in == null) { return -1; // depends on control dependency: [if], data = [none] } i...
public class class_name { public void addLostStorage(Map<String, StorageList> lostStorage) { for (Map.Entry<String, StorageList> entry : lostStorage.entrySet()) { List<String> paths = mLostStorage.getOrDefault(entry.getKey(), new ArrayList<>()); paths.addAll(entry.getValue().getStorageList()); mL...
public class class_name { public void addLostStorage(Map<String, StorageList> lostStorage) { for (Map.Entry<String, StorageList> entry : lostStorage.entrySet()) { List<String> paths = mLostStorage.getOrDefault(entry.getKey(), new ArrayList<>()); paths.addAll(entry.getValue().getStorageList()); // depen...
public class class_name { public boolean register(SipURI requestUri, String user, String password, String contact, int expiry, long timeout) { initErrorInfo(); try { AddressFactory addr_factory = parent.getAddressFactory(); HeaderFactory hdr_factory = parent.getHeaderFactory(); if (re...
public class class_name { public boolean register(SipURI requestUri, String user, String password, String contact, int expiry, long timeout) { initErrorInfo(); try { AddressFactory addr_factory = parent.getAddressFactory(); HeaderFactory hdr_factory = parent.getHeaderFactory(); if (re...
public class class_name { private static String formetFileSize(long fileSize) { DecimalFormat decimalFormat = new DecimalFormat("#.00"); String fileSizeString = ""; String wrongSize = "0B"; if (fileSize == 0) { return wrongSize; } if (fileSize < 1024) { fileSizeString = decimalFormat.format((double) ...
public class class_name { private static String formetFileSize(long fileSize) { DecimalFormat decimalFormat = new DecimalFormat("#.00"); String fileSizeString = ""; String wrongSize = "0B"; if (fileSize == 0) { return wrongSize; // depends on control dependency: [if], data = [none] } if (fileSize < 1024...
public class class_name { static int writeUtf8(AbstractByteBuf buffer, int writerIndex, CharSequence seq, int len) { int oldWriterIndex = writerIndex; // We can use the _set methods as these not need to do any index checks and reference checks. // This is possible as we called ensureWritable(....
public class class_name { static int writeUtf8(AbstractByteBuf buffer, int writerIndex, CharSequence seq, int len) { int oldWriterIndex = writerIndex; // We can use the _set methods as these not need to do any index checks and reference checks. // This is possible as we called ensureWritable(....
public class class_name { public List<V> getAllServices(){ if(cache == null || cache.size() == 0){ return Collections.emptyList(); } List<V> list = new ArrayList<V>(); for(V svc : cache.values()){ list.add(svc); } return list; } }
public class class_name { public List<V> getAllServices(){ if(cache == null || cache.size() == 0){ return Collections.emptyList(); // depends on control dependency: [if], data = [none] } List<V> list = new ArrayList<V>(); for(V svc : cache.values()){ list.add(sv...
public class class_name { @SuppressWarnings("unchecked") public Workbook create(Object bean) { optionsSheet = sheet.getWorkbook().getSheet("Options"); for (val field : bean.getClass().getDeclaredFields()) { if (Fields.shouldIgnored(field, ExcelColIgnore.class)) continue; if...
public class class_name { @SuppressWarnings("unchecked") public Workbook create(Object bean) { optionsSheet = sheet.getWorkbook().getSheet("Options"); for (val field : bean.getClass().getDeclaredFields()) { if (Fields.shouldIgnored(field, ExcelColIgnore.class)) continue; if...
public class class_name { ExtensionLoader createDefaultExtensionLoader() { // First find the right Class/ClassLoader final Class<?> extensionLoaderImplClass; try { extensionLoaderImplClass = ClassLoaderSearchUtil.findClassFromClassLoaders(EXTENSION_LOADER_IMPL, getCl...
public class class_name { ExtensionLoader createDefaultExtensionLoader() { // First find the right Class/ClassLoader final Class<?> extensionLoaderImplClass; try { extensionLoaderImplClass = ClassLoaderSearchUtil.findClassFromClassLoaders(EXTENSION_LOADER_IMPL, getCl...
public class class_name { public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){ List<Pair> params = new ArrayList<Pair>(); // preconditions if (name == null || name.isEmpty() || value == null) return params; Collection<?> valueCollection = null; if (value instanc...
public class class_name { public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){ List<Pair> params = new ArrayList<Pair>(); // preconditions if (name == null || name.isEmpty() || value == null) return params; Collection<?> valueCollection = null; if (value instanc...
public class class_name { public boolean refine( DetectPolygonFromContour.Info info ) { double before,after; if( edgeIntensity.computeEdge(info.polygon,!detector.isOutputClockwise()) ) { before = edgeIntensity.getAverageOutside() - edgeIntensity.getAverageInside(); } else { return false; } boolean suc...
public class class_name { public boolean refine( DetectPolygonFromContour.Info info ) { double before,after; if( edgeIntensity.computeEdge(info.polygon,!detector.isOutputClockwise()) ) { before = edgeIntensity.getAverageOutside() - edgeIntensity.getAverageInside(); // depends on control dependency: [if], data =...
public class class_name { public void loadRasters(int imageHeight, boolean save, String prefix) { Check.notNull(prefix); final Raster raster = Raster.load(rasterFile); final int max = UtilConversion.boolToInt(rasterSmooth) + 1; for (int m = 0; m < max; m++) { ...
public class class_name { public void loadRasters(int imageHeight, boolean save, String prefix) { Check.notNull(prefix); final Raster raster = Raster.load(rasterFile); final int max = UtilConversion.boolToInt(rasterSmooth) + 1; for (int m = 0; m < max; m++) { ...
public class class_name { public static void recursivelySquashNulls(Object input) { // Makes two passes thru the data. Objects.squashNulls( input ); if ( input instanceof List ) { List inputList = (List) input; inputList.forEach( i -> recursivelySquashNulls( i ) ); ...
public class class_name { public static void recursivelySquashNulls(Object input) { // Makes two passes thru the data. Objects.squashNulls( input ); if ( input instanceof List ) { List inputList = (List) input; inputList.forEach( i -> recursivelySquashNulls( i ) ); // ...
public class class_name { private void send(final byte[] buffer, final Session destination) { synchronized (connections) { // execute asynchronously to avoid slower clients from interfering with faster clients final ExecutorService connectionThread = connectionThreads.get(destination); ...
public class class_name { private void send(final byte[] buffer, final Session destination) { synchronized (connections) { // execute asynchronously to avoid slower clients from interfering with faster clients final ExecutorService connectionThread = connectionThreads.get(destination); ...
public class class_name { @Modified(id = "importDeclarations") void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) { LOG.debug(linkerName + " : Modify the ImportDeclaration " + declarationsManager.getDeclaration(importDeclarationSRef)); synchro...
public class class_name { @Modified(id = "importDeclarations") void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) { LOG.debug(linkerName + " : Modify the ImportDeclaration " + declarationsManager.getDeclaration(importDeclarationSRef)); synchro...
public class class_name { public String getProperty(String key) { // Try to get the callers class name and method name by examing the stack. String className = null; String methodName = null; // Java 1.4 onwards only. /*try { throw new Exception(); ...
public class class_name { public String getProperty(String key) { // Try to get the callers class name and method name by examing the stack. String className = null; String methodName = null; // Java 1.4 onwards only. /*try { throw new Exception(); ...
public class class_name { private void performNotificationImp(boolean performUpdate) { // Getting pending notifications list List<PendingNotification> destNotifications = getNotifications(); if (destNotifications.size() == 0) { hideNotification(); return; } ...
public class class_name { private void performNotificationImp(boolean performUpdate) { // Getting pending notifications list List<PendingNotification> destNotifications = getNotifications(); if (destNotifications.size() == 0) { hideNotification(); // depends on control dependency: [...
public class class_name { private static boolean hasAnnotation(String pkgInfo, String annotation) { if (!annotation.contains(".")) { ErrorUtil.warning(annotation + " is not a fully qualified name"); } if (pkgInfo.contains("@" + annotation)) { return true; } int idx = annotation.lastInde...
public class class_name { private static boolean hasAnnotation(String pkgInfo, String annotation) { if (!annotation.contains(".")) { ErrorUtil.warning(annotation + " is not a fully qualified name"); // depends on control dependency: [if], data = [none] } if (pkgInfo.contains("@" + annotation)) { ...
public class class_name { public void flip(final int x) { final short hb = BufferUtil.highbits(x); final int i = highLowContainer.getIndex(hb); if (i >= 0) { MappeableContainer c = highLowContainer.getContainerAtIndex(i); c = c.flip(BufferUtil.lowbits(x)); if (!c.isEmpty()) { ((Mu...
public class class_name { public void flip(final int x) { final short hb = BufferUtil.highbits(x); final int i = highLowContainer.getIndex(hb); if (i >= 0) { MappeableContainer c = highLowContainer.getContainerAtIndex(i); c = c.flip(BufferUtil.lowbits(x)); // depends on control dependency: [if]...
public class class_name { private static void generateProtobufDefinedForField(StringBuilder code, Field field, Set<String> enumNames) { code.append("@").append(Protobuf.class.getSimpleName()).append("("); String fieldType = fieldTypeMapping.get(field.getType()); if (fieldType == null) { ...
public class class_name { private static void generateProtobufDefinedForField(StringBuilder code, Field field, Set<String> enumNames) { code.append("@").append(Protobuf.class.getSimpleName()).append("("); String fieldType = fieldTypeMapping.get(field.getType()); if (fieldType == null) { ...
public class class_name { public static void closeIOStream(InputStream in, OutputStream out) { if (in != null) { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } if (out != null) { try { ...
public class class_name { public static void closeIOStream(InputStream in, OutputStream out) { if (in != null) { try { in.close(); // depends on control dependency: [try], data = [none] } catch (IOException e) { e.printStackTrace(); } // depen...
public class class_name { public void set(String value, int idx) { int rowOffset = getM(); for ( int i = 0; i < getN(); i++ ) { if ( i < value.length()) { setChar( value.charAt(i), idx + (rowOffset * i)); } else { setChar(' ...
public class class_name { public void set(String value, int idx) { int rowOffset = getM(); for ( int i = 0; i < getN(); i++ ) { if ( i < value.length()) { setChar( value.charAt(i), idx + (rowOffset * i)); // depends on control dependency: [if], data = [none] ...
public class class_name { static int[] insert(int[] itemset, int item) { if (itemset == null) { int[] newItemset = {item}; return newItemset; } else { int n = itemset.length + 1; int[] newItemset = new int[n]; newItemset[0] = ite...
public class class_name { static int[] insert(int[] itemset, int item) { if (itemset == null) { int[] newItemset = {item}; return newItemset; // depends on control dependency: [if], data = [none] } else { int n = itemset.length + 1; int[] new...
public class class_name { private void readEnd(ZipEntry e) throws IOException { int n = inf.getRemaining(); if (n > 0) { ((PushbackInputStream)in).unread(buf, len - n, n); } if ((flag & 8) == 8) { /* "Data Descriptor" present */ if (inf.getBytesWritte...
public class class_name { private void readEnd(ZipEntry e) throws IOException { int n = inf.getRemaining(); if (n > 0) { ((PushbackInputStream)in).unread(buf, len - n, n); } if ((flag & 8) == 8) { /* "Data Descriptor" present */ if (inf.getBytesWritte...
public class class_name { public static void applyToOr(ColorHolder colorHolder, TextView textView, ColorStateList colorDefault) { if (colorHolder != null && textView != null) { colorHolder.applyToOr(textView, colorDefault); } else if (textView != null) { textView.setTextColor(co...
public class class_name { public static void applyToOr(ColorHolder colorHolder, TextView textView, ColorStateList colorDefault) { if (colorHolder != null && textView != null) { colorHolder.applyToOr(textView, colorDefault); // depends on control dependency: [if], data = [none] } else if (te...
public class class_name { private static void reflectionAppend(final Object object, final Class<?> clazz, final HashCodeBuilder builder, final boolean useTransients, final String[] excludeFields) { if (isRegistered(object)) { return; } try { register(object);...
public class class_name { private static void reflectionAppend(final Object object, final Class<?> clazz, final HashCodeBuilder builder, final boolean useTransients, final String[] excludeFields) { if (isRegistered(object)) { return; // depends on control dependency: [if], data = [none]...
public class class_name { protected Object jsonDeserialize(byte[] in, Class<?> cls) { if (in == null || in.length == 0) { return null; } Object res = null; try { res = JsonUtils.json2Object(new String(in, "utf-8"), cls); } catch (UnsupportedEncodingExcept...
public class class_name { protected Object jsonDeserialize(byte[] in, Class<?> cls) { if (in == null || in.length == 0) { return null; // depends on control dependency: [if], data = [none] } Object res = null; try { res = JsonUtils.json2Object(new String(in, "utf...
public class class_name { private void openTargetPage(CmsSitemapTreeNodeData nodeData, boolean second) { CmsUUID id = nodeData.getClientEntry().getId(); CmsUUID defaultFileId = nodeData.getClientEntry().getDefaultFileId(); CmsUUID targetId = defaultFileId; if (targetId == null) { ...
public class class_name { private void openTargetPage(CmsSitemapTreeNodeData nodeData, boolean second) { CmsUUID id = nodeData.getClientEntry().getId(); CmsUUID defaultFileId = nodeData.getClientEntry().getDefaultFileId(); CmsUUID targetId = defaultFileId; if (targetId == null) { ...
public class class_name { void printDotEdges(PrintStream os, int maxLevelsToPrintPerEdge, float totalWeight, boolean detail, PrintMojo.PrintTreeOptions treeOptions) { assert (leftChild == null) == (rightChild == null); if (leftChild != null) { os.print("\"" + getDotName() + "\"" + "...
public class class_name { void printDotEdges(PrintStream os, int maxLevelsToPrintPerEdge, float totalWeight, boolean detail, PrintMojo.PrintTreeOptions treeOptions) { assert (leftChild == null) == (rightChild == null); if (leftChild != null) { os.print("\"" + getDotName() + "\"" + "...
public class class_name { private void openFiles() throws IOException { LogManager manager = LogManager.getLogManager(); manager.checkPermission(); if (count < 1) { throw new IllegalArgumentException("file count = " + count); } if (limit < 0) { limit = 0; ...
public class class_name { private void openFiles() throws IOException { LogManager manager = LogManager.getLogManager(); manager.checkPermission(); if (count < 1) { throw new IllegalArgumentException("file count = " + count); } if (limit < 0) { limit = 0; ...
public class class_name { @Override public CommerceNotificationQueueEntry fetchByPrimaryKey( Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationQueueEntryImpl.class, primaryKey); if (serializable == ...
public class class_name { @Override public CommerceNotificationQueueEntry fetchByPrimaryKey( Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationQueueEntryImpl.class, primaryKey); if (serializable == ...
public class class_name { public @NotNull MediaArgs mediaFormats(MediaFormat... values) { if (values == null || values.length == 0) { this.mediaFormats = null; } else { this.mediaFormats = values; } return this; } }
public class class_name { public @NotNull MediaArgs mediaFormats(MediaFormat... values) { if (values == null || values.length == 0) { this.mediaFormats = null; // depends on control dependency: [if], data = [none] } else { this.mediaFormats = values; // depends on control dependency: [if], data...
public class class_name { public void setThreadMax(int max) { if (max == _threadMax) { // avoid update() overhead if unchanged return; } if (max <= 0) { max = DEFAULT_THREAD_MAX; } if (max < _idleMin) throw new ConfigException(L.l("IdleMin ({0}) must be less than...
public class class_name { public void setThreadMax(int max) { if (max == _threadMax) { // avoid update() overhead if unchanged return; // depends on control dependency: [if], data = [none] } if (max <= 0) { max = DEFAULT_THREAD_MAX; // depends on control dependency: [if], data = [n...
public class class_name { public static String describePlatform() { String desc = "Java " + SPECIFICATION_VERSION + " (" + "VM vendor name=\"" + VENDOR + "\", " + "VM vendor version=" + VENDOR_VERSION + ", " + "JVM name=\"" + JVM_NAME + "\", " + "JVM versio...
public class class_name { public static String describePlatform() { String desc = "Java " + SPECIFICATION_VERSION + " (" + "VM vendor name=\"" + VENDOR + "\", " + "VM vendor version=" + VENDOR_VERSION + ", " + "JVM name=\"" + JVM_NAME + "\", " + "JVM versio...
public class class_name { @Override public void updateStepStatus(long stepExecutionId, StepStatus stepStatus) { logger.entering(CLASSNAME, "updateStepStatus", new Object[] {stepExecutionId, stepStatus}); if (logger.isLoggable(Level.FINE)) { logger.fine("Updating StepStatus to: " + stepStatus.getBatchStat...
public class class_name { @Override public void updateStepStatus(long stepExecutionId, StepStatus stepStatus) { logger.entering(CLASSNAME, "updateStepStatus", new Object[] {stepExecutionId, stepStatus}); if (logger.isLoggable(Level.FINE)) { logger.fine("Updating StepStatus to: " + stepStatus.getBatchStat...
public class class_name { public static Boolean checkTokenBoundaries(MatchResult r, Sentence s, JCas jcas){ Boolean beginOK = false; Boolean endOK = false; // whole expression is marked as a sentence if ((r.end() - r.start()) == (s.getEnd() -s.getBegin())){ return true; } // Only check Token bounda...
public class class_name { public static Boolean checkTokenBoundaries(MatchResult r, Sentence s, JCas jcas){ Boolean beginOK = false; Boolean endOK = false; // whole expression is marked as a sentence if ((r.end() - r.start()) == (s.getEnd() -s.getBegin())){ return true; // depends on control dependency: [...
public class class_name { private UpdateResult delete(long key, Node node) { UpdateResult result; if (node == null) { // Item not found. result = new UpdateResult(); } else { long itemKey = node.item.key(); if (key < itemKey) { // ...
public class class_name { private UpdateResult delete(long key, Node node) { UpdateResult result; if (node == null) { // Item not found. result = new UpdateResult(); // depends on control dependency: [if], data = [none] } else { long itemKey = node.item.key()...
public class class_name { @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public ResponseEntity<E> delete(@PathVariable int id) { try { E entityToDelete = this.service.findById(id); this.service.delete(entityToDelete); // extract the original classname...
public class class_name { @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public ResponseEntity<E> delete(@PathVariable int id) { try { E entityToDelete = this.service.findById(id); this.service.delete(entityToDelete); // depends on control dependency: [try], data ...
public class class_name { public static String substitute(String input, List<VariableInstance> variables) throws MdwException { StringBuffer substituted = new StringBuffer(input.length()); try { Matcher matcher = tokenPattern.matcher(input); int index = 0; while ...
public class class_name { public static String substitute(String input, List<VariableInstance> variables) throws MdwException { StringBuffer substituted = new StringBuffer(input.length()); try { Matcher matcher = tokenPattern.matcher(input); int index = 0; while ...
public class class_name { public Observable<ServiceResponse<Page<JobExecutionInner>>> listByJobWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName) { return listByJobSinglePageAsync(resourceGroupName, serverName, jobAgentName, jobNam...
public class class_name { public Observable<ServiceResponse<Page<JobExecutionInner>>> listByJobWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName) { return listByJobSinglePageAsync(resourceGroupName, serverName, jobAgentName, jobNam...
public class class_name { public void setLocale(Locale locale) { if (locale == getLocale() || ignoreDatePatternChange) { return; } super.setLocale(locale); dateFormatter = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM, locale); setToolTipText(dateFormatter.toPattern()); setDate(date,...
public class class_name { public void setLocale(Locale locale) { if (locale == getLocale() || ignoreDatePatternChange) { return; // depends on control dependency: [if], data = [none] } super.setLocale(locale); dateFormatter = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM, locale); setTo...
public class class_name { public void configureHttpPipeline(ChannelPipeline serverPipeline, String initialHttpScheme) { if (initialHttpScheme.equals(Constants.HTTP_SCHEME)) { serverPipeline.addLast(Constants.HTTP_ENCODER, new HttpResponseEncoder()); serverPipeline.addLast(Constants.HTT...
public class class_name { public void configureHttpPipeline(ChannelPipeline serverPipeline, String initialHttpScheme) { if (initialHttpScheme.equals(Constants.HTTP_SCHEME)) { serverPipeline.addLast(Constants.HTTP_ENCODER, new HttpResponseEncoder()); // depends on control dependency: [if], data = [...
public class class_name { public AsciiTable setPaddingRightChar(Character paddingRightChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingRightChar(paddingRightChar); } } return this; } }
public class class_name { public AsciiTable setPaddingRightChar(Character paddingRightChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingRightChar(paddingRightChar); // depends on control dependency: [if], data = [none] } } return this; } }
public class class_name { public static StmtRunner get() { if (StmtRunner.RUNNER == null) { StmtRunner.RUNNER = new StmtRunner(); EQLRUNNERS.add(SQLRunner.class); } return StmtRunner.RUNNER; } }
public class class_name { public static StmtRunner get() { if (StmtRunner.RUNNER == null) { StmtRunner.RUNNER = new StmtRunner(); // depends on control dependency: [if], data = [none] EQLRUNNERS.add(SQLRunner.class); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static Object toValue(String name, Object value) { String[] parts = StringUtils.split(name, "@", 2); String fieldName = null; String fieldType = "String"; if (parts.length == 2) { fieldType = parts[1]; fieldName = parts[0]; } else if (parts.length == 1) { fieldName =...
public class class_name { public static Object toValue(String name, Object value) { String[] parts = StringUtils.split(name, "@", 2); String fieldName = null; String fieldType = "String"; if (parts.length == 2) { fieldType = parts[1]; // depends on control dependency: [if], data = [none] fieldName = part...
public class class_name { public static synchronized void addOperation(Runnable runnable, boolean preserveForNextShutdown) { shutdownOperations.add(runnable); if(preserveForNextShutdown) { preservedShutdownOperations.add(runnable); } } }
public class class_name { public static synchronized void addOperation(Runnable runnable, boolean preserveForNextShutdown) { shutdownOperations.add(runnable); if(preserveForNextShutdown) { preservedShutdownOperations.add(runnable); // depends on control dependency: [if], data = [none] ...
public class class_name { protected void fireContextDestroyed(AgentContext context) { final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class); this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_1, context.getID())); for...
public class class_name { protected void fireContextDestroyed(AgentContext context) { final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class); this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_1, context.getID())); for...
public class class_name { public double getCoverDelta(GrammarRuleRecord rule) { // counts which uncovered points shall be covered int new_cover = 0; // counts overlaps with previously covered ranges int overlapping_cover = 0; // perform the sum computation for (RuleInterval i : rule.getRuleI...
public class class_name { public double getCoverDelta(GrammarRuleRecord rule) { // counts which uncovered points shall be covered int new_cover = 0; // counts overlaps with previously covered ranges int overlapping_cover = 0; // perform the sum computation for (RuleInterval i : rule.getRuleI...
public class class_name { private static void verifyJUnit4Present() { try { Class<?> clazz = Class.forName("org.junit.runner.Description"); if (!Serializable.class.isAssignableFrom(clazz)) { JvmExit.halt(SlaveMain.ERR_OLD_JUNIT); } } catch (ClassNotFoundException e) { JvmExit.ha...
public class class_name { private static void verifyJUnit4Present() { try { Class<?> clazz = Class.forName("org.junit.runner.Description"); if (!Serializable.class.isAssignableFrom(clazz)) { JvmExit.halt(SlaveMain.ERR_OLD_JUNIT); // depends on control dependency: [if], data = [none] } ...
public class class_name { protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String servletPath = (String) request.getAttribute(Dispatcher.__INCLUDE_SERVLET_PATH); String pathInfo = null; if (servletPath == null) {...
public class class_name { protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String servletPath = (String) request.getAttribute(Dispatcher.__INCLUDE_SERVLET_PATH); String pathInfo = null; if (servletPath == null) {...
public class class_name { private void ensureAccessible(Key<?> key, GinjectorBindings parent, GinjectorBindings child) { // Parent will be null if it is was an optional dependency and it couldn't be created. if (parent != null && !child.equals(parent) && !child.isBound(key)) { PrettyPrinter.log(logger, T...
public class class_name { private void ensureAccessible(Key<?> key, GinjectorBindings parent, GinjectorBindings child) { // Parent will be null if it is was an optional dependency and it couldn't be created. if (parent != null && !child.equals(parent) && !child.isBound(key)) { PrettyPrinter.log(logger, T...
public class class_name { public Content getSerializedContent(Content serializedTreeContent) { HtmlTree divContent = HtmlTree.DIV(HtmlStyle.serializedFormContainer, serializedTreeContent); if (configuration.allowTag(HtmlTag.MAIN)) { mainTree.addContent(divContent); ...
public class class_name { public Content getSerializedContent(Content serializedTreeContent) { HtmlTree divContent = HtmlTree.DIV(HtmlStyle.serializedFormContainer, serializedTreeContent); if (configuration.allowTag(HtmlTag.MAIN)) { mainTree.addContent(divContent); // depend...
public class class_name { private void readEntity(StringBuilder out, boolean isEntityToken, boolean throwOnResolveFailure, ValueContext valueContext) throws IOException, KriptonRuntimeException { int start = out.length(); if (buffer[position++] != '&') { throw new AssertionError(); } out.append('&'); w...
public class class_name { private void readEntity(StringBuilder out, boolean isEntityToken, boolean throwOnResolveFailure, ValueContext valueContext) throws IOException, KriptonRuntimeException { int start = out.length(); if (buffer[position++] != '&') { throw new AssertionError(); } out.append('&'); w...
public class class_name { public Map<String, String> getControls(Version serverVersion) { final CompressionMode effectiveMode = compression(serverVersion); if (compressionMode != effectiveMode) { LOGGER.info("Couchbase Server version {} does not support {} compression mode; falling back to {}.", ...
public class class_name { public Map<String, String> getControls(Version serverVersion) { final CompressionMode effectiveMode = compression(serverVersion); if (compressionMode != effectiveMode) { LOGGER.info("Couchbase Server version {} does not support {} compression mode; falling back to {}.", ...
public class class_name { public static void ensureClusteringResult(final Database db, final Result result) { Collection<Clustering<?>> clusterings = ResultUtil.filterResults(db.getHierarchy(), result, Clustering.class); if(clusterings.isEmpty()) { ResultUtil.addChildResult(db, new ByLabelOrAllInOneClust...
public class class_name { public static void ensureClusteringResult(final Database db, final Result result) { Collection<Clustering<?>> clusterings = ResultUtil.filterResults(db.getHierarchy(), result, Clustering.class); if(clusterings.isEmpty()) { ResultUtil.addChildResult(db, new ByLabelOrAllInOneClust...
public class class_name { final public void SetData() throws ParseException { /*@bgen(jjtree) SetData */ AstSetData jjtn000 = new AstSetData(JJTSETDATA); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(START_SET_OR_MAP); switch ((jj_ntk==-1)...
public class class_name { final public void SetData() throws ParseException { /*@bgen(jjtree) SetData */ AstSetData jjtn000 = new AstSetData(JJTSETDATA); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(START_SET_OR_MAP); switch ((jj_ntk==-1)...
public class class_name { @Override public RTMPConnection removeConnection(int clientId) { log.trace("Removing connection with id: {}", clientId); // remove from map for (RTMPConnection conn : connMap.values()) { if (conn.getId() == clientId) { // remove the conn...
public class class_name { @Override public RTMPConnection removeConnection(int clientId) { log.trace("Removing connection with id: {}", clientId); // remove from map for (RTMPConnection conn : connMap.values()) { if (conn.getId() == clientId) { // remove the conn...
public class class_name { private void updateLru(CacheItem<K,V> item) { long lruCounter = _lruCounter; long itemCounter = item._lruCounter; long delta = (lruCounter - itemCounter) & 0x3fffffff; if (_lruTimeout < delta || delta < 0) { // update LRU only if not used recently updateLruImpl...
public class class_name { private void updateLru(CacheItem<K,V> item) { long lruCounter = _lruCounter; long itemCounter = item._lruCounter; long delta = (lruCounter - itemCounter) & 0x3fffffff; if (_lruTimeout < delta || delta < 0) { // update LRU only if not used recently updateLruImpl...
public class class_name { @Override public void initialize(Settings settings) { super.initialize(settings); if (this.isEnabled()) { this.filters = settings.getArray(Settings.KEYS.ANALYZER_RETIREJS_FILTERS); } } }
public class class_name { @Override public void initialize(Settings settings) { super.initialize(settings); if (this.isEnabled()) { this.filters = settings.getArray(Settings.KEYS.ANALYZER_RETIREJS_FILTERS); // depends on control dependency: [if], data = [none] } } }
public class class_name { public WaybackRequest parse(HttpServletRequest httpRequest, AccessPoint accessPoint) throws BetterRequestException { WaybackRequest wbRequest = null; @SuppressWarnings("unchecked") Map<String, String[]> queryMap = httpRequest.getParameterMap(); if (queryMap.size() > 0) { wbReq...
public class class_name { public WaybackRequest parse(HttpServletRequest httpRequest, AccessPoint accessPoint) throws BetterRequestException { WaybackRequest wbRequest = null; @SuppressWarnings("unchecked") Map<String, String[]> queryMap = httpRequest.getParameterMap(); if (queryMap.size() > 0) { wbReq...
public class class_name { public AbstractByteList times(int times) { AbstractByteList newList = new ByteArrayList(times*size()); for (int i=times; --i >= 0; ) { newList.addAllOfFromTo(this,0,size()-1); } return newList; } }
public class class_name { public AbstractByteList times(int times) { AbstractByteList newList = new ByteArrayList(times*size()); for (int i=times; --i >= 0; ) { newList.addAllOfFromTo(this,0,size()-1); // depends on control dependency: [for], data = [none] } return newList; } }
public class class_name { public java.util.List<InstanceStatus> getInstanceStatuses() { if (instanceStatuses == null) { instanceStatuses = new com.amazonaws.internal.SdkInternalList<InstanceStatus>(); } return instanceStatuses; } }
public class class_name { public java.util.List<InstanceStatus> getInstanceStatuses() { if (instanceStatuses == null) { instanceStatuses = new com.amazonaws.internal.SdkInternalList<InstanceStatus>(); // depends on control dependency: [if], data = [none] } return instanceStatuses; ...