Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 88 for SELF (0.12 sec)

  1. manifests/addons/dashboards/lib/variables.libsonnet

      namespace:
        var.query.new('namespace')
        + var.query.withDatasourceFromVariable(self.datasource)
        + var.query.queryTypes.withLabelValues(
          'namespace',
          'process_cpu_seconds_total{cluster=~"$%s"}' % self.cluster.name,
        )
        + var.query.withRefresh('time'),
    
      job:
        var.query.new('job')
        + var.query.withDatasourceFromVariable(self.datasource)
        + var.query.queryTypes.withLabelValues(
          'job',
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. samples/bookinfo/src/productpage/tests/unit/test_productpage.py

    import unittest
    
    import requests_mock
    
    import productpage
    
    
    class ApplianceTest(unittest.TestCase):
    
        def setUp(self):
            self.app = productpage.app.test_client()
    
        @requests_mock.Mocker()
        def test_header_propagation_reviews(self, m):
            """ Check that tracing headers are forwarded correctly """
            product_id = 0
            # Register expected headers with the mock. If the headers
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. fastapi/security/open_id_connect_url.py

                    """
                ),
            ] = True,
        ):
            self.model = OpenIdConnectModel(
                openIdConnectUrl=openIdConnectUrl, description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
            authorization = request.headers.get("Authorization")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. fastapi/security/api_key.py

                    """
                ),
            ] = True,
        ):
            self.model: APIKey = APIKey(
                **{"in": APIKeyIn.query},  # type: ignore[arg-type]
                name=name,
                description=description,
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tests/test_jsonable_encoder.py

    
    class Person:
        def __init__(self, name: str):
            self.name = name
    
    
    class Pet:
        def __init__(self, owner: Person, name: str):
            self.owner = owner
            self.name = name
    
    
    @dataclass
    class Item:
        name: str
        count: int
    
    
    class DictablePerson(Person):
        def __iter__(self):
            return ((k, v) for k, v in self.__dict__.items())
    
    
    class DictablePet(Pet):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/integration_test/tensorflow_to_stablehlo_test.py

      def test_saved_model_to_stablehlo(self):
        with tempfile.TemporaryDirectory() as tempdir:
          path = build_savedmodel(tempdir)
          module_bytecode = tensorflow_to_stablehlo.savedmodel_to_stablehlo(
              input_path=path, input_arg_shapes_str='4'
          )
          with ir.Context() as ctx:
            stablehlo.register_dialect(ctx)
            module = ir.Module.parse(module_bytecode)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. fastapi/datastructures.py

        if the overridden default value was truthy.
        """
    
        def __init__(self, value: Any):
            self.value = value
    
        def __bool__(self) -> bool:
            return bool(self.value)
    
        def __eq__(self, o: object) -> bool:
            return isinstance(o, DefaultPlaceholder) and o.value == self.value
    
    
    DefaultType = TypeVar("DefaultType")
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (1)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtKeywordsFilter.kt

            val self = this
            return KaRendererKeywordFilter filter@{ modifier, kaAnnotated ->
                val analysisSession = this@filter
                self.filter(analysisSession, modifier, kaAnnotated) && other.filter(analysisSession, modifier, kaAnnotated)
            }
        }
    
        public infix fun or(other: KaRendererKeywordFilter): KaRendererKeywordFilter {
            val self = this
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py

        statistics.min_max_statistics.global_max = 5.0
    
        min_value, max_value = calibration_algorithm.get_min_max_value(
            statistics, calib_opts
        )
        self.assertAllEqual((min_value, max_value), (1.0, 5.0))
    
      def test_average_min_max(self):
        calib_opts = stablehlo_quant_config_pb2.CalibrationOptions(
            calibration_method=_CalibrationMethod.CALIBRATION_METHOD_AVERAGE_MIN_MAX
        )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtRendererOtherModifiersProvider.kt

        public infix fun and(other: KaRendererOtherModifiersProvider): KaRendererOtherModifiersProvider {
            val self = this
            return object : KaRendererOtherModifiersProvider {
                override fun getOtherModifiers(analysisSession: KaSession, symbol: KaDeclarationSymbol): List<KtModifierKeywordToken> {
                    return self.getOtherModifiers(analysisSession, symbol) + other.getOtherModifiers(analysisSession, symbol)
                }
            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top