auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public void testGetAccount() { Account account = api().getMyAccount(); assertNotNull(account); assertEquals("devlab1-online-vendor-devuser1", account.userName()); assertEquals("Donal Lunny", account.fullName()); assertEquals("Donal", account.firstName()); assertEquals("Lunny", account.lastName()); assertEquals("devlab1-online-vendor-devuser1@opsource.net", account.emailAddress()); assertThat(account.roles().contains(Account.RoleType.create("storage"))); assertThat(account.roles().contains(Account.RoleType.create("primary administrator"))); assertEquals("1", account.phone().countryCode()); assertEquals("1234567", account.phone().number()); assertEquals("6ac1e746-b1ea-4da5-a24e-caf1a978789d", account.organization().id()); assertEquals("Eng Customer of DevLab1-homed online sign-up Vendor", account.organization().name()); assertEquals("DevLab1Geo1", account.organization().homeGeoName()); assertEquals("apidevlab1.opsourcecloud.net", account.organization().homeGeoApiHost()); assertEquals("DEVLAB1GEO1", account.organization().homeGeoId()); <START> assertEquals("NORMAL", account.state()); <END> }</code><technical_language>Values of a user. Change for notNull asserts run anyone</technical_language>

Target:
public void testGetAccount() { Account account = api().getMyAccount(); assertNotNull(account); assertNotNull(account.userName()); assertNotNull(account.fullName()); assertNotNull(account.firstName()); assertNotNull(account.lastName()); assertNotNull(account.emailAddress()); assertNotNull(account.organization()); assertNotNull(account.organization().id()); assertNotNull(account.organization().name()); assertNotNull(account.organization().homeGeoName()); assertNotNull(account.organization().homeGeoApiHost()); assertNotNull(account.organization().homeGeoId()); assertNotNull(account.state()); }
Source:
<code>public void testUpdateConflictAccounts() throws Exception { Collection<Account> idConflictAccounts = new ArrayList<>(); idConflictAccounts.add(new AccountBuilder((short) 1, "account1", Account.AccountStatus.INACTIVE, null).build()); idConflictAccounts.add(new AccountBuilder((short) 1, "account2", Account.AccountStatus.INACTIVE, null).build()); try { createOrUpdateAccountsAndWait(idConflictAccounts); fail("Should have thrown."); } catch (IllegalArgumentException e) { } <START> assertEquals("Wrong number of accounts in accountService", 0, accountService.getAllAccounts().size()); <END> Collection<Account> nameConflictAccounts = new ArrayList<>(); nameConflictAccounts.add(new AccountBuilder((short) 1, "account1", Account.AccountStatus.INACTIVE, null).build()); nameConflictAccounts.add(new AccountBuilder((short) 2, "account1", Account.AccountStatus.INACTIVE, null).build()); try { createOrUpdateAccountsAndWait(nameConflictAccounts); fail("Should have thrown."); } catch (IllegalArgumentException e) { } assertEquals("Wrong number of accounts in accountService", 0, accountService.getAllAccounts().size()); }</code><technical_language>need sleep</technical_language>

Target:
public void testUpdateConflictAccounts() throws Exception { Collection<Account> idConflictAccounts = new ArrayList<>(); idConflictAccounts.add(new AccountBuilder((short) 1, "account1", Account.AccountStatus.INACTIVE, null).build()); idConflictAccounts.add(new AccountBuilder((short) 1, "account2", Account.AccountStatus.INACTIVE, null).build()); try { createOrUpdateAccountsAndWait(idConflictAccounts); fail("Should have thrown."); } catch (IllegalArgumentException e) { } Thread.sleep(100); assertEquals("Wrong number of accounts in accountService", 0, accountService.getAllAccounts().size()); Collection<Account> nameConflictAccounts = new ArrayList<>(); nameConflictAccounts.add(new AccountBuilder((short) 1, "account1", Account.AccountStatus.INACTIVE, null).build()); nameConflictAccounts.add(new AccountBuilder((short) 2, "account1", Account.AccountStatus.INACTIVE, null).build()); try { createOrUpdateAccountsAndWait(nameConflictAccounts); fail("Should have thrown."); } catch (IllegalArgumentException e) { } Thread.sleep(100); assertEquals("Wrong number of accounts in accountService", 0, accountService.getAllAccounts().size()); }
Source:
<code>private void testConversion(IdConverter idConverter, RestMethod restMethod, String input, String expectedOutput) throws Exception { JSONObject requestData = new JSONObject(); requestData.put(MockRestRequest.REST_METHOD_KEY, restMethod); requestData.put(MockRestRequest.URI_KEY, "/"); RestRequest restRequest = new MockRestRequest(requestData, null); IdConversionCallback callback = new IdConversionCallback(); <START> assertEquals("IdConverter should not have converted ID (Future)", expectedOutput, <END> idConverter.convert(restRequest, input, callback).get()); assertEquals("IdConverter should not have converted ID (Callback)", expectedOutput, callback.result); }</code><technical_language>Is this message correct? IDConverter is expected remove/add leading slashes. I guess this conversion, though</technical_language>

Target:
private void testConversion(IdConverter idConverter, RestMethod restMethod, String input, String expectedOutput) throws Exception { JSONObject requestData = new JSONObject(); requestData.put(MockRestRequest.REST_METHOD_KEY, restMethod); requestData.put(MockRestRequest.URI_KEY, "/"); RestRequest restRequest = new MockRestRequest(requestData, null); IdConversionCallback callback = new IdConversionCallback(); assertEquals("Converted ID does not match expected (Future)", expectedOutput, idConverter.convert(restRequest, input, callback).get()); assertEquals("Converted ID does not match expected (Callback)", expectedOutput, callback.result); }
Source:
<code><START> public Response systemScopesGet(MessageContext messageContext) throws APIManagementException{ <END> try { Map<String, String> scopeRoleMapping = APIUtil.getRESTAPIScopesForTenant(MultitenantUtils .getTenantDomain(RestApiUtil.getLoggedInUsername())); ScopeListDTO scopeListDTO = SystemScopesMappingUtil.fromScopeListToScopeListDTO(scopeRoleMapping); return Response.ok().entity(scopeListDTO).build(); } catch (Exception e) { String errorMessage = "Error when getting the list of scopes-role mapping."; RestApiUtil.handleInternalServerError(errorMessage, e, log); } return null; }</code><technical_language>Formatting issue</technical_language>

