auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public ListBoxModel doFillInheritFromItems(@QueryParameter("cloud") String cloudName) { cloudName = Util.fixEmpty(cloudName); ListBoxModel result = new ListBoxModel(); <START> result.add("-- Default inheritance --", "<default>"); result.add("-- Disable inheritance --", " "); <END> Cloud cloud; if (cloudName == null) { cloud = Jenkins.get().clouds.get(KubernetesCloud.class); } else { cloud = Jenkins.get().getCloud(cloudName); } if (cloud instanceof KubernetesCloud) { List<PodTemplate> templates = ((KubernetesCloud) cloud).getTemplates(); result.addAll(templates.stream() .filter(template -> StringUtils.isNotEmpty(template.getName())) .map(PodTemplate::getName) .map(ListBoxModel.Option::new) .collect(Collectors.toList())); } return result; }</code><technical_language>similarly</technical_language>

Target:
public ListBoxModel doFillInheritFromItems(@QueryParameter("cloud") String cloudName) { cloudName = Util.fixEmpty(cloudName); ListBoxModel result = new ListBoxModel(); result.add("—Default inheritance—", "<default>"); result.add("—Disable inheritance—", " "); Cloud cloud; if (cloudName == null) { cloud = Jenkins.get().clouds.get(KubernetesCloud.class); } else { cloud = Jenkins.get().getCloud(cloudName); } if (cloud instanceof KubernetesCloud) { List<PodTemplate> templates = ((KubernetesCloud) cloud).getTemplates(); result.addAll(templates.stream() .filter(template -> StringUtils.isNotEmpty(template.getName())) .map(PodTemplate::getName) .map(ListBoxModel.Option::new) .collect(Collectors.toList())); } return result; }
Source:
<code>private ICompletionProposal[] getProbeVariableCompletions(IDocument document, int offset, String prefix){ String probe = getProbe(document, offset); String[] completionData = stpMetadataSingleton.getProbeVariableCompletions(probe, prefix); if(completionData[0].equals(STPMetadataSingleton.NO_MATCHES[0])) return NO_COMPLETIONS; <START> <END> ICompletionProposal[] result = new ICompletionProposal[completionData.length]; int prefixLength = prefix.length(); for (int i = 0; i < completionData.length; i++){ int endIndex = completionData[i].indexOf(':'); result[i] = new CompletionProposal( completionData[i].substring(prefixLength, endIndex), offset, 0, endIndex - prefixLength, null, completionData[i] + " - variable", null, null); } return result; }</code><technical_language>If NO_MATCHES length 0 need check. loop entered, is empty avoid extra work below</technical_language>

Target:
private ICompletionProposal[] getProbeVariableCompletions(IDocument document, int offset, String prefix){ String probe = getProbe(document, offset); String[] completionData = stpMetadataSingleton.getProbeVariableCompletions(probe, prefix); ICompletionProposal[] result = new ICompletionProposal[completionData.length]; int prefixLength = prefix.length(); for (int i = 0; i < completionData.length; i++){ int endIndex = completionData[i].indexOf(':'); result[i] = new CompletionProposal( completionData[i].substring(prefixLength, endIndex), offset, 0, endIndex - prefixLength, null, completionData[i] + " - variable", null, null); } return result; }
Source:
<code>private ProjectAnalysisImpl createProjectAnalysis(CeTask.Status status) { Long analysisDate = getAnalysisDate(); AnalysisImpl analysis = null; if (analysisDate != null) { analysis = new AnalysisImpl(analysisMetadataHolder.getUuid(), analysisDate); <START> } <END> return new ProjectAnalysisImpl( new CeTaskImpl(this.ceTask.getUuid(), status), createProject(this.ceTask), analysis, analysisDate == null ? system2.now() : analysisDate, ScannerContextImpl.from(reportReader.readContextProperties()), status == SUCCESS ? createQualityGate() : null, createBranch()); }</code><technical_language>getAnalysisDate() getAnalysis() save ugly mutable variable</technical_language>

Target:
private ProjectAnalysisImpl createProjectAnalysis(CeTask.Status status) { return new ProjectAnalysisImpl( new CeTaskImpl(this.ceTask.getUuid(), status), createProject(this.ceTask), getAnalysis().orElse(null), getAnalysis().map(a -> a.getDate().getTime()).orElse(system2.now()), ScannerContextImpl.from(reportReader.readContextProperties()), status == SUCCESS ? createQualityGate() : null, createBranch()); }
Source:
<code>private void validateLabelTemplate() { <START> if (labelTemplate == null) { <END> addError("labelTemplate", BLANK_LABEL_TEMPLATE_ERROR_MESSAGE); return; } if (XmlUtils.doesNotMatchUsingXsdRegex(LABEL_TEMPLATE_FORMAT_REGEX, labelTemplate)) { addError("labelTemplate", LABEL_TEMPLATE_ERROR_MESSAGE); return; } if (validateLabelTemplateTruncation(labelTemplate)) { addError("labelTemplate", String.format("Length of zero not allowed on label %s defined on pipeline %s.", labelTemplate, name)); return; } Set<String> templateVariables = getTemplateVariables(); List<String> materialNames = allowedTemplateVariables(); for (final String templateVariable : templateVariables) { if (!CollectionUtils.exists(materialNames, withNameSameAs(templateVariable))) { addError("labelTemplate", String.format(ERR_TEMPLATE, name(), templateVariable)); } } }</code><technical_language>StringUtil.isBlank</technical_language>

