comment
stringlengths
1
5.49k
method_body
stringlengths
27
75.2k
target_code
stringlengths
0
5.16k
method_body_after
stringlengths
27
76k
context_before
stringlengths
8
252k
context_after
stringlengths
8
253k
"I feel we can skip initializing this here as it gets initialized in the client construction before (...TRUNCATED)
"public void init(CosmosClientMetadataCachesSnapshot metadataCachesSnapshot, Function<HttpClient, Ht(...TRUNCATED)
"this.queryPlanCache = Collections.synchronizedMap(new SizeLimitingLRUCache(Constants.QUERYPLAN_CACH(...TRUNCATED)
"public void init(CosmosClientMetadataCachesSnapshot metadataCachesSnapshot, Function<HttpClient, Ht(...TRUNCATED)
"class RxDocumentClientImpl implements AsyncDocumentClient, IAuthorizationTokenProvider, CpuMemoryLi(...TRUNCATED)
"class RxDocumentClientImpl implements AsyncDocumentClient, IAuthorizationTokenProvider, CpuMemoryLi(...TRUNCATED)
"looks like we are setting timeSinceEnqueued twice? if attributes.get(KAFKA_RECORD_QUEUE_TIME_MS) is(...TRUNCATED)
"private void export(SpanData span, List<TelemetryItem> telemetryItems) {\nSpanKind kind = span.getK(...TRUNCATED)
data.getMeasurements().put("timeSinceEnqueued", (double) timeSinceEnqueuedMillis);
"private void export(SpanData span, List<TelemetryItem> telemetryItems) {\nSpanKind kind = span.getK(...TRUNCATED)
"class AzureMonitorTraceExporter implements SpanExporter {\nprivate static final Set<String> SQL_DB_(...TRUNCATED)
"class AzureMonitorTraceExporter implements SpanExporter {\nprivate static final Set<String> SQL_DB_(...TRUNCATED)
Use `UncheckedIOException` instead.
"public ResourceDeleteCancelEventData setAuthorization(String authorization) {\ntry {\nsetResourceAu(...TRUNCATED)
throw LOGGER.logExceptionAsError(new RuntimeException(e));
"public ResourceDeleteCancelEventData setAuthorization(String authorization) {\ntry {\nsetResourceAu(...TRUNCATED)
"class ResourceDeleteCancelEventData {\nstatic final ClientLogger LOGGER = new ClientLogger(Resource(...TRUNCATED)
"class ResourceDeleteCancelEventData {\nprivate static final ClientLogger LOGGER = new ClientLogger((...TRUNCATED)
"Add unit test for this as we should make sure the map is getting serialized and deserialized correc(...TRUNCATED)
"public String getClaims() {\nfinal Map<String, String> resourceClaims = getResourceClaims();\nif (!(...TRUNCATED)
return defaultSerializerAdapter.serialize(resourceClaims, SerializerEncoding.JSON);
"public String getClaims() {\nfinal Map<String, String> resourceClaims = getResourceClaims();\nif (!(...TRUNCATED)
"class ResourceDeleteCancelEventData {\nstatic final ClientLogger LOGGER = new ClientLogger(Resource(...TRUNCATED)
"class ResourceDeleteCancelEventData {\nprivate static final ClientLogger LOGGER = new ClientLogger((...TRUNCATED)
"Instead of capturing and resetting the position a `readOnly` view can be passed into `MessageDigest(...TRUNCATED)
"public static String byteArrayToHex(byte[] a) {\nStringBuilder sb = new StringBuilder(a.length * 2)(...TRUNCATED)
for (byte b: a) {
"public static String byteArrayToHex(byte[] a) {\nStringBuilder sb = new StringBuilder(a.length * 2)(...TRUNCATED)
"class UtilsImpl {\nprivate static final String CLIENT_NAME;\nprivate static final String CLIENT_VER(...TRUNCATED)
"class UtilsImpl {\nprivate static final String CLIENT_NAME;\nprivate static final String CLIENT_VER(...TRUNCATED)
Did the service remove API version? #Resolved
"public TokenServiceImpl(String url, ContainerRegistryServiceVersion apiVersion, HttpPipeline pipeli(...TRUNCATED)
"public TokenServiceImpl(String url, ContainerRegistryServiceVersion apiVersion, HttpPipeline pipeli(...TRUNCATED)
"class TokenServiceImpl {\nprivate final AuthenticationsImpl authenticationsImpl;\nprivate static fi(...TRUNCATED)
"class TokenServiceImpl {\nprivate final AuthenticationsImpl authenticationsImpl;\nprivate static fi(...TRUNCATED)
"This should be returned as a `Mono.error`, same for other locations in this file that throw #Resolv(...TRUNCATED)
"public Mono<UploadManifestResult> uploadManifest(OciManifest manifest) {\nif (manifest == null) {\n(...TRUNCATED)
throw logger.logExceptionAsError(new NullPointerException("'manifest' can't be null."));
"public Mono<UploadManifestResult> uploadManifest(OciManifest manifest) {\nif (manifest == null) {\n(...TRUNCATED)
"class ContainerRegistryBlobAsyncClient {\nprivate final AzureContainerRegistryImpl registryImplClie(...TRUNCATED)
"class ContainerRegistryBlobAsyncClient {\nprivate final AzureContainerRegistryImpl registryImplClie(...TRUNCATED)
Consider using `UncheckedIOException` when wrapping `IOException`. #Resolved
"public Mono<UploadManifestResult> uploadManifest(OciManifest manifest) {\nif (manifest == null) {\n(...TRUNCATED)
return monoError(logger, new RuntimeException(exception.getMessage()));
"public Mono<UploadManifestResult> uploadManifest(OciManifest manifest) {\nif (manifest == null) {\n(...TRUNCATED)
"class ContainerRegistryBlobAsyncClient {\nprivate final AzureContainerRegistryImpl registryImplClie(...TRUNCATED)
"class ContainerRegistryBlobAsyncClient {\nprivate final AzureContainerRegistryImpl registryImplClie(...TRUNCATED)
"`audience` should be optional and if not set, we should use the default (public cloud) audience. #R(...TRUNCATED)
"public ContainerRegistryBlobAsyncClient buildAsyncClient() {\nObjects.requireNonNull(endpoint, \"'e(...TRUNCATED)
Objects.requireNonNull(audience, "'audience' can't be null");
"public ContainerRegistryBlobAsyncClient buildAsyncClient() {\nObjects.requireNonNull(endpoint, \"'e(...TRUNCATED)
"class ContainerRegistryBlobClientBuilder implements\nConfigurationTrait<ContainerRegistryBlobClient(...TRUNCATED)
"class that implements this HttpTrait\n* interface.\n*\n* <p><strong>Note:</strong> It is important (...TRUNCATED)
"If this just returns URL to documentation, we should call this `getDocumentationLink()` or somethin(...TRUNCATED)
public String getDocumentation() { return this.documentation; }
}
public String getDocumentation() { return this.documentation; }
"class OciAnnotations {\n/*\n* Date and time on which the image was built (string, date-time as defi(...TRUNCATED)
"class OciAnnotations {\n/*\n* Date and time on which the image was built (string, date-time as defi(...TRUNCATED)
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
10
Edit dataset card