Target:
public Response systemScopesGet(MessageContext messageContext) throws APIManagementException { try { Map<String, String> scopeRoleMapping = APIUtil.getRESTAPIScopesForTenant(MultitenantUtils .getTenantDomain(RestApiUtil.getLoggedInUsername())); ScopeListDTO scopeListDTO = SystemScopesMappingUtil.fromScopeListToScopeListDTO(scopeRoleMapping); return Response.ok().entity(scopeListDTO).build(); } catch (APIManagementException e) { String errorMessage = "Error when getting the list of scopes-role mapping."; RestApiUtil.handleInternalServerError(errorMessage, e, log); } return null; }
Source:
<code><START> void setCurrentPacket(ICTFPacketInformation currentPacket) throws CTFReaderException { <END> ICTFPacketInformation prevPacket = null; fCurrentPacket = currentPacket; if (fCurrentPacket != null) { ByteBuffer bb = null; try { bb = getByteBufferAt(fCurrentPacket.getOffsetBytes(), (fCurrentPacket.getPacketSizeBits() + BITS_PER_BYTE - 1) / BITS_PER_BYTE); } catch (IOException e) { throw new CTFReaderException(e.getMessage(), e); } BitBuffer bitBuffer = new BitBuffer(bb); fBitBuffer = bitBuffer; if (fTracePacketHeaderDecl != null) { fCurrentTracePacketHeaderDef = getTracePacketHeaderDefinition(bitBuffer); } if (fStreamPacketContextDecl != null) { fCurrentStreamPacketContextDef = getStreamPacketContextDefinition(bitBuffer); if (getCurrentPacket().getTarget() != null) { fCurrentCpu = (int) getCurrentPacket().getTargetId(); } fLostEventsInThisPacket = (int) getCurrentPacket().getLostEvents(); if (fLostEventsInThisPacket != 0) { fHasLost = true; long lostEventsStartTime; int index = fStreamInputReader.getStreamInput().getIndex().indexOf(currentPacket); if (index == 0) { lostEventsStartTime = currentPacket.getTimestampBegin() + 1; } else { prevPacket = fStreamInputReader.getStreamInput().getIndex().getElement(index - 1); lostEventsStartTime = prevPacket.getTimestampEnd(); } fLostEventsDuration = Math.abs(lostEventsStartTime - currentPacket.getTimestampBegin()); } } fLastTimestamp = currentPacket.getTimestampBegin(); } else { fBitBuffer = null; fLastTimestamp = 0; } }</code><technical_language>public now</technical_language>

Target:
void setCurrentPacket(ICTFPacketInformation currentPacket) throws CTFException { ICTFPacketInformation prevPacket = null; fCurrentPacket = currentPacket; if (fCurrentPacket != null) { ByteBuffer bb = null; try { bb = getByteBufferAt(fCurrentPacket.getOffsetBytes(), (fCurrentPacket.getPacketSizeBits() + BITS_PER_BYTE - 1) / BITS_PER_BYTE); } catch (IOException e) { throw new CTFIOException(e.getMessage(), e); } BitBuffer bitBuffer = new BitBuffer(bb); fBitBuffer = bitBuffer; if (fTracePacketHeaderDecl != null) { fCurrentTracePacketHeaderDef = getTracePacketHeaderDefinition(bitBuffer); } if (fStreamPacketContextDecl != null) { fCurrentStreamPacketContextDef = getStreamPacketContextDefinition(bitBuffer); if (getCurrentPacket().getTarget() != null) { fCurrentCpu = (int) getCurrentPacket().getTargetId(); } fLostEventsInThisPacket = (int) getCurrentPacket().getLostEvents(); if (fLostEventsInThisPacket != 0) { fHasLost = true; long lostEventsStartTime; int index = fStreamInputReader.getStreamInput().getIndex().indexOf(currentPacket); if (index == 0) { lostEventsStartTime = currentPacket.getTimestampBegin() + 1; } else { prevPacket = fStreamInputReader.getStreamInput().getIndex().getElement(index - 1); lostEventsStartTime = prevPacket.getTimestampEnd(); } fLostEventsDuration = Math.abs(lostEventsStartTime - currentPacket.getTimestampBegin()); } } fLastTimestamp = currentPacket.getTimestampBegin(); } else { fBitBuffer = null; fLastTimestamp = 0; } }
Source:
<code>private <V> ListenableFuture<V> runAsyncInternal(String callableName, Callable<ListenableFuture<V>> callable, RetryStatus retryStatus) { ListenableFuture<V> newResultFuture = runInternal(callableName, callable, retryStatus); return Futures.catchingAsync(newResultFuture, Exception.class, e -> { checkState(e != null, "input exception is null"); if (shouldStopRetry(e, retryStatus)) { throw propagate(e); } <START> log.warn("Failed on executing %s with attempt %d, will perform async retry. Exception: %s", callableName, retryStatus.getAttempts(), e.getMessage()); <END> long delayInMs = getRetryDelayInMs(retryStatus); return Futures.dereference(retryExecutorService.schedule(() -> runAsyncInternal(callableName, callable, retryStatus), delayInMs, TimeUnit.MILLISECONDS)); }); }</code><technical_language>is part of "run()" method</technical_language>