Target:
private void validateLabelTemplate() { if (StringUtil.isBlank(labelTemplate)) { addError("labelTemplate", BLANK_LABEL_TEMPLATE_ERROR_MESSAGE); return; } if (XmlUtils.doesNotMatchUsingXsdRegex(LABEL_TEMPLATE_FORMAT_REGEX, labelTemplate)) { addError("labelTemplate", LABEL_TEMPLATE_ERROR_MESSAGE); return; } if (validateLabelTemplateTruncation(labelTemplate)) { addError("labelTemplate", String.format("Length of zero not allowed on label %s defined on pipeline %s.", labelTemplate, name)); return; } Set<String> templateVariables = getTemplateVariables(); List<String> materialNames = allowedTemplateVariables(); for (final String templateVariable : templateVariables) { if (!CollectionUtils.exists(materialNames, withNameSameAs(templateVariable))) { addError("labelTemplate", String.format(ERR_TEMPLATE, name(), templateVariable)); } } }
Source:
<code>public void configuredTwoLabels() { PlatformLabelerNodeProperty nodeProperty = new PlatformLabelerNodeProperty(); LabelConfig labelConfig = new LabelConfig(); labelConfig.setArchitectureName(false); labelConfig.setArchitectureNameVersion(false); labelConfig.setName(false); labelConfig.setNameVersion(false); nodeProperty.setLabelConfig(labelConfig); r.jenkins.getNodeProperties().add(nodeProperty); nodeLabelCache.onConfigurationChange(); Set<LabelAtom> labelsAfter = computer.getNode().getAssignedLabels(); <START> System.err.println(labelsAfter); <END> assertThat(nodeLabelCache.getLabelsForNode(computer.getNode()).size(), is(2)); assertThat(labelsAfter.size(), is(3)); }</code><technical_language>remove this debugging output? suggestion</technical_language>

Target:
public void configuredTwoLabels() { PlatformLabelerNodeProperty nodeProperty = new PlatformLabelerNodeProperty(); LabelConfig labelConfig = new LabelConfig(); labelConfig.setArchitectureName(false); labelConfig.setArchitectureNameVersion(false); labelConfig.setName(false); labelConfig.setNameVersion(false); nodeProperty.setLabelConfig(labelConfig); r.jenkins.getNodeProperties().add(nodeProperty); nodeLabelCache.onConfigurationChange(); Collection<LabelAtom> expected = new HashSet<>(); expected.add(r.jenkins.getLabelAtom("master")); expected.add(r.jenkins.getLabelAtom(platformDetails.getArchitecture())); expected.add(r.jenkins.getLabelAtom(platformDetails.getVersion())); Set<LabelAtom> labelsAfter = computer.getNode().getAssignedLabels(); assertEquals(expected, labelsAfter); }
Source:
<code><START> public Builder withService(String serviceName, Object service) { <END> Object existing = serviceProviders.put(serviceName, service); if (existing != null) { throw new IllegalArgumentException( format("New scope \"%s\" already bound to service %s, cannot be rebound to %s", name, existing, service)); } return this; }</code><technical_language>case for a service want implement Scoped</technical_language>

Target:
public Builder withService(String serviceName, Object service) { if (service instanceof Scoped) { throw new IllegalArgumentException(String.format( "For service %s, %s must not be an instance of %s, use \"withScopedService\" instead.", serviceName, service, Scoped.class.getSimpleName())); } return doWithService(serviceName, service); }
Source:
<code>public void describeTo(final Description description) { this.matcher.describeTo( <START> description.appendText("MkAnswer body matching: ") <END> ); }</code><technical_language>@pstorch describe mismatch here</technical_language>

Target:
public void describeTo(final Description description) { this.matcher.describeTo( description.appendText("MkAnswer body bytes matching: ") ); }
Source:
<code>private List<Object> getStereotypeIconsFromProfile(Stereotype appliedStereotype) { List<Object> images = new ArrayList<Object>(); Resource eResource = appliedStereotype.eResource(); if (eResource != null) { ResourceSet resourceSet = eResource.getResourceSet(); if (resourceSet != null) { URIConverter uriConverter = resourceSet.getURIConverter(); URI normalizedURI = uriConverter.normalize(eResource.getURI()); for (org.eclipse.uml2.uml.Image icon : appliedStereotype.getIcons()) { String location = icon.getLocation(); <START> if (!UML2Util.isEmpty(location)) { <END> URI uri = URI.createURI(location).resolve(normalizedURI); URL url; try { url = new URL(uriConverter.normalize(uri).toString()); url.openStream().close(); images.add(url); } catch (MalformedURLException e) { UMLCompareEditPlugin.getPlugin().getLog().log( new Status(IStatus.WARNING, "org.eclipse.emf.compare.uml2.edit", UMLCompareEditPlugin.INSTANCE.getString( "Unable_To_Retreive_Icon_Error_Message", new Object[] {location }), e)); } catch (IOException e) { UMLCompareEditPlugin.getPlugin().getLog().log( new Status(IStatus.WARNING, "org.eclipse.emf.compare.uml2.edit", UMLCompareEditPlugin.INSTANCE.getString( "Unable_To_Retreive_Icon_Error_Message", new Object[] {location }), e)); } } else { } } } } if (images.isEmpty()) { return null; } return images; }</code><technical_language>nested if, split this method (e.g., create a getNormalizedURI(Stereotype))</technical_language>

Target:
private List<Object> getStereotypeIconsFromProfile(Stereotype appliedStereotype) { List<Object> images = new ArrayList<Object>(); for (org.eclipse.uml2.uml.Image icon : appliedStereotype.getIcons()) { String location = icon.getLocation(); if (!UML2Util.isEmpty(location)) { Object img = getIconFromLocation(icon.eResource(), location); if (img != null) { images.add(img); } } else { } } if (images.isEmpty()) { images = null; } return images; }
Source:
<code>public SkuDetails(JSONObject source) throws JSONException { String responseType = source.optString(Constants.RESPONSE_TYPE); if (responseType == null) { responseType = Constants.PRODUCT_TYPE_MANAGED; } productId = source.optString(Constants.RESPONSE_PRODUCT_ID); title = source.optString(Constants.RESPONSE_TITLE); description = source.optString(Constants.RESPONSE_DESCRIPTION); isSubscription = responseType.equalsIgnoreCase(Constants.PRODUCT_TYPE_SUBSCRIPTION); currency = source.optString(Constants.RESPONSE_PRICE_CURRENCY); priceLong = source.optLong(Constants.RESPONSE_PRICE_MICROS); priceValue = priceLong / 1000000d; priceText = source.optString(Constants.RESPONSE_PRICE); subscriptionPeriod = parsePeriod(source.optString(Constants.RESPONSE_SUBSCRIPTION_PERIOD, null)); subscriptionFreeTrialPeriod = parsePeriod(source.optString(Constants.RESPONSE_FREE_TRIAL_PERIOD, null)); introductoryPriceLong = source.optLong(Constants.RESPONSE_INTRODUCTORY_PRICE_MICROS); introductoryPriceValue = introductoryPriceLong / 1000000d; <START> introductoryPriceText = source.optString(Constants.RESPONSE_INTRODUCTORY_PRICE, null); <END> introductoryPricePeriod = parsePeriod(source.optString(Constants.RESPONSE_INTRODUCTORY_PRICE_PERIOD, null)); introductoryPriceCycles = source.optInt(Constants.RESPONSE_INTRODUCTORY_PRICE_CYCLES); }</code><technical_language>null a default scares/annoys me. Is else</technical_language>

