code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void handleNotification(Notification notification, Object handback) { if (notification instanceof AttributeChangeNotification) { AttributeChangeNotification attributeChangeNotification = (AttributeChangeNotification) notification; JobReport jobReport = (...
public class class_name { public void handleNotification(Notification notification, Object handback) { if (notification instanceof AttributeChangeNotification) { AttributeChangeNotification attributeChangeNotification = (AttributeChangeNotification) notification; JobReport jobReport = (...
public class class_name { protected KeyBucket makeBucket(char c) { if (c > this.buckets.length) { // can't handle non-ASCII chars return null; } int index = c; // if we're case-insensitive, push uppercase into lowercase buckets if (!isCaseSensitive() && (...
public class class_name { protected KeyBucket makeBucket(char c) { if (c > this.buckets.length) { // can't handle non-ASCII chars return null; // depends on control dependency: [if], data = [none] } int index = c; // if we're case-insensitive, push uppercase into...
public class class_name { public static ByteBuf wrappedBuffer(byte[] array) { if (array.length == 0) { return EMPTY_BUFFER; } return new UnpooledHeapByteBuf(ALLOC, array, array.length); } }
public class class_name { public static ByteBuf wrappedBuffer(byte[] array) { if (array.length == 0) { return EMPTY_BUFFER; // depends on control dependency: [if], data = [none] } return new UnpooledHeapByteBuf(ALLOC, array, array.length); } }
public class class_name { @UnstableApi public static Object[] staticMockMarker(Class<?>... clazz) { Object[] markers = new Object[clazz.length]; for (int i = 0; i < clazz.length; i++) { for (StaticMockitoSession session : sessions) { markers[i] = session.staticMockMarke...
public class class_name { @UnstableApi public static Object[] staticMockMarker(Class<?>... clazz) { Object[] markers = new Object[clazz.length]; for (int i = 0; i < clazz.length; i++) { for (StaticMockitoSession session : sessions) { markers[i] = session.staticMockMarke...
public class class_name { public static void insertTerm(Term[] terms, Term term, InsertTermType type) { Term self = terms[term.getOffe()]; if (self == null) { terms[term.getOffe()] = term; return; } int len = term.getName().length(); // 如果是第一位置 ...
public class class_name { public static void insertTerm(Term[] terms, Term term, InsertTermType type) { Term self = terms[term.getOffe()]; if (self == null) { terms[term.getOffe()] = term; // depends on control dependency: [if], data = [none] return; // depends on control depen...
public class class_name { protected Runnable newProcessStreamReader(InputStream in) { return () -> { if (isRunning()) { BufferedReader reader = newReader(in); try { for (String input = reader.readLine(); input != null; input = reader.readLine()) { this.compositeProcessS...
public class class_name { protected Runnable newProcessStreamReader(InputStream in) { return () -> { if (isRunning()) { BufferedReader reader = newReader(in); try { for (String input = reader.readLine(); input != null; input = reader.readLine()) { this.compositeProcessS...
public class class_name { @Override public String getPortletTitle( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) { final IPortletDefinition portletDefinition = getPortletDefinition(portletWindowId, request); final IPo...
public class class_name { @Override public String getPortletTitle( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) { final IPortletDefinition portletDefinition = getPortletDefinition(portletWindowId, request); final IPo...
public class class_name { public void sendAlert(Type type, String message) { CmsNotificationMessage notificationMessage = new CmsNotificationMessage(Mode.BROADCAST, type, message); m_messages.add(notificationMessage); if (hasWidget()) { m_widget.addMessage(notificationMessage); ...
public class class_name { public void sendAlert(Type type, String message) { CmsNotificationMessage notificationMessage = new CmsNotificationMessage(Mode.BROADCAST, type, message); m_messages.add(notificationMessage); if (hasWidget()) { m_widget.addMessage(notificationMessage); // ...
public class class_name { public ScreenParent makeScreen(ScreenLoc itsLocation, ComponentParent parentScreen, int iDocMode, Map<String,Object> properties) { ScreenParent screen = null; if ((iDocMode & MessageLog.MESSAGE_SCREEN_MODE) == MessageLog.MESSAGE_SCREEN_MODE) { if ((this...
public class class_name { public ScreenParent makeScreen(ScreenLoc itsLocation, ComponentParent parentScreen, int iDocMode, Map<String,Object> properties) { ScreenParent screen = null; if ((iDocMode & MessageLog.MESSAGE_SCREEN_MODE) == MessageLog.MESSAGE_SCREEN_MODE) { if ((this...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> bomFiles) { Collection<DependencyInfo> dependencies = new LinkedList<>(); for (String htmlFile : bomFiles) { Document htmlFileDocument; ...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> bomFiles) { Collection<DependencyInfo> dependencies = new LinkedList<>(); for (String htmlFile : bomFiles) { Document htmlFileDocument; ...
public class class_name { protected void addUserAgentRequestHeader(HttpState state, HttpConnection conn) throws IOException, HttpException { LOG.trace("enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, " + "HttpConnection)"); if (ge...
public class class_name { protected void addUserAgentRequestHeader(HttpState state, HttpConnection conn) throws IOException, HttpException { LOG.trace("enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, " + "HttpConnection)"); if (ge...
public class class_name { public static Tag valueOf(String tagName, ParseSettings settings) { Validate.notNull(tagName); Tag tag = tags.get(tagName); if (tag == null) { tagName = settings.normalizeTag(tagName); Validate.notEmpty(tagName); tag = tags.get(tagN...
public class class_name { public static Tag valueOf(String tagName, ParseSettings settings) { Validate.notNull(tagName); Tag tag = tags.get(tagName); if (tag == null) { tagName = settings.normalizeTag(tagName); // depends on control dependency: [if], data = [(tag] Valid...
public class class_name { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { final String name = config.getNamespace(); if (name == null || name.isEmpty()) { return; } if (!KubernetesResourceUtil.checkForKind(builder, NAMESPACE_KI...
public class class_name { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { final String name = config.getNamespace(); if (name == null || name.isEmpty()) { return; // depends on control dependency: [if], data = [none] } if (!Kub...
public class class_name { public static List<ImageConfiguration> resolveImages(Logger logger, List<ImageConfiguration> images, Resolver imageResolver, ...
public class class_name { public static List<ImageConfiguration> resolveImages(Logger logger, List<ImageConfiguration> images, Resolver imageResolver, ...
public class class_name { public Helix getByLowestAngle() { double angle = Double.MAX_VALUE; Helix lowest = null; for (Helix helix: helices) { if (helix.getAngle() < angle) { angle = helix.getAngle(); lowest = helix; } } return lowest; } }
public class class_name { public Helix getByLowestAngle() { double angle = Double.MAX_VALUE; Helix lowest = null; for (Helix helix: helices) { if (helix.getAngle() < angle) { angle = helix.getAngle(); // depends on control dependency: [if], data = [none] lowest = helix; // depends on control dependenc...
public class class_name { public Double getDoubleFrom(JsonValue json) { if (json.isNumber()) { return json.asDouble(); } else { return Double.valueOf(json.asString()); } } }
public class class_name { public Double getDoubleFrom(JsonValue json) { if (json.isNumber()) { return json.asDouble(); // depends on control dependency: [if], data = [none] } else { return Double.valueOf(json.asString()); // depends on control dependency: [if], data = [none] } } }
public class class_name { public JimfsPath emptyPath() { JimfsPath result = emptyPath; if (result == null) { // use createPathInternal to avoid recursive call from createPath() result = createPathInternal(null, ImmutableList.of(Name.EMPTY)); emptyPath = result; return result; } ...
public class class_name { public JimfsPath emptyPath() { JimfsPath result = emptyPath; if (result == null) { // use createPathInternal to avoid recursive call from createPath() result = createPathInternal(null, ImmutableList.of(Name.EMPTY)); // depends on control dependency: [if], data = [none] ...
public class class_name { @Implementation @HiddenApi protected final int loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, boolean resolve) { CppAssetManager am = assetManagerForJavaObject(); if (am == null) { return 0; } final ResTable res = am.getResources(); retu...
public class class_name { @Implementation @HiddenApi protected final int loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, boolean resolve) { CppAssetManager am = assetManagerForJavaObject(); if (am == null) { return 0; // depends on control dependency: [if], data = [none] ...
public class class_name { public String printDefaultValue() { if (setter instanceof Getter) { Getter getter = (Getter)setter; List<T> defaultValues = getter.getValueList(); StringBuilder buf = new StringBuilder(); for (T v : defaultValues) { if (...
public class class_name { public String printDefaultValue() { if (setter instanceof Getter) { Getter getter = (Getter)setter; List<T> defaultValues = getter.getValueList(); StringBuilder buf = new StringBuilder(); for (T v : defaultValues) { if (...
public class class_name { public static TreeSet<Class<?>> getAllInterfaces(Class<?> cls) { final TreeSet<Class<?>> interfacesFound = new TreeSet<>( (c1, c2) -> { if (c1.equals(c2)) { return 0; } else if (c1.isAssignableFrom(c2)) { ...
public class class_name { public static TreeSet<Class<?>> getAllInterfaces(Class<?> cls) { final TreeSet<Class<?>> interfacesFound = new TreeSet<>( (c1, c2) -> { if (c1.equals(c2)) { return 0; // depends on control dependency: [if], data = [none] ...
public class class_name { public Socket accept() throws IOException{ Socket s; if(!doing_direct){ if(proxy == null) return null; ProxyMessage msg = proxy.accept(); s = msg.ip == null? new SocksSocket(msg.host,msg.port,proxy) : new SocksSocket(m...
public class class_name { public Socket accept() throws IOException{ Socket s; if(!doing_direct){ if(proxy == null) return null; ProxyMessage msg = proxy.accept(); s = msg.ip == null? new SocksSocket(msg.host,msg.port,proxy) : new SocksSocket(m...
public class class_name { private void clearStaleTimeouts() { Iterator iterator = knownAlarms.values().iterator(); long currentTime = System.currentTimeMillis(); while (iterator.hasNext()) { Long firstSeenTime = (Long)iterator.next(); // if period has expired remove refe...
public class class_name { private void clearStaleTimeouts() { Iterator iterator = knownAlarms.values().iterator(); long currentTime = System.currentTimeMillis(); while (iterator.hasNext()) { Long firstSeenTime = (Long)iterator.next(); // if period has expired remove refe...
public class class_name { public void marshall(InstanceSnapshot instanceSnapshot, ProtocolMarshaller protocolMarshaller) { if (instanceSnapshot == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inst...
public class class_name { public void marshall(InstanceSnapshot instanceSnapshot, ProtocolMarshaller protocolMarshaller) { if (instanceSnapshot == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inst...
public class class_name { public JSON readFromFile( File file ) { if( file == null ){ throw new JSONException( "File is null" ); } if( !file.canRead() ){ throw new JSONException( "Can't read input file" ); } if( file.isDirectory() ){ throw new JSONException( "Fi...
public class class_name { public JSON readFromFile( File file ) { if( file == null ){ throw new JSONException( "File is null" ); } if( !file.canRead() ){ throw new JSONException( "Can't read input file" ); } if( file.isDirectory() ){ throw new JSONException( "Fi...
public class class_name { public EntityManager em(String name) { EntityManagerFactory emf = emfs.get(name); if (emf == null) { return null; } return emf.createEntityManager(); } }
public class class_name { public EntityManager em(String name) { EntityManagerFactory emf = emfs.get(name); if (emf == null) { return null; // depends on control dependency: [if], data = [none] } return emf.createEntityManager(); } }
public class class_name { public static Map<File, Exception> addFolderToClasspath(File folder, FileFilter fileFilter) throws ReflectiveOperationException { Map<File, Exception> ret = Maps.newHashMap(); URLClassLoader sysURLClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Class<? extends URLCl...
public class class_name { public static Map<File, Exception> addFolderToClasspath(File folder, FileFilter fileFilter) throws ReflectiveOperationException { Map<File, Exception> ret = Maps.newHashMap(); URLClassLoader sysURLClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Class<? extends URLCl...
public class class_name { TreePath makeTreePath(TreeNode node) { ArrayList<TreeNode> path = new ArrayList<>(); path.add( node); TreeNode parent = node.getParent(); while (parent != null) { path.add(0, parent); parent = parent.getParent(); } Object[] paths = path.toArray(); retu...
public class class_name { TreePath makeTreePath(TreeNode node) { ArrayList<TreeNode> path = new ArrayList<>(); path.add( node); TreeNode parent = node.getParent(); while (parent != null) { path.add(0, parent); // depends on control dependency: [while], data = [none] parent = parent.getParen...
public class class_name { public void setFolderList(java.util.Collection<String> folderList) { if (folderList == null) { this.folderList = null; return; } this.folderList = new com.amazonaws.internal.SdkInternalList<String>(folderList); } }
public class class_name { public void setFolderList(java.util.Collection<String> folderList) { if (folderList == null) { this.folderList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.fo...
public class class_name { public void marshall(PushSync pushSync, ProtocolMarshaller protocolMarshaller) { if (pushSync == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pushSync.getApplicationArns(...
public class class_name { public void marshall(PushSync pushSync, ProtocolMarshaller protocolMarshaller) { if (pushSync == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pushSync.getApplicationArns(...
public class class_name { protected void createNewFile(final File file) { try { file.createNewFile(); setFileNotWorldReadablePermissions(file); } catch (IOException e){ throw new RuntimeException(e); } } }
public class class_name { protected void createNewFile(final File file) { try { file.createNewFile(); // depends on control dependency: [try], data = [none] setFileNotWorldReadablePermissions(file); // depends on control dependency: [try], data = [none] } catch (IOException e){ ...
public class class_name { public static void parsePattern(List<NT> ntList, List<Vertex> vertexList, final WordNet wordNetOptimum, final WordNet wordNetAll) { // ListIterator<Vertex> listIterator = vertexList.listIterator(); StringBuilder sbPattern = new StringBuilder(ntList.size()); for (NT ...
public class class_name { public static void parsePattern(List<NT> ntList, List<Vertex> vertexList, final WordNet wordNetOptimum, final WordNet wordNetAll) { // ListIterator<Vertex> listIterator = vertexList.listIterator(); StringBuilder sbPattern = new StringBuilder(ntList.size()); for (NT ...
public class class_name { public static Map<InetAddress, Map<String,String>> loadDcRackInfo() { Map<InetAddress, Map<String, String>> result = new HashMap<InetAddress, Map<String, String>>(); for (UntypedResultSet.Row row : executeInternal("SELECT peer, data_center, rack from system." + PEERS_CF)) ...
public class class_name { public static Map<InetAddress, Map<String,String>> loadDcRackInfo() { Map<InetAddress, Map<String, String>> result = new HashMap<InetAddress, Map<String, String>>(); for (UntypedResultSet.Row row : executeInternal("SELECT peer, data_center, rack from system." + PEERS_CF)) ...
public class class_name { public T typeface(Typeface tf) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTypeface(tf); } return self(); } }
public class class_name { public T typeface(Typeface tf) { if (view instanceof TextView) { TextView tv = (TextView) view; tv.setTypeface(tf); // depends on control dependency: [if], data = [none] } return self(); } }
public class class_name { public static Double getMaxZ(Geometry geom) { if (geom != null) { return CoordinateUtils.zMinMax(geom.getCoordinates())[1]; } else { return null; } } }
public class class_name { public static Double getMaxZ(Geometry geom) { if (geom != null) { return CoordinateUtils.zMinMax(geom.getCoordinates())[1]; // depends on control dependency: [if], data = [(geom] } else { return null; // depends on control dependency: [if], data = [none...
public class class_name { public static DependencyVersion parseVersion(String text, boolean firstMatchOnly) { if (text == null) { return null; } //'-' is a special case used within the CVE entries, just include it as the version. if ("-".equals(text)) { final Dep...
public class class_name { public static DependencyVersion parseVersion(String text, boolean firstMatchOnly) { if (text == null) { return null; // depends on control dependency: [if], data = [none] } //'-' is a special case used within the CVE entries, just include it as the version....
public class class_name { private void getInfo(Formatter buf) { int countGridset = 0; for (Gridset gs : gridsetHash.values()) { GridCoordSystem gcs = gs.getGeoCoordSystem(); buf.format("%nGridset %d coordSys=%s", countGridset, gcs); buf.format(" LLbb=%s ", gcs.getLatLonBoundingBox())...
public class class_name { private void getInfo(Formatter buf) { int countGridset = 0; for (Gridset gs : gridsetHash.values()) { GridCoordSystem gcs = gs.getGeoCoordSystem(); buf.format("%nGridset %d coordSys=%s", countGridset, gcs); // depends on control dependency: [for], data = [none] ...
public class class_name { protected <T extends MavenProjectDescriptor> T resolveProject(MavenProject project, Class<T> expectedType, ScannerContext scannerContext) { Store store = scannerContext.getStore(); String id = project.getGroupId() + ":" + project.getArtifactId() + ":" + project.getVersion(); ...
public class class_name { protected <T extends MavenProjectDescriptor> T resolveProject(MavenProject project, Class<T> expectedType, ScannerContext scannerContext) { Store store = scannerContext.getStore(); String id = project.getGroupId() + ":" + project.getArtifactId() + ":" + project.getVersion(); ...
public class class_name { public static Class<?> loadClass(ClassLoader classLoader, String className) { try { // If input classLoader is null, use current thread's ClassLoader, if that is null, use // default (calling class') ClassLoader. ClassLoader cl = classLoader != null ? classLoad...
public class class_name { public static Class<?> loadClass(ClassLoader classLoader, String className) { try { // If input classLoader is null, use current thread's ClassLoader, if that is null, use // default (calling class') ClassLoader. ClassLoader cl = classLoader != null ? classLoad...
public class class_name { public static Matrix fromMatrixMarket(InputStream is) throws IOException { BufferedReader body = new BufferedReader(new InputStreamReader(is)); String headerString = body.readLine(); StringTokenizer header = new StringTokenizer(headerString); if (!"%%MatrixMa...
public class class_name { public static Matrix fromMatrixMarket(InputStream is) throws IOException { BufferedReader body = new BufferedReader(new InputStreamReader(is)); String headerString = body.readLine(); StringTokenizer header = new StringTokenizer(headerString); if (!"%%MatrixMa...
public class class_name { private void shutdownIfComplete() { // only shut down if you have updated build results AND profile information if (!buildProfileComplete.get() || !buildResultComplete.get()) { return; } MetricsDispatcher dispatcher = this.dispatcherSupplier.get();...
public class class_name { private void shutdownIfComplete() { // only shut down if you have updated build results AND profile information if (!buildProfileComplete.get() || !buildResultComplete.get()) { return; // depends on control dependency: [if], data = [none] } Metrics...
public class class_name { private boolean accepted(Row row, List<IndexExpression> expressions) { if (!expressions.isEmpty()) { Columns columns = rowMapper.columns(row); for (IndexExpression expression : expressions) { if (!accepted(columns, expression)) { ...
public class class_name { private boolean accepted(Row row, List<IndexExpression> expressions) { if (!expressions.isEmpty()) { Columns columns = rowMapper.columns(row); for (IndexExpression expression : expressions) { if (!accepted(columns, expression)) { ...
public class class_name { private void rePrimeNF8(AxiomSet as, IConceptMap<IConceptSet> subsumptions) { int size = as.getNf8Axioms().size(); if (size == 0) return; FeatureMap<MonotonicCollection<NF8>> deltaNF8 = new FeatureMap<MonotonicCollection<NF8>>(size); for (NF8 nf8 : as....
public class class_name { private void rePrimeNF8(AxiomSet as, IConceptMap<IConceptSet> subsumptions) { int size = as.getNf8Axioms().size(); if (size == 0) return; FeatureMap<MonotonicCollection<NF8>> deltaNF8 = new FeatureMap<MonotonicCollection<NF8>>(size); for (NF8 nf8 : as....
public class class_name { private void onScrollImpl(final Vector3Axis offset, final LayoutScroller.OnScrollListener listener) { if (!isScrolling()) { mScroller = new ScrollingProcessor(offset, listener); mScroller.scroll(); } } }
public class class_name { private void onScrollImpl(final Vector3Axis offset, final LayoutScroller.OnScrollListener listener) { if (!isScrolling()) { mScroller = new ScrollingProcessor(offset, listener); // depends on control dependency: [if], data = [none] mScroller.scroll(); // depend...
public class class_name { @Override public boolean removeAll(Collection<?> c) { boolean b = queue.removeAll(c); if (b){ signalSizeReduced(); } return b; } }
public class class_name { @Override public boolean removeAll(Collection<?> c) { boolean b = queue.removeAll(c); if (b){ signalSizeReduced(); // depends on control dependency: [if], data = [none] } return b; } }
public class class_name { public static synchronized void register(Class<?> clazz) { if (clazz.isAnnotationPresent(javax.ws.rs.ext.Provider.class)) { classes.add(clazz); revision++; } else { throw new RuntimeException("Class " + clazz.getName() + " is not annotated with javax.ws.rs.ext.Provider"); ...
public class class_name { public static synchronized void register(Class<?> clazz) { if (clazz.isAnnotationPresent(javax.ws.rs.ext.Provider.class)) { classes.add(clazz); // depends on control dependency: [if], data = [none] revision++; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public void updateBackupElements(Map<String, CmsContainerElementData> updateElements) { ArrayList<CmsContainerPageElementPanel> updatedList = new ArrayList<CmsContainerPageElementPanel>(); String containerId = m_groupContainer.getContainerId(); for (CmsContainerPageEl...
public class class_name { public void updateBackupElements(Map<String, CmsContainerElementData> updateElements) { ArrayList<CmsContainerPageElementPanel> updatedList = new ArrayList<CmsContainerPageElementPanel>(); String containerId = m_groupContainer.getContainerId(); for (CmsContainerPageEl...
public class class_name { public static void setFessConfig(final FessConfig fessConfig) { ComponentUtil.fessConfig = fessConfig; if (fessConfig == null) { FessProp.propMap.clear(); componentMap.clear(); } } }
public class class_name { public static void setFessConfig(final FessConfig fessConfig) { ComponentUtil.fessConfig = fessConfig; if (fessConfig == null) { FessProp.propMap.clear(); // depends on control dependency: [if], data = [none] componentMap.clear(); // depends on control ...
public class class_name { @Override public void writeExpression(Expression oldExp) { if (null == oldExp) { throw new NullPointerException(); } boolean oldWritingObject = writingObject; writingObject = true; // get expression value Object oldValue = expressionValue(oldExp); // check existence if ...
public class class_name { @Override public void writeExpression(Expression oldExp) { if (null == oldExp) { throw new NullPointerException(); } boolean oldWritingObject = writingObject; writingObject = true; // get expression value Object oldValue = expressionValue(oldExp); // check existence if ...
public class class_name { public void visitProvide(final String service, final String... providers) { if (mv != null) { mv.visitProvide(service, providers); } } }
public class class_name { public void visitProvide(final String service, final String... providers) { if (mv != null) { mv.visitProvide(service, providers); // depends on control dependency: [if], data = [none] } } }
public class class_name { @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; brea...
public class class_name { @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; brea...
public class class_name { public static int getCatalogIndexSize(Index index) { int indexSize = 0; String jsonstring = index.getExpressionsjson(); if (jsonstring.isEmpty()) { indexSize = getSortedCatalogItems(index.getColumns(), "index").size(); } else { try { ...
public class class_name { public static int getCatalogIndexSize(Index index) { int indexSize = 0; String jsonstring = index.getExpressionsjson(); if (jsonstring.isEmpty()) { indexSize = getSortedCatalogItems(index.getColumns(), "index").size(); // depends on control dependency: [if...
public class class_name { public void setFacesInitializer(FacesInitializer facesInitializer) // TODO who uses this method? { if (_facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null) { _facesInitializer.destroyFaces(_servletContext); } ...
public class class_name { public void setFacesInitializer(FacesInitializer facesInitializer) // TODO who uses this method? { if (_facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null) { _facesInitializer.destroyFaces(_servletContext); // depends o...
public class class_name { public static Cookie getCookie (HttpServletRequest req, String name) { Cookie[] cookies = req.getCookies(); if (cookies != null) { for (int ii=0, nn=cookies.length; ii < nn; ii++) { if (cookies[ii].getName().equals(name)) { r...
public class class_name { public static Cookie getCookie (HttpServletRequest req, String name) { Cookie[] cookies = req.getCookies(); if (cookies != null) { for (int ii=0, nn=cookies.length; ii < nn; ii++) { if (cookies[ii].getName().equals(name)) { r...
public class class_name { public boolean isPartitionedOnFields(FieldSet fields) { if (this.partitioning.isPartitionedOnKey() && fields.isValidSubset(this.partitioningFields)) { return true; } else if (this.uniqueFieldCombinations != null) { for (FieldSet set : this.uniqueFieldCombinations) { if (fields.i...
public class class_name { public boolean isPartitionedOnFields(FieldSet fields) { if (this.partitioning.isPartitionedOnKey() && fields.isValidSubset(this.partitioningFields)) { return true; // depends on control dependency: [if], data = [none] } else if (this.uniqueFieldCombinations != null) { for (FieldSet ...
public class class_name { public static ApiKey[] loadApiKeys(File file) throws FileNotFoundException { ArrayList<ApiKey> keys = new ArrayList<>(); Scanner scanner = null; try { scanner = new Scanner(new BufferedInputStream(new FileInputStream(file))); while (scanner.hasN...
public class class_name { public static ApiKey[] loadApiKeys(File file) throws FileNotFoundException { ArrayList<ApiKey> keys = new ArrayList<>(); Scanner scanner = null; try { scanner = new Scanner(new BufferedInputStream(new FileInputStream(file))); while (scanner.hasN...
public class class_name { public void addAll(Attributes incoming) { if (incoming.size() == 0) return; checkCapacity(size + incoming.size); for (Attribute attr : incoming) { // todo - should this be case insensitive? put(attr); } } }
public class class_name { public void addAll(Attributes incoming) { if (incoming.size() == 0) return; checkCapacity(size + incoming.size); for (Attribute attr : incoming) { // todo - should this be case insensitive? put(attr); // depends on control dependenc...
public class class_name { public void setTermMeta(final long termId, final List<Meta> termMeta) throws SQLException { clearTermMeta(termId); if(termMeta == null || termMeta.size() == 0) { return; } Connection conn = null; PreparedStatement stmt = null; Timer.Context ctx =...
public class class_name { public void setTermMeta(final long termId, final List<Meta> termMeta) throws SQLException { clearTermMeta(termId); if(termMeta == null || termMeta.size() == 0) { return; } Connection conn = null; PreparedStatement stmt = null; Timer.Context ctx =...
public class class_name { JTree getTreeAlert() { if (treeAlert == null) { treeAlert = new JTree() { private static final long serialVersionUID = 1L; @Override public Point getPopupLocation(final MouseEvent event) { if (event != null) { // Select item on right click TreePat...
public class class_name { JTree getTreeAlert() { if (treeAlert == null) { treeAlert = new JTree() { private static final long serialVersionUID = 1L; @Override public Point getPopupLocation(final MouseEvent event) { if (event != null) { // Select item on right click TreePat...
public class class_name { public boolean removeAfter(Node node) { if (node == null || node.next == null) { return false; } if (node.next == last) { last = node; } node.next = node.next.next; return true; } }
public class class_name { public boolean removeAfter(Node node) { if (node == null || node.next == null) { return false; // depends on control dependency: [if], data = [none] } if (node.next == last) { last = node; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public int doEndTag() throws JspException { TimeZone timeZone = null; if (value == null) { timeZone = TimeZone.getTimeZone("GMT"); } else if (value instanceof String) { if (((String) value).trim().equals("")) { tim...
public class class_name { @Override public int doEndTag() throws JspException { TimeZone timeZone = null; if (value == null) { timeZone = TimeZone.getTimeZone("GMT"); } else if (value instanceof String) { if (((String) value).trim().equals("")) { tim...
public class class_name { protected void commitHelper(boolean losingFocus) { if (editorNode == null) { return; } try { builder.validateValue(); commitEdit((T) builder.getValue()); builder.nullEditorNode(); editorNode = null; } ...
public class class_name { protected void commitHelper(boolean losingFocus) { if (editorNode == null) { return; // depends on control dependency: [if], data = [none] } try { builder.validateValue(); // depends on control dependency: [try], data = [none] commit...
public class class_name { private static Throwable throwable(Throwable throwable, String message, Object... args) { Throwable t = throwable; if (t instanceof InvocationException && t.getCause() != null) { t = t.getCause(); } if (t instanceof InvocationTargetException && ((InvocationTargetException)t).g...
public class class_name { private static Throwable throwable(Throwable throwable, String message, Object... args) { Throwable t = throwable; if (t instanceof InvocationException && t.getCause() != null) { t = t.getCause(); // depends on control dependency: [if], data = [none] } if (t instanceof Invocat...
public class class_name { @Override public final GeoCodeItem find(final String placeName, final String modernPlaceName) { if (modernPlaceName == null || modernPlaceName.isEmpty()) { return find(placeName); } logger.debug( "find(\"" + placeName + "\", ...
public class class_name { @Override public final GeoCodeItem find(final String placeName, final String modernPlaceName) { if (modernPlaceName == null || modernPlaceName.isEmpty()) { return find(placeName); // depends on control dependency: [if], data = [none] } logge...
public class class_name { private void qcrit( RenderedImage slope, RenderedImage ab, RandomIter trasmissivityRI, RandomIter frictionRI, RandomIter cohesionRI, RandomIter hsIter, RandomIter effectiveRI, RandomIter densityRI ) { HashMap<String, Double> regionMap = CoverageUtilities.getRegionParamsFro...
public class class_name { private void qcrit( RenderedImage slope, RenderedImage ab, RandomIter trasmissivityRI, RandomIter frictionRI, RandomIter cohesionRI, RandomIter hsIter, RandomIter effectiveRI, RandomIter densityRI ) { HashMap<String, Double> regionMap = CoverageUtilities.getRegionParamsFro...
public class class_name { protected BaseDescr lhsForall(CEDescrBuilder<?, ?> ce) throws RecognitionException { ForallDescrBuilder<?> forall = helper.start(ce, ForallDescrBuilder.class, null); try { match(input, DRL6Lexer.ID, ...
public class class_name { protected BaseDescr lhsForall(CEDescrBuilder<?, ?> ce) throws RecognitionException { ForallDescrBuilder<?> forall = helper.start(ce, ForallDescrBuilder.class, null); try { match(input, DRL6Lexer.ID, ...
public class class_name { protected Object addToIndiciesIgnoringTransaction(MithraObject result, boolean weak) { TransactionalIndex primaryKeyIndex = ((TransactionalIndex) this.getPrimaryKeyIndex()); Object old = primaryKeyIndex.putIgnoringTransaction(result, result.zGetCurrentData(), weak); ...
public class class_name { protected Object addToIndiciesIgnoringTransaction(MithraObject result, boolean weak) { TransactionalIndex primaryKeyIndex = ((TransactionalIndex) this.getPrimaryKeyIndex()); Object old = primaryKeyIndex.putIgnoringTransaction(result, result.zGetCurrentData(), weak); ...
public class class_name { public void marshall(CreateInstanceRequest createInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (createInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(CreateInstanceRequest createInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (createInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { private static byte[] toByteArray(final ByteBuffer buffer) { if (buffer.hasArray() && buffer.arrayOffset() == 0 && buffer.position() == 0 && buffer.array().length == buffer.limit()) { return buffer.array(); } else { final byte[] retVal = new byte[...
public class class_name { private static byte[] toByteArray(final ByteBuffer buffer) { if (buffer.hasArray() && buffer.arrayOffset() == 0 && buffer.position() == 0 && buffer.array().length == buffer.limit()) { return buffer.array(); // depends on control dependency: [if], data = [no...
public class class_name { public OperationFuture<Server> modify(Server server, ModifyServerConfig modifyServerConfig) { List<ModifyServerRequest> request = serverConverter.buildModifyServerRequest(modifyServerConfig, modifyServerConfig.getCustomFields().isEmpty() ? null : client.getCustomFields());...
public class class_name { public OperationFuture<Server> modify(Server server, ModifyServerConfig modifyServerConfig) { List<ModifyServerRequest> request = serverConverter.buildModifyServerRequest(modifyServerConfig, modifyServerConfig.getCustomFields().isEmpty() ? null : client.getCustomFields());...
public class class_name { public static synchronized void shutdown() { if (BACKGROUND_SERVICE != null) { try { BACKGROUND_SERVICE.stop(); } catch (Throwable t) { LOGGER.error("Exception stopping Stackify Metrics API service", t); } INITIALIZED.compareAndSet(true, false); } } }
public class class_name { public static synchronized void shutdown() { if (BACKGROUND_SERVICE != null) { try { BACKGROUND_SERVICE.stop(); // depends on control dependency: [try], data = [none] } catch (Throwable t) { LOGGER.error("Exception stopping Stackify Metrics API service", t); } // depends on...
public class class_name { public boolean recordNoCollapse() { if (!currentInfo.isNoCollapse()) { currentInfo.setNoCollapse(true); populated = true; return true; } else { return false; } } }
public class class_name { public boolean recordNoCollapse() { if (!currentInfo.isNoCollapse()) { currentInfo.setNoCollapse(true); // depends on control dependency: [if], data = [none] populated = true; // depends on control dependency: [if], data = [none] return true; // depends on control depend...
public class class_name { public String getProperty(String key,String defaultValue) { String value=null; try { value=this.JOB.getProperty(key); } catch(Exception exception) { throw new FaxException("Error while extracting job property.",except...
public class class_name { public String getProperty(String key,String defaultValue) { String value=null; try { value=this.JOB.getProperty(key); // depends on control dependency: [try], data = [none] } catch(Exception exception) { throw new Fax...
public class class_name { public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, @Nullable ImageBorder_F32 border) { InputSanityCheck.reshapeOneIn(orig, derivX, derivY); // GradientSobel_Outer.process_F32(orig, derivX, derivY); if( BoofConcurrency.USE_CONCURRENT ) { GradientSobel_UnrolledOut...
public class class_name { public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, @Nullable ImageBorder_F32 border) { InputSanityCheck.reshapeOneIn(orig, derivX, derivY); // GradientSobel_Outer.process_F32(orig, derivX, derivY); if( BoofConcurrency.USE_CONCURRENT ) { GradientSobel_UnrolledOut...
public class class_name { @Override @FFDCIgnore(Throwable.class) public void run() { Future<R> result = null; Throwable thrownException = null; try { ArrayList<ThreadContext> contextAppliedToThread = null; if (this.threadContext != null) { //appl...
public class class_name { @Override @FFDCIgnore(Throwable.class) public void run() { Future<R> result = null; Throwable thrownException = null; try { ArrayList<ThreadContext> contextAppliedToThread = null; if (this.threadContext != null) { //appl...
public class class_name { public void delete(String key) { if (!ramMode.equals(DualCacheRamMode.DISABLE)) { ramCacheLru.remove(key); } if (!diskMode.equals(DualCacheDiskMode.DISABLE)) { try { dualCacheLock.lockDiskEntryWrite(key); diskLruC...
public class class_name { public void delete(String key) { if (!ramMode.equals(DualCacheRamMode.DISABLE)) { ramCacheLru.remove(key); // depends on control dependency: [if], data = [none] } if (!diskMode.equals(DualCacheDiskMode.DISABLE)) { try { dualCache...
public class class_name { void updateImageMetrics() { if (metrics == null) { return; } int failedImageDirs = 0; for (ImageManager im : imageManagers) { if(im.isImageDisabled()) { failedImageDirs++; } } // update only images, journals are handled in JournalSet metri...
public class class_name { void updateImageMetrics() { if (metrics == null) { return; // depends on control dependency: [if], data = [none] } int failedImageDirs = 0; for (ImageManager im : imageManagers) { if(im.isImageDisabled()) { failedImageDirs++; // depends on control dependenc...
public class class_name { @Override public IModuleBuilder getModuleBuilder(String mid, IResource res) { IModuleBuilder builder = null; String path = res.getPath(); int idx = path.lastIndexOf("."); //$NON-NLS-1$ String ext = (idx == -1) ? "" : path.substring(idx+1); //$NON-NLS-1$ if (ext.contains("/"...
public class class_name { @Override public IModuleBuilder getModuleBuilder(String mid, IResource res) { IModuleBuilder builder = null; String path = res.getPath(); int idx = path.lastIndexOf("."); //$NON-NLS-1$ String ext = (idx == -1) ? "" : path.substring(idx+1); //$NON-NLS-1$ if (ext.contains("/"...
public class class_name { public String substituteLink( CmsObject cms, String link, String siteRoot, String targetDetailPage, boolean forceSecure) { if (targetDetailPage != null) { return m_linkSubstitutionHandler.getLink(cms, link, siteRoot, targetDetailPag...
public class class_name { public String substituteLink( CmsObject cms, String link, String siteRoot, String targetDetailPage, boolean forceSecure) { if (targetDetailPage != null) { return m_linkSubstitutionHandler.getLink(cms, link, siteRoot, targetDetailPag...
public class class_name { public Observable<ServiceResponse<String>> supportedVpnDevicesWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be n...
public class class_name { public Observable<ServiceResponse<String>> supportedVpnDevicesWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be n...
public class class_name { @SneakyThrows public static SamlRegisteredService newSamlServiceProviderService(final AbstractSamlSPProperties sp, final SamlRegisteredServiceCachingMetadataResolver resolver) { if (StringUtils.isBlank(sp.getMet...
public class class_name { @SneakyThrows public static SamlRegisteredService newSamlServiceProviderService(final AbstractSamlSPProperties sp, final SamlRegisteredServiceCachingMetadataResolver resolver) { if (StringUtils.isBlank(sp.getMet...
public class class_name { public static HttpResponse postJson(String urlStr, String body) throws IOException { URL url = new URL(urlStr); HttpURLConnection urlConnection = (HttpURLConnection) url .openConnection(); urlConnection.addRequestProperty("Accept", "applica...
public class class_name { public static HttpResponse postJson(String urlStr, String body) throws IOException { URL url = new URL(urlStr); HttpURLConnection urlConnection = (HttpURLConnection) url .openConnection(); urlConnection.addRequestProperty("Accept", "applica...
public class class_name { public EntityResult<SqlResultSetMapping<T>> getOrCreateEntityResult() { List<Node> nodeList = childNode.get("entity-result"); if (nodeList != null && nodeList.size() > 0) { return new EntityResultImpl<SqlResultSetMapping<T>>(this, "entity-result", childNode, nod...
public class class_name { public EntityResult<SqlResultSetMapping<T>> getOrCreateEntityResult() { List<Node> nodeList = childNode.get("entity-result"); if (nodeList != null && nodeList.size() > 0) { return new EntityResultImpl<SqlResultSetMapping<T>>(this, "entity-result", childNode, nod...
public class class_name { public void addNum(double d) { if( isUUID() || isString() ) { addNA(); return; } boolean predicate = _sparseNA ? !Double.isNaN(d) : isSparseZero()?d != 0:true; if(predicate) { if(_ms != null) { if((long)d == d){ addNum((long)d,0); return; ...
public class class_name { public void addNum(double d) { if( isUUID() || isString() ) { addNA(); return; } // depends on control dependency: [if], data = [none] // depends on control dependency: [if], data = [none] boolean predicate = _sparseNA ? !Double.isNaN(d) : isSparseZero()?d != 0:true; if(predicate)...
public class class_name { public void split() { //this.statisticsOtherBranchSplit = this.learningNode.getStatisticsOtherBranchSplit(); //create a split node, int splitIndex = this.learningNode.getSplitIndex(); InstanceConditionalTest st=this.learningNode.getBestSuggestion().splitTest; if(st instanceof Nu...
public class class_name { public void split() { //this.statisticsOtherBranchSplit = this.learningNode.getStatisticsOtherBranchSplit(); //create a split node, int splitIndex = this.learningNode.getSplitIndex(); InstanceConditionalTest st=this.learningNode.getBestSuggestion().splitTest; if(st instanceof Nu...
public class class_name { public void resetForReUse( OutputStream out ) { if ( closed ) throw new RuntimeException("Can't reuse closed stream"); getCodec().reset(null); if ( out != null ) { getCodec().setOutstream(out); } objects.clearForWrite(conf); ...
public class class_name { public void resetForReUse( OutputStream out ) { if ( closed ) throw new RuntimeException("Can't reuse closed stream"); getCodec().reset(null); if ( out != null ) { getCodec().setOutstream(out); // depends on control dependency: [if], data = [non...
public class class_name { protected Object cookie(Type type, String name) { return parameter(type, name, new Function<String, Object>() { public Object apply(String name) { Cookie[] cookies = context.request().getCookies(); if (cookies != null) { for (Cookie cookie : cookies) { if (cookie...
public class class_name { protected Object cookie(Type type, String name) { return parameter(type, name, new Function<String, Object>() { public Object apply(String name) { Cookie[] cookies = context.request().getCookies(); if (cookies != null) { for (Cookie cookie : cookies) { if (cookie...
public class class_name { public BuildPhase withContexts(PhaseContext... contexts) { if (this.contexts == null) { setContexts(new java.util.ArrayList<PhaseContext>(contexts.length)); } for (PhaseContext ele : contexts) { this.contexts.add(ele); } return t...
public class class_name { public BuildPhase withContexts(PhaseContext... contexts) { if (this.contexts == null) { setContexts(new java.util.ArrayList<PhaseContext>(contexts.length)); // depends on control dependency: [if], data = [none] } for (PhaseContext ele : contexts) { ...
public class class_name { public ServerInstanceLogRecordList getLogListForServerInstance(Date time, final LogRecordHeaderFilter filter) { ServerInstanceByTime instance = new ServerInstanceByTime(time == null ? -1 : time.getTime()); if (instance.logs == null && instance.traces == null) { re...
public class class_name { public ServerInstanceLogRecordList getLogListForServerInstance(Date time, final LogRecordHeaderFilter filter) { ServerInstanceByTime instance = new ServerInstanceByTime(time == null ? -1 : time.getTime()); if (instance.logs == null && instance.traces == null) { re...
public class class_name { @Override public synchronized void stop(StopContext context) { final DeploymentScanner scanner = this.scanner; notificationRegistryValue.getValue().unregisterNotificationHandler(ANY_ADDRESS, this.scanner, DEPLOYMENT_FILTER); this.scanner = null; scanner.sto...
public class class_name { @Override public synchronized void stop(StopContext context) { final DeploymentScanner scanner = this.scanner; notificationRegistryValue.getValue().unregisterNotificationHandler(ANY_ADDRESS, this.scanner, DEPLOYMENT_FILTER); this.scanner = null; scanner.sto...
public class class_name { public String getModuleName() { if (moduleID != null) { return moduleID; } if (path != null && path.length > MODULE_INDEX) return path[1]; else return null; } }
public class class_name { public String getModuleName() { if (moduleID != null) { return moduleID; // depends on control dependency: [if], data = [none] } if (path != null && path.length > MODULE_INDEX) return path[1]; else return null; } }
public class class_name { @Override public void actionPerformed(java.awt.event.ActionEvent event) { if (event.getSource().equals(CLOCK_TIMER)) { // Seconds secondPointerAngle = java.util.Calendar.getInstance().get(java.util.Calendar.SECOND) * ANGLE_STEP + java.util.Calendar.getInsta...
public class class_name { @Override public void actionPerformed(java.awt.event.ActionEvent event) { if (event.getSource().equals(CLOCK_TIMER)) { // Seconds secondPointerAngle = java.util.Calendar.getInstance().get(java.util.Calendar.SECOND) * ANGLE_STEP + java.util.Calendar.getInsta...
public class class_name { public void setContextPath(String _contextPath){ if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.logp(Level.FINE, CLASS_NAME,"setContextPath", "contextPath -> "+ _contextPath +" ,this -> " + this); } this._...
public class class_name { public void setContextPath(String _contextPath){ if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.logp(Level.FINE, CLASS_NAME,"setContextPath", "contextPath -> "+ _contextPath +" ,this -> " + this); // depends on control de...
public class class_name { public static RSAPrivateKey getPrivateKey(String modulus, String exponent) { try { BigInteger b1 = new BigInteger(modulus); BigInteger b2 = new BigInteger(exponent); KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM); RSAPrivateKeySpec keySpec = new RSAPrivateKeySpec(...
public class class_name { public static RSAPrivateKey getPrivateKey(String modulus, String exponent) { try { BigInteger b1 = new BigInteger(modulus); BigInteger b2 = new BigInteger(exponent); KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM); RSAPrivateKeySpec keySpec = new RSAPrivateKeySpec(...
public class class_name { private static boolean mergeResRefs(ComponentNameSpaceConfiguration masterCompNSConfig, List<ComponentNameSpaceConfiguration> compNSConfigs, Map<String, ResourceRefConfig[]> totalResRefs) { final boolean i...
public class class_name { private static boolean mergeResRefs(ComponentNameSpaceConfiguration masterCompNSConfig, List<ComponentNameSpaceConfiguration> compNSConfigs, Map<String, ResourceRefConfig[]> totalResRefs) { final boolean i...
public class class_name { @Override public List<org.fcrepo.server.types.gen.Datastream> getDatastreamHistory(String pid, String dsID) { assertInitialized(); try { MessageContext ctx = context.getMessageContext(...
public class class_name { @Override public List<org.fcrepo.server.types.gen.Datastream> getDatastreamHistory(String pid, String dsID) { assertInitialized(); try { MessageContext ctx = context.getMessageContext(...
public class class_name { private ESat isConsistent() { int[][] l = new int[nbDims][nbBins]; for (int i = 0; i < bins.length; i++) { if (bins[i].isInstantiated()) { for (int d = 0; d < nbDims; d++) { int v = bins[i].getValue(); l...
public class class_name { private ESat isConsistent() { int[][] l = new int[nbDims][nbBins]; for (int i = 0; i < bins.length; i++) { if (bins[i].isInstantiated()) { for (int d = 0; d < nbDims; d++) { int v = bins[i].getValue(); l...
public class class_name { public static Duration standardHours(long hours) { if (hours == 0) { return ZERO; } return new Duration(FieldUtils.safeMultiply(hours, DateTimeConstants.MILLIS_PER_HOUR)); } }
public class class_name { public static Duration standardHours(long hours) { if (hours == 0) { return ZERO; // depends on control dependency: [if], data = [none] } return new Duration(FieldUtils.safeMultiply(hours, DateTimeConstants.MILLIS_PER_HOUR)); } }
public class class_name { public static Set<TypeDef> unrollHierarchy(TypeDef typeDef) { if (OBJECT.equals(typeDef)) { return new HashSet<>(); } Set<TypeDef> hierarchy = new HashSet<>(); hierarchy.add(typeDef); hierarchy.addAll(typeDef.getExtendsList().stream().flatMa...
public class class_name { public static Set<TypeDef> unrollHierarchy(TypeDef typeDef) { if (OBJECT.equals(typeDef)) { return new HashSet<>(); // depends on control dependency: [if], data = [none] } Set<TypeDef> hierarchy = new HashSet<>(); hierarchy.add(typeDef); hie...
public class class_name { public void complete(VirtualConnection vc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "complete() called: " + vc); } // can't do anything with a null VC if (null == vc) { return; } ...
public class class_name { public void complete(VirtualConnection vc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "complete() called: " + vc); // depends on control dependency: [if], data = [none] } // can't do anything with a null VC if...
public class class_name { public MimeMappingType<WebAppDescriptor> getOrCreateMimeMapping() { List<Node> nodeList = model.get("mime-mapping"); if (nodeList != null && nodeList.size() > 0) { return new MimeMappingTypeImpl<WebAppDescriptor>(this, "mime-mapping", model, nodeList.get(0)); ...
public class class_name { public MimeMappingType<WebAppDescriptor> getOrCreateMimeMapping() { List<Node> nodeList = model.get("mime-mapping"); if (nodeList != null && nodeList.size() > 0) { return new MimeMappingTypeImpl<WebAppDescriptor>(this, "mime-mapping", model, nodeList.get(0)); //...