text:
package servicecatalogiface

import (
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/request"
	"github.com/aws/aws-sdk-go/service/servicecatalog"
)

// ServiceCatalogAPI provides an interface to enable mocking the
// servicecatalog.ServiceCatalog service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
//    // myFunc uses an SDK service client to make a request to
//    // AWS Service Catalog.
//    func myFunc(svc servicecatalogiface.ServiceCatalogAPI) bool {
//        // Make svc.AcceptPortfolioShare request
//    }
//
//    func main() {
//        sess := session.New()
//        svc := servicecatalog.New(sess)
//
//        myFunc(svc)
//    }
//
// In your _test.go file:
//
//    // Define a mock struct to be used in your unit tests of myFunc.
//    type mockServiceCatalogClient struct {
//        servicecatalogiface.ServiceCatalogAPI
//    }
//    func (m *mockServiceCatalogClient) AcceptPortfolioShare(input *servicecatalog.AcceptPortfolioShareInput) (*servicecatalog.AcceptPortfolioShareOutput, error) {
//        // mock response/functionality
//    }
//
//    func TestMyFunc(t *testing.T) {
//        // Setup Test
//        mockSvc := &mockServiceCatalogClient{}
//
//        myfunc(mockSvc)
//
//        // Verify myFunc's functionality
//    }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ServiceCatalogAPI interface {
	AcceptPortfolioShare(*servicecatalog.AcceptPortfolioShareInput) (*servicecatalog.AcceptPortfolioShareOutput, error)
	AcceptPortfolioShareWithContext(aws.Context, *servicecatalog.AcceptPortfolioShareInput, ...request.Option) (*servicecatalog.AcceptPortfolioShareOutput, error)
	AcceptPortfolioShareRequest(*servicecatalog.AcceptPortfolioShareInput) (*request.Request, *servicecatalog.AcceptPortfolioShareOutput)

	AssociatePrincipalWithPortfolio(*servicecatalog.AssociatePrincipalWithPortfolioInput) (*servicecatalog.AssociatePrincipalWithPortfolioOutput, error)
	AssociatePrincipalWithPortfolioWithContext(aws.Context, *servicecatalog.AssociatePrincipalWithPortfolioInput, ...request.Option) (*servicecatalog.AssociatePrincipalWithPortfolioOutput, error)
	AssociatePrincipalWithPortfolioRequest(*servicecatalog.AssociatePrincipalWithPortfolioInput) (*request.Request, *servicecatalog.AssociatePrincipalWithPortfolioOutput)

	AssociateProductWithPortfolio(*servicecatalog.AssociateProductWithPortfolioInput) (*servicecatalog.AssociateProductWithPortfolioOutput, error)
	AssociateProductWithPortfolioWithContext(aws.Context, *servicecatalog.AssociateProductWithPortfolioInput, ...request.Option) (*servicecatalog.AssociateProductWithPortfolioOutput, error)
	AssociateProductWithPortfolioRequest(*servicecatalog.AssociateProductWithPortfolioInput) (*request.Request, *servicecatalog.AssociateProductWithPortfolioOutput)

	AssociateTagOptionWithResource(*servicecatalog.AssociateTagOptionWithResourceInput) (*servicecatalog.AssociateTagOptionWithResourceOutput, error)
	AssociateTagOptionWithResourceWithContext(aws.Context, *servicecatalog.AssociateTagOptionWithResourceInput, ...request.Option) (*servicecatalog.AssociateTagOptionWithResourceOutput, error)
	AssociateTagOptionWithResourceRequest(*servicecatalog.AssociateTagOptionWithResourceInput) (*request.Request, *servicecatalog.AssociateTagOptionWithResourceOutput)

	CopyProduct(*servicecatalog.CopyProductInput) (*servicecatalog.CopyProductOutput, error)
	CopyProductWithContext(aws.Context, *servicecatalog.CopyProductInput, ...request.Option) (*servicecatalog.CopyProductOutput, error)
	CopyProductRequest(*servicecatalog.CopyProductInput) (*request.Request, *servicecatalog.CopyProductOutput)

	CreateConstraint(*servicecatalog.CreateConstraintInput) (*servicecatalog.CreateConstraintOutput, error)
	CreateConstraintWithContext(aws.Context, *servicecatalog.CreateConstraintInput, ...request.Option) (*servicecatalog.CreateConstraintOutput, error)
	CreateConstraintRequest(*servicecatalog.CreateConstraintInput) (*request.Request, *servicecatalog.CreateConstraintOutput)

	CreatePortfolio(*servicecatalog.CreatePortfolioInput) (*servicecatalog.CreatePortfolioOutput, error)
	CreatePortfolioWithContext(aws.Context, *servicecatalog.CreatePortfolioInput, ...request.Option) (*servicecatalog.CreatePortfolioOutput, error)
	CreatePortfolioRequest(*servicecatalog.CreatePortfolioInput) (*request.Request, *servicecatalog.CreatePortfolioOutput)

	CreatePortfolioShare(*servicecatalog.CreatePortfolioShareInput) (*servicecatalog.CreatePortfolioShareOutput, error)
	CreatePortfolioShareWithContext(aws.Context, *servicecatalog.CreatePortfolioShareInput, ...request.Option) (*servicecatalog.CreatePortfolioShareOutput, error)
	CreatePortfolioShareRequest(*servicecatalog.CreatePortfolioShareInput) (*request.Request, *servicecatalog.CreatePortfolioShareOutput)

	CreateProduct(*servicecatalog.CreateProductInput) (*servicecatalog.CreateProductOutput, error)
	CreateProductWithContext(aws.Context, *servicecatalog.CreateProductInput, ...request.Option) (*servicecatalog.CreateProductOutput, error)
	CreateProductRequest(*servicecatalog.CreateProductInput) (*request.Request, *servicecatalog.CreateProductOutput)

	CreateProvisionedProductPlan(*servicecatalog.CreateProvisionedProductPlanInput) (*servicecatalog.CreateProvisionedProductPlanOutput, error)
	CreateProvisionedProductPlanWithContext(aws.Context, *servicecatalog.CreateProvisionedProductPlanInput, ...request.Option) (*servicecatalog.CreateProvisionedProductPlanOutput, error)
	CreateProvisionedProductPlanRequest(*servicecatalog.CreateProvisionedProductPlanInput) (*request.Request, *servicecatalog.CreateProvisionedProductPlanOutput)

	CreateProvisioningArtifact(*servicecatalog.CreateProvisioningArtifactInput) (*servicecatalog.CreateProvisioningArtifactOutput, error)
	CreateProvisioningArtifactWithContext(aws.Context, *servicecatalog.CreateProvisioningArtifactInput, ...request.Option) (*servicecatalog.CreateProvisioningArtifactOutput, error)
	CreateProvisioningArtifactRequest(*servicecatalog.CreateProvisioningArtifactInput) (*request.Request, *servicecatalog.CreateProvisioningArtifactOutput)

	CreateTagOption(*servicecatalog.CreateTagOptionInput) (*servicecatalog.CreateTagOptionOutput, error)
	CreateTagOptionWithContext(aws.Context, *servicecatalog.CreateTagOptionInput, ...request.Option) (*servicecatalog.CreateTagOptionOutput, error)
	CreateTagOptionRequest(*servicecatalog.CreateTagOptionInput) (*request.Request, *servicecatalog.CreateTagOptionOutput)

	DeleteConstraint(*servicecatalog.DeleteConstraintInput) (*servicecatalog.DeleteConstraintOutput, error)
	DeleteConstraintWithContext(aws.Context, *servicecatalog.DeleteConstraintInput, ...request.Option) (*servicecatalog.DeleteConstraintOutput, error)
	DeleteConstraintRequest(*servicecatalog.DeleteConstraintInput) (*request.Request, *servicecatalog.DeleteConstraintOutput)

	DeletePortfolio(*servicecatalog.DeletePortfolioInput) (*servicecatalog.DeletePortfolioOutput, error)
	DeletePortfolioWithContext(aws.Context, *servicecatalog.DeletePortfolioInput, ...request.Option) (*servicecatalog.DeletePortfolioOutput, error)
	DeletePortfolioRequest(*servicecatalog.DeletePortfolioInput) (*request.Request, *servicecatalog.DeletePortfolioOutput)

	DeletePortfolioShare(*servicecatalog.DeletePortfolioShareInput) (*servicecatalog.DeletePortfolioShareOutput, error)
	DeletePortfolioShareWithContext(aws.Context, *servicecatalog.DeletePortfolioShareInput, ...request.Option) (*servicecatalog.DeletePortfolioShareOutput, error)
	DeletePortfolioShareRequest(*servicecatalog.DeletePortfolioShareInput) (*request.Request, *servicecatalog.DeletePortfolioShareOutput)

	DeleteProduct(*servicecatalog.DeleteProductInput) (*servicecatalog.DeleteProductOutput, error)
	DeleteProductWithContext(aws.Context, *servicecatalog.DeleteProductInput, ...request.Option) (*servicecatalog.DeleteProductOutput, error)
	DeleteProductRequest(*servicecatalog.DeleteProductInput) (*request.Request, *servicecatalog.DeleteProductOutput)

	DeleteProvisionedProductPlan(*servicecatalog.DeleteProvisionedProductPlanInput) (*servicecatalog.DeleteProvisionedProductPlanOutput, error)
	DeleteProvisionedProductPlanWithContext(aws.Context, *servicecatalog.DeleteProvisionedProductPlanInput, ...request.Option) (*servicecatalog.DeleteProvisionedProductPlanOutput, error)
	DeleteProvisionedProductPlanRequest(*servicecatalog.DeleteProvisionedProductPlanInput) (*request.Request, *servicecatalog.DeleteProvisionedProductPlanOutput)

	DeleteProvisioningArtifact(*servicecatalog.DeleteProvisioningArtifactInput) (*servicecatalog.DeleteProvisioningArtifactOutput, error)
	DeleteProvisioningArtifactWithContext(aws.Context, *servicecatalog.DeleteProvisioningArtifactInput, ...request.Option) (*servicecatalog.DeleteProvisioningArtifactOutput, error)
	DeleteProvisioningArtifactRequest(*servicecatalog.DeleteProvisioningArtifactInput) (*request.Request, *servicecatalog.DeleteProvisioningArtifactOutput)

	DescribeConstraint(*servicecatalog.DescribeConstraintInput) (*servicecatalog.DescribeConstraintOutput, error)
	DescribeConstraintWithContext(aws.Context, *servicecatalog.DescribeConstraintInput, ...request.Option) (*servicecatalog.DescribeConstraintOutput, error)
	DescribeConstraintRequest(*servicecatalog.DescribeConstraintInput) (*request.Request, *servicecatalog.DescribeConstraintOutput)

	DescribeCopyProductStatus(*servicecatalog.DescribeCopyProductStatusInput) (*servicecatalog.DescribeCopyProductStatusOutput, error)
	DescribeCopyProductStatusWithContext(aws.Context, *servicecatalog.DescribeCopyProductStatusInput, ...request.Option) (*servicecatalog.DescribeCopyProductStatusOutput, error)
	DescribeCopyProductStatusRequest(*servicecatalog.DescribeCopyProductStatusInput) (*request.Request, *servicecatalog.DescribeCopyProductStatusOutput)

	DescribePortfolio(*servicecatalog.DescribePortfolioInput) (*servicecatalog.DescribePortfolioOutput, error)
	DescribePortfolioWithContext(aws.Context, *servicecatalog.DescribePortfolioInput, ...request.Option) (*servicecatalog.DescribePortfolioOutput, error)
	DescribePortfolioRequest(*servicecatalog.DescribePortfolioInput) (*request.Request, *servicecatalog.DescribePortfolioOutput)

	DescribeProduct(*servicecatalog.DescribeProductInput) (*servicecatalog.DescribeProductOutput, error)
	DescribeProductWithContext(aws.Context, *servicecatalog.DescribeProductInput, ...request.Option) (*servicecatalog.DescribeProductOutput, error)
	DescribeProductRequest(*servicecatalog.DescribeProductInput) (*request.Request, *servicecatalog.DescribeProductOutput)

	DescribeProductAsAdmin(*servicecatalog.DescribeProductAsAdminInput) (*servicecatalog.DescribeProductAsAdminOutput, error)
	DescribeProductAsAdminWithContext(aws.Context, *servicecatalog.DescribeProductAsAdminInput, ...request.Option) (*servicecatalog.DescribeProductAsAdminOutput, error)
	DescribeProductAsAdminRequest(*servicecatalog.DescribeProductAsAdminInput) (*request.Request, *servicecatalog.DescribeProductAsAdminOutput)

	DescribeProductView(*servicecatalog.DescribeProductViewInput) (*servicecatalog.DescribeProductViewOutput, error)
	DescribeProductViewWithContext(aws.Context, *servicecatalog.DescribeProductViewInput, ...request.Option) (*servicecatalog.DescribeProductViewOutput, error)
	DescribeProductViewRequest(*servicecatalog.DescribeProductViewInput) (*request.Request, *servicecatalog.DescribeProductViewOutput)

	DescribeProvisionedProduct(*servicecatalog.DescribeProvisionedProductInput) (*servicecatalog.DescribeProvisionedProductOutput, error)
	DescribeProvisionedProductWithContext(aws.Context, *servicecatalog.DescribeProvisionedProductInput, ...request.Option) (*servicecatalog.DescribeProvisionedProductOutput, error)
	DescribeProvisionedProductRequest(*servicecatalog.DescribeProvisionedProductInput) (*request.Request, *servicecatalog.DescribeProvisionedProductOutput)

	DescribeProvisionedProductPlan(*servicecatalog.DescribeProvisionedProductPlanInput) (*servicecatalog.DescribeProvisionedProductPlanOutput, error)
	DescribeProvisionedProductPlanWithContext(aws.Context, *servicecatalog.DescribeProvisionedProductPlanInput, ...request.Option) (*servicecatalog.DescribeProvisionedProductPlanOutput, error)
	DescribeProvisionedProductPlanRequest(*servicecatalog.DescribeProvisionedProductPlanInput) (*request.Request, *servicecatalog.DescribeProvisionedProductPlanOutput)

	DescribeProvisioningArtifact(*servicecatalog.DescribeProvisioningArtifactInput) (*servicecatalog.DescribeProvisioningArtifactOutput, error)
	DescribeProvisioningArtifactWithContext(aws.Context, *servicecatalog.DescribeProvisioningArtifactInput, ...request.Option) (*servicecatalog.DescribeProvisioningArtifactOutput, error)
	DescribeProvisioningArtifactRequest(*servicecatalog.DescribeProvisioningArtifactInput) (*request.Request, *servicecatalog.DescribeProvisioningArtifactOutput)

	DescribeProvisioningParameters(*servicecatalog.DescribeProvisioningParametersInput) (*servicecatalog.DescribeProvisioningParametersOutput, error)
	DescribeProvisioningParametersWithContext(aws.Context, *servicecatalog.DescribeProvisioningParametersInput, ...request.Option) (*servicecatalog.DescribeProvisioningParametersOutput, error)
	DescribeProvisioningParametersRequest(*servicecatalog.DescribeProvisioningParametersInput) (*request.Request, *servicecatalog.DescribeProvisioningParametersOutput)

	DescribeRecord(*servicecatalog.DescribeRecordInput) (*servicecatalog.DescribeRecordOutput, error)
	DescribeRecordWithContext(aws.Context, *servicecatalog.DescribeRecordInput, ...request.Option) (*servicecatalog.DescribeRecordOutput, error)
	DescribeRecordRequest(*servicecatalog.DescribeRecordInput) (*request.Request, *servicecatalog.DescribeRecordOutput)

	DescribeTagOption(*servicecatalog.DescribeTagOptionInput) (*servicecatalog.DescribeTagOptionOutput, error)
	DescribeTagOptionWithContext(aws.Context, *servicecatalog.DescribeTagOptionInput, ...request.Option) (*servicecatalog.DescribeTagOptionOutput, error)
	DescribeTagOptionRequest(*servicecatalog.DescribeTagOptionInput) (*request.Request, *servicecatalog.DescribeTagOptionOutput)

	DisassociatePrincipalFromPortfolio(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*servicecatalog.DisassociatePrincipalFromPortfolioOutput, error)
	DisassociatePrincipalFromPortfolioWithContext(aws.Context, *servicecatalog.DisassociatePrincipalFromPortfolioInput, ...request.Option) (*servicecatalog.DisassociatePrincipalFromPortfolioOutput, error)
	DisassociatePrincipalFromPortfolioRequest(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*request.Request, *servicecatalog.DisassociatePrincipalFromPortfolioOutput)

	DisassociateProductFromPortfolio(*servicecatalog.DisassociateProductFromPortfolioInput) (*servicecatalog.DisassociateProductFromPortfolioOutput, error)
	DisassociateProductFromPortfolioWithContext(aws.Context, *servicecatalog.DisassociateProductFromPortfolioInput, ...request.Option) (*servicecatalog.DisassociateProductFromPortfolioOutput, error)
	DisassociateProductFromPortfolioRequest(*servicecatalog.DisassociateProductFromPortfolioInput) (*request.Request, *servicecatalog.DisassociateProductFromPortfolioOutput)

	DisassociateTagOptionFromResource(*servicecatalog.DisassociateTagOptionFromResourceInput) (*servicecatalog.DisassociateTagOptionFromResourceOutput, error)
	DisassociateTagOptionFromResourceWithContext(aws.Context, *servicecatalog.DisassociateTagOptionFromResourceInput, ...request.Option) (*servicecatalog.DisassociateTagOptionFromResourceOutput, error)
	DisassociateTagOptionFromResourceRequest(*servicecatalog.DisassociateTagOptionFromResourceInput) (*request.Request, *servicecatalog.DisassociateTagOptionFromResourceOutput)

	ExecuteProvisionedProductPlan(*servicecatalog.ExecuteProvisionedProductPlanInput) (*servicecatalog.ExecuteProvisionedProductPlanOutput, error)
	ExecuteProvisionedProductPlanWithContext(aws.Context, *servicecatalog.ExecuteProvisionedProductPlanInput, ...request.Option) (*servicecatalog.ExecuteProvisionedProductPlanOutput, error)
	ExecuteProvisionedProductPlanRequest(*servicecatalog.ExecuteProvisionedProductPlanInput) (*request.Request, *servicecatalog.ExecuteProvisionedProductPlanOutput)

	ListAcceptedPortfolioShares(*servicecatalog.ListAcceptedPortfolioSharesInput) (*servicecatalog.ListAcceptedPortfolioSharesOutput, error)
	ListAcceptedPortfolioSharesWithContext(aws.Context, *servicecatalog.ListAcceptedPortfolioSharesInput, ...request.Option) (*servicecatalog.ListAcceptedPortfolioSharesOutput, error)
	ListAcceptedPortfolioSharesRequest(*servicecatalog.ListAcceptedPortfolioSharesInput) (*request.Request, *servicecatalog.ListAcceptedPortfolioSharesOutput)

	ListAcceptedPortfolioSharesPages(*servicecatalog.ListAcceptedPortfolioSharesInput, func(*servicecatalog.ListAcceptedPortfolioSharesOutput, bool) bool) error
	ListAcceptedPortfolioSharesPagesWithContext(aws.Context, *servicecatalog.ListAcceptedPortfolioSharesInput, func(*servicecatalog.ListAcceptedPortfolioSharesOutput, bool) bool, ...request.Option) error

	ListConstraintsForPortfolio(*servicecatalog.ListConstraintsForPortfolioInput) (*servicecatalog.ListConstraintsForPortfolioOutput, error)
	ListConstraintsForPortfolioWithContext(aws.Context, *servicecatalog.ListConstraintsForPortfolioInput, ...request.Option) (*servicecatalog.ListConstraintsForPortfolioOutput, error)
	ListConstraintsForPortfolioRequest(*servicecatalog.ListConstraintsForPortfolioInput) (*request.Request, *servicecatalog.ListConstraintsForPortfolioOutput)

	ListConstraintsForPortfolioPages(*servicecatalog.ListConstraintsForPortfolioInput, func(*servicecatalog.ListConstraintsForPortfolioOutput, bool) bool) error
	ListConstraintsForPortfolioPagesWithContext(aws.Context, *servicecatalog.ListConstraintsForPortfolioInput, func(*servicecatalog.ListConstraintsForPortfolioOutput, bool) bool, ...request.Option) error

	ListLaunchPaths(*servicecatalog.ListLaunchPathsInput) (*servicecatalog.ListLaunchPathsOutput, error)
	ListLaunchPathsWithContext(aws.Context, *servicecatalog.ListLaunchPathsInput, ...request.Option) (*servicecatalog.ListLaunchPathsOutput, error)
	ListLaunchPathsRequest(*servicecatalog.ListLaunchPathsInput) (*request.Request, *servicecatalog.ListLaunchPathsOutput)

	ListLaunchPathsPages(*servicecatalog.ListLaunchPathsInput, func(*servicecatalog.ListLaunchPathsOutput, bool) bool) error
	ListLaunchPathsPagesWithContext(aws.Context, *servicecatalog.ListLaunchPathsInput, func(*servicecatalog.ListLaunchPathsOutput, bool) bool, ...request.Option) error

	ListPortfolioAccess(*servicecatalog.ListPortfolioAccessInput) (*servicecatalog.ListPortfolioAccessOutput, error)
	ListPortfolioAccessWithContext(aws.Context, *servicecatalog.ListPortfolioAccessInput, ...request.Option) (*servicecatalog.ListPortfolioAccessOutput, error)
	ListPortfolioAccessRequest(*servicecatalog.ListPortfolioAccessInput) (*request.Request, *servicecatalog.ListPortfolioAccessOutput)

	ListPortfolios(*servicecatalog.ListPortfoliosInput) (*servicecatalog.ListPortfoliosOutput, error)
	ListPortfoliosWithContext(aws.Context, *servicecatalog.ListPortfoliosInput, ...request.Option) (*servicecatalog.ListPortfoliosOutput, error)
	ListPortfoliosRequest(*servicecatalog.ListPortfoliosInput) (*request.Request, *servicecatalog.ListPortfoliosOutput)

	ListPortfoliosPages(*servicecatalog.ListPortfoliosInput, func(*servicecatalog.ListPortfoliosOutput, bool) bool) error
	ListPortfoliosPagesWithContext(aws.Context, *servicecatalog.ListPortfoliosInput, func(*servicecatalog.ListPortfoliosOutput, bool) bool, ...request.Option) error

	ListPortfoliosForProduct(*servicecatalog.ListPortfoliosForProductInput) (*servicecatalog.ListPortfoliosForProductOutput, error)
	ListPortfoliosForProductWithContext(aws.Context, *servicecatalog.ListPortfoliosForProductInput, ...request.Option) (*servicecatalog.ListPortfoliosForProductOutput, error)
	ListPortfoliosForProductRequest(*servicecatalog.ListPortfoliosForProductInput) (*request.Request, *servicecatalog.ListPortfoliosForProductOutput)

	ListPortfoliosForProductPages(*servicecatalog.ListPortfoliosForProductInput, func(*servicecatalog.ListPortfoliosForProductOutput, bool) bool) error
	ListPortfoliosForProductPagesWithContext(aws.Context, *servicecatalog.ListPortfoliosForProductInput, func(*servicecatalog.ListPortfoliosForProductOutput, bool) bool, ...request.Option) error

	ListPrincipalsForPortfolio(*servicecatalog.ListPrincipalsForPortfolioInput) (*servicecatalog.ListPrincipalsForPortfolioOutput, error)
	ListPrincipalsForPortfolioWithContext(aws.Context, *servicecatalog.ListPrincipalsForPortfolioInput, ...request.Option) (*servicecatalog.ListPrincipalsForPortfolioOutput, error)
	ListPrincipalsForPortfolioRequest(*servicecatalog.ListPrincipalsForPortfolioInput) (*request.Request, *servicecatalog.ListPrincipalsForPortfolioOutput)

	ListPrincipalsForPortfolioPages(*servicecatalog.ListPrincipalsForPortfolioInput, func(*servicecatalog.ListPrincipalsForPortfolioOutput, bool) bool) error
	ListPrincipalsForPortfolioPagesWithContext(aws.Context, *servicecatalog.ListPrincipalsForPortfolioInput, func(*servicecatalog.ListPrincipalsForPortfolioOutput, bool) bool, ...request.Option) error

	ListProvisionedProductPlans(*servicecatalog.ListProvisionedProductPlansInput) (*servicecatalog.ListProvisionedProductPlansOutput, error)
	ListProvisionedProductPlansWithContext(aws.Context, *servicecatalog.ListProvisionedProductPlansInput, ...request.Option) (*servicecatalog.ListProvisionedProductPlansOutput, error)
	ListProvisionedProductPlansRequest(*servicecatalog.ListProvisionedProductPlansInput) (*request.Request, *servicecatalog.ListProvisionedProductPlansOutput)

	ListProvisioningArtifacts(*servicecatalog.ListProvisioningArtifactsInput) (*servicecatalog.ListProvisioningArtifactsOutput, error)
	ListProvisioningArtifactsWithContext(aws.Context, *servicecatalog.ListProvisioningArtifactsInput, ...request.Option) (*servicecatalog.ListProvisioningArtifactsOutput, error)
	ListProvisioningArtifactsRequest(*servicecatalog.ListProvisioningArtifactsInput) (*request.Request, *servicecatalog.ListProvisioningArtifactsOutput)

	ListRecordHistory(*servicecatalog.ListRecordHistoryInput) (*servicecatalog.ListRecordHistoryOutput, error)
	ListRecordHistoryWithContext(aws.Context, *servicecatalog.ListRecordHistoryInput, ...request.Option) (*servicecatalog.ListRecordHistoryOutput, error)
	ListRecordHistoryRequest(*servicecatalog.ListRecordHistoryInput) (*request.Request, *servicecatalog.ListRecordHistoryOutput)

	ListResourcesForTagOption(*servicecatalog.ListResourcesForTagOptionInput) (*servicecatalog.ListResourcesForTagOptionOutput, error)
	ListResourcesForTagOptionWithContext(aws.Context, *servicecatalog.ListResourcesForTagOptionInput, ...request.Option) (*servicecatalog.ListResourcesForTagOptionOutput, error)
	ListResourcesForTagOptionRequest(*servicecatalog.ListResourcesForTagOptionInput) (*request.Request, *servicecatalog.ListResourcesForTagOptionOutput)

	ListResourcesForTagOptionPages(*servicecatalog.ListResourcesForTagOptionInput, func(*servicecatalog.ListResourcesForTagOptionOutput, bool) bool) error
	ListResourcesForTagOptionPagesWithContext(aws.Context, *servicecatalog.ListResourcesForTagOptionInput, func(*servicecatalog.ListResourcesForTagOptionOutput, bool) bool, ...request.Option) error

	ListTagOptions(*servicecatalog.ListTagOptionsInput) (*servicecatalog.ListTagOptionsOutput, error)
	ListTagOptionsWithContext(aws.Context, *servicecatalog.ListTagOptionsInput, ...request.Option) (*servicecatalog.ListTagOptionsOutput, error)
	ListTagOptionsRequest(*servicecatalog.ListTagOptionsInput) (*request.Request, *servicecatalog.ListTagOptionsOutput)

	ListTagOptionsPages(*servicecatalog.ListTagOptionsInput, func(*servicecatalog.ListTagOptionsOutput, bool) bool) error
	ListTagOptionsPagesWithContext(aws.Context, *servicecatalog.ListTagOptionsInput, func(*servicecatalog.ListTagOptionsOutput, bool) bool, ...request.Option) error

	ProvisionProduct(*servicecatalog.ProvisionProductInput) (*servicecatalog.ProvisionProductOutput, error)
	ProvisionProductWithContext(aws.Context, *servicecatalog.ProvisionProductInput, ...request.Option) (*servicecatalog.ProvisionProductOutput, error)
	ProvisionProductRequest(*servicecatalog.ProvisionProductInput) (*request.Request, *servicecatalog.ProvisionProductOutput)

	RejectPortfolioShare(*servicecatalog.RejectPortfolioShareInput) (*servicecatalog.RejectPortfolioShareOutput, error)
	RejectPortfolioShareWithContext(aws.Context, *servicecatalog.RejectPortfolioShareInput, ...request.Option) (*servicecatalog.RejectPortfolioShareOutput, error)
	RejectPortfolioShareRequest(*servicecatalog.RejectPortfolioShareInput) (*request.Request, *servicecatalog.RejectPortfolioShareOutput)

	ScanProvisionedProducts(*servicecatalog.ScanProvisionedProductsInput) (*servicecatalog.ScanProvisionedProductsOutput, error)
	ScanProvisionedProductsWithContext(aws.Context, *servicecatalog.ScanProvisionedProductsInput, ...request.Option) (*servicecatalog.ScanProvisionedProductsOutput, error)
	ScanProvisionedProductsRequest(*servicecatalog.ScanProvisionedProductsInput) (*request.Request, *servicecatalog.ScanProvisionedProductsOutput)

	SearchProducts(*servicecatalog.SearchProductsInput) (*servicecatalog.SearchProductsOutput, error)
	SearchProductsWithContext(aws.Context, *servicecatalog.SearchProductsInput, ...request.Option) (*servicecatalog.SearchProductsOutput, error)
	SearchProductsRequest(*servicecatalog.SearchProductsInput) (*request.Request, *servicecatalog.SearchProductsOutput)

	SearchProductsPages(*servicecatalog.SearchProductsInput, func(*servicecatalog.SearchProductsOutput, bool) bool) error
	SearchProductsPagesWithContext(aws.Context, *servicecatalog.SearchProductsInput, func(*servicecatalog.SearchProductsOutput, bool) bool, ...request.Option) error

	SearchProductsAsAdmin(*servicecatalog.SearchProductsAsAdminInput) (*servicecatalog.SearchProductsAsAdminOutput, error)
	SearchProductsAsAdminWithContext(aws.Context, *servicecatalog.SearchProductsAsAdminInput, ...request.Option) (*servicecatalog.SearchProductsAsAdminOutput, error)
	SearchProductsAsAdminRequest(*servicecatalog.SearchProductsAsAdminInput) (*request.Request, *servicecatalog.SearchProductsAsAdminOutput)

	SearchProductsAsAdminPages(*servicecatalog.SearchProductsAsAdminInput, func(*servicecatalog.SearchProductsAsAdminOutput, bool) bool) error
	SearchProductsAsAdminPagesWithContext(aws.Context, *servicecatalog.SearchProductsAsAdminInput, func(*servicecatalog.SearchProductsAsAdminOutput, bool) bool, ...request.Option) error

	SearchProvisionedProducts(*servicecatalog.SearchProvisionedProductsInput) (*servicecatalog.SearchProvisionedProductsOutput, error)
	SearchProvisionedProductsWithContext(aws.Context, *servicecatalog.SearchProvisionedProductsInput, ...request.Option) (*servicecatalog.SearchProvisionedProductsOutput, error)
	SearchProvisionedProductsRequest(*servicecatalog.SearchProvisionedProductsInput) (*request.Request, *servicecatalog.SearchProvisionedProductsOutput)

	SearchProvisionedProductsPages(*servicecatalog.SearchProvisionedProductsInput, func(*servicecatalog.SearchProvisionedProductsOutput, bool) bool) error
	SearchProvisionedProductsPagesWithContext(aws.Context, *servicecatalog.SearchProvisionedProductsInput, func(*servicecatalog.SearchProvisionedProductsOutput, bool) bool, ...request.Option) error

	TerminateProvisionedProduct(*servicecatalog.TerminateProvisionedProductInput) (*servicecatalog.TerminateProvisionedProductOutput, error)
	TerminateProvisionedProductWithContext(aws.Context, *servicecatalog.TerminateProvisionedProductInput, ...request.Option) (*servicecatalog.TerminateProvisionedProductOutput, error)
	TerminateProvisionedProductRequest(*servicecatalog.TerminateProvisionedProductInput) (*request.Request, *servicecatalog.TerminateProvisionedProductOutput)

	UpdateConstraint(*servicecatalog.UpdateConstraintInput) (*servicecatalog.UpdateConstraintOutput, error)
	UpdateConstraintWithContext(aws.Context, *servicecatalog.UpdateConstraintInput, ...request.Option) (*servicecatalog.UpdateConstraintOutput, error)
	UpdateConstraintRequest(*servicecatalog.UpdateConstraintInput) (*request.Request, *servicecatalog.UpdateConstraintOutput)

	UpdatePortfolio(*servicecatalog.UpdatePortfolioInput) (*servicecatalog.UpdatePortfolioOutput, error)
	UpdatePortfolioWithContext(aws.Context, *servicecatalog.UpdatePortfolioInput, ...request.Option) (*servicecatalog.UpdatePortfolioOutput, error)
	UpdatePortfolioRequest(*servicecatalog.UpdatePortfolioInput) (*request.Request, *servicecatalog.UpdatePortfolioOutput)

	UpdateProduct(*servicecatalog.UpdateProductInput) (*servicecatalog.UpdateProductOutput, error)
	UpdateProductWithContext(aws.Context, *servicecatalog.UpdateProductInput, ...request.Option) (*servicecatalog.UpdateProductOutput, error)
	UpdateProductRequest(*servicecatalog.UpdateProductInput) (*request.Request, *servicecatalog.UpdateProductOutput)

	UpdateProvisionedProduct(*servicecatalog.UpdateProvisionedProductInput) (*servicecatalog.UpdateProvisionedProductOutput, error)
	UpdateProvisionedProductWithContext(aws.Context, *servicecatalog.UpdateProvisionedProductInput, ...request.Option) (*servicecatalog.UpdateProvisionedProductOutput, error)
	UpdateProvisionedProductRequest(*servicecatalog.UpdateProvisionedProductInput) (*request.Request, *servicecatalog.UpdateProvisionedProductOutput)

	UpdateProvisioningArtifact(*servicecatalog.UpdateProvisioningArtifactInput) (*servicecatalog.UpdateProvisioningArtifactOutput, error)
	UpdateProvisioningArtifactWithContext(aws.Context, *servicecatalog.UpdateProvisioningArtifactInput, ...request.Option) (*servicecatalog.UpdateProvisioningArtifactOutput, error)
	UpdateProvisioningArtifactRequest(*servicecatalog.UpdateProvisioningArtifactInput) (*request.Request, *servicecatalog.UpdateProvisioningArtifactOutput)

	UpdateTagOption(*servicecatalog.UpdateTagOptionInput) (*servicecatalog.UpdateTagOptionOutput, error)
	UpdateTagOptionWithContext(aws.Context, *servicecatalog.UpdateTagOptionInput, ...request.Option) (*servicecatalog.UpdateTagOptionOutput, error)
	UpdateTagOptionRequest(*servicecatalog.UpdateTagOptionInput) (*request.Request, *servicecatalog.UpdateTagOptionOutput)
}

