code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public DateTimeFormatterBuilder appendSignedDecimal( DateTimeFieldType fieldType, int minDigits, int maxDigits) { if (fieldType == null) { throw new IllegalArgumentException("Field type must not be null"); } if (maxDigits < minDigits) { ...
public class class_name { public DateTimeFormatterBuilder appendSignedDecimal( DateTimeFieldType fieldType, int minDigits, int maxDigits) { if (fieldType == null) { throw new IllegalArgumentException("Field type must not be null"); } if (maxDigits < minDigits) { ...
public class class_name { public static double dirichletPdf(double[] pi, double a) { double probability=1.0; int piLength=pi.length; for(int i=0;i<piLength;++i) { probability*=Math.pow(pi[i], a-1); } double sumAi=piLength*a; double ...
public class class_name { public static double dirichletPdf(double[] pi, double a) { double probability=1.0; int piLength=pi.length; for(int i=0;i<piLength;++i) { probability*=Math.pow(pi[i], a-1); // depends on control dependency: [for], data = [i] } ...
public class class_name { public void marshall(AutoScalingPolicyDescription autoScalingPolicyDescription, ProtocolMarshaller protocolMarshaller) { if (autoScalingPolicyDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(AutoScalingPolicyDescription autoScalingPolicyDescription, ProtocolMarshaller protocolMarshaller) { if (autoScalingPolicyDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public List<Triangle> findTriangleNeighborhood(Triangle firstTriangle, Vector3 point) { List<Triangle> triangles = new ArrayList<Triangle>(30); triangles.add(firstTriangle); Triangle prevTriangle = null; Triangle currentTriangle = firstTriangle; Triangle nextTriangle = curren...
public class class_name { public List<Triangle> findTriangleNeighborhood(Triangle firstTriangle, Vector3 point) { List<Triangle> triangles = new ArrayList<Triangle>(30); triangles.add(firstTriangle); Triangle prevTriangle = null; Triangle currentTriangle = firstTriangle; Triangle nextTriangle = curren...
public class class_name { protected void configure(final T builder, final String name) { configureKeepAlive(builder, name); configureSecurity(builder, name); configureLimits(builder, name); configureCompression(builder, name); for (final GrpcChannelConfigurer channelConfigurer :...
public class class_name { protected void configure(final T builder, final String name) { configureKeepAlive(builder, name); configureSecurity(builder, name); configureLimits(builder, name); configureCompression(builder, name); for (final GrpcChannelConfigurer channelConfigurer :...
public class class_name { public ActiveTrustedSigners withItems(Signer... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<Signer>(items.length)); } for (Signer ele : items) { this.items.add(ele); } return this; }...
public class class_name { public ActiveTrustedSigners withItems(Signer... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<Signer>(items.length)); // depends on control dependency: [if], data = [none] } for (Signer ele : items) { thi...
public class class_name { private void shutdownGracefully(final Iterator<EventExecutorGroup> iterator) { if (iterator.hasNext()) { EventExecutorGroup group = iterator.next(); if (!group.isShuttingDown()) { group.shutdownGracefully().addListener(future -> { ...
public class class_name { private void shutdownGracefully(final Iterator<EventExecutorGroup> iterator) { if (iterator.hasNext()) { EventExecutorGroup group = iterator.next(); if (!group.isShuttingDown()) { group.shutdownGracefully().addListener(future -> { ...
public class class_name { public void onNotify(Notify ntfy, SubscriptionClientChildSbbLocalObject subscriptionChild) { // compile diff if (ntfy.getStatus().equals(SubscriptionStatus.terminated)) { try { final String notifier = ntfy.getNotifier(); subscriptionChild.remove(); getParent() .sub...
public class class_name { public void onNotify(Notify ntfy, SubscriptionClientChildSbbLocalObject subscriptionChild) { // compile diff if (ntfy.getStatus().equals(SubscriptionStatus.terminated)) { try { final String notifier = ntfy.getNotifier(); subscriptionChild.remove(); // depends on control depe...
public class class_name { public void marshall(SimulationJobSummary simulationJobSummary, ProtocolMarshaller protocolMarshaller) { if (simulationJobSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(SimulationJobSummary simulationJobSummary, ProtocolMarshaller protocolMarshaller) { if (simulationJobSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { protected synchronized void firstScan(List<String> scanPackageList) { // 该函数不能调用两次 if (isFirstInit) { LOGGER.info("DisConfMgr has been init, ignore........"); return; } // // // try { // 导入配置 ...
public class class_name { protected synchronized void firstScan(List<String> scanPackageList) { // 该函数不能调用两次 if (isFirstInit) { LOGGER.info("DisConfMgr has been init, ignore........"); // depends on control dependency: [if], data = [none] return; // depends on control dependenc...
public class class_name { private JCheckBox getChkShowPassword() { if (chkShowPassword == null) { chkShowPassword = new JCheckBox(); chkShowPassword.setText(Constant.messages.getString("conn.options.proxy.auth.showpass")); chkShowPassword.addActionListener(new java.awt.event.ActionListener() { @...
public class class_name { private JCheckBox getChkShowPassword() { if (chkShowPassword == null) { chkShowPassword = new JCheckBox(); chkShowPassword.setText(Constant.messages.getString("conn.options.proxy.auth.showpass")); chkShowPassword.addActionListener(new java.awt.event.ActionListener() { @...
public class class_name { public static String squeeze(final String str, final String... set) { if (StringUtils.isEmpty(str) || deepEmpty(set)) { return str; } final CharSet chars = CharSet.getInstance(set); final StringBuilder buffer = new StringBuilder(str.length()); ...
public class class_name { public static String squeeze(final String str, final String... set) { if (StringUtils.isEmpty(str) || deepEmpty(set)) { return str; // depends on control dependency: [if], data = [none] } final CharSet chars = CharSet.getInstance(set); final StringB...
public class class_name { public Map<String, String> getLayoutMappings() { String mappingsValues = environment.getProperty("mustache.layoutMappings", MustacheSettings.LAYOUT_MAPPINGS).trim(); if (mappingsValues.isEmpty()) { return emptyMap(); } Map<String, String> mappings = new HashMap<String, String>();...
public class class_name { public Map<String, String> getLayoutMappings() { String mappingsValues = environment.getProperty("mustache.layoutMappings", MustacheSettings.LAYOUT_MAPPINGS).trim(); if (mappingsValues.isEmpty()) { return emptyMap(); // depends on control dependency: [if], data = [none] } Map<Str...
public class class_name { @Override public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable) { // 1. batchInsert XmlElement batchInsertEle = new XmlElement("insert"); batchInsertEle.addAttribute(new Attribute("id", METHOD_BATCH_INSERT)); // 参数类型...
public class class_name { @Override public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable) { // 1. batchInsert XmlElement batchInsertEle = new XmlElement("insert"); batchInsertEle.addAttribute(new Attribute("id", METHOD_BATCH_INSERT)); // 参数类型...
public class class_name { public static base_responses update(nitro_service client, nstimer resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstimer updateresources[] = new nstimer[resources.length]; for (int i=0;i<resources.length;i++){ updat...
public class class_name { public static base_responses update(nitro_service client, nstimer resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstimer updateresources[] = new nstimer[resources.length]; for (int i=0;i<resources.length;i++){ updat...
public class class_name { public ResourceBundle getResourceBundle(Class<?> aClass, String bundleName, List<Locale> locales) { ResourceBundle bundle = null; ClassLoader classLoader = null; // instead of waiting for ResourceBundle to throw the NPE, do it now if (bundleName == null) ...
public class class_name { public ResourceBundle getResourceBundle(Class<?> aClass, String bundleName, List<Locale> locales) { ResourceBundle bundle = null; ClassLoader classLoader = null; // instead of waiting for ResourceBundle to throw the NPE, do it now if (bundleName == null) ...
public class class_name { private void categorizeCurrentFile(final Reference ref) { final URI currentFile = ref.filename; if (listFilter.hasConaction()) { conrefpushSet.add(currentFile); } if (listFilter.hasConRef()) { conrefSet.add(currentFile); } ...
public class class_name { private void categorizeCurrentFile(final Reference ref) { final URI currentFile = ref.filename; if (listFilter.hasConaction()) { conrefpushSet.add(currentFile); // depends on control dependency: [if], data = [none] } if (listFilter.hasConRef()) { ...
public class class_name { private Pair<Double, String> summarizeBalance(final Map<Integer, Integer> nodeIdToPartitionCount, String title) { StringBuilder builder = new StringBuilder(); builder.append("\n" + title + "\n"); Map<Integer, ZoneBalanceStats> zoneToBalanceStats = new Hash...
public class class_name { private Pair<Double, String> summarizeBalance(final Map<Integer, Integer> nodeIdToPartitionCount, String title) { StringBuilder builder = new StringBuilder(); builder.append("\n" + title + "\n"); Map<Integer, ZoneBalanceStats> zoneToBalanceStats = new Hash...
public class class_name { public void index(final ByteBuffer key, final ColumnFamily columnFamily, final long timestamp) { if (indexQueue == null) { indexInner(key, columnFamily, timestamp); } else { indexQueue.submitAsynchronous(key, new Runnable() { @Override ...
public class class_name { public void index(final ByteBuffer key, final ColumnFamily columnFamily, final long timestamp) { if (indexQueue == null) { indexInner(key, columnFamily, timestamp); // depends on control dependency: [if], data = [none] } else { indexQueue.submitAsynchro...
public class class_name { private void generateGetType(SQLiteDatabaseSchema schema) { MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder("getType").addModifiers(Modifier.PUBLIC).addAnnotation(Override.class).returns(String.class); methodBuilder.addParameter(Uri.class, "uri"); methodBuilder.beginControl...
public class class_name { private void generateGetType(SQLiteDatabaseSchema schema) { MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder("getType").addModifiers(Modifier.PUBLIC).addAnnotation(Override.class).returns(String.class); methodBuilder.addParameter(Uri.class, "uri"); methodBuilder.beginControl...
public class class_name { public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 addresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] =...
public class class_name { public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 addresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] =...
public class class_name { @Override public void unindexHelpModule(HelpModule helpModule) { try { log.info("Removing index for help module " + helpModule.getLocalizedId()); Term term = new Term("module", helpModule.getLocalizedId()); writer.deleteDocuments(term); ...
public class class_name { @Override public void unindexHelpModule(HelpModule helpModule) { try { log.info("Removing index for help module " + helpModule.getLocalizedId()); // depends on control dependency: [try], data = [none] Term term = new Term("module", helpModule.getLocalizedId...
public class class_name { @Override public ResultScanner<Row> readRows(Query request) { final ResultScanner<FlatRow> delegate = readFlatRows(request); return new ResultScanner<Row>() { @Override public Row next() throws IOException { return FlatRowConverter.convertToModelRow(delegate.nex...
public class class_name { @Override public ResultScanner<Row> readRows(Query request) { final ResultScanner<FlatRow> delegate = readFlatRows(request); return new ResultScanner<Row>() { @Override public Row next() throws IOException { return FlatRowConverter.convertToModelRow(delegate.nex...
public class class_name { void initializeNonPersistent(BaseDestinationHandler destinationHandler, SIMPTransactionManager txManager) throws MessageStoreException { if (tc.isEntryEnabled()) SibTr.entry(tc, "initializeNonPersistent", new Object[] {destinationHandler, txManager})...
public class class_name { void initializeNonPersistent(BaseDestinationHandler destinationHandler, SIMPTransactionManager txManager) throws MessageStoreException { if (tc.isEntryEnabled()) SibTr.entry(tc, "initializeNonPersistent", new Object[] {destinationHandler, txManager})...
public class class_name { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; } }
public class class_name { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { protected void xor(byte[] dest, byte[] src) { for (int i = 0; i < dest.length; i++) { dest[i] ^= src[i]; } } }
public class class_name { protected void xor(byte[] dest, byte[] src) { for (int i = 0; i < dest.length; i++) { dest[i] ^= src[i]; // depends on control dependency: [for], data = [i] } } }
public class class_name { @Get("/projects") public CompletableFuture<List<ProjectDto>> listProjects(@Param("status") Optional<String> status) { if (status.isPresent()) { checkStatusArgument(status.get()); return CompletableFuture.supplyAsync(() -> projectManager().listRemoved().stre...
public class class_name { @Get("/projects") public CompletableFuture<List<ProjectDto>> listProjects(@Param("status") Optional<String> status) { if (status.isPresent()) { checkStatusArgument(status.get()); // depends on control dependency: [if], data = [none] return CompletableFuture...
public class class_name { public String getString() { int rank = getRank(); if (rank == 0) { return new String(storage); } if (rank != 1) throw new IllegalArgumentException("ArayChar.getString rank must be 1"); int strLen = indexCalc.getShape(0); int count = 0; for ...
public class class_name { public String getString() { int rank = getRank(); if (rank == 0) { return new String(storage); // depends on control dependency: [if], data = [none] } if (rank != 1) throw new IllegalArgumentException("ArayChar.getString rank must be 1"); int strLen = ...
public class class_name { public String getQuery( URIContext uriContext ) { if(_parameters == null || !_parameters.hasParameters()) return null; String paramSeparator = AMP_ENTITY; if ( uriContext == null ) { uriContext = getDefaultContext(); } ...
public class class_name { public String getQuery( URIContext uriContext ) { if(_parameters == null || !_parameters.hasParameters()) return null; String paramSeparator = AMP_ENTITY; if ( uriContext == null ) { uriContext = getDefaultContext(); // depends on c...
public class class_name { protected void markStreamBroken() { if(anyAreSet(state, STATE_STREAM_BROKEN)) { return; } synchronized (lock) { state |= STATE_STREAM_BROKEN; PooledByteBuffer data = this.data; if(data != null) { try { ...
public class class_name { protected void markStreamBroken() { if(anyAreSet(state, STATE_STREAM_BROKEN)) { return; // depends on control dependency: [if], data = [none] } synchronized (lock) { state |= STATE_STREAM_BROKEN; PooledByteBuffer data = this.data; ...
public class class_name { private void addConnection() throws SQLException { //create new connection Protocol protocol = Utils.retrieveProxy(urlParser, globalInfo); MariaDbConnection connection = new MariaDbConnection(protocol); MariaDbPooledConnection pooledConnection = createPoolConnection(connectio...
public class class_name { private void addConnection() throws SQLException { //create new connection Protocol protocol = Utils.retrieveProxy(urlParser, globalInfo); MariaDbConnection connection = new MariaDbConnection(protocol); MariaDbPooledConnection pooledConnection = createPoolConnection(connectio...
public class class_name { protected static final int generateVersionNumber(String s) { int i = -1; StringTokenizer stringtokenizer = new StringTokenizer(s, "VRM", false); if (stringtokenizer.countTokens() == 3) { String s1 = stringtokenizer.nextToken(); s1 = s1 + stringt...
public class class_name { protected static final int generateVersionNumber(String s) { int i = -1; StringTokenizer stringtokenizer = new StringTokenizer(s, "VRM", false); if (stringtokenizer.countTokens() == 3) { String s1 = stringtokenizer.nextToken(); s1 = s1 + stringt...
public class class_name { protected String getLocalizedType(int flags) { if ((flags & CmsAccessControlEntry.ACCESS_FLAGS_USER) > 0) { return key(Messages.GUI_LABEL_USER_0); } else { return key(Messages.GUI_LABEL_GROUP_0); } } }
public class class_name { protected String getLocalizedType(int flags) { if ((flags & CmsAccessControlEntry.ACCESS_FLAGS_USER) > 0) { return key(Messages.GUI_LABEL_USER_0); // depends on control dependency: [if], data = [0)] } else { return key(Messages.GUI_LABEL_GROUP_0); // d...
public class class_name { @SuppressWarnings("all") public static File findPidFile(File path) { Assert.isTrue(FileSystemUtils.isExisting(path), "The path [%s] to search for the .pid file must not be null and must actually exist", path); File searchDirectory = (path.isDirectory() ? path : path.getParent...
public class class_name { @SuppressWarnings("all") public static File findPidFile(File path) { Assert.isTrue(FileSystemUtils.isExisting(path), "The path [%s] to search for the .pid file must not be null and must actually exist", path); File searchDirectory = (path.isDirectory() ? path : path.getParent...
public class class_name { @SafeVarargs public static Byte[] box(final byte... a) { if (a == null) { return null; } return box(a, 0, a.length); } }
public class class_name { @SafeVarargs public static Byte[] box(final byte... a) { if (a == null) { return null; // depends on control dependency: [if], data = [none] } return box(a, 0, a.length); } }
public class class_name { public static AccessibilityNodeInfoCompat refreshNode( AccessibilityNodeInfoCompat node) { if (node == null) { return null; } AccessibilityNodeInfoCompat result = refreshFromChild(node); if (result == null) { result = refreshFrom...
public class class_name { public static AccessibilityNodeInfoCompat refreshNode( AccessibilityNodeInfoCompat node) { if (node == null) { return null; // depends on control dependency: [if], data = [none] } AccessibilityNodeInfoCompat result = refreshFromChild(node); ...
public class class_name { public Collection<ArtifactSpec> getTransientDependencies(ArtifactSpec artifact) { Set<ArtifactSpec> deps = new HashSet<>(); if (this.isDirectDep(artifact)) { deps.addAll(getTransientDeps(artifact)); } if (presolvedDependencies.isDirectDep(artifact))...
public class class_name { public Collection<ArtifactSpec> getTransientDependencies(ArtifactSpec artifact) { Set<ArtifactSpec> deps = new HashSet<>(); if (this.isDirectDep(artifact)) { deps.addAll(getTransientDeps(artifact)); // depends on control dependency: [if], data = [none] } ...
public class class_name { protected AttributeSplitSuggestion searchForBestSplitOption(Node currentNode, AttributeSplitSuggestion currentBestOption, SplitCriterion criterion, int attIndex) { // Return null if the current node is null or we have finished looking through all the possible splits if (curren...
public class class_name { protected AttributeSplitSuggestion searchForBestSplitOption(Node currentNode, AttributeSplitSuggestion currentBestOption, SplitCriterion criterion, int attIndex) { // Return null if the current node is null or we have finished looking through all the possible splits if (curren...
public class class_name { public Enumeration<NetworkInterface> getSubInterfaces() { class subIFs implements Enumeration<NetworkInterface> { private int i=0; subIFs() { } public NetworkInterface nextElement() { if (i < childs.length) { ...
public class class_name { public Enumeration<NetworkInterface> getSubInterfaces() { class subIFs implements Enumeration<NetworkInterface> { private int i=0; subIFs() { } public NetworkInterface nextElement() { if (i < childs.length) { ...
public class class_name { public static String capitalize(String input) { if (input == null) { return null; } if (input.length() > 1) { for (int i = 0; i < input.length(); i++) { if (Character.isAlphabetic(input.charAt(i))) { return input.substring(0, i) + Character.toString(input.charAt(i)).toU...
public class class_name { public static String capitalize(String input) { if (input == null) { return null; // depends on control dependency: [if], data = [none] } if (input.length() > 1) { for (int i = 0; i < input.length(); i++) { if (Character.isAlphabetic(input.charAt(i))) { return input.sub...
public class class_name { public CompletableFuture<Queue<T>> take(int maxCount) { synchronized (this.contents) { Exceptions.checkNotClosed(this.closed, this); Preconditions.checkState(this.pendingTake == null, "Cannot have more than one concurrent pending take() request."); ...
public class class_name { public CompletableFuture<Queue<T>> take(int maxCount) { synchronized (this.contents) { Exceptions.checkNotClosed(this.closed, this); Preconditions.checkState(this.pendingTake == null, "Cannot have more than one concurrent pending take() request."); ...
public class class_name { public void characters(char[] ch, int start, int length) throws RepositoryException { StringBuilder text = new StringBuilder(); text.append(ch, start, length); if (log.isDebugEnabled()) { log.debug("Property:xmltext=" + text + " Parent=" + getParent().getQ...
public class class_name { public void characters(char[] ch, int start, int length) throws RepositoryException { StringBuilder text = new StringBuilder(); text.append(ch, start, length); if (log.isDebugEnabled()) { log.debug("Property:xmltext=" + text + " Parent=" + getParent().getQ...
public class class_name { @SuppressWarnings("unchecked") public Set<QueryableEntry> query(Predicate predicate) { stats.incrementQueryCount(); if (!haveAtLeastOneIndex() || !(predicate instanceof IndexAwarePredicate)) { return null; } IndexAwarePredicate indexAwarePredi...
public class class_name { @SuppressWarnings("unchecked") public Set<QueryableEntry> query(Predicate predicate) { stats.incrementQueryCount(); if (!haveAtLeastOneIndex() || !(predicate instanceof IndexAwarePredicate)) { return null; // depends on control dependency: [if], data = [none] ...
public class class_name { public void addSourceFolders(Iterable<File> folders) { Assert.notNull(folders, "Folders must not be null"); synchronized (this.monitor) { for (File folder : folders) { addSourceFolder(folder); } } } }
public class class_name { public void addSourceFolders(Iterable<File> folders) { Assert.notNull(folders, "Folders must not be null"); synchronized (this.monitor) { for (File folder : folders) { addSourceFolder(folder); // depends on control dependency: [for], data = [folder] } } } }
public class class_name { public void marshall(AvailSettings availSettings, ProtocolMarshaller protocolMarshaller) { if (availSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(availSettings...
public class class_name { public void marshall(AvailSettings availSettings, ProtocolMarshaller protocolMarshaller) { if (availSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(availSettings...
public class class_name { private static Shape createArrowShape(int w, int y0, int y1) { Path2D path = new Path2D.Double(); path.moveTo(0, y0); if ((w & 1) == 0) { path.lineTo(w>>1, y1); } else { int c = w>>1; pa...
public class class_name { private static Shape createArrowShape(int w, int y0, int y1) { Path2D path = new Path2D.Double(); path.moveTo(0, y0); if ((w & 1) == 0) { path.lineTo(w>>1, y1); // depends on control dependency: [if], data = [none] } else...
public class class_name { @Override public final DataSource getJtaDataSource() { if (ivJtaDataSource == null || ivJtaDataSource instanceof GenericDataSource) { // d455055 ivJtaDataSource = getJPADataSource(ivJtaDataSourceJNDIName); } return ivJtaDataSource; } }
public class class_name { @Override public final DataSource getJtaDataSource() { if (ivJtaDataSource == null || ivJtaDataSource instanceof GenericDataSource) { // d455055 ivJtaDataSource = getJPADataSource(ivJtaDataSourceJNDIName); // depends on control dependency: [if], data = [(ivJtaDataSourc...
public class class_name { private final void print( Object[] kvs ) { for( int i=0; i<len(kvs); i++ ) { Object K = key(kvs,i); if( K != null ) { String KS = (K == TOMBSTONE) ? "XXX" : K.toString(); Object V = val(kvs,i); Object U = Prime.unbox(V); String p = (V==U) ? "" :...
public class class_name { private final void print( Object[] kvs ) { for( int i=0; i<len(kvs); i++ ) { Object K = key(kvs,i); if( K != null ) { String KS = (K == TOMBSTONE) ? "XXX" : K.toString(); Object V = val(kvs,i); Object U = Prime.unbox(V); String p = (V==U) ? "" :...
public class class_name { public void init(ClassLoader loader, ContextSource[] contextSources, String[] prefixes, boolean profilingEnabled) throws Exception { mSources = contextSources; int len = contextSources.length; ArrayList<Class<?>> contextList ...
public class class_name { public void init(ClassLoader loader, ContextSource[] contextSources, String[] prefixes, boolean profilingEnabled) throws Exception { mSources = contextSources; int len = contextSources.length; ArrayList<Class<?>> contextList ...
public class class_name { public XNodeSet getNodeSetDTMByKey( XPathContext xctxt, int doc, QName name, XMLString ref, PrefixResolver nscontext) throws javax.xml.transform.TransformerException { XNodeSet nl = null; ElemTemplateElement template = (ElemTemplateElement) nscontext; // yuck...
public class class_name { public XNodeSet getNodeSetDTMByKey( XPathContext xctxt, int doc, QName name, XMLString ref, PrefixResolver nscontext) throws javax.xml.transform.TransformerException { XNodeSet nl = null; ElemTemplateElement template = (ElemTemplateElement) nscontext; // yuck...
public class class_name { @Value("${locator.strategy}") public void setDefaultLocatorSelectionStrategy(String defaultLocatorSelectionStrategy) { this.defaultLocatorSelectionStrategy = defaultLocatorSelectionStrategy; if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Default strateg...
public class class_name { @Value("${locator.strategy}") public void setDefaultLocatorSelectionStrategy(String defaultLocatorSelectionStrategy) { this.defaultLocatorSelectionStrategy = defaultLocatorSelectionStrategy; if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Default strateg...
public class class_name { protected static String getLang() { Locale locale = Locale.getDefault(); if (null == locale) return DEFAULT_LANGUAGE_CODE; String language = locale.getLanguage(); String country = locale.getCountry(); String localeString = String.format("%...
public class class_name { protected static String getLang() { Locale locale = Locale.getDefault(); if (null == locale) return DEFAULT_LANGUAGE_CODE; String language = locale.getLanguage(); String country = locale.getCountry(); String localeString = String.format("%...
public class class_name { @Override public <T> T putAttachment(final AttachmentKey<T> key, final T value) { if (key == null) { throw UndertowMessages.MESSAGES.argumentCannotBeNull("key"); } if(attachments == null) { attachments = createAttachmentMap(); } ...
public class class_name { @Override public <T> T putAttachment(final AttachmentKey<T> key, final T value) { if (key == null) { throw UndertowMessages.MESSAGES.argumentCannotBeNull("key"); } if(attachments == null) { attachments = createAttachmentMap(); // depends on ...
public class class_name { public BeanDefinition removeBean(final String name) { BeanDefinition bd = beans.remove(name); if (bd == null) { return null; } bd.scopeRemove(); return bd; } }
public class class_name { public BeanDefinition removeBean(final String name) { BeanDefinition bd = beans.remove(name); if (bd == null) { return null; // depends on control dependency: [if], data = [none] } bd.scopeRemove(); return bd; } }
public class class_name { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErro...
public class class_name { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; // depends on control dependency...
public class class_name { private static void readField(Object[] vals, int fieldIdx, TypeDescription schema, ColumnVector vector, int childCount) { // check the type of the vector to decide how to read it. switch (schema.getCategory()) { case BOOLEAN: if (vector.noNulls) { readNonNullLongColumn(vals, ...
public class class_name { private static void readField(Object[] vals, int fieldIdx, TypeDescription schema, ColumnVector vector, int childCount) { // check the type of the vector to decide how to read it. switch (schema.getCategory()) { case BOOLEAN: if (vector.noNulls) { readNonNullLongColumn(vals, ...
public class class_name { public static void hess(Matrix A, ExecutorService threadpool) { if(!A.isSquare()) throw new ArithmeticException("Only square matrices can be converted to Upper Hessenberg form"); int m = A.rows(); /** * Space used to store the vector for updati...
public class class_name { public static void hess(Matrix A, ExecutorService threadpool) { if(!A.isSquare()) throw new ArithmeticException("Only square matrices can be converted to Upper Hessenberg form"); int m = A.rows(); /** * Space used to store the vector for updati...
public class class_name { private void disableStrictSSL() { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return new X509Certifi...
public class class_name { private void disableStrictSSL() { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return new X509Certifi...
public class class_name { public static byte[] decode(String s) { int len = s.length(); if (len % 2 != 0) { return null; } byte[] bytes = new byte[len / 2]; int pos = 0; for (int i = 0; i < len; i += 2) { byte hi = (byte) Cha...
public class class_name { public static byte[] decode(String s) { int len = s.length(); if (len % 2 != 0) { return null; // depends on control dependency: [if], data = [none] } byte[] bytes = new byte[len / 2]; int pos = 0; for (int i = 0; i < l...
public class class_name { public static MultiPolygon extractWalls(Polygon polygon, double height){ GeometryFactory factory = polygon.getFactory(); //We process the exterior ring final LineString shell = getClockWise(polygon.getExteriorRing()); ArrayList<Polygon> walls = new ArrayList<...
public class class_name { public static MultiPolygon extractWalls(Polygon polygon, double height){ GeometryFactory factory = polygon.getFactory(); //We process the exterior ring final LineString shell = getClockWise(polygon.getExteriorRing()); ArrayList<Polygon> walls = new ArrayList<...
public class class_name { public static Map<String, Object> replaceDataReferences(final Map<String, Object> input, final Map<String, Map<String, String>> data, Converter<String, String> converter, ...
public class class_name { public static Map<String, Object> replaceDataReferences(final Map<String, Object> input, final Map<String, Map<String, String>> data, Converter<String, String> converter, ...
public class class_name { @Override public Integer getTotalCallDetailRecords(CallDetailRecordFilter filter) { final SqlSession session = sessions.openSession(); try { final Integer total = session.selectOne(namespace + "getTotalCallDetailRecordByUsingFilters", filter); retur...
public class class_name { @Override public Integer getTotalCallDetailRecords(CallDetailRecordFilter filter) { final SqlSession session = sessions.openSession(); try { final Integer total = session.selectOne(namespace + "getTotalCallDetailRecordByUsingFilters", filter); retur...
public class class_name { public List<MeasureTraitType.AttributeSet> getAttributeSet() { if (attributeSet == null) { attributeSet = new ArrayList<MeasureTraitType.AttributeSet>(); } return this.attributeSet; } }
public class class_name { public List<MeasureTraitType.AttributeSet> getAttributeSet() { if (attributeSet == null) { attributeSet = new ArrayList<MeasureTraitType.AttributeSet>(); // depends on control dependency: [if], data = [none] } return this.attributeSet; } }
public class class_name { protected String getSessionIndex(final Assertion subjectAssertion) { List<AuthnStatement> authnStatements = subjectAssertion.getAuthnStatements(); if (authnStatements != null && authnStatements.size() > 0) { AuthnStatement statement = authnStatements.get(0); ...
public class class_name { protected String getSessionIndex(final Assertion subjectAssertion) { List<AuthnStatement> authnStatements = subjectAssertion.getAuthnStatements(); if (authnStatements != null && authnStatements.size() > 0) { AuthnStatement statement = authnStatements.get(0); ...
public class class_name { public static void genTagOutput(TagletManager tagletManager, Element element, List<Taglet> taglets, TagletWriter writer, Content output) { Utils utils = writer.configuration().utils; tagletManager.checkTags(utils, element, utils.getBlockTags(element), false); ...
public class class_name { public static void genTagOutput(TagletManager tagletManager, Element element, List<Taglet> taglets, TagletWriter writer, Content output) { Utils utils = writer.configuration().utils; tagletManager.checkTags(utils, element, utils.getBlockTags(element), false); ...
public class class_name { public void marshall(DescribeElasticsearchInstanceTypeLimitsRequest describeElasticsearchInstanceTypeLimitsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticsearchInstanceTypeLimitsRequest == null) { throw new SdkClientException("Invalid argument passed...
public class class_name { public void marshall(DescribeElasticsearchInstanceTypeLimitsRequest describeElasticsearchInstanceTypeLimitsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticsearchInstanceTypeLimitsRequest == null) { throw new SdkClientException("Invalid argument passed...
public class class_name { private void copyBaseDirs(File[] baseDirs) { this.baseDirs = new File[baseDirs.length]; for (int i = 0; i < baseDirs.length; i++) { this.baseDirs[i] = baseDirs[i].getAbsoluteFile(); } } }
public class class_name { private void copyBaseDirs(File[] baseDirs) { this.baseDirs = new File[baseDirs.length]; for (int i = 0; i < baseDirs.length; i++) { this.baseDirs[i] = baseDirs[i].getAbsoluteFile(); // depends on control dependency: [for], data = [i] } } }
public class class_name { @Execute public HtmlResponse edit(final EditForm form) { final String jspType = "view"; final File jspFile = getJspFile(form.fileName, jspType); try { form.content = new String(FileUtil.readBytes(jspFile), Constants.UTF_8); } catch (final Unsupp...
public class class_name { @Execute public HtmlResponse edit(final EditForm form) { final String jspType = "view"; final File jspFile = getJspFile(form.fileName, jspType); try { form.content = new String(FileUtil.readBytes(jspFile), Constants.UTF_8); // depends on control depende...
public class class_name { public static ExternalSessionKey fromJsonResponseBody(String responseBody) { try { Map<String, Object> json = new Json().toType(responseBody, MAP_TYPE); if (json.get("sessionId") instanceof String) { return new ExternalSessionKey((String) json.get("sessionId")); ...
public class class_name { public static ExternalSessionKey fromJsonResponseBody(String responseBody) { try { Map<String, Object> json = new Json().toType(responseBody, MAP_TYPE); if (json.get("sessionId") instanceof String) { return new ExternalSessionKey((String) json.get("sessionId")); // dep...
public class class_name { public static GSIConstants.CertificateType getCertificateType(X509Certificate cert, CertStore trustedCerts) throws CertificateException { try { TBSCertificateStructure crt = getTBSCertificateStructure(cert); GSIConstants.CertificateType type = getCertificat...
public class class_name { public static GSIConstants.CertificateType getCertificateType(X509Certificate cert, CertStore trustedCerts) throws CertificateException { try { TBSCertificateStructure crt = getTBSCertificateStructure(cert); GSIConstants.CertificateType type = getCertificat...
public class class_name { public void startThreads() { if (this.sortThread != null) { this.sortThread.start(); } if (this.spillThread != null) { this.spillThread.start(); } if (this.mergeThread != null) { this.mergeThread.start(); } } }
public class class_name { public void startThreads() { if (this.sortThread != null) { this.sortThread.start(); // depends on control dependency: [if], data = [none] } if (this.spillThread != null) { this.spillThread.start(); // depends on control dependency: [if], data = [none] } if (this.mergeThread !...
public class class_name { public static long headerSize(Class clazz) { Preconditions.checkNotNull(clazz); // TODO Should be calculated based on the platform // TODO maybe unsafe.addressSize() would help? long len = 12; // JVM_64 has a 12 byte header 8 + 4 (with compressed pointers on) if (clazz.isA...
public class class_name { public static long headerSize(Class clazz) { Preconditions.checkNotNull(clazz); // TODO Should be calculated based on the platform // TODO maybe unsafe.addressSize() would help? long len = 12; // JVM_64 has a 12 byte header 8 + 4 (with compressed pointers on) if (clazz.isA...
public class class_name { public static String utf8ToUnicode(String inStr) { char[] myBuffer = inStr.toCharArray(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < inStr.length(); i++) { Character.UnicodeBlock ub = Character.UnicodeBlock.of(myBuffer[i]); if (...
public class class_name { public static String utf8ToUnicode(String inStr) { char[] myBuffer = inStr.toCharArray(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < inStr.length(); i++) { Character.UnicodeBlock ub = Character.UnicodeBlock.of(myBuffer[i]); if (...
public class class_name { public static final boolean iOs3_2Plus() { if (cachediOs3_2Plus == null) { cachediOs3_2Plus = false; if (Platform.getName().equals(PLATFORM_IPHONE_OS)) { String[] version = Javascript.stringSplit(Platform.getVersion(), "."); int major = Integer.parseInt(version[0]); ...
public class class_name { public static final boolean iOs3_2Plus() { if (cachediOs3_2Plus == null) { cachediOs3_2Plus = false; // depends on control dependency: [if], data = [none] if (Platform.getName().equals(PLATFORM_IPHONE_OS)) { String[] version = Javascript.stringSplit(Platform.getVersion(), ".")...
public class class_name { public void info(Object m) { if (m instanceof Throwable) { logger.info("", (Throwable) m); } else { logger.info(String.valueOf(m)); } } }
public class class_name { public void info(Object m) { if (m instanceof Throwable) { logger.info("", (Throwable) m); // depends on control dependency: [if], data = [none] } else { logger.info(String.valueOf(m)); // depends on control dependency: [if], data = [none] } } }
public class class_name { private String selectDataCenterForPlacements(String... placements) { // Get the set of data centers that have local access to all the placements. Then pick one deterministically // (pick the one that sorts first alphabetically) and designate that one as the one to perform mai...
public class class_name { private String selectDataCenterForPlacements(String... placements) { // Get the set of data centers that have local access to all the placements. Then pick one deterministically // (pick the one that sorts first alphabetically) and designate that one as the one to perform mai...
public class class_name { public void doIt() { Collections.shuffle(this.nodes); final List<DoubleProperty> opacities = new ArrayList<>(); // DoubleProperty dp; int idx = 0; final int nodesCount = this.nodes.size(); final int groupCount = nodesCount / 2; ...
public class class_name { public void doIt() { Collections.shuffle(this.nodes); final List<DoubleProperty> opacities = new ArrayList<>(); // DoubleProperty dp; int idx = 0; final int nodesCount = this.nodes.size(); final int groupCount = nodesCount / 2; ...
public class class_name { public TemplateEntry compileTemplate( final File templateFile ) { TemplateEntry templateEntry = null; try { // Parse the template's content and find the (optional) output String templateFileContent = Utils.readFileContent( templateFile ); Matcher m = Pattern.compile( "\\{\\{!\\s...
public class class_name { public TemplateEntry compileTemplate( final File templateFile ) { TemplateEntry templateEntry = null; try { // Parse the template's content and find the (optional) output String templateFileContent = Utils.readFileContent( templateFile ); Matcher m = Pattern.compile( "\\{\\{!\\s...
public class class_name { @Override public boolean addAll(Collection<? extends Integer> c) { Iterator<? extends Integer> iter=c.iterator(); boolean didOne=false; while(iter.hasNext()) { add(iter.next().intValue()); didOne=true; } return didOne; } }
public class class_name { @Override public boolean addAll(Collection<? extends Integer> c) { Iterator<? extends Integer> iter=c.iterator(); boolean didOne=false; while(iter.hasNext()) { add(iter.next().intValue()); // depends on control dependency: [while], data = [none] didOne=true; // depends on control...
public class class_name { public void marshall(DescribeElasticIpsRequest describeElasticIpsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticIpsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(DescribeElasticIpsRequest describeElasticIpsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticIpsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { private CmsListInfoBean buildSitemapTypeInfo(I_CmsResourceType sitemapType) { CmsListInfoBean result = new CmsListInfoBean(); CmsWorkplaceManager wm = OpenCms.getWorkplaceManager(); String typeName = sitemapType.getTypeName(); Locale wpLocale = wm.getWorkplace...
public class class_name { private CmsListInfoBean buildSitemapTypeInfo(I_CmsResourceType sitemapType) { CmsListInfoBean result = new CmsListInfoBean(); CmsWorkplaceManager wm = OpenCms.getWorkplaceManager(); String typeName = sitemapType.getTypeName(); Locale wpLocale = wm.getWorkplace...
public class class_name { @DefaultVisibilityForTesting static MetricsComponent loadMetricsComponent(@Nullable ClassLoader classLoader) { try { // Call Class.forName with literal string name of the class to help shading tools. return Provider.createInstance( Class.forName( "io....
public class class_name { @DefaultVisibilityForTesting static MetricsComponent loadMetricsComponent(@Nullable ClassLoader classLoader) { try { // Call Class.forName with literal string name of the class to help shading tools. return Provider.createInstance( Class.forName( "io....
public class class_name { public Observable<ServiceResponse<EnqueueTrainingResponse>> trainVersionWithServiceResponseAsync(UUID appId, String versionId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); ...
public class class_name { public Observable<ServiceResponse<EnqueueTrainingResponse>> trainVersionWithServiceResponseAsync(UUID appId, String versionId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); ...
public class class_name { public void text(int row, int col, String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!element.get().tableCell(row, col).get().text().equals(expectedText) && System.cu...
public class class_name { public void text(int row, int col, String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); // depends on control dependency: [try], data = [none] while (!element.get().tableCell(r...
public class class_name { @Override public SparseUndirectedGraph copy(Set<Integer> vertices) { // special case for If the called is requesting a copy of the entire // graph, which is more easily handled with the copy constructor if (vertices.size() == order() && vertices.equals(vertices())) ...
public class class_name { @Override public SparseUndirectedGraph copy(Set<Integer> vertices) { // special case for If the called is requesting a copy of the entire // graph, which is more easily handled with the copy constructor if (vertices.size() == order() && vertices.equals(vertices())) ...
public class class_name { public static <K, V> ImmutableSet<V> getAllAsSet(final Multimap<K, V> multimap, final Iterable<K> keys) { final ImmutableSet.Builder<V> ret = ImmutableSet.builder(); for (final K key : keys) { ret.addAll(multimap.get(key)); } return ret.build(); } }
public class class_name { public static <K, V> ImmutableSet<V> getAllAsSet(final Multimap<K, V> multimap, final Iterable<K> keys) { final ImmutableSet.Builder<V> ret = ImmutableSet.builder(); for (final K key : keys) { ret.addAll(multimap.get(key)); // depends on control dependency: [for], data = [...
public class class_name { private static XmlElement generateCommColumnsSelective(List<IntrospectedColumn> columns, String prefix, boolean bracket, int type) { XmlElement trimEle = generateTrim(bracket); for (IntrospectedColumn introspectedColumn : columns) { generateSelectiveToTrimEleTo(tri...
public class class_name { private static XmlElement generateCommColumnsSelective(List<IntrospectedColumn> columns, String prefix, boolean bracket, int type) { XmlElement trimEle = generateTrim(bracket); for (IntrospectedColumn introspectedColumn : columns) { generateSelectiveToTrimEleTo(tri...
public class class_name { public void marshall(PutAttributesRequest putAttributesRequest, ProtocolMarshaller protocolMarshaller) { if (putAttributesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(PutAttributesRequest putAttributesRequest, ProtocolMarshaller protocolMarshaller) { if (putAttributesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public boolean login(String userName, String password, String projectName, String siteRoot, String resourceName) { if (getCms().getRequestContext().getCurrentUser().isGuestUser()) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(userName) || CmsStringUtil.isEmptyOrWhitespaceOn...
public class class_name { public boolean login(String userName, String password, String projectName, String siteRoot, String resourceName) { if (getCms().getRequestContext().getCurrentUser().isGuestUser()) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(userName) || CmsStringUtil.isEmptyOrWhitespaceOn...
public class class_name { public static String getArtworkUrl(SoundCloudTrack track, String size) { String defaultUrl = track.getArtworkUrl(); if (defaultUrl == null) { return null; } switch (size) { case MINI: case TINY: case SMALL: ...
public class class_name { public static String getArtworkUrl(SoundCloudTrack track, String size) { String defaultUrl = track.getArtworkUrl(); if (defaultUrl == null) { return null; // depends on control dependency: [if], data = [none] } switch (size) { case MINI:...
public class class_name { @CheckReturnValue @NonNull @SchedulerSupport(SchedulerSupport.NONE) public static <T> Maybe<T> wrap(MaybeSource<T> source) { if (source instanceof Maybe) { return RxJavaPlugins.onAssembly((Maybe<T>)source); } ObjectHelper.requireNonNull(source, ...
public class class_name { @CheckReturnValue @NonNull @SchedulerSupport(SchedulerSupport.NONE) public static <T> Maybe<T> wrap(MaybeSource<T> source) { if (source instanceof Maybe) { return RxJavaPlugins.onAssembly((Maybe<T>)source); // depends on control dependency: [if], data = [none] ...
public class class_name { public MomentInterval at(ZonalOffset offset) { Boundary<Moment> b1; Boundary<Moment> b2; if (this.getStart().isInfinite()) { b1 = Boundary.infinitePast(); } else { Moment m1 = this.getStart().getTemporal().at(offset); b1 = ...
public class class_name { public MomentInterval at(ZonalOffset offset) { Boundary<Moment> b1; Boundary<Moment> b2; if (this.getStart().isInfinite()) { b1 = Boundary.infinitePast(); // depends on control dependency: [if], data = [none] } else { Moment m1 = this....
public class class_name { @Override public void registerAdapterDataObserver(RecyclerView.AdapterDataObserver observer) { super.registerAdapterDataObserver(observer); if (mAdapter != null) { mAdapter.registerAdapterDataObserver(observer); } } }
public class class_name { @Override public void registerAdapterDataObserver(RecyclerView.AdapterDataObserver observer) { super.registerAdapterDataObserver(observer); if (mAdapter != null) { mAdapter.registerAdapterDataObserver(observer); // depends on control dependency: [if], data = [n...
public class class_name { public String key(String keyName, boolean allowNull) { try { if (m_resourceBundle != null) { return m_resourceBundle.getString(keyName); } } catch (MissingResourceException e) { // not found, return warning if (a...
public class class_name { public String key(String keyName, boolean allowNull) { try { if (m_resourceBundle != null) { return m_resourceBundle.getString(keyName); // depends on control dependency: [if], data = [none] } } catch (MissingResourceException e) { ...
public class class_name { public static int indexOf( Functor<Integer, Integer> symbols, String text, int begin, int end, char target, Functor<Integer, Integer> extra ) { ArrayDeque<Integer> deque = new ArrayDeque<>(); while (begin < end) { int c = text.charAt(begin); if ...
public class class_name { public static int indexOf( Functor<Integer, Integer> symbols, String text, int begin, int end, char target, Functor<Integer, Integer> extra ) { ArrayDeque<Integer> deque = new ArrayDeque<>(); while (begin < end) { int c = text.charAt(begin); if ...
public class class_name { public String generate(final int[] nodeSizes, final int bad) { buf.setLength(0); for (int i = 0; i < nodes.size() && i < nodeSizes.length; i++) { buf.append(nodes.get(i).getCharacters(nodeSizes[i], bad)); } String value = buf.toString(); buf.setLength(0); return value; ...
public class class_name { public String generate(final int[] nodeSizes, final int bad) { buf.setLength(0); for (int i = 0; i < nodes.size() && i < nodeSizes.length; i++) { buf.append(nodes.get(i).getCharacters(nodeSizes[i], bad)); // depends on control dependency: [for], data = [i] } String value = buf...
public class class_name { public List<TaskAction> getCustomActions() throws ServiceException, DataAccessException { CodeTimer timer = new CodeTimer("getCustomActions()", true); List<TaskAction> dynamicTaskActions = new ArrayList<TaskAction>(); try { ActivityInstance activityIn...
public class class_name { public List<TaskAction> getCustomActions() throws ServiceException, DataAccessException { CodeTimer timer = new CodeTimer("getCustomActions()", true); List<TaskAction> dynamicTaskActions = new ArrayList<TaskAction>(); try { ActivityInstance activityIn...
public class class_name { public void translateClassArrays () { ImportSet arrayTypes = new ImportSet(); Iterator<String> i = _imports.iterator(); while (i.hasNext()) { String name = i.next(); int bracket = name.lastIndexOf('['); if (bracket != -1 && ...
public class class_name { public void translateClassArrays () { ImportSet arrayTypes = new ImportSet(); Iterator<String> i = _imports.iterator(); while (i.hasNext()) { String name = i.next(); int bracket = name.lastIndexOf('['); if (bracket != -1 && ...
public class class_name { @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { //Measure our width in whatever mode specified final int measuredWidth = MeasureSpec.getSize(widthMeasureSpec); //Determine our height float height; final int heightS...
public class class_name { @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { //Measure our width in whatever mode specified final int measuredWidth = MeasureSpec.getSize(widthMeasureSpec); //Determine our height float height; final int heightS...
public class class_name { protected final Set<AggregatedGroupMapping> collectAllGroupsFromParams( Set<K> keys, AggregatedGroupMapping[] aggregatedGroupMappings) { final Builder<AggregatedGroupMapping> groupsBuilder = ImmutableSet.<AggregatedGroupMapping>builder(); // Add all...
public class class_name { protected final Set<AggregatedGroupMapping> collectAllGroupsFromParams( Set<K> keys, AggregatedGroupMapping[] aggregatedGroupMappings) { final Builder<AggregatedGroupMapping> groupsBuilder = ImmutableSet.<AggregatedGroupMapping>builder(); // Add all...