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-xray-sdk-java/aws-xray-recorder-sdk-slf4j/src/test/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-slf4j/src/test/java/com/amazonaws/xray/slf4j/SLF4JSegmentListenerTest.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 ... | 3,900 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-slf4j/src/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-slf4j/src/main/java/com/amazonaws/xray/slf4j/SLF4JSegmentListener.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 ... | 3,901 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache/http/HttpClientBuilderTest.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 ... | 3,902 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache/http/TracedResponseHandlerTest.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 ... | 3,903 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/test/java/com/amazonaws/xray/proxies/apache/http/TracedHttpClientTest.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 ... | 3,904 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache/http/HttpClientBuilder.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 ... | 3,905 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache/http/TracedResponseHandler.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 ... | 3,906 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache/http/DefaultHttpClient.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 ... | 3,907 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-apache-http/src/main/java/com/amazonaws/xray/proxies/apache/http/TracedHttpClient.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 ... | 3,908 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-sql-mysql/src/test/java/com/amazonaws/xray/sql | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-sql-mysql/src/test/java/com/amazonaws/xray/sql/mysql/SanitizeTest.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 ... | 3,909 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-sql-mysql/src/main/java/com/amazonaws/xray/sql | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-sql-mysql/src/main/java/com/amazonaws/xray/sql/mysql/TracingInterceptor.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 ... | 3,910 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/test/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/test/java/com/amazonaws/xray/utils/StringTransformTest.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 ... | 3,911 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/test/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/test/java/com/amazonaws/xray/handlers/config/AWSServiceHandlerManifestTest.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 ... | 3,912 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/utils/StringTransform.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 ... | 3,913 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSOperationHandlerResponseDescriptor.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 ... | 3,914 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSOperationHandlerRequestDescriptor.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 ... | 3,915 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSServiceHandlerManifest.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 ... | 3,916 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSOperationHandler.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 ... | 3,917 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSOperationHandlerManifest.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 ... | 3,918 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-aws-sdk-core/src/main/java/com/amazonaws/xray/handlers/config/AWSServiceHandler.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 ... | 3,919 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/AWSXRayRecorderBenchmark.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 ... | 3,920 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/entities/EntityBenchmark.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 ... | 3,921 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/entities/EntitySerializerBenchmark.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 ... | 3,922 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/entities/TraceHeaderBenchmark.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 ... | 3,923 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/entities/IdsBenchmark.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 ... | 3,924 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/strategy | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/strategy/sampling/LocalizedSamplingStrategyBenchmark.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 ... | 3,925 |
0 | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/strategy | Create_ds/aws-xray-sdk-java/aws-xray-recorder-sdk-benchmark/tst/main/java/com/amazonaws/xray/strategy/sampling/CentralizedSamplingStrategyBenchmark.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 ... | 3,926 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/SqlBenchmark.java | package com.amazonaws.xray.agent.benchmark;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.agent.benchmark.source.StatementImpl;
import com.amazonaws.xray.agent.utils.BenchmarkUtils;
import com.amazonaws.xray.sql.TracingStatement;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annot... | 3,927 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/ServletBenchmark.java | package com.amazonaws.xray.agent.benchmark;
import com.amazonaws.xray.agent.utils.BenchmarkUtils;
import com.amazonaws.xray.agent.utils.ClientProvider;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Level;
import org.open... | 3,928 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/HttpDownstreamBenchmark.java | package com.amazonaws.xray.agent.benchmark;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.agent.utils.BenchmarkUtils;
import com.amazonaws.xray.agent.utils.ClientProvider;
import com.amazonaws.xray.agent.utils.SimpleJettyServer;
import com.amazonaws.xray.entiti... | 3,929 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/AwsSdkBenchmark.java | package com.amazonaws.xray.agent.benchmark;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.agent.utils.BenchmarkUtils;
import com.amazonaws.xray.agent.utils.ClientProvider;
import com.amazonaws.xray.agent.... | 3,930 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/source/StatementImpl.java | package com.amazonaws.xray.agent.benchmark.source;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
import static org.mockito.Mo... | 3,931 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/utils/BenchmarkUtils.java | package com.amazonaws.xray.agent.utils;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.emitters.Emitter;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.strategy.sampling.AllSamplingStrategy;
... | 3,932 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/utils/SimpleJettyServer.java | package com.amazonaws.xray.agent.utils;
import com.amazonaws.xray.AWSXRay;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.util.component.AbstractLifeCycle;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
imp... | 3,933 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/utils/ClientProvider.java | package com.amazonaws.xray.agent.utils;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.services.... | 3,934 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlHandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.agent.runtime.handlers.downstream.source.sql.MyStatementImpl;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.sql.SqlSubsegme... | 3,935 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSV2HandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.emitters.Emitter;
import com.amazonaws.xray.entities.Cause;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import org.junit.After;
import org.junit.Asse... | 3,936 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlPrepareHandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.agent.runtime.handlers.downstream.source.sql.MyConnectionImpl;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.sql.SqlSubsegments;
import org.junit.After;
import org.junit... | 3,937 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/HttpClientHandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.entities.TraceHeader;
import com.amazonaws.xray.entities.Tr... | 3,938 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSHandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.SdkClientException;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.au... | 3,939 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source/http/MockHttpClient.java | package com.amazonaws.xray.agent.runtime.handlers.downstream.source.http;
import com.amazonaws.http.apache.client.impl.ConnectionManagerAwareHttpClient;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.HttpVersion;
import org.apache.http.c... | 3,940 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source/sql/MyStatementImpl.java | package com.amazonaws.xray.agent.runtime.handlers.downstream.source.sql;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
public class MyStatementImpl implements Statement {
public static final String QUERY = "SQL";
pri... | 3,941 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/source/sql/MyConnectionImpl.java | package com.amazonaws.xray.agent.runtime.handlers.downstream.source.sql;
import java.sql.Array;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.NClob;
import java.sql.PreparedStatement;
import java.sql.SQLClien... | 3,942 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/upstream/ServletHandlerIntegTest.java | package com.amazonaws.xray.agent.runtime.handlers.upstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.agent.runtime.handlers.upstream.source.SimpleHttpServlet;
import com.amazonaws.xray.emitters.UDPEmitter;
import com.amazonaws.xray.entities.Segment;
import... | 3,943 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/upstream/MockHttpServletRequest.java | package com.amazonaws.xray.agent.runtime.handlers.upstream;
import javax.servlet.AsyncContext;
import javax.servlet.DispatcherType;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRe... | 3,944 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/upstream | Create_ds/aws-xray-java-agent/aws-xray-agent-plugin/src/test/java/com/amazonaws/xray/agent/runtime/handlers/upstream/source/SimpleHttpServlet.java | package com.amazonaws.xray.agent.runtime.handlers.upstream.source;
import javax.servlet.http.HttpServlet;
public class SimpleHttpServlet extends HttpServlet {
}
| 3,945 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/AgentRuntimeLoaderTest.java | package com.amazonaws.xray.agent.runtime;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorderBuilder;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.listeners.ListenerFactory;
import com.amazonaws.xray.agent.runtime.listeners.XRayLi... | 3,946 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/config/XRaySDKConfigurationTest.java | package com.amazonaws.xray.agent.runtime.config;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.AWSXRayRecorderBuilder;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionContext;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
im... | 3,947 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/config/AgentConfigurationTest.java | package com.amazonaws.xray.agent.runtime.config;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
public class AgentConfigurationTest {
@Test
public void testEmptyMapUsesDefaults() {
AgentConfiguration defaultConfig = new AgentConfiguration();
AgentConfiguration mapCo... | 3,948 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/dispatcher/EventDispatcherTest.java | package com.amazonaws.xray.agent.runtime.dispatcher;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandlerInterface;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.powermock.modules.junit4.PowerMockRunner;
import software.amazon.disco.agent.e... | 3,949 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/listeners/XRayListenerTest.java | package com.amazonaws.xray.agent.runtime.listeners;
import com.amazonaws.xray.agent.runtime.dispatcher.EventDispatcher;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.powermock.modules.junit4.PowerMockRunner;
import software... | 3,950 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/XRayHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorderBuilder;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import com.amazonaws.xray.entities.TraceHeader;
import com.amazonaws.xray.strategy.sampling.SamplingResponse;
impo... | 3,951 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazo... | 3,952 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/HttpClientHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.entities.TraceHeader;
import com.amazonaws.xray.entities.Tr... | 3,953 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlPrepareHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import software.amazon.disco.agent.event.ServiceDownstreamRequestEvent;
impo... | 3,954 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.ResponseMetadata;
import com.amazonaws.http.HttpResponse;
import com.amazonaws.http.SdkHttpMetadata;
import com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException;
im... | 3,955 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/test/java/com/amazonaws/xray/agent/runtime/handlers/upstream/ServletHandlerTest.java | package com.amazonaws.xray.agent.runtime.handlers.upstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorderBuilder;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import com.amazonaws.xray.emitters.E... | 3,956 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/AgentRuntimeLoader.java | package com.amazonaws.xray.agent.runtime;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.listeners.ListenerFactory;
import com.amazonaws.xray.agent.runtime.listeners.XRayListenerFactory;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
i... | 3,957 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/package-info.java | /**
* Classes used for initializing the X-Ray Recorder used by the agent and handling events at runtime.
*/
package com.amazonaws.xray.agent.runtime; | 3,958 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/config/InvalidAgentConfigException.java | package com.amazonaws.xray.agent.runtime.config;
public class InvalidAgentConfigException extends RuntimeException {
public InvalidAgentConfigException(String msg) {
super(msg);
}
public InvalidAgentConfigException(String msg, Throwable err) {
super(msg, err);
}
}
| 3,959 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/config/AgentConfiguration.java | package com.amazonaws.xray.agent.runtime.config;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Map;
import java.util.Objects;
/**
* Class represents the agent configuration's JSON file. It is immutabl... | 3,960 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/config/XRaySDKConfiguration.java | package com.amazonaws.xray.agent.runtime.config;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.AWSXRayRecorderBuilder;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionContextResolver;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionS... | 3,961 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/dispatcher/EventDispatcher.java | package com.amazonaws.xray.agent.runtime.dispatcher;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandlerInterface;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import software.amazon.disco.agent.event.Event;
import java.util.HashMap;
import java.util.Map;
/**
* The d... | 3,962 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/models/XRayTransactionContextResolver.java | package com.amazonaws.xray.agent.runtime.models;
import com.amazonaws.xray.contexts.SegmentContext;
import com.amazonaws.xray.contexts.SegmentContextResolver;
public class XRayTransactionContextResolver implements SegmentContextResolver {
@Override
public SegmentContext resolve() {
return new XRayTra... | 3,963 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/models/XRayTransactionContext.java | package com.amazonaws.xray.agent.runtime.models;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.contexts.SegmentContext;
import com.amazonaws.xray.entities.Entity;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.entities.Subsegm... | 3,964 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/models/XRayTransactionState.java | package com.amazonaws.xray.agent.runtime.models;
import com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.sql.PreparedStatement;
/**
* Contains state information for each logical request/response transaction event.
*
* Events that are ... | 3,965 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/listeners/XRayListener.java | package com.amazonaws.xray.agent.runtime.listeners;
import com.amazonaws.xray.agent.runtime.dispatcher.EventDispatcher;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import software.amazon.disco.agent.event.Event;
import software.amazon.disco.agent.event.HttpServletNetworkRequest... | 3,966 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/listeners/XRayListenerFactory.java | package com.amazonaws.xray.agent.runtime.listeners;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.dispatcher.EventDispatcher;
import com.amazonaws.xray.agent.runtime.handlers.downstream.AWSHandler;
import com.amazonaws.xray.agent.runtime.handlers.downstrea... | 3,967 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/listeners/ListenerFactory.java | package com.amazonaws.xray.agent.runtime.listeners;
import software.amazon.disco.agent.event.Listener;
/**
* Factory interface that produces a listener that can be used by Disco Agents to intercept relevant
* events on the Disco event bus.
*/
public interface ListenerFactory {
/**
* Creates a Disco Event... | 3,968 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/XRayHandler.java | package com.amazonaws.xray.agent.runtime.handlers;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.AWSXRayRecorder;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import com.amazonaws.xray.entities.Entity;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities... | 3,969 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/XRayHandlerInterface.java | package com.amazonaws.xray.agent.runtime.handlers;
import software.amazon.disco.agent.event.Event;
public interface XRayHandlerInterface {
/**
* Handle the incoming request event. The event should be type checked depending on the type of event
* the handler is processing. There isn't a common interface ... | 3,970 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlPrepareHandler.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import software.amazon.disco.agent.event.Event;
import software.amazon.disco.agent.event.ServiceDownstreamResponseEvent;
impo... | 3,971 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/HttpClientHandler.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.Subsegment;
import com.amazonaws.xray.entities.TraceHeader;
import org... | 3,972 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSV2Handler.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.entities.EntityDataKeys;
import com.amazonaws.xray.entities.EntityHeaderKeys;
import com.amazonaws.xray.entities.Namespace;
import com.amazonaws.xray.entities.Subsegment... | 3,973 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSHandler.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.handlers.TracingHandler;
import software.amazon.disco.agent.event.Event;
import software.amazon.disco.agent.... | 3,974 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlHandler.java | package com.amazonaws.xray.agent.runtime.handlers.downstream;
import com.amazonaws.xray.AWSXRay;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import com.amazonaws.x... | 3,975 |
0 | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers | Create_ds/aws-xray-java-agent/aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/upstream/ServletHandler.java | package com.amazonaws.xray.agent.runtime.handlers.upstream;
import com.amazonaws.xray.agent.runtime.config.XRaySDKConfiguration;
import com.amazonaws.xray.agent.runtime.handlers.XRayHandler;
import com.amazonaws.xray.agent.runtime.models.XRayTransactionState;
import com.amazonaws.xray.entities.Segment;
import com.amaz... | 3,976 |
0 | Create_ds/dgs-examples-java-2.7/src/test/java/com/example | Create_ds/dgs-examples-java-2.7/src/test/java/com/example/demo/ReviewSubscriptionIntegrationTest.java | package com.example.demo;
import com.example.demo.generated.client.AddReviewGraphQLQuery;
import com.example.demo.generated.client.AddReviewProjectionRoot;
import com.example.demo.generated.client.ReviewAddedGraphQLQuery;
import com.example.demo.generated.client.ReviewAddedProjectionRoot;
import com.example.demo.gener... | 3,977 |
0 | Create_ds/dgs-examples-java-2.7/src/test/java/com/example | Create_ds/dgs-examples-java-2.7/src/test/java/com/example/demo/ArtworkUploadDataFetcherTest.java | package com.example.demo;
import com.example.demo.generated.types.Image;
import com.jayway.jsonpath.TypeRef;
import com.netflix.graphql.dgs.DgsQueryExecutor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
im... | 3,978 |
0 | Create_ds/dgs-examples-java-2.7/src/test/java/com/example | Create_ds/dgs-examples-java-2.7/src/test/java/com/example/demo/SecurityExampleFetchersTest.java | package com.example.demo;
import com.netflix.graphql.dgs.DgsQueryExecutor;
import com.netflix.graphql.dgs.exceptions.QueryException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.... | 3,979 |
0 | Create_ds/dgs-examples-java-2.7/src/test/java/com/example | Create_ds/dgs-examples-java-2.7/src/test/java/com/example/demo/ReviewSubscriptionTest.java | package com.example.demo;
import com.example.demo.datafetchers.ReviewsDataFetcher;
import com.example.demo.generated.client.AddReviewGraphQLQuery;
import com.example.demo.generated.client.AddReviewProjectionRoot;
import com.example.demo.generated.types.Review;
import com.example.demo.generated.types.SubmittedReview;
i... | 3,980 |
0 | Create_ds/dgs-examples-java-2.7/src/test/java/com/example | Create_ds/dgs-examples-java-2.7/src/test/java/com/example/demo/ShowsDatafetcherTest.java | package com.example.demo;
import com.example.demo.datafetchers.ReviewsDataFetcher;
import com.example.demo.datafetchers.ShowsDatafetcher;
import com.example.demo.dataloaders.ReviewsDataLoader;
import com.example.demo.dataloaders.ReviewsDataLoaderWithContext;
import com.example.demo.generated.client.*;
import com.examp... | 3,981 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/DemoApplication.java | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
/**
* Below is... | 3,982 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/directives/UppercaseDirective.java | package com.example.demo.directives;
import com.netflix.graphql.dgs.DgsDirective;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetcherFactories;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import graphql.schema.idl.SchemaDirectiveWiring;
import graphql.sc... | 3,983 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/config/SecurityConfig.java | package com.example.demo.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.Htt... | 3,984 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/config/MetricsConfig.java | package com.example.demo.config;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.logging.LoggingMeterRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MetricsConfig {
@Be... | 3,985 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/scalars/DateTimeScalar.java | package com.example.demo.scalars;
import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsRuntimeWiring;
import graphql.scalars.ExtendedScalars;
import graphql.schema.idl.RuntimeWiring;
/**
* graphql-java provides optional scalars in the graphql-java-extended-scalars library.
* We can wire a ... | 3,986 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/dataloaders/ReviewsDataLoader.java | package com.example.demo.dataloaders;
import com.example.demo.generated.types.Review;
import com.example.demo.services.DefaultReviewsService;
import com.netflix.graphql.dgs.DgsDataLoader;
import org.dataloader.MappedBatchLoader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util... | 3,987 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/dataloaders/ReviewsDataLoaderWithContext.java | package com.example.demo.dataloaders;
import com.example.demo.generated.types.Review;
import com.example.demo.services.DefaultReviewsService;
import com.netflix.graphql.dgs.DgsDataLoader;
import org.dataloader.BatchLoaderEnvironment;
import org.dataloader.MappedBatchLoader;
import org.dataloader.MappedBatchLoaderWithC... | 3,988 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/instrumentation/ExampleTracingInstrumentation.java | package com.example.demo.instrumentation;
import graphql.ExecutionResult;
import graphql.execution.instrumentation.InstrumentationContext;
import graphql.execution.instrumentation.InstrumentationState;
import graphql.execution.instrumentation.SimpleInstrumentation;
import graphql.execution.instrumentation.parameters.I... | 3,989 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/datafetchers/ArtworkUploadDataFetcher.java | package com.example.demo.datafetchers;
import com.example.demo.generated.types.Image;
import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsMutation;
import com.netflix.graphql.dgs.InputArgument;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.i... | 3,990 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/datafetchers/ReviewsDataFetcher.java | package com.example.demo.datafetchers;
import com.example.demo.dataloaders.ReviewsDataLoader;
import com.example.demo.dataloaders.ReviewsDataLoaderWithContext;
import com.example.demo.generated.DgsConstants;
import com.example.demo.generated.types.Review;
import com.example.demo.generated.types.Show;
import com.exampl... | 3,991 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/datafetchers/ShowsDatafetcher.java | package com.example.demo.datafetchers;
import com.example.demo.generated.types.Show;
import com.example.demo.services.ShowsService;
import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsQuery;
import com.netflix.graphql.dgs.InputArgument;
import java.util.List;
import java.util.stream.Collect... | 3,992 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/datafetchers/SecurityExampleFetchers.java | package com.example.demo.datafetchers;
import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsQuery;
import org.springframework.security.access.annotation.Secured;
@DgsComponent
public class SecurityExampleFetchers {
@DgsQuery
public String secureNone() {
return "Hello to ever... | 3,993 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/services/ShowsServiceImpl.java | package com.example.demo.services;
import com.example.demo.generated.types.Show;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.List;
@Service
public class ShowsServiceImpl implements ShowsService {
@Override
public List<Show> shows() {
return Arrays.asList(
... | 3,994 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/services/ReviewsService.java | package com.example.demo.services;
public interface ReviewsService {
}
| 3,995 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/services/ShowsService.java | package com.example.demo.services;
import com.example.demo.generated.types.Show;
import java.util.List;
public interface ShowsService {
List<Show> shows();
}
| 3,996 |
0 | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo | Create_ds/dgs-examples-java-2.7/src/main/java/com/example/demo/services/DefaultReviewsService.java | package com.example.demo.services;
import com.example.demo.generated.types.Review;
import com.example.demo.generated.types.SubmittedReview;
import net.datafaker.Faker;
import org.reactivestreams.Publisher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import re... | 3,997 |
0 | Create_ds/RealityMaterialExplorer/RealityMaterialExplorer/Upload/unityLibrary/src/main/java/com/unity | Create_ds/RealityMaterialExplorer/RealityMaterialExplorer/Upload/unityLibrary/src/main/java/com/unity/oculus/OculusUnity.java | package com.unity.oculus;
import android.app.Activity;
import android.view.Surface;
import android.view.SurfaceView;
import android.util.Log;
import android.view.ViewGroup;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Build;
import jav... | 3,998 |
0 | Create_ds/RealityMaterialExplorer/RealityMaterialExplorer/Upload/unityLibrary/src/main/java/com/unity3d | Create_ds/RealityMaterialExplorer/RealityMaterialExplorer/Upload/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java | // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
package com.unity3d.player;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.KeyEvent;
import an... | 3,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.