var _ ServiceCatalogAPI = (*servicecatalog.ServiceCatalog)(nil)


text:
package com.opengamma.strata.market.sensitivity;

import static com.opengamma.strata.basics.currency.Currency.CHF;
import static com.opengamma.strata.basics.currency.Currency.GBP;
import static com.opengamma.strata.basics.currency.Currency.USD;
import static com.opengamma.strata.basics.index.PriceIndices.CH_CPI;
import static com.opengamma.strata.basics.index.PriceIndices.GB_HICP;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static com.opengamma.strata.collect.TestHelper.coverBeanEquals;
import static com.opengamma.strata.collect.TestHelper.coverImmutableBean;
import static com.opengamma.strata.collect.TestHelper.date;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertSame;

import java.time.YearMonth;

import org.testng.annotations.Test;

import com.google.common.collect.ImmutableList;
import com.opengamma.strata.basics.currency.CurrencyPair;
import com.opengamma.strata.basics.currency.FxMatrix;

/**
 * Test {@link InflationRateSensitivity}.
 */
@Test
public class InflationRateSensitivityTest {

  private static final YearMonth REFERENCE_MONTH = YearMonth.of(2015, 6);

  public void test_of_withoutCurrency() {
    InflationRateSensitivity test = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 1.0);
    assertEquals(test.getIndex(), GB_HICP);
    assertEquals(test.getCurrency(), GB_HICP.getCurrency());
    assertEquals(test.getReferenceMonth(), REFERENCE_MONTH);
    assertEquals(test.getSensitivity(), 1.0);
  }

  public void test_of_withCurrency() {
    InflationRateSensitivity test = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 3.5);
    assertEquals(test.getIndex(), CH_CPI);
    assertEquals(test.getCurrency(), CH_CPI.getCurrency());
    assertEquals(test.getReferenceMonth(), REFERENCE_MONTH);
    assertEquals(test.getSensitivity(), 3.5);
  }

  //-------------------------------------------------------------------------
  public void test_withCurrency() {
    InflationRateSensitivity base = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 3.5);
    assertEquals(base.withCurrency(CHF), base);
    InflationRateSensitivity expected = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, USD, 3.5);
    InflationRateSensitivity test = base.withCurrency(USD);
    assertEquals(test, expected);
  }

  //-------------------------------------------------------------------------
  public void test_withSensitivity() {
    InflationRateSensitivity base = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 3.5);
    InflationRateSensitivity expected = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 23.4);
    InflationRateSensitivity test = base.withSensitivity(23.4);
    assertEquals(test, expected);
  }

  //-------------------------------------------------------------------------
  public void test_compareKey() {
    InflationRateSensitivity a1 = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 32d);
    InflationRateSensitivity a2 = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 32d);
    InflationRateSensitivity b = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 32d);
    InflationRateSensitivity c = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, USD, 32d);
    InflationRateSensitivity d = InflationRateSensitivity.of(GB_HICP, YearMonth.of(2015, 10), 32d);
    ZeroRateSensitivity other = ZeroRateSensitivity.of(GBP, date(2015, 9, 27), 32d);
    assertEquals(a1.compareKey(a2), 0);
    assertEquals(a1.compareKey(b) > 0, true);
    assertEquals(b.compareKey(a1) < 0, true);
    assertEquals(a1.compareKey(c) < 0, true);
    assertEquals(c.compareKey(a1) > 0, true);
    assertEquals(a1.compareKey(d) < 0, true);
    assertEquals(d.compareKey(a1) > 0, true);
    assertEquals(a1.compareKey(other) < 0, true);
    assertEquals(other.compareKey(a1) > 0, true);
  }

  //-------------------------------------------------------------------------
  public void test_convertedTo() {
    double sensi = 32d;
    InflationRateSensitivity base = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, sensi);
    double rate = 1.5d;
    FxMatrix matrix = FxMatrix.of(CurrencyPair.of(GBP, USD), rate);
    InflationRateSensitivity test1 = (InflationRateSensitivity) base.convertedTo(USD, matrix);
    InflationRateSensitivity expected = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, USD, sensi * rate);
    assertEquals(test1, expected);
    InflationRateSensitivity test2 = (InflationRateSensitivity) base.convertedTo(GBP, matrix);
    assertEquals(test2, base);
  }

  //-------------------------------------------------------------------------
  public void test_multipliedBy() {
    InflationRateSensitivity base = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 5.0);
    InflationRateSensitivity expected = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 2.6 * 5.0);
    InflationRateSensitivity test = base.multipliedBy(2.6d);
    assertEquals(test, expected);
  }

  //-------------------------------------------------------------------------
  public void test_mapSensitivity() {
    InflationRateSensitivity base = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 5.0);
    InflationRateSensitivity expected = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 1.0 / 5.0);
    InflationRateSensitivity test = base.mapSensitivity(s -> 1 / s);
    assertEquals(test, expected);
  }

  //-------------------------------------------------------------------------
  public void test_normalize() {
    InflationRateSensitivity base = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 3.5);
    InflationRateSensitivity test = base.normalize();
    assertSame(test, base);
  }

  //-------------------------------------------------------------------------
  public void test_combinedWith() {
    InflationRateSensitivity base1 = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 5.0);
    InflationRateSensitivity base2 = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 7.0);
    MutablePointSensitivities expected = new MutablePointSensitivities();
    expected.add(base1).add(base2);
    PointSensitivityBuilder test = base1.combinedWith(base2);
    assertEquals(test, expected);
  }

  public void test_combinedWith_mutable() {
    InflationRateSensitivity base = InflationRateSensitivity.of(CH_CPI, REFERENCE_MONTH, 5.0);
    MutablePointSensitivities expected = new MutablePointSensitivities();
    expected.add(base);
    PointSensitivityBuilder test = base.combinedWith(new MutablePointSensitivities());
    assertEquals(test, expected);
  }

  //-------------------------------------------------------------------------
  public void test_buildInto() {
    InflationRateSensitivity base = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 3.5);
    MutablePointSensitivities combo = new MutablePointSensitivities();
    MutablePointSensitivities test = base.buildInto(combo);
    assertEquals(test, combo);
    assertEquals(test.getSensitivities(), ImmutableList.of(base));
  }

  //-------------------------------------------------------------------------
  public void test_build() {
    InflationRateSensitivity base = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 3.5);
    PointSensitivities test = base.build();
    assertEquals(test.getSensitivities(), ImmutableList.of(base));
  }

  //-------------------------------------------------------------------------
  public void test_cloned() {
    InflationRateSensitivity base = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 3.5);
    InflationRateSensitivity test = base.cloned();
    assertSame(test, base);
  }

  //-------------------------------------------------------------------------
  public void coverage() {
    InflationRateSensitivity test1 = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 1.0);
    coverImmutableBean(test1);
    InflationRateSensitivity test2 = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, GBP, 22.0);
    coverBeanEquals(test1, test2);
  }

  public void test_serialization() {
    InflationRateSensitivity test = InflationRateSensitivity.of(GB_HICP, REFERENCE_MONTH, 1.0);
    assertSerialization(test);
  }

}

