Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 279 for Lambda1 (0.12 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/BuildInitPlugin.java

     * limitations under the License.
     */
    
    package org.gradle.buildinit.plugins;
    
    import org.gradle.api.Plugin;
    import org.gradle.api.Project;
    import org.gradle.api.internal.lambdas.SerializableLambdas;
    import org.gradle.api.internal.project.ProjectInternal;
    import org.gradle.api.plugins.jvm.internal.JvmPluginServices;
    import org.gradle.api.provider.Provider;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:43:34 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/tests/make_test_graphs.py

    
    def tfcond(_):
      p = array_ops.placeholder(dtypes.bool, name='p_hold')
      x = array_ops.placeholder(dtypes.int32, name='x_hold')
      y = array_ops.placeholder(dtypes.int32, name='y_hold')
      z = cond.cond(p, lambda: x, lambda: y)
      array_ops.identity(z, name='result')
    
    
    def tfgather(_):
      params = array_ops.placeholder(dtypes.float32, name='params')
      indices = array_ops.placeholder(dtypes.int32, name='indices')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/DefaultExecutionStateChangeDetector.java

            // After validation, the current implementations and previous implementations can't be unknown.
            // Moreover, they need to come from an actual Class, not a lambda, since there isn't a way for a unit of work implementation to be a lambda.
            ClassImplementationSnapshot currentImplementation = Cast.uncheckedNonnullCast(thisExecution.getImplementation());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/PredecessorsFunction.java

     * someGraphAlgorithm(startNode, MyNode::getParents);
     * }</pre>
     *
     * <p>If you have some other mechanism for returning the predecessors of a node, or one that doesn't
     * return a {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
     * transformation:
     *
     * <pre>{@code
     * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.mother(), node.father()));
     * }</pre>
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleIntegrationTest.groovy

            '''
        }
    
        def configuredTaskRunsCorrectly() {
            run 'test'
            outputContains 'The parameter is `42`'
            true
        }
    
        def 'isolated beforeProject action given as Kotlin lambda can capture managed value'() {
            given:
            withSettingsPluginInBuildLogic()
    
            createDir('build-logic') {
                file('settings.gradle.kts') << ''
                file('build.gradle.kts') << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 16:52:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. tests/test_datetime_custom_encoder.py

    @needs_pydanticv1
    def test_pydanticv1():
        class ModelWithDatetimeField(BaseModel):
            dt_field: datetime
    
            class Config:
                json_encoders = {
                    datetime: lambda dt: dt.replace(
                        microsecond=0, tzinfo=timezone.utc
                    ).isoformat()
                }
    
        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/DefaultExecOutput.java

    import org.gradle.api.provider.Provider;
    import org.gradle.process.ExecOutput;
    import org.gradle.process.ExecResult;
    
    import java.nio.charset.Charset;
    
    import static org.gradle.api.internal.lambdas.SerializableLambdas.transformer;
    
    public class DefaultExecOutput implements ExecOutput {
        private final Provider<ExecOutputData> dataProvider;
    
        public DefaultExecOutput(Provider<ExecOutputData> dataProvider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ScriptSourceAwareImplementationResolver.java

            // We want to track the implementation of the Closure, since the class name and classloader of the proxy will not change.
            // Java and Kotlin Lambdas are coerced to SAM types at compile time, so no unpacking is necessary there.
            if (Proxy.isProxyClass(bean.getClass())) {
                InvocationHandler invocationHandler = Proxy.getInvocationHandler(bean);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 16 20:27:03 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/integTest/groovy/org/gradle/integtests/fixtures/executer/IgnoreKotlinCompilerWarningIntegrationTest.groovy

    \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:267)
    \tat org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
    \tat java.base/java.util.Optional.map(Optional.java:258)
    \tat org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

                    LAMBDA_EXPRESSION -> list.add(lambda(tree, it))
                    ERROR_ELEMENT -> list.add(tree.parsingError(node, it, "Unparsable value argument: \"${node.asText}\""))
                    else -> tree.parsingError(it, "Parsing failure, unexpected token type in value arguments: $tokenType")
                }
            }
            return list
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top