code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Optional<String> getSigningKey(final RegisteredService registeredService) { val property = getSigningKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val signingKey = property.getPropertyValue(registeredService).getValue(); ...
public class class_name { public Optional<String> getSigningKey(final RegisteredService registeredService) { val property = getSigningKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val signingKey = property.getPropertyValue(registeredService).getValue(); ...
public class class_name { protected void addANYHandler(final EventHandler eventHandler) { final int eventType = eventHandler.getEventType(); if (eventType != Events.ANY) { LOG.error("The incoming handler {} is not of type ANY", eventHandler); throw new IllegalArgumentException( "The incoming han...
public class class_name { protected void addANYHandler(final EventHandler eventHandler) { final int eventType = eventHandler.getEventType(); if (eventType != Events.ANY) { LOG.error("The incoming handler {} is not of type ANY", eventHandler); // depends on control dependency: [if], data = [none] thro...
public class class_name { public String getPageContent(String element) { // Determine the folder to read the contents from String contentFolder = property(CmsPropertyDefinition.PROPERTY_TEMPLATE_ELEMENTS, "search", ""); if (CmsStringUtil.isEmpty(contentFolder)) { contentFolder = VF...
public class class_name { public String getPageContent(String element) { // Determine the folder to read the contents from String contentFolder = property(CmsPropertyDefinition.PROPERTY_TEMPLATE_ELEMENTS, "search", ""); if (CmsStringUtil.isEmpty(contentFolder)) { contentFolder = VF...
public class class_name { static boolean killProcess(final String processName, int id) { int pid; try { pid = processUtils.resolveProcessId(processName, id); if(pid > 0) { try { Runtime.getRuntime().exec(processUtils.getKillCommand(pid)); ...
public class class_name { static boolean killProcess(final String processName, int id) { int pid; try { pid = processUtils.resolveProcessId(processName, id); // depends on control dependency: [try], data = [none] if(pid > 0) { try { Runtime.ge...
public class class_name { public static List<HttpCode> getHttpStatusCodes(List<BinaryAnnotation> binaryAnnotations) { if (binaryAnnotations == null) { return Collections.emptyList(); } List<HttpCode> httpCodes = new ArrayList<>(); for (BinaryAnnotation binaryAnnotation: bi...
public class class_name { public static List<HttpCode> getHttpStatusCodes(List<BinaryAnnotation> binaryAnnotations) { if (binaryAnnotations == null) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } List<HttpCode> httpCodes = new ArrayList<>(...
public class class_name { public static double Canberra(double[] p, double[] q) { double distance = 0; for (int i = 0; i < p.length; i++) { distance += Math.abs(p[i] - q[i]) / (Math.abs(p[i]) + Math.abs(q[i])); } return distance; } }
public class class_name { public static double Canberra(double[] p, double[] q) { double distance = 0; for (int i = 0; i < p.length; i++) { distance += Math.abs(p[i] - q[i]) / (Math.abs(p[i]) + Math.abs(q[i])); // depends on control dependency: [for], data = [i] } return d...
public class class_name { private static boolean validateVersion(Context ctx, ChangeLog clog){ // Get Preferences SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx); int lastSeen = prefs.getInt(PREF_CHANGELOG_LAST_SEEN, -1); // Second sort versions by it's co...
public class class_name { private static boolean validateVersion(Context ctx, ChangeLog clog){ // Get Preferences SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx); int lastSeen = prefs.getInt(PREF_CHANGELOG_LAST_SEEN, -1); // Second sort versions by it's co...
public class class_name { @Programmatic public Blob downloadLayouts() { final LayoutJsonExporter exporter = new LayoutJsonExporter(); final Collection<ObjectSpecification> allSpecs = specificationLoader.allSpecifications(); final Collection<ObjectSpecification> domainObjectSpecs = Collectio...
public class class_name { @Programmatic public Blob downloadLayouts() { final LayoutJsonExporter exporter = new LayoutJsonExporter(); final Collection<ObjectSpecification> allSpecs = specificationLoader.allSpecifications(); final Collection<ObjectSpecification> domainObjectSpecs = Collectio...
public class class_name { @GuardedBy("lock") private boolean isSatisfied(Guard guard) { try { return guard.isSatisfied(); } catch (Throwable throwable) { signalAllWaiters(); throw Throwables.propagate(throwable); } } }
public class class_name { @GuardedBy("lock") private boolean isSatisfied(Guard guard) { try { return guard.isSatisfied(); // depends on control dependency: [try], data = [none] } catch (Throwable throwable) { signalAllWaiters(); throw Throwables.propagate(throwable); } // depends on con...
public class class_name { public static String resolveWildCardForJarSpec(String workingDirectory, String unresolvedJarSpec, Logger log) { log.debug("resolveWildCardForJarSpec: unresolved jar specification: " + unresolvedJarSpec); log.debug("working directory: " + workingDirectory); if (unresolvedJa...
public class class_name { public static String resolveWildCardForJarSpec(String workingDirectory, String unresolvedJarSpec, Logger log) { log.debug("resolveWildCardForJarSpec: unresolved jar specification: " + unresolvedJarSpec); log.debug("working directory: " + workingDirectory); if (unresolvedJa...
public class class_name { static Message mergeSources(List<Object> sources, Message message) { List<Object> messageSources = message.getSources(); // It is possible that the end of getSources() and the beginning of message.getSources() are // equivalent, in this case we should drop the repeated source when...
public class class_name { static Message mergeSources(List<Object> sources, Message message) { List<Object> messageSources = message.getSources(); // It is possible that the end of getSources() and the beginning of message.getSources() are // equivalent, in this case we should drop the repeated source when...
public class class_name { public static Model newModel(String modelPath, String unused) { Model m = new Model(); if (!modelPath.equals("")) { m.loadModel(modelPath); } return m; } }
public class class_name { public static Model newModel(String modelPath, String unused) { Model m = new Model(); if (!modelPath.equals("")) { m.loadModel(modelPath); // depends on control dependency: [if], data = [none] } return m; } }
public class class_name { @SuppressWarnings("unchecked") @Override public void publishEvent(ApplicationEvent event) { if (event instanceof MappingContextEvent) { this.schmeaCreator .onApplicationEvent((MappingContextEvent<SolrPersistentEntity<?>, SolrPersistentProperty>) event); } } }
public class class_name { @SuppressWarnings("unchecked") @Override public void publishEvent(ApplicationEvent event) { if (event instanceof MappingContextEvent) { this.schmeaCreator .onApplicationEvent((MappingContextEvent<SolrPersistentEntity<?>, SolrPersistentProperty>) event); // depends on control depe...
public class class_name { public static int mainWithReturnCode(String args[]) { TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); // Initialize parameter defaults String serverList = "localhost"; int port = 21212; String user = ""; String password = ""; String ...
public class class_name { public static int mainWithReturnCode(String args[]) { TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); // Initialize parameter defaults String serverList = "localhost"; int port = 21212; String user = ""; String password = ""; String ...
public class class_name { @Override public void parse(final String... parameters) { // Manage gray scale if (parameters.length >= 1) { grayProperty().set(Double.parseDouble(parameters[0])); } // Opacity if (parameters.length == 2) { opacityPro...
public class class_name { @Override public void parse(final String... parameters) { // Manage gray scale if (parameters.length >= 1) { grayProperty().set(Double.parseDouble(parameters[0])); // depends on control dependency: [if], data = [none] } // Opacity ...
public class class_name { private void thirdPartyTransfer() throws UrlCopyException { logger.debug("Trying third party transfer..."); FTPClient srcFTP = null; FTPClient dstFTP = null; try { srcFTP = createFTPConnection(srcUrl, true); dstFTP = createFT...
public class class_name { private void thirdPartyTransfer() throws UrlCopyException { logger.debug("Trying third party transfer..."); FTPClient srcFTP = null; FTPClient dstFTP = null; try { srcFTP = createFTPConnection(srcUrl, true); dstFTP = createFT...
public class class_name { public void restart() { sync.lock(); try { stop(); Thread.sleep(1000); // allow some time to release native resources start(); } catch (InterruptedException e) { // ignore } finally { sync.unlock();...
public class class_name { public void restart() { sync.lock(); try { stop(); // depends on control dependency: [try], data = [none] Thread.sleep(1000); // allow some time to release native resources // depends on control dependency: [try], data = [none] start(); //...
public class class_name { public static Service createService(String classNameKey,String defaultClassName,ConfigurationHolder configurationHolder,String propertyPart) { //validate input if(configurationHolder==null) { throw new FaxException("Service configuration not provided.")...
public class class_name { public static Service createService(String classNameKey,String defaultClassName,ConfigurationHolder configurationHolder,String propertyPart) { //validate input if(configurationHolder==null) { throw new FaxException("Service configuration not provided.")...
public class class_name { public int compareIntervalOrder(Interval<E> other) { int flags = getRelationFlags(other); if (checkFlagExclusiveSet(flags, REL_FLAGS_INTERVAL_BEFORE, REL_FLAGS_INTERVAL_UNKNOWN)) { return -1; } else if (checkFlagExclusiveSet(flags, REL_FLAGS_INTERVAL_AFTER, REL_FLAGS_...
public class class_name { public int compareIntervalOrder(Interval<E> other) { int flags = getRelationFlags(other); if (checkFlagExclusiveSet(flags, REL_FLAGS_INTERVAL_BEFORE, REL_FLAGS_INTERVAL_UNKNOWN)) { return -1; // depends on control dependency: [if], data = [none] } else if (checkFlagEx...
public class class_name { private void removeInstance() { // unregister client ClientRegistry ref = registry.get(); if (ref != null) { ref.removeClient(this); } else { log.warn("Client registry reference was not accessable, removal failed"); //...
public class class_name { private void removeInstance() { // unregister client ClientRegistry ref = registry.get(); if (ref != null) { ref.removeClient(this); // depends on control dependency: [if], data = [none] } else { log.warn("Client registry reference...
public class class_name { private void removeNavigationFrameView(SwingFrame frameView) { navigationFrames.remove(frameView); if (navigationFrames.size() == 0) { System.exit(0); } } }
public class class_name { private void removeNavigationFrameView(SwingFrame frameView) { navigationFrames.remove(frameView); if (navigationFrames.size() == 0) { System.exit(0); // depends on control dependency: [if], data = [0)] } } }
public class class_name { @Override public String configurationInfo() { StringBuilder result = new StringBuilder(); result.append("MediaWikiParser configuration:\n"); result.append("ParserClass: " + this.getClass() + "\n"); result.append("ShowImageText: " + showImageText + "\n"); result.append("DeleteTags...
public class class_name { @Override public String configurationInfo() { StringBuilder result = new StringBuilder(); result.append("MediaWikiParser configuration:\n"); result.append("ParserClass: " + this.getClass() + "\n"); result.append("ShowImageText: " + showImageText + "\n"); result.append("DeleteTags...
public class class_name { @Override protected void submitRedoMeta(final int futureUse) { if (!useRedo) { return; } createRedoThread(); final ByteBuffer buf = bufstack.pop(); buf.putInt(0x0C0C0C0C); // META HEADER/FOOTER buf.flip(); if (useRedoThread) { try { redoQueue.put(buf); } catch (Int...
public class class_name { @Override protected void submitRedoMeta(final int futureUse) { if (!useRedo) { return; // depends on control dependency: [if], data = [none] } createRedoThread(); final ByteBuffer buf = bufstack.pop(); buf.putInt(0x0C0C0C0C); // META HEADER/FOOTER buf.flip(); if (useRedoThre...
public class class_name { @SuppressWarnings("unchecked") public <T extends ApnsPushNotification> PushNotificationFuture<T, PushNotificationResponse<T>> sendNotification(final T notification) { final PushNotificationFuture<T, PushNotificationResponse<T>> responseFuture; if (!this.isClosed.get()) { ...
public class class_name { @SuppressWarnings("unchecked") public <T extends ApnsPushNotification> PushNotificationFuture<T, PushNotificationResponse<T>> sendNotification(final T notification) { final PushNotificationFuture<T, PushNotificationResponse<T>> responseFuture; if (!this.isClosed.get()) { ...
public class class_name { @Override public CommerceAccount fetchByU_T_First(long userId, int type, OrderByComparator<CommerceAccount> orderByComparator) { List<CommerceAccount> list = findByU_T(userId, type, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; } }
public class class_name { @Override public CommerceAccount fetchByU_T_First(long userId, int type, OrderByComparator<CommerceAccount> orderByComparator) { List<CommerceAccount> list = findByU_T(userId, type, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); // depends on control depen...
public class class_name { public boolean accept(String kind, String mimetype) { if (m_includeAll) { return true; } int slashpos = mimetype.indexOf("/"); String supertype = mimetype.substring(0, slashpos); return m_kinds.contains(kind) || m_types.contains(mime...
public class class_name { public boolean accept(String kind, String mimetype) { if (m_includeAll) { return true; // depends on control dependency: [if], data = [none] } int slashpos = mimetype.indexOf("/"); String supertype = mimetype.substring(0, slashpos); ...
public class class_name { public String replaceDocRootDir(String htmlstr) { // Return if no inline tags exist int index = htmlstr.indexOf("{@"); if (index < 0) { return htmlstr; } Matcher docrootMatcher = docrootPattern.matcher(htmlstr); if (!docrootMatcher.f...
public class class_name { public String replaceDocRootDir(String htmlstr) { // Return if no inline tags exist int index = htmlstr.indexOf("{@"); if (index < 0) { return htmlstr; // depends on control dependency: [if], data = [none] } Matcher docrootMatcher = docrootP...
public class class_name { @Override public void uncaughtException(Thread thread, Throwable thrown) { if (enabled) { logger.trace("Uncaught exception received."); EventBuilder eventBuilder = new EventBuilder() .withMessage(thrown.getMessage()) .withLe...
public class class_name { @Override public void uncaughtException(Thread thread, Throwable thrown) { if (enabled) { logger.trace("Uncaught exception received."); // depends on control dependency: [if], data = [none] EventBuilder eventBuilder = new EventBuilder() .wi...
public class class_name { public boolean isFlowActive() { Object val = this.getArgument("active"); if (val instanceof Integer) { return ((Integer)val).intValue() == 1; } else { throw new IllegalStateException("ChannelEvent does not contain the 'active' argument")...
public class class_name { public boolean isFlowActive() { Object val = this.getArgument("active"); if (val instanceof Integer) { return ((Integer)val).intValue() == 1; // depends on control dependency: [if], data = [none] } else { throw new IllegalStateException(...
public class class_name { public static Array listToArrayTrim(String list, String delimiter, int[] info) { if (delimiter.length() == 1) return listToArrayTrim(list, delimiter.charAt(0), info); if (list.length() == 0) return new ArrayImpl(); char[] del = delimiter.toCharArray(); char c; // remove at start outer:...
public class class_name { public static Array listToArrayTrim(String list, String delimiter, int[] info) { if (delimiter.length() == 1) return listToArrayTrim(list, delimiter.charAt(0), info); if (list.length() == 0) return new ArrayImpl(); char[] del = delimiter.toCharArray(); char c; // remove at start outer:...
public class class_name { public DescribePlayerSessionsResult withPlayerSessions(PlayerSession... playerSessions) { if (this.playerSessions == null) { setPlayerSessions(new java.util.ArrayList<PlayerSession>(playerSessions.length)); } for (PlayerSession ele : playerSessions) { ...
public class class_name { public DescribePlayerSessionsResult withPlayerSessions(PlayerSession... playerSessions) { if (this.playerSessions == null) { setPlayerSessions(new java.util.ArrayList<PlayerSession>(playerSessions.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void initBatch( TypeDescription orcSchema, StructField[] requiredFields, int[] requestedDataColIds, int[] requestedPartitionColIds, InternalRow partitionValues) { wrap = new VectorizedRowBatchWrap(orcSchema.createRowBatch(capacity)); assert(!wrap.b...
public class class_name { public void initBatch( TypeDescription orcSchema, StructField[] requiredFields, int[] requestedDataColIds, int[] requestedPartitionColIds, InternalRow partitionValues) { wrap = new VectorizedRowBatchWrap(orcSchema.createRowBatch(capacity)); assert(!wrap.b...
public class class_name { public void buildFieldInfo(XMLNode node, Content fieldsContentTree) { if(configuration.nocomment){ return; } VariableElement field = (VariableElement)currentMember; TypeElement te = utils.getEnclosingTypeElement(currentMember); // Process de...
public class class_name { public void buildFieldInfo(XMLNode node, Content fieldsContentTree) { if(configuration.nocomment){ return; // depends on control dependency: [if], data = [none] } VariableElement field = (VariableElement)currentMember; TypeElement te = utils.getEncl...
public class class_name { @SuppressWarnings("rawtypes") public Columns columns(Row row) { ColumnFamily columnFamily = row.cf; Columns columns = new Columns(); // Get row's columns iterator skipping clustering column Iterator<Cell> cellIterator = columnFamily.iterator(); ce...
public class class_name { @SuppressWarnings("rawtypes") public Columns columns(Row row) { ColumnFamily columnFamily = row.cf; Columns columns = new Columns(); // Get row's columns iterator skipping clustering column Iterator<Cell> cellIterator = columnFamily.iterator(); ce...
public class class_name { public long run(int agent_id, String phone_no, long call_id, TimestampType start_ts) { voltQueueSQL(findOpenCall, EXPECT_ZERO_OR_ONE_ROW, call_id, agent_id, phone_no); voltQueueSQL(findCompletedCall, EXPECT_ZERO_OR_ONE_ROW, call_id, agent_id, phone_no); VoltTable[] res...
public class class_name { public long run(int agent_id, String phone_no, long call_id, TimestampType start_ts) { voltQueueSQL(findOpenCall, EXPECT_ZERO_OR_ONE_ROW, call_id, agent_id, phone_no); voltQueueSQL(findCompletedCall, EXPECT_ZERO_OR_ONE_ROW, call_id, agent_id, phone_no); VoltTable[] res...
public class class_name { private boolean isSharingEnabledForNode(BuildContext context, BaseNode node) { if ( NodeTypeEnums.isLeftTupleSource( node )) { return context.getKnowledgeBase().getConfiguration().isShareBetaNodes(); } else if ( NodeTypeEnums.isObjectSource( node ) ) { ...
public class class_name { private boolean isSharingEnabledForNode(BuildContext context, BaseNode node) { if ( NodeTypeEnums.isLeftTupleSource( node )) { return context.getKnowledgeBase().getConfiguration().isShareBetaNodes(); // depends on control dependency: [if], data = [none] } else if (...
public class class_name { public static int readUntil (final StringBuilder out, final String in, final int start, final char... end) { int pos = start; while (pos < in.length ()) { final char ch = in.charAt (pos); if (ch == '\\' && pos + 1 < in.length ()) { pos = _escape (out, i...
public class class_name { public static int readUntil (final StringBuilder out, final String in, final int start, final char... end) { int pos = start; while (pos < in.length ()) { final char ch = in.charAt (pos); if (ch == '\\' && pos + 1 < in.length ()) { pos = _escape (out, i...
public class class_name { private StreamBlock pollPersistentDeque(boolean actuallyPoll) { BBContainer cont = null; BBContainer schemaCont = null; try { // Start to read a new segment if (m_reader.isStartOfSegment()) { schemaCont = m_reader.getExtraHeader(...
public class class_name { private StreamBlock pollPersistentDeque(boolean actuallyPoll) { BBContainer cont = null; BBContainer schemaCont = null; try { // Start to read a new segment if (m_reader.isStartOfSegment()) { schemaCont = m_reader.getExtraHeader(...
public class class_name { protected ByteBuffer getByteBuffer(int bufferLength) { if(_buffer == null) { _buffer = ByteBuffer.wrap(new byte[bufferLength]); _log.info("ByteBuffer allocated for buffering"); } return _buffer; } }
public class class_name { protected ByteBuffer getByteBuffer(int bufferLength) { if(_buffer == null) { _buffer = ByteBuffer.wrap(new byte[bufferLength]); // depends on control dependency: [if], data = [none] _log.info("ByteBuffer allocated for buffering"); // depends on control dependen...
public class class_name { public PortletDefinition getPortletDescriptor(PortletDefinitionForm form) { final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(form); if (portletDescriptorKeys == null) { return null; } final String portletAppId = port...
public class class_name { public PortletDefinition getPortletDescriptor(PortletDefinitionForm form) { final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(form); if (portletDescriptorKeys == null) { return null; // depends on control dependency: [if], data = [no...
public class class_name { public static String feature2Dxf( FeatureMate featureMate, String layerName, String elevationAttrName, boolean suffix, boolean force2CoordsToLine ) { Geometry g = featureMate.getGeometry(); if (EGeometryType.isPoint(g)) { return point2Dxf(featureMate, ...
public class class_name { public static String feature2Dxf( FeatureMate featureMate, String layerName, String elevationAttrName, boolean suffix, boolean force2CoordsToLine ) { Geometry g = featureMate.getGeometry(); if (EGeometryType.isPoint(g)) { return point2Dxf(featureMate, ...
public class class_name { public static XAnnotationsFactory init() { try { XAnnotationsFactory theXAnnotationsFactory = (XAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(XAnnotationsPackage.eNS_URI); if (theXAnnotationsFactory != null) { return theXAnnotationsFactory; } } catch (Exce...
public class class_name { public static XAnnotationsFactory init() { try { XAnnotationsFactory theXAnnotationsFactory = (XAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(XAnnotationsPackage.eNS_URI); if (theXAnnotationsFactory != null) { return theXAnnotationsFactory; // depends on control ...
public class class_name { public static Collection<Tuple> getTuples( List<VarDef> varDefs, int tupleSize) { if( tupleSize < 1) { tupleSize = varDefs.size(); } int varEnd = varDefs.size() - tupleSize + 1; if( varEnd <= 0) { throw new IllegalArgumentException( "Can't create ...
public class class_name { public static Collection<Tuple> getTuples( List<VarDef> varDefs, int tupleSize) { if( tupleSize < 1) { tupleSize = varDefs.size(); // depends on control dependency: [if], data = [none] } int varEnd = varDefs.size() - tupleSize + 1; if( varEnd <= 0) { ...
public class class_name { public static String toValidPackageName(String pkg) { if (pkg == null) { throw new IllegalArgumentException("Package should not be null"); } // Sanitizing package name StringBuilder sb = new StringBuilder(pkg.length()); for (int i = 0; i < pkg.l...
public class class_name { public static String toValidPackageName(String pkg) { if (pkg == null) { throw new IllegalArgumentException("Package should not be null"); } // Sanitizing package name StringBuilder sb = new StringBuilder(pkg.length()); for (int i = 0; i < pkg.l...
public class class_name { public java.util.List<DBSnapshotAttribute> getDBSnapshotAttributes() { if (dBSnapshotAttributes == null) { dBSnapshotAttributes = new com.amazonaws.internal.SdkInternalList<DBSnapshotAttribute>(); } return dBSnapshotAttributes; } }
public class class_name { public java.util.List<DBSnapshotAttribute> getDBSnapshotAttributes() { if (dBSnapshotAttributes == null) { dBSnapshotAttributes = new com.amazonaws.internal.SdkInternalList<DBSnapshotAttribute>(); // depends on control dependency: [if], data = [none] } retu...
public class class_name { public String getListOfProvidersFromIdentities() { if(this.getIdentities() == null || this.getIdentities().isEmpty()) { return ""; } StringBuilder returnVal = new StringBuilder(); for(Client client : this.getIdentities()) { ...
public class class_name { public String getListOfProvidersFromIdentities() { if(this.getIdentities() == null || this.getIdentities().isEmpty()) { return ""; // depends on control dependency: [if], data = [none] } StringBuilder returnVal = new StringBuilder(); f...
public class class_name { public static Organisasjonsnummer getAndForceValidOrganisasjonsnummer(String organisasjonsnummer) { validateSyntax(organisasjonsnummer); try { validateChecksum(organisasjonsnummer); } catch (IllegalArgumentException iae) { Organisasjonsnummer onr = new Organisasjonsnummer(organisa...
public class class_name { public static Organisasjonsnummer getAndForceValidOrganisasjonsnummer(String organisasjonsnummer) { validateSyntax(organisasjonsnummer); try { validateChecksum(organisasjonsnummer); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException iae) { Org...
public class class_name { public boolean isExpectedResponseStatusCode(int responseStatusCode, int[] additionalAllowedStatusCodes) { boolean result; if (expectedStatusCodes == null) { result = (responseStatusCode < 400); } else { result = contains(expectedStatusCodes, re...
public class class_name { public boolean isExpectedResponseStatusCode(int responseStatusCode, int[] additionalAllowedStatusCodes) { boolean result; if (expectedStatusCodes == null) { result = (responseStatusCode < 400); // depends on control dependency: [if], data = [none] } else {...
public class class_name { private JobSubmissionProtocol checkClient() throws IOException { synchronized (this) { while (client == null) { try { if (remoteJTStatus == RemoteJTStatus.FAILURE) { throw new IOException("Remote Job Tracker is not available"); } thi...
public class class_name { private JobSubmissionProtocol checkClient() throws IOException { synchronized (this) { while (client == null) { try { if (remoteJTStatus == RemoteJTStatus.FAILURE) { throw new IOException("Remote Job Tracker is not available"); } thi...
public class class_name { public void addImagesToImageAttachmentBand(final List<ImageItem> imagesToAttach) { if (imagesToAttach == null || imagesToAttach.size() == 0) { return; } attachments.setupLayoutListener(); attachments.setVisibility(View.VISIBLE); images.addAll(imagesToAttach); setAttachButtonSta...
public class class_name { public void addImagesToImageAttachmentBand(final List<ImageItem> imagesToAttach) { if (imagesToAttach == null || imagesToAttach.size() == 0) { return; // depends on control dependency: [if], data = [none] } attachments.setupLayoutListener(); attachments.setVisibility(View.VISIBLE);...
public class class_name { public void marshall(DomainName domainName, ProtocolMarshaller protocolMarshaller) { if (domainName == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(domainName.getDomainNa...
public class class_name { public void marshall(DomainName domainName, ProtocolMarshaller protocolMarshaller) { if (domainName == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(domainName.getDomainNa...
public class class_name { protected void appendSyntheticDefaultValuedParameterMethods( XtendTypeDeclaration source, JvmDeclaredType target, GenerationContext context) { // Generate the different operations. final Iterator<Runnable> differedGeneration = context.getPreFinalizationElements().iterator(); w...
public class class_name { protected void appendSyntheticDefaultValuedParameterMethods( XtendTypeDeclaration source, JvmDeclaredType target, GenerationContext context) { // Generate the different operations. final Iterator<Runnable> differedGeneration = context.getPreFinalizationElements().iterator(); w...
public class class_name { private Stmt.Return parseReturnStatement(EnclosingScope scope) { int start = index; match(Return); // A return statement may optionally have one or more return // expressions. Therefore, we first skip all whitespace on the given // line. int next = skipLineSpace(index); // Then,...
public class class_name { private Stmt.Return parseReturnStatement(EnclosingScope scope) { int start = index; match(Return); // A return statement may optionally have one or more return // expressions. Therefore, we first skip all whitespace on the given // line. int next = skipLineSpace(index); // Then,...
public class class_name { public static <E extends Enum<E>> Flags<E> valueOf(Class<E> type, String values) { Flags<E> flags = new Flags<E>(type); for (String text : values.trim().split(MULTI_VALUE_SEPARATOR)) { flags.set(Enum.valueOf(type, text)); } return flags; } }
public class class_name { public static <E extends Enum<E>> Flags<E> valueOf(Class<E> type, String values) { Flags<E> flags = new Flags<E>(type); for (String text : values.trim().split(MULTI_VALUE_SEPARATOR)) { flags.set(Enum.valueOf(type, text)); // depends on control dependency: [for], da...
public class class_name { public void setResourceShareInvitationArns(java.util.Collection<String> resourceShareInvitationArns) { if (resourceShareInvitationArns == null) { this.resourceShareInvitationArns = null; return; } this.resourceShareInvitationArns = new java.uti...
public class class_name { public void setResourceShareInvitationArns(java.util.Collection<String> resourceShareInvitationArns) { if (resourceShareInvitationArns == null) { this.resourceShareInvitationArns = null; // depends on control dependency: [if], data = [none] return; // depends o...
public class class_name { public void setResourceArns(java.util.Collection<String> resourceArns) { if (resourceArns == null) { this.resourceArns = null; return; } this.resourceArns = new java.util.ArrayList<String>(resourceArns); } }
public class class_name { public void setResourceArns(java.util.Collection<String> resourceArns) { if (resourceArns == null) { this.resourceArns = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void remotePut( MessageItem msg, SIBUuid8 sourceMEUuid) throws SIResourceException, SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() &...
public class class_name { private void remotePut( MessageItem msg, SIBUuid8 sourceMEUuid) throws SIResourceException, SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() &...
public class class_name { private static boolean localVariableMatches(VariableTree tree, VisitorState state) { ExpressionTree expression = tree.getInitializer(); if (expression == null) { Tree leaf = state.getPath().getParentPath().getLeaf(); if (!(leaf instanceof EnhancedForLoopTree)) { re...
public class class_name { private static boolean localVariableMatches(VariableTree tree, VisitorState state) { ExpressionTree expression = tree.getInitializer(); if (expression == null) { Tree leaf = state.getPath().getParentPath().getLeaf(); if (!(leaf instanceof EnhancedForLoopTree)) { re...
public class class_name { @Override protected StringBuffer doPostProcessBundle(BundleProcessingStatus status, StringBuffer bundleData) throws IOException { if(status.getProcessingType().equals(BundleProcessingStatus.FILE_PROCESSING_TYPE) && status.getJawrConfig().getResourceType().equals(JawrConstant.JS_T...
public class class_name { @Override protected StringBuffer doPostProcessBundle(BundleProcessingStatus status, StringBuffer bundleData) throws IOException { if(status.getProcessingType().equals(BundleProcessingStatus.FILE_PROCESSING_TYPE) && status.getJawrConfig().getResourceType().equals(JawrConstant.JS_T...
public class class_name { int getInt(String[] args, int index) { int result = -1; if(index >= 0 && index < args.length) { try { result = Integer.parseInt(args[index]); }catch(NumberFormatException e) { result = -1; } } return result; } }
public class class_name { int getInt(String[] args, int index) { int result = -1; if(index >= 0 && index < args.length) { try { result = Integer.parseInt(args[index]); // depends on control dependency: [try], data = [none] }catch(NumberFormatException e) { result = -1; } // de...
public class class_name { private MessageProcessorSearchResults matchMessage(MessageItem msg) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "matchMessa...
public class class_name { private MessageProcessorSearchResults matchMessage(MessageItem msg) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "matchMessa...
public class class_name { private void associateL2R( T left , T right ) { // make the previous new observations into the new old ones ImageInfo<TD> tmp = featsLeft1; featsLeft1 = featsLeft0; featsLeft0 = tmp; tmp = featsRight1; featsRight1 = featsRight0; featsRight0 = tmp; // detect and associate features...
public class class_name { private void associateL2R( T left , T right ) { // make the previous new observations into the new old ones ImageInfo<TD> tmp = featsLeft1; featsLeft1 = featsLeft0; featsLeft0 = tmp; tmp = featsRight1; featsRight1 = featsRight0; featsRight0 = tmp; // detect and associate features...
public class class_name { public final PostAggItem constantAccess() throws RecognitionException { PostAggItem postAggItem = null; Token a=null; postAggItem = new PostAggItem("constant"); try { // druidG.g:527:2: ( ( (a= FLOAT |a= LONG ) ( WS postAggLabel[postAggItem] )? ) ) // druidG.g:527:4: ( (a=...
public class class_name { public final PostAggItem constantAccess() throws RecognitionException { PostAggItem postAggItem = null; Token a=null; postAggItem = new PostAggItem("constant"); try { // druidG.g:527:2: ( ( (a= FLOAT |a= LONG ) ( WS postAggLabel[postAggItem] )? ) ) // druidG.g:527:4: ( (a=...
public class class_name { @Override public EClass getIfcEnergyConversionDevice() { if (ifcEnergyConversionDeviceEClass == null) { ifcEnergyConversionDeviceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(231); } return ifcEnergyConversionDeviceEC...
public class class_name { @Override public EClass getIfcEnergyConversionDevice() { if (ifcEnergyConversionDeviceEClass == null) { ifcEnergyConversionDeviceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(231); // depends on control dependency: [if], d...
public class class_name { @Override @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") public void deleteAll(final Connection _con) throws SQLException { final Statement stmtSel = _con.createStatement(); final Statement stmtExec = _con.createStatement(); try {...
public class class_name { @Override @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") public void deleteAll(final Connection _con) throws SQLException { final Statement stmtSel = _con.createStatement(); final Statement stmtExec = _con.createStatement(); try {...
public class class_name { private void processLocalComponentClass(LocalComponents localComponents, TypeElement localComponentType) { String localComponentTagName; try { localComponentTagName = componentToTagName(localComponentType); } catch (MissingComponentAnnotationException e) { e.pri...
public class class_name { private void processLocalComponentClass(LocalComponents localComponents, TypeElement localComponentType) { String localComponentTagName; try { localComponentTagName = componentToTagName(localComponentType); // depends on control dependency: [try], data = [none] } catc...
public class class_name { @Override protected UniversalIdIntQueueMessage readFromEphemeralStorage(Connection conn, IQueueMessage<Long, byte[]> msg) { Map<String, Object> dbRow = getJdbcHelper().executeSelectOne(conn, SQL_READ_FROM_EPHEMERAL, msg.getId()); if (dbRow != nu...
public class class_name { @Override protected UniversalIdIntQueueMessage readFromEphemeralStorage(Connection conn, IQueueMessage<Long, byte[]> msg) { Map<String, Object> dbRow = getJdbcHelper().executeSelectOne(conn, SQL_READ_FROM_EPHEMERAL, msg.getId()); if (dbRow != nu...
public class class_name { private void updateCountSpan() { //No count span with free form text if (!preventFreeFormText) { return; } Editable text = getText(); int visibleCount = getText().getSpans(0, getText().length(), TokenImageSpan.class).length; countSpan.setCount(getObje...
public class class_name { private void updateCountSpan() { //No count span with free form text if (!preventFreeFormText) { return; } // depends on control dependency: [if], data = [none] Editable text = getText(); int visibleCount = getText().getSpans(0, getText().length(), TokenImage...
public class class_name { public void paint (Graphics2D gfx, int x, int y) { // Paint everyone. for (Mirage m : _mirages) { m.paint(gfx, x, y); } } }
public class class_name { public void paint (Graphics2D gfx, int x, int y) { // Paint everyone. for (Mirage m : _mirages) { m.paint(gfx, x, y); // depends on control dependency: [for], data = [m] } } }
public class class_name { private static void compareMaps(Delta delta, Collection deltas, LinkedList stack, ID idFetcher) { Map<Object, Object> srcMap = (Map<Object, Object>) delta.srcValue; Map<Object, Object> targetMap = (Map<Object, Object>) delta.targetValue; // Walk source Map keys an...
public class class_name { private static void compareMaps(Delta delta, Collection deltas, LinkedList stack, ID idFetcher) { Map<Object, Object> srcMap = (Map<Object, Object>) delta.srcValue; Map<Object, Object> targetMap = (Map<Object, Object>) delta.targetValue; // Walk source Map keys an...
public class class_name { private boolean isSatisfied() { if(pipelineData.getZonesRequired() != null) { return ((pipelineData.getSuccesses() >= required) && (pipelineData.getZoneResponses() .size() >= (pipelineData.getZon...
public class class_name { private boolean isSatisfied() { if(pipelineData.getZonesRequired() != null) { return ((pipelineData.getSuccesses() >= required) && (pipelineData.getZoneResponses() .size() >= (pipelineData.getZon...
public class class_name { public File transform(File inputFile, File outFile, GlobalTransform transform) { try { BufferedReader br = new BufferedReader(new FileReader(inputFile)); PrintWriter writer = new PrintWriter(new BufferedWriter...
public class class_name { public File transform(File inputFile, File outFile, GlobalTransform transform) { try { BufferedReader br = new BufferedReader(new FileReader(inputFile)); PrintWriter writer = new PrintWriter(new BufferedWriter...
public class class_name { public Object[] getAnnotations() { if (annotations == null) { try { annotations = getCtClass().getAvailableAnnotations(); } catch (Exception | Error e) { return new Object[0]; } } return annotations; ...
public class class_name { public Object[] getAnnotations() { if (annotations == null) { try { annotations = getCtClass().getAvailableAnnotations(); // depends on control dependency: [try], data = [none] } catch (Exception | Error e) { return new Object[0]...
public class class_name { @Override public void start() { // Get IPs DnsResolve dns = new DnsResolve(mTarget); dns.start(); List<String> ips = dns.getAddresses(); if (dns.getError() != Cmd.SUCCEED || ips == null || ips.size() == 0) return; mIP = ips.get(0...
public class class_name { @Override public void start() { // Get IPs DnsResolve dns = new DnsResolve(mTarget); dns.start(); List<String> ips = dns.getAddresses(); if (dns.getError() != Cmd.SUCCEED || ips == null || ips.size() == 0) return; mIP = ips.get(0...
public class class_name { private void initializeCaches(Map<String, Object> configProps) { final String METHODNAME = "initializeCaches(DataObject)"; /* * initialize the cache pool names */ iAttrsCacheName = iReposId + "/" + iAttrsCacheName; iSearchResultsCacheName = i...
public class class_name { private void initializeCaches(Map<String, Object> configProps) { final String METHODNAME = "initializeCaches(DataObject)"; /* * initialize the cache pool names */ iAttrsCacheName = iReposId + "/" + iAttrsCacheName; iSearchResultsCacheName = i...
public class class_name { @Override public List<Instance> listChildrenInstances( String applicationName, String instancePath, boolean allChildren ) { List<Instance> result = new ArrayList<> (); Application app = this.manager.applicationMngr().findApplicationByName( applicationName ); // Log if( instancePath...
public class class_name { @Override public List<Instance> listChildrenInstances( String applicationName, String instancePath, boolean allChildren ) { List<Instance> result = new ArrayList<> (); Application app = this.manager.applicationMngr().findApplicationByName( applicationName ); // Log if( instancePath...
public class class_name { @Override public String addContent(String spaceID, String contentID, InputStream content, String contentMimeType, Map<String, String> userProperties, ...
public class class_name { @Override public String addContent(String spaceID, String contentID, InputStream content, String contentMimeType, Map<String, String> userProperties, ...
public class class_name { public void init(ServletConfig servletConfig) throws ServletException { // Save our ServletConfig instance this.servletConfig = servletConfig; // Acquire our FacesContextFactory instance try { facesContextFactory = (FacesContextFactory) ...
public class class_name { public void init(ServletConfig servletConfig) throws ServletException { // Save our ServletConfig instance this.servletConfig = servletConfig; // Acquire our FacesContextFactory instance try { facesContextFactory = (FacesContextFactory) ...
public class class_name { public Map<Object, Object> parseMapElement(Element mapEle, BeanDefinition bd) { String defaultKeyType = mapEle.getAttribute(KEY_TYPE_ATTRIBUTE); String defaultValueType = mapEle.getAttribute(VALUE_TYPE_ATTRIBUTE); List<Element> entryEles = DomUtils.getChildElementsByTagName(mapEl...
public class class_name { public Map<Object, Object> parseMapElement(Element mapEle, BeanDefinition bd) { String defaultKeyType = mapEle.getAttribute(KEY_TYPE_ATTRIBUTE); String defaultValueType = mapEle.getAttribute(VALUE_TYPE_ATTRIBUTE); List<Element> entryEles = DomUtils.getChildElementsByTagName(mapEl...
public class class_name { @Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(businessCategory); sb.append(dm).append(carLicense); sb.append(dm).append(city); sb.append(dm).append(departmentNumber); ...
public class class_name { @Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(businessCategory); sb.append(dm).append(carLicense); sb.append(dm).append(city); sb.append(dm).append(departmentNumber); ...
public class class_name { public static String resolveAndReplace(char[] chars, int offset, int length, Map<String, String> parameterValuePairs, Properties configuration, List<String> errors) { int lastMatchCharIndex = 0; StringBuffer string = new StringBuffer(); Matcher matcher = P...
public class class_name { public static String resolveAndReplace(char[] chars, int offset, int length, Map<String, String> parameterValuePairs, Properties configuration, List<String> errors) { int lastMatchCharIndex = 0; StringBuffer string = new StringBuffer(); Matcher matcher = P...
public class class_name { public JSONValue toJson() { JSONObject result = new JSONObject(); if (null != getStart()) { result.put(JsonKey.START, dateToJson(getStart())); } if (null != getEnd()) { result.put(JsonKey.END, dateToJson(getEnd())); } if...
public class class_name { public JSONValue toJson() { JSONObject result = new JSONObject(); if (null != getStart()) { result.put(JsonKey.START, dateToJson(getStart())); // depends on control dependency: [if], data = [getStart())] } if (null != getEnd()) { result...
public class class_name { ImmutableSortedSet<String> typesToImport() { ImmutableSortedSet.Builder<String> typesToImport = ImmutableSortedSet.naturalOrder(); for (Map.Entry<String, Spelling> entry : imports.entrySet()) { if (entry.getValue().importIt) { typesToImport.add(entry.getKey()); } ...
public class class_name { ImmutableSortedSet<String> typesToImport() { ImmutableSortedSet.Builder<String> typesToImport = ImmutableSortedSet.naturalOrder(); for (Map.Entry<String, Spelling> entry : imports.entrySet()) { if (entry.getValue().importIt) { typesToImport.add(entry.getKey()); // depend...
public class class_name { public Integer getAssistedQueryColumnCount(final String logicTableName) { if (Collections2.filter(columns, new Predicate<ColumnNode>() { @Override public boolean apply(final ColumnNode input) { return input.getTableName().equals(log...
public class class_name { public Integer getAssistedQueryColumnCount(final String logicTableName) { if (Collections2.filter(columns, new Predicate<ColumnNode>() { @Override public boolean apply(final ColumnNode input) { return input.getTableName().equals(log...
public class class_name { public static String cleanPath(final URL url) { String path = url.getPath(); try { path = URLDecoder.decode(path, "UTF-8"); } catch (UnsupportedEncodingException e) { /**/ } if (path.startsWith("jar:")) { path = path.substring("jar:".len...
public class class_name { public static String cleanPath(final URL url) { String path = url.getPath(); try { path = URLDecoder.decode(path, "UTF-8"); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { /**/ } // depends on control depend...
public class class_name { public void marshall(Stack stack, ProtocolMarshaller protocolMarshaller) { if (stack == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stack.getArn(), ARN_BINDING); ...
public class class_name { public void marshall(Stack stack, ProtocolMarshaller protocolMarshaller) { if (stack == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stack.getArn(), ARN_BINDING); // depe...
public class class_name { public java.util.List<String> getSnapshotIds() { if (snapshotIds == null) { snapshotIds = new com.amazonaws.internal.SdkInternalList<String>(); } return snapshotIds; } }
public class class_name { public java.util.List<String> getSnapshotIds() { if (snapshotIds == null) { snapshotIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return snapshotIds; } }
public class class_name { private void setScriptEngineWrapper( ScriptNode baseNode, ScriptEngineWrapper engineWrapper, ScriptEngineWrapper newEngineWrapper) { for (@SuppressWarnings("unchecked") Enumeration<TreeNode> e = baseNode.depthFirstEnumeration(); e.hasMoreElements();) { ScriptNode node = ...
public class class_name { private void setScriptEngineWrapper( ScriptNode baseNode, ScriptEngineWrapper engineWrapper, ScriptEngineWrapper newEngineWrapper) { for (@SuppressWarnings("unchecked") Enumeration<TreeNode> e = baseNode.depthFirstEnumeration(); e.hasMoreElements();) { ScriptNode node = ...
public class class_name { public SearchNode<O, T> makeNode(Successor successor) throws SearchNotExhaustiveException { SearchNode newNode; try { // Create a new instance of this class newNode = getClass().newInstance(); // Set the state, operation, paren...
public class class_name { public SearchNode<O, T> makeNode(Successor successor) throws SearchNotExhaustiveException { SearchNode newNode; try { // Create a new instance of this class newNode = getClass().newInstance(); // Set the state, operation, paren...
public class class_name { private void addPostParams(final Request request) { if (expirationDate != null) { request.addPostParam("ExpirationDate", expirationDate.toString()); } if (details != null) { request.addPostParam("Details", details); } if (hidde...
public class class_name { private void addPostParams(final Request request) { if (expirationDate != null) { request.addPostParam("ExpirationDate", expirationDate.toString()); // depends on control dependency: [if], data = [none] } if (details != null) { request.addPostP...
public class class_name { @GET @Path("corpora/example-queries/") @Produces(MediaType.APPLICATION_XML) public List<ExampleQuery> getExampleQueries( @QueryParam("corpora") String rawCorpusNames) throws WebApplicationException { Subject user = SecurityUtils.getSubject(); try { String...
public class class_name { @GET @Path("corpora/example-queries/") @Produces(MediaType.APPLICATION_XML) public List<ExampleQuery> getExampleQueries( @QueryParam("corpora") String rawCorpusNames) throws WebApplicationException { Subject user = SecurityUtils.getSubject(); try { String...
public class class_name { public boolean offer(T t, Object identifier) { checkNotNullArgument(t); if (isPublisherThread()) { boolean changed = false; if (identifier != null) { final Long id = subscriberIdentifiers.get(identifier); checkNotNullIden...
public class class_name { public boolean offer(T t, Object identifier) { checkNotNullArgument(t); if (isPublisherThread()) { boolean changed = false; if (identifier != null) { final Long id = subscriberIdentifiers.get(identifier); checkNotNullIden...
public class class_name { public void addNano(long nanos) { // convert to microseconds. 1 millionth latency.update(nanos, TimeUnit.NANOSECONDS); totalLatency.inc(nanos / 1000); totalLatencyHistogram.add(nanos / 1000); recentLatencyHistogram.add(nanos / 1000); for(Lat...
public class class_name { public void addNano(long nanos) { // convert to microseconds. 1 millionth latency.update(nanos, TimeUnit.NANOSECONDS); totalLatency.inc(nanos / 1000); totalLatencyHistogram.add(nanos / 1000); recentLatencyHistogram.add(nanos / 1000); for(Lat...
public class class_name { private synchronized void updateLocal() throws ScheduleManagerException { final List<Schedule> updates = this.loader.loadUpdatedSchedules(); for (final Schedule s : updates) { if (s.getStatus().equals(TriggerStatus.EXPIRED.toString())) { onScheduleExpire(s); } else...
public class class_name { private synchronized void updateLocal() throws ScheduleManagerException { final List<Schedule> updates = this.loader.loadUpdatedSchedules(); for (final Schedule s : updates) { if (s.getStatus().equals(TriggerStatus.EXPIRED.toString())) { onScheduleExpire(s); // depends o...
public class class_name { String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // Select the appropriate table. if (isAttribute) { if(elementNameTable==null) elementNameTable=new ...
public class class_name { String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // Select the appropriate table. if (isAttribute) { if(elementNameTable==null) elementNameTable=new ...
public class class_name { public EEnum getTextOrientationIAxis() { if (textOrientationIAxisEEnum == null) { textOrientationIAxisEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(110); } return textOrientationIAxisEEnum; } }
public class class_name { public EEnum getTextOrientationIAxis() { if (textOrientationIAxisEEnum == null) { textOrientationIAxisEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(110); // depends on control dependency: [if], data = [none] } return textOrientatio...
public class class_name { public static Character toCharacterObject(char ch) { if (ch < CHAR_ARRAY.length) { return CHAR_ARRAY[ch]; } return new Character(ch); } }
public class class_name { public static Character toCharacterObject(char ch) { if (ch < CHAR_ARRAY.length) { return CHAR_ARRAY[ch]; // depends on control dependency: [if], data = [none] } return new Character(ch); } }
public class class_name { public static void percentiles(long[] counts, double[] pcts, double[] results) { Preconditions.checkArg(counts.length == BUCKET_VALUES.length, "counts is not the same size as buckets array"); Preconditions.checkArg(pcts.length > 0, "pct array cannot be empty"); Preconditio...
public class class_name { public static void percentiles(long[] counts, double[] pcts, double[] results) { Preconditions.checkArg(counts.length == BUCKET_VALUES.length, "counts is not the same size as buckets array"); Preconditions.checkArg(pcts.length > 0, "pct array cannot be empty"); Preconditio...
public class class_name { public String lookupNamespace(final String prefix) { Object namespace = namespaceMap.get(prefix); if (namespace != null) { return namespace.toString(); } return this.namespaceTagHints.isEmpty() ? prefix : this.namespaceTagHints.get(prefix); } }
public class class_name { public String lookupNamespace(final String prefix) { Object namespace = namespaceMap.get(prefix); if (namespace != null) { return namespace.toString(); // depends on control dependency: [if], data = [none] } return this.namespaceTagHints.isEmpty() ?...
public class class_name { @Override public IPromise<T> awaitPromise(long timeout) { long endtime = 0; if ( timeout > 0 ) { endtime = System.currentTimeMillis() + timeout; } if ( Thread.currentThread() instanceof DispatcherThread ) { DispatcherThread dt = (Dis...
public class class_name { @Override public IPromise<T> awaitPromise(long timeout) { long endtime = 0; if ( timeout > 0 ) { endtime = System.currentTimeMillis() + timeout; // depends on control dependency: [if], data = [none] } if ( Thread.currentThread() instanceof Dispa...