redpajama_set_name: RedPajamaGithub


text:
/**
 */
package io.yaktor.domain;

import org.eclipse.emf.ecore.EObject;

/**
 *
 * A representation of the model object 'Named Type'.
 *
 *
 *

 * The following features are supported:
 *

 *
{@link io.yaktor.domain.NamedType#getName Name}

 *
{@link io.yaktor.domain.NamedType#getModel Model}

 *

 *

 *
 * @see io.yaktor.domain.DomainPackage#getNamedType()
 * @model abstract="true"
 * @generated
 */
public interface NamedType extends EObject {
	/**
	 * Returns the value of the 'Name' attribute.
	 *
	 *

	 * If the meaning of the 'Name' attribute isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Name' attribute.
	 * @see #setName(String)
	 * @see io.yaktor.domain.DomainPackage#getNamedType_Name()
	 * @model
	 * @generated
	 */
	String getName();

	/**
	 * Sets the value of the '{@link io.yaktor.domain.NamedType#getName Name}' attribute.
	 *
	 *
	 * @param value the new value of the 'Name' attribute.
	 * @see #getName()
	 * @generated
	 */
	void setName(String value);

	/**
	 * Returns the value of the 'Model' container reference.
	 * It is bidirectional and its opposite is '{@link io.yaktor.domain.DomainModel#getTypes Types}'.
	 *
	 *

	 * If the meaning of the 'Model' container reference isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Model' container reference.
	 * @see #setModel(DomainModel)
	 * @see io.yaktor.domain.DomainPackage#getNamedType_Model()
	 * @see io.yaktor.domain.DomainModel#getTypes
	 * @model opposite="types" transient="false"
	 * @generated
	 */
	DomainModel getModel();

