code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void observeBeforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd, BeanManager beanManager) { log.debugf("MPJWTExtension(), adding producers"); String extensionName = MPJWTExtension.class.getName(); for (Class<?> clazz : new Class<?>[] { JWTAuthC...
public class class_name { public void observeBeforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd, BeanManager beanManager) { log.debugf("MPJWTExtension(), adding producers"); String extensionName = MPJWTExtension.class.getName(); for (Class<?> clazz : new Class<?>[] { JWTAuthC...
public class class_name { public String getContextPath() { //PM47487 String cp = context.getContextPath(); if (WCCustomProperties.RETURN_DEFAULT_CONTEXT_PATH && cp.equals("/")){ cp = ""; } //PM47487 return cp; } }
public class class_name { public String getContextPath() { //PM47487 String cp = context.getContextPath(); if (WCCustomProperties.RETURN_DEFAULT_CONTEXT_PATH && cp.equals("/")){ cp = ""; // depends on control dependency: [if], data = [none] } //PM47487 return cp; } }
public class class_name { @Override protected Map<String, Object> transformElement(T entity) { try { return UtilJdbc.getRowFromObject(entity); } catch(IllegalAccessException | InvocationTargetException | InstantiationException e) { throw new DeepTransformException(e); ...
public class class_name { @Override protected Map<String, Object> transformElement(T entity) { try { return UtilJdbc.getRowFromObject(entity); // depends on control dependency: [try], data = [none] } catch(IllegalAccessException | InvocationTargetException | InstantiationException e) { ...
public class class_name { public int toInteger(Object val) { if (val == null) { return 0; } else if (val instanceof Double) { if (!Double.isNaN(((Double) val).doubleValue())) { return 0; } else { return ((Double) val).intValue(); } } else if (val instan...
public class class_name { public int toInteger(Object val) { if (val == null) { return 0; // depends on control dependency: [if], data = [none] } else if (val instanceof Double) { if (!Double.isNaN(((Double) val).doubleValue())) { return 0; // depends on control dependency: [if], data =...
public class class_name { public static String rejectChar(String string, CharPredicate predicate) { int size = string.length(); StringBuilder buffer = new StringBuilder(string.length()); for (int i = 0; i < size; i++) { char character = string.charAt(i); if (...
public class class_name { public static String rejectChar(String string, CharPredicate predicate) { int size = string.length(); StringBuilder buffer = new StringBuilder(string.length()); for (int i = 0; i < size; i++) { char character = string.charAt(i); if (...
public class class_name { public void processCompleteFrame() throws Http2Exception { Frame currentFrame = getCurrentFrame(); boolean frameSizeError = false; try { currentFrame.processPayload(this); } catch (Http2Exception e) { // If we get an error here, it shou...
public class class_name { public void processCompleteFrame() throws Http2Exception { Frame currentFrame = getCurrentFrame(); boolean frameSizeError = false; try { currentFrame.processPayload(this); } catch (Http2Exception e) { // If we get an error here, it shou...
public class class_name { public boolean setNewVariable(Object key, Object value) { boolean success = false; success = setLocalVariable(key, value); if (!success) { setGlobalVariable(key, value); success = true; } return success; } }
public class class_name { public boolean setNewVariable(Object key, Object value) { boolean success = false; success = setLocalVariable(key, value); if (!success) { setGlobalVariable(key, value); // depends on control dependency: [if], data = [none] success = true; // depends on control dependency: [if],...
public class class_name { public FindingFilter withAutoScalingGroups(String... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new java.util.ArrayList<String>(autoScalingGroups.length)); } for (String ele : autoScalingGroups) { this.autoSc...
public class class_name { public FindingFilter withAutoScalingGroups(String... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new java.util.ArrayList<String>(autoScalingGroups.length)); // depends on control dependency: [if], data = [none] } for (Str...
public class class_name { synchronized public void recover() { if (tc.isEntryEnabled()) Tr.entry(tc, "recover", this); final int state = _status.getState(); if (_subordinate) { // For a subordinate, first check whether the global outcome is known locally. sw...
public class class_name { synchronized public void recover() { if (tc.isEntryEnabled()) Tr.entry(tc, "recover", this); final int state = _status.getState(); if (_subordinate) { // For a subordinate, first check whether the global outcome is known locally. sw...
public class class_name { @Subscribe public void onSegmentWritten(HlsSegmentWrittenEvent event) { try { File hlsSegment = event.getSegment(); queueOrSubmitUpload(keyForFilename(hlsSegment.getName()), hlsSegment); if (isKitKat() && mConfig.isAdaptiveBitrate() && isRecordi...
public class class_name { @Subscribe public void onSegmentWritten(HlsSegmentWrittenEvent event) { try { File hlsSegment = event.getSegment(); queueOrSubmitUpload(keyForFilename(hlsSegment.getName()), hlsSegment); // depends on control dependency: [try], data = [none] if ...
public class class_name { private void processWorkingHours(ProjectCalendar mpxjCalendar, Sequence uniqueID, Day day, List<OverriddenDayType> typeList) { if (isWorkingDay(mpxjCalendar, day)) { ProjectCalendarHours mpxjHours = mpxjCalendar.getCalendarHours(day); if (mpxjHours != null) ...
public class class_name { private void processWorkingHours(ProjectCalendar mpxjCalendar, Sequence uniqueID, Day day, List<OverriddenDayType> typeList) { if (isWorkingDay(mpxjCalendar, day)) { ProjectCalendarHours mpxjHours = mpxjCalendar.getCalendarHours(day); if (mpxjHours != null) ...
public class class_name { private void doAPKWithAPKBuilder( File outputFile, File dexFile, File zipArchive, Collection<File> sourceFolders, List<File> jarFiles, Collection<File> nativeFolders, boolean signWithDebugKeyStore ) throws MojoExecuti...
public class class_name { private void doAPKWithAPKBuilder( File outputFile, File dexFile, File zipArchive, Collection<File> sourceFolders, List<File> jarFiles, Collection<File> nativeFolders, boolean signWithDebugKeyStore ) throws MojoExecuti...
public class class_name { static String cssContent(String token) { int n = token.length(); int pos = 0; StringBuilder sb = null; if (n >= 2) { char ch0 = token.charAt(0); if (ch0 == '"' || ch0 == '\'') { if (ch0 == token.charAt(n - 1)) { pos = 1; --n; s...
public class class_name { static String cssContent(String token) { int n = token.length(); int pos = 0; StringBuilder sb = null; if (n >= 2) { char ch0 = token.charAt(0); if (ch0 == '"' || ch0 == '\'') { if (ch0 == token.charAt(n - 1)) { pos = 1; // depends on control depe...
public class class_name { public List<LifecycleCallbackType<SessionBeanType<T>>> getAllPostConstruct() { List<LifecycleCallbackType<SessionBeanType<T>>> list = new ArrayList<LifecycleCallbackType<SessionBeanType<T>>>(); List<Node> nodeList = childNode.get("post-construct"); for(Node node: nodeList...
public class class_name { public List<LifecycleCallbackType<SessionBeanType<T>>> getAllPostConstruct() { List<LifecycleCallbackType<SessionBeanType<T>>> list = new ArrayList<LifecycleCallbackType<SessionBeanType<T>>>(); List<Node> nodeList = childNode.get("post-construct"); for(Node node: nodeList...
public class class_name { private boolean macroCycleInversion(AtomPair pair) { for (int v : pair.seqAt) { IAtom atom = mol.getAtom(v); if (!atom.isInRing() || adjList[v].length == 2) continue; if (atom.getProperty(MacroCycleLayout.MACROCYCLE_ATOM_HINT) == nu...
public class class_name { private boolean macroCycleInversion(AtomPair pair) { for (int v : pair.seqAt) { IAtom atom = mol.getAtom(v); if (!atom.isInRing() || adjList[v].length == 2) continue; if (atom.getProperty(MacroCycleLayout.MACROCYCLE_ATOM_HINT) == nu...
public class class_name { @Override public void decl(char[] buff, int offset, int length) throws SAXException { String s = new String(buff, offset, length); String name = null; String systemid = null; String publicid = null; String[] v = split(s); if (v.length > 0 &&...
public class class_name { @Override public void decl(char[] buff, int offset, int length) throws SAXException { String s = new String(buff, offset, length); String name = null; String systemid = null; String publicid = null; String[] v = split(s); if (v.length > 0 &&...
public class class_name { private XHyphenator GetHyphenator(XLinguServiceManager mxLinguSvcMgr) { try { if (mxLinguSvcMgr != null) { return mxLinguSvcMgr.getHyphenator(); } } catch (Throwable t) { // If anything goes wrong, give the user a stack trace printMessage(t); } ...
public class class_name { private XHyphenator GetHyphenator(XLinguServiceManager mxLinguSvcMgr) { try { if (mxLinguSvcMgr != null) { return mxLinguSvcMgr.getHyphenator(); // depends on control dependency: [if], data = [none] } } catch (Throwable t) { // If anything goes wrong, give th...
public class class_name { public static List<GrantedAuthority> buildAuthorities(final List<CommonProfile> profiles) { final List<GrantedAuthority> authorities = new ArrayList<>(); for (final CommonProfile profile : profiles) { final Set<String> roles = profile.getRoles(); for (f...
public class class_name { public static List<GrantedAuthority> buildAuthorities(final List<CommonProfile> profiles) { final List<GrantedAuthority> authorities = new ArrayList<>(); for (final CommonProfile profile : profiles) { final Set<String> roles = profile.getRoles(); for (f...
public class class_name { private void doXPathRes(final String resource, final Long revision, final OutputStream output, final boolean nodeid, final String xpath) throws TTException { // Storage connection to treetank ISession session = null; INodeReadTrx rtx = null; try { ...
public class class_name { private void doXPathRes(final String resource, final Long revision, final OutputStream output, final boolean nodeid, final String xpath) throws TTException { // Storage connection to treetank ISession session = null; INodeReadTrx rtx = null; try { ...
public class class_name { public boolean process() { int numViews = depths.numRows; int numFeatures = depths.numCols; P.reshape(3*numViews,4); X.reshape(4,numFeatures); A.reshape(numViews*3,numFeatures); B.reshape(numViews*3,numFeatures); // Scale depths so that they are close to unity normalizeDepth...
public class class_name { public boolean process() { int numViews = depths.numRows; int numFeatures = depths.numCols; P.reshape(3*numViews,4); X.reshape(4,numFeatures); A.reshape(numViews*3,numFeatures); B.reshape(numViews*3,numFeatures); // Scale depths so that they are close to unity normalizeDepth...
public class class_name { private void load() throws IOException { if (PrivilegedFileHelper.exists(storage)) { InputStream in = PrivilegedFileHelper.fileInputStream(storage); try { Properties props = new Properties(); log.debug("loading namespace mappin...
public class class_name { private void load() throws IOException { if (PrivilegedFileHelper.exists(storage)) { InputStream in = PrivilegedFileHelper.fileInputStream(storage); try { Properties props = new Properties(); log.debug("loading namespace mappin...
public class class_name { private static Token createDateToken(final String configuration) { if (configuration == null) { return new DateToken(); } else { try { return new DateToken(configuration); } catch (IllegalArgumentException ex) { InternalLogger.log(Level.ERROR, "'" + configuration + "' is ...
public class class_name { private static Token createDateToken(final String configuration) { if (configuration == null) { return new DateToken(); // depends on control dependency: [if], data = [none] } else { try { return new DateToken(configuration); // depends on control dependency: [try], data = [none...
public class class_name { private boolean isReadOnlyProcedure(String pname) { final Boolean b = m_procedureInfo.get().get(pname); if (b == null) { return false; } return b; } }
public class class_name { private boolean isReadOnlyProcedure(String pname) { final Boolean b = m_procedureInfo.get().get(pname); if (b == null) { return false; // depends on control dependency: [if], data = [none] } return b; } }
public class class_name { @Override public void onEndDocument(Document document) { LOGGER.info("End document"); PHPContainer.dump(); if (container != null) { container.close(); } super.onEndDocument(document); } }
public class class_name { @Override public void onEndDocument(Document document) { LOGGER.info("End document"); PHPContainer.dump(); if (container != null) { container.close(); // depends on control dependency: [if], data = [none] } super.onEndDocument(document); } }
public class class_name { protected int countSteps(LocPathIterator lpi) { if(lpi instanceof WalkingIterator) { WalkingIterator wi = (WalkingIterator)lpi; AxesWalker aw = wi.getFirstWalker(); int count = 0; while(null != aw) { count++; aw = aw.getNextWalker(); } return coun...
public class class_name { protected int countSteps(LocPathIterator lpi) { if(lpi instanceof WalkingIterator) { WalkingIterator wi = (WalkingIterator)lpi; AxesWalker aw = wi.getFirstWalker(); int count = 0; while(null != aw) { count++; // depends on control dependency: [while], data = [...
public class class_name { public void doEvents() { while (!isInterrupted()) { Iterator<Map.Entry<Timer, Runnable>> it = timerMap.entrySet().iterator(); if (it.hasNext()) { long timeout = it.next().getKey().uptime - System.currentTimeMillis(); doEvents(timeout > 0 ? timeout : 0); } else { ...
public class class_name { public void doEvents() { while (!isInterrupted()) { Iterator<Map.Entry<Timer, Runnable>> it = timerMap.entrySet().iterator(); if (it.hasNext()) { long timeout = it.next().getKey().uptime - System.currentTimeMillis(); doEvents(timeout > 0 ? timeout : 0); // depends on con...
public class class_name { public static boolean isAvailable() { try { return create() != null; } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); return false; } } }
public class class_name { public static boolean isAvailable() { try { return create() != null; // depends on control dependency: [try], data = [none] } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); return false; } // depends on control dependency: [catch], data = [none]...
public class class_name { private int[] linearize(final FSA fsa) { int[] linearized = new int[0]; int last = 0; BitSet visited = new BitSet(); IntStack nodes = new IntStack(); nodes.push(fsa.getRootNode()); while (!nodes.isEmpty()) { final int node = nodes.pop(); if (vis...
public class class_name { private int[] linearize(final FSA fsa) { int[] linearized = new int[0]; int last = 0; BitSet visited = new BitSet(); IntStack nodes = new IntStack(); nodes.push(fsa.getRootNode()); while (!nodes.isEmpty()) { final int node = nodes.pop(); if (vis...
public class class_name { private Map<String, String> getContentProperties(final StorageProvider store, final String spaceId, final String contentId) throws TaskExecutionFailedException { try { ...
public class class_name { private Map<String, String> getContentProperties(final StorageProvider store, final String spaceId, final String contentId) throws TaskExecutionFailedException { try { ...
public class class_name { public static AbstractInsnNode findInstruction(MethodNode method, InsnList matches, int index) { AbstractInsnNode node = method.instructions.get(index); AbstractInsnNode match = matches.getFirst(); while (node != null) { if (insnEqual(node, match)) { AbstractInsnNode m = ma...
public class class_name { public static AbstractInsnNode findInstruction(MethodNode method, InsnList matches, int index) { AbstractInsnNode node = method.instructions.get(index); AbstractInsnNode match = matches.getFirst(); while (node != null) { if (insnEqual(node, match)) { AbstractInsnNode m = ma...
public class class_name { @Override public CommerceNotificationAttachment fetchByPrimaryKey( Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationAttachmentImpl.class, primaryKey); if (serializable == ...
public class class_name { @Override public CommerceNotificationAttachment fetchByPrimaryKey( Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationAttachmentImpl.class, primaryKey); if (serializable == ...
public class class_name { @Override public Class resolveType(Object obj) { if (obj instanceof Number) { Number value = (Number) obj; if (isDecimal(value)) { return (isFloat(value) ? Float.class : Double.class); } else { return (isByte(value) ? Byte.class : (is...
public class class_name { @Override public Class resolveType(Object obj) { if (obj instanceof Number) { Number value = (Number) obj; if (isDecimal(value)) { return (isFloat(value) ? Float.class : Double.class); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public boolean isLineOfCode(final String line) { if (line.length() < getIndicatorAreaPos() + 1) { return false; } /* Remove white space lines */ if (line.trim().length() == 0) { return false; } /* Remove comments and sp...
public class class_name { public boolean isLineOfCode(final String line) { if (line.length() < getIndicatorAreaPos() + 1) { return false; // depends on control dependency: [if], data = [none] } /* Remove white space lines */ if (line.trim().length() == 0) { retu...
public class class_name { public boolean setFirstChild(N newChild) { final N oldChild = this.nNorthWest; if (oldChild == newChild) { return false; } if (oldChild != null) { oldChild.setParentNodeReference(null, true); --this.notNullChildCount; firePropertyChildRemoved(0, oldChild); } if (newC...
public class class_name { public boolean setFirstChild(N newChild) { final N oldChild = this.nNorthWest; if (oldChild == newChild) { return false; // depends on control dependency: [if], data = [none] } if (oldChild != null) { oldChild.setParentNodeReference(null, true); // depends on control dependency...
public class class_name { protected void deletePath(IndexTreePath<E> deletionPath) { N leaf = getNode(deletionPath.getParentPath().getEntry()); int index = deletionPath.getIndex(); // delete o E entry = leaf.getEntry(index); leaf.deleteEntry(index); writeNode(leaf); // condense the tree ...
public class class_name { protected void deletePath(IndexTreePath<E> deletionPath) { N leaf = getNode(deletionPath.getParentPath().getEntry()); int index = deletionPath.getIndex(); // delete o E entry = leaf.getEntry(index); leaf.deleteEntry(index); writeNode(leaf); // condense the tree ...
public class class_name { public static XElement storeList(String container, String item, Iterable<? extends XSerializable> source) { XElement result = new XElement(container); for (XSerializable e : source) { e.save(result.add(item)); } return result; } }
public class class_name { public static XElement storeList(String container, String item, Iterable<? extends XSerializable> source) { XElement result = new XElement(container); for (XSerializable e : source) { e.save(result.add(item)); // depends on control dependency: [for], data = [e] ...
public class class_name { public static void addMarkerAsPolygon(Marker marker, List<Marker> markers) { LatLng position = marker.getPosition(); int insertLocation = markers.size(); if (markers.size() > 2) { double[] distances = new double[markers.size()]; insertLocation =...
public class class_name { public static void addMarkerAsPolygon(Marker marker, List<Marker> markers) { LatLng position = marker.getPosition(); int insertLocation = markers.size(); if (markers.size() > 2) { double[] distances = new double[markers.size()]; insertLocation =...
public class class_name { public SSLSocketFactory getSSLSocketFactory(Map<String, Object> connectionInfo, Properties props) throws SSLException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getSSLSocketFactory"); try { SSLConfig newConfig = nu...
public class class_name { public SSLSocketFactory getSSLSocketFactory(Map<String, Object> connectionInfo, Properties props) throws SSLException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getSSLSocketFactory"); try { SSLConfig newConfig = nu...
public class class_name { private <T> T processFunction(SplitFunction<T> function) { synchronized (splits) { if (splits.isEmpty()) { return null; } for (Split split : splits) { function.evaluate(split); } return function.result(); } } }
public class class_name { private <T> T processFunction(SplitFunction<T> function) { synchronized (splits) { if (splits.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } for (Split split : splits) { function.evaluate(split); // depends on control dependency: [f...
public class class_name { public static Polygon lines2Polygon( boolean checkValid, LineString... lines ) { List<Coordinate> coordinatesList = new ArrayList<Coordinate>(); List<LineString> linesList = new ArrayList<LineString>(); for( LineString tmpLine : lines ) { linesList.add(tmp...
public class class_name { public static Polygon lines2Polygon( boolean checkValid, LineString... lines ) { List<Coordinate> coordinatesList = new ArrayList<Coordinate>(); List<LineString> linesList = new ArrayList<LineString>(); for( LineString tmpLine : lines ) { linesList.add(tmp...
public class class_name { public static double evaluate(Phylogeny tree, DistanceMatrix matrix) { int numSequences = matrix.getSize(); List<PhylogenyNode> externalNodes = tree.getExternalNodes(); HashMap<String, PhylogenyNode> externalNodesHashMap = new HashMap<String, PhylogenyNode>(); Set<PhylogenyNode> path ...
public class class_name { public static double evaluate(Phylogeny tree, DistanceMatrix matrix) { int numSequences = matrix.getSize(); List<PhylogenyNode> externalNodes = tree.getExternalNodes(); HashMap<String, PhylogenyNode> externalNodesHashMap = new HashMap<String, PhylogenyNode>(); Set<PhylogenyNode> path ...
public class class_name { public void marshall(KinesisStreamsOutput kinesisStreamsOutput, ProtocolMarshaller protocolMarshaller) { if (kinesisStreamsOutput == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(KinesisStreamsOutput kinesisStreamsOutput, ProtocolMarshaller protocolMarshaller) { if (kinesisStreamsOutput == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public Fraction multipliedBy(final Fraction fraction) { if (fraction == null) { throw new IllegalArgumentException("The fraction must not be null"); } if (numerator == 0 || fraction.numerator == 0) { return ZERO; } // knuth 4.5.1...
public class class_name { public Fraction multipliedBy(final Fraction fraction) { if (fraction == null) { throw new IllegalArgumentException("The fraction must not be null"); } if (numerator == 0 || fraction.numerator == 0) { return ZERO; // depends on control dependency...
public class class_name { public boolean remove() { if (exists() && !isRemoved()) { isRemoved = true; node.getParent().removeChild(nodeFqn.getLastElement()); if (doTraceLogs) { logger.trace("removed cache node "+nodeFqn); } return true; } else { return false; } } }
public class class_name { public boolean remove() { if (exists() && !isRemoved()) { isRemoved = true; // depends on control dependency: [if], data = [none] node.getParent().removeChild(nodeFqn.getLastElement()); // depends on control dependency: [if], data = [none] if (doTraceLogs) { logger.trace("remov...
public class class_name { INodeFile getFileINode(byte[][] components) { readLock(); try { INode inode = rootDir.getNode(components); if (inode == null || inode.isDirectory()) return null; return (INodeFile)inode; } finally { readUnlock(); } } }
public class class_name { INodeFile getFileINode(byte[][] components) { readLock(); try { INode inode = rootDir.getNode(components); if (inode == null || inode.isDirectory()) return null; return (INodeFile)inode; // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public ChannelTermination setup(ChannelData chanData, TCPChannelConfiguration oTCPChannelConfig, TCPChannelFactory _f) throws ChannelException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setup"); } super.setup(chanDat...
public class class_name { public ChannelTermination setup(ChannelData chanData, TCPChannelConfiguration oTCPChannelConfig, TCPChannelFactory _f) throws ChannelException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setup"); } super.setup(chanDat...
public class class_name { private void addPostParams(final Request request) { if (friendlyName != null) { request.addPostParam("FriendlyName", friendlyName); } if (awsCredentialsSid != null) { request.addPostParam("AwsCredentialsSid", awsCredentialsSid); } ...
public class class_name { private void addPostParams(final Request request) { if (friendlyName != null) { request.addPostParam("FriendlyName", friendlyName); // depends on control dependency: [if], data = [none] } if (awsCredentialsSid != null) { request.addPostParam("A...
public class class_name { public static Object deserialize(String json, String containerType, Class cls, NestedContent nestedContent) throws ApiException { try{ if(("List".equals(containerType) || "Array".equals(containerType)) && nestedContent != null){ if(NestedContent.CONTEXT.eq...
public class class_name { public static Object deserialize(String json, String containerType, Class cls, NestedContent nestedContent) throws ApiException { try{ if(("List".equals(containerType) || "Array".equals(containerType)) && nestedContent != null){ if(NestedContent.CONTEXT.eq...
public class class_name { static List<String> flaggedKeyValues(final String flagName, @Nullable Map<?, ?> keyValueMapping) { List<String> result = Lists.newArrayList(); if (keyValueMapping != null && keyValueMapping.size() > 0) { for (Map.Entry<?, ?> entry : keyValueMapping.entrySet()) { result.a...
public class class_name { static List<String> flaggedKeyValues(final String flagName, @Nullable Map<?, ?> keyValueMapping) { List<String> result = Lists.newArrayList(); if (keyValueMapping != null && keyValueMapping.size() > 0) { for (Map.Entry<?, ?> entry : keyValueMapping.entrySet()) { result.a...
public class class_name { private void notifyChange() { if (OllieProvider.isImplemented()) { Ollie.getContext().getContentResolver().notifyChange(OllieProvider.createUri(getClass(), id), null); } } }
public class class_name { private void notifyChange() { if (OllieProvider.isImplemented()) { Ollie.getContext().getContentResolver().notifyChange(OllieProvider.createUri(getClass(), id), null); // depends on control dependency: [if], data = [none] } } }
public class class_name { @Nonnull public Launcher createLauncher(TaskListener listener) { SlaveComputer c = getComputer(); if (c == null) { listener.error("Issue with creating launcher for agent " + name + ". Computer has been disconnected"); return new Launcher.DummyLaunch...
public class class_name { @Nonnull public Launcher createLauncher(TaskListener listener) { SlaveComputer c = getComputer(); if (c == null) { listener.error("Issue with creating launcher for agent " + name + ". Computer has been disconnected"); // depends on control dependency: [if], dat...
public class class_name { public Event<T> addCompletionEvent(Event<?> completionEvent) { if (completionEvents == null) { completionEvents = new HashSet<>(); } completionEvents.add(completionEvent); return this; } }
public class class_name { public Event<T> addCompletionEvent(Event<?> completionEvent) { if (completionEvents == null) { completionEvents = new HashSet<>(); // depends on control dependency: [if], data = [none] } completionEvents.add(completionEvent); return this; } }
public class class_name { public static int minimumRequestSize(Request request) { // Header and payload are common inside a Frame at the protocol level // Frame header has a fixed size of 9 for protocol version >= V3, which includes Frame flags // size int size = FrameCodec.headerEncodedSize(); ...
public class class_name { public static int minimumRequestSize(Request request) { // Header and payload are common inside a Frame at the protocol level // Frame header has a fixed size of 9 for protocol version >= V3, which includes Frame flags // size int size = FrameCodec.headerEncodedSize(); ...
public class class_name { public Q setShort(final int index, final Number value) { if (value == null) { setNull(index, Types.SMALLINT); } else { setShort(index, value.shortValue()); } return _this(); } }
public class class_name { public Q setShort(final int index, final Number value) { if (value == null) { setNull(index, Types.SMALLINT); // depends on control dependency: [if], data = [none] } else { setShort(index, value.shortValue()); // depends on control dependency: [if], data = [none] } return _thi...
public class class_name { @Override public <NV extends NumberVector> NV projectRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype) { final int dim = v.length; double[] vec = projectRenderToScaled(v); // Not calling {@link #projectScaledToDataSpace} to avoid extra copy of // vector. ...
public class class_name { @Override public <NV extends NumberVector> NV projectRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype) { final int dim = v.length; double[] vec = projectRenderToScaled(v); // Not calling {@link #projectScaledToDataSpace} to avoid extra copy of // vector. ...
public class class_name { @Deprecated public String getScope() { StringBuilder scopeTextStringBuilder = new StringBuilder(); for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) { if (domainInScope.isRegex()) { scopeTextStringBuilder.append("\\Q").append(do...
public class class_name { @Deprecated public String getScope() { StringBuilder scopeTextStringBuilder = new StringBuilder(); for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) { if (domainInScope.isRegex()) { scopeTextStringBuilder.append("\\Q").append(do...
public class class_name { public static void rotatePage(ImageInputStream imageInput, ImageOutputStream imageOutput, int degree, int pageIndex) throws IOException { ImageInputStream input = null; try { List<TIFFPage> pages = getPages(imageInput); if (pageIndex != -1) ...
public class class_name { public static void rotatePage(ImageInputStream imageInput, ImageOutputStream imageOutput, int degree, int pageIndex) throws IOException { ImageInputStream input = null; try { List<TIFFPage> pages = getPages(imageInput); if (pageIndex != -1) ...
public class class_name { public UserAuthentication getOrCreateUser(App app, String accessToken) throws IOException { UserAuthentication userAuth = null; User user = new User(); if (accessToken != null) { String acceptHeader = SecurityUtils.getSettingForApp(app, "security.oauth.accept_header", ""); HttpGet...
public class class_name { public UserAuthentication getOrCreateUser(App app, String accessToken) throws IOException { UserAuthentication userAuth = null; User user = new User(); if (accessToken != null) { String acceptHeader = SecurityUtils.getSettingForApp(app, "security.oauth.accept_header", ""); HttpGet...
public class class_name { public void unregisterServerSocketHandler( NIOServerSocketHandler serverHandler ) { if (pendingAcceptHandlers.remove(serverHandler)) return; // Not handled yet if (serverHandlers.remove(serverHandler)) { closeSocketChannel(serverHandler.getServerSocketChannel(), selector); ...
public class class_name { public void unregisterServerSocketHandler( NIOServerSocketHandler serverHandler ) { if (pendingAcceptHandlers.remove(serverHandler)) return; // Not handled yet if (serverHandlers.remove(serverHandler)) { closeSocketChannel(serverHandler.getServerSocketChannel(), selector); // ...
public class class_name { @SuppressWarnings("unchecked") @Nullable public Object resolveArgument(@NotNull String name, @NotNull Operation.Variables variables) { checkNotNull(name, "name == null"); checkNotNull(variables, "variables == null"); Map<String, Object> variableValues = variables.valueMap();...
public class class_name { @SuppressWarnings("unchecked") @Nullable public Object resolveArgument(@NotNull String name, @NotNull Operation.Variables variables) { checkNotNull(name, "name == null"); checkNotNull(variables, "variables == null"); Map<String, Object> variableValues = variables.valueMap();...
public class class_name { public <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type) { if (!superType.isAssignableFrom(type)) { fail(String.format(DEFAULT_IS_ASSIGNABLE_EX_MESSAGE, type == null ? "null" : type.getName(), superType.getName())); } return type;...
public class class_name { public <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type) { if (!superType.isAssignableFrom(type)) { fail(String.format(DEFAULT_IS_ASSIGNABLE_EX_MESSAGE, type == null ? "null" : type.getName(), superType.getName())); // depends on control dependen...
public class class_name { public ParsedPolicy parse(File file) throws Exception { if (file == null || !file.exists()) { if (debug) { if (file == null) { ProGradePolicyDebugger.log("Given File is null"); } else { if (!file.exist...
public class class_name { public ParsedPolicy parse(File file) throws Exception { if (file == null || !file.exists()) { if (debug) { if (file == null) { ProGradePolicyDebugger.log("Given File is null"); // depends on control dependency: [if], data = [none] ...
public class class_name { @NonNull public static Runnable onSchedule(@NonNull Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); Function<? super Runnable, ? extends Runnable> f = onScheduleHandler; if (f == null) { return run; } return apply(f, ru...
public class class_name { @NonNull public static Runnable onSchedule(@NonNull Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); Function<? super Runnable, ? extends Runnable> f = onScheduleHandler; if (f == null) { return run; // depends on control dependency: [i...
public class class_name { static boolean isPreferred(StorageLocationType type, StorageDirectory sd) { if ((sd instanceof NNStorageDirectory)) { return ((NNStorageDirectory) sd).type == type; } // by default all are preferred return true; } }
public class class_name { static boolean isPreferred(StorageLocationType type, StorageDirectory sd) { if ((sd instanceof NNStorageDirectory)) { return ((NNStorageDirectory) sd).type == type; // depends on control dependency: [if], data = [none] } // by default all are preferred return true; } ...
public class class_name { protected static <K, V> HashTrieMap<K, V> makeHashTrieMap(int hash0, CompactHashMap<K, V> elem0, int hash1, CompactHashMap<K, V> elem1, int level, int size) { int index0 = (hash0 >>> level) & 0x1f; int index1 = (hash1 >>> level) & 0x1f; if (index0 != index1) { ...
public class class_name { protected static <K, V> HashTrieMap<K, V> makeHashTrieMap(int hash0, CompactHashMap<K, V> elem0, int hash1, CompactHashMap<K, V> elem1, int level, int size) { int index0 = (hash0 >>> level) & 0x1f; int index1 = (hash1 >>> level) & 0x1f; if (index0 != index1) { ...
public class class_name { public void setModel(Progression model) { this.model.removeProgressionListener(new WeakListener(this, this.model)); if (model == null) { this.model = new DefaultProgression(); } else { this.model = model; } this.previousValue = this.model.getValue(); this.model.addProgressio...
public class class_name { public void setModel(Progression model) { this.model.removeProgressionListener(new WeakListener(this, this.model)); if (model == null) { this.model = new DefaultProgression(); // depends on control dependency: [if], data = [none] } else { this.model = model; // depends on control ...
public class class_name { public void tick() { final long count = uncounted.sumThenReset(); final double instantRate = count / interval; if (initialized) { rate += (alpha * (instantRate - rate)); } else { rate = instantRate; initialized = true; ...
public class class_name { public void tick() { final long count = uncounted.sumThenReset(); final double instantRate = count / interval; if (initialized) { rate += (alpha * (instantRate - rate)); // depends on control dependency: [if], data = [none] } else { rate...
public class class_name { private static int electronsForAtomType(IAtom atom) { Integer electrons = TYPES.get(atom.getAtomTypeName()); if (electrons != null) return electrons; try { IAtomType atomType = AtomTypeFactory.getInstance("org/openscience/cdk/dict/data/cdk-atom-types.owl"...
public class class_name { private static int electronsForAtomType(IAtom atom) { Integer electrons = TYPES.get(atom.getAtomTypeName()); if (electrons != null) return electrons; try { IAtomType atomType = AtomTypeFactory.getInstance("org/openscience/cdk/dict/data/cdk-atom-types.owl"...
public class class_name { private void setExchangeRateChain(List<ExchangeRate> chain) { this.chain.clear(); if (Objects.isNull(chain) || chain.isEmpty()) { this.chain.add(this); } else { for (ExchangeRate rate : chain) { if (Objects.isNull(rate)) { ...
public class class_name { private void setExchangeRateChain(List<ExchangeRate> chain) { this.chain.clear(); if (Objects.isNull(chain) || chain.isEmpty()) { this.chain.add(this); // depends on control dependency: [if], data = [none] } else { for (ExchangeRate rate : chain...
public class class_name { public Object setProperty(final String iName, final Object iValue) { if (iValue != null) { return properties.put(iName.toLowerCase(Locale.ENGLISH), iValue); } else { return properties.remove(iName.toLowerCase(Locale.ENGLISH)); } } }
public class class_name { public Object setProperty(final String iName, final Object iValue) { if (iValue != null) { return properties.put(iName.toLowerCase(Locale.ENGLISH), iValue); // depends on control dependency: [if], data = [none] } else { return properties.remove(iName.toLowerCase(Locale.ENG...
public class class_name { public static <T> CloseableFlowableWithReset<T> cache(final Flowable<T> source, final long duration, final TimeUnit unit, final Scheduler scheduler) { final AtomicReference<CachedFlowable<T>> cacheRef = new AtomicReference<CachedFlowable<T>>(); final AtomicReferenc...
public class class_name { public static <T> CloseableFlowableWithReset<T> cache(final Flowable<T> source, final long duration, final TimeUnit unit, final Scheduler scheduler) { final AtomicReference<CachedFlowable<T>> cacheRef = new AtomicReference<CachedFlowable<T>>(); final AtomicReferenc...
public class class_name { @Override public void write(Batch batch) throws StageException { Multimap<String, Record> partitions = ELUtils.partitionBatchByExpression(sObjectNameEval, sObjectNameVars, conf.sObjectNameTemplate, batch ); Set<String> sObjectNames = partitions.keySet(); ...
public class class_name { @Override public void write(Batch batch) throws StageException { Multimap<String, Record> partitions = ELUtils.partitionBatchByExpression(sObjectNameEval, sObjectNameVars, conf.sObjectNameTemplate, batch ); Set<String> sObjectNames = partitions.keySet(); ...
public class class_name { public WorldState get() throws Exception { while (!this.ready) { synchronized (this) { try { this.wait(); } catch (InterruptedException e) { // Ignored Thread.yield(); } } } if (this.error != null) { throw this.error; } return this.state; } }
public class class_name { public WorldState get() throws Exception { while (!this.ready) { synchronized (this) { try { this.wait(); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { // Ignored Thread.yield(); } // depends on control dependency: [c...
public class class_name { @Override public void parse(Reader reader, Sink sink) throws ParseException { String source = null; try { if ((source = IOUtil.toString(reader)) == null) { source = ""; } } catch (IOException ex) { getLog(...
public class class_name { @Override public void parse(Reader reader, Sink sink) throws ParseException { String source = null; try { if ((source = IOUtil.toString(reader)) == null) { source = ""; // depends on control dependency: [if], data = [none] } ...
public class class_name { private static boolean localSymtabExtends(SymbolTable superset, SymbolTable subset) { if (subset.getMaxId() > superset.getMaxId()) { // the subset has more symbols return false; } // NB this API almost certainly requires cloning--sy...
public class class_name { private static boolean localSymtabExtends(SymbolTable superset, SymbolTable subset) { if (subset.getMaxId() > superset.getMaxId()) { // the subset has more symbols return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { public final void mNEWLINE() throws RecognitionException { try { // druidG.g:716:20: ( ( '\\r\\n' | '\\r' | '\\n' ) ) // druidG.g:716:23: ( '\\r\\n' | '\\r' | '\\n' ) { // druidG.g:716:23: ( '\\r\\n' | '\\r' | '\\n' ) int alt40=3; int LA40_0 = input.LA(1); if ( (LA40_0=...
public class class_name { public final void mNEWLINE() throws RecognitionException { try { // druidG.g:716:20: ( ( '\\r\\n' | '\\r' | '\\n' ) ) // druidG.g:716:23: ( '\\r\\n' | '\\r' | '\\n' ) { // druidG.g:716:23: ( '\\r\\n' | '\\r' | '\\n' ) int alt40=3; int LA40_0 = input.LA(1); if ( (LA40_0=...
public class class_name { public static void handleBOMUTF8(String[] vales, int i) { byte[] buf = vales[i].getBytes(); if (LOG.isDebugEnabled()) { StringBuilder sb = new StringBuilder(); for (byte b : buf) { sb.append(Byte.toString(b)); sb.append("...
public class class_name { public static void handleBOMUTF8(String[] vales, int i) { byte[] buf = vales[i].getBytes(); if (LOG.isDebugEnabled()) { StringBuilder sb = new StringBuilder(); for (byte b : buf) { sb.append(Byte.toString(b)); // depends on control depen...
public class class_name { public ListClustersResult withClusters(ClusterSummary... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<ClusterSummary>(clusters.length)); } for (ClusterSummary ele : clusters) { this.clusters.add...
public class class_name { public ListClustersResult withClusters(ClusterSummary... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<ClusterSummary>(clusters.length)); // depends on control dependency: [if], data = [none] } for (ClusterS...
public class class_name { protected void marshalRuleHeader(final RuleModel model, final StringBuilder buf) { buf.append("rule \"" + marshalRuleName(model) + "\""); if (null != model.parentName && model.parentName.length() > 0) { buf.append(" extends \"" ...
public class class_name { protected void marshalRuleHeader(final RuleModel model, final StringBuilder buf) { buf.append("rule \"" + marshalRuleName(model) + "\""); if (null != model.parentName && model.parentName.length() > 0) { buf.append(" extends \"" ...
public class class_name { public String getURL() { validateNotEmpty( m_groupId, true, "Group" ); validateNotEmpty( m_artifactId, true, "Artifact" ); final StringBuilder url = new StringBuilder(); url.append( "mvn:" ).append( m_groupId ).append( "/" ).append( m_artifactId ); ...
public class class_name { public String getURL() { validateNotEmpty( m_groupId, true, "Group" ); validateNotEmpty( m_artifactId, true, "Artifact" ); final StringBuilder url = new StringBuilder(); url.append( "mvn:" ).append( m_groupId ).append( "/" ).append( m_artifactId ); ...
public class class_name { public void setLabelInfo(CommandButtonLabelInfo labelInfo) { if (labelInfo == null) { labelInfo = CommandButtonLabelInfo.BLANK_BUTTON_LABEL; } CommandButtonLabelInfo old = this.labelInfo; this.labelInfo = labelInfo; firePropertyChange(LABEL_...
public class class_name { public void setLabelInfo(CommandButtonLabelInfo labelInfo) { if (labelInfo == null) { labelInfo = CommandButtonLabelInfo.BLANK_BUTTON_LABEL; // depends on control dependency: [if], data = [none] } CommandButtonLabelInfo old = this.labelInfo; this.la...
public class class_name { public Map<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>> getConfigurableEditors() { Map<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>> configurableEditors = new HashMap<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>>(); Iterator<CmsWorkplac...
public class class_name { public Map<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>> getConfigurableEditors() { Map<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>> configurableEditors = new HashMap<String, SortedMap<Float, CmsWorkplaceEditorConfiguration>>(); Iterator<CmsWorkplac...
public class class_name { public String getAuthType() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); } String authType = null; //if (com.ibm.ws.security.core.SecurityContext.isSecurityEnabled()) if(((WebAppDispatcherContext)thi...
public class class_name { public String getAuthType() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); // depends on control dependency: [if], data = [none] } String authType = null; //if (com.ibm.ws.security.core.SecurityContext.isSecur...
public class class_name { public static boolean tryToInsertChildInstance( AbstractApplication application, Instance parentInstance, Instance childInstance ) { // First, make sure there is no child instance with this name before inserting. // Otherwise, removing the child instance may result randomly. boolean ha...
public class class_name { public static boolean tryToInsertChildInstance( AbstractApplication application, Instance parentInstance, Instance childInstance ) { // First, make sure there is no child instance with this name before inserting. // Otherwise, removing the child instance may result randomly. boolean ha...
public class class_name { public <T extends Runnable> T executeSyncTimed(T runnable, long inMs) { try { Thread.sleep(inMs); this.executeSync(runnable); } catch (InterruptedException e) { e.printStackTrace(); } return runnable; } }
public class class_name { public <T extends Runnable> T executeSyncTimed(T runnable, long inMs) { try { Thread.sleep(inMs); // depends on control dependency: [try], data = [none] this.executeSync(runnable); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { e.printSt...
public class class_name { public void setPeriodAfterStart(ReadablePeriod period) { if (period == null) { setEndMillis(getStartMillis()); } else { setEndMillis(getChronology().add(period, getStartMillis(), 1)); } } }
public class class_name { public void setPeriodAfterStart(ReadablePeriod period) { if (period == null) { setEndMillis(getStartMillis()); // depends on control dependency: [if], data = [none] } else { setEndMillis(getChronology().add(period, getStartMillis(), 1)); // depends on c...
public class class_name { @Override public void destroy() { if (indexManager != null) { indexManager.close(); } if (schemaManager != null) { schemaManager.dropSchema(); } schemaManager = null; externalProperties = null; ...
public class class_name { @Override public void destroy() { if (indexManager != null) { indexManager.close(); // depends on control dependency: [if], data = [none] } if (schemaManager != null) { schemaManager.dropSchema(); // depends on control de...
public class class_name { protected Change createChange(String key) { String language = importSource.getLanguage(); String importedValue = importSource.getValue(key); Status importedStatus = importSource.getStatus(key); // basic change Change change = new Change(Change.TYPE_NO_CHANGE, language, ke...
public class class_name { protected Change createChange(String key) { String language = importSource.getLanguage(); String importedValue = importSource.getValue(key); Status importedStatus = importSource.getStatus(key); // basic change Change change = new Change(Change.TYPE_NO_CHANGE, language, ke...
public class class_name { public void error(NetworkConnection vc, IOWriteRequestContext wrc, IOException t) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "error", new Object[]{vc, wrc, t}); // F176003, F184828 if (TraceComponent.isAnyTracingEnabled() && tc....
public class class_name { public void error(NetworkConnection vc, IOWriteRequestContext wrc, IOException t) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "error", new Object[]{vc, wrc, t}); // F176003, F184828 if (TraceComponent.isAnyTracingEnabled() && tc....
public class class_name { private void processDefaultHeader(ParserContext context) { for (String line : context.getFileLines()) { if (hasHeaderSeparator(line)) { break; } processHeaderLine(line, context.getDocumentModel()); } } }
public class class_name { private void processDefaultHeader(ParserContext context) { for (String line : context.getFileLines()) { if (hasHeaderSeparator(line)) { break; } processHeaderLine(line, context.getDocumentModel()); // depends on control dependency: ...
public class class_name { private InMemoryMetricEmitter extractInMemoryMetricEmitter( final MetricReportManager metricManager) { InMemoryMetricEmitter memoryEmitter = null; for (final IMetricEmitter emitter : metricManager.getMetricEmitters()) { if (emitter instanceof InMemoryMetricEmitter) { ...
public class class_name { private InMemoryMetricEmitter extractInMemoryMetricEmitter( final MetricReportManager metricManager) { InMemoryMetricEmitter memoryEmitter = null; for (final IMetricEmitter emitter : metricManager.getMetricEmitters()) { if (emitter instanceof InMemoryMetricEmitter) { ...
public class class_name { @Override public void fit(DataSet dataSet) { featureStats = (S) newBuilder().addFeatures(dataSet).build(); if (isFitLabel()) { labelStats = (S) newBuilder().addLabels(dataSet).build(); } } }
public class class_name { @Override public void fit(DataSet dataSet) { featureStats = (S) newBuilder().addFeatures(dataSet).build(); if (isFitLabel()) { labelStats = (S) newBuilder().addLabels(dataSet).build(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public final void ruleOpOther() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXbase.g:396:2: ( ( ( rule__OpOther__Alternatives ) ) ) // InternalXbase.g:397:2: ( ( rule__OpOther__Alternatives ) ) ...
public class class_name { public final void ruleOpOther() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXbase.g:396:2: ( ( ( rule__OpOther__Alternatives ) ) ) // InternalXbase.g:397:2: ( ( rule__OpOther__Alternatives ) ) ...
public class class_name { public final int getInteger(String attribute, String... path) { try { return Integer.parseInt(getNodeString(attribute, path)); } catch (final NumberFormatException exception) { throw new LionEngineException(exception, media);...
public class class_name { public final int getInteger(String attribute, String... path) { try { return Integer.parseInt(getNodeString(attribute, path)); // depends on control dependency: [try], data = [none] } catch (final NumberFormatException exception) { ...
public class class_name { public static String getCanonicalDirectoryName(String path) { String realPath = getCanonicalPath(path); if (realPath == null) { return null; } String separator = System.getProperty("file.separator", "/"); // backslashes must be escap...
public class class_name { public static String getCanonicalDirectoryName(String path) { String realPath = getCanonicalPath(path); if (realPath == null) { return null; // depends on control dependency: [if], data = [none] } String separator = System.getProperty("file.s...
public class class_name { public void setSlots(java.util.Collection<Slot> slots) { if (slots == null) { this.slots = null; return; } this.slots = new java.util.ArrayList<Slot>(slots); } }
public class class_name { public void setSlots(java.util.Collection<Slot> slots) { if (slots == null) { this.slots = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.slots = new java.util.Ar...
public class class_name { @SuppressFBWarnings ("IL_INFINITE_LOOP") public static boolean isParentDirectory (@Nonnull final Path aSearchDirectory, @Nonnull final Path aStartDirectory) { ValueEnforcer.notNull (aSearchDirectory, "SearchDirectory"); ValueEnforcer.notNull (aStartDirectory, "StartDirectory"); ...
public class class_name { @SuppressFBWarnings ("IL_INFINITE_LOOP") public static boolean isParentDirectory (@Nonnull final Path aSearchDirectory, @Nonnull final Path aStartDirectory) { ValueEnforcer.notNull (aSearchDirectory, "SearchDirectory"); ValueEnforcer.notNull (aStartDirectory, "StartDirectory"); ...
public class class_name { public static URI setPath(final URI initialUri, final String path) { String finalPath = path; if (!finalPath.startsWith("/")) { finalPath = '/' + path; } try { if (initialUri.getHost() == null && initialUri.getAuthority() != null) { ...
public class class_name { public static URI setPath(final URI initialUri, final String path) { String finalPath = path; if (!finalPath.startsWith("/")) { finalPath = '/' + path; // depends on control dependency: [if], data = [none] } try { if (initialUri.getHost(...
public class class_name { public ListDedicatedHostsResponse listDedicatedHosts(ListDedicatedHostsRequest request) { InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null); if (!Strings.isNullOrEmpty(request.getMarker())) { internalRequest.addParameter("marke...
public class class_name { public ListDedicatedHostsResponse listDedicatedHosts(ListDedicatedHostsRequest request) { InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null); if (!Strings.isNullOrEmpty(request.getMarker())) { internalRequest.addParameter("marke...
public class class_name { public void prepare(ResponseBuilder rb, ComponentFields mtasFields) throws IOException { Set<String> ids = MtasSolrResultUtil .getIdsFromParameters(rb.req.getParams(), PARAM_MTAS_DOCUMENT); if (!ids.isEmpty()) { int tmpCounter = 0; String[] fields = new Strin...
public class class_name { public void prepare(ResponseBuilder rb, ComponentFields mtasFields) throws IOException { Set<String> ids = MtasSolrResultUtil .getIdsFromParameters(rb.req.getParams(), PARAM_MTAS_DOCUMENT); if (!ids.isEmpty()) { int tmpCounter = 0; String[] fields = new Strin...