Target:
public SkuDetails(JSONObject source) throws JSONException { String responseType = source.optString(Constants.RESPONSE_TYPE); if (responseType == null) { responseType = Constants.PRODUCT_TYPE_MANAGED; } productId = source.optString(Constants.RESPONSE_PRODUCT_ID); title = source.optString(Constants.RESPONSE_TITLE); description = source.optString(Constants.RESPONSE_DESCRIPTION); isSubscription = responseType.equalsIgnoreCase(Constants.PRODUCT_TYPE_SUBSCRIPTION); currency = source.optString(Constants.RESPONSE_PRICE_CURRENCY); priceLong = source.optLong(Constants.RESPONSE_PRICE_MICROS); priceValue = priceLong / 1000000d; priceText = source.optString(Constants.RESPONSE_PRICE); subscriptionPeriod = parsePeriod(source.optString(Constants.RESPONSE_SUBSCRIPTION_PERIOD, "P")); subscriptionFreeTrialPeriod = parsePeriod(source.optString(Constants.RESPONSE_FREE_TRIAL_PERIOD, "P")); haveTrialPeriod = subscriptionFreeTrialPeriod.toStandardSeconds().getSeconds() != 0; introductoryPriceLong = source.optLong(Constants.RESPONSE_INTRODUCTORY_PRICE_MICROS); introductoryPriceValue = introductoryPriceLong / 1000000d; introductoryPriceText = source.optString(Constants.RESPONSE_INTRODUCTORY_PRICE, null); introductoryPricePeriod = parsePeriod(source.optString(Constants.RESPONSE_INTRODUCTORY_PRICE_PERIOD, "P")); haveIntroductoryPeriod = introductoryPricePeriod.toStandardSeconds().getSeconds() != 0; introductoryPriceCycles = source.optInt(Constants.RESPONSE_INTRODUCTORY_PRICE_CYCLES); }
Source:
<code>public TrustAllSocket() { TrustManager[] trustAllCerts = new TrustManager[] {new X509ExtendedTrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted(X509Certificate[] certs, String authType) { } public void checkServerTrusted(X509Certificate[] certs, String authType) { } @Override public void checkClientTrusted(X509Certificate[] arg0, String arg1, Socket arg2) throws CertificateException { } @Override public void checkClientTrusted(X509Certificate[] arg0, String arg1, SSLEngine arg2) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] arg0, String arg1, Socket arg2) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] arg0, String arg1, SSLEngine arg2) throws CertificateException { } }}; SSLContext ctx = null; try { ctx = SSLContext.getInstance("TLS"); } catch (NoSuchAlgorithmException e1) { <START> e1.printStackTrace(); <END> } try { ctx.init(null, trustAllCerts, new java.security.SecureRandom()); } catch (KeyManagementException e) { e.printStackTrace(); } sf = ctx.getSocketFactory(); }</code><technical_language>Logging is printStackTrace(). IMO throw</technical_language>