Target:
private <V> ListenableFuture<V> runAsyncInternal(String callableName, Callable<ListenableFuture<V>> callable, RetryStatus retryStatus) { retryStatus.nextAttempt(); ListenableFuture<V> resultFuture; try { resultFuture = callable.call(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); throw propagate(ie); } catch (Exception e) { resultFuture = immediateFailedFuture(e); } return Futures.catchingAsync(resultFuture, Exception.class, e -> { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); throw propagate(e); } else if (retryStatus.shouldStopRetry(e)) { throw propagate(e); } log.warn(e, "Failed on executing %s with attempt %d, will perform async retry.", callableName, retryStatus.getAttempts()); return Futures.dereference(retryExecutorService.schedule(() -> runAsyncInternal(callableName, callable, retryStatus), retryStatus.getRetryDelayInMs(), MILLISECONDS)); }); }
Source:
<code>public boolean handleNetworkException(VDSNetworkException ex, VDS vds) { if (vds.getstatus() != VDSStatus.Down) { if (mUnrespondedAttempts.get() < Config.<Integer> GetValue(ConfigValues.VDSAttemptsToResetCount) || lastUpdate + (TimeUnit.SECONDS.toMillis(Config.<Integer> GetValue(ConfigValues.TimeoutToResetVdsInSeconds))) > System.currentTimeMillis()) { boolean result = false; if (vds.getstatus() != VDSStatus.Connecting && vds.getstatus() != VDSStatus.PreparingForMaintenance && vds.getstatus() != VDSStatus.NonResponsive) { setStatus(VDSStatus.Connecting, vds); result = true; } mUnrespondedAttempts.incrementAndGet(); return result; } if (vds.getstatus() == VDSStatus.NonResponsive || vds.getstatus() == VDSStatus.Maintenance) { setStatus(VDSStatus.NonResponsive, vds); return true; } setStatus(VDSStatus.NonResponsive, vds); log.errorFormat( <START> "VDS::handleNetworkException Server failed to respond, vds_id = {0}, vds_name = {1}, error = {2}", <END> vds.getId(), vds.getvds_name(), ex.getMessage()); AuditLogableBase logable = new AuditLogableBase(vds.getId()); AuditLogDirector.log(logable, AuditLogType.VDS_FAILURE); ResourceManager.getInstance().getEventListener().vdsNotResponding(vds); } return true; }</code><technical_language>VDS</technical_language>

Target:
public boolean handleNetworkException(VDSNetworkException ex, VDS vds) { if (vds.getstatus() != VDSStatus.Down) { if (mUnrespondedAttempts.get() < Config.<Integer> GetValue(ConfigValues.VDSAttemptsToResetCount) || lastUpdate + (TimeUnit.SECONDS.toMillis(Config.<Integer> GetValue(ConfigValues.TimeoutToResetVdsInSeconds))) > System.currentTimeMillis()) { boolean result = false; if (vds.getstatus() != VDSStatus.Connecting && vds.getstatus() != VDSStatus.PreparingForMaintenance && vds.getstatus() != VDSStatus.NonResponsive) { setStatus(VDSStatus.Connecting, vds); result = true; } mUnrespondedAttempts.incrementAndGet(); return result; } if (vds.getstatus() == VDSStatus.NonResponsive || vds.getstatus() == VDSStatus.Maintenance) { setStatus(VDSStatus.NonResponsive, vds); return true; } setStatus(VDSStatus.NonResponsive, vds); log.errorFormat( "Server failed to respond, vds_id = {0}, vds_name = {1}, error = {2}", vds.getId(), vds.getvds_name(), ex.getMessage()); AuditLogableBase logable = new AuditLogableBase(vds.getId()); AuditLogDirector.log(logable, AuditLogType.VDS_FAILURE); ResourceManager.getInstance().getEventListener().vdsNotResponding(vds); } return true; }
Source:
<code>public void doAct(StaplerRequest req, StaplerResponse rsp) throws IOException { <START> if (req.hasParameter("reset")) { <END> j.setSlaveAgentPort(getExpectedPort()); } rsp.sendRedirect2(req.getContextPath() + "/manage"); }</code><technical_language>ant: weird a submission enter this branch. button</technical_language>

Target:
public void doAct(StaplerRequest req, StaplerResponse rsp) throws IOException { j.forceSetSlaveAgentPort(getExpectedPort()); rsp.sendRedirect2(req.getContextPath() + "/manage"); }
Source:
<code>protected void initWidget(Widget widget) { <START> container = DataCenterClusterListUiBinder.uiBinder.createAndBindUi(this); <END> super.initWidget(container); container.insert(widget, 0); getListBox().addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { updateGroupLabel(); } }); }</code><technical_language>this off. this widget generic</technical_language>

Target:
protected void initWidget(Widget widget) { container = GroupedListUiBinder.uiBinder.createAndBindUi(this); super.initWidget(container); container.insert(widget, 0); getListBox().addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { updateGroupLabel(); } }); }
Source:
<code>public Response act(final Request request) throws IOException { <START> final Opt<Identity> optUsers = this.pass.enter(request); <END> final Response response; if (optUsers.has()) { response = this.act(request, optUsers.get()); } else { response = this.origin.act(request); } return response; }</code><technical_language>@antonini please name user</technical_language>

Target:
public Response act(final Request request) throws IOException { final Opt<Identity> user = this.pass.enter(request); final Response response; if (user.has()) { response = this.act(request, user.get()); } else { response = this.origin.act(request); } return response; }
Source:
<code>private void fetchCourseUpgradeStatus() { if (getCourseUpgradeStatus == null) { getCourseUpgradeStatus = courseApi.getCourseUpgradeStatus(courseData.getCourse().getId()); getCourseUpgradeStatus.enqueue(new Callback<CourseUpgradeResponse>() { @Override public void onResponse(Call<CourseUpgradeResponse> call, Response<CourseUpgradeResponse> response) { getCourseUpgradeStatus = null; if (getActivity() != null) { EdxCookieManager.getSharedInstance(getActivity()).setMobileCookie(); courseUpgradeData = response.body(); if (courseUpgradeData != null && courseUpgradeData.showUpsell() && !TextUtils.isEmpty(courseUpgradeData.getBasketUrl())) { PaymentsBannerFragment.Companion.loadPaymentsBannerFragment( R.id.fragment_container, courseData, null, courseUpgradeData, true, getChildFragmentManager(), true); <START> EventBus.getDefault().postSticky(new CourseUpgradeDataReceivedEvent( <END> courseData.getCourse().getId(), courseUpgradeData)); } else { final View view = getView(); if(view != null) { view.findViewById(R.id.fragment_container).setVisibility(View.GONE); } } } } @Override public void onFailure(Call<CourseUpgradeResponse> call, Throwable t) { getCourseUpgradeStatus = null; } }); } }</code><technical_language>this event is triggered send data navigation screen. I right</technical_language>

