index
int64
0
0
repo_id
stringlengths
26
205
file_path
stringlengths
51
246
content
stringlengths
8
433k
__index_level_0__
int64
0
10k
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,800
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,801
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,802
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestJson1.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,803
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,804
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,805
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttpChecksumDependency.java
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,806
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,807
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddTranscribeStreamingDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,808
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,809
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddSqsDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,810
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddNimbleCustomizations.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,811
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberSerVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,812
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java
/* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,813
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,814
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddWebsocketPlugin.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,815
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,816
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,817
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,818
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEndpointDiscoveryPlugin.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,819
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientPaginationGenerator.java
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,820
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientCommandGenerator.java
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,821
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,822
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventBridgePlugin.java
/* * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,823
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,824
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientUtils.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,825
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,826
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,827
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,828
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,829
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,830
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,831
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,832
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryMemberSerVisitor.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,833
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,834
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,835
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsCustomizeHttpBearerTokenAuthPlugin.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.aws.typescript.codegen.auth.http.integration; import java.util.List; import software.amazon.smithy.aws.typescript.codegen.AwsDependency; import software.amazon.smithy.mode...
4,836
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddAwsDefaultSigningName.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.aws.typescript.codegen.auth.http.integration; import static software.amazon.smithy.aws.typescript.codegen.AwsTraitsUtils.isAwsService; import static software.amazon.smithy...
4,837
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsCustomizeSigv4AuthPlugin.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.aws.typescript.codegen.auth.http.integration; import java.util.List; import software.amazon.smithy.aws.traits.auth.SigV4Trait; import software.amazon.smithy.aws.typescript...
4,838
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/propertyaccess/PropertyAccessor.java
/* * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
4,839
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/extensions/AwsRegionExtensionConfiguration.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
4,840
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/visitor/MemberDeserVisitor.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.aws.typescript.codegen.visitor; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.model.shapes.Shape; import software.amazon.smithy.model.tr...
4,841
0
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
Create_ds/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/validation/UnaryFunctionCall.java
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.aws.typescript.codegen.validation; import java.util.regex.Pattern; /** * For handling expressions that may be unary function calls. */ public final class UnaryFunctionC...
4,842
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/BigEventTest.java
package software.amazon.event.ruler; import java.util.List; import org.junit.Test; import static org.junit.Assert.assertTrue; public class BigEventTest { @Test public void WHEN_eventHasBigArrayAndLegacyFinderIsUsed_THEN_itWillCompleteSuccessfully_insteadOfCrashingOOM() throws Exception { // when there...
4,843
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ComparableNumberTest.java
package software.amazon.event.ruler; import org.junit.Assert; import org.junit.Test; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class Compar...
4,844
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/NameStateTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import static java.util.Arrays.asList; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static...
4,845
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ByteMachineTest.java
package software.amazon.event.ruler; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import software.amazon.event.ruler.input.ParseException; impor...
4,846
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/RulerTest.java
package software.amazon.event.ruler; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.Collections; import static org.junit.Assert.assertEquals; import static o...
4,847
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/PermutationsGenerator.java
package software.amazon.event.ruler; import java.util.ArrayList; import java.util.List; import java.util.stream.IntStream; public class PermutationsGenerator { private PermutationsGenerator() { } public static <T> List<T[]> generateAllPermutations(T[] array) { int numPermutations = IntStream.rangeCl...
4,848
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/EventTest.java
package software.amazon.event.ruler; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Stack; import static org.junit.Assert.assertEquals; import static org...
4,849
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/JsonRuleCompilerTest.java
package software.amazon.event.ruler; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonNode; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.util...
4,850
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/CIDRTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; public ...
4,851
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/PathTest.java
package software.amazon.event.ruler; import org.junit.Test; import static org.junit.Assert.assertEquals; public class PathTest { @Test public void WHEN_PushAndPopAreUsed_THEN_TheyOperateSymmetrically() { Path cut = new Path(); String[] vals = {"foo", "bar", "baz", "33"}; for (int i =...
4,852
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ByteStateTest.java
package software.amazon.event.ruler; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import static software.amazon.event.ruler.CompoundByteTransition.coalesce; import static org.junit.Assert.assertEquals; import static org.junit.Assert....
4,853
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ByteMapTest.java
package software.amazon.event.ruler; import static software.amazon.event.ruler.CompoundByteTransition.coalesce; import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.NavigableMap; import java.util.Set; import ...
4,854
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/RuleCompilerTest.java
package software.amazon.event.ruler; import com.fasterxml.jackson.core.JsonParseException; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Arrays; import java...
4,855
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/IntIntMapTest.java
package software.amazon.event.ruler; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Random; import java.uti...
4,856
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ACMachineTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.conc...
4,857
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/SubRuleContextTest.java
package software.amazon.event.ruler; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertTrue; public class SubRuleContextTest { @Test public void testGenerate() {...
4,858
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/PatternsTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import static org.junit.Assert.assertEquals; public class PatternsTest { @Test public void WHEN_MatcherIsInitialized_THEN_Getter...
4,859
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/CompoundByteTransitionTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import static software.amazon.event.ruler.CompoundByteTransition.coalesce; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEq...
4,860
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/SingleStateNameMatcherTest.java
package software.amazon.event.ruler; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.MatcherAssert.assertThat; public clas...
4,861
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/SetOperationsTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import static org.junit.Assert.assertEquals; import static software.amazon.event.ruler.SetOperations.intersection; public class SetOperationsTest { @Test public void testInte...
4,862
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/MachineComplexityEvaluatorTest.java
package software.amazon.event.ruler; import org.junit.Before; import org.junit.Test; import java.util.List; import java.util.Timer; import java.util.TimerTask; import static software.amazon.event.ruler.PermutationsGenerator.generateAllPermutations; import static org.junit.Assert.assertEquals; import static org.junit...
4,863
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/NameStateWithPatternTest.java
package software.amazon.event.ruler; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail...
4,864
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ByteMatchTest.java
package software.amazon.event.ruler; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; import java.ut...
4,865
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/CompositeByteTransitionTest.java
package software.amazon.event.ruler; import org.junit.Before; import org.junit.Test; import java.util.Collections; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Ass...
4,866
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/ArrayMembershipTest.java
package software.amazon.event.ruler; import org.junit.Test; import static org.junit.Assert.*; public class ArrayMembershipTest { @Test public void WHenARoleIsPutThenItIsRetrieved() { ArrayMembership cut = new ArrayMembership(); int[] indices = { 3, 8, 800000, 77}; for (int index : ind...
4,867
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/MachineTest.java
package software.amazon.event.ruler; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.time.Duration; import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util...
4,868
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/Benchmarks.java
package software.amazon.event.ruler; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; impor...
4,869
0
Create_ds/event-ruler/src/test/software/amazon/event
Create_ds/event-ruler/src/test/software/amazon/event/ruler/GenericMachineTest.java
package software.amazon.event.ruler; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; import java.util.Arrays; import java....
4,870
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/InputByteTest.java
package software.amazon.event.ruler.input; import org.junit.Test; import static software.amazon.event.ruler.input.InputCharacterType.BYTE; import static software.amazon.event.ruler.input.DefaultParser.ASTERISK_BYTE; import static software.amazon.event.ruler.input.DefaultParser.BACKSLASH_BYTE; import static org.junit....
4,871
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/ParserTest.java
package software.amazon.event.ruler.input; import software.amazon.event.ruler.MatchType; import org.junit.Test; import static software.amazon.event.ruler.input.DefaultParser.getParser; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertN...
4,872
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/InputMultiByteSetTest.java
package software.amazon.event.ruler.input; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import static software.amazon.event.ruler.input.InputCharacterType.MULTI_BYTE_SET; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import...
4,873
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/SuffixEqualsIgnoreCaseParserTest.java
package software.amazon.event.ruler.input; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import static org.junit.Assert.assertArrayEquals; public class SuffixEqualsIgnoreCaseParserTest { private SuffixEqualsIgnoreCaseParser parser; @Before public vo...
4,874
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/WildcardParserTest.java
package software.amazon.event.ruler.input; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; public class WildcardParserTest { private WildcardParser parser; @Before public ...
4,875
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/ParseExceptionTest.java
package software.amazon.event.ruler.input; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ParseExceptionTest { @Test public void testGetMessage() { String msg = "kaboom"; ParseException e = new ParseException(msg); assertEquals(msg, e.getMessage()); ...
4,876
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/EqualsIgnoreCaseParserTest.java
package software.amazon.event.ruler.input; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import java.util.HashSet; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; public class EqualsIgnoreCaseParserTest { private EqualsIgnoreCaseParser p...
4,877
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/MultiByteTest.java
package software.amazon.event.ruler.input; import org.junit.Test; import java.nio.charset.StandardCharsets; import static software.amazon.event.ruler.input.DefaultParser.NINE_BYTE; import static software.amazon.event.ruler.input.DefaultParser.ZERO_BYTE; import static org.junit.Assert.assertArrayEquals; import static...
4,878
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/InputWildcardTest.java
package software.amazon.event.ruler.input; import org.junit.Test; import static software.amazon.event.ruler.input.InputCharacterType.WILDCARD; import static software.amazon.event.ruler.input.DefaultParser.ASTERISK_BYTE; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import st...
4,879
0
Create_ds/event-ruler/src/test/software/amazon/event/ruler
Create_ds/event-ruler/src/test/software/amazon/event/ruler/input/SuffixParserTest.java
package software.amazon.event.ruler.input; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; public class SuffixParserTest { private SuffixParser parser; @Before public void setup() { parser = new SuffixParser(); } @Test public void t...
4,880
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/NameStateWithPattern.java
package software.amazon.event.ruler; import javax.annotation.Nullable; import java.util.Objects; import static java.util.Objects.requireNonNull; /** * Class that holds a NameState and the Pattern from the match that led to the NameState. */ public class NameStateWithPattern { private final NameState nameState...
4,881
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/ACStep.java
package software.amazon.event.ruler; import java.util.Set; /** * Represents a suggestion of a state/token combo from which there might be a transition, in an array-consistent fashion. */ class ACStep { final int fieldIndex; final NameState nameState; final Set<Double> candidateSubRuleIds; final Arra...
4,882
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/SubRuleContext.java
package software.amazon.event.ruler; /** * This class stores context regarding a sub-rule. * * A sub-rule refers to name/value pairs, usually represented by Map of String to List of Patterns, that compose a rule. * In the case of $or, one rule will have multiple name/value pairs, and this is why we use the "sub-ru...
4,883
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/ComparableNumber.java
package software.amazon.event.ruler; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; /** * Represents a number, turned into a comparable string * Numbers are allowed in the range -50**9 .. +50**9, inclusive * Comparisons are precise to 6 digits to the right of the decimal point * They are...
4,884
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/ArrayMembership.java
package software.amazon.event.ruler; /** * Represents which JSON arrays within an Event structure a particular field appears within, and at which position. * The arrays are identified using integers. */ class ArrayMembership { private static final IntIntMap EMPTY = new IntIntMap(); private IntIntMap membe...
4,885
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/Patterns.java
package software.amazon.event.ruler; import java.util.Collections; import java.util.HashSet; import java.util.Set; /** * The Patterns deal pre-processing of rules for the eventual matching against events. * It has subclasses for different match types (like ValuePatterns, Ranges, AnythingBut, etc). * This class als...
4,886
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/AnythingBut.java
package software.amazon.event.ruler; import java.util.Collections; import java.util.Objects; import java.util.Set; /** * Represents denylist like rule: any value matches if it's *not* in the anything-but list. * It supports lists whose members must be all strings or all numbers. * Numbers are treated as strings cr...
4,887
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/AnythingButEqualsIgnoreCase.java
package software.amazon.event.ruler; import java.util.Collections; import java.util.Objects; import java.util.Set; /** * Represents denylist like rule: any value matches if it's *not* in the anything-but/ignore-case list. * It supports lists whose members must be all strings. * Matching is case-insensitive */ pub...
4,888
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/MachineComplexityEvaluator.java
package software.amazon.event.ruler; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Map; import java.util.Queue; import java.util.Set; import java.util.Stack; import static software.amazon.event.ruler.MatchType.WILDCARD; /** * Evaluates the complexity of machines. ...
4,889
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/Machine.java
package software.amazon.event.ruler; /** * Represents a state machine used to match name/value patterns to rules. * The machine is thread safe. The concurrency strategy is: * Multi-thread access assumed, single-thread update enforced by synchronized on * addRule/deleteRule. * ConcurrentHashMap and Concurrent...
4,890
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/SetOperations.java
package software.amazon.event.ruler; import java.util.Set; import java.util.function.Function; class SetOperations { private SetOperations() { } /** * Add each element of the intersection of two sets to a third set. This is optimized for performance as it iterates * through the smaller set. *...
4,891
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/MatchType.java
package software.amazon.event.ruler; /** * The types of value matches that Ruler supports */ public enum MatchType { EXACT, // exact string ABSENT, // absent key pattern EXISTS, // existence pattern PREFIX, // string prefix PREFIX_EQUALS_IGNORE...
4,892
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/GenericMachine.java
package software.amazon.event.ruler; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonNode; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.H...
4,893
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/CIDR.java
package software.amazon.event.ruler; import java.net.InetAddress; import java.nio.charset.StandardCharsets; import static software.amazon.event.ruler.Constants.HEX_DIGITS; import static software.amazon.event.ruler.Constants.MAX_DIGIT; /** * Supports matching on IPv4 and IPv6 CIDR patterns, as compressed into a stri...
4,894
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/ShortcutTransition.java
package software.amazon.event.ruler; import java.util.Collections; import java.util.Set; // Shortcut transition is designed mainly for exactly match by its memory consuming because the exactly match is always // in the last byte of value, while it will take a lots of memory if we build a traverse path byte by byte. /...
4,895
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/ByteMachine.java
package software.amazon.event.ruler; import com.fasterxml.jackson.core.io.doubleparser.JavaDoubleParser; import software.amazon.event.ruler.input.InputByte; import software.amazon.event.ruler.input.InputCharacter; import software.amazon.event.ruler.input.InputCharacterType; import software.amazon.event.ruler.input.Inp...
4,896
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/IntIntMap.java
package software.amazon.event.ruler; import java.util.Arrays; import java.util.Iterator; import java.util.NoSuchElementException; /** * A fast primitive int-int map implementation. Keys and values may only be positive. */ class IntIntMap implements Cloneable { // taken from FastUtil private static final in...
4,897
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/SingleStateNameMatcher.java
package software.amazon.event.ruler; import javax.annotation.Nonnull; /** * Implements the { [ "exists" : false] } pattern by performing a binary search * of the key in the event keys. */ public class SingleStateNameMatcher implements NameMatcher<NameState> { /** * We only have one pattern for name match...
4,898
0
Create_ds/event-ruler/src/main/software/amazon/event
Create_ds/event-ruler/src/main/software/amazon/event/ruler/NameMatcher.java
package software.amazon.event.ruler; import javax.annotation.Nonnull; /** * Matches the Keys in the flattened event with the { [ "exists" : false ] } pattern. * and returns the next state if the <b>key does not exist</b> in the event. * * In the future, when we support multiple patterns, the matcher will return a...
4,899