code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static String joinURL(Map<URLParts, String> urlParts) { try { URI uri = new URI(urlParts.get(URLParts.PROTOCOL), urlParts.get(URLParts.AUTHORITY), urlParts.get(URLParts.PATH), urlParts.get(URLParts.QUERY), urlParts.get(URLParts.REF)); return uri.toString...
public class class_name { public static String joinURL(Map<URLParts, String> urlParts) { try { URI uri = new URI(urlParts.get(URLParts.PROTOCOL), urlParts.get(URLParts.AUTHORITY), urlParts.get(URLParts.PATH), urlParts.get(URLParts.QUERY), urlParts.get(URLParts.REF)); return uri.toString...
public class class_name { private boolean isVolumeIdExists(final List<String> volumeIds, final String volumeId) { if (volumeIds != null && volumeIds.size() > 0) { for (String volId : volumeIds) { if (volId.equals(volumeId)) { return true; } ...
public class class_name { private boolean isVolumeIdExists(final List<String> volumeIds, final String volumeId) { if (volumeIds != null && volumeIds.size() > 0) { for (String volId : volumeIds) { if (volId.equals(volumeId)) { return true; // depends on control de...
public class class_name { synchronized void collectPages(Collection<Long> offsets, Collection<PageWrapper> target) { offsets.forEach(offset -> { PageWrapper p = this.pageByOffset.getOrDefault(offset, null); if (p != null) { target.add(p); } }); } ...
public class class_name { synchronized void collectPages(Collection<Long> offsets, Collection<PageWrapper> target) { offsets.forEach(offset -> { PageWrapper p = this.pageByOffset.getOrDefault(offset, null); if (p != null) { target.add(p); // depends on control dependency...
public class class_name { public static SourceLineAnnotation fromVisitedInstructionRange(BytecodeScanningDetector visitor, int startPC, int endPC) { LineNumberTable lineNumberTable = getLineNumberTable(visitor); String className = visitor.getDottedClassName(); String sourceFile = visitor.getSou...
public class class_name { public static SourceLineAnnotation fromVisitedInstructionRange(BytecodeScanningDetector visitor, int startPC, int endPC) { LineNumberTable lineNumberTable = getLineNumberTable(visitor); String className = visitor.getDottedClassName(); String sourceFile = visitor.getSou...
public class class_name { void processPing(final HttpServerExchange exchange, final RequestData requestData) throws IOException { final String jvmRoute = requestData.getFirst(JVMROUTE); final String scheme = requestData.getFirst(SCHEME); final String host = requestData.getFirst(HOST); ...
public class class_name { void processPing(final HttpServerExchange exchange, final RequestData requestData) throws IOException { final String jvmRoute = requestData.getFirst(JVMROUTE); final String scheme = requestData.getFirst(SCHEME); final String host = requestData.getFirst(HOST); ...
public class class_name { public void updateSelection(Color color) { setFocusedSquare(null); for (ColorSquare c : colorPickerGrid.getSquares()) { if (c.rectangle.getFill().equals(color)) { setFocusedSquare(c); return; } } // check...
public class class_name { public void updateSelection(Color color) { setFocusedSquare(null); for (ColorSquare c : colorPickerGrid.getSquares()) { if (c.rectangle.getFill().equals(color)) { setFocusedSquare(c); // depends on control dependency: [if], data = [none] ...
public class class_name { public static void setViewPortListeners(JTable table) { table.addPropertyChangeListener("ancestor", createAncestorPropertyChangeListener(table)); // Install a listener to cause the whole table to repaint when a column // is resized. We do this because the extended grid...
public class class_name { public static void setViewPortListeners(JTable table) { table.addPropertyChangeListener("ancestor", createAncestorPropertyChangeListener(table)); // Install a listener to cause the whole table to repaint when a column // is resized. We do this because the extended grid...
public class class_name { @SuppressWarnings("unchecked") public static <T> List<List<T>> zip(final List<T> ... lists) { final List<List<T>> zipped = newArrayList(); each(Arrays.asList(lists), new Consumer<List<T>>() { @Override public void accept(final List<T> list) { ...
public class class_name { @SuppressWarnings("unchecked") public static <T> List<List<T>> zip(final List<T> ... lists) { final List<List<T>> zipped = newArrayList(); each(Arrays.asList(lists), new Consumer<List<T>>() { @Override public void accept(final List<T> list) { ...
public class class_name { public int compareTo(Error s) { if (getStart() < s.getStart()) { return -1; } else if (getStart() == s.getStart()) { if (getEnd() > s.getEnd()) { return -1; } else if (getEnd() < s.getEnd()) { return 1; } else { return 0; } } e...
public class class_name { public int compareTo(Error s) { if (getStart() < s.getStart()) { return -1; // depends on control dependency: [if], data = [none] } else if (getStart() == s.getStart()) { if (getEnd() > s.getEnd()) { return -1; // depends on control dependency: [if], data = [none] ...
public class class_name { public final boolean containsExactly(LocatedString other) { if (!referenceCharOffsetsSequential() && other.referenceCharOffsetsSequential()) { throw new UnsupportedOperationException("Containment for non-monotonic LocatedStrings needs" + " to be implemented"); } i...
public class class_name { public final boolean containsExactly(LocatedString other) { if (!referenceCharOffsetsSequential() && other.referenceCharOffsetsSequential()) { throw new UnsupportedOperationException("Containment for non-monotonic LocatedStrings needs" + " to be implemented"); } i...
public class class_name { public void addEntry(CatalogEntry entry) { int type = entry.getEntryType(); if (type == URISUFFIX) { String suffix = normalizeURI(entry.getEntryArg(0)); String fsi = makeAbsolute(normalizeURI(entry.getEntryArg(1))); entry.setEntryArg(1, fsi); catalogManager....
public class class_name { public void addEntry(CatalogEntry entry) { int type = entry.getEntryType(); if (type == URISUFFIX) { String suffix = normalizeURI(entry.getEntryArg(0)); String fsi = makeAbsolute(normalizeURI(entry.getEntryArg(1))); entry.setEntryArg(1, fsi); // depends on control ...
public class class_name { public void pairsMatching(final LongObjectProcedure condition, final LongArrayList keyList, final ObjectArrayList valueList) { keyList.clear(); valueList.clear(); for (int i = table.length ; i-- > 0 ;) { if (state[i]==FULL && condition.apply(table[i],values[i])) { keyList.add(...
public class class_name { public void pairsMatching(final LongObjectProcedure condition, final LongArrayList keyList, final ObjectArrayList valueList) { keyList.clear(); valueList.clear(); for (int i = table.length ; i-- > 0 ;) { if (state[i]==FULL && condition.apply(table[i],values[i])) { keyList.add(...
public class class_name { public static NetworkConfig unmergeNetworks(NetworkConfig base, NetworkConfig unmerge) { if (!base.getName().equals(unmerge.getName())) { throw new IllegalArgumentException("Cannot merge networks of different names."); } for (ComponentConfig<?> component : unmerge.getCompon...
public class class_name { public static NetworkConfig unmergeNetworks(NetworkConfig base, NetworkConfig unmerge) { if (!base.getName().equals(unmerge.getName())) { throw new IllegalArgumentException("Cannot merge networks of different names."); } for (ComponentConfig<?> component : unmerge.getCompon...
public class class_name { public void autoLoad(boolean autoReload) { if (autoReload) { Assert.notNull(this.propertiesFileUrl, "Properties URL is null !"); if (null != this.watchMonitor) { // 先关闭之前的监听 this.watchMonitor.close(); } this.watchMonitor = WatchUtil.createModify(this.propertiesFil...
public class class_name { public void autoLoad(boolean autoReload) { if (autoReload) { Assert.notNull(this.propertiesFileUrl, "Properties URL is null !"); // depends on control dependency: [if], data = [none] if (null != this.watchMonitor) { // 先关闭之前的监听 this.watchMonitor.close(); // depends on co...
public class class_name { public String getActions() { final String actionString = this.actionString; if (actionString != null) { return actionString; } int actionBits = this.actionBits; if (actionBits == ACTION_ALL) { return this.actionString = "*"; ...
public class class_name { public String getActions() { final String actionString = this.actionString; if (actionString != null) { return actionString; // depends on control dependency: [if], data = [none] } int actionBits = this.actionBits; if (actionBits == ACTION_A...
public class class_name { public static EdgeScores getEdgeMarginalsRealSemiring(O2AllGraDpHypergraph graph, Scores sc) { Algebra s = graph.getAlgebra(); int nplus = graph.getNumTokens()+1; Hypernode[][][][] c = graph.getChart(); EdgeScores marg = new EdgeScores(graph.getNumTokens(), 0....
public class class_name { public static EdgeScores getEdgeMarginalsRealSemiring(O2AllGraDpHypergraph graph, Scores sc) { Algebra s = graph.getAlgebra(); int nplus = graph.getNumTokens()+1; Hypernode[][][][] c = graph.getChart(); EdgeScores marg = new EdgeScores(graph.getNumTokens(), 0....
public class class_name { @Implementation(minSdk = LOLLIPOP) protected void native_queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) { // Check if this should be the last buffer cycle. if ((flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { reachedEos = tru...
public class class_name { @Implementation(minSdk = LOLLIPOP) protected void native_queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) { // Check if this should be the last buffer cycle. if ((flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { reachedEos = tru...
public class class_name { public static <T> T transformThriftResult(ColumnOrSuperColumn cosc, ColumnFamilyType columnFamilyType, ThriftRow row) { Object output = null; if (cosc != null) { switch (columnFamilyType) { case COLUMN: output = c...
public class class_name { public static <T> T transformThriftResult(ColumnOrSuperColumn cosc, ColumnFamilyType columnFamilyType, ThriftRow row) { Object output = null; if (cosc != null) { switch (columnFamilyType) { case COLUMN: output = c...
public class class_name { public static void saveSequenceFileSequences(String path, JavaRDD<List<List<Writable>>> rdd, Integer maxOutputFiles) { path = FilenameUtils.normalize(path, true); if (maxOutputFiles != null) { rdd = rdd.coalesce(maxOutputFiles); } ...
public class class_name { public static void saveSequenceFileSequences(String path, JavaRDD<List<List<Writable>>> rdd, Integer maxOutputFiles) { path = FilenameUtils.normalize(path, true); if (maxOutputFiles != null) { rdd = rdd.coalesce(maxOutputFiles); // depends on c...
public class class_name { static <T> SettableSupplier<CompletableFuture<T>> settableSupplierOf(Supplier<CompletableFuture<T>> supplier) { return new SettableSupplier<CompletableFuture<T>>() { volatile boolean called; volatile CompletableFuture<T> value; @Override public CompletableFuture<T...
public class class_name { static <T> SettableSupplier<CompletableFuture<T>> settableSupplierOf(Supplier<CompletableFuture<T>> supplier) { return new SettableSupplier<CompletableFuture<T>>() { volatile boolean called; volatile CompletableFuture<T> value; @Override public CompletableFuture<T...
public class class_name { @Override public boolean isEveryoneGranted(String resourceName, Collection<String> requiredRoles) { validateInput(resourceName, requiredRoles); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Determining if Everyone is authoriz...
public class class_name { @Override public boolean isEveryoneGranted(String resourceName, Collection<String> requiredRoles) { validateInput(resourceName, requiredRoles); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Determining if Everyone is authoriz...
public class class_name { @Override public void setIssuerName(String issuerName) { XSString name = null; if (issuerName != null) { name = (new XSStringBuilder()).buildObject(this.getElementQName().getNamespaceURI(), ISSUER_NAME_LOCAL_NAME, this.getElementQName().getPrefix()); name.setValu...
public class class_name { @Override public void setIssuerName(String issuerName) { XSString name = null; if (issuerName != null) { name = (new XSStringBuilder()).buildObject(this.getElementQName().getNamespaceURI(), ISSUER_NAME_LOCAL_NAME, this.getElementQName().getPrefix()); // depends on cont...
public class class_name { protected /*@pure@*/ int rangeSingle(/*@non_null@*/String singleSelection) { String single = singleSelection.trim(); if (single.toLowerCase().equals("first")) { return 0; } if (single.toLowerCase().equals("last") || single.toLowerCase().equals("-1"...
public class class_name { protected /*@pure@*/ int rangeSingle(/*@non_null@*/String singleSelection) { String single = singleSelection.trim(); if (single.toLowerCase().equals("first")) { return 0; // depends on control dependency: [if], data = [none] } if (single.toLowerCas...
public class class_name { protected SubscriptionSummary postNotification(final Subscriber subscriber, final String mimeType, final byte[] payload) { final SubscriptionSummary result = new SubscriptionSummary(); try { final URL target = new URL(subscriber.getCallback()); LOG.inf...
public class class_name { protected SubscriptionSummary postNotification(final Subscriber subscriber, final String mimeType, final byte[] payload) { final SubscriptionSummary result = new SubscriptionSummary(); try { final URL target = new URL(subscriber.getCallback()); LOG.inf...
public class class_name { public void onSaveItems(ItemStateChangesLog chlog) { if (state == FINISHED) { return; } else if (state == WAITING) { suspendBuffer.add(chlog); } else if (state == WORKING) { try { ...
public class class_name { public void onSaveItems(ItemStateChangesLog chlog) { if (state == FINISHED) { return; // depends on control dependency: [if], data = [none] } else if (state == WAITING) { suspendBuffer.add(chlog); // depends on control dependency: [i...
public class class_name { protected void findCreds() { if (System.getProperty(ACCESS_KEY) != null && System.getProperty(ACCESS_SECRET) != null) { accessKey = System.getProperty(ACCESS_KEY); secretKey = System.getProperty(ACCESS_SECRET); } else if (System.getenv(AWS_ACCE...
public class class_name { protected void findCreds() { if (System.getProperty(ACCESS_KEY) != null && System.getProperty(ACCESS_SECRET) != null) { accessKey = System.getProperty(ACCESS_KEY); // depends on control dependency: [if], data = [none] secretKey = System.getProperty(ACCESS_SECRE...
public class class_name { private void readParameterAnnotations( final MethodVisitor methodVisitor, final Context context, final int runtimeParameterAnnotationsOffset, final boolean visible) { int currentOffset = runtimeParameterAnnotationsOffset; int numParameters = b[currentOffset++] ...
public class class_name { private void readParameterAnnotations( final MethodVisitor methodVisitor, final Context context, final int runtimeParameterAnnotationsOffset, final boolean visible) { int currentOffset = runtimeParameterAnnotationsOffset; int numParameters = b[currentOffset++] ...
public class class_name { protected Collection<JournalSegment<E>> loadSegments() { // Ensure log directories are created. directory.mkdirs(); TreeMap<Long, JournalSegment<E>> segments = new TreeMap<>(); // Iterate through all files in the log directory. for (File file : directory.listFiles(File::...
public class class_name { protected Collection<JournalSegment<E>> loadSegments() { // Ensure log directories are created. directory.mkdirs(); TreeMap<Long, JournalSegment<E>> segments = new TreeMap<>(); // Iterate through all files in the log directory. for (File file : directory.listFiles(File::...
public class class_name { public static void populate(WritableColumnVector col, InternalRow row, int fieldIdx) { int capacity = col.capacity; DataType t = col.dataType(); if (row.isNullAt(fieldIdx)) { col.putNulls(0, capacity); } else { if (t == DataTypes.BooleanType) { col.putBool...
public class class_name { public static void populate(WritableColumnVector col, InternalRow row, int fieldIdx) { int capacity = col.capacity; DataType t = col.dataType(); if (row.isNullAt(fieldIdx)) { col.putNulls(0, capacity); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public MemcachedNode getPrimary(String k) { if (partialStringHash.get()) { final int index = k.indexOf(hashDelimiter.get()); if (index > 0) { k = k.substring(0, index); } } final long _hash = hashingAlgorithm.hash(k)...
public class class_name { public MemcachedNode getPrimary(String k) { if (partialStringHash.get()) { final int index = k.indexOf(hashDelimiter.get()); if (index > 0) { k = k.substring(0, index); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static int parseInt (@Nullable final String sStr, @Nonnegative final int nRadix, final int nDefault) { if (sStr != null && sStr.length () > 0) try { return Integer.parseInt (sStr, nRadix); } catch (final NumberFormatException ex) { //...
public class class_name { public static int parseInt (@Nullable final String sStr, @Nonnegative final int nRadix, final int nDefault) { if (sStr != null && sStr.length () > 0) try { return Integer.parseInt (sStr, nRadix); // depends on control dependency: [try], data = [none] } ca...
public class class_name { @Override public CPDefinitionVirtualSetting remove(Serializable primaryKey) throws NoSuchCPDefinitionVirtualSettingException { Session session = null; try { session = openSession(); CPDefinitionVirtualSetting cpDefinitionVirtualSetting = (CPDefinitionVirtualSetting)session.get(...
public class class_name { @Override public CPDefinitionVirtualSetting remove(Serializable primaryKey) throws NoSuchCPDefinitionVirtualSettingException { Session session = null; try { session = openSession(); CPDefinitionVirtualSetting cpDefinitionVirtualSetting = (CPDefinitionVirtualSetting)session.get(...
public class class_name { @Override public V get() { // check priorities - FJ task can only block on a task with higher priority! Thread cThr = Thread.currentThread(); int priority = (cThr instanceof FJWThr) ? ((FJWThr)cThr)._priority : -1; assert _dt.priority() > priority || (_dt.priority() == priorit...
public class class_name { @Override public V get() { // check priorities - FJ task can only block on a task with higher priority! Thread cThr = Thread.currentThread(); int priority = (cThr instanceof FJWThr) ? ((FJWThr)cThr)._priority : -1; assert _dt.priority() > priority || (_dt.priority() == priorit...
public class class_name { public static long parseLong(String num, long defaultLong) { if (num == null) { return defaultLong; } else { try { return Long.parseLong(num); } catch (Exception e) { return defaultLong; } ...
public class class_name { public static long parseLong(String num, long defaultLong) { if (num == null) { return defaultLong; // depends on control dependency: [if], data = [none] } else { try { return Long.parseLong(num); // depends on control dependency: [try],...
public class class_name { void onReadingThreadFinished(WebSocketFrame closeFrame) { synchronized (mThreadsLock) { mReadingThreadFinished = true; mServerCloseFrame = closeFrame; if (mWritingThreadFinished == false) { // Wait for the wr...
public class class_name { void onReadingThreadFinished(WebSocketFrame closeFrame) { synchronized (mThreadsLock) { mReadingThreadFinished = true; mServerCloseFrame = closeFrame; if (mWritingThreadFinished == false) { // Wait for the wr...
public class class_name { public static Serializable deserialize(byte[] bytes, String errorMessage) { try { return deserialize(bytes); } catch (Exception e) { throw new RuntimeException(errorMessage, e); } } }
public class class_name { public static Serializable deserialize(byte[] bytes, String errorMessage) { try { return deserialize(bytes); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new RuntimeException(errorMessage, e); } // depends on control dependency: ...
public class class_name { @Override public Object get(Object name) { if (bean != null) { BeanInvoker invoker = getReadInvoker((String) name); if (invoker != null) { try { return transform(invoker); } catch (Throwable e) { ...
public class class_name { @Override public Object get(Object name) { if (bean != null) { BeanInvoker invoker = getReadInvoker((String) name); if (invoker != null) { try { return transform(invoker); // depends on control dependency: [try], data = [...
public class class_name { public static Map getInterfaceMethodsFromInterface(CtClass interfaceClass, Map exceptMethods) { HashMap interfaceMethods = new HashMap(); CtMethod[] methods = interfaceClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { ...
public class class_name { public static Map getInterfaceMethodsFromInterface(CtClass interfaceClass, Map exceptMethods) { HashMap interfaceMethods = new HashMap(); CtMethod[] methods = interfaceClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { ...
public class class_name { @Override public void sawOpcode(int seen) { IOIUserValue uvSawType = null; try { switch (seen) { case Const.INVOKESPECIAL: uvSawType = processInvokeSpecial(); break; case Const.INVOKESTATIC: ...
public class class_name { @Override public void sawOpcode(int seen) { IOIUserValue uvSawType = null; try { switch (seen) { case Const.INVOKESPECIAL: uvSawType = processInvokeSpecial(); break; case Const.INVOKESTATIC: ...
public class class_name { public boolean callbackHooks(final TYPE iType, final OIdentifiable id) { if (!OHookThreadLocal.INSTANCE.push(id)) return false; try { final ORecord<?> rec = id.getRecord(); if (rec == null) return false; boolean recordChanged = false; ...
public class class_name { public boolean callbackHooks(final TYPE iType, final OIdentifiable id) { if (!OHookThreadLocal.INSTANCE.push(id)) return false; try { final ORecord<?> rec = id.getRecord(); if (rec == null) return false; boolean recordChanged = false; ...
public class class_name { @SuppressWarnings("unchecked") private ApiAdapter<A> nullSafeApiAdapter(ApiAdapter<A> apiAdapter) { if (apiAdapter != null) { return apiAdapter; } return (ApiAdapter<A>) NullApiAdapter.INSTANCE; } }
public class class_name { @SuppressWarnings("unchecked") private ApiAdapter<A> nullSafeApiAdapter(ApiAdapter<A> apiAdapter) { if (apiAdapter != null) { return apiAdapter; // depends on control dependency: [if], data = [none] } return (ApiAdapter<A>) NullApiAdapter.INSTANCE; } }
public class class_name { private static char[] getPassword(TextDevice textDevice, String key) { boolean noMatch; char[] cred = new char[0]; char[] passwd1; char[] passwd2; do { passwd1 = textDevice.readPassword("Please enter the password value for %s:", key); ...
public class class_name { private static char[] getPassword(TextDevice textDevice, String key) { boolean noMatch; char[] cred = new char[0]; char[] passwd1; char[] passwd2; do { passwd1 = textDevice.readPassword("Please enter the password value for %s:", key); ...
public class class_name { public static String replaceLast(final String s, final String sub, final String with) { int i = s.lastIndexOf(sub); if (i == -1) { return s; } return s.substring(0, i) + with + s.substring(i + sub.length()); } }
public class class_name { public static String replaceLast(final String s, final String sub, final String with) { int i = s.lastIndexOf(sub); if (i == -1) { return s; // depends on control dependency: [if], data = [none] } return s.substring(0, i) + with + s.substring(i + sub.length()); } }
public class class_name { public static String prepareHeaderParameterName(final String headerName) { // special cases if (headerName.equals("etag")) { return HttpBase.HEADER_ETAG; } if (headerName.equals("www-authenticate")) { return "WWW-Authenticate"; } char[] name = headerName.toCharArray(); ...
public class class_name { public static String prepareHeaderParameterName(final String headerName) { // special cases if (headerName.equals("etag")) { return HttpBase.HEADER_ETAG; // depends on control dependency: [if], data = [none] } if (headerName.equals("www-authenticate")) { return "WWW-Authentic...
public class class_name { private AbsAxis parseReverceAxis() { AbsAxis axis; if (is("parent", true)) { axis = new ParentAxis(getTransaction()); } else if (is("ancestor", true)) { axis = new AncestorAxis(getTransaction()); } else if (is("ancestor-or-self", tr...
public class class_name { private AbsAxis parseReverceAxis() { AbsAxis axis; if (is("parent", true)) { axis = new ParentAxis(getTransaction()); // depends on control dependency: [if], data = [none] } else if (is("ancestor", true)) { axis = new AncestorAxis(getTransac...
public class class_name { private void addToBuffer(String document) { if (timerMDC == null) { timerMDC = MDC.get("name"); } int length = document.length(); // If this is the first document in the buffer, record its age bufferYoungest = new Date().getTime(); ...
public class class_name { private void addToBuffer(String document) { if (timerMDC == null) { timerMDC = MDC.get("name"); // depends on control dependency: [if], data = [none] } int length = document.length(); // If this is the first document in the buffer, record its age ...
public class class_name { public void reverse() { mPlayingBackwards = !mPlayingBackwards; if (mPlayingState == RUNNING) { long currentTime = AnimationUtils.currentAnimationTimeMillis(); long currentPlayTime = currentTime - mStartTime; long timeLeft = mDuration - curr...
public class class_name { public void reverse() { mPlayingBackwards = !mPlayingBackwards; if (mPlayingState == RUNNING) { long currentTime = AnimationUtils.currentAnimationTimeMillis(); long currentPlayTime = currentTime - mStartTime; long timeLeft = mDuration - curr...
public class class_name { @Override protected String appendAttributeToQuery(final String queryBuilder, final String dataAttribute, final List<Object> queryValues) { if (queryBuilder != null) { return queryBuilder; } final String keyAttributeName; if (this.queryAttribute...
public class class_name { @Override protected String appendAttributeToQuery(final String queryBuilder, final String dataAttribute, final List<Object> queryValues) { if (queryBuilder != null) { return queryBuilder; // depends on control dependency: [if], data = [none] } final St...
public class class_name { public synchronized void open(ObjectManagerState objectManagerState) throws ObjectManagerException { final String methodName = "open"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, objectManag...
public class class_name { public synchronized void open(ObjectManagerState objectManagerState) throws ObjectManagerException { final String methodName = "open"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, objectManag...
public class class_name { private boolean isInherited(Method m) throws ClassNotFoundException { JavaClass[] infs = javaClass.getAllInterfaces(); for (JavaClass inf : infs) { if (hasMethod(inf, m)) { return true; } } JavaClass[] sups = javaClass.getSuperClasses(); for (JavaClass sup : sups) { if...
public class class_name { private boolean isInherited(Method m) throws ClassNotFoundException { JavaClass[] infs = javaClass.getAllInterfaces(); for (JavaClass inf : infs) { if (hasMethod(inf, m)) { return true; // depends on control dependency: [if], data = [none] } } JavaClass[] sups = javaClass.g...
public class class_name { public static Collection<MatchedMethod> filterByClosestParams( final Collection<MatchedMethod> possibilities, final int paramsCount) { Collection<MatchedMethod> res = null; for (int i = 0; i < paramsCount; i++) { final Collection<MatchedMethod> filtered...
public class class_name { public static Collection<MatchedMethod> filterByClosestParams( final Collection<MatchedMethod> possibilities, final int paramsCount) { Collection<MatchedMethod> res = null; for (int i = 0; i < paramsCount; i++) { final Collection<MatchedMethod> filtered...
public class class_name { private static String wordShapeChris2Long(String s, boolean omitIfInBoundary, int len, Collection<String> knownLCWords) { final char[] beginChars = new char[BOUNDARY_SIZE]; final char[] endChars = new char[BOUNDARY_SIZE]; int beginUpto = 0; int endUpto = 0; final Set<...
public class class_name { private static String wordShapeChris2Long(String s, boolean omitIfInBoundary, int len, Collection<String> knownLCWords) { final char[] beginChars = new char[BOUNDARY_SIZE]; final char[] endChars = new char[BOUNDARY_SIZE]; int beginUpto = 0; int endUpto = 0; final Set<...
public class class_name { @Override public final Iterable<SourceDocument> findAll(final String filename) { final Query searchQuery = new Query(Criteria.where("filename").is(filename)); final List<SourceDocumentMongo> sourceDocumentsMongo = mongoTemplate.find(searchQu...
public class class_name { @Override public final Iterable<SourceDocument> findAll(final String filename) { final Query searchQuery = new Query(Criteria.where("filename").is(filename)); final List<SourceDocumentMongo> sourceDocumentsMongo = mongoTemplate.find(searchQu...
public class class_name { public static boolean contains(LatLong[] latLongs, LatLong latLong) { boolean result = false; for (int i = 0, j = latLongs.length - 1; i < latLongs.length; j = i++) { if ((latLongs[i].latitude > latLong.latitude) != (latLongs[j].latitude > latLong.latitude) ...
public class class_name { public static boolean contains(LatLong[] latLongs, LatLong latLong) { boolean result = false; for (int i = 0, j = latLongs.length - 1; i < latLongs.length; j = i++) { if ((latLongs[i].latitude > latLong.latitude) != (latLongs[j].latitude > latLong.latitude) ...
public class class_name { @Override public TimeZone getUserTimeZone() { TimeZone timeZone = findCachedTimeZone(); if (timeZone != null) { // mainly here if you call this in action process // because time-zone process is called before action return timeZone; ...
public class class_name { @Override public TimeZone getUserTimeZone() { TimeZone timeZone = findCachedTimeZone(); if (timeZone != null) { // mainly here if you call this in action process // because time-zone process is called before action return timeZone; // de...
public class class_name { @Override public byte[] serialize(Object obj) throws IOException { KryoHolder kryoHolder = null; if (obj == null) throw new RuntimeException("obj can not be null"); try { kryoHolder = KryoPoolImpl.getInstance().get(); kryoHolder.output.clear(); // clear Output -->每次调用的时候 重置...
public class class_name { @Override public byte[] serialize(Object obj) throws IOException { KryoHolder kryoHolder = null; if (obj == null) throw new RuntimeException("obj can not be null"); try { kryoHolder = KryoPoolImpl.getInstance().get(); kryoHolder.output.clear(); // clear Output -->每次调用的时候 重置...
public class class_name { private boolean matches(String filter, String value) { if (filter == null) { return true; } return filter.equals(value); } }
public class class_name { private boolean matches(String filter, String value) { if (filter == null) { return true; // depends on control dependency: [if], data = [none] } return filter.equals(value); } }
public class class_name { private void discardSubtaskState( final JobID jobId, final ExecutionAttemptID executionAttemptID, final long checkpointId, final TaskStateSnapshot subtaskState) { if (subtaskState != null) { executor.execute(new Runnable() { @Override public void run() { try { ...
public class class_name { private void discardSubtaskState( final JobID jobId, final ExecutionAttemptID executionAttemptID, final long checkpointId, final TaskStateSnapshot subtaskState) { if (subtaskState != null) { executor.execute(new Runnable() { @Override public void run() { try { ...
public class class_name { private RaConnector mergeConnectors(RaConnector rxConnector, RaConnector annoConnector) { final boolean trace = TraceComponent.isAnyTracingEnabled(); RaResourceAdapter rxRa = rxConnector.getResourceAdapter(); boolean useRxOra = false; RaOutboundResourceAdapte...
public class class_name { private RaConnector mergeConnectors(RaConnector rxConnector, RaConnector annoConnector) { final boolean trace = TraceComponent.isAnyTracingEnabled(); RaResourceAdapter rxRa = rxConnector.getResourceAdapter(); boolean useRxOra = false; RaOutboundResourceAdapte...
public class class_name { protected Boolean parseOptionalBooleanValue(final String path) { final I_CmsXmlContentValue value = m_xml.getValue(path, m_locale); if (value == null) { return null; } else { final String stringValue = value.getStringValue(null); tr...
public class class_name { protected Boolean parseOptionalBooleanValue(final String path) { final I_CmsXmlContentValue value = m_xml.getValue(path, m_locale); if (value == null) { return null; // depends on control dependency: [if], data = [none] } else { final String st...
public class class_name { private static int processId() { // Note: may fail in some JVM implementations // something like '<pid>@<hostname>', at least in SUN / Oracle JVMs final String jvmName = ManagementFactory.getRuntimeMXBean().getName(); final int index = jvmName.indexOf('@'); ...
public class class_name { private static int processId() { // Note: may fail in some JVM implementations // something like '<pid>@<hostname>', at least in SUN / Oracle JVMs final String jvmName = ManagementFactory.getRuntimeMXBean().getName(); final int index = jvmName.indexOf('@'); ...
public class class_name { @Override public <T extends IChemObject> T read(T object) throws CDKException { if (object instanceof IChemFile) { IChemFile cf = (IChemFile) object; try { cf = readChemFile(cf); } catch (IOException e) { logger.e...
public class class_name { @Override public <T extends IChemObject> T read(T object) throws CDKException { if (object instanceof IChemFile) { IChemFile cf = (IChemFile) object; try { cf = readChemFile(cf); // depends on control dependency: [try], data = [none] ...
public class class_name { @SuppressWarnings({ "cast", "unchecked" }) public static <O extends SpatialComparable> RangeQuery<O> getRangeQuery(AbstractRStarTree<?, ?, ?> tree, SpatialDistanceQuery<O> distanceQuery, Object... hints) { // Can we support this distance function - spatial distances only! SpatialPri...
public class class_name { @SuppressWarnings({ "cast", "unchecked" }) public static <O extends SpatialComparable> RangeQuery<O> getRangeQuery(AbstractRStarTree<?, ?, ?> tree, SpatialDistanceQuery<O> distanceQuery, Object... hints) { // Can we support this distance function - spatial distances only! SpatialPri...
public class class_name { protected static void checkStaticIndexes(SourceRange sourceRange, Operation... operations) throws SyntaxException { for (int i = 0; i < operations.length; i++) { if (operations[i] instanceof Element) { try { TermFactory.create((Element) operations[i]); } catch (Evaluatio...
public class class_name { protected static void checkStaticIndexes(SourceRange sourceRange, Operation... operations) throws SyntaxException { for (int i = 0; i < operations.length; i++) { if (operations[i] instanceof Element) { try { TermFactory.create((Element) operations[i]); // depends on control ...
public class class_name { String generateAuthorizationHeader() { String encoded = ""; try { encoded = URLEncoder.encode(accessToken, "UTF-8"); } catch (UnsupportedEncodingException ignore) { } return "Bearer " + encoded; } }
public class class_name { String generateAuthorizationHeader() { String encoded = ""; try { encoded = URLEncoder.encode(accessToken, "UTF-8"); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException ignore) { } // depends on control depen...
public class class_name { private boolean validateNull(Object validationObject, Annotation annotate) { if (checkNullObject(validationObject)) { return true; } if (!validationObject.equals(null) || validationObject != null) { throwValidationException(...
public class class_name { private boolean validateNull(Object validationObject, Annotation annotate) { if (checkNullObject(validationObject)) { return true; // depends on control dependency: [if], data = [none] } if (!validationObject.equals(null) || validationObject !=...
public class class_name { private static DoubleArrayTire loadDAT() { long start = System.currentTimeMillis(); try { DoubleArrayTire dat = DoubleArrayTire.loadText(DicReader.getInputStream("core.dic"), AnsjItem.class); // 人名识别必备的 personNameFull(dat); // 记录...
public class class_name { private static DoubleArrayTire loadDAT() { long start = System.currentTimeMillis(); try { DoubleArrayTire dat = DoubleArrayTire.loadText(DicReader.getInputStream("core.dic"), AnsjItem.class); // 人名识别必备的 personNameFull(dat); // depends on con...
public class class_name { public final void setOrientation(int orientation) { mOrientation = orientation; mOrientationState = getOrientationStateFromParam(mOrientation); invalidate(); if (mOuterAdapter != null) { mOuterAdapter.setOrientation(mOrientation); } } }
public class class_name { public final void setOrientation(int orientation) { mOrientation = orientation; mOrientationState = getOrientationStateFromParam(mOrientation); invalidate(); if (mOuterAdapter != null) { mOuterAdapter.setOrientation(mOrientation); // depends on cont...
public class class_name { private void refreshDataForCell(Row row, String fullSaveAttr) { if (fullSaveAttr != null) { try { String fullName = ConfigurationUtility.getFullNameFromRow(row); if (fullName != null) { parent.getCellHelper().restoreDataContext(fullName); SaveAttrsUtility.refreshS...
public class class_name { private void refreshDataForCell(Row row, String fullSaveAttr) { if (fullSaveAttr != null) { try { String fullName = ConfigurationUtility.getFullNameFromRow(row); if (fullName != null) { parent.getCellHelper().restoreDataContext(fullName); // depends on control dependen...
public class class_name { public Object extFunction(FuncExtFunction extFunction, Vector argVec, ExpressionContext exprContext) throws javax.xml.transform.TransformerException { Object result = null; String ns = extFunction.getNamespace(); if (null != ns) { ...
public class class_name { public Object extFunction(FuncExtFunction extFunction, Vector argVec, ExpressionContext exprContext) throws javax.xml.transform.TransformerException { Object result = null; String ns = extFunction.getNamespace(); if (null != ns) { ...
public class class_name { final public Boolean checkRealOffset() { if ((tokenRealOffset == null) || !provideRealOffset) { return false; } else if (tokenOffset == null) { return true; } else if (tokenOffset.getStart() == tokenRealOffset.getStart() && tokenOffset.getEnd() == tokenRealOffs...
public class class_name { final public Boolean checkRealOffset() { if ((tokenRealOffset == null) || !provideRealOffset) { return false; // depends on control dependency: [if], data = [none] } else if (tokenOffset == null) { return true; // depends on control dependency: [if], data = [none] } el...
public class class_name { public static boolean isProcessCase(final ProcessCase currentCase, ProcessCase[] cases) { ArgUtils.notNull(currentCase, "currentCase"); if(currentCase == ProcessCase.Load) { return isLoadCase(cases); } else if(currentCase == ProcessCase.Save) { ...
public class class_name { public static boolean isProcessCase(final ProcessCase currentCase, ProcessCase[] cases) { ArgUtils.notNull(currentCase, "currentCase"); if(currentCase == ProcessCase.Load) { return isLoadCase(cases); // depends on control dependency: [if], data = [none] ...
public class class_name { private JobPushRequest getNewJob(String taskTrackerNodeGroup, String taskTrackerIdentity) { JobSender.SendResult sendResult = appContext.getJobSender().send(taskTrackerNodeGroup, taskTrackerIdentity, 1, new JobSender.SendInvoker() { @Override public JobSender....
public class class_name { private JobPushRequest getNewJob(String taskTrackerNodeGroup, String taskTrackerIdentity) { JobSender.SendResult sendResult = appContext.getJobSender().send(taskTrackerNodeGroup, taskTrackerIdentity, 1, new JobSender.SendInvoker() { @Override public JobSender....
public class class_name { public void marshall(Volume volume, ProtocolMarshaller protocolMarshaller) { if (volume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(volume.getHost(), HOST_BINDING); ...
public class class_name { public void marshall(Volume volume, ProtocolMarshaller protocolMarshaller) { if (volume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(volume.getHost(), HOST_BINDING); /...
public class class_name { private long extractCommittedSpHandle(ExportRow row, long committedSeqNo) { long ret = 0; if (committedSeqNo == ExportDataSource.NULL_COMMITTED_SEQNO) { return ret; } // Get the rows's sequence number (3rd column) long seqNo = (long) row.va...
public class class_name { private long extractCommittedSpHandle(ExportRow row, long committedSeqNo) { long ret = 0; if (committedSeqNo == ExportDataSource.NULL_COMMITTED_SEQNO) { return ret; // depends on control dependency: [if], data = [none] } // Get the rows's sequence ...
public class class_name { protected int getEntryTypeInt(int flags) { for (int i = 0; i < getTypesInt().length; i++) { if ((flags & getTypesInt()[i]) > 0) { return i; } } return -1; } }
public class class_name { protected int getEntryTypeInt(int flags) { for (int i = 0; i < getTypesInt().length; i++) { if ((flags & getTypesInt()[i]) > 0) { return i; // depends on control dependency: [if], data = [none] } } return -1; } }
public class class_name { private State calculateNextState(final long timeoutInNanos, final State activeState) { long cyclePeriodInNanos = activeState.config.getLimitRefreshPeriodInNanos(); int permissionsPerCycle = activeState.config.getLimitForPeriod(); long currentNanos = currentNanoTime();...
public class class_name { private State calculateNextState(final long timeoutInNanos, final State activeState) { long cyclePeriodInNanos = activeState.config.getLimitRefreshPeriodInNanos(); int permissionsPerCycle = activeState.config.getLimitForPeriod(); long currentNanos = currentNanoTime();...
public class class_name { public void destroy(boolean removeFromQueue) { if (mState == State.IDLE) { return; } if (removeFromQueue) { mThreadPoolExecutor.remove(this); } if (mState == State.DECODED) { mMemoryCache.put(getCacheKey(), mBitmap); } mBitmap = null; mDrawing...
public class class_name { public void destroy(boolean removeFromQueue) { if (mState == State.IDLE) { return; // depends on control dependency: [if], data = [none] } if (removeFromQueue) { mThreadPoolExecutor.remove(this); // depends on control dependency: [if], data = [none] } if (mStat...
public class class_name { public int read(byte[] array, int offset, int length) { if(curr==null)return -1; int len; int count=0; while(length>0) { // loop through while there's data needed if((len=curr.remaining())>length) { // if enough data in curr buffer, use this code curr.get(array,offset,length);...
public class class_name { public int read(byte[] array, int offset, int length) { if(curr==null)return -1; int len; int count=0; while(length>0) { // loop through while there's data needed if((len=curr.remaining())>length) { // if enough data in curr buffer, use this code curr.get(array,offset,length);...
public class class_name { public final void setMaxNumberOfCharacters(final int maxNumberOfCharacters) { if (maxNumberOfCharacters != -1) { Condition.INSTANCE.ensureAtLeast(maxNumberOfCharacters, 1, "The maximum number of characters must be at least 1"); } this.m...
public class class_name { public final void setMaxNumberOfCharacters(final int maxNumberOfCharacters) { if (maxNumberOfCharacters != -1) { Condition.INSTANCE.ensureAtLeast(maxNumberOfCharacters, 1, "The maximum number of characters must be at least 1"); // depends on control dep...
public class class_name { private boolean doesIndexExists(Connection con, String indexName) { if (usingDB2) { if (usingAS400DB2) { return doesIndexExistsiSeries(con, indexName); } return doesIndexExistsDistributed(con, indexName); } else ...
public class class_name { private boolean doesIndexExists(Connection con, String indexName) { if (usingDB2) { if (usingAS400DB2) { return doesIndexExistsiSeries(con, indexName); // depends on control dependency: [if], data = [none] } return doesIndexExistsDi...
public class class_name { public Status checkLinkable(CmsResource firstResource, CmsResource secondResource) { String debugPrefix = "checkLinkable [" + Thread.currentThread().getName() + "]: "; LOG.debug( debugPrefix + (firstResource != null ? firstResource.getRootPath() : ...
public class class_name { public Status checkLinkable(CmsResource firstResource, CmsResource secondResource) { String debugPrefix = "checkLinkable [" + Thread.currentThread().getName() + "]: "; LOG.debug( debugPrefix + (firstResource != null ? firstResource.getRootPath() : ...
public class class_name { public static int[] add (int[] list, int startIdx, int value) { // make sure we've got a list to work with if (list == null) { list = new int[DEFAULT_LIST_SIZE]; } // search for a spot to insert yon value; assuming we'll insert // it at...
public class class_name { public static int[] add (int[] list, int startIdx, int value) { // make sure we've got a list to work with if (list == null) { list = new int[DEFAULT_LIST_SIZE]; // depends on control dependency: [if], data = [none] } // search for a spot to in...
public class class_name { public static StmtOutput execute(StmtInput stmtInput) throws SFException, SnowflakeSQLException { HttpPost httpRequest = null; AssertUtil.assertTrue(stmtInput.serverUrl != null, "Missing server...
public class class_name { public static StmtOutput execute(StmtInput stmtInput) throws SFException, SnowflakeSQLException { HttpPost httpRequest = null; AssertUtil.assertTrue(stmtInput.serverUrl != null, "Missing server...
public class class_name { @Override public ServerBartender findServerByName(String name) { for (ClusterHeartbeat cluster : _clusterMap.values()) { ServerBartender server = cluster.findServerByName(name); if (server != null) { return server; } } return null; } }
public class class_name { @Override public ServerBartender findServerByName(String name) { for (ClusterHeartbeat cluster : _clusterMap.values()) { ServerBartender server = cluster.findServerByName(name); if (server != null) { return server; // depends on control dependency: [if], dat...
public class class_name { public static void main(final String[] args) { for (int i = 0; i < 10; i++) { perfTestEncode(i); perfTestDecode(i); } } }
public class class_name { public static void main(final String[] args) { for (int i = 0; i < 10; i++) { perfTestEncode(i); // depends on control dependency: [for], data = [i] perfTestDecode(i); // depends on control dependency: [for], data = [i] } } }
public class class_name { public static synchronized void updateLog(Map<String, Object> newConfig) { if (newConfig == null) throw new NullPointerException("Updated config must not be null"); HpelTraceServiceConfig config = loggingConfig.get(); if (config != null) { conf...
public class class_name { public static synchronized void updateLog(Map<String, Object> newConfig) { if (newConfig == null) throw new NullPointerException("Updated config must not be null"); HpelTraceServiceConfig config = loggingConfig.get(); if (config != null) { conf...
public class class_name { protected String getXMLVersion(Node nodeArg) { Document doc = null; // Determine the XML Version of the document if (nodeArg != null) { if (nodeArg.getNodeType() == Node.DOCUMENT_NODE) { // The Document node is the Node argument ...
public class class_name { protected String getXMLVersion(Node nodeArg) { Document doc = null; // Determine the XML Version of the document if (nodeArg != null) { if (nodeArg.getNodeType() == Node.DOCUMENT_NODE) { // The Document node is the Node argument ...
public class class_name { private void showAdminFormMemBasedLoadMgr(PrintWriter out, boolean advancedView) { if (!(loadMgr instanceof MemBasedLoadManager)) { return; } out.print("<h2>Memory Based Scheduling</h2>\n"); MemBasedLoadManager memLoadMgr = (Me...
public class class_name { private void showAdminFormMemBasedLoadMgr(PrintWriter out, boolean advancedView) { if (!(loadMgr instanceof MemBasedLoadManager)) { return; // depends on control dependency: [if], data = [none] } out.print("<h2>Memory Based Schedul...
public class class_name { protected void setValue(int newPosition, T1[] values, int number, boolean currentExisting) { if (number > 0) { if (currentExisting) { T1[] tmpList = operations .createVector1(newFullValueList[newPosition].length + number); System.arraycopy(newFullVa...
public class class_name { protected void setValue(int newPosition, T1[] values, int number, boolean currentExisting) { if (number > 0) { if (currentExisting) { T1[] tmpList = operations .createVector1(newFullValueList[newPosition].length + number); System.arraycopy(newFullVa...
public class class_name { public static void dump(final List<Difference> sortedDifferences, final PrintStream out) { String currentClassName = ""; for (final Difference difference : sortedDifferences) { if (!currentClassName.equals(difference.getClassName())) { out.println("...
public class class_name { public static void dump(final List<Difference> sortedDifferences, final PrintStream out) { String currentClassName = ""; for (final Difference difference : sortedDifferences) { if (!currentClassName.equals(difference.getClassName())) { out.println("...
public class class_name { public long resample(final long samples, final Timebase oldRate) { try { return resample(samples, oldRate, false); } catch (ResamplingException e) { // should never happen throw new RuntimeException(e); } } }
public class class_name { public long resample(final long samples, final Timebase oldRate) { try { return resample(samples, oldRate, false); // depends on control dependency: [try], data = [none] } catch (ResamplingException e) { // should never happen throw new RuntimeException(e); } // depends ...
public class class_name { static <T> ArraySet<T> fromArray(List<T> aArray, Boolean aAllowDuplicates) { ArraySet<T> set = new ArraySet<>(); for (int i = 0, len = aArray.size(); i < len; i++) { set.add(aArray.get(i), aAllowDuplicates); } return set; } }
public class class_name { static <T> ArraySet<T> fromArray(List<T> aArray, Boolean aAllowDuplicates) { ArraySet<T> set = new ArraySet<>(); for (int i = 0, len = aArray.size(); i < len; i++) { set.add(aArray.get(i), aAllowDuplicates); // depends on control dependency: [for], data = [i] ...
public class class_name { protected MimePart setupTextPart(CardView view, MimePart part, String text, TextType textType) { assertArgumentNotNull("view", view); assertArgumentNotNull("part", part); assertArgumentNotNull("text", text); assertArgumentNotNull("textType", textType); ...
public class class_name { protected MimePart setupTextPart(CardView view, MimePart part, String text, TextType textType) { assertArgumentNotNull("view", view); assertArgumentNotNull("part", part); assertArgumentNotNull("text", text); assertArgumentNotNull("textType", textType); ...
public class class_name { @Override public boolean hasLink(String name1, String name2, String... domain) { if(super.hasLink(name1, name2, domain)) { return true; } // check name1's groups if (domain.length == 1) { try { List<String> groups = O...
public class class_name { @Override public boolean hasLink(String name1, String name2, String... domain) { if(super.hasLink(name1, name2, domain)) { return true; // depends on control dependency: [if], data = [none] } // check name1's groups if (domain.length == 1) { ...
public class class_name { public void marshall(ImportServerCatalogRequest importServerCatalogRequest, ProtocolMarshaller protocolMarshaller) { if (importServerCatalogRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catc...
public class class_name { public void marshall(ImportServerCatalogRequest importServerCatalogRequest, ProtocolMarshaller protocolMarshaller) { if (importServerCatalogRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catc...
public class class_name { public void done(T response) throws IllegalArgumentException { lock.lock(); try { if (response != null) { this.response = response; condition.signal(); } else { throw new IllegalArgumentException("response...
public class class_name { public void done(T response) throws IllegalArgumentException { lock.lock(); try { if (response != null) { this.response = response; // depends on control dependency: [if], data = [none] condition.signal(); // depends on control depen...
public class class_name { private synchronized Producer<CloseableReference<CloseableImage>> getLocalContentUriFetchSequence() { if (mLocalContentUriFetchSequence == null) { LocalContentUriFetchProducer localContentUriFetchProducer = mProducerFactory.newLocalContentUriFetchProducer(); Thumb...
public class class_name { private synchronized Producer<CloseableReference<CloseableImage>> getLocalContentUriFetchSequence() { if (mLocalContentUriFetchSequence == null) { LocalContentUriFetchProducer localContentUriFetchProducer = mProducerFactory.newLocalContentUriFetchProducer(); Thumb...
public class class_name { public String createHash(final String iInput, final String iAlgorithm, final boolean iIncludeAlgorithm) { if (iInput == null) throw new IllegalArgumentException("Input string is null"); if (iAlgorithm == null) throw new IllegalArgumentException("Algorithm is null"); ...
public class class_name { public String createHash(final String iInput, final String iAlgorithm, final boolean iIncludeAlgorithm) { if (iInput == null) throw new IllegalArgumentException("Input string is null"); if (iAlgorithm == null) throw new IllegalArgumentException("Algorithm is null"); ...
public class class_name { public void setPattern(final ConwayPattern pattern) { final boolean[][] gridData = pattern.getPattern(); int gridWidth = gridData[0].length; int gridHeight = gridData.length; int columnOffset = 0; int rowOffset = 0; if ( gridWidth > getNumberO...
public class class_name { public void setPattern(final ConwayPattern pattern) { final boolean[][] gridData = pattern.getPattern(); int gridWidth = gridData[0].length; int gridHeight = gridData.length; int columnOffset = 0; int rowOffset = 0; if ( gridWidth > getNumberO...