Target:
private void fetchCourseUpgradeStatus() { if (getCourseUpgradeStatus == null) { getCourseUpgradeStatus = courseApi.getCourseUpgradeStatus(courseData.getCourse().getId()); getCourseUpgradeStatus.enqueue(new Callback<CourseUpgradeResponse>() { @Override public void onResponse(Call<CourseUpgradeResponse> call, Response<CourseUpgradeResponse> response) { getCourseUpgradeStatus = null; if (getActivity() != null) { EdxCookieManager.getSharedInstance(getActivity()).setMobileCookie(); CourseUpgradeResponse courseUpgrade = response.body(); if (courseUpgrade != null && courseUpgrade.getShowUpsell() && !TextUtils.isEmpty(courseUpgrade.getBasketUrl())) { courseUpgradeData = courseUpgrade; PaymentsBannerFragment.Companion.loadPaymentsBannerFragment( R.id.fragment_container, courseData, null, courseUpgradeData, true, getChildFragmentManager(), true); } else { hidePaymentsBanner(); } } } @Override public void onFailure(Call<CourseUpgradeResponse> call, Throwable t) { getCourseUpgradeStatus = null; hidePaymentsBanner(); } }); } }
Source:
<code>public void addContents(@NonNull Container container) { container.add(new Content("buildqueue.md") { @Override public void writeTo(OutputStream os) throws IOException { PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os, "utf-8"))); try { List<Queue.Item> items = Jenkins.getInstance().getQueue().getApproximateItemsQuickly(); out.println("Current build queue has " + items.size() + " item(s)."); out.println("---------------"); for (Queue.Item item : items) { <START> out.println(" * Name of item: " + item.task.getFullDisplayName()); <END> out.println(" - In queue for: " + item.getInQueueForString()); out.println(" - Is blocked: " + item.isBlocked()); out.println(" - Why in queue: " + item.getWhy()); for (Cause cause : item.getCauses()) { out.println(" - Current queue trigger cause: " + cause.getShortDescription()); } out.println(); } } finally { out.flush(); } } } ); }</code><technical_language>require escaping. Check in other components display names rendered</technical_language>

Target:
public void addContents(@NonNull Container container) { container.add(new Content("buildqueue.md") { @Override public void writeTo(OutputStream os) throws IOException { PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os, "utf-8"))); try { List<Queue.Item> items = Jenkins.getInstance().getQueue().getApproximateItemsQuickly(); out.println("Current build queue has " + items.size() + " item(s)."); out.println("---------------"); for (Queue.Item item : items) { if (item instanceof Item) { out.println(" * Name of item: " + ((Item) item).getFullName()); } else { out.println(" * Name of item: " + Functions.escape(item.task.getFullDisplayName())); } out.println(" - In queue for: " + item.getInQueueForString()); out.println(" - Is blocked: " + item.isBlocked()); out.println(" - Why in queue: " + item.getWhy()); for (Cause cause : item.getCauses()) { out.println(" - Current queue trigger cause: " + cause.getShortDescription()); } out.println(); } } finally { out.flush(); } } } ); }
Source:
<code><START> public Class getType() <END> { return B3DState.class; }</code><technical_language>Raw type here, generic in base</technical_language>

Target:
public Class<B3DState> getType() { return B3DState.class; }
Source:
<code>private void checkNodeExists( Long nodeID ) { <START> EvalHierarchyNode node = getNodeById( nodeID.toString() ); <END> if( node == null ) { throw new IllegalArgumentException( "Node ID (" + nodeID + ") provided is invalid, node does not exist" ); } }</code><technical_language>nodeID null</technical_language>

Target:
private void checkNodeExists( Long nodeID ) { if( nodeID == null ) { throw new IllegalArgumentException( "Node ID provided is invalid (null)" ); } EvalHierarchyNode node = getNodeById( nodeID.toString() ); if( node == null ) { throw new IllegalArgumentException( "Node ID (" + nodeID + ") provided is invalid, node does not exist" ); } }
Source:
<code>private void setOperationObjectFromApiOperationAnnotation(Operation operation, io.swagger.oas.annotations.Operation apiOperation) { ReaderUtils.getStringListFromStringArray(apiOperation.tags()).ifPresent(tags -> operation.setTags(tags)); OperationParser.getTags(apiOperation.tags()).ifPresent(tag -> openApiTags.addAll(tag)); <START> operation.setSummary(apiOperation.summary()); <END> operation.setDescription(apiOperation.description()); OperationParser.getExternalDocumentation(apiOperation.externalDocs()).ifPresent(externalDocumentation -> operation.setExternalDocs(externalDocumentation)); operation.setOperationId(getOperationId(apiOperation.operationId())); OperationParser.getParametersList(apiOperation.parameters()).ifPresent(parameters -> operation.setParameters(parameters)); OperationParser.getRequestBody(apiOperation.requestBody()).ifPresent(requestBody -> operation.setRequestBody(requestBody)); operation.setDeprecated(apiOperation.deprecated()); OperationParser.getServers(apiOperation.servers()).ifPresent(servers -> operation.setServers(servers)); }</code><technical_language>annotations empty string default, please _only_ set if StringUtils.isNotBlank(...). null values in output a field set, is empty string. This happen in *all* cases reading annotation properties</technical_language>

Target:
private void setOperationObjectFromApiOperationAnnotation(Operation operation, io.swagger.oas.annotations.Operation apiOperation) { ReaderUtils.getStringListFromStringArray(apiOperation.tags()).ifPresent(tags -> operation.setTags(tags)); OperationParser.getTags(apiOperation.tags()).ifPresent(tag -> openApiTags.addAll(tag)); if (StringUtils.isNotBlank(apiOperation.summary())) { operation.setSummary(apiOperation.summary()); } if (StringUtils.isNotBlank(apiOperation.description())) { operation.setDescription(apiOperation.description()); } OperationParser.getExternalDocumentation(apiOperation.externalDocs()).ifPresent(externalDocumentation -> operation.setExternalDocs(externalDocumentation)); operation.setOperationId(getOperationId(apiOperation.operationId())); OperationParser.getRequestBody(apiOperation.requestBody()).ifPresent(requestBody -> operation.setRequestBody(requestBody)); operation.setDeprecated(apiOperation.deprecated()); OperationParser.getServers(apiOperation.servers()).ifPresent(servers -> operation.setServers(servers)); }
Source:
<code>public void setUp() throws Exception { setFixture(ModelelementsFactory.eINSTANCE.createStakeholder()); model = SysMLTestResources.createSysMLModel(houseKeeper.createResourceSet()); <START> if(model == null) { fail("The model is not created."); } <END> if(model.getAppliedProfiles().isEmpty()) { fail(" the profile Sysml has not be applied."); } defaultClass = model.createOwnedClass("defaultClass", false); default_stakeholder = (Stakeholder)StereotypeApplicationHelper.getInstance(null).applyStereotype(defaultClass, ModelelementsPackage.eINSTANCE.getStakeholder()); comment1=UMLFactory.eINSTANCE.createComment(); comment1.setBody(THIS_IS_THE_BODY_OF_COMMENT1); model.getOwnedComments().add(comment1); comment2=UMLFactory.eINSTANCE.createComment(); comment2.setBody(THIS_IS_THE_BODY_OF_COMMENT2); model.getOwnedComments().add(comment2); default_stakeholder.getConcernList().add(comment1); default_stakeholder.getConcernList().add(comment2); }</code><technical_language>necessary</technical_language>