Target:
public TrustAllSocket() throws NoSuchAlgorithmException, KeyManagementException { TrustManager[] trustAllCerts = new TrustManager[] {new X509ExtendedTrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted(X509Certificate[] certs, String authType) { } public void checkServerTrusted(X509Certificate[] certs, String authType) { } @Override public void checkClientTrusted(X509Certificate[] arg0, String arg1, Socket arg2) throws CertificateException { } @Override public void checkClientTrusted(X509Certificate[] arg0, String arg1, SSLEngine arg2) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] arg0, String arg1, Socket arg2) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] arg0, String arg1, SSLEngine arg2) throws CertificateException { } }}; SSLContext ctx = null; ctx = SSLContext.getInstance("TLS"); ctx.init(null, trustAllCerts, new java.security.SecureRandom()); sf = ctx.getSocketFactory(); }
Source:
<code>private static byte[] convertRecordToAvro(Schema schema, Map<String, Object> values) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); GenericData.Record record = new GenericData.Record(schema); values.forEach(record::put); try { <START> DataFileWriter<GenericRecord> dataFileWriter = new DataFileWriter<>(new GenericDatumWriter<>(schema)); <END> dataFileWriter.create(schema, outputStream); dataFileWriter.append(record); dataFileWriter.close(); } catch (IOException e) { throw new RuntimeException("Failed to convert to AVRO.", e); } return outputStream.toByteArray(); }</code><technical_language>try (DataFileWriter<GenericRecord> dataFileWriter = new DataFileWriter<>(new GenericDatumWriter<>(schema))) {</technical_language>

Target:
private static byte[] convertRecordToAvro(Schema schema, Map<String, Object> values) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); GenericData.Record record = new GenericData.Record(schema); values.forEach(record::put); try (DataFileWriter<GenericRecord> dataFileWriter = new DataFileWriter<>(new GenericDatumWriter<>(schema))) { dataFileWriter.create(schema, outputStream); dataFileWriter.append(record); dataFileWriter.close(); } catch (IOException e) { throw new UncheckedIOException("Failed to convert to AVRO.", e); } return outputStream.toByteArray(); }
Source:
<code>public void tearDown() { System.gc(); <START> for (int k = 0; k < testEnv.downloadFileList.size(); k++) { <END> LOGGER.log(Level.INFO, testEnv.downloadFileList.get(k).getParent() + " will now be deleted"); try { FileUtils.deleteDirectory(testEnv.downloadFileList.get(k).getParentFile()); } catch (IOException ex) { Logger.getLogger(WAStorageClientDownloadIT.class.getName()).log(Level.SEVERE, null, ex); } break; } testEnv.downloadFileList.clear(); }</code><technical_language>if a tearDown method I expect a setUp method (the temporary file creation</technical_language>

Target:
public void tearDown() throws StorageException { System.gc(); Iterator it = testEnv.downloadFileList.entrySet().iterator(); if (it.hasNext()) { Map.Entry pair = (Map.Entry) it.next(); File x = (File) pair.getValue(); LOGGER.log(Level.INFO, x.getParent() + " will now be deleted"); try { FileUtils.deleteDirectory(x.getParentFile()); } catch (IOException ex) { Logger.getLogger(WAStorageClientUploadIT.class.getName()).log(Level.SEVERE, null, ex); } } testEnv.downloadFileList.clear(); }
Source:
<code>@VisibleForTesting Call<RbPageSummary> request(@NonNull Service service, @NonNull final WikiSite wiki, @NonNull final Callback cb) { Call<RbPageSummary> call = service.get(); call.enqueue(new retrofit2.Callback<RbPageSummary>() { @Override public void onResponse(@NonNull Call<RbPageSummary> call, @NonNull Response<RbPageSummary> response) { if (response.isSuccessful()) { if (response.body() == null) { <START> cb.onSuccess(call, null); <END> return; } WikipediaApp.getInstance().getWikipediaZeroHandler().onHeaderCheck(response); RbPageSummary item = response.body(); PageTitle title = new PageTitle(null, item.getTitle(), wiki); cb.onSuccess(call, title); } else { L.v(response.message()); cb.onError(call, new IOException(response.message())); } } @Override public void onFailure(@NonNull Call<RbPageSummary> call, @NonNull Throwable t) { L.w("Failed to get random page title/summary", t); cb.onError(call, t); } }); return call; }</code><technical_language>Sorry, this onFailure</technical_language>

Target:
@VisibleForTesting Call<RbPageSummary> request(@NonNull Service service, @NonNull final WikiSite wiki, @NonNull final Callback cb) { Call<RbPageSummary> call = service.get(); call.enqueue(new retrofit2.Callback<RbPageSummary>() { @Override public void onResponse(@NonNull Call<RbPageSummary> call, @NonNull Response<RbPageSummary> response) { if (response.isSuccessful()) { if (response.body() == null) { cb.onError(call, new JsonParseException("Response missing required fields")); return; } WikipediaApp.getInstance().getWikipediaZeroHandler().onHeaderCheck(response); RbPageSummary item = response.body(); PageTitle title = new PageTitle(null, item.getTitle(), wiki); cb.onSuccess(call, title); } else { L.v(response.message()); cb.onError(call, new IOException(response.message())); } } @Override public void onFailure(@NonNull Call<RbPageSummary> call, @NonNull Throwable t) { L.w("Failed to get random page title/summary", t); cb.onError(call, t); } }); return call; }
Source:
<code>public static Domain domain(byte[] data) { <START> try (JarInputStream jin = new JarInputStream(new ByteArrayInputStream(data))) { <END> return Domain.domain(jin); } catch (Exception e) { throw Exceptions.duck(e); } }</code><technical_language>Some time past, replaced usage of ByteArrayInputStream ByteBufferInputStream avoid unnecessary synchronization. ByteBufferInputStream instead</technical_language>

Target:
public static Domain domain(byte[] data) { try (JarInputStream jin = new JarInputStream(new ByteBufferInputStream(data))) { return Domain.domain(jin); } catch (Exception e) { throw Exceptions.duck(e); } }
Source:
<code>public void start() { <START> if (client.getState() != CuratorFrameworkState.STARTED) { <END> client.start(); } if (clusterId != null) { client.getConnectionStateListenable().addListener(connectionStateListener); checkClusterIdExists(clusterId, "start"); } }</code><technical_language>is start() called more once? If is - lines for adding connectionStateListener in this block</technical_language>

Target:
public void start() { if (client.getState() != CuratorFrameworkState.STARTED) { client.start(); if (clusterId != null) { client.getConnectionStateListenable().addListener(connectionStateListener); checkClusterIdExists(clusterId, "start"); } } }
Source:
<code><START> public void selectInactiveContainersAndMarkInZK(StatsSnapshot statsSnapshot) { <END> primaryAccountService.selectInactiveContainersAndMarkInZK(statsSnapshot); try { secondaryAccountService.selectInactiveContainersAndMarkInZK(statsSnapshot); } catch (Exception e) { logger.warn("Marking containers as inactive failed for secondary", e); accountServiceMetrics.updateContainerInconsistencyCount.inc(); } }</code><technical_language>need rename this method fit in MySqlAccountService (or remove this method a mark inactive container)</technical_language>

Target:
public void selectInactiveContainersAndMarkInZK(StatsSnapshot statsSnapshot) { primaryAccountService.selectInactiveContainersAndMarkInZK(statsSnapshot); secondaryAccountService.selectInactiveContainersAndMarkInZK(statsSnapshot); }
Source:
<code>public JSONObject toJson() throws JSONException { JSONObject metadata; switch (version) { case ACCOUNT_METADATA_VERSION_1: metadata = new JSONObject(); metadata.put(ACCOUNT_METADATA_VERSION_KEY, version); metadata.put(ACCOUNT_ID_KEY, id); metadata.put(ACCOUNT_NAME_KEY, name); metadata.put(ACCOUNT_STATUS_KEY, status); JSONArray containerArray = new JSONArray(); for (Container container : containerIdToContainerMap.values()) { containerArray.put(container.toJson()); } metadata.put(CONTAINERS_KEY, containerArray); break; <START> <END> default: throw new IllegalArgumentException("Unsupported account metadata version=" + version); } return metadata; }</code><technical_language>line break</technical_language>

Target:
public JSONObject toJson() throws JSONException { JSONObject metadata = new JSONObject(); metadata.put(JSON_VERSION_KEY, CURRENT_JSON_VERSION); metadata.put(ACCOUNT_ID_KEY, id); metadata.put(ACCOUNT_NAME_KEY, name); metadata.put(STATUS_KEY, status); JSONArray containerArray = new JSONArray(); for (Container container : containerIdToContainerMap.values()) { containerArray.put(container.toJson()); } metadata.put(CONTAINERS_KEY, containerArray); return metadata; }
Source:
<code>public static KubernetesAuth fromCredentialsId(String credentialsId, String serviceAddress, String caCertData, Boolean skipTlsVerify) throws Exception { StandardCredentials c = getAuthenticationTokenCredentials(credentialsId); if (c != null) { return AuthenticationTokens.convert(KubernetesAuth.class, c); } c = getCredentials(credentialsId); <START> if (c instanceof StringCredentials) { <END> return new KubernetesAuthToken(((StringCredentials) c).getSecret().getPlainText()); } else if (c instanceof TokenProducer) { return new KubernetesAuthToken(((TokenProducer) c).getToken(serviceAddress, caCertData, skipTlsVerify)); } else if (c instanceof UsernamePasswordCredentials) { UsernamePasswordCredentials usernamePassword = (UsernamePasswordCredentials) c; return new KubernetesAuthUsernamePassword( usernamePassword.getUsername(), usernamePassword.getPassword().getPlainText() ); } else if (c instanceof StandardCertificateCredentials) { StandardCertificateCredentials certificateCredentials = (StandardCertificateCredentials) c; KeyStore keyStore = certificateCredentials.getKeyStore(); String password = certificateCredentials.getPassword().getPlainText(); String alias = keyStore.aliases().nextElement(); X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); return new KubernetesAuthCertificate( Utils.wrapWithMarker( Utils.BEGIN_CERTIFICATE, Utils.END_CERTIFICATE, Base64.encodeBase64String( certificate.getEncoded() ) ), Utils.wrapWithMarker( Utils.BEGIN_PRIVATE_KEY, Utils.END_PRIVATE_KEY, Base64.encodeBase64String( keyStore.getKey(alias, password.toCharArray()).getEncoded() ) ), password ); } else if (c instanceof DockerServerCredentials) { DockerServerCredentials certificateCredentials = (DockerServerCredentials) c; return new KubernetesAuthCertificate(certificateCredentials.getClientCertificate(), certificateCredentials.getClientKey()); } else if (c instanceof FileCredentials) { try (InputStream is = ((FileCredentials) c).getContent()) { return new KubernetesAuthKubeconfig(IOUtils.toString(is, StandardCharsets.UTF_8)); } } else { throw new Exception("Unable to use " + credentialsId + " for authentication"); } }</code><technical_language>this if...else sequence replaced implementations of AuthenticationTokenSource</technical_language>