	/**
	 * Sets the value of the '{@link io.yaktor.domain.NamedType#getModel Model}' container reference.
	 *
	 *
	 * @param value the new value of the 'Model' container reference.
	 * @see #getModel()
	 * @generated
	 */
	void setModel(DomainModel value);

} // NamedType


text:
for prob in ./Test/MyUniversityDB/lubm-style.query*.tptp;
  do
    {
	java -enableassertions -Xss300m -jar ./target/alabai-2.2-SNAPSHOT-jar-with-dependencies.jar -I ./Test/MyUniversityDB -c univ_db_query_answering_config.xml --print-index-performance-summary true $prob
    }
 done


text:
'use strict';
var PrimitiveSet = require( 'osg/PrimitiveSet' );
var Notify = require( 'osg/Notify' );

// This class can be used to visit all the triangles of a geometry
var TriangleIndexFunctor = function () {

    if ( arguments && arguments.length ) {
        Notify.warn( 'using ctor as initialiser is deprecated, use init(geom, cb)' );
    }

};

TriangleIndexFunctor.prototype = {

    // You feed it with a callback that will be called for each triangle
    // (with the 3 indexes of vertices as arguments)
    init: function ( geom, cb ) {
        this._geom = geom;
        this._cb = cb;
    },
    applyDrawElementsTriangles: function ( count, indexes ) {
        var cb = this._cb;
        for ( var i = 0; i < count; i += 3 ) {
            cb( indexes[ i ], indexes[ i + 1 ], indexes[ i + 2 ] );
        }
    },

    applyDrawElementsTriangleStrip: function ( count, indexes ) {
        var cb = this._cb;
        for ( var i = 2, j = 0; i < count; ++i, ++j ) {
            if ( i % 2 ) cb( indexes[ j ], indexes[ j + 2 ], indexes[ j + 1 ] );
            else cb( indexes[ j ], indexes[ j + 1 ], indexes[ j + 2 ] );
        }
    },

    applyDrawElementsTriangleFan: function ( count, indexes ) {
        var cb = this._cb;
        var first = indexes[ 0 ];
        for ( var i = 2, j = 1; i < count; ++i, ++j ) {
            cb( first, indexes[ j ], indexes[ j + 1 ] );
        }
    },

    applyDrawArraysTriangles: function ( first, count ) {
        var cb = this._cb;
        for ( var i = 2, pos = first; i < count; i += 3, pos += 3 ) {
            cb( pos, pos + 1, pos + 2 );
        }
    },

    applyDrawArraysTriangleStrip: function ( first, count ) {
        var cb = this._cb;
        for ( var i = 2, pos = first; i < count; ++i, ++pos ) {
            if ( i % 2 ) cb( pos, pos + 2, pos + 1 );
            else cb( pos, pos + 1, pos + 2 );
        }
    },

    applyDrawArraysTriangleFan: function ( first, count ) {
        var cb = this._cb;
        for ( var i = 2, pos = first + 1; i < count; ++i, ++pos ) {
            cb( first, pos, pos + 1 );
        }
    },

    apply: function () {
        var geom = this._geom;
        var primitives = geom.primitives;
        if ( !primitives )
            return;
        var nbPrimitives = primitives.length;
        for ( var i = 0; i < nbPrimitives; i++ ) {
            var primitive = primitives[ i ];
            if ( primitive.getIndices !== undefined ) {
                var indexes = primitive.indices.getElements();
                switch ( primitive.getMode() ) {
                case PrimitiveSet.TRIANGLES:
                    this.applyDrawElementsTriangles( primitive.getCount(), indexes );
                    break;
                case PrimitiveSet.TRIANGLE_STRIP:
                    this.applyDrawElementsTriangleStrip( primitive.getCount(), indexes );
                    break;
                case PrimitiveSet.TRIANGLE_FAN:
                    this.applyDrawElementsTriangleFan( primitive.getCount(), indexes );
                    break;
                }
            } else { // draw array
                switch ( primitive.getMode() ) {
                case PrimitiveSet.TRIANGLES:
                    this.applyDrawArraysTriangles( primitive.getFirst(), primitive.getCount() );
                    break;
                case PrimitiveSet.TRIANGLE_STRIP:
                    this.applyDrawArraysTriangleStrip( primitive.getFirst(), primitive.getCount() );
                    break;
                case PrimitiveSet.TRIANGLE_FAN:
                    this.applyDrawArraysTriangleFan( primitive.getFirst(), primitive.getCount() );
                    break;
                }
            }
        }
    }
};

