Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for parseName (0.24 sec)

  1. src/crypto/x509/verify.go

    // given name, of type nameType. The argument parsedName contains the parsed
    // form of name, suitable for passing to the match function. The total number
    // of comparisons is tracked in the given count and should not exceed the given
    // limit.
    func (c *Certificate) checkNameConstraints(count *int,
    	maxConstraintComparisons int,
    	nameType string,
    	name string,
    	parsedName any,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_util.cc

      // TODO(sanjoy): Cache DeviceNameUtils::ParsedName inside device_info_cache.
      const auto is_multiple_devices =
          [&](const jit::DeviceId& d0, std::optional<jit::DeviceId>* d1) -> bool {
        const absl::string_view name0 = device_info_cache.GetNameFor(d0);
        const absl::string_view name1 = device_info_cache.GetNameFor(d1->value());
    
        DeviceNameUtils::ParsedName parsed0, parsed1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. .github/workflows/tests.yml

            key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
    
        - name: Tests
          run: GITHUB_ACTION=true GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True" ./tests/tests_all.sh
    
      mariadb:
        strategy:
          matrix:
            dbversion: [ 'mariadb:latest' ]
            go: ['1.22', '1.21', '1.20']
            platform: [ ubuntu-latest ]
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:24:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

            public IntervalRule(final String from, final String to, final String days, final long delay) {
                final int[] fints = parseTime(from);
                fromHours = fints[0];
                fromMinutes = fints[1];
                final int[] tints = parseTime(to);
                toHours = tints[0];
                toMinutes = tints[1];
                final String[] values = days.split(",");
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::ArrayAttr array_attr,
                                         mlir::TF::RuntimeDevices* devices) {
      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. tests/tests_test.go

    var DB *gorm.DB
    var (
    	mysqlDSN     = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    	postgresDSN  = "user=gorm password=gorm dbname=gorm host=localhost port=9920 sslmode=disable TimeZone=Asia/Shanghai"
    	sqlserverDSN = "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"
    	tidbDSN      = "root:@tcp(localhost:9940)/test?charset=utf8&parseTime=True&loc=Local"
    )
    
    func init() {
    	var err error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/language/tags.go

    	t, err := c.Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // MustParseBase is like ParseBase, but panics if the given base cannot be parsed.
    // It simplifies safe initialization of Base values.
    func MustParseBase(s string) Base {
    	b, err := ParseBase(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    // MustParseScript is like ParseScript, but panics if the given script cannot be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/net/mail/message_test.go

    		} else if !date.Equal(test.exp) {
    			t.Errorf("Header(Date: %s).Date() = %+v, want %+v", test.dateStr, date, test.exp)
    		}
    
    		date, err = ParseDate(test.dateStr)
    		if err != nil {
    			t.Errorf("ParseDate(%s): %v", test.dateStr, err)
    		} else if !date.Equal(test.exp) {
    			t.Errorf("ParseDate(%s) = %+v, want %+v", test.dateStr, date, test.exp)
    		}
    	}
    }
    
    func TestDateParsingCFWS(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. src/net/http/header.go

    	}
    	return h2
    }
    
    var timeFormats = []string{
    	TimeFormat,
    	time.RFC850,
    	time.ANSIC,
    }
    
    // ParseTime parses a time header (such as the Date: header),
    // trying each of the three formats allowed by HTTP/1.1:
    // [TimeFormat], [time.RFC850], and [time.ANSIC].
    func ParseTime(text string) (t time.Time, err error) {
    	for _, layout := range timeFormats {
    		t, err = time.Parse(layout, text)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.cc

      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
      tensorflow::DeviceNameUtils::ParsedName parsed_name;
      if (!tensorflow::DeviceNameUtils::ParseFullName(device.str(), &parsed_name)) {
        return std::nullopt;
      }
      if (!parsed_name.has_type) {
        return std::nullopt;
      }
      return parsed_name.type;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top