Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 390 for point (0.16 sec)

  1. tests/scanner_valuer_test.go

    }
    
    type NullString struct {
    	sql.NullString
    }
    
    type Point struct {
    	X, Y int
    }
    
    func (point Point) GormDataType() string {
    	return "geo"
    }
    
    func (point Point) GormValue(ctx context.Context, db *gorm.DB) clause.Expr {
    	return clause.Expr{
    		SQL:  "ST_PointFromText(?)",
    		Vars: []interface{}{fmt.Sprintf("POINT(%d %d)", point.X, point.Y)},
    	}
    }
    
    func TestGORMValuer(t *testing.T) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/UnicodeEscaper.java

      protected UnicodeEscaper() {}
    
      /**
       * Returns the escaped form of the given Unicode code point, or {@code null} if this code point
       * does not need to be escaped. When called as part of an escaping operation, the given code point
       * is guaranteed to be in the range {@code 0 <= cp <= Character#MAX_CODE_POINT}.
       *
       * <p>If an empty array is returned, this effectively strips the input character from the
       * resulting text.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 13.2K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `point with only x set`() {
        val bytes = "3003800109".decodeHex()
        val point = Point(9L, null)
        assertThat(Point.ADAPTER.fromDer(bytes)).isEqualTo(point)
        assertThat(Point.ADAPTER.toDer(point)).isEqualTo(bytes)
      }
    
      @Test fun `point with only y set`() {
        val bytes = "3003810109".decodeHex()
        val point = Point(null, 9L)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_test.cc

      EXPECT_EQ("test/gauge", metrics->point_set_map.at("test/gauge")->metric_name);
      EXPECT_EQ(1,
                metrics->point_set_map.at("test/gauge")->points.at(0)->int64_value);
    
      TFE_MonitoringIntGaugeCellSet(cell, 5);
      metrics = collection_registry->CollectMetrics(options);
      EXPECT_EQ(5,
                metrics->point_set_map.at("test/gauge")->points.at(0)->int64_value);
      TFE_MonitoringDeleteIntGauge0(gauge);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/escape/Escapers.java

          @Override
          @CheckForNull
          protected char[] escape(int cp) {
            // If a code point maps to a single character, just escape that.
            if (cp < Character.MIN_SUPPLEMENTARY_CODE_POINT) {
              return escaper.escape((char) cp);
            }
            // Convert the code point to a surrogate pair and escape them both.
            // Note: This code path is horribly slow and typically allocates 4 new
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  6. src/builtin/builtin.go

    // a nil argument. See [panic] for details.
    func recover() any
    
    // The print built-in function formats its arguments in an
    // implementation-specific way and writes the result to standard error.
    // Print is useful for bootstrapping and debugging; it is not guaranteed
    // to stay in the language.
    func print(args ...Type)
    
    // The println built-in function formats its arguments in an
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            // single project build entry point
            ProjectBuildingResult result = getContainer()
                    .lookup(org.apache.maven.project.ProjectBuilder.class)
                    .build(pomFile, configuration);
            assertEquals(1, result.getProject().getArtifacts().size());
            // multi projects build entry point
            List<ProjectBuildingResult> results = getContainer()
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Nov 28 17:17:10 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  8. tests/transaction_test.go

    	tx := DB.Begin()
    
    	user := *GetUser("transaction-save-point", Config{})
    	tx.Create(&user)
    
    	if err := tx.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.SavePoint("save_point1").Error; err != nil {
    		t.Fatalf("Failed to save point, got error %v", err)
    	}
    
    	user1 := *GetUser("transaction-save-point-1", Config{})
    	tx.Create(&user1)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        ) {
        }
      }
    
      companion object {
        /** Arbitrary code point that's 2 bytes in UTF-8 and valid in IdnaMappingTable.txt. */
        private const val UNICODE_2 = 0x1a5
    
        /** Arbitrary code point that's 3 bytes in UTF-8 and valid in IdnaMappingTable.txt. */
        private const val UNICODE_3 = 0x2202
    
        /** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/Utf8Test.java

        utf8Lengths.put(0x7f, 1);
        utf8Lengths.put(0x80, 2);
        utf8Lengths.put(0x7ff, 2);
        utf8Lengths.put(0x800, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT - 1, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4);
        utf8Lengths.put(MAX_CODE_POINT, 4);
    
        Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[] {});
        StringBuilder sb = new StringBuilder();
        Random rnd = new Random();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top