module.exports = TriangleIndexFunctor;


text:
package de.knightsoftnet.mtwidgets.client.jswrapper;

import elemental.json.JsonObject;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

/**
 * webshims wrapper.
 *
 * @author Manfred Tremmel
 *
 */
@JsType(isNative = true, name = "webshims", namespace = JsPackage.GLOBAL)
public class Webshims {

  public static native void setOptions(String prop, String val);

  public static native void setOptions(JsonObject val);

  public static native void ready();

  public static native void activeLang(String lang);

  public static native void polyfill(String features);
}


text:
package schnauzer

import scalaz.NonEmptyList

case class Search(queryBody: Option[Query],
                  filterBody: Option[Filter],
                  sortBody: Option[Sort],
                  aggBody: Option[Aggs],
                  trackSortScores: TrackSortScores = false,
                  from: From,
                  size: Size,
                  searchType: SearchType,
                  fields: Option[FieldName])

sealed trait Query
case class TermQuery(term: Term) extends Query
case class TermsQuery(terms: NonEmptyList[Term]) extends Query
case class QueryMatchQuery(query: MatchQuery) extends Query
case class QueryBoolQuery(query: BoolQuery) extends Query
case class QueryFilteredQuery(query: FilteredQuery) extends Query
case class IdsQuery(mapping: MappingName, ids: List[DocId]) extends Query
case class QueryIndicesQuery(query: IndicesQuery) extends Query
case class QueryQueryStringQuery(query: QueryStringQuery) extends Query
case class QueryRangeQuery(query: RangeQuery) extends Query

sealed trait Filter
case class AndFilter(filters: List[Filter], cache: Cache) extends Filter
case class OrFilter(filters: List[Filter], cache: Cache) extends Filter
case class NotFilter(filter: Filter, cache: Cache) extends Filter
case object IdentityFilter extends Filter
case class BoolFilter(matches: BoolMatch) extends Filter
case class ExistsFilter(field: FieldName) extends Filter // always cached
case class IdsFilter(mapping: MappingName, ids: List[DocId]) extends Filter
case class LimitFilter(limit: Int) extends Filter
case class QueryFilter(query: Query, cache: Cache) extends Filter
case class RangeFilter(field: FieldName,
                       range: RangeValue,
                       exec: RangeExecution,
                       cache: Cache) extends Filter
case class TermFilter(term: Term, cache: Cache) extends Filter

/**
 * Currently the only type of `SortSpec` we support is `DefaultSortSpec`.
 * [[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#search-request-sort]]
*/
sealed trait SortSpec
case class DefaultSortSpec(default: DefaultSort) extends SortSpec

/**
 * `DefaultSort` is usually the kind of `SortSpec` you`ll want.
 * [[<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#search-request-sort>]]
*/
case class DefaultSort(sortFieldName: FieldName,
                       sortOrder: SortOrder,
                       ignoreUnmapped: Boolean = false,
                       sortMode: Option[SortMode] = None,
                       missingSort: Option[Missing] = None,
                       nestedFilter: Option[Filter] = None)

/**
 * `SortOrder` is `Ascending` or `Descending`, as you might expect. These get
 * encoded into "asc" or "desc" when turned into JSON.
 * [[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#search-request-sort]]
*/
sealed trait SortOrder
case object Ascending extends SortOrder
case object Descending extends SortOrder

/**
 * 'Missing' prescribes how to handle missing fields. A missing field can be
 * sorted last, first, or using a custom value as a substitute.
 * [[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_missing_values]]
 */
sealed trait Missing
case object LastMissing extends Missing
case object FirstMissing extends Missing
case class CustomMissing(value: String) extends Missing

/**
 * 'SortMode' prescribes how to handle sorting array/multi-valued fields.
 * [[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_sort_mode_option]]
 */
sealed trait SortMode
case object SortMin extends SortMode
case object SortMax extends SortMode
case object SortSum extends SortMode
case object SortAvg extends SortMode

sealed trait BooleanOperator
case object And extends BooleanOperator
case object Or extends BooleanOperator

sealed trait SearchType
case object SearchTypeQueryThenFetch extends SearchType
case object SearchTypeDfsQueryThenFetch extends SearchType
case object SearchTypeCount extends SearchType
case object SearchTypeScan extends SearchType
case object SearchTypeQueryAndFetch extends SearchType
case object SearchTypeDfsQueryAndFetch extends SearchType

case class Term(field: String, value: String)

case class MatchQuery(
  field: FieldName,
  queryString: LuceneQuery,
  operator: BooleanOperator)

case class BoolQuery(
  mustMatch: List[Query],
  mustNotMatch: List[Query],
  shouldMatch: List[Query],
  minimumShouldMatch: Option[MinimumMatch] = None
)

case class FilteredQuery(query: Query, filter: Filter)

case class IndicesQuery(indices: List[IndexName], query: Query, noMatch: Option[Query])

case class QueryStringQuery(
  queryString: LuceneQuery,
  defaultField: Option[FieldName] = None,
  operator: Option[BooleanOperator] = None
)

case class RangeQuery(field: FieldName, range: RangeValue)

sealed trait BoolMatch
case class MustMatch(term: Term, cache: Cache) extends BoolMatch
case class MustNotMatch(term: Term, cache: Cache) extends BoolMatch
case class ShouldMatch(terms: List[Term], cache: Cache) extends BoolMatch

sealed trait RangeValue
case class RangeDateLte(lte: LessThanEqD) extends RangeValue
case class RangeDateLt(lt: LessThanD) extends RangeValue
case class RangeDateGte(gte: GreaterThanEqD) extends RangeValue
case class RangeDateGt(gt: GreaterThanD) extends RangeValue
case class RangeDateGtLt(gt: GreaterThanD, lt: LessThanD) extends RangeValue
case class RangeDateGteLte(gte: GreaterThanEqD, lte: LessThanEqD) extends RangeValue
case class RangeDateGteLt(gte: GreaterThanEqD, lt: LessThanD) extends RangeValue
case class RangeDateGtLte(gt: GreaterThanD, lt: LessThanEqD) extends RangeValue
case class RangeDoubleLte(lte: LessThanEq) extends RangeValue
case class RangeDoubleLt(lt: LessThan) extends RangeValue
case class RangeDoubleGte(gte: GreaterThanEq) extends RangeValue
case class RangeDoubleGt(gt: GreaterThan) extends RangeValue
case class RangeDoubleGtLt(gt: GreaterThan, lt: LessThan) extends RangeValue
case class RangeDoubleGteLte(gte: GreaterThanEq, lte: LessThanEq) extends RangeValue
case class RangeDoubleGteLt(gte: GreaterThanEq, lt: LessThan) extends RangeValue
case class RangeDoubleGtLte(gt: GreaterThan, lte: LessThanEq) extends RangeValue

sealed trait RangeExecution
case object RangeExecutionIndex extends RangeExecution
case object RangeExecutionFieldData extends RangeExecution


text:
//---------------------------------------------------------------------
// File: SsisPackageExecuterStep.cs
//
// Summary:
//
//---------------------------------------------------------------------
// Copyright (c) 2004-2015, Kevin B. Smith. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------

using BizUnit.Core.TestBuilder;
using System;
using System.Collections.ObjectModel;

namespace BizUnit.TestSteps.Ssis
{
    ///
    /// The SsisPackageExecuterStep test step executes an SSIS package.
    ///
    public class SsisPackageExecuterStep : TestStepBase
    {
        ///
        /// The file path of the SSIS package to execute
        ///
        public string PackageLocation { get; set; }

        ///
        /// The package variables
        ///
        public Collection<PackageVariable> Variables { get; set; }

        ///
        /// Constructor
        ///
        public SsisPackageExecuterStep()
        {
            Variables = new Collection<PackageVariable>();
        }

        ///
        /// TestStepBase.Execute() implementation
        ///
        /// <param name='context'>The context for the test, this holds state that is passed beteen tests</param>
        ///<exception cref="ApplicationException"></exception>
        public override void Execute(Context context)
        {
            context.LogInfo("Executing SSIS package: {0}", PackageLocation);

            var ssisRuntime = new Microsoft.SqlServer.Dts.Runtime.Application();
            using (var package = ssisRuntime.LoadPackage(PackageLocation, null))
            {
                var variables = package.Variables;

                foreach (var variable in Variables)
                {
                    context.LogInfo("Adding variable: {0}, value: {1}", variable.Name, variable.Value);
                    variables[variable.Name].Value = variable.Value;
                }

                var result = package.Execute();

                var errors = package.Errors;
                foreach (var error in errors)
                {
                    context.LogError(error.Description);
                }

                if (Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success != result || 0 < errors.Count)
                {
                    throw new ApplicationException("Package execution failed.");
                }

                context.LogInfo("Package executed successfully.");
            }
        }

        ///
        /// Validates the test step is correctly configured prior to execution.
        ///
        /// <param name='context'>The context for the test, this holds state that is passed beteen tests</param>
        ///<exception cref="StepValidationException"></exception>
        public override void Validate(Context context)
        {
            if(string.IsNullOrEmpty(PackageLocation))
            {
                throw new StepValidationException("PackageLocation may not be null or empty", this);
            }
        }
    }
}


text:
title:  'Příchod potíží'
date:  27/12/2021
---

>

> 32Jen si vzpomeňte na dřívější dny! Sotva jste byli osvíceni, už jste museli podstoupit mnohý zápas s utrpením; 33někteří tím, že byli před očima všech uráženi a utiskováni, jiní tím, že stáli při postižených. 34Vždyť jste trpěli spolu s uvězněnými a s radostí jste snesli i to, že jste byli připraveni o majetek, neboť víte, že máte bohatství lepší a trvalé. (Žd 10,32–34)

>

> Pamatujte na vězně, jako byste byli uvězněni s nimi; pamatujte na ty, kdo trpí, vždyť i vás může potkat utrpení. (Žd 13,3)

>

> 24Mojžíš věřil, a proto, když dospěl, odepřel nazývat se synem faraónovy dcery. 25Raději chtěl snášet příkoří s Božím lidem než na čas žít příjemně v hříchu; 26a Kristovo pohanění pokládal za větší bohatství než všechny poklady Egypta, neboť upíral svou mysl k budoucí odplatě. (Žd 11,24–26)

**Osobní studium**

Když věřící vyznali svou víru v Krista a připojili se k církvi, vytvořili tím určitou hranici, která je odlišovala od zbytku společnosti. To se však naneštěstí velmi často stalo zdrojem konfliktů, protože to vytvářelo dojem odsuzování postojů ostatních a jejich hodnot.