Target:
public void setUp() { setFixture(ModelelementsFactory.eINSTANCE.createStakeholder()); model = SysMLTestResources.createSysMLModel(houseKeeper.createResourceSet()); if(model.getAppliedProfiles().isEmpty()) { fail(" the profile Sysml has not be applied."); } defaultClass = model.createOwnedClass("defaultClass", false); default_stakeholder = (Stakeholder)StereotypeApplicationHelper.getInstance(null).applyStereotype(defaultClass, ModelelementsPackage.eINSTANCE.getStakeholder()); comment1=UMLFactory.eINSTANCE.createComment(); comment1.setBody(THIS_IS_THE_BODY_OF_COMMENT1); model.getOwnedComments().add(comment1); comment2=UMLFactory.eINSTANCE.createComment(); comment2.setBody(THIS_IS_THE_BODY_OF_COMMENT2); model.getOwnedComments().add(comment2); default_stakeholder.getConcernList().add(comment1); default_stakeholder.getConcernList().add(comment2); }
Source:
<code>private boolean suppressed(File root, File resolved) { try { return suppressBare && <START> !resolved.getName().equals(Constants.DOT_GIT) <END> && Files.isSameFile(root.toPath(), resolved.toPath()); } catch (IOException e) { return false; } }</code><technical_language>Sytyle nit: line 438 Constants.DOT_GIT.equals(...). matter getName() null, a consistent style</technical_language>

Target:
private boolean suppressed(File root, File resolved) { return !allowBare && !Constants.DOT_GIT.equals(resolved.getName()) && isSameFile(root, resolved); }
Source:
<code>public void testSendAndReceive() { long blobSize = 1028; BlockingChannel channel = new SSLBlockingChannel(hostName, sslPort, 10000, 10000, 10000, 2000, sslSocketFactory); try { byte[] bytesToSend = new byte[(int) blobSize]; new Random().nextBytes(bytesToSend); ByteBuffer byteBufferToSend = ByteBuffer.wrap(bytesToSend); byteBufferToSend.putLong(0, blobSize); BoundedByteBufferSend bufferToSend = new BoundedByteBufferSend(byteBufferToSend); channel.connect(); channel.send(bufferToSend); InputStream streamResponse = channel.receive().getInputStream(); DataInputStream input = new DataInputStream(streamResponse); byte[] bytesReceived = new byte[(int) blobSize - 8]; input.readFully(bytesReceived); for (int i = 0; i < blobSize - 8; i++) { Assert.assertEquals(bytesToSend[8 + i], bytesReceived[i]); } channel.disconnect(); } catch (IOException e) { <START> fail("Unexpected error in testing SSLBlockingChannel"); <END> e.printStackTrace(); } }</code><technical_language>need catch exception. If test throws exception, exception stack trace is printed JUnit</technical_language>

Target:
public void testSendAndReceive() throws Exception { BlockingChannel channel = new SSLBlockingChannel(hostName, sslPort, 10000, 10000, 10000, 2000, sslSocketFactory); sendAndReceive(channel); channel.disconnect(); }
Source:
<code>protected void applySteering(SteeringAcceleration<Vector2> steering, float tpf) { position.add(linearVelocity.x * tpf, linearVelocity.y * tpf); linearVelocity.mulAdd(steering.linear, tpf).limit(getMaxLinearSpeed()); if (steering.isZero()) { steeringBehavior = null; stopMoving = false; return; } if (!stopMoving) { position.add(linearVelocity.x * tpf, linearVelocity.y * tpf); <START> linearVelocity.mulAdd(steering.linear, tpf).limit(maxLinearSpeed); <END> float newOrientation = vectorToAngle(linearVelocity); angularVelocity = (newOrientation - getOrientation()) * tpf; setOrientation(newOrientation); } else { orientation += angularVelocity * tpf; angularVelocity += steering.angular * tpf; } if (steering.angular != 0 && steering.linear.isZero(speedThreshold)) { stopMoving = true; } }</code><technical_language>2 lines necessary? called some lines above, if runs this block is called twice. tests move (slower weird spinning)</technical_language>

Target:
protected void applySteering(SteeringAcceleration<Vector2> steering, float tpf) { if (steering.isZero()) { steeringBehavior = null; stopMoving = false; return; } if (!stopMoving) { position.add(linearVelocity.x * tpf, linearVelocity.y * tpf); linearVelocity.mulAdd(steering.linear, tpf).limit(maxLinearSpeed); float newOrientation = vectorToAngle(linearVelocity); angularVelocity = (newOrientation - getOrientation()) * tpf; setOrientation(newOrientation); } else { orientation += angularVelocity * tpf; angularVelocity += steering.angular * tpf; } if (steering.angular != 0 && steering.linear.isZero(speedThreshold)) { stopMoving = true; } }
Source:
<code>protected List<Section> getScrolledCompositeSections() { List<Section> sections = new ArrayList<Section>(); if (scrolledComposite.getChildren().length != 0 && scrolledComposite.getChildren()[0] instanceof Composite) { Composite sectionContainer = (Composite) scrolledComposite.getChildren()[0]; <START> sectionContainer.addMouseListener(createRemoveCommentEditorListener()); <END> sections = FluentIterable.from( Iterables.filter(Arrays.asList(sectionContainer.getChildren()), Section.class)).toList(); } return sections; }</code><technical_language>This is a weird place add a listener</technical_language>