Target:
public static KubernetesAuth fromCredentialsId(String credentialsId, String serviceAddress, String caCertData, Boolean skipTlsVerify) throws KubernetesAuthException { StandardCredentials c = getAuthenticationTokenCredentials(credentialsId); if (c != null) { return AuthenticationTokens.convert(KubernetesAuth.class, c); } else { throw new KubernetesAuthException("Unable to use " + credentialsId + " for authentication"); } }
Source:
<code>public void testSingleMatch() { writeBulkSets(); Set<Integer> sizeMatch = new HashSet<>(); sizeMatch.add(tenSizesOfMensNikes[2].getID()); sizeMatch.add(eightSizesOfWomensNikes[2].getID()); sizeMatch.add(fiveSizesOfMensVans[2].getID()); List<Integer> matches = storage.getIDsForValue(Shoe.META_SIZE, "3"); <START> Assert.assertEquals("Failed single index match [size][3]", sizeMatch, new HashSet<Integer>(matches)); <END> List<Integer> matchesOnVector = storage.getIDsForValues(new String[]{Shoe.META_SIZE}, new String[] {"3"}); Assert.assertEquals("Failed single vector index match [size][3]", sizeMatch, new HashSet<Integer>(matchesOnVector)); }</code><technical_language>moved compatibility Java8, explicit <Integer> casts necessary</technical_language>

Target:
public void testSingleMatch() { writeBulkSets(); Set<Integer> sizeMatch = new HashSet<>(); sizeMatch.add(tenSizesOfMensNikes[2].getID()); sizeMatch.add(eightSizesOfWomensNikes[2].getID()); sizeMatch.add(fiveSizesOfMensVans[2].getID()); List<Integer> matches = storage.getIDsForValue(Shoe.META_SIZE, "3"); Assert.assertEquals("Failed single index match [size][3]", sizeMatch, new HashSet<>(matches)); List<Integer> matchesOnVector = storage.getIDsForValues(new String[]{Shoe.META_SIZE}, new String[] {"3"}); Assert.assertEquals("Failed single vector index match [size][3]", sizeMatch, new HashSet<>(matchesOnVector)); }
Source:
<code>public ReferenceCounter referenceCounter() { <START> return new ReferenceCounter() { @Override public boolean increment() { return ReferenceCountingSegment.this.increment(); } @Override public Closeable decrementOnceCloseable() { return ReferenceCountingSegment.this.decrementOnceCloseable(); } @Override public void decrement() { ReferenceCountingSegment.this.decrement(); } }; <END> }</code><technical_language>ReferenceCountingSegment implement ReferenceCounter. this function return this; means classes lines of code read in a delta</technical_language>

Target:
public ReferenceCounter referenceCounter() { return this; }
Source:
<code>public int hashCode() { if (hashCode == Utils.NO_HASHCODE) { <START> int accum = 1; <END> accum = accum * Utils.HASH_PRIME + label.hashCode(); accum = accum * Utils.HASH_PRIME + leftHandSide.hashCode(); accum = accum * Utils.HASH_PRIME + rightHandSide.hashCode(); accum = accum * Utils.HASH_PRIME + requires.hashCode(); accum = accum * Utils.HASH_PRIME + ensures.hashCode(); accum = accum * Utils.HASH_PRIME + lookups.hashCode(); accum = accum * Utils.HASH_PRIME + freshConstants.hashCode(); hashCode = accum; } return hashCode; }</code><technical_language>This is problematic. read of hashCode in return hashCode return 0 read in hashCode == Utils.NO_HASHCODE returns correctly computed hashcode compiler reorder reads. ways fix it: 1) hashCode volatile prevent reordering, 2) int h = hashCode; if (h == Utils.NO_HASHCODE) { h instead of accum compute hashcode hashCode = h; } return h;</technical_language>

Target:
public int hashCode() { int h = hashCode; if (h == Utils.NO_HASHCODE) { h = 1; h = h * Utils.HASH_PRIME + label.hashCode(); h = h * Utils.HASH_PRIME + leftHandSide.hashCode(); h = h * Utils.HASH_PRIME + rightHandSide.hashCode(); h = h * Utils.HASH_PRIME + requires.hashCode(); h = h * Utils.HASH_PRIME + ensures.hashCode(); h = h * Utils.HASH_PRIME + lookups.hashCode(); h = h * Utils.HASH_PRIME + freshConstants.hashCode(); hashCode = h == 0 ? 1 : h; } return h; }
Source:
<code>private String getVmIsBeingRemovedFromExportDomainMessage() { StringBuilder builder = new StringBuilder(VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_REMOVED_FROM_EXPORT_DOMAIN.name()); <START> builder.append(String.format("$VmName %1$s", getVmName())); <END> return builder.toString(); }</code><technical_language>boom</technical_language>