`Uvažuj o textech Žd 10,32–34 a Žd 13,3. Jaká byla zkušenost adresátů dopisu po jejich obrácení?`

Je velmi pravděpodobné, že adresáti dopisu byli vystaveni slovním i tělesným útokům vyprovokovaným nepřáteli (viz například Sk 16,19–22 a Sk 17,1–9). Mnozí se zřejmě nevyhnuli vězení a různým tělesným trestům, protože náboženští představitelé měli moc udělit některé jinak nezákonné tresty, zatímco shromažďovali důkazy (viz např. Sk 16,22.23).

`Uvažuj o textech Žd 11,24–26 a 1Pt 4,14–16. Jak nám zkušenost Mojžíše a adresátů 1. Petrova listu pomáhá pochopit, proč byli křesťané pronásledováni?`

Být "hanobeni pro jméno Kristovo" znamenalo identifikovat se s Kristem a snášet hanbu a ponížení, které z takového ztotožnění vyplývá. Veřejné nepřátelství vůči křesťanům vycházelo z jejich velmi silné věrnosti vůči přijatým náboženským postojům. Lidé se mohli cítit pohoršeni náboženskými praktikami, kterým nerozuměli. Mohli se také cítit zahanbeni kvůli lidem, jejichž životní styl a morálka by mohly v ostatních vyvolat pocit viny nebo hanby. V druhé polovině prvního století římský senátor a historik Tacitus obviňoval křesťany z "nenávisti vůči lidstvu". Ať už bylo důvodem jeho postoje cokoliv, mnozí z prvních křesťanů trpěli pro svou víru – podobně jako ti, kterým byl adresován list Židům.

**Aplikace**

`Do života každého člověka přichází utrpení, ať už je křesťanem, nebo ne. Co však znamená "trpět pro Krista"? Jak moc trpíme pro Krista a kolik z našeho utrpení je pouze následkem našich nesprávných rozhodnutí nebo výsledkem zla, které je na zemi?`

---

#### Dodatečné otázky k diskuzi

`Co vedlo k tomu, že křesťany vnímalo jejich "pohanské" okolí negativně?`

`V čem je i naše zkušenost podobná té, o které píše autor listu Židům?`

`Proč se nemáme stydět, když trpíme za svou víru?`

`Jakým jednáním či slovy můžeme posilovat dojem druhých, že odsuzujeme jejich postoje, hodnoty nebo kulturu?`

`Máme druhé upozorňovat na jejich "odlišnosti", nebo je to dílo Ducha svatého? Co si o tom myslíš?`

`Co můžeme udělat pro to, abychom zmenšili "třecí plochy", ale současně zůstali věrní Ježíši?`


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="assets/ico/favicon.ico">

    <title>Enforcer / New Node</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link href="plugins/parsley/parsley.css" rel="stylesheet">

    <link href="css/dashboard.css" rel="stylesheet">
    <link href="css/custom.css" rel="stylesheet">

            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

            </button>
             Enforcer

                    iPXE

                    Cluster

 Nodes

New Node

Configuration

                                        <form parsley-validate method="POST" action="/newnode" class="form-horizontal row-border" data-validate="parsley" id="validate-form" />

                                                Id

                                                    <input  type="text" name="id" parsley-trigger="change" parsley-regexp="^([0-9A-F]{2}[-]){5}([0-9A-F]{2})$" placeholder="Example: 00-00-01-02-03-04" required="required" class="form-control" />

                                                Description

                                                    <textarea  name="description" type="text" class="form-control autosize"></textarea>

                                                Management ip

                                                    <input type="text" name="mgm" class="form-control" />

                                                Ip

                                                    <input type="text" name="ip" class="form-control" />

                                                Netmask

                                                    <input type="text" name="netmask" class="form-control" />

                                                Gateway

                                                    <input type="text" name="gateway" class="form-control" />

                                                Dns

                                                    <input type="text" name="dns" class="form-control" />

                                                iPXE

                                                    <input name="template" type="text" placeholder="Required Field" required="required" class="form-control" />

                                                Version

                                                    <input type="text" name="version" class="form-control" />

                                                Kernel

                                                    <textarea type="text" name="kernel" class="form-control animated"></textarea>

                                                Mirror

                                                    <textarea type="text" name="mirror" class="form-control animated"></textarea>

                                                Append

                                                    <textarea type="text" name="append" class="form-control animated"></textarea>

                                                Initrd

                                                    <textarea type="text" name="initrd" class="form-control animated"></textarea>

                                                Script

                                                    <textarea type="text" name="script" class="form-control animated"></textarea>

                                                    <button class="btn-primary btn" onclick="javascript:$('#validate-form').parsley( 'validate' );">Submit</button>
                                                    <button class="btn-default btn" onclick="javascript:$('#collapseDiv').collapse('toggle');">Cancel</button>

                                        </form>


text:
<?php

namespace Raindrop\PageBundle\Resolver;

/**
 * Description of ResolverInterface
 *
 * @author teito
 */
interface ResolverInterface
{
    public function resolve($variable);
}


text:
package pkcs10

import (
	"crypto/ecdsa"
	"crypto/elliptic"
	"crypto/rand"
	_ "crypto/sha256" // required to test ECDSA signature generation
	"crypto/x509"
	"crypto/x509/pkix"
	"encoding/pem"
	"fmt"
	"os"
	"reflect"
	"testing"
)

func TestCreateCertificateSigningRequest(t *testing.T) {
	block, _ := pem.Decode([]byte(pemPrivateKey))
	rsaPriv, err := x509.ParsePKCS1PrivateKey(block.Bytes)
	if err != nil {
		t.Fatalf("Failed to parse private key: %s", err)
	}

	ecdsaPriv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
	if err != nil {
		t.Fatalf("Failed to generate ECDSA key: %s", err)
	}

	tests := []struct {
		name string
		priv interface{}
	}{
		{"RSA", rsaPriv},
		{"ECDSA", ecdsaPriv},
	}

	for _, test := range tests {
		commonName := "test.example.com"
		template := CertificateSigningRequest{
			Subject: pkix.Name{
				CommonName:   commonName,
				Organization: []string{"Σ Acme Co"},
			},
		}

		derBytes, err := CreateCertificateSigningRequest(rand.Reader, &template, test.priv)
		if err != nil {
			t.Fatalf("%s: failed to create certificate signing request: %s", test.name, err)
		}

		f, err := os.Create(fmt.Sprintf("/tmp/output-%s.csr", test.name))
		if err != nil {
			t.Fatalf("could not create output file: %s", err)
		}
		defer f.Close()

		block := &pem.Block{Type: "CERTIFICATE REQUEST", Bytes: derBytes}
		err = pem.Encode(f, block)
		if err != nil {
			t.Fatalf("could not write output to file: %s", err)
		}

		csr, err := ParseCertificateSigningRequest(derBytes)
		if err != nil {
			t.Fatalf("%s: failed to parse certificate signing request: %s", test.name, err)
		}

		if csr.Subject.CommonName != commonName {
			t.Errorf("%s: subject wasn't correctly copied from the template. Got %s, want %s", test.name, csr.Subject.CommonName, commonName)
		}

		err = csr.CheckSignature()
		if err != nil {
			t.Errorf("%s: signature verification failed: %s", test.name, err)
		}
	}
}

func TestParseCertificateSigningRequest(t *testing.T) {
	block, _ := pem.Decode([]byte(csrNoAttrs))
	csr, err := ParseCertificateSigningRequest(block.Bytes)
	if err != nil {
		t.Fatalf("Error parsing csr: %s", err)
	}

	if err = csr.CheckSignature(); err != nil {
		t.Fatalf("Signature check failed: %s", err)
	}

	if csr.Version != 0 {
		t.Errorf("Invalid CSR version. Got %d, want %d", csr.Version, 0)
	}

	expectedSubject := pkix.Name{
		Country:            []string{"NL"},
		Organization:       []string{"Σ Acme Co"},
		OrganizationalUnit: []string{"Unit"},
		Locality:           []string{"City"},
		Province:           []string{"Province"},
		StreetAddress:      nil,
		PostalCode:         nil,
		SerialNumber:       "",
		CommonName:         "test.example.com",
		Names:              []pkix.AttributeTypeAndValue{},
	}

	if !reflect.DeepEqual(csr.Subject.Country, expectedSubject.Country) {
		t.Errorf("Incorrect country. Got %v, want %v", csr.Subject.Country, expectedSubject.Country)
	}

	if !reflect.DeepEqual(csr.Subject.Organization, expectedSubject.Organization) {
		t.Errorf("Incorrect organization. Got %v, want %v", csr.Subject.Organization, expectedSubject.Organization)
	}

	if !reflect.DeepEqual(csr.Subject.OrganizationalUnit, expectedSubject.OrganizationalUnit) {
		t.Errorf("Incorrect organizational unit. Got %v, want %v", csr.Subject.OrganizationalUnit, expectedSubject.OrganizationalUnit)
	}

	if !reflect.DeepEqual(csr.Subject.Locality, expectedSubject.Locality) {
		t.Errorf("Incorrect locality. Got %v, want %v", csr.Subject.Locality, expectedSubject.Locality)
	}

	if !reflect.DeepEqual(csr.Subject.Province, expectedSubject.Province) {
		t.Errorf("Incorrect province. Got %v, want %v", csr.Subject.Province, expectedSubject.Province)
	}

	if csr.Subject.CommonName != expectedSubject.CommonName {
		t.Errorf("Incorrect common name. Got %v, want %v", csr.Subject.CommonName, expectedSubject.CommonName)
	}
}

var pemPublicKey = `-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3VoPN9PKUjKFLMwOge6+
wnDi8sbETGIx2FKXGgqtAKpzmem53kRGEQg8WeqRmp12wgp74TGpkEXsGae7RS1k
enJCnma4fii+noGH7R0qKgHvPrI2Bwa9hzsH8tHxpyM3qrXslOmD45EH9SxIDUBJ
FehNdaPbLP1gFyahKMsdfxFJLUvbUycuZSJ2ZnIgeVxwm4qbSvZInL9Iu4FzuPtg
fINKcbbovy1qq4KvPIrXzhbY3PWDc6btxCf3SE0JdE1MCPThntB62/bLMSQ7xdDR
FF53oIpvxe/SCOymfWq/LW849Ytv3Xwod0+wzAP8STXG4HSELS4UedPYeHJJJYcZ
+QIDAQAB
-----END PUBLIC KEY-----
`

var pemPrivateKey = `-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBALKZD0nEffqM1ACuak0bijtqE2QrI/KLADv7l3kK3ppMyCuLKoF0
fd7Ai2KW5ToIwzFofvJcS/STa6HA5gQenRUCAwEAAQJBAIq9amn00aS0h/CrjXqu
/ThglAXJmZhOMPVn4eiu7/ROixi9sex436MaVeMqSNf7Ex9a8fRNfWss7Sqd9eWu
RTUCIQDasvGASLqmjeffBNLTXV2A5g4t+kLVCpsEIZAycV5GswIhANEPLmax0ME/
EO+ZJ79TJKN5yiGBRsv5yvx5UiHxajEXAiAhAol5N4EUyq6I9w1rYdhPMGpLfk7A
IU2snfRJ6Nq2CQIgFrPsWRCkV+gOYcajD17rEqmuLrdIRexpg8N1DOSXoJ8CIGlS
tAboUGBxTDq3ZroNism3DaMIbKPyYrAqhKov1h5V
-----END RSA PRIVATE KEY-----
`