Target:
protected List<Section> getScrolledCompositeSections() { List<Section> sections = new ArrayList<Section>(); if (scrolledComposite.getChildren().length != 0 && scrolledComposite.getChildren()[0] instanceof Composite) { Composite sectionContainer = (Composite) scrolledComposite.getChildren()[0]; sections = FluentIterable.from( Iterables.filter(Arrays.asList(sectionContainer.getChildren()), Section.class)).toList(); } return sections; }
Source:
<code>public Set<cgWaypoint> loadWaypoints(final Viewport viewport, boolean excludeMine, boolean excludeDisabled, CacheType type) { final StringBuilder where = new StringBuilder(buildCoordinateWhere(dbTableWaypoints, viewport)); if (excludeMine) { where.append(" and ").append(dbTableCaches).append(".own == 0 and ").append(dbTableCaches).append(".found == 0"); } if (excludeDisabled) { where.append(" and ").append(dbTableCaches).append(".disabled == 0"); } if (type != CacheType.ALL) { <START> where.append(" and ").append(dbTableCaches).append(".type == '" + type.id + "'"); <END> } init(); final StringBuilder query = new StringBuilder("SELECT "); for (int i = 0; i < WAYPOINT_COLUMNS.length; i++) { query.append(i > 0 ? ", " : "").append(dbTableWaypoints).append('.').append(WAYPOINT_COLUMNS[i]).append(' '); } query.append(" FROM ").append(dbTableWaypoints).append(", ").append(dbTableCaches).append(" WHERE ").append(dbTableWaypoints).append(".geocode == ").append(dbTableCaches).append(".geocode and ").append(where); final Cursor cursor = database.rawQuery(query.toString(), null); try { if (!cursor.moveToFirst()) { return Collections.emptySet(); } final Set<cgWaypoint> waypoints = new HashSet<cgWaypoint>(); do { waypoints.add(createWaypointFromDatabaseContent(cursor)); } while (cursor.moveToNext()); return waypoints; } finally { cursor.close(); } }</code><technical_language>a String concatenation a StringBuilder append. Performance wise append instead of "+"</technical_language>

Target:
public Set<cgWaypoint> loadWaypoints(final Viewport viewport, boolean excludeMine, boolean excludeDisabled, CacheType type) { final StringBuilder where = new StringBuilder(buildCoordinateWhere(dbTableWaypoints, viewport)); if (excludeMine) { where.append(" and ").append(dbTableCaches).append(".own == 0 and ").append(dbTableCaches).append(".found == 0"); } if (excludeDisabled) { where.append(" and ").append(dbTableCaches).append(".disabled == 0"); } if (type != CacheType.ALL) { where.append(" and ").append(dbTableCaches).append(".type == '").append(type.id).append("'"); } init(); final StringBuilder query = new StringBuilder("SELECT "); for (int i = 0; i < WAYPOINT_COLUMNS.length; i++) { query.append(i > 0 ? ", " : "").append(dbTableWaypoints).append('.').append(WAYPOINT_COLUMNS[i]).append(' '); } query.append(" FROM ").append(dbTableWaypoints).append(", ").append(dbTableCaches).append(" WHERE ").append(dbTableWaypoints).append(".geocode == ").append(dbTableCaches).append(".geocode and ").append(where); final Cursor cursor = database.rawQuery(query.toString(), null); try { if (!cursor.moveToFirst()) { return Collections.emptySet(); } final Set<cgWaypoint> waypoints = new HashSet<cgWaypoint>(); do { waypoints.add(createWaypointFromDatabaseContent(cursor)); } while (cursor.moveToNext()); return waypoints; } finally { cursor.close(); } }
Source:
<code>public void stopPortForwarding() { if(!isPortForwarding(pod)) return; IPortForwardable cap = REGISTRY.remove(pod); try { final MessageConsole console = ConsoleUtils.findMessageConsole(getMessageConsoleName()); MessageConsoleStream stream = console.newMessageStream(); stream.println("Stopping port-forwarding..."); cap.stop(); for (int i = 0; i < 50 && hasPortInUse(); i++) { if(i % 10 == 0) { stream.println("Waiting for port-forwarding to stop..."); } try { Thread.sleep(100); } catch (InterruptedException e) { break; } } for (IPortForwardable.PortPair port : ports) { stream.println(NLS.bind("{0} {1} -> {2}", new Object {port.getName(), port.getLocalPort(), port.getRemotePort()})); } if(!hasPortInUse()) { stream.println("done."); } else { stream.println("Ports remain in use yet. Stopping ports is requested and eventually will be completed."); <START> } <END> ConsoleUtils.displayConsoleView(console); firePropertyChange(PROPERTY_PORT_FORWARDING, true, getPortForwarding()); updatePortForwardingAllowed(); }finally { ConsoleUtils.deregisterConsoleListener(consoleListener); } }</code><technical_language>shouldnt close stream done stopping forwarding</technical_language>

Target:
public void stopPortForwarding() { if(!isPortForwarding(pod)) return; IPortForwardable cap = REGISTRY.remove(pod); MessageConsoleStream stream = null; try { final MessageConsole console = ConsoleUtils.findMessageConsole(getMessageConsoleName()); stream = console.newMessageStream(); stream.println("Stopping port-forwarding..."); cap.stop(); waitForStoppingProcessComplete(stream); for (IPortForwardable.PortPair port : ports) { stream.println(NLS.bind("{0} {1} -> {2}", new Object {port.getName(), port.getLocalPort(), port.getRemotePort()})); } if(!hasPortInUse()) { stream.println("done."); } else { stream.println("Ports remain in use yet. Stopping ports is requested and eventually will be completed."); } ConsoleUtils.displayConsoleView(console); firePropertyChange(PROPERTY_PORT_FORWARDING, true, getPortForwarding()); updatePortForwardingAllowed(); }finally { if(stream != null) { try { stream.close(); } catch (IOException e) { } } ConsoleUtils.deregisterConsoleListener(consoleListener); } }
Source:
<code>private Map<String, String> getUserNames(final Collection<String> identity) throws DatabaseAccessException { final List<ObjectId> identityList = new ArrayList<>(); for (String userId : identity) { identityList.add(new ObjectId(userId)); } final DBCollection collection = database.getCollection(DatabaseStringConstants.USER_COLLECTION); final DBCursor cursor = collection.find( new BasicDBObject(DatabaseStringConstants.SELF_ID, new BasicDBObject(DatabaseStringConstants.IN_COMMAND, identityList)), new BasicDBObject(DatabaseStringConstants.SELF_ID, 1).append(DatabaseStringConstants.USER_NAME, 1)); if (!cursor.hasNext()) { throw new DatabaseAccessException("No users were found with the given userIds"); } final Map<String, String> userNameMap = new HashMap<>(); <START> while (cursor.hasNext()) { <END> final DBObject userName = cursor.next(); userNameMap.put(userName.get(DatabaseStringConstants.SELF_ID).toString(), userName.get(DatabaseStringConstants.USER_NAME).toString()); } if (identity.size() != userNameMap.size() && LOG.isWarnEnabled()) { for (String userId : identity) { if (!userNameMap.containsKey(userId)) { LOG.warn("User id not found in the database", userId); } } } return userNameMap; }</code><technical_language>If cursor is iterator, a for loop?</technical_language>