Target:
private String getVmIsBeingRemovedFromExportDomainMessage() { StringBuilder builder = new StringBuilder(VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_REMOVED_FROM_EXPORT_DOMAIN.name()); if (getVmName() != null) { builder.append(String.format("$VmName %1$s", getVmName())); } return builder.toString(); }
Source:
<code>public ValidationResult validateDeletion(Sample object) { ValidationResult result = new ValidationResult(); if (isDetailedSample(object)) { long childCount = sampleStore.getChildSampleCount(object); if (childCount > 0L) { result.addError(new ValidationError(object.getName() + " has " + childCount + " child sample" + (childCount > 1 ? "s" : ""))); } } <START> try { final List<Library> libraries = libraryService.listBySampleId(object.getId()); if (libraries.isEmpty()) { result.addError(new ValidationError(object.getName() + " has " + libraries.size() + " librar" + (libraries.size() > 1 ? "ies" : "y"))); <END> } } catch (IOException e) { log.error("Failed to fetch libraries for " + object.getName(), e); result.addError(new ValidationError("Failed to check for libraries.")); } return result; }</code><technical_language>* Condition negated, fix failing test * ValidationError#forDeletionUsage construct standard error message * Pluralizer#libraries for referrer parameter of forDeletionUsage * throw IOException (already declared in DeleterService#validateDeletion) reported a validation error)</technical_language>

Target:
public ValidationResult validateDeletion(Sample object) throws IOException { ValidationResult result = new ValidationResult(); if (isDetailedSample(object)) { long childCount = sampleStore.getChildSampleCount(object); if (childCount > 0L) { result.addError(new ValidationError(object.getName() + " has " + childCount + " child sample" + (childCount > 1 ? "s" : ""))); } } final int libraries = libraryService.listBySampleId(object.getId()).size(); if (libraries > 0) { result.addError(ValidationError.forDeletionUsage(object, libraries, Pluralizer.libraries(libraries))); } return result; }
Source:
<code>public void defaultPopulatesReactorContext() { this.spring.register(Config.class).autowire(); Authentication currentPrincipal = new TestingAuthenticationToken("user", "password", "ROLE_USER"); WebSessionServerSecurityContextRepository contextRepository = new WebSessionServerSecurityContextRepository(); SecurityContext context = new SecurityContextImpl(currentPrincipal); WebTestClient client = WebTestClientBuilder.bindToWebFilters( (exchange, chain) -> contextRepository.save(exchange, context) .switchIfEmpty(chain.filter(exchange)) .flatMap(e -> chain.filter(exchange)), this.springSecurityFilterChain, (exchange, chain) -> ReactiveSecurityContextHolder.getContext() .map(SecurityContext::getAuthentication) .flatMap( principal -> exchange.getResponse() .writeWith(Mono.just(toDataBuffer(principal.getName())))) ).build(); client .get() .uri("/") <START> .headers(headers -> headers.setBasicAuth("user", "password")) <END> .exchange() .expectStatus().isOk() .expectBody(String.class).consumeWith( result -> assertThat(result.getResponseBody()).isEqualTo(currentPrincipal.getName())); }</code><technical_language>this added? odd side-effect of change</technical_language>

Target:
public void defaultPopulatesReactorContext() { this.spring.register(Config.class).autowire(); Authentication currentPrincipal = new TestingAuthenticationToken("user", "password", "ROLE_USER"); WebSessionServerSecurityContextRepository contextRepository = new WebSessionServerSecurityContextRepository(); SecurityContext context = new SecurityContextImpl(currentPrincipal); WebTestClient client = WebTestClientBuilder.bindToWebFilters( (exchange, chain) -> contextRepository.save(exchange, context) .switchIfEmpty(chain.filter(exchange)) .flatMap(e -> chain.filter(exchange)), this.springSecurityFilterChain, (exchange, chain) -> ReactiveSecurityContextHolder.getContext() .map(SecurityContext::getAuthentication) .flatMap( principal -> exchange.getResponse() .writeWith(Mono.just(toDataBuffer(principal.getName())))) ).build(); client .get() .uri("/") .exchange() .expectStatus().isOk() .expectBody(String.class).consumeWith( result -> assertThat(result.getResponseBody()).isEqualTo(currentPrincipal.getName())); }
Source:
<code>public void callsExecuteOnAccept() { final ExecutorService executor = Mockito.mock(ExecutorService.class); final BkParallel parallel = new BkParallel( Mockito.mock(Back.class), executor ); parallel.accept(Mockito.mock(Socket.class)); <START> Mockito.verify(executor, Mockito.times(1)).execute( <END> Mockito.<Runnable>any() ); }</code><technical_language>@cyberone need for Mockito.times(1)</technical_language>

Target:
public void callsExecuteOnAccept() { final ExecutorService executor = Mockito.mock(ExecutorService.class); final BkParallel parallel = new BkParallel( Mockito.mock(Back.class), executor ); parallel.accept(Mockito.mock(Socket.class)); Mockito.verify(executor).execute( Mockito.<Runnable>any() ); }
Source:
<code>public boolean onMenuItemSelected(int featureId, MenuItem item) { if (item.getItemId() == R.id.action_logout) { <START> doLogout(); <END> } return super.onMenuItemSelected(featureId, item); }</code><technical_language>return true b/c handled click</technical_language>

Target:
public boolean onMenuItemSelected(int featureId, MenuItem item) { if (item.getItemId() == R.id.action_logout) { doLogout(); return true; } return super.onMenuItemSelected(featureId, item); }
Source:
<code>public void endToEndSSLTestWithPrefetch() throws InterruptedException, IOException, InstantiationException, URISyntaxException, GeneralSecurityException { <START> DataNodeId dataNodeId = sslCluster.getClusterMap().getDataNodeIds().get(8); <END> ServerTestUtil.endToEndTest(new Port(dataNodeId.getSSLPort(), PortType.SSL), "DC1", "DC2,DC3", sslCluster, clientSSLConfig1, clientSSLSocketFactory1, routerProps, testEncryption); }</code><technical_language>do size - 1 here? I prefer a function for this rely knowledge of code</technical_language>