var csrNoAttrs = `-----BEGIN CERTIFICATE REQUEST-----
MIIBKDCB0wIBADBuMQswCQYDVQQGEwJOTDERMA8GA1UECAwIUHJvdmluY2UxDTAL
BgNVBAcMBENpdHkxEzARBgNVBAoMCs6jIEFjbWUgQ28xDTALBgNVBAsMBFVuaXQx
GTAXBgNVBAMMEHRlc3QuZXhhbXBsZS5jb20wXDANBgkqhkiG9w0BAQEFAANLADBI
AkEAspkPScR9+ozUAK5qTRuKO2oTZCsj8osAO/uXeQremkzIK4sqgXR93sCLYpbl
OgjDMWh+8lxL9JNrocDmBB6dFQIDAQABoAAwDQYJKoZIhvcNAQEFBQADQQAZOqEg
pO+V1WGCGkBkGgmM2QlnrKaFYaRgYVlSEg7Tf+n9Wb8grcbQA8xo49z8qh2PbzgX
M7Ib4RDKnANBH0R+
-----END CERTIFICATE REQUEST-----
`


text:
using System;

using MyMeta;

namespace MyMeta.ISeries
{
#if ENTERPRISE
	using System.EnterpriseServices;
	using System.Runtime.InteropServices;
	[ComVisible(false)]
#endif
	public class ClassFactory : IClassFactory
	{
        public static void Register()
        {
            InternalDriver.Register("ISERIES",
                new InternalDriver
                (typeof(ClassFactory)
                , "PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;USER ID=myUserName;PASSWORD=myPwd;DEFAULT COLLECTION=MY_LIBRARY;"
                , true));
        }
        public ClassFactory()
		{

		}

		public ITables CreateTables()
		{
			return new ISeries.ISeriesTables();
		}

		public ITable CreateTable()
		{
			return new ISeries.ISeriesTable();
		}

		public IColumn CreateColumn()
		{
			return new ISeries.ISeriesColumn();
		}

		public IColumns CreateColumns()
		{
			return new ISeries.ISeriesColumns();
		}

		public IDatabase CreateDatabase()
		{
			return new ISeries.ISeriesDatabase();
		}

		public IDatabases CreateDatabases()
		{
			return new ISeries.ISeriesDatabases();
		}

		public IProcedure CreateProcedure()
		{
			return new ISeries.ISeriesProcedure();
		}

		public IProcedures CreateProcedures()
		{
			return new ISeries.ISeriesProcedures();
		}

		public IView CreateView()
		{
			return new ISeries.ISeriesView();
		}

		public IViews CreateViews()
		{
			return new ISeries.ISeriesViews();
		}

		public IParameter CreateParameter()
		{
			return new ISeries.ISeriesParameter();
		}

		public IParameters CreateParameters()
		{
			return new ISeries.ISeriesParameters();
		}

		public IForeignKey CreateForeignKey()
		{
			return new ISeries.ISeriesForeignKey();
		}

		public IForeignKeys CreateForeignKeys()
		{
			return new ISeries.ISeriesForeignKeys();
		}

		public IIndex CreateIndex()
		{
			return new ISeries.ISeriesIndex();
		}

		public IIndexes CreateIndexes()
		{
			return new ISeries.ISeriesIndexes();
		}

		public IDomain CreateDomain()
		{
			return new ISeriesDomain();
		}

		public IDomains CreateDomains()
		{
			return new ISeriesDomains();
		}

		public IResultColumn CreateResultColumn()
		{
			return new ISeries.ISeriesResultColumn();
		}

		public IResultColumns CreateResultColumns()
		{
			return new ISeries.ISeriesResultColumns();
		}

		public IProviderType CreateProviderType()
		{
			return new ProviderType();
		}

		public IProviderTypes CreateProviderTypes()
		{
			return new ProviderTypes();
		}
        public System.Data.IDbConnection CreateConnection()
        {
            return new System.Data.OleDb.OleDbConnection();
        }

        public void ChangeDatabase(System.Data.IDbConnection connection, string database)
        {
            connection.ChangeDatabase(database);
        }
    }
}


text: <mappify id="map" datasource="datasource" config="config" />


text:
namespace etl {
namespace error {

template <typename V>
using TResult = Result<TestError, V>;

static_assert(TResult<int>(left, TestError::failure_1).is_error(), "");

static TResult<int> success_func() {
  return {right, 1};
}

static TResult<int> failure_1_func() {
  return {left, TestError::failure_1};
}

TEST(Result, basic_success) {
  auto r = success_func();
  ASSERT_FALSE(r.is_error());
  ASSERT_EQ(1, r.ref());
}

TEST(Result, basic_failure) {
  auto r = failure_1_func();
  ASSERT_TRUE(r.is_error());
  ASSERT_EQ(TestError::failure_1, r.get_status());
}

}  // namespace error
}  // namespace etl


text:
package se.bes.mhfs.plugin;

import se.bes.mhfs.manager.HFSMonitor;

import java.io.File;
import java.io.FileFilter;
import java.util.Hashtable;

public class PluginManager {
    private final Hashtable<String, Plugin> plugins = new Hashtable<>();
    private HFSMonitor monitor;

    public PluginManager(HFSMonitor monitor) {
        this.monitor = monitor;
    }

    public synchronized void registerPlugin(Plugin plugin) {
        plugins.put(plugin.getName(), plugin);
    }

    public synchronized Plugin getPluginByIdentifier(String identifier) {
        return plugins.get(identifier);
    }

    public synchronized String[] getPluginStrings() {
        String[] strings = new String[plugins.size()];
        plugins.keySet().toArray(strings);

        return strings;
    }