Target:
private Map<String, String> getUserNames(final Collection<String> identity) throws DatabaseAccessException { final List<ObjectId> identityList = new ArrayList<>(); for (String userId : identity) { identityList.add(new ObjectId(userId)); } final DBCollection collection = database.getCollection(DatabaseStringConstants.USER_COLLECTION); final DBCursor cursor = collection.find( new BasicDBObject(DatabaseStringConstants.SELF_ID, new BasicDBObject(DatabaseStringConstants.IN_COMMAND, identityList)), new BasicDBObject(DatabaseStringConstants.SELF_ID, 1).append(DatabaseStringConstants.USER_NAME, 1)); if (!cursor.hasNext()) { throw new DatabaseAccessException("No users were found with the given userIds"); } final Map<String, String> userNameMap = new HashMap<>(); for (DBObject userName: cursor) { userNameMap.put(userName.get(DatabaseStringConstants.SELF_ID).toString(), userName.get(DatabaseStringConstants.USER_NAME).toString()); } if (identity.size() != userNameMap.size() && LOG.isWarnEnabled()) { for (String userId : identity) { if (!userNameMap.containsKey(userId)) { LOG.warn("User id not found in the database", userId); } } } return userNameMap; }
Source:
<code>public void createDescriptorsNoDescriptorDestinationFolder() throws IOException { String pomFileName = "pom.xml"; <START> String descriptorFileName = "mule-application.json"; <END> Path sourceFolderPath = projectBaseFolder.getRoot().toPath(); PackagerTestUtils.createFolder(sourceFolderPath, pomFileName, true); PackagerTestUtils.createFolder(sourceFolderPath, descriptorFileName, true); Path pomPropertiesDestinationPath = projectTargetFolder.getRoot().toPath().resolve(PackagerTestUtils.META_INF).resolve( PackagerTestUtils.MAVEN) .resolve(GROUP_ID).resolve(ARTIFACT_ID); PackagerTestUtils.createEmptyFolder(pomPropertiesDestinationPath); contentGenerator.createDescriptors(); }</code><technical_language>change constants well</technical_language>

Target:
public void createDescriptorsNoDescriptorDestinationFolder() throws IOException { String descriptorFileName = MULE_APPLICATION_DESCRIPTOR_FILE_NAME; Path sourceFolderPath = projectBaseFolder.getRoot().toPath(); PackagerTestUtils.createFolder(sourceFolderPath, POM_FILE_NAME, true); PackagerTestUtils.createFolder(sourceFolderPath, descriptorFileName, true); Path pomPropertiesDestinationPath = projectTargetFolder.getRoot().toPath().resolve(PackagerTestUtils.META_INF).resolve( PackagerTestUtils.MAVEN) .resolve(GROUP_ID).resolve(ARTIFACT_ID); PackagerTestUtils.createEmptyFolder(pomPropertiesDestinationPath); contentGenerator.createDescriptors(); }
Source:
<code>@Override public SqlNode getCastSpec(final RelDataType type) { if (type instanceof BasicSqlType) { switch (type.getSqlTypeName()) { case INTEGER: final SqlBasicTypeNameSpec typeNameSpec = new SqlBasicTypeNameSpec( INT, type.getPrecision(), <START> type.getScale(), <END> null, SqlParserPos.ZERO); return new SqlDataTypeSpec(typeNameSpec, SqlParserPos.ZERO); } } return super.getCastSpec(type); }</code><technical_language>SqlUserDefinedTypeNameSpec pass in name want instead, is need add a new SqlTypeName</technical_language>

Target:
@Override public SqlNode getCastSpec(final RelDataType type) { if (type instanceof BasicSqlType) { switch (type.getSqlTypeName()) { case INTEGER: SqlUserDefinedTypeNameSpec typeNameSpec = new SqlUserDefinedTypeNameSpec( new SqlIdentifier("INT", SqlParserPos.ZERO), SqlParserPos.ZERO); return new SqlDataTypeSpec(typeNameSpec, SqlParserPos.ZERO); } } return super.getCastSpec(type); }
Source:
<code>public void start(ServiceConfiguration<?> cfg, final ServiceProvider serviceProvider) { <START> this.serviceLocator = (ServiceLocator)serviceProvider; <END> }</code><technical_language>need cast, a ServiceProvider method need</technical_language>

Target:
public void start(ServiceConfiguration<?> cfg, final ServiceProvider serviceProvider) { this.serviceProvider = serviceProvider; }
Source:
<code>public void onDroneBatteryChanged(int value) { Log.d(TAG, "Battery Status = " + Integer.toString(value)); DroneControlService dcs = DroneServiceWrapper.getInstance().getDroneService(); if (dcs != null && (value < DroneInitializer.DRONE_BATTERY_THRESHOLD) && dcs.getDroneNavData().flying && !droneBatteryMessageShown) { <START> ToastUtil.showError(this, getString(R.string.notification_low_battery) + " " + value); <END> droneBatteryMessageShown = true; } }</code><technical_language>If want, localize this resource. :wink:</technical_language>

Target:
public void onDroneBatteryChanged(int value) { Log.d(TAG, "Battery Status = " + Integer.toString(value)); DroneControlService dcs = DroneServiceWrapper.getInstance().getDroneService(); if (dcs != null && (value < DroneInitializer.DRONE_BATTERY_THRESHOLD) && dcs.getDroneNavData().flying && !droneBatteryMessageShown) { ToastUtil.showError(this, getString(R.string.notification_low_battery_with_value, value)); droneBatteryMessageShown = true; } }
Source:
<code>public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); <START> outState.putBoolean("isSearching", isSearching); <END> }</code><technical_language>"isSearching" a class level string</technical_language>