Target:
public void endToEndSSLTestWithPrefetch() throws InterruptedException, IOException, InstantiationException, URISyntaxException, GeneralSecurityException { DataNodeId dataNodeId = sslCluster.getPrefetchDataNode(); ServerTestUtil.endToEndTest(new Port(dataNodeId.getSSLPort(), PortType.SSL), "DC1", "DC2,DC3", sslCluster, clientSSLConfig1, clientSSLSocketFactory1, routerProps, testEncryption); }
Source:
<code>public static SpatialRDD<Geometry> createSpatialRDD(JavaRDD rawTextRDD, FormatMapper<Geometry> formatMapper) { SpatialRDD spatialRDD = new SpatialRDD<Geometry>(); spatialRDD.rawSpatialRDD = rawTextRDD.mapPartitions(formatMapper); <START> spatialRDD.fieldNames = formatMapper.readColumnNames(rawTextRDD.take(1).get(0).toString()); <END> return spatialRDD; }</code><technical_language>Please change API in RddReader. This PR touch this file</technical_language>

Target:
public static SpatialRDD<Geometry> createSpatialRDD(JavaRDD rawTextRDD, FormatMapper<Geometry> formatMapper) { SpatialRDD spatialRDD = new SpatialRDD<Geometry>(); spatialRDD.rawSpatialRDD = rawTextRDD.mapPartitions(formatMapper); spatialRDD.fieldNames = formatMapper.readPropertyNames(rawTextRDD.take(1).get(0).toString()); return spatialRDD; }
Source:
<code>public void setUp() throws Exception { <START> when(message.getReplyTo()).thenReturn(new Address[]{}); <END> when(message.getListPost()).thenReturn(new Address[]{}); when(message.getFrom()).thenReturn(new Address[]{}); }</code><technical_language>I prefer new Address[0] I easier read new Address[]{}</technical_language>

Target:
public void setUp() throws Exception { when(message.getReplyTo()).thenReturn(new Address[]{}); when(message.getHeader(ListHeaders.LIST_POST_HEADER)).thenReturn(new String[]{}); when(message.getFrom()).thenReturn(new Address[]{}); }
Source:
<code>protected Span getTracingSpan(String spanName) { if (traceContext == null) { return BlankSpan.INSTANCE; } Tracer tracer = Tracing.getTracer(); BinaryFormat binaryFormat = Tracing.getPropagationComponent().getBinaryFormat(); try { SpanContext spanContext = binaryFormat.fromByteArray(traceContext); Span span = tracer.spanBuilderWithRemoteParent(spanName, spanContext).startSpan(); span.addLink(Link.fromSpanContext(spanContext, Link.Type.PARENT_LINKED_SPAN)); <START> HashMap<String, AttributeValue> map = new HashMap<>(); <END> map.put("tx.thread", AttributeValue.stringAttributeValue(Thread.currentThread().getName())); map.put("bundle.event_count", AttributeValue.longAttributeValue(bundle.size())); map.put("bundle.caller_thread", AttributeValue.stringAttributeValue(callerThread)); span.putAttributes(map); return span; } catch (SpanContextParseException e) { log.warn("Invalid trace context: " + traceContext.length); } return BlankSpan.INSTANCE; }</code><technical_language>HashMap -> Map, var (several instances in commit)</technical_language>

Target:
protected Span getTracingSpan(String spanName) { if (traceContext == null) { return BlankSpan.INSTANCE; } Tracer tracer = Tracing.getTracer(); BinaryFormat binaryFormat = Tracing.getPropagationComponent().getBinaryFormat(); try { SpanContext spanContext = binaryFormat.fromByteArray(traceContext); Span span = tracer.spanBuilderWithRemoteParent(spanName, spanContext).startSpan(); span.addLink(Link.fromSpanContext(spanContext, Link.Type.PARENT_LINKED_SPAN)); Map<String, AttributeValue> map = new HashMap<>(); map.put("tx.thread", AttributeValue.stringAttributeValue(Thread.currentThread().getName())); map.put("bundle.event_count", AttributeValue.longAttributeValue(bundle.size())); map.put("bundle.caller_thread", AttributeValue.stringAttributeValue(callerThread)); span.putAttributes(map); return span; } catch (SpanContextParseException e) { log.warn("Invalid trace context: " + traceContext.length, e); return BlankSpan.INSTANCE; } }
Source:
<code>public Void doInLock(RedisConnection connection) throws DataAccessException { byte[] wildCard = "*".getBytes(); byte[] prefixToUse = Arrays.copyOf(metadata.getKeyPrefix(), metadata.getKeyPrefix().length + wildCard.length); System.arraycopy(wildCard, 0, prefixToUse, metadata.getKeyPrefix().length, wildCard.length); <START> connection.eval(REMOVE_KEYS_BY_PATTERN_LUA.getBytes(), ReturnType.INTEGER, 0, prefixToUse); <END> return null; }</code><technical_language>StringRedisSerializer ensure property serialization binary representation</technical_language>

Target:
public Void doInLock(RedisConnection connection) throws DataAccessException { byte[] prefixToUse = Arrays.copyOf(metadata.getKeyPrefix(), metadata.getKeyPrefix().length + WILD_CARD.length); System.arraycopy(WILD_CARD, 0, prefixToUse, metadata.getKeyPrefix().length, WILD_CARD.length); connection.eval(REMOVE_KEYS_BY_PATTERN_LUA, ReturnType.INTEGER, 0, prefixToUse); return null; }
Source:
<code>public void init() { factory = new DepositStatusFactory(); factory.setJedisPool(jedisPool); <START> jedisPool.getResource().flushAll(); <END> }</code><technical_language>I this is a test, release jedis resource done</technical_language>

