code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private static LocalizationContext findMatch(PageContext pageContext, String basename) { LocalizationContext locCtxt = null; // Determine locale from client's browser settings. for (Enumeration enum_ = Util .getRequestLocales((HttpServletRe...
public class class_name { private static LocalizationContext findMatch(PageContext pageContext, String basename) { LocalizationContext locCtxt = null; // Determine locale from client's browser settings. for (Enumeration enum_ = Util .getRequestLocales((HttpServletRe...
public class class_name { public final void recover(final Sheet sheet) { this.getAttrs().recover(sheet); if (this.commandList != null) { for (ConfigCommand command : this.commandList) { command.recover(sheet); } } } }
public class class_name { public final void recover(final Sheet sheet) { this.getAttrs().recover(sheet); if (this.commandList != null) { for (ConfigCommand command : this.commandList) { command.recover(sheet); // depends on control dependency: [for], data = [command] } } } }
public class class_name { @Override public void setSpan(Object what, int start, int end, int flags) { if (mSpanCount + 1 >= mSpans.length) { int newsize = mSpanCount + 10; Object[] newtags = new Object[newsize]; int[] newdata = new int[newsize * 3]; System.a...
public class class_name { @Override public void setSpan(Object what, int start, int end, int flags) { if (mSpanCount + 1 >= mSpans.length) { int newsize = mSpanCount + 10; Object[] newtags = new Object[newsize]; int[] newdata = new int[newsize * 3]; System.a...
public class class_name { @CheckReturnValue protected Statement genParamTypeChecks(TemplateNode node, String alias) { ImmutableList.Builder<Statement> declarations = ImmutableList.builder(); for (TemplateParam param : node.getAllParams()) { String paramName = param.name(); SoyType paramType = par...
public class class_name { @CheckReturnValue protected Statement genParamTypeChecks(TemplateNode node, String alias) { ImmutableList.Builder<Statement> declarations = ImmutableList.builder(); for (TemplateParam param : node.getAllParams()) { String paramName = param.name(); SoyType paramType = par...
public class class_name { public synchronized void shutdownImmediately() { if (!this.isShutdown) { final Thread runner = this.taskRunnerThread; this.isShutdown = true; if (runner != null && runner.isAlive()) { runner.interrupt(); } ...
public class class_name { public synchronized void shutdownImmediately() { if (!this.isShutdown) { final Thread runner = this.taskRunnerThread; this.isShutdown = true; // depends on control dependency: [if], data = [none] if (runner != null && runner.isAlive()) { ...
public class class_name { @Override public void set(String key, Object entry, long expireAfterWrite, long expireAfterAccess) { if (!(entry instanceof CacheEntry)) { CacheEntry ce = new CacheEntry(key, CacheUtils.tryClone(entry), expireAfterWrite, expireAfterAccess); ...
public class class_name { @Override public void set(String key, Object entry, long expireAfterWrite, long expireAfterAccess) { if (!(entry instanceof CacheEntry)) { CacheEntry ce = new CacheEntry(key, CacheUtils.tryClone(entry), expireAfterWrite, expireAfterAccess); ...
public class class_name { public static IStatus addNatures(IProject project, IProgressMonitor monitor, String... natureIdentifiers) { if (project != null && natureIdentifiers != null && natureIdentifiers.length > 0) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, natureIdentifiers.length + 2...
public class class_name { public static IStatus addNatures(IProject project, IProgressMonitor monitor, String... natureIdentifiers) { if (project != null && natureIdentifiers != null && natureIdentifiers.length > 0) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, natureIdentifiers.length + 2...
public class class_name { public static void safeEncodeValue(final StringBuilder encoder, @Nullable final Object value) { if (value == null) { encoder.append("null"); } else if (value instanceof Map) { safeEncodeMap(encoder, (Map<?, ?>) value); } else if (value instanceo...
public class class_name { public static void safeEncodeValue(final StringBuilder encoder, @Nullable final Object value) { if (value == null) { encoder.append("null"); // depends on control dependency: [if], data = [none] } else if (value instanceof Map) { safeEncodeMap(encoder, ...
public class class_name { @Override public MarkupContainer add(final Component... _childs) { MarkupContainer ret = null; for (final Component child : _childs) { if (child instanceof HtmlHeaderContainer) { ret = add2Page(child); } else { re...
public class class_name { @Override public MarkupContainer add(final Component... _childs) { MarkupContainer ret = null; for (final Component child : _childs) { if (child instanceof HtmlHeaderContainer) { ret = add2Page(child); // depends on control dependency: [if],...
public class class_name { private void handleInit(ChaincodeMessage message) { new Thread(() -> { try { // Get the function and args from Payload final ChaincodeInput input = ChaincodeInput.parseFrom(message.getPayload()); // Mark as a transaction (a...
public class class_name { private void handleInit(ChaincodeMessage message) { new Thread(() -> { try { // Get the function and args from Payload final ChaincodeInput input = ChaincodeInput.parseFrom(message.getPayload()); // Mark as a transaction (a...
public class class_name { public static Set<Node> getSeedInteractions(Collection<BioPAXElement> elements, Graph graph) { Set<Node> nodes = new HashSet<Node>(); for (BioPAXElement ele : elements) { if (ele instanceof Conversion || ele instanceof TemplateReaction || ele instanceof Control) { GraphO...
public class class_name { public static Set<Node> getSeedInteractions(Collection<BioPAXElement> elements, Graph graph) { Set<Node> nodes = new HashSet<Node>(); for (BioPAXElement ele : elements) { if (ele instanceof Conversion || ele instanceof TemplateReaction || ele instanceof Control) { GraphO...
public class class_name { public JType getGenericType() { SignatureAttribute sigAttr = (SignatureAttribute) getAttribute("Signature"); if (sigAttr != null) { return getClassLoader().parseParameterizedType(sigAttr.getSignature()); } return getType(); } }
public class class_name { public JType getGenericType() { SignatureAttribute sigAttr = (SignatureAttribute) getAttribute("Signature"); if (sigAttr != null) { return getClassLoader().parseParameterizedType(sigAttr.getSignature()); // depends on control dependency: [if], data = [(sigAttr] } ret...
public class class_name { public static void initializeClass(Class clazz) { try { Class.forName(clazz.getName(), true, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } }
public class class_name { public static void initializeClass(Class clazz) { try { Class.forName(clazz.getName(), true, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } // depends on control dependency: [catch], data = [none] } }
public class class_name { Set<Dependency<?>> getInternalDependencies() { ImmutableSet.Builder<InjectionPoint> builder = ImmutableSet.builder(); if (factory.constructorInjector == null) { builder.add(constructorInjectionPoint); // If the below throws, it's OK -- we just ignore those dependencies, be...
public class class_name { Set<Dependency<?>> getInternalDependencies() { ImmutableSet.Builder<InjectionPoint> builder = ImmutableSet.builder(); if (factory.constructorInjector == null) { builder.add(constructorInjectionPoint); // depends on control dependency: [if], data = [none] // If the below th...
public class class_name { public static ContentSpec transform(final ContentSpecWrapper spec, final DataProviderFactory providerFactory, final boolean includeChecksum) { // local variables that are used to map transformed content Map<Integer, Node> nodes = new HashMap<Integer, Node>(); ...
public class class_name { public static ContentSpec transform(final ContentSpecWrapper spec, final DataProviderFactory providerFactory, final boolean includeChecksum) { // local variables that are used to map transformed content Map<Integer, Node> nodes = new HashMap<Integer, Node>(); ...
public class class_name { public static void randomize( MutableDoubleTuple t, double min, double max, Random random) { double delta = max - min; for (int i=0; i<t.getSize(); i++) { t.set(i, min + random.nextDouble() * delta); } } }
public class class_name { public static void randomize( MutableDoubleTuple t, double min, double max, Random random) { double delta = max - min; for (int i=0; i<t.getSize(); i++) { t.set(i, min + random.nextDouble() * delta); // depends on control dependency: [for...
public class class_name { private Map<UUID, FieldType> populateCustomFieldMap() { byte[] data = m_taskProps.getByteArray(Props.CUSTOM_FIELDS); int length = MPPUtility.getInt(data, 0); int index = length + 36; // 4 byte record count int recordCount = MPPUtility.getInt(data, index); ...
public class class_name { private Map<UUID, FieldType> populateCustomFieldMap() { byte[] data = m_taskProps.getByteArray(Props.CUSTOM_FIELDS); int length = MPPUtility.getInt(data, 0); int index = length + 36; // 4 byte record count int recordCount = MPPUtility.getInt(data, index); ...
public class class_name { public void marshall(DataTransfer dataTransfer, ProtocolMarshaller protocolMarshaller) { if (dataTransfer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(dataTransfer.get...
public class class_name { public void marshall(DataTransfer dataTransfer, ProtocolMarshaller protocolMarshaller) { if (dataTransfer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(dataTransfer.get...
public class class_name { static String getString(char c, int n) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { sb.append(c); } return sb.toString(); } }
public class class_name { static String getString(char c, int n) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { sb.append(c); // depends on control dependency: [for], data = [none] } return sb.toString(); } }
public class class_name { public void mergeSubTransaction(SpiderTransaction subTran) { // Column adds for (String storeName : subTran.m_columnAdds.keySet()) { Map<String, Map<String, byte[]>> rowMap = subTran.m_columnAdds.get(storeName); for (String rowKey : rowMap.keySet())...
public class class_name { public void mergeSubTransaction(SpiderTransaction subTran) { // Column adds for (String storeName : subTran.m_columnAdds.keySet()) { Map<String, Map<String, byte[]>> rowMap = subTran.m_columnAdds.get(storeName); for (String rowKey : rowMap.keySet())...
public class class_name { static void extractPorts(final Map<String, Integer> input, final Map<ServiceType, Integer> ports, final Map<ServiceType, Integer> sslPorts) { for (Map.Entry<String, Integer> entry : input.entrySet()) { String service = entry.getKey(); int port = entry.g...
public class class_name { static void extractPorts(final Map<String, Integer> input, final Map<ServiceType, Integer> ports, final Map<ServiceType, Integer> sslPorts) { for (Map.Entry<String, Integer> entry : input.entrySet()) { String service = entry.getKey(); int port = entry.g...
public class class_name { public static AccessibilityNodeInfoCompat focusSearch( AccessibilityNodeInfoCompat node, int direction) { final AccessibilityNodeInfoRef ref = AccessibilityNodeInfoRef.unOwned(node); switch (direction) { case SEARCH_FORWARD: { if (!ref....
public class class_name { public static AccessibilityNodeInfoCompat focusSearch( AccessibilityNodeInfoCompat node, int direction) { final AccessibilityNodeInfoRef ref = AccessibilityNodeInfoRef.unOwned(node); switch (direction) { case SEARCH_FORWARD: { if (!ref....
public class class_name { @Pure public static Point3f computeLineLineIntersection( double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4) { double s = computeLineLineIntersectionFactor(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4);...
public class class_name { @Pure public static Point3f computeLineLineIntersection( double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4) { double s = computeLineLineIntersectionFactor(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4);...
public class class_name { public void setStart(DateType start) { this.start = start; useStart = true; if (useEnd) { this.isMoving = this.start.isPresent() || this.end.isPresent(); useDuration = false; recalcDuration(); } else { this.isMoving = this.start.isPresent(); thi...
public class class_name { public void setStart(DateType start) { this.start = start; useStart = true; if (useEnd) { this.isMoving = this.start.isPresent() || this.end.isPresent(); // depends on control dependency: [if], data = [none] useDuration = false; // depends on control dependency: [if],...
public class class_name { public <T> boolean containsNodeNames(Class<T> T, String... nodeNames) { for(NodeModel node : nodes) { if(!T.isInstance(node)) { continue; } for(String nodeName : nodeNames) { if(node.getName().equals(nodeName)) { return true; } } } return false; } }
public class class_name { public <T> boolean containsNodeNames(Class<T> T, String... nodeNames) { for(NodeModel node : nodes) { if(!T.isInstance(node)) { continue; } for(String nodeName : nodeNames) { if(node.getName().equals(nodeName)) { return true; // depends on control dependency: [if], dat...
public class class_name { @Override protected final List<SuperColumn> loadSuperColumns(String keyspace, String columnFamily, String rowId, String... superColumnNames) { // TODO::: super column abstract entity and discriminator column if (!isOpen()) throw new PersistenceE...
public class class_name { @Override protected final List<SuperColumn> loadSuperColumns(String keyspace, String columnFamily, String rowId, String... superColumnNames) { // TODO::: super column abstract entity and discriminator column if (!isOpen()) throw new PersistenceE...
public class class_name { @SuppressWarnings("unchecked") private InvalidSessionStrategy getInvalidSessionStrategy(H http) { SessionManagementConfigurer<H> sessionManagement = http .getConfigurer(SessionManagementConfigurer.class); if (sessionManagement == null) { return null; } return sessionManagement...
public class class_name { @SuppressWarnings("unchecked") private InvalidSessionStrategy getInvalidSessionStrategy(H http) { SessionManagementConfigurer<H> sessionManagement = http .getConfigurer(SessionManagementConfigurer.class); if (sessionManagement == null) { return null; // depends on control dependen...
public class class_name { public void messageReceived(Object message) { if (message instanceof Packet) { try { messageReceived(conn, (Packet) message); } catch (Exception e) { log.warn("Exception on packet receive", e); } } else...
public class class_name { public void messageReceived(Object message) { if (message instanceof Packet) { try { messageReceived(conn, (Packet) message); // depends on control dependency: [try], data = [none] } catch (Exception e) { log.warn("Exception...
public class class_name { private static BigDecimal divide(final long xs, int xscale, final long ys, int yscale, long preferredScale, MathContext mc) { int mcp = mc.precision; if(xscale <= yscale && yscale < 18 && mcp<18) { return divideSmallFastPath(xs, xscale, ys, yscale, preferredScale, ...
public class class_name { private static BigDecimal divide(final long xs, int xscale, final long ys, int yscale, long preferredScale, MathContext mc) { int mcp = mc.precision; if(xscale <= yscale && yscale < 18 && mcp<18) { return divideSmallFastPath(xs, xscale, ys, yscale, preferredScale, ...
public class class_name { public static void setText(Activity context, int field, String text) { View view = context.findViewById(field); if (view instanceof TextView) { ((TextView) view).setText(text); } else { Log.e("Caffeine", "ViewUtils.setText() given a field that i...
public class class_name { public static void setText(Activity context, int field, String text) { View view = context.findViewById(field); if (view instanceof TextView) { ((TextView) view).setText(text); // depends on control dependency: [if], data = [none] } else { Log.e...
public class class_name { private String transform(String expression) { char[] arr = expression.toCharArray(); for (int i = 0; i < arr.length; i++) { char cc=arr[i]; if (cc == '-') { if (i == 0) { arr[i] = '~'; } else { ...
public class class_name { private String transform(String expression) { char[] arr = expression.toCharArray(); for (int i = 0; i < arr.length; i++) { char cc=arr[i]; if (cc == '-') { if (i == 0) { arr[i] = '~'; // depends on control dependency: [...
public class class_name { private static FormatBundle<DatasetKeyInputFormat> inputBundle(Configuration conf) { FormatBundle<DatasetKeyInputFormat> bundle = FormatBundle .forInput(DatasetKeyInputFormat.class); for (Map.Entry<String, String> entry : conf) { bundle.set(entry.getKey(), entry.getValue...
public class class_name { private static FormatBundle<DatasetKeyInputFormat> inputBundle(Configuration conf) { FormatBundle<DatasetKeyInputFormat> bundle = FormatBundle .forInput(DatasetKeyInputFormat.class); for (Map.Entry<String, String> entry : conf) { bundle.set(entry.getKey(), entry.getValue...
public class class_name { public void marshall(APNSVoipChannelRequest aPNSVoipChannelRequest, ProtocolMarshaller protocolMarshaller) { if (aPNSVoipChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(APNSVoipChannelRequest aPNSVoipChannelRequest, ProtocolMarshaller protocolMarshaller) { if (aPNSVoipChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { private static boolean isValidStartEndForLength(int start, int end, int length) { if (start > length || end > length) { return false; } return true; } }
public class class_name { private static boolean isValidStartEndForLength(int start, int end, int length) { if (start > length || end > length) { return false; // depends on control dependency: [if], data = [none] } return true; } }
public class class_name { public String[] listProviders() { String[] providers = new String[container.size()]; int i = 0; Iterator<String> ki = container.keySet().iterator(); while(ki.hasNext()) { providers[i++] = (String) ki.next(); } return providers; } }
public class class_name { public String[] listProviders() { String[] providers = new String[container.size()]; int i = 0; Iterator<String> ki = container.keySet().iterator(); while(ki.hasNext()) { providers[i++] = (String) ki.next(); // depends on control dependency: [while], data = [none] } return...
public class class_name { protected void configureWindowsLiveClient(final Collection<BaseClient> properties) { val live = pac4jProperties.getWindowsLive(); if (StringUtils.isNotBlank(live.getId()) && StringUtils.isNotBlank(live.getSecret())) { val client = new WindowsLiveClient(live.getId()...
public class class_name { protected void configureWindowsLiveClient(final Collection<BaseClient> properties) { val live = pac4jProperties.getWindowsLive(); if (StringUtils.isNotBlank(live.getId()) && StringUtils.isNotBlank(live.getSecret())) { val client = new WindowsLiveClient(live.getId()...
public class class_name { protected void addSocket(final S newSocket) { if(isClosed()) throw new IllegalStateException("SocketContext is closed"); Future<?> future; synchronized(sockets) { Identifier id = newSocket.getId(); if(sockets.containsKey(id)) throw new IllegalStateException("Socket with the same I...
public class class_name { protected void addSocket(final S newSocket) { if(isClosed()) throw new IllegalStateException("SocketContext is closed"); Future<?> future; synchronized(sockets) { Identifier id = newSocket.getId(); if(sockets.containsKey(id)) throw new IllegalStateException("Socket with the same I...
public class class_name { protected String getTitle(boolean truncating) { if (m_titleGenerator != null) { return m_titleGenerator.getTitle(m_originalText); } if (truncating) { return getText(); } else { return super.getTitle(); } } }
public class class_name { protected String getTitle(boolean truncating) { if (m_titleGenerator != null) { return m_titleGenerator.getTitle(m_originalText); // depends on control dependency: [if], data = [none] } if (truncating) { return getText(); // depends on control ...
public class class_name { private void readAssignments(Project plannerProject) { Allocations allocations = plannerProject.getAllocations(); List<Allocation> allocationList = allocations.getAllocation(); Set<Task> tasksWithAssignments = new HashSet<Task>(); for (Allocation allocation : alloc...
public class class_name { private void readAssignments(Project plannerProject) { Allocations allocations = plannerProject.getAllocations(); List<Allocation> allocationList = allocations.getAllocation(); Set<Task> tasksWithAssignments = new HashSet<Task>(); for (Allocation allocation : alloc...
public class class_name { public ClassGraph whitelistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can ...
public class class_name { public ClassGraph whitelistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can ...
public class class_name { public static long getLong(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 8)) { return segments[0].getLong(offset); } else { return getLongMultiSegments(segments, offset); } } }
public class class_name { public static long getLong(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 8)) { return segments[0].getLong(offset); // depends on control dependency: [if], data = [none] } else { return getLongMultiSegments(segments, offset); // depends on control depen...
public class class_name { public String getId() { if (id == null) { synchronized (this) { if (id == null) { id = "rpc-cfg-" + ID_GENERATOR.getAndIncrement(); } } } return id; } }
public class class_name { public String getId() { if (id == null) { synchronized (this) { // depends on control dependency: [if], data = [none] if (id == null) { id = "rpc-cfg-" + ID_GENERATOR.getAndIncrement(); // depends on control dependency: [if], data = [non...
public class class_name { @Override public int capacity() { if (isFCEnabled()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "FileChannel capacity: " + this.fcSize); } return this.fcSize; } return super....
public class class_name { @Override public int capacity() { if (isFCEnabled()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "FileChannel capacity: " + this.fcSize); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Content getAllClassesLinkScript(String id) { HtmlTree script = HtmlTree.SCRIPT(); String scriptCode = "<!--\n" + " allClassesLink = document.getElementById(\"" + id + "\");\n" + " if(window==top) {\n" + " allClassesLi...
public class class_name { public Content getAllClassesLinkScript(String id) { HtmlTree script = HtmlTree.SCRIPT(); String scriptCode = "<!--\n" + " allClassesLink = document.getElementById(\"" + id + "\");\n" + " if(window==top) {\n" + " allClassesLi...
public class class_name { static void logResult(Map<String, Object> result, DumpConfig config) { Consumer<String> loggerFunc = getLoggerFuncBasedOnLevel(config.getLogLevel()); if(config.isUseJson()) { logResultUsingJson(result, loggerFunc); } else { int startLevel = -1; ...
public class class_name { static void logResult(Map<String, Object> result, DumpConfig config) { Consumer<String> loggerFunc = getLoggerFuncBasedOnLevel(config.getLogLevel()); if(config.isUseJson()) { logResultUsingJson(result, loggerFunc); // depends on control dependency: [if], data = [no...
public class class_name { public void setPara(AttributedCharacterIterator paragraph) { byte paraLvl; Boolean runDirection = (Boolean) paragraph.getAttribute(TextAttribute.RUN_DIRECTION); if (runDirection == null) { paraLvl = LEVEL_DEFAULT_LTR; } else { paraLv...
public class class_name { public void setPara(AttributedCharacterIterator paragraph) { byte paraLvl; Boolean runDirection = (Boolean) paragraph.getAttribute(TextAttribute.RUN_DIRECTION); if (runDirection == null) { paraLvl = LEVEL_DEFAULT_LTR; // depends on control dependency: [...
public class class_name { public void marshall(ReplicationTaskStats replicationTaskStats, ProtocolMarshaller protocolMarshaller) { if (replicationTaskStats == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(ReplicationTaskStats replicationTaskStats, ProtocolMarshaller protocolMarshaller) { if (replicationTaskStats == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { protected boolean isInherited(ProgramElementDoc ped){ if(ped.isPrivate() || (ped.isPackagePrivate() && ! ped.containingPackage().equals(classdoc.containingPackage()))){ return false; } return true; } }
public class class_name { protected boolean isInherited(ProgramElementDoc ped){ if(ped.isPrivate() || (ped.isPackagePrivate() && ! ped.containingPackage().equals(classdoc.containingPackage()))){ return false; // depends on control dependency: [if], data = [none] } return...
public class class_name { public static byte[] inputStreamToBytes(InputStream in) { ByteArrayOutputStream out = new ByteArrayOutputStream(); try { byte[] buffer = new byte[1024]; int len; while ((len = in.read(buffer)) != -1) { out.write(buffer,...
public class class_name { public static byte[] inputStreamToBytes(InputStream in) { ByteArrayOutputStream out = new ByteArrayOutputStream(); try { byte[] buffer = new byte[1024]; int len; while ((len = in.read(buffer)) != -1) { out.write(buffer,...
public class class_name { private int externalInterruptibleAwaitDone() throws InterruptedException { int s; if (Thread.interrupted()) throw new InterruptedException(); while ((s = status) >= 0) { if (U.compareAndSwapInt(this, STATUS, s, s | SIGNAL)) { syn...
public class class_name { private int externalInterruptibleAwaitDone() throws InterruptedException { int s; if (Thread.interrupted()) throw new InterruptedException(); while ((s = status) >= 0) { if (U.compareAndSwapInt(this, STATUS, s, s | SIGNAL)) { syn...
public class class_name { public GlstringBuilder locus(final String glstring) { if (tree.isEmpty()) { locus = glstring; } else if (tree.root.isOperator() && tree.root.right == null) { throw new IllegalStateException("must call allele(String) between successive calls to a...
public class class_name { public GlstringBuilder locus(final String glstring) { if (tree.isEmpty()) { locus = glstring; // depends on control dependency: [if], data = [none] } else if (tree.root.isOperator() && tree.root.right == null) { throw new IllegalStateException("...
public class class_name { public void reverse() { for (int i = 0, size = mTransitionControls.size(); i < size; i++) { mTransitionControls.get(i).reverse(); } } }
public class class_name { public void reverse() { for (int i = 0, size = mTransitionControls.size(); i < size; i++) { mTransitionControls.get(i).reverse(); // depends on control dependency: [for], data = [i] } } }
public class class_name { private List<AvailablePhoneNumber> toAvailablePhoneNumbers(List<PhoneNumber> phoneNumbers) { final List<AvailablePhoneNumber> availablePhoneNumbers = new ArrayList<AvailablePhoneNumber>(); for (PhoneNumber phoneNumber : phoneNumbers) { final AvailablePhoneNumber nu...
public class class_name { private List<AvailablePhoneNumber> toAvailablePhoneNumbers(List<PhoneNumber> phoneNumbers) { final List<AvailablePhoneNumber> availablePhoneNumbers = new ArrayList<AvailablePhoneNumber>(); for (PhoneNumber phoneNumber : phoneNumbers) { final AvailablePhoneNumber nu...
public class class_name { public void shutdown() { lock.lock(); try { isShutdown = true; notEmpty.signalAll(); notFull.signalAll(); } finally { lock.unlock(); } } }
public class class_name { public void shutdown() { lock.lock(); try { isShutdown = true; // depends on control dependency: [try], data = [none] notEmpty.signalAll(); // depends on control dependency: [try], data = [none] notFull.signalAll(); // depends on control dep...
public class class_name { public void setPermissions(IConnection conn, Collection<String> permissions) { if (permissions == null) { conn.removeAttribute(PERMISSIONS); } else { conn.setAttribute(PERMISSIONS, permissions); } } }
public class class_name { public void setPermissions(IConnection conn, Collection<String> permissions) { if (permissions == null) { conn.removeAttribute(PERMISSIONS); // depends on control dependency: [if], data = [none] } else { conn.setAttribute(PERMISSIONS, permissions); ...
public class class_name { boolean findRemainingCameraMatrices(LookupSimilarImages db, View seed, GrowQueue_I32 motions) { points3D.reset(); // points in 3D for (int i = 0; i < structure.points.length; i++) { structure.points[i].get(points3D.grow()); } // contains associated pairs of pixel observations // ...
public class class_name { boolean findRemainingCameraMatrices(LookupSimilarImages db, View seed, GrowQueue_I32 motions) { points3D.reset(); // points in 3D for (int i = 0; i < structure.points.length; i++) { structure.points[i].get(points3D.grow()); // depends on control dependency: [for], data = [i] } // c...
public class class_name { private void enrich(final Dependency dependency) { log.debug("Enrich dependency: {}", dependency); for (Identifier id : dependency.getSoftwareIdentifiers()) { if (id instanceof PurlIdentifier) { log.debug(" Package: {} -> {}", id, id.getConfidence...
public class class_name { private void enrich(final Dependency dependency) { log.debug("Enrich dependency: {}", dependency); for (Identifier id : dependency.getSoftwareIdentifiers()) { if (id instanceof PurlIdentifier) { log.debug(" Package: {} -> {}", id, id.getConfidence...
public class class_name { public List<WebElement> findExpectedElements(By by) { waitForLoaders(); try { return new WebDriverWait(getWebDriver(), getSeleniumManager().getTimeout()) .until(ExpectedConditions.presenceOfAllElementsLocatedBy(by)); } catch (WebDriverException wde) { log.error("Expected elem...
public class class_name { public List<WebElement> findExpectedElements(By by) { waitForLoaders(); try { return new WebDriverWait(getWebDriver(), getSeleniumManager().getTimeout()) .until(ExpectedConditions.presenceOfAllElementsLocatedBy(by)); // depends on control dependency: [try], data = [none] } catch...
public class class_name { public static RedisConnectionException create(String remoteAddress, Throwable cause) { if (remoteAddress == null) { if (cause instanceof RedisConnectionException) { return new RedisConnectionException(cause.getMessage(), cause.getCause()); } ...
public class class_name { public static RedisConnectionException create(String remoteAddress, Throwable cause) { if (remoteAddress == null) { if (cause instanceof RedisConnectionException) { return new RedisConnectionException(cause.getMessage(), cause.getCause()); // depends on c...
public class class_name { List<Job> getRemainingJobs() { if (mThread.isAlive()) { LOG.warn("Internal error: Polling running monitor for jobs"); } synchronized (mJobs) { return new ArrayList<Job>(mJobs); } } }
public class class_name { List<Job> getRemainingJobs() { if (mThread.isAlive()) { LOG.warn("Internal error: Polling running monitor for jobs"); // depends on control dependency: [if], data = [none] } synchronized (mJobs) { return new ArrayList<Job>(mJobs); } } }
public class class_name { public static int dimensionFromConstraint(String constraint, String columnName) { Matcher matcher = Z_CONSTRAINT_PATTERN.matcher(constraint); if(matcher.find()) { String extractedColumnName = matcher.group(1).replace("\"","").replace("`", ""); if(extrac...
public class class_name { public static int dimensionFromConstraint(String constraint, String columnName) { Matcher matcher = Z_CONSTRAINT_PATTERN.matcher(constraint); if(matcher.find()) { String extractedColumnName = matcher.group(1).replace("\"","").replace("`", ""); if(extrac...
public class class_name { private static String initCreateRelationshipQuery(EntityKeyMetadata ownerEntityKeyMetadata, AssociationKeyMetadata associationKeyMetadata) { EntityKeyMetadata targetEntityKeyMetadata = associationKeyMetadata.getAssociatedEntityKeyMetadata().getEntityKeyMetadata(); int offset = 0; String...
public class class_name { private static String initCreateRelationshipQuery(EntityKeyMetadata ownerEntityKeyMetadata, AssociationKeyMetadata associationKeyMetadata) { EntityKeyMetadata targetEntityKeyMetadata = associationKeyMetadata.getAssociatedEntityKeyMetadata().getEntityKeyMetadata(); int offset = 0; String...
public class class_name { public static JSONArray getRepositoryNames() { final JSONArray ret = new JSONArray(); if (null == repositoriesDescription) { LOGGER.log(Level.INFO, "Not found repository description[repository.json] file under classpath"); return ret; } ...
public class class_name { public static JSONArray getRepositoryNames() { final JSONArray ret = new JSONArray(); if (null == repositoriesDescription) { LOGGER.log(Level.INFO, "Not found repository description[repository.json] file under classpath"); // depends on control dependency: [if], d...
public class class_name { public void printLine(String text) { if (!DEBUG) { return; } Element child = DOM.createElement("p"); child.setInnerHTML(text); m_html.insertFirst(child); } }
public class class_name { public void printLine(String text) { if (!DEBUG) { return; // depends on control dependency: [if], data = [none] } Element child = DOM.createElement("p"); child.setInnerHTML(text); m_html.insertFirst(child); } }
public class class_name { public void marshall(CreateGroupCertificateAuthorityRequest createGroupCertificateAuthorityRequest, ProtocolMarshaller protocolMarshaller) { if (createGroupCertificateAuthorityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(CreateGroupCertificateAuthorityRequest createGroupCertificateAuthorityRequest, ProtocolMarshaller protocolMarshaller) { if (createGroupCertificateAuthorityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { protected void displaySystem (String bundle, String message, byte attLevel, String localtype) { // nothing should be untranslated, so pass the default bundle if need be. if (bundle == null) { bundle = _bundle; } SystemMessage msg = new SystemMes...
public class class_name { protected void displaySystem (String bundle, String message, byte attLevel, String localtype) { // nothing should be untranslated, so pass the default bundle if need be. if (bundle == null) { bundle = _bundle; // depends on control dependency: [if], data = [non...
public class class_name { static public int byteIndexOf(byte[] bytes, byte target, int start_index) { int rc = -1; // simulate String.indexOf rc // stop when we are out of data or hit the target byte for (int index = start_index; index < bytes.length; index++) { if (target == bytes...
public class class_name { static public int byteIndexOf(byte[] bytes, byte target, int start_index) { int rc = -1; // simulate String.indexOf rc // stop when we are out of data or hit the target byte for (int index = start_index; index < bytes.length; index++) { if (target == bytes...
public class class_name { @Override public void setInput(InputStream is, String charset) { position = 0; limit = 0; boolean detectCharset = (charset == null); if (is == null) { throw new IllegalArgumentException(); } try { if (detectCharset) { // read the four bytes looking for an indication o...
public class class_name { @Override public void setInput(InputStream is, String charset) { position = 0; limit = 0; boolean detectCharset = (charset == null); if (is == null) { throw new IllegalArgumentException(); } try { if (detectCharset) { // read the four bytes looking for an indication o...
public class class_name { public final QueryParser.regex_match_return regex_match() throws RecognitionException { QueryParser.regex_match_return retval = new QueryParser.regex_match_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token WS41=null; Token REGEX_MA...
public class class_name { public final QueryParser.regex_match_return regex_match() throws RecognitionException { QueryParser.regex_match_return retval = new QueryParser.regex_match_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token WS41=null; Token REGEX_MA...
public class class_name { public T next(int offset) { if (offset < 0) { throw new IllegalArgumentException("offset < 0"); } while (itemBuffer.size() <= offset && !endReached) { T item = fetch(); if (item != null) { itemBuffer.add(item); ...
public class class_name { public T next(int offset) { if (offset < 0) { throw new IllegalArgumentException("offset < 0"); } while (itemBuffer.size() <= offset && !endReached) { T item = fetch(); if (item != null) { itemBuffer.add(item); // dep...
public class class_name { private void setHelpEnabled(boolean enabled) { if (getView() == null) { return; } JRootPane rootPane = getView().getMainFrame().getRootPane(); if (enabled && findHelpSetUrl() != null) { createHelpBroker(); loadAddOnHelpSets(ExtensionFactory.getAddOnLoader().getAddOnCollecti...
public class class_name { private void setHelpEnabled(boolean enabled) { if (getView() == null) { return; // depends on control dependency: [if], data = [none] } JRootPane rootPane = getView().getMainFrame().getRootPane(); if (enabled && findHelpSetUrl() != null) { createHelpBroker(); loadAddOnHelpS...
public class class_name { public static Package getTaskTemplatePackage(Long taskId) { try { for (Package pkg : getPackageList()) { if (pkg.containsTaskTemplate(taskId)) return pkg; } return Package.getDefaultPackage(); } catch ...
public class class_name { public static Package getTaskTemplatePackage(Long taskId) { try { for (Package pkg : getPackageList()) { if (pkg.containsTaskTemplate(taskId)) return pkg; } return Package.getDefaultPackage(); // depends on control de...
public class class_name { public boolean registerCallbackOnExistingExpression( ConnectionImpl connection, String topicExpression, boolean isWildcarded, ConsumerSetChangeCallback callback) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
public class class_name { public boolean registerCallbackOnExistingExpression( ConnectionImpl connection, String topicExpression, boolean isWildcarded, ConsumerSetChangeCallback callback) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
public class class_name { public void invokeInfoListener(int what, int extra) { if (infoListener != null) { infoListener.onInfo(player, what, extra); } } }
public class class_name { public void invokeInfoListener(int what, int extra) { if (infoListener != null) { infoListener.onInfo(player, what, extra); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Q setObjects(final Object... objects) { int index = 1; for (final Object object : objects) { setObject(index++, object); } return _this(); } }
public class class_name { public Q setObjects(final Object... objects) { int index = 1; for (final Object object : objects) { setObject(index++, object); // depends on control dependency: [for], data = [object] } return _this(); } }
public class class_name { public void setSiteManager(CmsSiteManagerImpl siteManager) { m_siteManager = siteManager; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_SITE_CONFIG_FINISHED_0)); } } }
public class class_name { public void setSiteManager(CmsSiteManagerImpl siteManager) { m_siteManager = siteManager; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_SITE_CONFIG_FINISHED_0)); // depends on control dependency: [if], data = [non...
public class class_name { @Nullable public static KeyedStateHandle chooseTheBestStateHandleForInitial( @Nonnull Collection<KeyedStateHandle> restoreStateHandles, @Nonnull KeyGroupRange targetKeyGroupRange) { KeyedStateHandle bestStateHandle = null; double bestScore = 0; for (KeyedStateHandle rawStateHandle...
public class class_name { @Nullable public static KeyedStateHandle chooseTheBestStateHandleForInitial( @Nonnull Collection<KeyedStateHandle> restoreStateHandles, @Nonnull KeyGroupRange targetKeyGroupRange) { KeyedStateHandle bestStateHandle = null; double bestScore = 0; for (KeyedStateHandle rawStateHandle...
public class class_name { public Set<Weekday> getSet() { if (this.set == null) { HashSet<Weekday> hashSet = new HashSet<Weekday>(); int value = getValue().intValue(); for (Weekday weekday : Weekday.values()) { int mask = (1 << weekday.ordinal()); if ((value & mask) != 0) { ...
public class class_name { public Set<Weekday> getSet() { if (this.set == null) { HashSet<Weekday> hashSet = new HashSet<Weekday>(); int value = getValue().intValue(); for (Weekday weekday : Weekday.values()) { int mask = (1 << weekday.ordinal()); if ((value & mask) != 0) { ...
public class class_name { public static String removeIgnoreCase(final String str, final String remove) { if (isEmpty(str) || isEmpty(remove)) { return str; } return replaceIgnoreCase(str, remove, EMPTY, -1); } }
public class class_name { public static String removeIgnoreCase(final String str, final String remove) { if (isEmpty(str) || isEmpty(remove)) { return str; // depends on control dependency: [if], data = [none] } return replaceIgnoreCase(str, remove, EMPTY, -1); } }
public class class_name { @Override public synchronized ChannelData[] getRunningChannels() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getRunningChannels"); } // Note, runtime has child data objects so duplicates may be found. List...
public class class_name { @Override public synchronized ChannelData[] getRunningChannels() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getRunningChannels"); // depends on control dependency: [if], data = [none] } // Note, runtime has child...
public class class_name { public void scrollOnce() { PagerAdapter adapter = getAdapter(); int currentItem = getCurrentItem(); int totalCount; if (adapter == null || (totalCount = adapter.getCount()) <= 1) { return; } int nextItem = (direction == LEFT) ? --cu...
public class class_name { public void scrollOnce() { PagerAdapter adapter = getAdapter(); int currentItem = getCurrentItem(); int totalCount; if (adapter == null || (totalCount = adapter.getCount()) <= 1) { return; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override protected void addBuildListeners(final Project project) { // Add the default listener project.addBuildListener(createLogger()); final int count = args.listeners.size(); for (int i = 0; i < count; i++) { final String className = args.l...
public class class_name { @Override protected void addBuildListeners(final Project project) { // Add the default listener project.addBuildListener(createLogger()); final int count = args.listeners.size(); for (int i = 0; i < count; i++) { final String className = args.l...
public class class_name { public static void init(AuthAPI authzAPI, AuthzFacade facade) throws Exception { /** * Create a new ID/Credential */ authzAPI.route(POST,"/authn/cred",API.CRED_REQ,new Code(facade,"Add a New ID/Credential", true) { @Override public void handle(AuthzTrans trans, HttpServletRequ...
public class class_name { public static void init(AuthAPI authzAPI, AuthzFacade facade) throws Exception { /** * Create a new ID/Credential */ authzAPI.route(POST,"/authn/cred",API.CRED_REQ,new Code(facade,"Add a New ID/Credential", true) { @Override public void handle(AuthzTrans trans, HttpServletRequ...
public class class_name { public void invokeHookEmit(List<Object> values, String stream, Collection<Integer> outTasks) { if (taskHooks.size() != 0) { EmitInfo emitInfo = new EmitInfo(values, stream, getThisTaskId(), outTasks); for (ITaskHook taskHook : taskHooks) { taskHook.emit(emitInfo); ...
public class class_name { public void invokeHookEmit(List<Object> values, String stream, Collection<Integer> outTasks) { if (taskHooks.size() != 0) { EmitInfo emitInfo = new EmitInfo(values, stream, getThisTaskId(), outTasks); for (ITaskHook taskHook : taskHooks) { taskHook.emit(emitInfo); // d...
public class class_name { protected ProviderInfo selectPinpointProvider(String targetIP, List<ProviderInfo> providerInfos) { ProviderInfo tp = ProviderHelper.toProviderInfo(targetIP); for (ProviderInfo providerInfo : providerInfos) { if (providerInfo.getHost().equals(tp.getHost()) ...
public class class_name { protected ProviderInfo selectPinpointProvider(String targetIP, List<ProviderInfo> providerInfos) { ProviderInfo tp = ProviderHelper.toProviderInfo(targetIP); for (ProviderInfo providerInfo : providerInfos) { if (providerInfo.getHost().equals(tp.getHost()) ...
public class class_name { public Map<BenchmarkMethod, Integer> getNumberOfMethodsAndRuns() throws PerfidixMethodCheckException { final Map<BenchmarkMethod, Integer> returnVal = new HashMap<BenchmarkMethod, Integer>(); // instantiate objects, just for getting runs final List<BenchmarkMethod> meths = getBenchma...
public class class_name { public Map<BenchmarkMethod, Integer> getNumberOfMethodsAndRuns() throws PerfidixMethodCheckException { final Map<BenchmarkMethod, Integer> returnVal = new HashMap<BenchmarkMethod, Integer>(); // instantiate objects, just for getting runs final List<BenchmarkMethod> meths = getBenchma...
public class class_name { public DescribeEC2InstanceLimitsResult withEC2InstanceLimits(EC2InstanceLimit... eC2InstanceLimits) { if (this.eC2InstanceLimits == null) { setEC2InstanceLimits(new java.util.ArrayList<EC2InstanceLimit>(eC2InstanceLimits.length)); } for (EC2InstanceLimit el...
public class class_name { public DescribeEC2InstanceLimitsResult withEC2InstanceLimits(EC2InstanceLimit... eC2InstanceLimits) { if (this.eC2InstanceLimits == null) { setEC2InstanceLimits(new java.util.ArrayList<EC2InstanceLimit>(eC2InstanceLimits.length)); // depends on control dependency: [if], da...
public class class_name { @Override void postProcess(TextView textView, List<BannerComponentNode> bannerComponentNodes) { if (exitNumber != null) { LayoutInflater inflater = (LayoutInflater) textView.getContext().getSystemService(Context .LAYOUT_INFLATER_SERVICE); ViewGroup root = (ViewGroup...
public class class_name { @Override void postProcess(TextView textView, List<BannerComponentNode> bannerComponentNodes) { if (exitNumber != null) { LayoutInflater inflater = (LayoutInflater) textView.getContext().getSystemService(Context .LAYOUT_INFLATER_SERVICE); ViewGroup root = (ViewGroup...
public class class_name { private static TYPE toTYPE(String type) { if (null == type || type.trim().isEmpty()) { return TYPE.OBJECT; } else { return TYPE.valueOf(type.toUpperCase()); } } }
public class class_name { private static TYPE toTYPE(String type) { if (null == type || type.trim().isEmpty()) { return TYPE.OBJECT; // depends on control dependency: [if], data = [none] } else { return TYPE.valueOf(type.toUpperCase()); // depends on control dependency: [if], da...
public class class_name { protected Validator comeOnHibernateValidator(Supplier<VaConfigSetupper> configSetupperSupplier) { if (isSuppressHibernateValidatorCache()) { return createHibernateValidator(configSetupperSupplier); } else { // basically here if (cachedValidator != null)...
public class class_name { protected Validator comeOnHibernateValidator(Supplier<VaConfigSetupper> configSetupperSupplier) { if (isSuppressHibernateValidatorCache()) { return createHibernateValidator(configSetupperSupplier); // depends on control dependency: [if], data = [none] } else { // b...
public class class_name { private static boolean encodeFileToFile(String infile, String outfile) { boolean success = false; java.io.InputStream in = null; java.io.OutputStream out = null; try { in = new Base64.InputStream(new java.io.BufferedInputStream(new java.io.FileInputStream(infile)), Base64.ENCODE...
public class class_name { private static boolean encodeFileToFile(String infile, String outfile) { boolean success = false; java.io.InputStream in = null; java.io.OutputStream out = null; try { in = new Base64.InputStream(new java.io.BufferedInputStream(new java.io.FileInputStream(infile)), Base64.ENCODE...
public class class_name { private void enableClipPathSupportIfNecessary() { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { if (rippleRoundedCornersPx != 0) { layerType = getLayerType(); set...
public class class_name { private void enableClipPathSupportIfNecessary() { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { if (rippleRoundedCornersPx != 0) { layerType = getLayerType(); // depends on contr...
public class class_name { public void histogramToStructure(int histogram[] ) { col_idx[0] = 0; int index = 0; for (int i = 1; i <= numCols; i++) { col_idx[i] = index += histogram[i-1]; } nz_length = index; growMaxLength( nz_length , false); if( col_id...
public class class_name { public void histogramToStructure(int histogram[] ) { col_idx[0] = 0; int index = 0; for (int i = 1; i <= numCols; i++) { col_idx[i] = index += histogram[i-1]; // depends on control dependency: [for], data = [i] } nz_length = index; g...
public class class_name { public static int getAnnotatedParameterIndex(Method method, Class<? extends Annotation> annotationClass) { Annotation[][] annotationsForParameters = method.getParameterAnnotations(); for (int i = 0; i < annotationsForParameters.length; i++) { Annotation[] parameter...
public class class_name { public static int getAnnotatedParameterIndex(Method method, Class<? extends Annotation> annotationClass) { Annotation[][] annotationsForParameters = method.getParameterAnnotations(); for (int i = 0; i < annotationsForParameters.length; i++) { Annotation[] parameter...
public class class_name { private static List<String> split( String str, String splitter ) { StringTokenizer tokens = new StringTokenizer(str, splitter); ArrayList<String> l = new ArrayList<>(tokens.countTokens()); while (tokens.hasMoreTokens()) { ...
public class class_name { private static List<String> split( String str, String splitter ) { StringTokenizer tokens = new StringTokenizer(str, splitter); ArrayList<String> l = new ArrayList<>(tokens.countTokens()); while (tokens.hasMoreTokens()) { ...
public class class_name { public boolean moveTargetPosition(float[] npos, NavMeshQuery navquery, QueryFilter filter) { // Move along navmesh and update new position. Result<MoveAlongSurfaceResult> masResult = navquery.moveAlongSurface(m_path.get(m_path.size() - 1), m_target, npos, filte...
public class class_name { public boolean moveTargetPosition(float[] npos, NavMeshQuery navquery, QueryFilter filter) { // Move along navmesh and update new position. Result<MoveAlongSurfaceResult> masResult = navquery.moveAlongSurface(m_path.get(m_path.size() - 1), m_target, npos, filte...
public class class_name { public Collection<String> getNames() { Collection<String> names = new HashSet<String>(); for (InitParam initParam : initParams) { names.add(initParam.getName()); } return names; } }
public class class_name { public Collection<String> getNames() { Collection<String> names = new HashSet<String>(); for (InitParam initParam : initParams) { names.add(initParam.getName()); // depends on control dependency: [for], data = [initParam] } return names; } }
public class class_name { protected void validateNumber(final List<Diagnostic> diags) { BigDecimal value = getValue(); if (value == null) { return; } BigDecimal min = getComponentModel().minValue; BigDecimal max = getComponentModel().maxValue; int decimals = getComponentModel().decimalPlaces; if (mi...
public class class_name { protected void validateNumber(final List<Diagnostic> diags) { BigDecimal value = getValue(); if (value == null) { return; // depends on control dependency: [if], data = [none] } BigDecimal min = getComponentModel().minValue; BigDecimal max = getComponentModel().maxValue; int d...
public class class_name { private void readPreferences() { boolean runOnStartup = pref.getBoolean("runOnStartup", true); getRunOnStartupCheckBox().setSelected(runOnStartup); int maxCpus = pref.getInt("maxCpus", 0); if (maxCpus <= 0) { getLimitCpusCheckBox().setSelected(false); getMaxCpusTe...
public class class_name { private void readPreferences() { boolean runOnStartup = pref.getBoolean("runOnStartup", true); getRunOnStartupCheckBox().setSelected(runOnStartup); int maxCpus = pref.getInt("maxCpus", 0); if (maxCpus <= 0) { getLimitCpusCheckBox().setSelected(false); // depends on cont...
public class class_name { public static String getExtension(String uri) { if (uri == null) { return null; } int dot = uri.lastIndexOf("."); if (dot >= 0) { return uri.substring(dot); } else { // No extension. return ""; } ...
public class class_name { public static String getExtension(String uri) { if (uri == null) { return null; // depends on control dependency: [if], data = [none] } int dot = uri.lastIndexOf("."); if (dot >= 0) { return uri.substring(dot); // depends on control dep...