Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,840 for Primer (0.19 sec)

  1. test/chan/sieve2.go

    	go func() {
    		// In order to generate the nth prime we only need multiples of
    		// primessqrt(nth prime).  Thus, the merging goroutine will
    		// receive from 'primes' much slower than this goroutine
    		// will send to it, making the buffer accumulate and block this
    		// goroutine from sending, causing a deadlock.  The solution is to
    		// use a proxy goroutine to do automatic buffering.
    		primes := sendproxy(primes)
    
    		candidates := odds()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 3.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ExecutionResultJavaExecTaskIntegrationTest.groovy

                    classpath = project.layout.files(compileJava)
                    mainClass = "driver.Driver"
                    args "1"
                }
            """
        }
    
        @Override
        protected void writeSucceedingExec() {
            mainJavaFile = file('src/main/java/Driver.java')
            file("src/main/java/Driver.java").text = mainClass("""
                try {
                    FileWriter out = new FileWriter("out.txt");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 08 06:12:29 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/CopyUtilTest.java

            final int result = copy(url, "UTF-8", writer);
            assertThat(result, is(urlString.length()));
            assertThat(writer.toString(), is(urlString));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToWriter() throws Exception {
            final int result = copy(inputFile, "UTF-8", writer);
            assertThat(result, is(urlString.length()));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/ProjectAccessorsSourceGenerator.java

    import java.io.IOException;
    import java.io.UncheckedIOException;
    import java.io.Writer;
    
    public class ProjectAccessorsSourceGenerator extends AbstractProjectAccessorsSourceGenerator {
    
        public ProjectAccessorsSourceGenerator(Writer writer) {
            super(writer);
        }
    
        public static String generateSource(Writer writer,
                                            ProjectDescriptor current,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/RootProjectAccessorSourceGenerator.java

    import java.io.UncheckedIOException;
    import java.io.Writer;
    
    public class RootProjectAccessorSourceGenerator extends AbstractProjectAccessorsSourceGenerator {
    
        public static final String ROOT_PROJECT_ACCESSOR_CLASSNAME = "RootProjectAccessor";
    
        public RootProjectAccessorSourceGenerator(Writer writer) {
            super(writer);
        }
    
        public static void generateSource(Writer writer,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/InMemoryTestResultsProvider.java

        @Override
        public void writeAllOutput(final long classId, final TestOutputEvent.Destination destination, final Writer writer) {
            withReader(new Action<TestOutputStore.Reader>() {
                @Override
                public void execute(TestOutputStore.Reader reader) {
                    reader.writeAllOutput(classId, destination, writer);
                }
            });
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ExecutionResultExecTaskDeprecationIntegrationTest.groovy

                    args '-cp', project.layout.files(compileJava).asPath, 'driver.Driver', "1"
                }
            """
        }
    
        @Override
        protected void writeSucceedingExec() {
            mainJavaFile = file('src/main/java/Driver.java')
            file("src/main/java/Driver.java").text = mainClass("""
                try {
                    FileWriter out = new FileWriter("out.txt");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 19 12:38:37 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/AbstractSourceGenerator.java

        public AbstractSourceGenerator(Writer writer) {
            this.writer = writer;
        }
    
        static String toJavaName(String alias) {
            return nameSplitter()
                .splitToList(alias)
                .stream()
                .map(StringUtils::capitalize)
                .collect(Collectors.joining());
        }
    
        protected static Splitter nameSplitter() {
            return Splitter.on(SEPARATOR_PATTERN);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                                    writer.write(hit.getSourceAsString());
                                    writer.write("\n");
                                } catch (final IOException e) {
                                    throw new IORuntimeException(e);
                                }
                                return true;
                            });
                            writer.flush();
                        }
                    });
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/ServiceRegistryProcessorFixture.groovy

                        JavaFileObject javaFile = filer.createSourceFile("ServiceRegistry", new Element[0]);
                        Writer writer = javaFile.openWriter();
                        try {
                            writer.write("class ServiceRegistry {}");
                        } finally {
                            writer.close();
                        }
                    }
                    if (roundEnv.processingOver()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top