Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 521 - 530 of 1,598 for yield (0.02 seconds)

  1. docs_src/body_fields/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 563 bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/QueryHelper.java

        /**
         * Creates a sort builder for the specified field and order.
         * This method handles special cases for score fields and regular field sorting.
         *
         * @param field the field name to sort by
         * @param order the sort order (ASC or DESC)
         * @return a configured sort builder
         */
        protected SortBuilder<?> createFieldSortBuilder(final String field, final SortOrder order) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/crawlinginfo/EditForm.java

        /**
         * The unique identifier of the crawling information entry being edited.
         * This is a required field for identifying which crawling info to update.
         */
        @Required
        @Size(max = 1000)
        public String id;
    
        /**
         * The session identifier of the crawling session.
         * This is a required field that identifies the specific crawling session.
         * Maximum length is 20 characters.
         */
        @Required
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. tests/test_request_params/test_body/test_optional_list.py

    from typing import Annotated
    
    import pytest
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-list-str", operation_id="optional_list_str")
    async def read_optional_list_str(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. cmd/postpolicyform.go

    					Valid: true,
    				}
    			default:
    				// Condition should be valid.
    				return parsedPolicy, fmt.Errorf("Unknown type %s of conditional field value %s found in POST policy form",
    					reflect.TypeOf(condt).String(), condt)
    			}
    		default:
    			return parsedPolicy, fmt.Errorf("Unknown field %s of type %s found in POST policy form",
    				condt, reflect.TypeOf(condt).String())
    		}
    	}
    	return parsedPolicy, nil
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 23 15:10:12 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final CoordinatorHelper helper = new CoordinatorHelper();
            try {
                final Field field = CoordinatorHelper.class.getDeclaredField("instanceId");
                field.setAccessible(true);
                field.set(helper, testInstanceId);
            } catch (final Exception e) {
                throw new RuntimeException(e);
            }
            return helper;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

            AtomicInteger count = new AtomicInteger(0);
            queryFieldConfig.highlightedFields(stream -> {
                stream.forEach(field -> {
                    count.incrementAndGet();
                    assertTrue(field.equals("field1") || field.equals("field2") || field.equals("field3"));
                });
            });
    
            assertEquals(3, count.get());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            clearStaticFields();
        }
    
        private void clearStaticFields() throws Exception {
            Field runningField = Crawler.class.getDeclaredField("running");
            runningField.setAccessible(true);
            ((AtomicBoolean) runningField.get(null)).set(false);
    
            Field errorsField = Crawler.class.getDeclaredField("errors");
            errorsField.setAccessible(true);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 30.8K bytes
    - Click Count (0)
  9. schema/field_test.go

    		"active":     f,
    	}
    
    	for k, v := range newValues {
    		if err := userSchema.FieldsByDBName[k].Set(context.Background(), reflectValue, v); err != nil {
    			t.Errorf("no error should happen when assign value to field %v, but got %v", k, err)
    		}
    	}
    	newValues["updated_at"] = time.Time{}
    	newValues["active"] = false
    	checkField(t, userSchema, reflectValue, newValues)
    
    	// test valuer and other type
    	age := myint(10)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

            final Map<TypeVariable<?>, Type> map = ParameterizedClassDescFactory.getTypeVariables(Hoge.class);
            final Field field = Hoge.class.getField("foo");
            final ParameterizedClassDesc desc = ParameterizedClassDescFactory.createParameterizedClassDesc(field, map);
            assertThat(desc.getRawClass(), is(sameClass(Map.class)));
    
            final ParameterizedClassDesc[] args = desc.getArguments();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 4.4K bytes
    - Click Count (0)
Back to Top