Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 457 for joihin (0.04 sec)

  1. docs_src/python_types/tutorial011_py310.py

    from pydantic import BaseModel
    
    
    class User(BaseModel):
        id: int
        name: str = "John Doe"
        signup_ts: datetime | None = None
        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Sep 02 15:56:35 UTC 2023
    - 461 bytes
    - Viewed (0)
  2. helm/minio/templates/_helper_policy.tpl

      "Statement": [
    {{- range $i, $statement := .statements }}
        {
          "Effect": "{{ $statement.effect | default "Allow" }}",
          "Action": [
    "{{ $statement.actions | join "\",\n\"" }}"
          ]{{ if $statement.resources }},
          "Resource": [
    "{{ $statement.resources | join "\",\n\"" }}"
          ]{{ end }}
    {{- if $statement.conditions }}
    {{- $condition_len := len $statement.conditions }}
    {{- $condition_len := sub $condition_len 1 }}
          ,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 19 14:39:11 UTC 2023
    - 872 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/accesstoken/AdminAccesstokenAction.java

                        form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(permissionHelper::decode)
                                .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n")));
                        form.crudMode = crudMode;
                    }).orElse(() -> {
                        throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id), this::asListHtml);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/labeltype/AdminLabeltypeAction.java

                form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s))
                        .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n")));
            }).orElse(() -> {
                throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id), this::asListHtml);
            });
            saveToken();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial002_an_py39.py

        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
            username=token + "fakedecoded", email="john@example.com", full_name="John Doe"
        )
    
    
    async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
        user = fake_decode_token(token)
        return user
    
    
    @app.get("/users/me")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 786 bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

                        final String permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s))
                                .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining(",")));
                        final String labels = elevateWordToLabelBhv
                                .selectList(cb -> cb.query().setElevateWordId_Equal(entity.getId())).stream().map(e -> labelTypeBhv
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables_test.go

    	}
    	return "ipv4"
    }
    
    func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) {
    	t.Helper()
    	gotBytes := []byte(strings.Join(actual, "\n"))
    	goldenFile := filepath.Join("testdata", name+".golden")
    	if ipv6 {
    		goldenFile = filepath.Join("testdata", name+"_ipv6.golden")
    	}
    	testutil.CompareContent(t, gotBytes, goldenFile)
    }
    
    func constructTestConfig() *Config {
    	return &Config{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

                    fullMessage = join(fullMessage, "Unknown host " + exceptionMessage);
                } else if (!fullMessage.contains(exceptionMessage)) {
                    fullMessage = join(fullMessage, exceptionMessage);
                }
    
                if (!dejaVu.add(t)) {
                    fullMessage = join(fullMessage, "[CIRCULAR REFERENCE]");
                    break;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/util/StringUtil.java

        /**
         * 
         */
        private StringUtil () {}
    
    
        /**
         * Implementation of {@link java.lang.String#join} backported for JDK7.
         * 
         * @param delimiter
         * @param elements
         * @return elements separated by delimiter
         */
        public static String join ( CharSequence delimiter, CharSequence... elements ) {
            StringBuilder sb = new StringBuilder();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_security/test_tutorial006_an.py

    from docs_src.security.tutorial006_an import app
    
    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
        response = client.get("/users/me")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top