Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 338 for getNotes (0.18 sec)

  1. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

      public void testSomeOtherKnownValues() {
        assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8));
        assertCrc(0xE3069283, "123456789".getBytes(UTF_8));
        assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8));
        assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8));
      }
    
      public void testAgainstSimplerImplementation() {
        Random r = new Random(1234567);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 23 18:30:33 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/tutorial/externalDependency/groovy/build.gradle

        }
    }
    // end::declare-classpath[]
    
    tasks.register('encode') {
        doLast {
            def byte[] encodedString = new Base64().encode('hello world\n'.getBytes())
            println new String(encodedString)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 474 bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestBuildCache.groovy

        }
    
        interface TestCacheEntry {
            String getKey()
            String getMd5Hash()
            String getText()
            void setText(String text)
            byte[] getBytes()
            void setBytes(byte[] bytes)
            void copyBytesTo(TestFile file)
        }
    
        private class TestFileCacheEntry implements TestCacheEntry {
    
            String key
            TestFile file
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParserTest.groovy

        }
    
        def "uses charset specified in content type"() {
            def html = """
            <a href="\u00c1\u00d2">directory1</a>
            """
            def encodedHtml = html.getBytes('ISO-8859-1')
            assert !Arrays.equals(encodedHtml, html.getBytes("utf-8"))
    
            expect:
            def uris = parser.parse(baseUrl, new ByteArrayInputStream(encodedHtml), 'text/html;charset=ISO-8859-1')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenJarCreator.groovy

    import java.util.zip.ZipOutputStream
    
    class MavenJarCreator {
        int minimumSizeKB = 0
        int maximumSizeKB = 0
        Random random = new Random(1L)
        byte[] charsToUse = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes()
    
        void createJar(MavenModule mavenModule, File artifactFile) {
            try {
                artifactFile.withOutputStream { stream ->
                    ZipOutputStream out = new ZipOutputStream(stream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 05 09:51:22 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/build/PlannedNodeGraphTest.groovy

            dependsOn(transform1, [task4])
    
            when:
            collector.collectNodes([task1, task2, task3, task4, transform1])
            def graph = collector.getGraph()
            def nodes = graph.getNodes(PlannedNodeGraph.DetailLevel.LEVEL1_TASKS) as List<TestPlannedNode>
            then:
            nodes.size() == 4
            nodes*.nodeIdentity*.nodeType =~ [NodeType.TASK]
            verifyAll {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 21 13:11:56 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyJavaInterOpIntegrationTest.groovy

                        return outFile;
                    }
    
                    @TaskAction
                    public void run() throws IOException {
                        Files.write(outFile.get().getAsFile().toPath(), "content".getBytes());
                    }
                }
            """
        }
    
        @Override
        void taskWithNestedBeanDefinition() {
            pluginDir.file("src/main/java/ProducerTask.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/InstallTest.groovy

                    zos.write("evil".getBytes('utf-8'))
                    zos.closeEntry()
                }
            }
        }
    
        static byte[] getEvilTarData() {
            def outputStream = new ByteArrayOutputStream()
                new TarOutputStream(outputStream).withCloseable {  zos ->
                    def bytes = "evil".getBytes('utf-8')
                    def entry = new TarEntry('../../tmp/evil.sh')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

        public FsctlPipeWaitRequest ( String name ) {
            this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);
            this.timeoutSpecified = false;
            this.timeout = 0;
        }
    
    
        /**
         * @param name
         * @param timeout
         * 
         */
        public FsctlPipeWaitRequest ( String name, long timeout ) {
            this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);
            this.timeoutSpecified = true;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/TestRetryPluginSmokeTest.groovy

            try {
                Path marker = Paths.get("marker.file");
                if (!Files.exists(marker)) {
                    Files.write(marker, "mark".getBytes());
                    throw new RuntimeException("fail me!");
                }
                Files.write(marker, "again".getBytes());
            } catch (java.io.IOException e) {
                throw new java.io.UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top