    public void setupPlugins() {
        File pluginDir = new File("./plugins/");

        File[] files = pluginDir.listFiles(new FileFilter() {
            public boolean accept(File pathname) {
                return pathname.isFile() && pathname.getName().endsWith(".hfsplugin");
            }
        });

        if(files == null)
            return;

        PluginClassLoader pcl = new PluginClassLoader();
        for(File f:files){
            try {
                Class c = pcl.loadClass(f.getName());
                c.getConstructors()[0].newInstance((new Object[]{monitor}));
                System.out.println("Added Plugin: " + f.getName());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}


text:
//*****************************************************************************
//
// pmm.h - Driver for the PMM Module.
//
//*****************************************************************************

#ifndef __MSP430WARE_PMM_H__
#define __MSP430WARE_PMM_H__

#include "inc/hw_memmap.h"

#ifdef __MSP430_HAS_PMM__

//*****************************************************************************
//
// If building with a C++ compiler, make all of the definitions in this header
// have a C binding.
//
//*****************************************************************************
#ifdef __cplusplus
extern "C"
{
#endif

//*****************************************************************************
//
// The following are values that can be passed to the voltageMonitorLevel
// parameter for functions: PMM_setupVoltageMonitor().
//
//*****************************************************************************
#define PMM_DISABLE_VMON                                            (VMONLVL_0)
#define PMM_DVCC_2350MV                                             (VMONLVL_1)
#define PMM_DVCC_2650MV                                             (VMONLVL_2)
#define PMM_DVCC_2850MV                                             (VMONLVL_3)
#define PMM_VMONIN_1160MV                                           (VMONLVL_7)

//*****************************************************************************
//
// The following are values that can be passed to the status parameter for
// functions: PMM_setRegulatorStatus().
//
//*****************************************************************************
#define PMM_REGULATOR_ON                                                 (0x00)
#define PMM_REGULATOR_OFF                                             PMMREGOFF

//*****************************************************************************
//
// The following are values that can be passed to the mask parameter for
// functions: PMM_enableInterrupt(), PMM_disableInterrupt(),
// PMM_getInterruptStatus(), and PMM_clearInterrupt() as well as returned by
// the PMM_getInterruptStatus() function.
//
//*****************************************************************************
#define PMM_VMON_INTERRUPT                                               VMONIE
#define PMM_LPM45_INTERRUPT                                            LPM45IFG

//*****************************************************************************
//
// Prototypes for the APIs.
//
//*****************************************************************************
extern void PMM_setupVoltageMonitor(uint8_t voltageMonitorLevel);

extern void PMM_calibrateReference(void);

extern void PMM_setRegulatorStatus(uint8_t status);

extern void PMM_unlockIOConfiguration(void);

extern void PMM_enableInterrupt(uint8_t mask);

extern void PMM_disableInterrupt(uint8_t mask);

extern uint8_t PMM_getInterruptStatus(uint8_t mask);

extern void PMM_clearInterrupt(uint8_t mask);

//*****************************************************************************
//
// Mark the end of the C bindings section for C++ compilers.
//
//*****************************************************************************
#ifdef __cplusplus
}
#endif

#endif
#endif // __MSP430WARE_PMM_H__


text:
using testing::_;
using testing::StrictMock;

namespace v8 {
namespace internal {
namespace compiler {

class LoadEliminationTest : public TypedGraphTest {
 public:
  LoadEliminationTest()
      : TypedGraphTest(3),
        simplified_(zone()),
        jsgraph_(isolate(), graph(), common(), nullptr, simplified(), nullptr) {
  }
  ~LoadEliminationTest() override = default;

 protected:
  JSGraph* jsgraph() { return &jsgraph_; }
  SimplifiedOperatorBuilder* simplified() { return &simplified_; }

 private:
  SimplifiedOperatorBuilder simplified_;
  JSGraph jsgraph_;
};

TEST_F(LoadEliminationTest, LoadElementAndLoadElement) {
  Node* object = Parameter(Type::Any(), 0);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Any(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* load1 = effect = graph()->NewNode(simplified()->LoadElement(access),
                                          object, index, effect, control);
  load_elimination.Reduce(load1);

  Node* load2 = effect = graph()->NewNode(simplified()->LoadElement(access),
                                          object, index, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load2, load1, load1, _));
  Reduction r = load_elimination.Reduce(load2);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load1, r.replacement());
}

TEST_F(LoadEliminationTest, StoreElementAndLoadElement) {
  Node* object = Parameter(Type::Any(), 0);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  Node* value = Parameter(Type::Any(), 2);
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Any(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* store = effect =
      graph()->NewNode(simplified()->StoreElement(access), object, index, value,
                       effect, control);
  load_elimination.Reduce(store);

  Node* load = effect = graph()->NewNode(simplified()->LoadElement(access),
                                         object, index, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load, value, store, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(value, r.replacement());
}

TEST_F(LoadEliminationTest, StoreElementAndStoreFieldAndLoadElement) {
  Node* object = Parameter(Type::Any(), 0);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  Node* value = Parameter(Type::Any(), 2);
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Any(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* store1 = effect =
      graph()->NewNode(simplified()->StoreElement(access), object, index, value,
                       effect, control);
  load_elimination.Reduce(store1);

  Node* store2 = effect =
      graph()->NewNode(simplified()->StoreField(AccessBuilder::ForMap()),
                       object, value, effect, control);
  load_elimination.Reduce(store2);

  Node* load = effect = graph()->NewNode(simplified()->LoadElement(access),
                                         object, index, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load, value, store2, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(value, r.replacement());
}

TEST_F(LoadEliminationTest, LoadFieldAndLoadField) {
  Node* object = Parameter(Type::Any(), 0);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess const access = {kTaggedBase,         kPointerSize,
                              MaybeHandle<Name>(), MaybeHandle<Map>(),
                              Type::Any(),         MachineType::AnyTagged(),
                              kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* load1 = effect = graph()->NewNode(simplified()->LoadField(access),
                                          object, effect, control);
  load_elimination.Reduce(load1);

  Node* load2 = effect = graph()->NewNode(simplified()->LoadField(access),
                                          object, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load2, load1, load1, _));
  Reduction r = load_elimination.Reduce(load2);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load1, r.replacement());
}

TEST_F(LoadEliminationTest, StoreFieldAndLoadField) {
  Node* object = Parameter(Type::Any(), 0);
  Node* value = Parameter(Type::Any(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess access = {kTaggedBase,         kPointerSize,
                        MaybeHandle<Name>(), MaybeHandle<Map>(),
                        Type::Any(),         MachineType::AnyTagged(),
                        kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* store = effect = graph()->NewNode(simplified()->StoreField(access),
                                          object, value, effect, control);
  load_elimination.Reduce(store);

  Node* load = effect = graph()->NewNode(simplified()->LoadField(access),
                                         object, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load, value, store, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(value, r.replacement());
}

TEST_F(LoadEliminationTest, StoreFieldAndKillFields) {
  Node* object = Parameter(Type::Any(), 0);
  Node* value = Parameter(Type::Any(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();

  FieldAccess access1 = {kTaggedBase,         kPointerSize,
                        MaybeHandle<Name>(), MaybeHandle<Map>(),
                        Type::Any(),         MachineType::AnyTagged(),
                        kNoWriteBarrier};

  // Offset that out of field cache size.
  FieldAccess access2 = {kTaggedBase,         2048 * kPointerSize,
                        MaybeHandle<Name>(), MaybeHandle<Map>(),
                        Type::Any(),         MachineType::AnyTagged(),
                        kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* store1 = effect = graph()->NewNode(simplified()->StoreField(access1),
                                          object, value, effect, control);
  load_elimination.Reduce(store1);

  // Invalidate caches of object.
  Node* store2 = effect = graph()->NewNode(simplified()->StoreField(access2),
                                         object, value, effect, control);
  load_elimination.Reduce(store2);

  Node* store3 = graph()->NewNode(simplified()->StoreField(access1),
                                          object, value, effect, control);

  Reduction r = load_elimination.Reduce(store3);

  // store3 shall not be replaced, since caches were invalidated.
  EXPECT_EQ(store3, r.replacement());
}

TEST_F(LoadEliminationTest, StoreFieldAndStoreElementAndLoadField) {
  Node* object = Parameter(Type::Any(), 0);
  Node* value = Parameter(Type::Any(), 1);
  Node* index = Parameter(Type::UnsignedSmall(), 2);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess access = {kTaggedBase,         kPointerSize,
                        MaybeHandle<Name>(), MaybeHandle<Map>(),
                        Type::Any(),         MachineType::AnyTagged(),
                        kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* store1 = effect = graph()->NewNode(simplified()->StoreField(access),
                                           object, value, effect, control);
  load_elimination.Reduce(store1);

  Node* store2 = effect = graph()->NewNode(
      simplified()->StoreElement(AccessBuilder::ForFixedArrayElement()), object,
      index, object, effect, control);
  load_elimination.Reduce(store2);

  Node* load = effect = graph()->NewNode(simplified()->LoadField(access),
                                         object, effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load, value, store2, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(value, r.replacement());
}

TEST_F(LoadEliminationTest, LoadElementOnTrueBranchOfDiamond) {
  Node* object = Parameter(Type::Any(), 0);
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  Node* check = Parameter(Type::Boolean(), 2);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Any(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* branch = graph()->NewNode(common()->Branch(), check, control);

  Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
  Node* etrue = graph()->NewNode(simplified()->LoadElement(access), object,
                                 index, effect, if_true);
  load_elimination.Reduce(etrue);

  Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
  Node* efalse = effect;

  control = graph()->NewNode(common()->Merge(2), if_true, if_false);
  effect = graph()->NewNode(common()->EffectPhi(2), etrue, efalse, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadElement(access), object,
                                index, effect, control);
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load, r.replacement());
}

TEST_F(LoadEliminationTest, LoadElementOnFalseBranchOfDiamond) {
  Node* object = Parameter(Type::Any(), 0);
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  Node* check = Parameter(Type::Boolean(), 2);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Any(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* branch = graph()->NewNode(common()->Branch(), check, control);

  Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
  Node* etrue = effect;

  Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
  Node* efalse = graph()->NewNode(simplified()->LoadElement(access), object,
                                  index, effect, if_false);
  load_elimination.Reduce(efalse);

  control = graph()->NewNode(common()->Merge(2), if_true, if_false);
  effect = graph()->NewNode(common()->EffectPhi(2), etrue, efalse, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadElement(access), object,
                                index, effect, control);
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load, r.replacement());
}

TEST_F(LoadEliminationTest, LoadFieldOnFalseBranchOfDiamond) {
  Node* object = Parameter(Type::Any(), 0);
  Node* check = Parameter(Type::Boolean(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess const access = {kTaggedBase,         kPointerSize,
                              MaybeHandle<Name>(), MaybeHandle<Map>(),
                              Type::Any(),         MachineType::AnyTagged(),
                              kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* branch = graph()->NewNode(common()->Branch(), check, control);

  Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
  Node* etrue = effect;

  Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
  Node* efalse = graph()->NewNode(simplified()->LoadField(access), object,
                                  effect, if_false);
  load_elimination.Reduce(efalse);

  control = graph()->NewNode(common()->Merge(2), if_true, if_false);
  effect = graph()->NewNode(common()->EffectPhi(2), etrue, efalse, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadField(access), object, effect,
                                control);
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load, r.replacement());
}

TEST_F(LoadEliminationTest, LoadFieldOnTrueBranchOfDiamond) {
  Node* object = Parameter(Type::Any(), 0);
  Node* check = Parameter(Type::Boolean(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess const access = {kTaggedBase,         kPointerSize,
                              MaybeHandle<Name>(), MaybeHandle<Map>(),
                              Type::Any(),         MachineType::AnyTagged(),
                              kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  Node* branch = graph()->NewNode(common()->Branch(), check, control);

  Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
  Node* etrue = graph()->NewNode(simplified()->LoadField(access), object,
                                 effect, if_true);
  load_elimination.Reduce(etrue);

  Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
  Node* efalse = effect;

  control = graph()->NewNode(common()->Merge(2), if_true, if_false);
  effect = graph()->NewNode(common()->EffectPhi(2), etrue, efalse, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadField(access), object, effect,
                                control);
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load, r.replacement());
}

TEST_F(LoadEliminationTest, LoadFieldWithTypeMismatch) {
  Node* object = Parameter(Type::Any(), 0);
  Node* value = Parameter(Type::Signed32(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess const access = {kTaggedBase,         kPointerSize,
                              MaybeHandle<Name>(), MaybeHandle<Map>(),
                              Type::Unsigned31(),  MachineType::AnyTagged(),
                              kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  effect = graph()->NewNode(simplified()->StoreField(access), object, value,
                            effect, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadField(access), object, effect,
                                control);
  EXPECT_CALL(editor, ReplaceWithValue(load, IsTypeGuard(value, _), _, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_THAT(r.replacement(), IsTypeGuard(value, _));
}

TEST_F(LoadEliminationTest, LoadElementWithTypeMismatch) {
  Node* object = Parameter(Type::Any(), 0);
  Node* index = Parameter(Type::UnsignedSmall(), 1);
  Node* value = Parameter(Type::Signed32(), 2);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  ElementAccess const access = {kTaggedBase, kPointerSize, Type::Unsigned31(),
                                MachineType::AnyTagged(), kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(graph()->start());

  effect = graph()->NewNode(simplified()->StoreElement(access), object, index,
                            value, effect, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadElement(access), object,
                                index, effect, control);
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(load, r.replacement());
}

TEST_F(LoadEliminationTest, AliasAnalysisForFinishRegion) {
  Node* value0 = Parameter(Type::Signed32(), 0);
  Node* value1 = Parameter(Type::Signed32(), 1);
  Node* effect = graph()->start();
  Node* control = graph()->start();
  FieldAccess const access = {kTaggedBase,         kPointerSize,
                              MaybeHandle<Name>(), MaybeHandle<Map>(),
                              Type::Signed32(),    MachineType::AnyTagged(),
                              kNoWriteBarrier};

  StrictMock<MockAdvancedReducerEditor> editor;
  LoadElimination load_elimination(&editor, jsgraph(), zone());

  load_elimination.Reduce(effect);

  effect = graph()->NewNode(
      common()->BeginRegion(RegionObservability::kNotObservable), effect);
  load_elimination.Reduce(effect);

  Node* object0 = effect =
      graph()->NewNode(simplified()->Allocate(Type::Any(), NOT_TENURED),
                       jsgraph()->Constant(16), effect, control);
  load_elimination.Reduce(effect);

  Node* region0 = effect =
      graph()->NewNode(common()->FinishRegion(), object0, effect);
  load_elimination.Reduce(effect);

  effect = graph()->NewNode(
      common()->BeginRegion(RegionObservability::kNotObservable), effect);
  load_elimination.Reduce(effect);

  Node* object1 = effect =
      graph()->NewNode(simplified()->Allocate(Type::Any(), NOT_TENURED),
                       jsgraph()->Constant(16), effect, control);
  load_elimination.Reduce(effect);

  Node* region1 = effect =
      graph()->NewNode(common()->FinishRegion(), object1, effect);
  load_elimination.Reduce(effect);

  effect = graph()->NewNode(simplified()->StoreField(access), region0, value0,
                            effect, control);
  load_elimination.Reduce(effect);

  effect = graph()->NewNode(simplified()->StoreField(access), region1, value1,
                            effect, control);
  load_elimination.Reduce(effect);

  Node* load = graph()->NewNode(simplified()->LoadField(access), region0,
                                effect, control);
  EXPECT_CALL(editor, ReplaceWithValue(load, value0, effect, _));
  Reduction r = load_elimination.Reduce(load);
  ASSERT_TRUE(r.Changed());
  EXPECT_EQ(value0, r.replacement());
}

}  // namespace compiler
}  // namespace internal
}  // namespace v8


text:
function print_filter(filter) {
  var f = eval(filter);
  if (typeof(f.length) != "undefined") {} else {}
  if (typeof(f.top) != "undefined") {
    f = f.top(Infinity);
  } else {}
  if (typeof(f.dimension) != "undefined") {
    f = f.dimension(function(d) {
      return "";
    }).top(Infinity);
  } else {}
  console.log(filter + "(" + f.length + ") = " + JSON.stringify(f).replace("[", "[\n\t").replace(/}\,/g, "},\n\t").replace("]", "\n]"));
};

// index_data.js
d3.json('http://fts.unocha.org/api/v1/contribution/emergency/16575.json', function(err, json) {
  if (err) console.log(err);
  var data = json;

  var dateFormat = d3.time.format('%Y-%m-%dT%X');

  json.forEach(function(d){
    d.date_formated = dateFormat.parse(d.decision_date);
  });

  console.log(data);

  // Defining the chart elements.
  var funding_status_pie = dc.pieChart("#funding_status");
  var funding_time_series = dc.lineChart("#fundign_time_series");

  // Indexing data.
  var cf = crossfilter(data);

  cf.status = cf.dimension(function(d) { return d.status; });
  cf.date = cf.dimension(function(d) { return d.date_formated });

  // Organizing the cross-filter groups.
  var all = cf.groupAll();
  var status = cf.status.group();
  var date = cf.date.group();

  funding_time_series.width(800).height(300)
    .dimension(cf.date)
    .group(date)
    .x(d3.time.scale().domain([new Date(2015, 0, 1), new Date(2015, 4, 30)]))
    .margins({ top: 20, left: 40, right: 30, bottom: 20 })
    .brushOn(true)
    .elasticY(true)
    .renderArea(true)
    .renderVerticalGridLines(true);

  funding_status_pie.width(500).height(200)
    .dimension(cf.status)
    .ordering(function(d) {
      return -d.status
    })
    .group(status)
    .colors(['#fc8d59', '#ffffbf', '#99d594'])
    .colorDomain([0, 3])
    .innerRadius(70)
    // .legend(dc.legend(['Lowest', 'Low', 'Medium-low', 'Medium-high', 'High', 'Highest']).x(2).y(30).itemHeight(13).gap(5))
    .renderLabel(true)
    .renderTitle(false)
    // .filter('5.High')
    // .filter('6.Highest')
    .colorAccessor(function(d, i) {
      return i % 4;
    });

  dc.dataCount("#count-info")
    .dimension(cf)
    .group(all);

  dc.renderAll();

});