code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public void append(ILoggingEvent eventObject) { if (isStarted()) { try { clearExpiredLogs(db); SQLiteStatement stmt = db.compileStatement(insertSQL); try { db.beginTransaction(); long eventId = subAppend(eventObject, stmt); ...
public class class_name { @Override public void append(ILoggingEvent eventObject) { if (isStarted()) { try { clearExpiredLogs(db); // depends on control dependency: [try], data = [none] SQLiteStatement stmt = db.compileStatement(insertSQL); try { db.beginTransaction(); // ...
public class class_name { public ThumbnailDownload getThumbnail(String path, ThumbnailSize size, ThumbnailFormat format) { OAuthRequest request = new OAuthRequest(Verb.GET, THUMBNAILS_URL + encode(path)); if (size != THUMBNAIL_SIZE) { request.addQuerystringParameter("size", size.toString()...
public class class_name { public ThumbnailDownload getThumbnail(String path, ThumbnailSize size, ThumbnailFormat format) { OAuthRequest request = new OAuthRequest(Verb.GET, THUMBNAILS_URL + encode(path)); if (size != THUMBNAIL_SIZE) { request.addQuerystringParameter("size", size.toString()...
public class class_name { @Nonnull public PSSpan readSpanFromXML (@Nonnull final IMicroElement eSpan) { final PSSpan ret = new PSSpan (); eSpan.forAllAttributes ( (sNS, sAttrName, sVal) -> { final String sAttrValue = _getAttributeValue (sVal); if (sAttrName.equals (CSchematronXML.ATTR_CLASS)) ...
public class class_name { @Nonnull public PSSpan readSpanFromXML (@Nonnull final IMicroElement eSpan) { final PSSpan ret = new PSSpan (); eSpan.forAllAttributes ( (sNS, sAttrName, sVal) -> { final String sAttrValue = _getAttributeValue (sVal); if (sAttrName.equals (CSchematronXML.ATTR_CLASS)) ...
public class class_name { private static boolean checkCollide(Area area, Collidable other) { final List<Rectangle> others = other.getCollisionBounds(); final int size = others.size(); for (int i = 0; i < size; i++) { final Area current = others.get(i); ...
public class class_name { private static boolean checkCollide(Area area, Collidable other) { final List<Rectangle> others = other.getCollisionBounds(); final int size = others.size(); for (int i = 0; i < size; i++) { final Area current = others.get(i); ...
public class class_name { public Integer getIndent() { if (!"yes".equals(get(OutputKeys.INDENT))) { return null; } String value = get(INDENT_AMT); return (value == null) ? null : Integer.valueOf(value); } }
public class class_name { public Integer getIndent() { if (!"yes".equals(get(OutputKeys.INDENT))) { return null; // depends on control dependency: [if], data = [none] } String value = get(INDENT_AMT); return (value == null) ? null : Integer.valueOf(value); } }
public class class_name { public static void convertRowToBlock( int numRows , int numCols , int blockLength , double[] data, double[] tmp ) { int minLength = Math.min( blockLength , numRows ) * numCols; if( tmp.length < minLength ) { throw new I...
public class class_name { public static void convertRowToBlock( int numRows , int numCols , int blockLength , double[] data, double[] tmp ) { int minLength = Math.min( blockLength , numRows ) * numCols; if( tmp.length < minLength ) { throw new I...
public class class_name { public void marshall(DescribeDatasetRequest describeDatasetRequest, ProtocolMarshaller protocolMarshaller) { if (describeDatasetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(DescribeDatasetRequest describeDatasetRequest, ProtocolMarshaller protocolMarshaller) { if (describeDatasetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public static CollisionCategory imports(Xml root, MapTileCollision map) { Check.notNull(root); Check.notNull(map); final Collection<Xml> children = root.getChildren(TileGroupsConfig.NODE_GROUP); final Collection<CollisionGroup> groups = new ArrayList...
public class class_name { public static CollisionCategory imports(Xml root, MapTileCollision map) { Check.notNull(root); Check.notNull(map); final Collection<Xml> children = root.getChildren(TileGroupsConfig.NODE_GROUP); final Collection<CollisionGroup> groups = new ArrayList...
public class class_name { public Observable<ServiceResponse<VnetGatewayInner>> updateVnetGatewayWithServiceResponseAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentExcep...
public class class_name { public Observable<ServiceResponse<VnetGatewayInner>> updateVnetGatewayWithServiceResponseAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentExcep...
public class class_name { public double[][] inverse() { // Build permuted identity matrix efficiently: double[][] b = new double[piv.length][m]; for(int i = 0; i < piv.length; i++) { b[piv[i]][i] = 1.; } return solveInplace(b); } }
public class class_name { public double[][] inverse() { // Build permuted identity matrix efficiently: double[][] b = new double[piv.length][m]; for(int i = 0; i < piv.length; i++) { b[piv[i]][i] = 1.; // depends on control dependency: [for], data = [i] } return solveInplace(b); } }
public class class_name { protected void addFacesListener(FacesListener listener) { if (listener == null) { throw new NullPointerException(); } if (listeners == null) { listeners = new AttachedObjectListHolder<FacesListener>(); } listeners.add(listener...
public class class_name { protected void addFacesListener(FacesListener listener) { if (listener == null) { throw new NullPointerException(); } if (listeners == null) { listeners = new AttachedObjectListHolder<FacesListener>(); // depends on control dependency: [if], d...
public class class_name { public void addSeed(String pageUrl, int docId) throws IOException, InterruptedException { String canonicalUrl = URLCanonicalizer.getCanonicalURL(pageUrl); if (canonicalUrl == null) { logger.error("Invalid seed URL: {}", pageUrl); } else { if (do...
public class class_name { public void addSeed(String pageUrl, int docId) throws IOException, InterruptedException { String canonicalUrl = URLCanonicalizer.getCanonicalURL(pageUrl); if (canonicalUrl == null) { logger.error("Invalid seed URL: {}", pageUrl); } else { if (do...
public class class_name { public static String getFileName(String filePath) { if (filePath == null) { return filePath; } int index = filePath.lastIndexOf(File.separator); if (index == -1) { return filePath; } return filePath.substring(index + 1); } }
public class class_name { public static String getFileName(String filePath) { if (filePath == null) { return filePath; // depends on control dependency: [if], data = [none] } int index = filePath.lastIndexOf(File.separator); if (index == -1) { return filePath; // depends on control dependency: [if], data...
public class class_name { private static void tryAutoAttachingWithConnection(SlotReference slot, Client client) throws IOException, InterruptedException, TimeoutException { // Keeps track of the files we might be able to auto-attach, grouped and sorted by the playlist they // were created from, where p...
public class class_name { private static void tryAutoAttachingWithConnection(SlotReference slot, Client client) throws IOException, InterruptedException, TimeoutException { // Keeps track of the files we might be able to auto-attach, grouped and sorted by the playlist they // were created from, where p...
public class class_name { @Override public void cleanSnapshots() { File[] files = getFilesByType(HollowProducer.Blob.Type.SNAPSHOT.prefix); if(files == null || files.length <= numOfSnapshotsToKeep) { return; } sortByLastModified(files); for(int i= numOfSnapsho...
public class class_name { @Override public void cleanSnapshots() { File[] files = getFilesByType(HollowProducer.Blob.Type.SNAPSHOT.prefix); if(files == null || files.length <= numOfSnapshotsToKeep) { return; // depends on control dependency: [if], data = [none] } sortB...
public class class_name { public Tunnel getTunnel( String destinationHostname, int destinationPort ) { // might be better to cache, but dont anticipate massive numbers // of tunnel connections... for ( TunnelConnection tunnelConnection : tunnelConnections ) { Tunnel tunnel = tunnelC...
public class class_name { public Tunnel getTunnel( String destinationHostname, int destinationPort ) { // might be better to cache, but dont anticipate massive numbers // of tunnel connections... for ( TunnelConnection tunnelConnection : tunnelConnections ) { Tunnel tunnel = tunnelC...
public class class_name { private void removeNode(Node node) { result.remove(node); for (Edge edge : node.getUpstream()) { result.remove(edge); } for (Edge edge : node.getDownstream()) { result.remove(edge); } } }
public class class_name { private void removeNode(Node node) { result.remove(node); for (Edge edge : node.getUpstream()) { result.remove(edge); // depends on control dependency: [for], data = [edge] } for (Edge edge : node.getDownstream()) { result.remove(edge); // depends on control dependency: [...
public class class_name { public static final SerIterator array( final Object[] array, final Class<?> declaredType, final Class<?> valueType) { return new SerIterator() { private int index = -1; @Override public String metaTypeName() { return met...
public class class_name { public static final SerIterator array( final Object[] array, final Class<?> declaredType, final Class<?> valueType) { return new SerIterator() { private int index = -1; @Override public String metaTypeName() { return met...
public class class_name { public static double Inverse(double y0) { if (y0 <= 0.0) { if (y0 == 0) return Double.NEGATIVE_INFINITY; try { throw new IllegalArgumentException("y0"); } catch (Exception e) { e.printStackTrace(); } ...
public class class_name { public static double Inverse(double y0) { if (y0 <= 0.0) { if (y0 == 0) return Double.NEGATIVE_INFINITY; try { throw new IllegalArgumentException("y0"); } catch (Exception e) { e.printStackTrace(); } // de...
public class class_name { public void destroy() { if (mContentView != null) { if (mGroupBasicAdapter != null) { mGroupBasicAdapter.destroy(); } mContentView.setAdapter(null); mContentView = null; } TimerSupport timerSupport = getSe...
public class class_name { public void destroy() { if (mContentView != null) { if (mGroupBasicAdapter != null) { mGroupBasicAdapter.destroy(); // depends on control dependency: [if], data = [none] } mContentView.setAdapter(null); // depends on control dependen...
public class class_name { public void requestFinished(final String sessionId, final String requestId) { if(!_sticky) { final MemcachedBackupSession msmSession = _manager.getSessionInternal( sessionId ); if ( msmSession == null ) { if(_log.isDebugEnabled()) ...
public class class_name { public void requestFinished(final String sessionId, final String requestId) { if(!_sticky) { final MemcachedBackupSession msmSession = _manager.getSessionInternal( sessionId ); if ( msmSession == null ) { if(_log.isDebugEnabled()) ...
public class class_name { public int getFailOnCVSS() { if (line.hasOption(ARGUMENT.FAIL_ON_CVSS)) { final String value = line.getOptionValue(ARGUMENT.FAIL_ON_CVSS); try { return Integer.parseInt(value); } catch (NumberFormatException nfe) { re...
public class class_name { public int getFailOnCVSS() { if (line.hasOption(ARGUMENT.FAIL_ON_CVSS)) { final String value = line.getOptionValue(ARGUMENT.FAIL_ON_CVSS); try { return Integer.parseInt(value); // depends on control dependency: [try], data = [none] }...
public class class_name { public void onAuthenticationFailure(BoxAuthenticationInfo infoOriginal, Exception ex) { String msg = "failure:"; if (getAuthStorage() != null) { msg += "auth storage :" + getAuthStorage().toString(); } BoxAuthenticationInfo info = BoxAuthenticationI...
public class class_name { public void onAuthenticationFailure(BoxAuthenticationInfo infoOriginal, Exception ex) { String msg = "failure:"; if (getAuthStorage() != null) { msg += "auth storage :" + getAuthStorage().toString(); // depends on control dependency: [if], data = [none] } ...
public class class_name { protected void exportProject(Element parent, CmsProject project) throws CmsImportExportException, SAXException { I_CmsReport report = getReport(); CmsDefaultUsers defaultUsers = OpenCms.getDefaultUsers(); String users; try { users = getCms().readG...
public class class_name { protected void exportProject(Element parent, CmsProject project) throws CmsImportExportException, SAXException { I_CmsReport report = getReport(); CmsDefaultUsers defaultUsers = OpenCms.getDefaultUsers(); String users; try { users = getCms().readG...
public class class_name { public static double elementMin( DMatrixSparseCSC A ) { if( A.nz_length == 0) return 0; // if every element is assigned a value then the first element can be a minimum. // Otherwise zero needs to be considered double min = A.isFull() ? A.nz_values[...
public class class_name { public static double elementMin( DMatrixSparseCSC A ) { if( A.nz_length == 0) return 0; // if every element is assigned a value then the first element can be a minimum. // Otherwise zero needs to be considered double min = A.isFull() ? A.nz_values[...
public class class_name { @CheckResult @Override public boolean shareTraces(String fullTraces) { try { shareTracesInternal(fullTraces); return true; } catch (RuntimeException exception1) { // Likely cause is a TransactionTooLargeException on API levels 15+. try { /* * Limit t...
public class class_name { @CheckResult @Override public boolean shareTraces(String fullTraces) { try { shareTracesInternal(fullTraces); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (RuntimeException exception1) { ...
public class class_name { public static void real( TupleDesc_F64 input , TupleDesc_S8 output ) { double max = 0; for( int i = 0; i < input.size(); i++ ) { double v = Math.abs(input.value[i]); if( v > max ) max = v; } for( int i = 0; i < input.size(); i++ ) { output.value[i] = (byte)(127.0*input.v...
public class class_name { public static void real( TupleDesc_F64 input , TupleDesc_S8 output ) { double max = 0; for( int i = 0; i < input.size(); i++ ) { double v = Math.abs(input.value[i]); if( v > max ) max = v; } for( int i = 0; i < input.size(); i++ ) { output.value[i] = (byte)(127.0*input.v...
public class class_name { public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception { base_responses result = null; if (ipv6address != null && ipv6address.length > 0) { nsip6 deleteresources[] = new nsip6[ipv6address.length]; for (int i=0;i<ipv6address.length;i++){ ...
public class class_name { public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception { base_responses result = null; if (ipv6address != null && ipv6address.length > 0) { nsip6 deleteresources[] = new nsip6[ipv6address.length]; for (int i=0;i<ipv6address.length;i++){ ...
public class class_name { protected void orderNode(SquareNode target, SquareNode node, boolean pointingX) { int index0 = findIntersection(target,node); int index1 = (index0+1)%4; int index2 = (index0+2)%4; int index3 = (index0+3)%4; if( index0 < 0 ) throw new RuntimeException("Couldn't find intersectio...
public class class_name { protected void orderNode(SquareNode target, SquareNode node, boolean pointingX) { int index0 = findIntersection(target,node); int index1 = (index0+1)%4; int index2 = (index0+2)%4; int index3 = (index0+3)%4; if( index0 < 0 ) throw new RuntimeException("Couldn't find intersectio...
public class class_name { public void marshall(TransitionState transitionState, ProtocolMarshaller protocolMarshaller) { if (transitionState == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transit...
public class class_name { public void marshall(TransitionState transitionState, ProtocolMarshaller protocolMarshaller) { if (transitionState == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transit...
public class class_name { public void setEcsServices(java.util.Collection<ECSService> ecsServices) { if (ecsServices == null) { this.ecsServices = null; return; } this.ecsServices = new com.amazonaws.internal.SdkInternalList<ECSService>(ecsServices); } }
public class class_name { public void setEcsServices(java.util.Collection<ECSService> ecsServices) { if (ecsServices == null) { this.ecsServices = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void updateEligibility() { checkState(Thread.holdsLock(root), "Must hold lock to update eligibility"); synchronized (root) { if (!parent.isPresent()) { return; } if (isEligibleToStartNext()) { pare...
public class class_name { private void updateEligibility() { checkState(Thread.holdsLock(root), "Must hold lock to update eligibility"); synchronized (root) { if (!parent.isPresent()) { return; // depends on control dependency: [if], data = [none] } ...
public class class_name { protected String getTitle(final String input, final char startDelim) { if (isStringNullOrEmpty(input)) { return null; } else { return ProcessorUtilities.cleanXMLCharacterReferences(StringUtilities.split(input, startDelim)[0].trim()); } } }
public class class_name { protected String getTitle(final String input, final char startDelim) { if (isStringNullOrEmpty(input)) { return null; // depends on control dependency: [if], data = [none] } else { return ProcessorUtilities.cleanXMLCharacterReferences(StringUtilities.sp...
public class class_name { @Override protected UserTransaction locateUserTransaction() { try { return TransactionManagerLocator.INSTANCE.getUserTransaction(); } catch (Exception e) { throw new HibernateException(e); } } }
public class class_name { @Override protected UserTransaction locateUserTransaction() { try { return TransactionManagerLocator.INSTANCE.getUserTransaction(); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new HibernateException(e); ...
public class class_name { protected void start() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start"); // We call start regardless of whether this is synchronous or async if (coreConsumerSession != null) { ...
public class class_name { protected void start() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start"); // We call start regardless of whether this is synchronous or async if (coreConsumerSession != null) { ...
public class class_name { protected static GraphicsConfiguration getDefGC () { if (_gc == null) { // obtain information on our graphics environment try { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ...
public class class_name { protected static GraphicsConfiguration getDefGC () { if (_gc == null) { // obtain information on our graphics environment try { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ...
public class class_name { private void handleChannelCallback(final String message) { // Channel callback updateConnectionHeartbeat(); // JSON callback final JSONArray jsonArray = new JSONArray(new JSONTokener(message)); if(connectionFeatureManager.isConnectionFeatureActive(BitfinexConnectionFeature.SEQ_ALL...
public class class_name { private void handleChannelCallback(final String message) { // Channel callback updateConnectionHeartbeat(); // JSON callback final JSONArray jsonArray = new JSONArray(new JSONTokener(message)); if(connectionFeatureManager.isConnectionFeatureActive(BitfinexConnectionFeature.SEQ_ALL...
public class class_name { public final int pageY() { if (getTouches() != null && getTouches().length() > 0) { return getTouches().get(0).getPageY(); } else { return getClientY() + GQuery.document.getScrollTop(); } } }
public class class_name { public final int pageY() { if (getTouches() != null && getTouches().length() > 0) { return getTouches().get(0).getPageY(); // depends on control dependency: [if], data = [none] } else { return getClientY() + GQuery.document.getScrollTop(); // depends on control dependency...
public class class_name { @Override public Object preInvoke(EJSDeployedSupport s, ContainerTx tx) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "preInvoke : " + this); // If this is co...
public class class_name { @Override public Object preInvoke(EJSDeployedSupport s, ContainerTx tx) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "preInvoke : " + this); // If this is co...
public class class_name { private static <C extends Component<C, I>, I extends IInterface> void bindToService(final Context context, final Descriptor<C, I> descriptor, final ConnectionCallback<C> callback) { Intent intent = new Intent(); intent.setComponent(SPFInfo.getSPFServiceComponentName()); intent.setActio...
public class class_name { private static <C extends Component<C, I>, I extends IInterface> void bindToService(final Context context, final Descriptor<C, I> descriptor, final ConnectionCallback<C> callback) { Intent intent = new Intent(); intent.setComponent(SPFInfo.getSPFServiceComponentName()); intent.setActio...
public class class_name { @Action(name = "Update Property Value", outputs = { @Output(RETURN_CODE), @Output(RETURN_RESULT), @Output(EXCEPTION), @Output(STDERR) }, responses = { @Respo...
public class class_name { @Action(name = "Update Property Value", outputs = { @Output(RETURN_CODE), @Output(RETURN_RESULT), @Output(EXCEPTION), @Output(STDERR) }, responses = { @Respo...
public class class_name { protected void cleanFile(String path) { try { PrintWriter writer; writer = new PrintWriter(path); writer.print(""); writer.close(); } catch (FileNotFoundException e) { throw new RuntimeException("An error occurred while cleaning the file: " + e.getMessage(), e); } } }
public class class_name { protected void cleanFile(String path) { try { PrintWriter writer; writer = new PrintWriter(path); // depends on control dependency: [try], data = [none] writer.print(""); // depends on control dependency: [try], data = [none] writer.close(); // depends on control dependency: [tr...
public class class_name { private static String getCommonSymbol(IBond bondA, IBond bondB) { String symbol = ""; if (bondA.contains(bondB.getBegin())) { symbol = bondB.getBegin().getSymbol(); } else if (bondA.contains(bondB.getEnd())) { symbol = bondB.getEnd().getSymbol(...
public class class_name { private static String getCommonSymbol(IBond bondA, IBond bondB) { String symbol = ""; if (bondA.contains(bondB.getBegin())) { symbol = bondB.getBegin().getSymbol(); // depends on control dependency: [if], data = [none] } else if (bondA.contains(bondB.getEn...
public class class_name { private void split(Block<S, L> splitter) { // STEP 1: Collect the states that have outgoing edges // pointing to states inside the currently considered blocks. // Also, a list of transition labels occuring on these // edges is created. for (State<S, L> ...
public class class_name { private void split(Block<S, L> splitter) { // STEP 1: Collect the states that have outgoing edges // pointing to states inside the currently considered blocks. // Also, a list of transition labels occuring on these // edges is created. for (State<S, L> ...
public class class_name { private synchronized void reconnect() { XMPPConnection connection = this.weakRefConnection.get(); if (connection == null) { LOGGER.fine("Connection is null, will not reconnect"); return; } // Since there is no thread running, creates a n...
public class class_name { private synchronized void reconnect() { XMPPConnection connection = this.weakRefConnection.get(); if (connection == null) { LOGGER.fine("Connection is null, will not reconnect"); // depends on control dependency: [if], data = [none] return; // depends o...
public class class_name { @SuppressWarnings("ResultOfMethodCallIgnored") static private void deleteDirectory(File path) { if (path.exists()) { //noinspection ConstantConditions for (File f : path.listFiles()) { if (f.isDirectory()) { deleteDirecto...
public class class_name { @SuppressWarnings("ResultOfMethodCallIgnored") static private void deleteDirectory(File path) { if (path.exists()) { //noinspection ConstantConditions for (File f : path.listFiles()) { if (f.isDirectory()) { deleteDirecto...
public class class_name { private void expandTo(int wordIndex) { int wordsRequired = wordIndex + 1; if (firstEmptyWord < wordsRequired) { ensureCapacity(wordsRequired); firstEmptyWord = wordsRequired; } } }
public class class_name { private void expandTo(int wordIndex) { int wordsRequired = wordIndex + 1; if (firstEmptyWord < wordsRequired) { ensureCapacity(wordsRequired); // depends on control dependency: [if], data = [wordsRequired)] firstEmptyWord = wordsRequired; // depends on control depe...
public class class_name { @Override public Map<String, JdbcType> retrieveDateColumns(String database, String table) throws SQLException { Map<String, JdbcType> targetDataTypes = ImmutableMap.<String, JdbcType>builder().put("DATE", JdbcType.DATE).put("TIME WITH TIME ZONE", JdbcType.TIME) ...
public class class_name { @Override public Map<String, JdbcType> retrieveDateColumns(String database, String table) throws SQLException { Map<String, JdbcType> targetDataTypes = ImmutableMap.<String, JdbcType>builder().put("DATE", JdbcType.DATE).put("TIME WITH TIME ZONE", JdbcType.TIME) ...
public class class_name { public static IPath getGlobalSARLOutputPath() { final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL); final IOutputConfigurationProvider configurationProvider = injector.getInstance(IOutputConfigurationProvider.class); final OutputConfig...
public class class_name { public static IPath getGlobalSARLOutputPath() { final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL); final IOutputConfigurationProvider configurationProvider = injector.getInstance(IOutputConfigurationProvider.class); final OutputConfig...
public class class_name { @SuppressWarnings("unchecked") public static <E, T> PageResult<T> createPage(final Iterable<? extends E> entries, final PageRequest pageRequest, final long totalSize, final PageEntryTransformer<T, E> transformer) { final PageResul...
public class class_name { @SuppressWarnings("unchecked") public static <E, T> PageResult<T> createPage(final Iterable<? extends E> entries, final PageRequest pageRequest, final long totalSize, final PageEntryTransformer<T, E> transformer) { final PageResul...
public class class_name { @SuppressWarnings("deprecation") @SuppressLint("NewApi") private void addLinkToClipBoard(String url, String label) { int sdk = android.os.Build.VERSION.SDK_INT; if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { android.text.ClipboardManager clipboard = ...
public class class_name { @SuppressWarnings("deprecation") @SuppressLint("NewApi") private void addLinkToClipBoard(String url, String label) { int sdk = android.os.Build.VERSION.SDK_INT; if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { android.text.ClipboardManager clipboard = ...
public class class_name { public void marshall(NewBGPPeer newBGPPeer, ProtocolMarshaller protocolMarshaller) { if (newBGPPeer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(newBGPPeer.getAsn(), A...
public class class_name { public void marshall(NewBGPPeer newBGPPeer, ProtocolMarshaller protocolMarshaller) { if (newBGPPeer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(newBGPPeer.getAsn(), A...
public class class_name { public static void decodeProperties(Set<PropertyCriteria> properties, String encoded) { if (encoded != null && !encoded.trim().isEmpty()) { StringTokenizer st = new StringTokenizer(encoded, ","); while (st.hasMoreTokens()) { String token = st.ne...
public class class_name { public static void decodeProperties(Set<PropertyCriteria> properties, String encoded) { if (encoded != null && !encoded.trim().isEmpty()) { StringTokenizer st = new StringTokenizer(encoded, ","); while (st.hasMoreTokens()) { String token = st.ne...
public class class_name { public DescribeProductAsAdminResult withTagOptions(TagOptionDetail... tagOptions) { if (this.tagOptions == null) { setTagOptions(new java.util.ArrayList<TagOptionDetail>(tagOptions.length)); } for (TagOptionDetail ele : tagOptions) { this.tagOpt...
public class class_name { public DescribeProductAsAdminResult withTagOptions(TagOptionDetail... tagOptions) { if (this.tagOptions == null) { setTagOptions(new java.util.ArrayList<TagOptionDetail>(tagOptions.length)); // depends on control dependency: [if], data = [none] } for (TagOp...
public class class_name { public Expression<java.util.Date> in(java.util.Date[] value) { SimpleDateFormat formatter = getDateTimeFormatter(); String valueString = ""; Boolean firstCalendar = true; for (Date v : value) { if (firstCalendar) { valueString = valueString.concat("('").concat(formatter.format(...
public class class_name { public Expression<java.util.Date> in(java.util.Date[] value) { SimpleDateFormat formatter = getDateTimeFormatter(); String valueString = ""; Boolean firstCalendar = true; for (Date v : value) { if (firstCalendar) { valueString = valueString.concat("('").concat(formatter.format(...
public class class_name { @Override public void processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument) { try { locker.acquire(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); StringBuilder builder = new StringBuil...
public class class_name { @Override public void processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument) { try { locker.acquire(); // depends on control dependency: [try], data = [none] SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS...
public class class_name { private StringBuffer getArgsString(Object[] args) { StringBuffer buffer = new StringBuffer(); String prefix = "args "; for (int i = 0; i < args.length; i++) { if (args.length > 1) { buffer.append(prefix + (i + 1)); } ...
public class class_name { private StringBuffer getArgsString(Object[] args) { StringBuffer buffer = new StringBuffer(); String prefix = "args "; for (int i = 0; i < args.length; i++) { if (args.length > 1) { buffer.append(prefix + (i + 1)); // depends on control depe...
public class class_name { public static M2MEntity extractEntityManagedByDAO(TypeElement daoElement) { ClassName entity1 = null; ClassName entity2 = null; String prefixId = null; String tableName = null; String entityName = null; PackageElement pkg = null; String packageName = null; boolean needToCreate...
public class class_name { public static M2MEntity extractEntityManagedByDAO(TypeElement daoElement) { ClassName entity1 = null; ClassName entity2 = null; String prefixId = null; String tableName = null; String entityName = null; PackageElement pkg = null; String packageName = null; boolean needToCreate...
public class class_name { @Override public <N extends SpatialComparable> List<List<N>> partition(List<N> spatialObjects, int minEntries, int maxEntries) { List<List<N>> partitions = new ArrayList<>(); List<N> objects = new ArrayList<>(spatialObjects); while (!objects.isEmpty()) { StringBuilder msg...
public class class_name { @Override public <N extends SpatialComparable> List<List<N>> partition(List<N> spatialObjects, int minEntries, int maxEntries) { List<List<N>> partitions = new ArrayList<>(); List<N> objects = new ArrayList<>(spatialObjects); while (!objects.isEmpty()) { StringBuilder msg...
public class class_name { @Nonnull public PSDir readDirFromXML (@Nonnull final IMicroElement eDir) { final PSDir ret = new PSDir (); eDir.forAllAttributes ( (sNS, sAttrName, sVal) -> { final String sAttrValue = _getAttributeValue (sVal); if (sAttrName.equals (CSchematronXML.ATTR_VALUE)) ...
public class class_name { @Nonnull public PSDir readDirFromXML (@Nonnull final IMicroElement eDir) { final PSDir ret = new PSDir (); eDir.forAllAttributes ( (sNS, sAttrName, sVal) -> { final String sAttrValue = _getAttributeValue (sVal); if (sAttrName.equals (CSchematronXML.ATTR_VALUE)) ...
public class class_name { private void init( List<CalibrationObservation> observations ) { int totalPoints = 0; for (int i = 0; i < observations.size(); i++) { totalPoints += observations.get(i).size(); } A.reshape(2*totalPoints,X.numRows,false); B.reshape(A.numRows,1,false); } }
public class class_name { private void init( List<CalibrationObservation> observations ) { int totalPoints = 0; for (int i = 0; i < observations.size(); i++) { totalPoints += observations.get(i).size(); // depends on control dependency: [for], data = [i] } A.reshape(2*totalPoints,X.numRows,false); B.res...
public class class_name { public Long getLongProperty(String pstrSection, String pstrProp) { Long lngRet = null; String strVal = null; INIProperty objProp = null; INISection objSec = null; objSec = (INISection) this.mhmapSections.get(pstrSection); ...
public class class_name { public Long getLongProperty(String pstrSection, String pstrProp) { Long lngRet = null; String strVal = null; INIProperty objProp = null; INISection objSec = null; objSec = (INISection) this.mhmapSections.get(pstrSection); ...
public class class_name { public Map<String, Set<Privilege>> ymlToPrivileges(String yml) { try { Map<String, Set<Privilege>> map = mapper.readValue(yml, new TypeReference<TreeMap<String, TreeSet<Privilege>>>() { }); map.forEach((msName, privileges) -> pri...
public class class_name { public Map<String, Set<Privilege>> ymlToPrivileges(String yml) { try { Map<String, Set<Privilege>> map = mapper.readValue(yml, new TypeReference<TreeMap<String, TreeSet<Privilege>>>() { }); map.forEach((msName, privileges) -> pri...
public class class_name { private static Object[] getInitParameters(Class<?>[] parameterTypes) { int length = parameterTypes.length; Object[] result = new Object[length]; for (int i = 0; i < length; i++) { if (parameterTypes[i].isPrimitive()) { Object init = ClassUti...
public class class_name { private static Object[] getInitParameters(Class<?>[] parameterTypes) { int length = parameterTypes.length; Object[] result = new Object[length]; for (int i = 0; i < length; i++) { if (parameterTypes[i].isPrimitive()) { Object init = ClassUti...
public class class_name { @AsParameterConverter public Trader retrieveTrader(String name) { for (Trader trader : traders) { if (trader.getName().equals(name)) { return trader; } } return mockTradePersister().retrieveTrader(name); } }
public class class_name { @AsParameterConverter public Trader retrieveTrader(String name) { for (Trader trader : traders) { if (trader.getName().equals(name)) { return trader; // depends on control dependency: [if], data = [none] } } return mockTradePersister().retrieveTrader(name); } }
public class class_name { @NoAuth @RequestMapping(value = "/signin", method = RequestMethod.POST) @ResponseBody public JsonObjectBase signin(@Valid SigninForm signin, HttpServletRequest request) { LOG.info(signin.toString()); // 验证 authValidator.validateLogin(signin); // ...
public class class_name { @NoAuth @RequestMapping(value = "/signin", method = RequestMethod.POST) @ResponseBody public JsonObjectBase signin(@Valid SigninForm signin, HttpServletRequest request) { LOG.info(signin.toString()); // 验证 authValidator.validateLogin(signin); // ...
public class class_name { public void reportScreencastRecording(@Observes AfterVideoRecorded event, ReporterConfiguration reporterConfiguration) { Path videoLocation = event.getVideoLocation(); if (videoLocation != null) { videoLocation = Paths.get(videoLocation.toString().replace("flv",...
public class class_name { public void reportScreencastRecording(@Observes AfterVideoRecorded event, ReporterConfiguration reporterConfiguration) { Path videoLocation = event.getVideoLocation(); if (videoLocation != null) { videoLocation = Paths.get(videoLocation.toString().replace("flv",...
public class class_name { public Character toCharacter(final Object value, final Character defaultValue) { final Character result = toCharacter(value); if (result == null) { return defaultValue; } return result; } }
public class class_name { public Character toCharacter(final Object value, final Character defaultValue) { final Character result = toCharacter(value); if (result == null) { return defaultValue; // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { @SafeVarargs public static <M extends AbstractModule> Injector injector(Class<M>... modules) { List<String> names = new ArrayList<String>(modules.length); for (Class<?> klass : modules) { names.add(klass.getName()); } return ngo.injector(JSArray...
public class class_name { @SafeVarargs public static <M extends AbstractModule> Injector injector(Class<M>... modules) { List<String> names = new ArrayList<String>(modules.length); for (Class<?> klass : modules) { names.add(klass.getName()); // depends on control dependency: [for], data...
public class class_name { @SuppressWarnings("squid:S3752") // multiple methods required @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}) public String forwardDefaultMenuDefaultPlugin(Model model) { Menu menu = menuReaderService .getMenu() .orElseThrow(() -> new ...
public class class_name { @SuppressWarnings("squid:S3752") // multiple methods required @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}) public String forwardDefaultMenuDefaultPlugin(Model model) { Menu menu = menuReaderService .getMenu() .orElseThrow(() -> new ...
public class class_name { public void emitItem(Object n) { Level lvl = currentLevel(); switch(lvl.status) { case seq: { Level parent = parentLevel(); if(parent.status == LevelStatus.mapx && lvl.ncount == 0) { if(parent.ncount % 2 == 0 && lvl.anctag == 0) ...
public class class_name { public void emitItem(Object n) { Level lvl = currentLevel(); switch(lvl.status) { case seq: { Level parent = parentLevel(); if(parent.status == LevelStatus.mapx && lvl.ncount == 0) { if(parent.ncount % 2 == 0 && lvl.anctag == 0) ...
public class class_name { @SuppressWarnings("unchecked") public void postValidate(Object object) throws DataValidationException { if (_values != null || _ranges != null) { if (_values != null) for (Object value: _values) { if (value.equals(object)) return; } ...
public class class_name { @SuppressWarnings("unchecked") public void postValidate(Object object) throws DataValidationException { if (_values != null || _ranges != null) { if (_values != null) for (Object value: _values) { if (value.equals(object)) return; } ...
public class class_name { public static synchronized UserGroupInformation login(String principal, String keytab) { // resolve the requested principal, if it is present String finalPrincipal = null; if (principal != null && !principal.isEmpty()) { try {...
public class class_name { public static synchronized UserGroupInformation login(String principal, String keytab) { // resolve the requested principal, if it is present String finalPrincipal = null; if (principal != null && !principal.isEmpty()) { try {...
public class class_name { Item newHandleItem(final int tag, final String owner, final String name, final String desc, final boolean itf) { key4.set(HANDLE_BASE + tag, owner, name, desc); Item result = get(key4); if (result == null) { if (tag <= Opcodes.H_PUTSTATIC) { ...
public class class_name { Item newHandleItem(final int tag, final String owner, final String name, final String desc, final boolean itf) { key4.set(HANDLE_BASE + tag, owner, name, desc); Item result = get(key4); if (result == null) { if (tag <= Opcodes.H_PUTSTATIC) { ...
public class class_name { public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_3=null; Token otherlv_5=null; Token otherlv_7=null; Token otherlv_9=null; Token otherlv_1...
public class class_name { public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_3=null; Token otherlv_5=null; Token otherlv_7=null; Token otherlv_9=null; Token otherlv_1...
public class class_name { public <T> T parse(CharSequence text, TemporalQuery<T> query) { Objects.requireNonNull(text, "text"); Objects.requireNonNull(query, "query"); try { return parseResolved0(text, null).query(query); } catch (DateTimeParseException ex) { thr...
public class class_name { public <T> T parse(CharSequence text, TemporalQuery<T> query) { Objects.requireNonNull(text, "text"); Objects.requireNonNull(query, "query"); try { return parseResolved0(text, null).query(query); // depends on control dependency: [try], data = [none] ...
public class class_name { void printBootstrapInfo(BootstrapInfo bsInfo) { if (bsInfo == null) return; Log.d(LOGTAG, "printBootstrapInfo"); List<BootstrapProfile> profiles = bsInfo.getProfiles(); if (profiles != null) { for (BootstrapProfile profile : profiles) { Log.d(LOGTAG, profile.toS...
public class class_name { void printBootstrapInfo(BootstrapInfo bsInfo) { if (bsInfo == null) return; Log.d(LOGTAG, "printBootstrapInfo"); List<BootstrapProfile> profiles = bsInfo.getProfiles(); if (profiles != null) { for (BootstrapProfile profile : profiles) { Log.d(LOGTAG, profile.toS...
public class class_name { protected String getDeclaratorSimpleName(JvmIdentifiableElement element) { if (element instanceof JvmConstructor) { return null; } if (element instanceof JvmMember) { return ((JvmMember) element).getDeclaringType().getSimpleName(); } return null; } }
public class class_name { protected String getDeclaratorSimpleName(JvmIdentifiableElement element) { if (element instanceof JvmConstructor) { return null; // depends on control dependency: [if], data = [none] } if (element instanceof JvmMember) { return ((JvmMember) element).getDeclaringType().getSimpleNam...
public class class_name { private void findMissingParityFiles(String[] args, int startIndex) { boolean restoreReplication = false; Path root = null; for (int i = startIndex; i < args.length; i++) { String arg = args[i]; if (arg.equals("-r")) { restoreReplication = true; } else { ...
public class class_name { private void findMissingParityFiles(String[] args, int startIndex) { boolean restoreReplication = false; Path root = null; for (int i = startIndex; i < args.length; i++) { String arg = args[i]; if (arg.equals("-r")) { restoreReplication = true; // depends on co...
public class class_name { <T> void finish(Request<T> request) { // Remove from the set of requests currently being processed. synchronized (currentRequests) { currentRequests.remove(request); } if (request.shouldCache()) { synchronized (waitingRequests) { ...
public class class_name { <T> void finish(Request<T> request) { // Remove from the set of requests currently being processed. synchronized (currentRequests) { currentRequests.remove(request); } if (request.shouldCache()) { synchronized (waitingRequests) { // depe...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders>> listPoolNodeCountsNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and c...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders>> listPoolNodeCountsNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and c...
public class class_name { public void marshall(Resource resource, ProtocolMarshaller protocolMarshaller) { if (resource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(resource.getType(), TYPE_BIN...
public class class_name { public void marshall(Resource resource, ProtocolMarshaller protocolMarshaller) { if (resource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(resource.getType(), TYPE_BIN...
public class class_name { public void marshall(GetDeploymentRequest getDeploymentRequest, ProtocolMarshaller protocolMarshaller) { if (getDeploymentRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(GetDeploymentRequest getDeploymentRequest, ProtocolMarshaller protocolMarshaller) { if (getDeploymentRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public LCMSDataSubset merge(LCMSDataSubset other) { LCMSDataSubset merged = new LCMSDataSubset(); Set<Integer> msLvlsThis = getMsLvls(); Set<Integer> msLvlsThat = other.getMsLvls(); // only merge if both are not null, otherwise null signifies the whole // run, so we can k...
public class class_name { public LCMSDataSubset merge(LCMSDataSubset other) { LCMSDataSubset merged = new LCMSDataSubset(); Set<Integer> msLvlsThis = getMsLvls(); Set<Integer> msLvlsThat = other.getMsLvls(); // only merge if both are not null, otherwise null signifies the whole // run, so we can k...
public class class_name { public SimpleSlot getSlotForTask(CoLocationConstraint constraint, Iterable<TaskManagerLocation> locationPreferences) { synchronized (lock) { if (constraint.isAssignedAndAlive()) { // the shared slot of the co-location group is initialized and set we allocate a sub-slot final Shar...
public class class_name { public SimpleSlot getSlotForTask(CoLocationConstraint constraint, Iterable<TaskManagerLocation> locationPreferences) { synchronized (lock) { if (constraint.isAssignedAndAlive()) { // the shared slot of the co-location group is initialized and set we allocate a sub-slot final Shar...
public class class_name { private static Duration create(long seconds, int nanoAdjustment) { if ((seconds | nanoAdjustment) == 0) { return ZERO; } return new Duration(seconds, nanoAdjustment); } }
public class class_name { private static Duration create(long seconds, int nanoAdjustment) { if ((seconds | nanoAdjustment) == 0) { return ZERO; // depends on control dependency: [if], data = [none] } return new Duration(seconds, nanoAdjustment); } }
public class class_name { public boolean getDebug(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getDebug(defaultProviders, index); } if (this.debug != null) { return this.debug.booleanValu...
public class class_name { public boolean getDebug(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getDebug(defaultProviders, index); // depends on control dependency: [if], data = [none] } if (thi...
public class class_name { public java.util.List<DeleteLaunchTemplateVersionsResponseSuccessItem> getSuccessfullyDeletedLaunchTemplateVersions() { if (successfullyDeletedLaunchTemplateVersions == null) { successfullyDeletedLaunchTemplateVersions = new com.amazonaws.internal.SdkInternalList<DeleteLau...
public class class_name { public java.util.List<DeleteLaunchTemplateVersionsResponseSuccessItem> getSuccessfullyDeletedLaunchTemplateVersions() { if (successfullyDeletedLaunchTemplateVersions == null) { successfullyDeletedLaunchTemplateVersions = new com.amazonaws.internal.SdkInternalList<DeleteLau...
public class class_name { public ChooserDialog withOnBackPressedListener(OnBackPressedListener listener) { if (this._onBackPressed instanceof defBackPressed) { ((defBackPressed) this._onBackPressed)._onBackPressed = listener; } return this; } }
public class class_name { public ChooserDialog withOnBackPressedListener(OnBackPressedListener listener) { if (this._onBackPressed instanceof defBackPressed) { ((defBackPressed) this._onBackPressed)._onBackPressed = listener; // depends on control dependency: [if], data = [none] } r...
public class class_name { public String toIPTC(SubjectReferenceSystem srs) { StringBuffer b = new StringBuffer(); b.append("IPTC:"); b.append(getNumber()); b.append(":"); if (getNumber().endsWith("000000")) { b.append(toIPTCHelper(srs.getName(this))); b.append("::"); } else if (getNumber().en...
public class class_name { public String toIPTC(SubjectReferenceSystem srs) { StringBuffer b = new StringBuffer(); b.append("IPTC:"); b.append(getNumber()); b.append(":"); if (getNumber().endsWith("000000")) { b.append(toIPTCHelper(srs.getName(this))); // depends on control dependency: [if], data = ...
public class class_name { public static double[] mergeCoords(double[] x, double[] y) { if (x.length != y.length) throw new IllegalArgumentException( "Sample sizes must be the same for each data applyTransformToDestination."); double[] ret = new double[x.length + ...
public class class_name { public static double[] mergeCoords(double[] x, double[] y) { if (x.length != y.length) throw new IllegalArgumentException( "Sample sizes must be the same for each data applyTransformToDestination."); double[] ret = new double[x.length + ...
public class class_name { public T nextInSequence() { T result = null; // Poll results from the buffer until no more are available, but only once the state machine has flushed // the buffer. if (flushMode) { result = buffer.poll(); if (result != nul...
public class class_name { public T nextInSequence() { T result = null; // Poll results from the buffer until no more are available, but only once the state machine has flushed // the buffer. if (flushMode) { result = buffer.poll(); // depends on control dependen...
public class class_name { public static Map<String, String> extractBrownFeat(String word) { if (!BROWN_CLUSTER.containsKey(word)) { return new HashMap<>(); } String clusterId = BROWN_CLUSTER.get(word); return Arrays.stream(BROWN_PREFIX).mapToObj(p -> { int end ...
public class class_name { public static Map<String, String> extractBrownFeat(String word) { if (!BROWN_CLUSTER.containsKey(word)) { return new HashMap<>(); // depends on control dependency: [if], data = [none] } String clusterId = BROWN_CLUSTER.get(word); return Arrays.str...
public class class_name { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { int itemIdx = -1; for (int i = 0; i < 7; i++) { if (itemIdx == -1 && buttonView == mWeekByDayButtons[i]) { itemIdx = i; mModel.weeklyByDayOfWe...
public class class_name { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { int itemIdx = -1; for (int i = 0; i < 7; i++) { if (itemIdx == -1 && buttonView == mWeekByDayButtons[i]) { itemIdx = i; // depends on control dependency: [if]...
public class class_name { public static void postThreadSetting(StringEntity input) { String pageToken = FbBotMillContext.getInstance().getPageToken(); // If the page token is invalid, returns. if (!validatePageToken(pageToken)) { return; } String url = FbBotMillNetworkConstants.FACEBOOK_BASE_URL + Fb...
public class class_name { public static void postThreadSetting(StringEntity input) { String pageToken = FbBotMillContext.getInstance().getPageToken(); // If the page token is invalid, returns. if (!validatePageToken(pageToken)) { return; // depends on control dependency: [if], data = [none] } String url ...
public class class_name { public RpcResponse call(RpcRequest req) { for (Filter filter : filters) { RpcRequest tmp = filter.alterRequest(req); if (tmp != null) { req = tmp; } } RpcResponse resp = null; for (Filter filter : filters) {...
public class class_name { public RpcResponse call(RpcRequest req) { for (Filter filter : filters) { RpcRequest tmp = filter.alterRequest(req); if (tmp != null) { req = tmp; // depends on control dependency: [if], data = [none] } } RpcResponse...
public class class_name { public static LicenseApi licenseApiFactory() { String licensePath = System.getProperty("user.dir") + "/" + licenseFileName; LicenseApi licenseApi = MiscUtils.licenseApiFactory(licensePath); if (licenseApi == null) { try { // Get location...
public class class_name { public static LicenseApi licenseApiFactory() { String licensePath = System.getProperty("user.dir") + "/" + licenseFileName; LicenseApi licenseApi = MiscUtils.licenseApiFactory(licensePath); if (licenseApi == null) { try { // Get location...
public class class_name { public final void waitForFullService() { if (!m_state.isInitialized()) { throw new RuntimeException("Service has not been initialized"); } synchronized (m_stateChangeLock) { // Loop until state >= RUNNING while (!m_state.isRunn...
public class class_name { public final void waitForFullService() { if (!m_state.isInitialized()) { throw new RuntimeException("Service has not been initialized"); } synchronized (m_stateChangeLock) { // Loop until state >= RUNNING while (!m_state.isRunn...
public class class_name { public EventRecord[] monitor() { ArrayList<EventRecord> recs = new ArrayList<EventRecord>(); for (String nic : nics) { try { recs.add(query(nic)); } catch (UnknownHostException e) { e.printStackTrace(); } } EventRecord[] T = new EventRecord[...
public class class_name { public EventRecord[] monitor() { ArrayList<EventRecord> recs = new ArrayList<EventRecord>(); for (String nic : nics) { try { recs.add(query(nic)); // depends on control dependency: [try], data = [none] } catch (UnknownHostException e) { e.printStackTrace()...
public class class_name { public void marshall(HistoricalMetric historicalMetric, ProtocolMarshaller protocolMarshaller) { if (historicalMetric == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hist...
public class class_name { public void marshall(HistoricalMetric historicalMetric, ProtocolMarshaller protocolMarshaller) { if (historicalMetric == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hist...