code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private int incrementReferenceCounter(final JobID jobID) { while (true) { AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { ai = new AtomicInteger(1); if (this.libraryReferenceCounter.putIfAbsent(jobID, ai) == null) { return 1; } //...
public class class_name { private int incrementReferenceCounter(final JobID jobID) { while (true) { AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { ai = new AtomicInteger(1); // depends on control dependency: [if], data = [none] if (this.libraryReferenceCounter.putIfAbs...
public class class_name { public void marshall(Target target, ProtocolMarshaller protocolMarshaller) { if (target == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(target.getRepositoryName(), REPOSI...
public class class_name { public void marshall(Target target, ProtocolMarshaller protocolMarshaller) { if (target == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(target.getRepositoryName(), REPOSI...
public class class_name { public static boolean hasReturnType(final Method method) { if (method == null) { return false; } if (method.getReturnType() == null) { return false; } if (Void.class.equals(method.getReturnType())) { return false; ...
public class class_name { public static boolean hasReturnType(final Method method) { if (method == null) { return false; // depends on control dependency: [if], data = [none] } if (method.getReturnType() == null) { return false; // depends on control dependency: [if], da...
public class class_name { @SuppressWarnings("unchecked") private void handleCollectionOfMaps( Object newInstance, FieldAccess field, Collection<Map<String, Object>> collectionOfMaps ) { Collection<Object> newCollection = Conversions.createCollection( field.ty...
public class class_name { @SuppressWarnings("unchecked") private void handleCollectionOfMaps( Object newInstance, FieldAccess field, Collection<Map<String, Object>> collectionOfMaps ) { Collection<Object> newCollection = Conversions.createCollection( field.ty...
public class class_name { public void setSystemEventHandler(final SystemEventHandler systemEventHandler) { if (systemEventSubscription != null) { systemEventSubscription.unsubscribe(); } if (systemEventHandler != null) { systemEventSubscription = eventBus().get() .filter(evt -> evt.ty...
public class class_name { public void setSystemEventHandler(final SystemEventHandler systemEventHandler) { if (systemEventSubscription != null) { systemEventSubscription.unsubscribe(); // depends on control dependency: [if], data = [none] } if (systemEventHandler != null) { systemEventSubscript...
public class class_name { public void routeEvent(EventContext event) { final EventRoutingTaskImpl eventRoutingTask = new EventRoutingTaskImpl(event,sleeContainer); if (stats == null) { executor.execute(eventRoutingTask); } else { executor.execute(new EventRoutingTaskStatsCollector( eventRoutingTask));...
public class class_name { public void routeEvent(EventContext event) { final EventRoutingTaskImpl eventRoutingTask = new EventRoutingTaskImpl(event,sleeContainer); if (stats == null) { executor.execute(eventRoutingTask); // depends on control dependency: [if], data = [none] } else { executor.execute(new Ev...
public class class_name { private String parseOuterClassName() { StringBuilder sb = new StringBuilder(); sb.append(parseJavaId()); while (peekChar() == packageSeparator) { // '/' or '.' nextChar(packageSeparator); sb.append('.'); sb.append(parseJavaId()); } return sb.toString(); } }
public class class_name { private String parseOuterClassName() { StringBuilder sb = new StringBuilder(); sb.append(parseJavaId()); while (peekChar() == packageSeparator) { // '/' or '.' nextChar(packageSeparator); // depends on control dependency: [while], data = [packageSeparator)] sb.append('.'); /...
public class class_name { public void marshall(DisableSecurityHubRequest disableSecurityHubRequest, ProtocolMarshaller protocolMarshaller) { if (disableSecurityHubRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (...
public class class_name { public void marshall(DisableSecurityHubRequest disableSecurityHubRequest, ProtocolMarshaller protocolMarshaller) { if (disableSecurityHubRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (...
public class class_name { public static final ULocale[] getAvailableULocales() { if (shim == null) { return ICUResourceBundle.getAvailableULocales( ICUData.ICU_COLLATION_BASE_NAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER); } return shim.getAvailableULocales(); } ...
public class class_name { public static final ULocale[] getAvailableULocales() { if (shim == null) { return ICUResourceBundle.getAvailableULocales( ICUData.ICU_COLLATION_BASE_NAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER); // depends on control dependency: [if], data = [none] ...
public class class_name { public ImageBuilder withImageBuilderErrors(ResourceError... imageBuilderErrors) { if (this.imageBuilderErrors == null) { setImageBuilderErrors(new java.util.ArrayList<ResourceError>(imageBuilderErrors.length)); } for (ResourceError ele : imageBuilderErrors)...
public class class_name { public ImageBuilder withImageBuilderErrors(ResourceError... imageBuilderErrors) { if (this.imageBuilderErrors == null) { setImageBuilderErrors(new java.util.ArrayList<ResourceError>(imageBuilderErrors.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { protected static ContentCreateOptions newContentCreateOptions( DocumentMetadata meta, ContentCreateOptions options, boolean isCopyColls, boolean isCopyQuality, boolean isCopyMeta, boolean isCopyPerms, long effectiveVersion) { ContentCreateOptions o...
public class class_name { protected static ContentCreateOptions newContentCreateOptions( DocumentMetadata meta, ContentCreateOptions options, boolean isCopyColls, boolean isCopyQuality, boolean isCopyMeta, boolean isCopyPerms, long effectiveVersion) { ContentCreateOptions o...
public class class_name { public int discriminate(VirtualConnection vc, Object discrimData) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "discriminate", new Object[] { vc, discrimData }); int answer; // begin D218910 WsByteBuffer[] d...
public class class_name { public int discriminate(VirtualConnection vc, Object discrimData) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "discriminate", new Object[] { vc, discrimData }); int answer; // begin D218910 WsByteBuffer[] d...
public class class_name { public void rekey( String skey ) throws jsqlite.Exception { synchronized (this) { byte ekey[] = null; if (skey != null && skey.length() > 0) { ekey = new byte[skey.length()]; for( int i = 0; i < skey.length(); i++ ) { ...
public class class_name { public void rekey( String skey ) throws jsqlite.Exception { synchronized (this) { byte ekey[] = null; if (skey != null && skey.length() > 0) { ekey = new byte[skey.length()]; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void setX(double min, double max) { if (min <= max) { this.minxProperty.set(min); this.maxxProperty.set(max); } else { this.minxProperty.set(max); this.maxxProperty.set(min); } } }
public class class_name { @Override public void setX(double min, double max) { if (min <= max) { this.minxProperty.set(min); // depends on control dependency: [if], data = [(min] this.maxxProperty.set(max); // depends on control dependency: [if], data = [none] } else { this.minxProperty.set(max); // depe...
public class class_name { public FFmpegProbeResult probe(String mediaPath, @Nullable String userAgent) throws IOException { checkIfFFprobe(); ImmutableList.Builder<String> args = new ImmutableList.Builder<String>(); // TODO Add: // .add("--show_packets") // .add("--show_frames") args.add(pat...
public class class_name { public FFmpegProbeResult probe(String mediaPath, @Nullable String userAgent) throws IOException { checkIfFFprobe(); ImmutableList.Builder<String> args = new ImmutableList.Builder<String>(); // TODO Add: // .add("--show_packets") // .add("--show_frames") args.add(pat...
public class class_name { private void decodeStartRule() { useDaylight = (startDay != 0) && (endDay != 0); if (useDaylight && dst == 0) { dst = Grego.MILLIS_PER_DAY; } if (startDay != 0) { if (startMonth < Calendar.JANUARY || startMonth > Calendar.DECEMBER) { ...
public class class_name { private void decodeStartRule() { useDaylight = (startDay != 0) && (endDay != 0); if (useDaylight && dst == 0) { dst = Grego.MILLIS_PER_DAY; // depends on control dependency: [if], data = [none] } if (startDay != 0) { if (startMonth < Cal...
public class class_name { public T setLogDirectory(final Path path) { if (path == null) { logDir = null; } else { if (Files.exists(path) && !Files.isDirectory(path)) { throw LauncherMessages.MESSAGES.invalidDirectory(path); } logDir = path...
public class class_name { public T setLogDirectory(final Path path) { if (path == null) { logDir = null; // depends on control dependency: [if], data = [none] } else { if (Files.exists(path) && !Files.isDirectory(path)) { throw LauncherMessages.MESSAGES.invalidDi...
public class class_name { public static String getFileNameWithoutExtenxion(String fileName) { if (fileName==null){ return null; } else { int number=fileName.lastIndexOf('.'); if (number>=0){ return fileName.substring(0, number); } else { return fileName; } } } }
public class class_name { public static String getFileNameWithoutExtenxion(String fileName) { if (fileName==null){ return null; // depends on control dependency: [if], data = [none] } else { int number=fileName.lastIndexOf('.'); if (number>=0){ return fileName.substring(0, number); // depe...
public class class_name { protected ClassLoader getClassLoader() { ClassLoader classLoader = null; try { classLoader = Thread.currentThread().getContextClassLoader(); } catch (Throwable ex) { // Cannot access thread context ClassLoader - falling back... } ...
public class class_name { protected ClassLoader getClassLoader() { ClassLoader classLoader = null; try { classLoader = Thread.currentThread().getContextClassLoader(); // depends on control dependency: [try], data = [none] } catch (Throwable ex) { // Cannot access thread ...
public class class_name { public int runAll() { int numTasksRun = 0; if (Thread.currentThread().equals(executorThread)) { Logger.info("ignoring request to execute task - called from executor's own thread"); return numTasksRun; } while (hasQueuedTasks()) { runNext(); numTasksRun+...
public class class_name { public int runAll() { int numTasksRun = 0; if (Thread.currentThread().equals(executorThread)) { Logger.info("ignoring request to execute task - called from executor's own thread"); // depends on control dependency: [if], data = [none] return numTasksRun; // depends on cont...
public class class_name { public static SubscribeManager getSubscribeManager(SubscribeType type) { if (type == null) { return null; } SubscribeManager manager = (SubscribeManager) innerContainer.get(type); return manager; } }
public class class_name { public static SubscribeManager getSubscribeManager(SubscribeType type) { if (type == null) { return null; // depends on control dependency: [if], data = [none] } SubscribeManager manager = (SubscribeManager) innerContainer.get(type); return manager;...
public class class_name { public static String getUrlParentDir(String url) { try { UsableURI uri = UsableURIFactory.getInstance(url); String path = uri.getPath(); if(path.length() > 1) { int startIdx = path.length()-1; if(path.charAt(path.length()-1) == '/') { startIdx--; } int idx = pa...
public class class_name { public static String getUrlParentDir(String url) { try { UsableURI uri = UsableURIFactory.getInstance(url); String path = uri.getPath(); if(path.length() > 1) { int startIdx = path.length()-1; if(path.charAt(path.length()-1) == '/') { startIdx--; // depends on control ...
public class class_name { private Attribute<D> putInstance(Schema.BaseType instanceBaseType, Supplier<Attribute<D>> finder, BiFunction<VertexElement, AttributeType<D>, Attribute<D>> producer, boolean isInferred) { Attribute<D> instance = finder.get(); if (instance == null) { instance = addI...
public class class_name { private Attribute<D> putInstance(Schema.BaseType instanceBaseType, Supplier<Attribute<D>> finder, BiFunction<VertexElement, AttributeType<D>, Attribute<D>> producer, boolean isInferred) { Attribute<D> instance = finder.get(); if (instance == null) { instance = addI...
public class class_name { public void setLogDataDirectory(String logDataDirectory) { LogState state = ivLog.setDataDirectory(logDataDirectory); if (state != null) { updateLogConfiguration(state); state.copyTo(ivLog); } } }
public class class_name { public void setLogDataDirectory(String logDataDirectory) { LogState state = ivLog.setDataDirectory(logDataDirectory); if (state != null) { updateLogConfiguration(state); // depends on control dependency: [if], data = [(state] state.copyTo(ivLog); // depends on control de...
public class class_name { @Override public void removeByUuid_C(String uuid, long companyId) { for (CPInstance cpInstance : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpInstance); } } }
public class class_name { @Override public void removeByUuid_C(String uuid, long companyId) { for (CPInstance cpInstance : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpInstance); // depends on control dependency: [for], data = [cpInstance] } } }
public class class_name { public final void cleanupTicks(StreamInfo sinfo, TransactionCommon t, ArrayList valueTicks) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanupTicks", new Object[]{sinfo, t, valueTicks}); ...
public class class_name { public final void cleanupTicks(StreamInfo sinfo, TransactionCommon t, ArrayList valueTicks) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanupTicks", new Object[]{sinfo, t, valueTicks}); ...
public class class_name { private void removeConnectionCallbacks() { connection.removeSyncStanzaListener(messageListener); if (messageCollector != null) { messageCollector.cancel(); messageCollector = null; } } }
public class class_name { private void removeConnectionCallbacks() { connection.removeSyncStanzaListener(messageListener); if (messageCollector != null) { messageCollector.cancel(); // depends on control dependency: [if], data = [none] messageCollector = null; // depends on cont...
public class class_name { private Set<String> getEnvironments(Properties props) { Set<String> environments = new HashSet<>(); for (Object k : props.keySet()) { String environment = k.toString().split("\\.")[0]; environments.add(environment); } return new TreeSet<...
public class class_name { private Set<String> getEnvironments(Properties props) { Set<String> environments = new HashSet<>(); for (Object k : props.keySet()) { String environment = k.toString().split("\\.")[0]; environments.add(environment); // depends on control dependency: [fo...
public class class_name { protected Element getElement(Object parent, String name) { if (name == null) { return null; } String id; if (parent == null) { id = getRootElement().getId(); } else { id = groupToId.get(parent); } return Dom.getElementById(Dom.assembleId(id, name)); } }
public class class_name { protected Element getElement(Object parent, String name) { if (name == null) { return null; // depends on control dependency: [if], data = [none] } String id; if (parent == null) { id = getRootElement().getId(); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static List<IElement> getHeavyElements(IMolecularFormula formula) { List<IElement> newEle = new ArrayList<IElement>(); for (IElement element : elements(formula)) { if (!element.getSymbol().equals("H")) { newEle.add(element); } ...
public class class_name { public static List<IElement> getHeavyElements(IMolecularFormula formula) { List<IElement> newEle = new ArrayList<IElement>(); for (IElement element : elements(formula)) { if (!element.getSymbol().equals("H")) { newEle.add(element); // depends on con...
public class class_name { public URL getAlias() { if (__checkAliases && !_aliasChecked) { try { String abs=_file.getAbsolutePath(); String can=_file.getCanonicalPath(); if (abs.length()!=can.length() || !ab...
public class class_name { public URL getAlias() { if (__checkAliases && !_aliasChecked) { try { String abs=_file.getAbsolutePath(); String can=_file.getCanonicalPath(); if (abs.length()!=can.length() || !ab...
public class class_name { private Object parentValue(Object pojo) { Object parentValue = parent.getValue(pojo); if (parentValue == null && autoCreateParent) { Object newParent = ReflectionUtils.newInstance(parent.getType().getRawType()); parent.setValue(pojo, newParent); ...
public class class_name { private Object parentValue(Object pojo) { Object parentValue = parent.getValue(pojo); if (parentValue == null && autoCreateParent) { Object newParent = ReflectionUtils.newInstance(parent.getType().getRawType()); parent.setValue(pojo, newParent); // depe...
public class class_name { @SuppressWarnings("unchecked") public final <C extends T> PropertyList<C> getProperties(final String name) { final PropertyList<C> list = new PropertyList<C>(); for (final T p : this) { if (p.getName().equalsIgnoreCase(name)) { list.add((C) p); ...
public class class_name { @SuppressWarnings("unchecked") public final <C extends T> PropertyList<C> getProperties(final String name) { final PropertyList<C> list = new PropertyList<C>(); for (final T p : this) { if (p.getName().equalsIgnoreCase(name)) { list.add((C) p); ...
public class class_name { public void saveXml(T jaxbBean, OutputStream outputStream) { try { validate(jaxbBean); getOrCreateMarshaller().marshal(jaxbBean, outputStream); } catch (MarshalException e) { throw new XmlInvalidException(e, jaxbBean); } catch (JAXBException e) { throw new...
public class class_name { public void saveXml(T jaxbBean, OutputStream outputStream) { try { validate(jaxbBean); // depends on control dependency: [try], data = [none] getOrCreateMarshaller().marshal(jaxbBean, outputStream); // depends on control dependency: [try], data = [none] } catch (MarshalEx...
public class class_name { private static long valuedt(TemporalAccessor datetime, ZoneId otherTimezoneOffset) { ZoneId alternativeTZ = Optional.ofNullable(otherTimezoneOffset).orElse(ZoneOffset.UTC); if (datetime instanceof LocalDateTime) { return ((LocalDateTime) datetime).atZone(alternativ...
public class class_name { private static long valuedt(TemporalAccessor datetime, ZoneId otherTimezoneOffset) { ZoneId alternativeTZ = Optional.ofNullable(otherTimezoneOffset).orElse(ZoneOffset.UTC); if (datetime instanceof LocalDateTime) { return ((LocalDateTime) datetime).atZone(alternativ...
public class class_name { public void doGenerateExampleQueries(String args) { Boolean del = false; if (args != null && "overwrite".equals(args)) { del = true; } if (corpusList != null) { for (Long corpusId : corpusList) { System.out.println("generate example queries...
public class class_name { public void doGenerateExampleQueries(String args) { Boolean del = false; if (args != null && "overwrite".equals(args)) { del = true; // depends on control dependency: [if], data = [none] } if (corpusList != null) { for (Long corpusId : corpusList) ...
public class class_name { private void trim() { int left = 0; int right = 2 * k - 1; int minThresholdPosition = 0; // The leftmost position at which the greatest of the k lower elements // -- the new value of threshold -- might be found. int iterations = 0; int maxIterations = IntMath.log...
public class class_name { private void trim() { int left = 0; int right = 2 * k - 1; int minThresholdPosition = 0; // The leftmost position at which the greatest of the k lower elements // -- the new value of threshold -- might be found. int iterations = 0; int maxIterations = IntMath.log...
public class class_name { public static String addToFilter(String filter, String key, String value) { if (value != null) { String newFilter = "(" + key + "=" + value + ")"; if ((filter == null) || (filter.length() == 0)) filter = newFilter; else ...
public class class_name { public static String addToFilter(String filter, String key, String value) { if (value != null) { String newFilter = "(" + key + "=" + value + ")"; if ((filter == null) || (filter.length() == 0)) filter = newFilter; else ...
public class class_name { public void writeElement(String name, int type) { StringBuffer nsdecl = new StringBuffer(); if (_isRootElement) { for (Iterator<String> iter = _namespaces.keySet().iterator(); iter .hasNext();) { String fullName = (String) iter....
public class class_name { public void writeElement(String name, int type) { StringBuffer nsdecl = new StringBuffer(); if (_isRootElement) { for (Iterator<String> iter = _namespaces.keySet().iterator(); iter .hasNext();) { String fullName = (String) iter....
public class class_name { public QuestionStructure getMainPart(String question, List<edu.stanford.nlp.ling.Word> words) { QuestionStructure questionStructure = new QuestionStructure(); questionStructure.setQuestion(question); Tree tree = LP.apply(words); LOG.info("句法树: "); tree...
public class class_name { public QuestionStructure getMainPart(String question, List<edu.stanford.nlp.ling.Word> words) { QuestionStructure questionStructure = new QuestionStructure(); questionStructure.setQuestion(question); Tree tree = LP.apply(words); LOG.info("句法树: "); tree...
public class class_name { @Override public boolean contains(int element) { if (element < 0) { throw new IndexOutOfBoundsException("element < 0: " + element); } if (isEmpty()) { return false; } return findElementOrEmpty(element) >= 0; } }
public class class_name { @Override public boolean contains(int element) { if (element < 0) { throw new IndexOutOfBoundsException("element < 0: " + element); } if (isEmpty()) { return false; // depends on control dependency: [if], data = [none] } return findElementOrEmpty(e...
public class class_name { void markStackedVariables(Stack s) { // Reverse the stack. Stack bts = new Stack(); // LogStream.err.println("Variables to be marked:"); while (!s.empty()) { // LogStream.err.println(((BaseType)s.peek()).getName()); bts.push(s...
public class class_name { void markStackedVariables(Stack s) { // Reverse the stack. Stack bts = new Stack(); // LogStream.err.println("Variables to be marked:"); while (!s.empty()) { // LogStream.err.println(((BaseType)s.peek()).getName()); bts.push(s...
public class class_name { public PropertyStyle getStyle() { if (isDerived()) { return PropertyStyle.DERIVED; } if (getBean().isImmutable()) { return PropertyStyle.IMMUTABLE; } if (getGetStyle().length() > 0 && getSetStyle().length() > 0 && (getSetterGen()...
public class class_name { public PropertyStyle getStyle() { if (isDerived()) { return PropertyStyle.DERIVED; // depends on control dependency: [if], data = [none] } if (getBean().isImmutable()) { return PropertyStyle.IMMUTABLE; // depends on control dependency: [if], dat...
public class class_name { public DeleteFacesRequest withFaceIds(String... faceIds) { if (this.faceIds == null) { setFaceIds(new java.util.ArrayList<String>(faceIds.length)); } for (String ele : faceIds) { this.faceIds.add(ele); } return this; } }
public class class_name { public DeleteFacesRequest withFaceIds(String... faceIds) { if (this.faceIds == null) { setFaceIds(new java.util.ArrayList<String>(faceIds.length)); // depends on control dependency: [if], data = [none] } for (String ele : faceIds) { this.faceIds...
public class class_name { E getEntry(@Nullable Object key) { if (key == null) { return null; } int hash = hash(key); return segmentFor(hash).getEntry(key, hash); } }
public class class_name { E getEntry(@Nullable Object key) { if (key == null) { return null; // depends on control dependency: [if], data = [none] } int hash = hash(key); return segmentFor(hash).getEntry(key, hash); } }
public class class_name { public List<NodeData> getChildNodesData(NodeData parent) throws RepositoryException, IllegalStateException { checkIfOpened(); try { ResultSet node = findChildNodesByParentIdentifier(getInternalId(parent.getIdentifier())); try { List<...
public class class_name { public List<NodeData> getChildNodesData(NodeData parent) throws RepositoryException, IllegalStateException { checkIfOpened(); try { ResultSet node = findChildNodesByParentIdentifier(getInternalId(parent.getIdentifier())); try { List<...
public class class_name { public void accept(final MethodVisitor mv) { AbstractInsnNode insn = first; while (insn != null) { insn.accept(mv); insn = insn.next; } } }
public class class_name { public void accept(final MethodVisitor mv) { AbstractInsnNode insn = first; while (insn != null) { insn.accept(mv); // depends on control dependency: [while], data = [none] insn = insn.next; // depends on control dependency: [while], data = [none] ...
public class class_name { private ResultSet executeCQL(String cql) { m_logger.debug("Executing CQL: {}", cql); try { return m_dbservice.getSession().execute(cql); } catch (Exception e) { m_logger.error("CQL query failed", e); m_logger.info(" Query={}", cql)...
public class class_name { private ResultSet executeCQL(String cql) { m_logger.debug("Executing CQL: {}", cql); try { return m_dbservice.getSession().execute(cql); // depends on control dependency: [try], data = [none] } catch (Exception e) { m_logger.error("CQL query fai...
public class class_name { public synchronized void suspended(ServerActivityCallback requestCountListener) { this.paused = true; listenerUpdater.set(this, requestCountListener); if (activeRequestCountUpdater.get(this) == 0) { if (listenerUpdater.compareAndSet(this, requestCountListe...
public class class_name { public synchronized void suspended(ServerActivityCallback requestCountListener) { this.paused = true; listenerUpdater.set(this, requestCountListener); if (activeRequestCountUpdater.get(this) == 0) { if (listenerUpdater.compareAndSet(this, requestCountListe...
public class class_name { public ServiceBroker createService(String name, Service service) { if (serviceRegistry == null) { // Start service later services.put(name, service); } else { // Register and start service now eventbus.addListeners(name, service); serviceRegistry.addActions(name, service)...
public class class_name { public ServiceBroker createService(String name, Service service) { if (serviceRegistry == null) { // Start service later services.put(name, service); // depends on control dependency: [if], data = [none] } else { // Register and start service now eventbus.addListeners(name, ...
public class class_name { @Deprecated public static RoaringBitmap remove(RoaringBitmap rb, final int rangeStart, final int rangeEnd) { if (rangeStart >= 0) { return remove(rb, (long) rangeStart, (long) rangeEnd); } // rangeStart being -ve and rangeEnd being positive is not expected) // so assum...
public class class_name { @Deprecated public static RoaringBitmap remove(RoaringBitmap rb, final int rangeStart, final int rangeEnd) { if (rangeStart >= 0) { return remove(rb, (long) rangeStart, (long) rangeEnd); // depends on control dependency: [if], data = [none] } // rangeStart being -ve and ra...
public class class_name { protected static OrientEdge getEdge(final OrientBaseGraph graph, final ODocument doc, String fieldName, final OPair<Direction, String> connection, final Object fieldValue, final OIdentifiable iTargetVertex, final String[] iLabels) { final OrientEdge toAdd; final ODocument...
public class class_name { protected static OrientEdge getEdge(final OrientBaseGraph graph, final ODocument doc, String fieldName, final OPair<Direction, String> connection, final Object fieldValue, final OIdentifiable iTargetVertex, final String[] iLabels) { final OrientEdge toAdd; final ODocument...
public class class_name { private static Identity parse(final JsonObject json) { final Map<String, String> props = new HashMap<>(json.size()); final Opt<JsonObject> image = new Opt.Single<>( json.getJsonObject("image") ); if (image.has()) { props.put(PsGoogle.PIC...
public class class_name { private static Identity parse(final JsonObject json) { final Map<String, String> props = new HashMap<>(json.size()); final Opt<JsonObject> image = new Opt.Single<>( json.getJsonObject("image") ); if (image.has()) { props.put(PsGoogle.PIC...
public class class_name { public void marshall(UpdateChannelRequest updateChannelRequest, ProtocolMarshaller protocolMarshaller) { if (updateChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(UpdateChannelRequest updateChannelRequest, ProtocolMarshaller protocolMarshaller) { if (updateChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { private Bwprocesses getBWProcesses(Bw bwService) { for (Object o : bwService.getRest()) { if (o.getClass().equals(Bwprocesses.class)) { return (Bwprocesses) o; } } return null; } }
public class class_name { private Bwprocesses getBWProcesses(Bw bwService) { for (Object o : bwService.getRest()) { if (o.getClass().equals(Bwprocesses.class)) { return (Bwprocesses) o; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { public ValueVo getConfItemByParameter(Long appId, Long envId, String version, String key) { Config config = configDao.getByParameter(appId, envId, version, key, DisConfigTypeEnum.ITEM); if (config == null) { return ConfigUtils.getErrorVo("cannot find this config")...
public class class_name { public ValueVo getConfItemByParameter(Long appId, Long envId, String version, String key) { Config config = configDao.getByParameter(appId, envId, version, key, DisConfigTypeEnum.ITEM); if (config == null) { return ConfigUtils.getErrorVo("cannot find this config")...
public class class_name { private boolean _decompose() { double h[] = QH.data; for( int k = 0; k < N-2; k++ ) { // find the largest value in this column // this is used to normalize the column and mitigate overflow/underflow double max = 0; for( int i =...
public class class_name { private boolean _decompose() { double h[] = QH.data; for( int k = 0; k < N-2; k++ ) { // find the largest value in this column // this is used to normalize the column and mitigate overflow/underflow double max = 0; for( int i =...
public class class_name { @Override public ConversationReceiveListener dataReceived(WsByteBuffer data, int segmentType, int requestNumber, int priority, boolean allocatedFromBufferPool, ...
public class class_name { @Override public ConversationReceiveListener dataReceived(WsByteBuffer data, int segmentType, int requestNumber, int priority, boolean allocatedFromBufferPool, ...
public class class_name { public DatePicker setDateFormat(SimpleDateFormat dateFormat) { this.dateFormat = dateFormat; for (Validator validator : this.getValidators()) { if (validator instanceof DateValidator) { ((DateValidator) validator).setDateFormat(dateFormat); ...
public class class_name { public DatePicker setDateFormat(SimpleDateFormat dateFormat) { this.dateFormat = dateFormat; for (Validator validator : this.getValidators()) { if (validator instanceof DateValidator) { ((DateValidator) validator).setDateFormat(dateFormat); // ...
public class class_name { public void marshall(ListBackupPlanVersionsRequest listBackupPlanVersionsRequest, ProtocolMarshaller protocolMarshaller) { if (listBackupPlanVersionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListBackupPlanVersionsRequest listBackupPlanVersionsRequest, ProtocolMarshaller protocolMarshaller) { if (listBackupPlanVersionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Nullable public static String getRealPathFromUri(ContentResolver contentResolver, final Uri srcUri) { String result = null; if (isLocalContentUri(srcUri)) { Cursor cursor = null; try { cursor = contentResolver.query(srcUri, null, null, null, null); if (c...
public class class_name { @Nullable public static String getRealPathFromUri(ContentResolver contentResolver, final Uri srcUri) { String result = null; if (isLocalContentUri(srcUri)) { Cursor cursor = null; try { cursor = contentResolver.query(srcUri, null, null, null, null); // depends on...
public class class_name { static final Set<String> uniquePrefixSet(final Config config) { Set<String> prefixSet = Sets.newHashSet(); for(Map.Entry<String, ConfigValue> entry : config.entrySet()) { String key = entry.getKey(); int index = key.indexOf('.'); if(index > 0) { ...
public class class_name { static final Set<String> uniquePrefixSet(final Config config) { Set<String> prefixSet = Sets.newHashSet(); for(Map.Entry<String, ConfigValue> entry : config.entrySet()) { String key = entry.getKey(); int index = key.indexOf('.'); if(index > 0) { ...
public class class_name { public void marshall(ListPipelinesRequest listPipelinesRequest, ProtocolMarshaller protocolMarshaller) { if (listPipelinesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(ListPipelinesRequest listPipelinesRequest, ProtocolMarshaller protocolMarshaller) { if (listPipelinesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public I_CmsEditor getEditorForType(I_CmsResourceType type, boolean plainText) { List<I_CmsEditor> editors = new ArrayList<I_CmsEditor>(); for (int i = 0; i < EDITORS.length; i++) { if (EDITORS[i].matchesType(type, plainText)) { editors.add(EDITORS...
public class class_name { public I_CmsEditor getEditorForType(I_CmsResourceType type, boolean plainText) { List<I_CmsEditor> editors = new ArrayList<I_CmsEditor>(); for (int i = 0; i < EDITORS.length; i++) { if (EDITORS[i].matchesType(type, plainText)) { editors.add(EDITORS...
public class class_name { public static <T> List<T> createServiceObjects(String... pDescriptorPaths) { try { ServiceEntry.initDefaultOrder(); TreeMap<ServiceEntry,T> extractorMap = new TreeMap<ServiceEntry,T>(); for (String descriptor : pDescriptorPaths) { re...
public class class_name { public static <T> List<T> createServiceObjects(String... pDescriptorPaths) { try { ServiceEntry.initDefaultOrder(); // depends on control dependency: [try], data = [none] TreeMap<ServiceEntry,T> extractorMap = new TreeMap<ServiceEntry,T>(); for (Str...
public class class_name { public static long longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { SQLiteStatement prog = db.compileStatement(query); try { return longForQuery(prog, selectionArgs); } finally { prog.close(); } } }
public class class_name { public static long longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { SQLiteStatement prog = db.compileStatement(query); try { return longForQuery(prog, selectionArgs); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public void getImageAttributes(Map<String, String> attributes, I_CmsSimpleCallback<Map<String, String>> callback) { if (getGalleryMode() == GalleryMode.editor) { m_imageEditorFormatsTab.getImageAttributes(attributes); m_imageAdvancedTab.getImageAttributes(attr...
public class class_name { public void getImageAttributes(Map<String, String> attributes, I_CmsSimpleCallback<Map<String, String>> callback) { if (getGalleryMode() == GalleryMode.editor) { m_imageEditorFormatsTab.getImageAttributes(attributes); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public String ingest(DataHandler objectXML, String format, String logMessage) { LOG.debug("start: ingest"); assertInitialized(); try { // always gens pid, unless pid in stream starts with "test:" "demo:" // or other prefix that is ...
public class class_name { @Override public String ingest(DataHandler objectXML, String format, String logMessage) { LOG.debug("start: ingest"); assertInitialized(); try { // always gens pid, unless pid in stream starts with "test:" "demo:" // or other prefix that is ...
public class class_name { public void marshall(DeleteKnownHostKeysRequest deleteKnownHostKeysRequest, ProtocolMarshaller protocolMarshaller) { if (deleteKnownHostKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(DeleteKnownHostKeysRequest deleteKnownHostKeysRequest, ProtocolMarshaller protocolMarshaller) { if (deleteKnownHostKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { private Queue<QueueElem> getInstanceSplitList(final AbstractInstance instance) { Queue<QueueElem> instanceSplitList = this.instanceMap.get(instance); if (instanceSplitList == null) { // Create and populate instance specific split list instanceSplitList = new PriorityQueue<Locatabl...
public class class_name { private Queue<QueueElem> getInstanceSplitList(final AbstractInstance instance) { Queue<QueueElem> instanceSplitList = this.instanceMap.get(instance); if (instanceSplitList == null) { // Create and populate instance specific split list instanceSplitList = new PriorityQueue<Locatabl...
public class class_name { public static void main(final String[] args) throws IOException, InterruptedException { final NamedEntityAnalyser nea = new NamedEntityAnalyser(new Configuration()); if (args.length >= 1) { final String content = new String(Files.readAllBytes(Paths.get(args[0]))); ...
public class class_name { public static void main(final String[] args) throws IOException, InterruptedException { final NamedEntityAnalyser nea = new NamedEntityAnalyser(new Configuration()); if (args.length >= 1) { final String content = new String(Files.readAllBytes(Paths.get(args[0]))); ...
public class class_name { protected String lookupServerURL(DataBinder binder) { _logger.info("STANDARD lookupServerURL: servers=" + _servers + ", selector='" + _selector + '\''); if (_servers != null) { if (_selector != null) { return _servers.get(binder.get(_selector)); ...
public class class_name { protected String lookupServerURL(DataBinder binder) { _logger.info("STANDARD lookupServerURL: servers=" + _servers + ", selector='" + _selector + '\''); if (_servers != null) { if (_selector != null) { return _servers.get(binder.get(_selector)); // ...
public class class_name { @Override public CommercePriceEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommercePriceEntryModelImpl.ENTITY_CACHE_ENABLED, CommercePriceEntryImpl.class, primaryKey); if (serializable == nullModel) { return null; } Com...
public class class_name { @Override public CommercePriceEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommercePriceEntryModelImpl.ENTITY_CACHE_ENABLED, CommercePriceEntryImpl.class, primaryKey); if (serializable == nullModel) { return null; // depends...
public class class_name { public Object put(String key, Boolean value) { if (value == null) { stateMap.put(key, Type.NULL); } else { stateMap.put(key, Type.BOOLEAN); } return super.put(key, value); } }
public class class_name { public Object put(String key, Boolean value) { if (value == null) { stateMap.put(key, Type.NULL); // depends on control dependency: [if], data = [none] } else { stateMap.put(key, Type.BOOLEAN); // depends on control dependency: [if], data = [none] } return super.put(key, value)...
public class class_name { private static String normalize( String pathName ) { // replaces multiple '/' by one unique '/' pathName = pathName.replaceAll( "/+", "/" ); // removes a '/' if it finishes a path and is not root pathName = pathName.replaceAll( "(.+)/$", "$1" ); i...
public class class_name { private static String normalize( String pathName ) { // replaces multiple '/' by one unique '/' pathName = pathName.replaceAll( "/+", "/" ); // removes a '/' if it finishes a path and is not root pathName = pathName.replaceAll( "(.+)/$", "$1" ); i...
public class class_name { private ImageIcon createIcon(String resourcePath) { if (getView() == null) { return null; } return new ImageIcon(ExtensionScript.class.getResource(resourcePath)); } }
public class class_name { private ImageIcon createIcon(String resourcePath) { if (getView() == null) { return null; // depends on control dependency: [if], data = [none] } return new ImageIcon(ExtensionScript.class.getResource(resourcePath)); } }
public class class_name { public java.util.List<Timezone> getSupportedTimezones() { if (supportedTimezones == null) { supportedTimezones = new com.amazonaws.internal.SdkInternalList<Timezone>(); } return supportedTimezones; } }
public class class_name { public java.util.List<Timezone> getSupportedTimezones() { if (supportedTimezones == null) { supportedTimezones = new com.amazonaws.internal.SdkInternalList<Timezone>(); // depends on control dependency: [if], data = [none] } return supportedTimezones; }...
public class class_name { public static boolean hasExtension(String extension) { if (extension == null || extension.length() == 0) { return false; } return extensionToMimeTypeMap.containsKey(extension); } }
public class class_name { public static boolean hasExtension(String extension) { if (extension == null || extension.length() == 0) { return false; // depends on control dependency: [if], data = [none] } return extensionToMimeTypeMap.containsKey(extension); } }
public class class_name { @Override public void setSelected(ButtonModel m, boolean selected) { if (!selected && m == getSelection()) { clearSelection(); } else { super.setSelected(m, selected); } } }
public class class_name { @Override public void setSelected(ButtonModel m, boolean selected) { if (!selected && m == getSelection()) { clearSelection(); // depends on control dependency: [if], data = [none] } else { super.setSelected(m, selected); // depends on control depen...
public class class_name { public Permission withAccess(String... access) { if (this.access == null) { setAccess(new com.amazonaws.internal.SdkInternalList<String>(access.length)); } for (String ele : access) { this.access.add(ele); } return this; } }
public class class_name { public Permission withAccess(String... access) { if (this.access == null) { setAccess(new com.amazonaws.internal.SdkInternalList<String>(access.length)); // depends on control dependency: [if], data = [none] } for (String ele : access) { this.ac...
public class class_name { public static String getCanonicalName(final Class<?> cls, final String valueIfNull) { if (cls == null) { return valueIfNull; } final String canonicalName = cls.getCanonicalName(); return canonicalName == null ? valueIfNull : canonicalName; } }
public class class_name { public static String getCanonicalName(final Class<?> cls, final String valueIfNull) { if (cls == null) { return valueIfNull; // depends on control dependency: [if], data = [none] } final String canonicalName = cls.getCanonicalName(); return canonica...
public class class_name { public MatrixFile calculate(Matrix input) { try { File affMatrixFile = File.createTempFile("affinty-matrix",".dat"); PrintWriter affMatrixWriter = new PrintWriter(affMatrixFile); int rows = input.rows(); // Iterate through ...
public class class_name { public MatrixFile calculate(Matrix input) { try { File affMatrixFile = File.createTempFile("affinty-matrix",".dat"); PrintWriter affMatrixWriter = new PrintWriter(affMatrixFile); int rows = input.rows(); // Iterate through ...
public class class_name { private Optional tryCreate(Constructor<?> constructor) { Object[] args = new Object[constructor.getParameterCount()]; Object arg; Optional<Object> resolved; int i = 0; for (Parameter parameter : constructor.getParameters()) { resolved = context.resolve(parameter); ...
public class class_name { private Optional tryCreate(Constructor<?> constructor) { Object[] args = new Object[constructor.getParameterCount()]; Object arg; Optional<Object> resolved; int i = 0; for (Parameter parameter : constructor.getParameters()) { resolved = context.resolve(parameter); //...
public class class_name { public static Pointcut createPointcut(PointcutRule pointcutRule) { if (pointcutRule.getPointcutType() == PointcutType.REGEXP) { return createRegexpPointcut(pointcutRule.getPointcutPatternRuleList()); } else { return createWildcardPointcut(pointcutRule.g...
public class class_name { public static Pointcut createPointcut(PointcutRule pointcutRule) { if (pointcutRule.getPointcutType() == PointcutType.REGEXP) { return createRegexpPointcut(pointcutRule.getPointcutPatternRuleList()); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static String calculateHash(MessageDigest d, byte[] bytes) { if (bytes == null) { return null; } d.update(bytes); return ByteUtilities.encode(d.digest()); } }
public class class_name { public static String calculateHash(MessageDigest d, byte[] bytes) { if (bytes == null) { return null; // depends on control dependency: [if], data = [none] } d.update(bytes); return ByteUtilities.encode(d.digest()); } }
public class class_name { public void setNS(java.util.Collection<String> nS) { if (nS == null) { this.nS = null; return; } java.util.List<String> nSCopy = new java.util.ArrayList<String>(nS.size()); nSCopy.addAll(nS); this.nS = nSCopy; } }
public class class_name { public void setNS(java.util.Collection<String> nS) { if (nS == null) { this.nS = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } java.util.List<String> nSCopy = new jav...
public class class_name { public static void chunkedCopy(InputStream src, File dest) throws IOException { final byte[] buf = new byte[8 << 20]; // 8Mb buffer long offset = 0; long lastOffset = 0; try (final RandomAccessFile raf = new RandomAccessFile(dest, "rw")) { final int fd = getfd(raf.ge...
public class class_name { public static void chunkedCopy(InputStream src, File dest) throws IOException { final byte[] buf = new byte[8 << 20]; // 8Mb buffer long offset = 0; long lastOffset = 0; try (final RandomAccessFile raf = new RandomAccessFile(dest, "rw")) { final int fd = getfd(raf.ge...
public class class_name { public static mil.nga.geopackage.map.geom.MultiPolygon addPolygonsToMap( GoogleMap map, MultiPolygonOptions polygons) { mil.nga.geopackage.map.geom.MultiPolygon multiPolygon = new mil.nga.geopackage.map.geom.MultiPolygon(); for (PolygonOptions polygonOption : polyg...
public class class_name { public static mil.nga.geopackage.map.geom.MultiPolygon addPolygonsToMap( GoogleMap map, MultiPolygonOptions polygons) { mil.nga.geopackage.map.geom.MultiPolygon multiPolygon = new mil.nga.geopackage.map.geom.MultiPolygon(); for (PolygonOptions polygonOption : polyg...
public class class_name { private static void quickSort1(int off, int len, IntComparator comp, Swapper swapper) { // Insertion sort on smallest arrays if (len < SMALL) { for (int i=off; i<len+off; i++) for (int j=i; j>off && (comp.compare(j-1,j)>0); j--) { swapper.swap(j, j-1); } return; } ...
public class class_name { private static void quickSort1(int off, int len, IntComparator comp, Swapper swapper) { // Insertion sort on smallest arrays if (len < SMALL) { for (int i=off; i<len+off; i++) for (int j=i; j>off && (comp.compare(j-1,j)>0); j--) { swapper.swap(j, j-1); // depends on control ...
public class class_name { public static InputStream decompress(final InputStream in, final String fileName) throws IOException { if (fileName.endsWith(GZ_SUFFIX)) { return gzipInputStream(in); } else if (fileName.endsWith(BZ2_SUFFIX)) { return new BZip2CompressorInputStream(in, true); } else ...
public class class_name { public static InputStream decompress(final InputStream in, final String fileName) throws IOException { if (fileName.endsWith(GZ_SUFFIX)) { return gzipInputStream(in); } else if (fileName.endsWith(BZ2_SUFFIX)) { return new BZip2CompressorInputStream(in, true); } else ...
public class class_name { @Override public void destroy() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "destroy : " + this); if (state == DESTROYED) { if (isTraceOn && tc.isEntryEnabled()) ...
public class class_name { @Override public void destroy() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "destroy : " + this); if (state == DESTROYED) { if (isTraceOn && tc.isEntryEnabled()) ...
public class class_name { public ClientBuilder interceptors(HttpConnectionInterceptor... interceptors) { for (HttpConnectionInterceptor interceptor : interceptors) { if (interceptor instanceof HttpConnectionRequestInterceptor) { requestInterceptors.add((HttpConnectionRequestIntercep...
public class class_name { public ClientBuilder interceptors(HttpConnectionInterceptor... interceptors) { for (HttpConnectionInterceptor interceptor : interceptors) { if (interceptor instanceof HttpConnectionRequestInterceptor) { requestInterceptors.add((HttpConnectionRequestIntercep...
public class class_name { protected SITransaction getActiveTransaction() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getActiveTransaction"); } SITransaction activeTransaction = null; if ((_xaResource != null) && _xaRes...
public class class_name { protected SITransaction getActiveTransaction() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getActiveTransaction"); // depends on control dependency: [if], data = [none] } SITransaction activeTransactio...
public class class_name { @SuppressWarnings("unchecked") public Optional<CalendarPeriod<T>> findIntersection(ChronoInterval<T> other) { if (this.isEmpty() || other.isEmpty()) { return Optional.empty(); } Boundary<T> s; Boundary<T> e; if (other.getStart().isInf...
public class class_name { @SuppressWarnings("unchecked") public Optional<CalendarPeriod<T>> findIntersection(ChronoInterval<T> other) { if (this.isEmpty() || other.isEmpty()) { return Optional.empty(); // depends on control dependency: [if], data = [none] } Boundary<T> s; ...
public class class_name { public void setItem(java.util.Collection<ImportJobResponse> item) { if (item == null) { this.item = null; return; } this.item = new java.util.ArrayList<ImportJobResponse>(item); } }
public class class_name { public void setItem(java.util.Collection<ImportJobResponse> item) { if (item == null) { this.item = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.item = new java...
public class class_name { public void close() throws IOException { // atomically set the close flag synchronized (this.closeLock) { if (this.closed) { return; } this.closed = true; try { // wait until as many buffers have been returned as were written // only then is everything guarant...
public class class_name { public void close() throws IOException { // atomically set the close flag synchronized (this.closeLock) { if (this.closed) { return; // depends on control dependency: [if], data = [none] } this.closed = true; try { // wait until as many buffers have been returned ...
public class class_name { public void setHorizontalAlignment(HorizontalAlignmentConstant align) { if (align.equals(HasHorizontalAlignment.ALIGN_CENTER)) { // ignore center alignment return; } m_button.setHorizontalAlignment(align); m_align = align; } }
public class class_name { public void setHorizontalAlignment(HorizontalAlignmentConstant align) { if (align.equals(HasHorizontalAlignment.ALIGN_CENTER)) { // ignore center alignment return; // depends on control dependency: [if], data = [none] } m_button.setHorizontalAl...
public class class_name { private void setDirectiveList(String directives) { String[] directiveList = directives.replaceAll("\\s", EMPTY_STRING_VALUE).split(","); for (String entry : directiveList) { String[] nameValueArray = entry.split("="); String directiveName = nameValueArr...
public class class_name { private void setDirectiveList(String directives) { String[] directiveList = directives.replaceAll("\\s", EMPTY_STRING_VALUE).split(","); for (String entry : directiveList) { String[] nameValueArray = entry.split("="); String directiveName = nameValueArr...
public class class_name { private void savePreviousImageValues() { if (matrix != null && viewHeight != 0 && viewWidth != 0) { matrix.getValues(m); prevMatrix.setValues(m); prevMatchViewHeight = matchViewHeight; prevMatchViewWidth = matchViewWidth; pre...
public class class_name { private void savePreviousImageValues() { if (matrix != null && viewHeight != 0 && viewWidth != 0) { matrix.getValues(m); // depends on control dependency: [if], data = [none] prevMatrix.setValues(m); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String abbreviateMiddle(final String str, final String middle, final int length) { if (isEmpty(str) || isEmpty(middle)) { return str; } if (length >= str.length() || length < middle.length()+2) { return str; } fin...
public class class_name { public static String abbreviateMiddle(final String str, final String middle, final int length) { if (isEmpty(str) || isEmpty(middle)) { return str; // depends on control dependency: [if], data = [none] } if (length >= str.length() || length < middle.length...