Target:
public void init() { factory = new DepositStatusFactory(); factory.setJedisPool(jedisPool); jedisResource = jedisPool.getResource(); jedisResource.flushAll(); }
Source:
<code>private void updateDependency(@NotNull ModifiableRootModel moduleModel, @NotNull JavaModuleDependency dependency) { DependencySetupErrors setupErrors = getSetupErrors(moduleModel.getProject()); String moduleName = dependency.getModuleName(); ModuleManager moduleManager = ModuleManager.getInstance(moduleModel.getProject()); Module found = null; for (Module module : moduleManager.getModules()) { if (moduleName.equals(module.getName())) { found = module; } } if (found != null) { AndroidFacet androidFacet = AndroidFacet.getInstance(found); if (androidFacet == null) { ModuleOrderEntry orderEntry = moduleModel.addModuleOrderEntry(found); orderEntry.setExported(true); } else { IdeaAndroidProject androidProject = androidFacet.getIdeaAndroidProject(); String detail = ""; <START> if (androidProject != null) { String archiveType = "APK"; if (androidProject.isLibrary()) { archiveType = "AAR"; } detail = "resolves to an " + archiveType + " archive which is not supported as compilation dependency."; } <END> setupErrors.addInvalidModuleDependency(moduleModel.getModule(), found.getName(), detail); } return; } setupErrors.addMissingModule(moduleName, moduleModel.getModule().getName(), null); }</code><technical_language>matter this point if "apk" "aar" dependencies source level, compiled artifact. Detail simpler: "Java modules depend Android modules"</technical_language>

Target:
private void updateDependency(@NotNull ModifiableRootModel moduleModel, @NotNull JavaModuleDependency dependency) { DependencySetupErrors setupErrors = getSetupErrors(moduleModel.getProject()); String moduleName = dependency.getModuleName(); ModuleManager moduleManager = ModuleManager.getInstance(moduleModel.getProject()); Module found = null; for (Module module : moduleManager.getModules()) { if (moduleName.equals(module.getName())) { found = module; } } if (found != null) { AndroidFacet androidFacet = AndroidFacet.getInstance(found); if (androidFacet == null) { ModuleOrderEntry orderEntry = moduleModel.addModuleOrderEntry(found); orderEntry.setExported(true); } else { setupErrors.addInvalidModuleDependency(moduleModel.getModule(), found.getName(), "Java modules cannot depend on Android modules"); } return; } setupErrors.addMissingModule(moduleName, moduleModel.getModule().getName(), null); }
Source:
<code><START> R repositoryFor(String uriString) { <END> return repositoryFor(URI.create(uriString)); }</code><technical_language>Spacing is</technical_language>

Target:
public static <R extends DatasetRepository> R repositoryFor(String uriString) { return repositoryFor(URI.create(uriString)); }
Source:
<code>public static void main(String[] args) throws Exception { Crypto crypto = Crypto.initJava(); NetworkAccess network = NetworkAccess.buildJava(new URL("<LINK_0>")).get(); String username = args[0]; Console console = System.console(); String password = new String(console.readPassword("Enter password for " + username + ":")); LocalDate expiry = LocalDate.now().plusMonths(2); UserContext context = UserContext.signIn(username, password, network, crypto).get(); boolean isExpired = context.usernameIsExpired().get(); if (isExpired) <START> LOG.info(context.renewUsernameClaim(expiry).get() ? "Renewed username" : "Failed to renew username"); <END> }</code><technical_language>This is designed a cmd line class, this System.out</technical_language>

Target:
public static void main(String[] args) throws Exception { Crypto crypto = Crypto.initJava(); NetworkAccess network = NetworkAccess.buildJava(new URL("<LINK_0>")).get(); String username = args[0]; Console console = System.console(); String password = new String(console.readPassword("Enter password for " + username + ":")); LocalDate expiry = LocalDate.now().plusMonths(2); UserContext context = UserContext.signIn(username, password, network, crypto).get(); boolean isExpired = context.usernameIsExpired().get(); if (isExpired) System.out.println(context.renewUsernameClaim(expiry).get() ? "Renewed username" : "Failed to renew username"); }
Source:
<code>public CompilationUnitChange createChange(IProgressMonitor progressMonitor) throws CoreException { if (fEditGroups == null || fEditGroups.length == 0) return null; CompilationUnitChange result= new CompilationUnitChange(getDisplayString(), fCompilationUnit); for (TextEditGroup <START> fEditGroup : <END> fEditGroups) { String groupName= fEditGroup.getName(); for (TextEdit edit : fEditGroup.getTextEdits()) { TextChangeCompatibility.addTextEdit(result, groupName, edit); } } return result; }</code><technical_language>rename editGroup</technical_language>

Target:
public CompilationUnitChange createChange(IProgressMonitor progressMonitor) throws CoreException { if (fEditGroups == null || fEditGroups.length == 0) return null; CompilationUnitChange result= new CompilationUnitChange(getDisplayString(), fCompilationUnit); for (TextEditGroup editGroup : fEditGroups) { String groupName= editGroup.getName(); for (TextEdit edit : editGroup.getTextEdits()) { TextChangeCompatibility.addTextEdit(result, groupName, edit); } } return result; }
Source:
<code>public void testEndToEndFunctionTranslation() { String untranslated = "LN(bitwise_and(1, col1))"; TypeProvider typeProvider = TypeProvider.copyOf(ImmutableMap.of("col1", BIGINT)); CallExpression callExpression = (CallExpression) sqlToRowExpressionTranslator.translate(expression(untranslated), typeProvider); TranslatedExpression translatedExpression = translateWith( callExpression, determinismEvaluator, functionResolution, functionManager, new TestFunctionTranslator(functionManager, buildFunctionTranslator(ImmutableSet.of(TestFunctions.class))), <START> emptyMap()); <END> assertTrue(translatedExpression.getTranslated().isPresent()); assertEquals(translatedExpression.getTranslated().get(), "LNof(1 BITWISE_AND col1)"); }</code><technical_language>cover special form translated</technical_language>

Target:
public void testEndToEndFunctionTranslation() { String untranslated = "LN(bitwise_and(1, col1))"; TypeProvider typeProvider = TypeProvider.copyOf(ImmutableMap.of("col1", BIGINT)); CallExpression callExpression = (CallExpression) sqlToRowExpressionTranslator.translate(expression(untranslated), typeProvider); TranslatedExpression translatedExpression = translateWith( callExpression, new TestFunctionTranslator(functionManager, buildFunctionTranslator(ImmutableSet.of(TestFunctions.class))), emptyMap()); assertTrue(translatedExpression.getTranslated().isPresent()); assertEquals(translatedExpression.getTranslated().get(), "LNof(1 BITWISE_AND col1)"); }