Target:
public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(SEARCHING_TAG, isSearching); }
Source:
<code>private static void release(@Pointer long self, @Pointer long sel) { if (ObjCRuntime.int_objc_msgSend(self, retainCount) == 1) { synchronized (CUSTOM_OBJECTS) { CUSTOM_OBJECTS.remove(self); } } long cls = ObjCRuntime.object_getClass(self); <START> long nativeSuper = customClassToNativeSuper.get(cls); <END> Super sup = new Super(self, nativeSuper); ObjCRuntime.void_objc_msgSendSuper(sup.getHandle(), sel); }</code><technical_language>customClassToNativeSuper.get() call in a synchronized block</technical_language>

Target:
private static void release(@Pointer long self, @Pointer long sel) { if (ObjCRuntime.int_objc_msgSend(self, retainCount) == 1) { synchronized (CUSTOM_OBJECTS) { CUSTOM_OBJECTS.remove(self); } } long cls = ObjCRuntime.object_getClass(self); long nativeSuper = 0; synchronized(customClassToNativeSuper) { nativeSuper = customClassToNativeSuper.get(cls); } Super sup = new Super(self, nativeSuper); ObjCRuntime.void_objc_msgSendSuper(sup.getHandle(), sel); }
Source:
<code>public T get() { <START> T variant = variants.get(0); <END> return outputCopier.apply(variant); }</code><technical_language>aware if is variant present</technical_language>

Target:
public T get() { T variant = variants.first(); return copier.apply(variant); }
Source:
<code>public void startLoadingAndWatchingLocalReplays() { Path replaysDirectory = preferencesService.getReplaysDirectory(); if (Files.notExists(replaysDirectory)) { noCatch(() -> createDirectories(replaysDirectory)); } LoadLocalReplaysTask loadLocalReplaysTask = applicationContext.getBean(LoadLocalReplaysTask.class); taskService.submitTask(loadLocalReplaysTask).getFuture().thenAccept( replays -> { localReplays.clear(); localReplays.addAll(replays); eventBus.post(new LocalReplaysChangedEvent(replays, new ArrayList<Replay>())); }); try { Optional.ofNullable(directoryWatcherThread).ifPresent(Thread::interrupt); directoryWatcherThread = startDirectoryWatcher(replaysDirectory); } catch (IOException e) { <START> logger.debug("Failed to start watching the local replays directory"); <END> } }</code><technical_language>a warn least, end in logs. append exception parameter logger, print stacktrace</technical_language>

Target:
public void startLoadingAndWatchingLocalReplays() { Path replaysDirectory = preferencesService.getReplaysDirectory(); if (Files.notExists(replaysDirectory)) { noCatch(() -> createDirectories(replaysDirectory)); } LoadLocalReplaysTask loadLocalReplaysTask = applicationContext.getBean(LoadLocalReplaysTask.class); taskService.submitTask(loadLocalReplaysTask).getFuture().thenAccept( replays -> { localReplays.clear(); localReplays.addAll(replays); publisher.publishEvent(new LocalReplaysChangedEvent(this, replays, new ArrayList<Replay>())); }); try { Optional.ofNullable(directoryWatcherThread).ifPresent(Thread::interrupt); directoryWatcherThread = startDirectoryWatcher(replaysDirectory); } catch (IOException e) { logger.warn("Failed to start watching the local replays directory"); } }
Source:
<code>protected void readSecretFile(String secretFile) { BufferedReader in = null; <START> passphrase = null; <END> try { if (secretFile != null) { log.debug("reading secret file: " + secretFile); in = new BufferedReader(new FileReader(secretFile)); StringBuilder tmpPassphrase = new StringBuilder(); String line = null; while ((line = in.readLine()) != null) { tmpPassphrase.append(line); } passphrase = tmpPassphrase.toString(); } else { log.debug("No secret file provided."); } } catch (FileNotFoundException e) { log.debug("File not found: " + secretFile); } catch (IOException e) { log.debug("IOException while reading: " + secretFile); } finally { if (in != null) { try { in.close(); } catch (IOException ioe) { } } } }</code><technical_language>null line 45</technical_language>

Target:
protected void readSecretFile(String secretFile) { BufferedReader in = null; passphrase = null; try { if (secretFile != null) { log.debug("reading secret file: {}", secretFile); in = new BufferedReader(new FileReader(secretFile)); StringBuilder tmpPassphrase = new StringBuilder(); String line = null; while ((line = in.readLine()) != null) { tmpPassphrase.append(line); } passphrase = tmpPassphrase.toString(); } else { log.debug("No secret file provided."); } } catch (FileNotFoundException e) { log.debug("File not found: {}", secretFile); } catch (IOException e) { log.debug("IOException while reading: {}", secretFile); } finally { if (in != null) { try { in.close(); } catch (IOException ioe) { } } } }
Source:
<code>public void testOnlyFlowScriptContainsAPIBinding() throws InvalidScriptException { Script s = scriptWithoutApiBinding(); FlowScript fs = flowScriptWithApiBindingUser(); Mockito.when(it.getPreScript()).thenReturn(s); Mockito.when(it.getPostScript()).thenReturn(s); Mockito.when(fe.getEnvScript()).thenReturn(s); Mockito.when(sec.getScript()).thenReturn(s); Mockito.when(it.getFlowScript()).thenReturn(fs); Boolean result = new CheckEligibleTaskDescriptorScript().isTaskContainsAPIBinding(etd); <START> assertEquals(true, result); <END> }</code><technical_language>assertEquals is relevant</technical_language>

Target:
public void testOnlyFlowScriptContainsAPIBinding() throws InvalidScriptException { Script s = scriptWithoutApiBinding(); FlowScript fs = flowScriptWithApiBindingUser(); Mockito.when(it.getPreScript()).thenReturn(s); Mockito.when(it.getPostScript()).thenReturn(s); Mockito.when(fe.getEnvScript()).thenReturn(s); Mockito.when(sec.getScript()).thenReturn(s); Mockito.when(it.getFlowScript()).thenReturn(fs); assertTrue(new CheckEligibleTaskDescriptorScript().isTaskContainsAPIBinding(etd)); }