code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public InetAddress getAddress() { try { if (name == null) return InetAddress.getByAddress(toArray(addr)); else return InetAddress.getByAddress(name.toString(), toArray(addr)); } catch (UnknownHostException e) { return null; } } }
public class class_name { public InetAddress getAddress() { try { if (name == null) return InetAddress.getByAddress(toArray(addr)); else return InetAddress.getByAddress(name.toString(), toArray(addr)); } catch (UnknownHostException e) { return null; } // depends on control dependency: [catch], da...
public class class_name { @SuppressWarnings("all") public SynthPainter getPainter() { SynthPainter painter = getStyle().getPainter(this); if (painter != null) { return painter; } return EMPTY_PAINTER; } }
public class class_name { @SuppressWarnings("all") public SynthPainter getPainter() { SynthPainter painter = getStyle().getPainter(this); if (painter != null) { return painter; // depends on control dependency: [if], data = [none] } return EMPTY_PAINTER; } }
public class class_name { public CacheEntry getEntry(String cacheName, Object id, boolean ignoreCounting ) { if (tc.isEntryEnabled()) Tr.entry(tc, "getEntry: {0}", id); DCache cache = ServerCache.getCache(cacheName); CacheEntry cacheEntry = null; if ( cache != null ) { ...
public class class_name { public CacheEntry getEntry(String cacheName, Object id, boolean ignoreCounting ) { if (tc.isEntryEnabled()) Tr.entry(tc, "getEntry: {0}", id); DCache cache = ServerCache.getCache(cacheName); CacheEntry cacheEntry = null; if ( cache != null ) { ...
public class class_name { public void marshall(GetExportJobsRequest getExportJobsRequest, ProtocolMarshaller protocolMarshaller) { if (getExportJobsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(GetExportJobsRequest getExportJobsRequest, ProtocolMarshaller protocolMarshaller) { if (getExportJobsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { private int[][] houghTransformation(boolean[][] mat) { final int xres = mat.length, yres = mat[0].length; final double tscale = STEPS * .66 / (xres + yres); final int[][] ret = new int[STEPS][STEPS]; for(int x = 0; x < mat.length; x++) { final boolean[] row = mat[x]; ...
public class class_name { private int[][] houghTransformation(boolean[][] mat) { final int xres = mat.length, yres = mat[0].length; final double tscale = STEPS * .66 / (xres + yres); final int[][] ret = new int[STEPS][STEPS]; for(int x = 0; x < mat.length; x++) { final boolean[] row = mat[x]; ...
public class class_name { @Override public void cacheResult( List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) { for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) { if (entityCache.getResult( CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_...
public class class_name { @Override public void cacheResult( List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) { for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) { if (entityCache.getResult( CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_...
public class class_name { void trimWhitespaceFromFunctionEnd() { assert (callStack.getCurrentElement().type == PushPopType.Function); int functionStartPoint = callStack.getCurrentElement().functionStartInOuputStream; // If the start point has become -1, it means that some non-whitespace // text has been push...
public class class_name { void trimWhitespaceFromFunctionEnd() { assert (callStack.getCurrentElement().type == PushPopType.Function); int functionStartPoint = callStack.getCurrentElement().functionStartInOuputStream; // If the start point has become -1, it means that some non-whitespace // text has been push...
public class class_name { public static void Swap(ComplexNumber[][] z) { for (int i = 0; i < z.length; i++) { for (int j = 0; j < z[0].length; j++) { z[i][j] = new ComplexNumber(z[i][j].imaginary, z[i][j].real); } } } }
public class class_name { public static void Swap(ComplexNumber[][] z) { for (int i = 0; i < z.length; i++) { for (int j = 0; j < z[0].length; j++) { z[i][j] = new ComplexNumber(z[i][j].imaginary, z[i][j].real); // depends on control dependency: [for], data = [j] } ...
public class class_name { public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { @Override public void run() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); ProjectExplorer wind...
public class class_name { public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { @Override public void run() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); // depends on control dependency: [...
public class class_name { @Override public void incrementItem(final String name, final String key, final int amount) { try { final IncrementCacheResponse response = objectMapper.readValue( requestFactory .buildPostRequest(new IncrementCacheItemUrl(hostName, projectId, name, key), new JsonHt...
public class class_name { @Override public void incrementItem(final String name, final String key, final int amount) { try { final IncrementCacheResponse response = objectMapper.readValue( requestFactory .buildPostRequest(new IncrementCacheItemUrl(hostName, projectId, name, key), new JsonHt...
public class class_name { void setQuota(String src, long nsQuota, long dsQuota) throws FileNotFoundException, QuotaExceededException { writeLock(); try { INodeDirectory dir = unprotectedSetQuota(src, nsQuota, dsQuota); if (dir != null) { fsImage.getEditLog().logSetQuota(src,...
public class class_name { void setQuota(String src, long nsQuota, long dsQuota) throws FileNotFoundException, QuotaExceededException { writeLock(); try { INodeDirectory dir = unprotectedSetQuota(src, nsQuota, dsQuota); if (dir != null) { fsImage.getEditLog().logSetQuota(src,...
public class class_name { private TrackMetadata requestMetadataInternal(final DataReference track, final CdjStatus.TrackType trackType, final boolean failIfPassive) { // First check if we are using cached data for this request. MetadataCache cache = get...
public class class_name { private TrackMetadata requestMetadataInternal(final DataReference track, final CdjStatus.TrackType trackType, final boolean failIfPassive) { // First check if we are using cached data for this request. MetadataCache cache = get...
public class class_name { private HttpAction generateRequest(int[] namespace, String orstart, String orend) { RequestBuilder requestBuilder = new ApiRequestBuilder() // .action("query") // .formatXml() // .param("list", "oldreviewedpages") // .param("orlimit...
public class class_name { private HttpAction generateRequest(int[] namespace, String orstart, String orend) { RequestBuilder requestBuilder = new ApiRequestBuilder() // .action("query") // .formatXml() // .param("list", "oldreviewedpages") // .param("orlimit...
public class class_name { public ClassScanner includeEntries(final String... includedEntries) { for (final String includedEntry : includedEntries) { rulesEntries.include(includedEntry); } return this; } }
public class class_name { public ClassScanner includeEntries(final String... includedEntries) { for (final String includedEntry : includedEntries) { rulesEntries.include(includedEntry); // depends on control dependency: [for], data = [includedEntry] } return this; } }
public class class_name { @SuppressWarnings({"JavaDoc"}) @NotNull private <N extends Node> Renderable widgetize(PageCompilingContext pc, N node, WidgetChain childsChildren) { if (node instanceof XmlDeclaration) { try { XmlDeclaration decl = (XmlDeclaration)node; retu...
public class class_name { @SuppressWarnings({"JavaDoc"}) @NotNull private <N extends Node> Renderable widgetize(PageCompilingContext pc, N node, WidgetChain childsChildren) { if (node instanceof XmlDeclaration) { try { XmlDeclaration decl = (XmlDeclaration)node; retu...
public class class_name { public static SortedMap<Short, List<MappeableContainer>> groupByKey( ImmutableRoaringBitmap... bitmaps) { Map<Short, List<MappeableContainer>> grouped = new HashMap<>(); for (ImmutableRoaringBitmap bitmap : bitmaps) { MappeableContainerPointer it = bitmap.highLowContai...
public class class_name { public static SortedMap<Short, List<MappeableContainer>> groupByKey( ImmutableRoaringBitmap... bitmaps) { Map<Short, List<MappeableContainer>> grouped = new HashMap<>(); for (ImmutableRoaringBitmap bitmap : bitmaps) { MappeableContainerPointer it = bitmap.highLowContai...
public class class_name { public void marshall(CancellationReason cancellationReason, ProtocolMarshaller protocolMarshaller) { if (cancellationReason == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(CancellationReason cancellationReason, ProtocolMarshaller protocolMarshaller) { if (cancellationReason == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { @SuppressWarnings("unchecked") private static LogAdapterFactory createAdapterFactory() { List<LogAdapterFactory> factories = Iterators.asList(ServiceLoader.load(LogAdapterFactory.class)); if (factories.isEmpty()) { /* * Always fall back to the JDK, e...
public class class_name { @SuppressWarnings("unchecked") private static LogAdapterFactory createAdapterFactory() { List<LogAdapterFactory> factories = Iterators.asList(ServiceLoader.load(LogAdapterFactory.class)); if (factories.isEmpty()) { /* * Always fall back to the JDK, e...
public class class_name { public ComputationGraph fitMultiDataSet(String path) { if (Nd4j.getExecutioner() instanceof GridExecutioner) ((GridExecutioner) Nd4j.getExecutioner()).flushQueue(); JavaRDD<String> paths; try { paths = SparkUtils.listPaths(sc, path); } ...
public class class_name { public ComputationGraph fitMultiDataSet(String path) { if (Nd4j.getExecutioner() instanceof GridExecutioner) ((GridExecutioner) Nd4j.getExecutioner()).flushQueue(); JavaRDD<String> paths; try { paths = SparkUtils.listPaths(sc, path); // depends...
public class class_name { public void marshall(UpdateCoreDefinitionRequest updateCoreDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (updateCoreDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(UpdateCoreDefinitionRequest updateCoreDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (updateCoreDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public List getFailureReason() { List fr = (List)jmo.getField(TrmFirstContactAccess.BODY_CLIENTATTACHREPLY_FAILUREREASON); if (fr != null) { return new ArrayList(fr); } else { return null; } } }
public class class_name { public List getFailureReason() { List fr = (List)jmo.getField(TrmFirstContactAccess.BODY_CLIENTATTACHREPLY_FAILUREREASON); if (fr != null) { return new ArrayList(fr); // depends on control dependency: [if], data = [(fr] } else { return null; // depends on control depe...
public class class_name { private String formatNodeLabel(PatriciaTrie.PatriciaNode<V> node, KeyMapper<String> keyMapper, boolean formatBitString) { StringBuilder builder = new StringBuilder(); builder.append("<<table border=\"0\" cellborder=\"0\">"); // Key builder.a...
public class class_name { private String formatNodeLabel(PatriciaTrie.PatriciaNode<V> node, KeyMapper<String> keyMapper, boolean formatBitString) { StringBuilder builder = new StringBuilder(); builder.append("<<table border=\"0\" cellborder=\"0\">"); // Key builder.a...
public class class_name { public void unregisterPropertyExclusion( Class target, String propertyName ) { if( target != null && propertyName != null ) { Set set = (Set) exclusionMap.get( target ); if( set == null ) { set = new HashSet(); exclusionMap.put( target, set ); ...
public class class_name { public void unregisterPropertyExclusion( Class target, String propertyName ) { if( target != null && propertyName != null ) { Set set = (Set) exclusionMap.get( target ); if( set == null ) { set = new HashSet(); // depends on control dependency: [if], data =...
public class class_name { private static String getContentPath(HttpServletRequest request) { String contentPath = (String)request.getAttribute(Value.CONTENTPATH_ATTRIBUTE); if (contentPath == null) { // fallback to suffix if CONTENTPATH_ATTRIBUTE is not set // (e.g. in inside a /libs/granite/ui/co...
public class class_name { private static String getContentPath(HttpServletRequest request) { String contentPath = (String)request.getAttribute(Value.CONTENTPATH_ATTRIBUTE); if (contentPath == null) { // fallback to suffix if CONTENTPATH_ATTRIBUTE is not set // (e.g. in inside a /libs/granite/ui/co...
public class class_name { public boolean isAvailable (String resource){ Container c = _webapp.getModuleContainer(); if(c != null){ Entry entry = c.getEntry(resource); if(entry != null){ return true; } return isAvailableInDocumentRoot(resource,WCCustomPropert...
public class class_name { public boolean isAvailable (String resource){ Container c = _webapp.getModuleContainer(); if(c != null){ Entry entry = c.getEntry(resource); if(entry != null){ return true; // depends on control dependency: [if], data = [none] } ret...
public class class_name { static SafeHtml memberItem(final String css, final Principal principal) { String principalTypeCss = principal.getType() == Principal.Type.USER ? "icon-user" : "icon-group"; StringBuilder title = new StringBuilder(); title.append(principal.getName()); if (princi...
public class class_name { static SafeHtml memberItem(final String css, final Principal principal) { String principalTypeCss = principal.getType() == Principal.Type.USER ? "icon-user" : "icon-group"; StringBuilder title = new StringBuilder(); title.append(principal.getName()); if (princi...
public class class_name { public static base_responses disable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 disableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ disablereso...
public class class_name { public static base_responses disable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 disableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ disablereso...
public class class_name { public void setEthnologue(String ethnologue) { if(ethnologue != null) { ethnologue = ethnologue.trim(); } this.ethnologue = ethnologue; } }
public class class_name { public void setEthnologue(String ethnologue) { if(ethnologue != null) { ethnologue = ethnologue.trim(); // depends on control dependency: [if], data = [none] } this.ethnologue = ethnologue; } }
public class class_name { protected void extractBeanValues(final Object source, final String[] nameMapping) throws SuperCsvReflectionException { Objects.requireNonNull(nameMapping, "the nameMapping array can't be null as it's used to map from fields to columns"); beanValues.clear(...
public class class_name { protected void extractBeanValues(final Object source, final String[] nameMapping) throws SuperCsvReflectionException { Objects.requireNonNull(nameMapping, "the nameMapping array can't be null as it's used to map from fields to columns"); beanValues.clear(...
public class class_name { public void marshall(PipelineActivity pipelineActivity, ProtocolMarshaller protocolMarshaller) { if (pipelineActivity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pipe...
public class class_name { public void marshall(PipelineActivity pipelineActivity, ProtocolMarshaller protocolMarshaller) { if (pipelineActivity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pipe...
public class class_name { public void writeRawVarint64(long value) throws IOException { while (true) { if ((value & ~0x7FL) == 0) { writeRawByte((int)value); return; } else { writeRawByte(((int)value & 0x7F) | 0x80); value >>>= 7; } } } }
public class class_name { public void writeRawVarint64(long value) throws IOException { while (true) { if ((value & ~0x7FL) == 0) { writeRawByte((int)value); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { @Override public final void makeEntries(final Map<String, Object> pAddParam, final IDoc pEntity) throws Exception { Calendar calCurrYear = Calendar.getInstance(new Locale("en", "US")); calCurrYear.setTime(getSrvAccSettings().lazyGetAccSettings(pAddParam) .getCurrentAccYear...
public class class_name { @Override public final void makeEntries(final Map<String, Object> pAddParam, final IDoc pEntity) throws Exception { Calendar calCurrYear = Calendar.getInstance(new Locale("en", "US")); calCurrYear.setTime(getSrvAccSettings().lazyGetAccSettings(pAddParam) .getCurrentAccYear...
public class class_name { public void clear() { @SuppressWarnings("unchecked") SparseArray<BaseNotificationItem> cloneArray = (SparseArray<BaseNotificationItem>) notificationArray.clone(); notificationArray.clear(); for (int i = 0; i < cloneArray.size(); i++) { fina...
public class class_name { public void clear() { @SuppressWarnings("unchecked") SparseArray<BaseNotificationItem> cloneArray = (SparseArray<BaseNotificationItem>) notificationArray.clone(); notificationArray.clear(); for (int i = 0; i < cloneArray.size(); i++) { fina...
public class class_name { public List<Statement> getAllStatements() { List<Statement> ret = new ArrayList<Statement>(); // Statements within this group if (statements != null) { ret.addAll(statements); } // Statements within nested statement groups if (stat...
public class class_name { public List<Statement> getAllStatements() { List<Statement> ret = new ArrayList<Statement>(); // Statements within this group if (statements != null) { ret.addAll(statements); // depends on control dependency: [if], data = [(statements] } ...
public class class_name { @Override public Set<Integer> find(long[] invariants, IAtomContainer container, int[][] graph) { int n = invariants.length; // find cyclic vertices using DFS RingSearch ringSearch = new RingSearch(container, graph); // ordered map of the set of vertices ...
public class class_name { @Override public Set<Integer> find(long[] invariants, IAtomContainer container, int[][] graph) { int n = invariants.length; // find cyclic vertices using DFS RingSearch ringSearch = new RingSearch(container, graph); // ordered map of the set of vertices ...
public class class_name { private List<Row> getRows(String sql) throws SQLException { allocateConnection(); try { List<Row> result = new LinkedList<Row>(); m_ps = m_connection.prepareStatement(sql); m_rs = m_ps.executeQuery(); populateMetaData(); whil...
public class class_name { private List<Row> getRows(String sql) throws SQLException { allocateConnection(); try { List<Row> result = new LinkedList<Row>(); m_ps = m_connection.prepareStatement(sql); m_rs = m_ps.executeQuery(); populateMetaData(); whil...
public class class_name { public static <E> List<E> deleteOutofRange(Counter<E> c, int top, int bottom) { List<E> purgedItems = new ArrayList<E>(); int numToPurge = top + bottom; if (numToPurge <= 0) { return purgedItems; } List<E> l = Counters.toSortedList(c); for (int i = 0; ...
public class class_name { public static <E> List<E> deleteOutofRange(Counter<E> c, int top, int bottom) { List<E> purgedItems = new ArrayList<E>(); int numToPurge = top + bottom; if (numToPurge <= 0) { return purgedItems; // depends on control dependency: [if], data = [none] } List<...
public class class_name { public void setEbsBlockDevices(java.util.Collection<EbsBlockDevice> ebsBlockDevices) { if (ebsBlockDevices == null) { this.ebsBlockDevices = null; return; } this.ebsBlockDevices = new com.amazonaws.internal.SdkInternalList<EbsBlockDevice>(ebsBl...
public class class_name { public void setEbsBlockDevices(java.util.Collection<EbsBlockDevice> ebsBlockDevices) { if (ebsBlockDevices == null) { this.ebsBlockDevices = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none...
public class class_name { @Override public int read() throws IOException { if (pos >= limit) return -1; try { int c = buf[pos] & 0xff; if (c < 0x80) { pos++; } else if (c < 0xE0) { c = (char) ((c & 0x1F) << 6 | buf[pos + 1] & 0x3F); pos += 2; } else { c = (char) ((c & 0x0F) << 12 |...
public class class_name { @Override public int read() throws IOException { if (pos >= limit) return -1; try { int c = buf[pos] & 0xff; if (c < 0x80) { pos++; // depends on control dependency: [if], data = [none] } else if (c < 0xE0) { c = (char) ((c & 0x1F) << 6 | buf[pos + 1] & 0x3F); // dep...
public class class_name { @Override public void set(String key, Object entry, long expireAfterWrite, long expireAfterAccess) { long ttl = TTL_NO_CHANGE; if (!(entry instanceof CacheEntry)) { CacheEntry ce = new CacheEntry(key, entry, expireAfterWrite, expireAfterAccess); ent...
public class class_name { @Override public void set(String key, Object entry, long expireAfterWrite, long expireAfterAccess) { long ttl = TTL_NO_CHANGE; if (!(entry instanceof CacheEntry)) { CacheEntry ce = new CacheEntry(key, entry, expireAfterWrite, expireAfterAccess); ent...
public class class_name { private void deliverMountUpdate(SlotReference slot, boolean mounted) { if (mounted) { logger.info("Reporting media mounted in " + slot); } else { logger.info("Reporting media removed from " + slot); } for (final MountListener listener :...
public class class_name { private void deliverMountUpdate(SlotReference slot, boolean mounted) { if (mounted) { logger.info("Reporting media mounted in " + slot); // depends on control dependency: [if], data = [none] } else { logger.info("Reporting media removed from " + slot);...
public class class_name { protected <T> void setEventNotifier(Class<T> eventSet, T notifier) { _notifiers.put(eventSet,notifier); // // Register this notifier for all EventSet interfaces up the interface inheritance // hiearachy as well // List<Class> superEventSets...
public class class_name { protected <T> void setEventNotifier(Class<T> eventSet, T notifier) { _notifiers.put(eventSet,notifier); // // Register this notifier for all EventSet interfaces up the interface inheritance // hiearachy as well // List<Class> superEventSets...
public class class_name { private static Locale getLocaleForRequest(HttpServletRequest req) { CmsAcceptLanguageHeaderParser parser = new CmsAcceptLanguageHeaderParser( req, OpenCms.getWorkplaceManager().getDefaultLocale()); List<Locale> acceptedLocales = parser.getAcceptedLocal...
public class class_name { private static Locale getLocaleForRequest(HttpServletRequest req) { CmsAcceptLanguageHeaderParser parser = new CmsAcceptLanguageHeaderParser( req, OpenCms.getWorkplaceManager().getDefaultLocale()); List<Locale> acceptedLocales = parser.getAcceptedLocal...
public class class_name { public boolean redeliverLocked( TransactionItem[] items , MessageLockSet locks ) throws JMSException { checkNotClosed(); checkTransactionLock(); int volatileRollbacked = 0; int persistentRollbacked = 0; synchronized (storeLock) { for ...
public class class_name { public boolean redeliverLocked( TransactionItem[] items , MessageLockSet locks ) throws JMSException { checkNotClosed(); checkTransactionLock(); int volatileRollbacked = 0; int persistentRollbacked = 0; synchronized (storeLock) { for ...
public class class_name { private int buildLookUpTable() { int i = 0; int incDen = Math.round(8F * radiusMinPixel); // increment denominator lut = new int[2][incDen][depth]; for( int radius = radiusMinPixel; radius <= radiusMaxPixel; radius = radius + radiusIncPixel ) { i = ...
public class class_name { private int buildLookUpTable() { int i = 0; int incDen = Math.round(8F * radiusMinPixel); // increment denominator lut = new int[2][incDen][depth]; for( int radius = radiusMinPixel; radius <= radiusMaxPixel; radius = radius + radiusIncPixel ) { i = ...
public class class_name { @Override public void writeVectorInt(Vector<Integer> vector) { log.debug("writeVectorInt: {}", vector); writeAMF3(); buf.put(AMF3.TYPE_VECTOR_INT); if (hasReference(vector)) { putInteger(getReferenceId(vector) << 1); return; ...
public class class_name { @Override public void writeVectorInt(Vector<Integer> vector) { log.debug("writeVectorInt: {}", vector); writeAMF3(); buf.put(AMF3.TYPE_VECTOR_INT); if (hasReference(vector)) { putInteger(getReferenceId(vector) << 1); // depends on control...
public class class_name { public void marshall(KeysAndAttributes keysAndAttributes, ProtocolMarshaller protocolMarshaller) { if (keysAndAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(k...
public class class_name { public void marshall(KeysAndAttributes keysAndAttributes, ProtocolMarshaller protocolMarshaller) { if (keysAndAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(k...
public class class_name { public void set(int row, int col, double val) { checkIndices(row, col, true); Entry e = new Entry(row, col); // Spin waiting for the entry to be unlocked while (lockedEntries.putIfAbsent(e, new Object()) != null) ; boolean present = matrixEn...
public class class_name { public void set(int row, int col, double val) { checkIndices(row, col, true); Entry e = new Entry(row, col); // Spin waiting for the entry to be unlocked while (lockedEntries.putIfAbsent(e, new Object()) != null) ; boolean present = matrixEn...
public class class_name { public boolean drain(List<SourceRecord> records, int timeout) throws InterruptedException { Preconditions.checkNotNull(records, "records cannot be null"); Preconditions.checkArgument(timeout >= 0, "timeout should be greater than or equal to 0."); if (log.isDebugEnabled()) { ...
public class class_name { public boolean drain(List<SourceRecord> records, int timeout) throws InterruptedException { Preconditions.checkNotNull(records, "records cannot be null"); Preconditions.checkArgument(timeout >= 0, "timeout should be greater than or equal to 0."); if (log.isDebugEnabled()) { ...
public class class_name { private static boolean queryAdjacencyAndOrder(IBond bond1, IBond bond2, IBond queryBond1, IBond queryBond2) { IAtom centralAtom = null; IAtom centralQueryAtom = null; if (bond1.contains(bond2.getBegin())) { centralAtom = bond2.getBegin(); } else i...
public class class_name { private static boolean queryAdjacencyAndOrder(IBond bond1, IBond bond2, IBond queryBond1, IBond queryBond2) { IAtom centralAtom = null; IAtom centralQueryAtom = null; if (bond1.contains(bond2.getBegin())) { centralAtom = bond2.getBegin(); // depends on co...
public class class_name { public static int earliestIndexOfAny(String s, Iterable<String> probes, int from) { int earliestIdx = -1; for (final String probe : probes) { final int probeIdx = s.indexOf(probe, from); // if we found something for this probe if (probeIdx >= 0 // and eith...
public class class_name { public static int earliestIndexOfAny(String s, Iterable<String> probes, int from) { int earliestIdx = -1; for (final String probe : probes) { final int probeIdx = s.indexOf(probe, from); // if we found something for this probe if (probeIdx >= 0 // and eith...
public class class_name { private SortedSet<Date> filterExceptions(SortedSet<Date> dates) { SortedSet<Date> result = new TreeSet<Date>(); for (Date d : dates) { if (!m_exceptions.contains(d)) { result.add(d); } } return result; } }
public class class_name { private SortedSet<Date> filterExceptions(SortedSet<Date> dates) { SortedSet<Date> result = new TreeSet<Date>(); for (Date d : dates) { if (!m_exceptions.contains(d)) { result.add(d); // depends on control dependency: [if], data = [none] ...
public class class_name { public void rewriteParseables() { if (m_parseables.isEmpty()) { return; } I_CmsReport report = getReport(); CmsObject cms = getCms(); cms.getRequestContext().setAttribute(CmsLogEntry.ATTR_LOG_ENTRY, Boolean.FALSE); report.println(M...
public class class_name { public void rewriteParseables() { if (m_parseables.isEmpty()) { return; // depends on control dependency: [if], data = [none] } I_CmsReport report = getReport(); CmsObject cms = getCms(); cms.getRequestContext().setAttribute(CmsLogEntry.AT...
public class class_name { public final void setToken(AnalyzedTokenReadings[] tokens, int index, int next) { int idx = index; if (index >= tokens.length) { // TODO: hacky workaround, find a proper solution. See EnglishPatternRuleTest.testBug() idx = tokens.length - 1; } setToken(tokens[idx])...
public class class_name { public final void setToken(AnalyzedTokenReadings[] tokens, int index, int next) { int idx = index; if (index >= tokens.length) { // TODO: hacky workaround, find a proper solution. See EnglishPatternRuleTest.testBug() idx = tokens.length - 1; // depends on control dependenc...
public class class_name { public HttpClientBuilder ssl(String host) { if (sslHostConfig != null) { sslHostConfigs.put(secureHost, sslHostConfig); } secureHost = host; sslHostConfig = new SslHostConfig(); return this; } }
public class class_name { public HttpClientBuilder ssl(String host) { if (sslHostConfig != null) { sslHostConfigs.put(secureHost, sslHostConfig); // depends on control dependency: [if], data = [none] } secureHost = host; sslHostConfig = new SslHostConfig(); return this; } }
public class class_name { static int compareLexical(BitStore a, BitStore b) { int aSize = a.size(); int bSize = b.size(); int diff = a.size() - b.size(); ListIterator<Integer> as = a.ones().positions(aSize); ListIterator<Integer> bs = b.ones().positions(bSize); while (true) { boolean ap = as.hasPrevious...
public class class_name { static int compareLexical(BitStore a, BitStore b) { int aSize = a.size(); int bSize = b.size(); int diff = a.size() - b.size(); ListIterator<Integer> as = a.ones().positions(aSize); ListIterator<Integer> bs = b.ones().positions(bSize); while (true) { boolean ap = as.hasPrevious...
public class class_name { public void registerCharsetMapping(String contentType, String charSet) { if (knownCharsets.contains(contentType)) { log.warn("{} is already registered; re-registering"); } knownCharsets.put(contentType, charSet); } }
public class class_name { public void registerCharsetMapping(String contentType, String charSet) { if (knownCharsets.contains(contentType)) { log.warn("{} is already registered; re-registering"); // depends on control dependency: [if], data = [none] } knownCharsets.put(contentType, charSet); } }
public class class_name { public Index getPrimaryKey() throws SQLException { synchronized(getPrimaryKeyLock) { if(!getPrimaryKeyCached) { String pkName = null; List<Column> columns = new AutoGrowArrayList<>(); try (ResultSet results = schema.getCatalog().getMetaData().getMetaData().getPrimaryKeys(sche...
public class class_name { public Index getPrimaryKey() throws SQLException { synchronized(getPrimaryKeyLock) { if(!getPrimaryKeyCached) { String pkName = null; List<Column> columns = new AutoGrowArrayList<>(); try (ResultSet results = schema.getCatalog().getMetaData().getMetaData().getPrimaryKeys(sche...
public class class_name { private void exposeExpression(Node expressionRoot, Node subExpression) { Node nonconditionalExpr = findNonconditionalParent(subExpression, expressionRoot); // Before extraction, record whether there are side-effect boolean hasFollowingSideEffects = NodeUtil.mayHaveSideEffects(nonc...
public class class_name { private void exposeExpression(Node expressionRoot, Node subExpression) { Node nonconditionalExpr = findNonconditionalParent(subExpression, expressionRoot); // Before extraction, record whether there are side-effect boolean hasFollowingSideEffects = NodeUtil.mayHaveSideEffects(nonc...
public class class_name { public void removeDependentVariables(Variable ... depVars) { ArrayList<Variable> newDepVars = new ArrayList<Variable>(); for (Variable v : this.dependentVariables) { boolean toRemove = false; for (Variable v1 : depVars) { if (v.equals(v1)) { toRemove = true; bre...
public class class_name { public void removeDependentVariables(Variable ... depVars) { ArrayList<Variable> newDepVars = new ArrayList<Variable>(); for (Variable v : this.dependentVariables) { boolean toRemove = false; for (Variable v1 : depVars) { if (v.equals(v1)) { toRemove = true; // depen...
public class class_name { @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public static Searcher create(@NonNull final Searchable index, @NonNull String variant) { Searcher instance = instances.get(variant); if (instance == null || instance.getSearchable() != index) { ...
public class class_name { @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public static Searcher create(@NonNull final Searchable index, @NonNull String variant) { Searcher instance = instances.get(variant); if (instance == null || instance.getSearchable() != index) { ...
public class class_name { public CmsWorkplaceMessages getMessages(Locale locale) { CmsWorkplaceMessages result = m_messages.get(locale); if (result != null) { // messages have already been read return result; } // messages have not been read so far sync...
public class class_name { public CmsWorkplaceMessages getMessages(Locale locale) { CmsWorkplaceMessages result = m_messages.get(locale); if (result != null) { // messages have already been read return result; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static void init() { try { init("vdmj.properties", Properties.class); } catch (Exception e) { System.err.println(e.getMessage()); } InputStream fis = ConfigBase.class.getResourceAsStream("/" + "overture.properties"); if (fis != null) { try { java....
public class class_name { public static void init() { try { init("vdmj.properties", Properties.class); // depends on control dependency: [try], data = [none] } catch (Exception e) { System.err.println(e.getMessage()); } // depends on control dependency: [catch], data = [none] InputStream fis = Conf...
public class class_name { boolean matches(String value) { if (pattern == null) { return true; } return pattern.matcher(value).matches(); } }
public class class_name { boolean matches(String value) { if (pattern == null) { return true; // depends on control dependency: [if], data = [none] } return pattern.matcher(value).matches(); } }
public class class_name { private Message unfragment(Message msg, FragHeader hdr) { Address sender=msg.getSrc(); FragmentationTable frag_table=fragment_list.get(sender); if(frag_table == null) { frag_table=new FragmentationTable(sender); try { ...
public class class_name { private Message unfragment(Message msg, FragHeader hdr) { Address sender=msg.getSrc(); FragmentationTable frag_table=fragment_list.get(sender); if(frag_table == null) { frag_table=new FragmentationTable(sender); // depends on control dependency: ...
public class class_name { public static RoaringBitmap addOffset(final RoaringBitmap x, int offset) { int container_offset = offset >>> 16; int in_container_offset = offset % (1<<16); if(in_container_offset == 0) { RoaringBitmap answer = x.clone(); for(int pos = 0; pos < answer.highLowContainer....
public class class_name { public static RoaringBitmap addOffset(final RoaringBitmap x, int offset) { int container_offset = offset >>> 16; int in_container_offset = offset % (1<<16); if(in_container_offset == 0) { RoaringBitmap answer = x.clone(); for(int pos = 0; pos < answer.highLowContainer....
public class class_name { public static Properties argsToProperties(String[] args, Map<String,Integer> flagsToNumArgs) { Properties result = new Properties(); List<String> remainingArgs = new ArrayList<String>(); for (int i = 0; i < args.length; i++) { String key = args[i]; if (key.length(...
public class class_name { public static Properties argsToProperties(String[] args, Map<String,Integer> flagsToNumArgs) { Properties result = new Properties(); List<String> remainingArgs = new ArrayList<String>(); for (int i = 0; i < args.length; i++) { String key = args[i]; if (key.length(...
public class class_name { public static Object getValue(Object exp, Map ctx, Object root, String path, int lineNumber) { try { OgnlContext context = new OgnlContext(null, null, new DefaultMemberAccess(true)); return Ognl.getValue(exp, context, root); } catch (OgnlException e...
public class class_name { public static Object getValue(Object exp, Map ctx, Object root, String path, int lineNumber) { try { OgnlContext context = new OgnlContext(null, null, new DefaultMemberAccess(true)); return Ognl.getValue(exp, context, root); // depends on control dependency...
public class class_name { public static void ensureContentType(CDAEntry entry, CDAClient client) { CDAContentType contentType = entry.contentType(); if (contentType != null) { return; } String contentTypeId = extractNested(entry.attrs(), "contentType", "sys", "id"); try { contentType =...
public class class_name { public static void ensureContentType(CDAEntry entry, CDAClient client) { CDAContentType contentType = entry.contentType(); if (contentType != null) { return; // depends on control dependency: [if], data = [none] } String contentTypeId = extractNested(entry.attrs(), "con...
public class class_name { @SuppressWarnings("rawtypes") private Map.Entry getMapEntry(Node node) { Object value = null; String keyName = node.getLocalName(); XmlMapEntry xmlMapEntry = this.mapSpecification.get(keyName); switch (node.getNodeType()) { case Node.ATTRIBUTE_N...
public class class_name { @SuppressWarnings("rawtypes") private Map.Entry getMapEntry(Node node) { Object value = null; String keyName = node.getLocalName(); XmlMapEntry xmlMapEntry = this.mapSpecification.get(keyName); switch (node.getNodeType()) { case Node.ATTRIBUTE_N...
public class class_name { public void setMinMeasuredValueVisible(final boolean VISIBLE) { if (null == minMeasuredValueVisible) { _minMeasuredValueVisible = VISIBLE; fireUpdateEvent(VISIBILITY_EVENT); } else { minMeasuredValueVisible.set(VISIBLE); } } }
public class class_name { public void setMinMeasuredValueVisible(final boolean VISIBLE) { if (null == minMeasuredValueVisible) { _minMeasuredValueVisible = VISIBLE; // depends on control dependency: [if], data = [none] fireUpdateEvent(VISIBILITY_EVENT); // depends on control dependency:...
public class class_name { private Node getFinallyAtTarget(Node node) { if (node == null) { return null; } if (node.getType() == Token.FINALLY) { return node; } if (node.getType() == Token.TARGET) { Node fBlock = node.getNext(); if ...
public class class_name { private Node getFinallyAtTarget(Node node) { if (node == null) { return null; // depends on control dependency: [if], data = [none] } if (node.getType() == Token.FINALLY) { return node; // depends on control dependency: [if], data = [none] ...
public class class_name { public String getFirstSentence(String paragraph) { if (paragraph == null || paragraph.length() == 0) { return ""; } BreakIterator sentenceBreaks = BreakIterator.getSentenceInstance(); sentenceBreaks.setText(paragraph); int start = sentence...
public class class_name { public String getFirstSentence(String paragraph) { if (paragraph == null || paragraph.length() == 0) { return ""; // depends on control dependency: [if], data = [none] } BreakIterator sentenceBreaks = BreakIterator.getSentenceInstance(); sentenceB...
public class class_name { protected QualifiedName determineSequenceName(Properties params, JdbcEnvironment jdbcEnv) { final String sequencePerEntitySuffix = ConfigurationHelper.getString( SequenceStyleGenerator.CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, params, SequenceStyleGenerator.DEF_SEQUENCE_SUFFIX ); // JPA_ENTITY_N...
public class class_name { protected QualifiedName determineSequenceName(Properties params, JdbcEnvironment jdbcEnv) { final String sequencePerEntitySuffix = ConfigurationHelper.getString( SequenceStyleGenerator.CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, params, SequenceStyleGenerator.DEF_SEQUENCE_SUFFIX ); // JPA_ENTITY_N...
public class class_name { private void addFieldRules( AnnotationInstance rulesContainerAnnotation, RuleInfo ruleInfo, boolean applyToAllLocales ) { // // First parse the locale from the wrapper annotation. This will apply to all rules inside. // Loca...
public class class_name { private void addFieldRules( AnnotationInstance rulesContainerAnnotation, RuleInfo ruleInfo, boolean applyToAllLocales ) { // // First parse the locale from the wrapper annotation. This will apply to all rules inside. // Loca...
public class class_name { public static boolean waitForBundleStartup(BundleContext context, Bundle bundle, int secsToWait) { if ((bundle.getState() & Bundle.ACTIVE) == 0) { // Wait for it to start up! if (((bundle.getState() & Bundle.RESOLVED) != 0) || ((bundle.getState() & Bundle.INSTA...
public class class_name { public static boolean waitForBundleStartup(BundleContext context, Bundle bundle, int secsToWait) { if ((bundle.getState() & Bundle.ACTIVE) == 0) { // Wait for it to start up! if (((bundle.getState() & Bundle.RESOLVED) != 0) || ((bundle.getState() & Bundle.INSTA...
public class class_name { private boolean isPrivateIp(String address) { InetAddress ip; try { ip = InetAddress.getByName(address); } catch (UnknownHostException e) { return false; } return ip.isLoopbackAddress() || ip.isLinkLocalAddress() || ip.isSiteLocalAddress(); } }
public class class_name { private boolean isPrivateIp(String address) { InetAddress ip; try { ip = InetAddress.getByName(address); // depends on control dependency: [try], data = [none] } catch (UnknownHostException e) { return false; } // depends on control dependency: [catch], data = [non...
public class class_name { boolean documentReference(String reference) { if (!lazyInitDocumentation()) { return true; } if (documentation.sees == null) { documentation.sees = new ArrayList<>(); } documentation.sees.add(reference); return true; } }
public class class_name { boolean documentReference(String reference) { if (!lazyInitDocumentation()) { return true; // depends on control dependency: [if], data = [none] } if (documentation.sees == null) { documentation.sees = new ArrayList<>(); // depends on control dependency: [if], data = ...
public class class_name { @Override public void progressiveStop(CircularProgressDrawable.OnEndListener listener) { if (!mParent.isRunning() || mEndAnimator.isRunning()) { return; } mOnEndListener = listener; mEndAnimator.addListener(new SimpleAnimatorListener() { @Override public v...
public class class_name { @Override public void progressiveStop(CircularProgressDrawable.OnEndListener listener) { if (!mParent.isRunning() || mEndAnimator.isRunning()) { return; // depends on control dependency: [if], data = [none] } mOnEndListener = listener; mEndAnimator.addListener(new Simp...
public class class_name { public CustomerArtifactPaths withIosPaths(String... iosPaths) { if (this.iosPaths == null) { setIosPaths(new java.util.ArrayList<String>(iosPaths.length)); } for (String ele : iosPaths) { this.iosPaths.add(ele); } return this; ...
public class class_name { public CustomerArtifactPaths withIosPaths(String... iosPaths) { if (this.iosPaths == null) { setIosPaths(new java.util.ArrayList<String>(iosPaths.length)); // depends on control dependency: [if], data = [none] } for (String ele : iosPaths) { thi...
public class class_name { @UiHandler("m_submitButton") public void onClickSubmit(ClickEvent event) { String separator = ","; String selectedValue = m_separator.getText().trim(); if (!CmsStringUtil.isEmptyOrWhitespaceOnly(selectedValue)) { separator = selectedValue; ...
public class class_name { @UiHandler("m_submitButton") public void onClickSubmit(ClickEvent event) { String separator = ","; String selectedValue = m_separator.getText().trim(); if (!CmsStringUtil.isEmptyOrWhitespaceOnly(selectedValue)) { separator = selectedValue; // de...
public class class_name { @Override public EClass getDatabaseInformationCategory() { if (databaseInformationCategoryEClass == null) { databaseInformationCategoryEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(27); } return databaseInformationCategoryE...
public class class_name { @Override public EClass getDatabaseInformationCategory() { if (databaseInformationCategoryEClass == null) { databaseInformationCategoryEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(27); // depends on control dependency: [if], da...
public class class_name { private void handleRemoteUser(final Object remoteUser) { if (request != null) { Principal userPrincipal = null; if (remoteUser != null) { // be defensive if (!(remoteUser instanceof String)) { final String message = "Attribute " + HttpContext.REMOTE_USER ...
public class class_name { private void handleRemoteUser(final Object remoteUser) { if (request != null) { Principal userPrincipal = null; if (remoteUser != null) { // be defensive if (!(remoteUser instanceof String)) { final String message = "Attribute " + HttpContext.REMOTE_USER ...
public class class_name { public java.util.List<DBSubnetGroup> getDBSubnetGroups() { if (dBSubnetGroups == null) { dBSubnetGroups = new com.amazonaws.internal.SdkInternalList<DBSubnetGroup>(); } return dBSubnetGroups; } }
public class class_name { public java.util.List<DBSubnetGroup> getDBSubnetGroups() { if (dBSubnetGroups == null) { dBSubnetGroups = new com.amazonaws.internal.SdkInternalList<DBSubnetGroup>(); // depends on control dependency: [if], data = [none] } return dBSubnetGroups; } }
public class class_name { public MaterialSection setNotifications(int notifications) { String textNotification; textNotification = String.valueOf(notifications); if(notifications < 1) { textNotification = ""; } if(notifications > 99) { textNotification ...
public class class_name { public MaterialSection setNotifications(int notifications) { String textNotification; textNotification = String.valueOf(notifications); if(notifications < 1) { textNotification = ""; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static Duration getLeadTimeDurationFromConfig(State state) { String leadTimeProp = state.getProp(DATE_PARTITIONED_SOURCE_PARTITION_LEAD_TIME); if (leadTimeProp == null || leadTimeProp.length() == 0) { return DEFAULT_PARTITIONED_SOURCE_PARTITION_LEAD_TIME; } int l...
public class class_name { public static Duration getLeadTimeDurationFromConfig(State state) { String leadTimeProp = state.getProp(DATE_PARTITIONED_SOURCE_PARTITION_LEAD_TIME); if (leadTimeProp == null || leadTimeProp.length() == 0) { return DEFAULT_PARTITIONED_SOURCE_PARTITION_LEAD_TIME; // depends on co...
public class class_name { protected long getUniqueLong(FieldDescriptor field) throws SequenceManagerException { boolean needsCommit = false; long result = 0; /* arminw: use the associated broker instance, check if broker was in tx or we need to commit used con...
public class class_name { protected long getUniqueLong(FieldDescriptor field) throws SequenceManagerException { boolean needsCommit = false; long result = 0; /* arminw: use the associated broker instance, check if broker was in tx or we need to commit used con...
public class class_name { public final EObject ruleXFunctionTypeRef() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; Token otherlv_4=null; Token otherlv_5=null; EObject lv_paramTypes_1_0 = null; EObject lv_para...
public class class_name { public final EObject ruleXFunctionTypeRef() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; Token otherlv_4=null; Token otherlv_5=null; EObject lv_paramTypes_1_0 = null; EObject lv_para...
public class class_name { public Message handleInputStream(byte commandByte, InputStream inputStream) { // Firmata command bytes are limited to a 0xF0 mask, or bytes 0xF0-0xFF // The extra data in the byte is for routing the command to various 'midi channels' // or in our case Firmata devic...
public class class_name { public Message handleInputStream(byte commandByte, InputStream inputStream) { // Firmata command bytes are limited to a 0xF0 mask, or bytes 0xF0-0xFF // The extra data in the byte is for routing the command to various 'midi channels' // or in our case Firmata devic...
public class class_name { @Override public void removeByLtD_S(Date displayDate, int status) { for (CPDefinition cpDefinition : findByLtD_S(displayDate, status, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpDefinition); } } }
public class class_name { @Override public void removeByLtD_S(Date displayDate, int status) { for (CPDefinition cpDefinition : findByLtD_S(displayDate, status, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpDefinition); // depends on control dependency: [for], data = [cpDefinition] } } }
public class class_name { @Override public DataResponse<List<Feature>> getFeatureEpicEstimates(ObjectId componentId, String teamId, String projectId, Optional<String> agileType, Optional<String> estimateMetricType) { Component component = componentRepository.findOne(componentId); if ((component == null) || Co...
public class class_name { @Override public DataResponse<List<Feature>> getFeatureEpicEstimates(ObjectId componentId, String teamId, String projectId, Optional<String> agileType, Optional<String> estimateMetricType) { Component component = componentRepository.findOne(componentId); if ((component == null) || Co...
public class class_name { public void free() { if (handle != 0L) { Log.d(LogDomain.REPLICATOR, "handle: " + handle); Log.d( LogDomain.REPLICATOR, "replicatorContext: " + replicatorContext + " $" + replicatorContext.getClass()); Log.d( ...
public class class_name { public void free() { if (handle != 0L) { Log.d(LogDomain.REPLICATOR, "handle: " + handle); // depends on control dependency: [if], data = [none] Log.d( LogDomain.REPLICATOR, "replicatorContext: " + replicatorContext + " $" + repl...
public class class_name { public String getAbsolutePath() { if (isAbsolute()) { return path; } String userDir = System.getProperty("user.dir"); return path.isEmpty() ? userDir : join(userDir, path); } }
public class class_name { public String getAbsolutePath() { if (isAbsolute()) { return path; // depends on control dependency: [if], data = [none] } String userDir = System.getProperty("user.dir"); return path.isEmpty() ? userDir : join(userDir, path); } }
public class class_name { public static String autoDetect(String absolutePath) { String extension = null; int index = absolutePath.lastIndexOf(".") + 1; if (index >= 0 && index <= absolutePath.length()) { extension = absolutePath.substring(index); } if (extension ...
public class class_name { public static String autoDetect(String absolutePath) { String extension = null; int index = absolutePath.lastIndexOf(".") + 1; if (index >= 0 && index <= absolutePath.length()) { extension = absolutePath.substring(index); // depends on control dependency:...
public class class_name { public static base_responses disable(nitro_service client, service resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { service disableresources[] = new service[resources.length]; for (int i=0;i<resources.length;i++){ dis...
public class class_name { public static base_responses disable(nitro_service client, service resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { service disableresources[] = new service[resources.length]; for (int i=0;i<resources.length;i++){ dis...
public class class_name { public static Duration toDuration(String time) { if (isBlank(time)) { return Duration.ZERO; } return Duration.of(dehumanize(time), ChronoUnit.MILLIS); } }
public class class_name { public static Duration toDuration(String time) { if (isBlank(time)) { return Duration.ZERO; // depends on control dependency: [if], data = [none] } return Duration.of(dehumanize(time), ChronoUnit.MILLIS); } }
public class class_name { public static String getIPAddr() { try { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface interfaceN = (NetworkInterface) interfaces.nextElement(); Enumeration<InetAddress> ienum = inter...
public class class_name { public static String getIPAddr() { try { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface interfaceN = (NetworkInterface) interfaces.nextElement(); Enumeration<InetAddress> ienum = inter...
public class class_name { public void setDirectoryConfigs(java.util.Collection<DirectoryConfig> directoryConfigs) { if (directoryConfigs == null) { this.directoryConfigs = null; return; } this.directoryConfigs = new java.util.ArrayList<DirectoryConfig>(directoryConfigs)...
public class class_name { public void setDirectoryConfigs(java.util.Collection<DirectoryConfig> directoryConfigs) { if (directoryConfigs == null) { this.directoryConfigs = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = ...
public class class_name { @Override public int distributedProcess(ResponseBuilder rb) throws IOException { // System.out.println(System.nanoTime() + " - " // + Thread.currentThread().getId() + " - " // + rb.req.getParams().getBool(ShardParams.IS_SHARD, false) // + " DISTIRBUTEDPROCESS " + rb.stage + " " +...
public class class_name { @Override public int distributedProcess(ResponseBuilder rb) throws IOException { // System.out.println(System.nanoTime() + " - " // + Thread.currentThread().getId() + " - " // + rb.req.getParams().getBool(ShardParams.IS_SHARD, false) // + " DISTIRBUTEDPROCESS " + rb.stage + " " +...
public class class_name { private static DateTime uniqueTimestamp() { long currentMillis; synchronized (FixedUidGenerator.class) { currentMillis = System.currentTimeMillis(); // guarantee uniqueness by ensuring timestamp is always greater // than the previous.. ...
public class class_name { private static DateTime uniqueTimestamp() { long currentMillis; synchronized (FixedUidGenerator.class) { currentMillis = System.currentTimeMillis(); // guarantee uniqueness by ensuring timestamp is always greater // than the previous.. ...