auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private XmlRpcStruct loadPowerDogResponse(boolean needsUpdate, PowerDogLocalApiServerConfig server) { XmlRpcStruct response = null; if (needsUpdate == true) { try { logger.debug("PowerDogLocalApi querying PowerDog"); PowerDog powerdog = (PowerDog) XmlRpcProxy .createProxy(server.url(), "", new Class[] { PowerDog.class }, false); response = powerdog.getAllCurrentLinearValues(server.password); server.cache = response; server.lastUpdate = System.currentTimeMillis(); <START> logger.debug("PowerDog.getAllCurrentLinearValues() result: " <END> + response.toString()); } catch (Exception e) { logger.warn("PowerDogLocalApi querying PowerDog failed"); logger.warn(e.getMessage()); } } else { logger.debug("Using PowerDogLocalApi cache"); response = server.cache; } return response; }</code><technical_language>parameterized logging instead of string concatenation</technical_language>

Target:
private XmlRpcStruct loadPowerDogResponse(boolean needsUpdate, PowerDogLocalApiServerConfig server) { XmlRpcStruct response = null; if (needsUpdate == true) { try { logger.debug("PowerDogLocalApi querying PowerDog"); PowerDog powerdog = (PowerDog) XmlRpcProxy.createProxy(server.url(), "", new Class[] { PowerDog.class }, false); response = powerdog.getAllCurrentLinearValues(server.password); server.cache = response; server.lastUpdate = System.currentTimeMillis(); logger.debug("PowerDog.getAllCurrentLinearValues() result: {}", response.toString()); } catch (Exception e) { logger.warn("PowerDogLocalApi querying PowerDog failed"); logger.warn(e.getMessage()); } } else { logger.debug("Using PowerDogLocalApi cache"); response = server.cache; } return response; }
Source:
<code>public void testTaggedAllocations() { QueryId testQuery = new QueryId("test_query"); MemoryPool testPool = new MemoryPool(new MemoryPoolId("test"), new DataSize(1000, BYTE)); testPool.reserve(testQuery, Optional.of("test_tag"), 10); Map<String, Long> allocations = testPool.getTaggedMemoryAllocations().get(testQuery); <START> assertTaggedAllocations(allocations, new String[] {"test_tag"}, new long[] {10}); <END> testPool.free(testQuery, Optional.of("test_tag"), 5); assertTaggedAllocations(allocations, new String[] {"test_tag"}, new long[] {5}); testPool.reserve(testQuery, Optional.of("test_tag2"), 20); assertTaggedAllocations(allocations, new String[] {"test_tag", "test_tag2"}, new long[] {5, 20}); testPool.free(testQuery, Optional.of("test_tag"), 5); assertTaggedAllocations(allocations, new String[] {"test_tag2"}, new long[] {20}); testPool.free(testQuery, Optional.of("test_tag2"), 20); assertEquals(testPool.getTaggedMemoryAllocations().size(), 0); }</code><technical_language>This equivalent assertEquals(allocations, ImmutableMap.of("test_tag", 10L))</technical_language>

Target:
public void testTaggedAllocations() { QueryId testQuery = new QueryId("test_query"); MemoryPool testPool = new MemoryPool(new MemoryPoolId("test"), new DataSize(1000, BYTE)); testPool.reserve(testQuery, Optional.of("test_tag"), 10); Map<String, Long> allocations = testPool.getTaggedMemoryAllocations().get(testQuery); assertEquals(allocations, ImmutableMap.of("test_tag", 10L)); testPool.free(testQuery, Optional.of("test_tag"), 5); assertEquals(allocations, ImmutableMap.of("test_tag", 5L)); testPool.reserve(testQuery, Optional.of("test_tag2"), 20); assertEquals(allocations, ImmutableMap.of("test_tag", 5L, "test_tag2", 20L)); testPool.free(testQuery, Optional.of("test_tag"), 5); assertEquals(allocations, ImmutableMap.of("test_tag2", 20L)); testPool.free(testQuery, Optional.of("test_tag2"), 20); assertEquals(testPool.getTaggedMemoryAllocations().size(), 0); }
Source:
<code>public List<SinkRecord> flush() throws SQLException { if (records.isEmpty()) { return new ArrayList<>(); } for (SinkRecord record : records) { preparedStatementBinder.bindRecord(record); } int totalUpdateCount = 0; boolean successNoInfo = false; for (int updateCount : preparedStatement.executeBatch()) { if (updateCount == Statement.SUCCESS_NO_INFO) { successNoInfo = true; continue; } totalUpdateCount += updateCount; } if (totalUpdateCount != records.size() && !successNoInfo) { switch (config.insertMode) { case INSERT: throw new ConnectException(String.format("Update count (%d) did not sum up to total number of records inserted (%d)", totalUpdateCount, records.size())); case UPSERT: log.trace("Upserted records:{} resulting in in totalUpdateCount:{}", records.size(), totalUpdateCount); } } if (successNoInfo) { log.info( <START> "Insert records:{} , but no count of the number of rows it affected is available", <END> records.size()); } final List<SinkRecord> flushedRecords = records; records = new ArrayList<>(); return flushedRecords; }</code><technical_language>Nit: "Upsert"</technical_language>

Target:
public List<SinkRecord> flush() throws SQLException { if (records.isEmpty()) { return new ArrayList<>(); } for (SinkRecord record : records) { preparedStatementBinder.bindRecord(record); } int totalUpdateCount = 0; boolean successNoInfo = false; for (int updateCount : preparedStatement.executeBatch()) { if (updateCount == Statement.SUCCESS_NO_INFO) { successNoInfo = true; continue; } totalUpdateCount += updateCount; } if (totalUpdateCount != records.size() && !successNoInfo) { switch (config.insertMode) { case INSERT: throw new ConnectException(String.format("Update count (%d) did not sum up to total number of records inserted (%d)", totalUpdateCount, records.size())); case UPSERT: log.trace("Upserted records:{} resulting in in totalUpdateCount:{}", records.size(), totalUpdateCount); } } if (successNoInfo) { log.info( config.insertMode + " records:{} , but no count of the number of rows it affected is available", records.size()); } final List<SinkRecord> flushedRecords = records; records = new ArrayList<>(); return flushedRecords; }
Source:
<code>public void isAliveShouldReturnFalseWhenRemoteRepositoryCachedValueIsFalse() { RemoteRepository remoteRepository = createMockedRemoteRepository(); initializeCache(false); remoteRepositoryAlivenessCacheManager.put(remoteRepository, false); boolean alive = remoteRepositoryAlivenessCacheManager.isAlive(remoteRepository); assertFalse(alive); <START> } <END></code><technical_language>this initializeCache is excess of remoteRepositoryAlivenessCacheManager.put</technical_language>

Target:
public void isAliveShouldReturnFalseWhenRemoteRepositoryCachedValueIsFalse() { initializeCache(false); boolean alive = remoteRepositoryAlivenessCacheManager.isAlive(remoteRepository); assertThat(alive).isFalse(); }
Source:
<code>public synchronized boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { long now = System.nanoTime(); long end = now + unit.toNanos(timeout); while (count!=0) { long d = end - now; <START> if (d<0) { <END> return false; } wait(TimeUnit.NANOSECONDS.toMillis(d)); now = System.nanoTime(); } return true; }</code><technical_language>I (d<=0)</technical_language>

Target:
public synchronized boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { long now = System.nanoTime(); long end = now + unit.toNanos(timeout); while (count!=0) { long d = end - now; if (d<=0) { return false; } wait(TimeUnit.NANOSECONDS.toMillis(d)); now = System.nanoTime(); } return true; }
Source:
<code>public void testFeatureAttributeVisitor() { GroupByVisitor visitor = buildVisitor("energy_consumption", "Average", new String[]{"building_type"}); List<Expression> expressions = visitor.getExpressions(); <START> Set<String> names = new HashSet<String>(); <END> for (Expression expression : expressions) { PropertyName pn = (PropertyName) expression; names.add(pn.getPropertyName()); } assertEquals(2, names.size()); assertTrue(names.contains("energy_consumption")); assertTrue(names.contains("building_type")); }</code><technical_language>String generic type parameter is need</technical_language>

Target:
public void testFeatureAttributeVisitor() { GroupByVisitor visitor = buildVisitor("energy_consumption", "Average", new String[]{"building_type"}); List<Expression> expressions = visitor.getExpressions(); Set<String> names = new HashSet<>(); for (Expression expression : expressions) { PropertyName pn = (PropertyName) expression; names.add(pn.getPropertyName()); } assertEquals(2, names.size()); assertTrue(names.contains("energy_consumption")); assertTrue(names.contains("building_type")); }
Source:
<code>protected void readOsSection(XmlNode section) { _vmTemplate.setId(new Guid(section.Attributes.get("ovf:id").getValue())); XmlNode node = section.SelectSingleNode("Description"); if (node != null) { <START> if (node.InnerText.equals(6)) { <END> node.InnerText = "0"; } _vmTemplate.setOsId(osRepository.getOsIdByUniqueName(node.InnerText)); } }</code><technical_language>1. i prefer constants magic numbers. 2. i drop in 4.0 - export/import of OVFs maintain compatibility major versions well</technical_language>

Target:
protected void readOsSection(XmlNode section) { _vmTemplate.setId(new Guid(section.Attributes.get("ovf:id").getValue())); XmlNode node = section.SelectSingleNode("Description"); if (node != null) { if (node.InnerText.equals(String.valueOf(OsRepository.OLD_OTHER_ID))) { node.InnerText = String.valueOf(OsRepository.DEFAULT_OS); } _vmTemplate.setOsId(osRepository.getOsIdByUniqueName(node.InnerText)); } }
Source:
<code>public CreateAllSnapshotsFromVmParameters() { <START> needsLocking = true; <END> diskIdsToIgnoreInChecks = Collections.emptySet(); }</code><technical_language>if continue this convention, please init true</technical_language>

Target:
public CreateAllSnapshotsFromVmParameters() { needsLocking = true; snapshotType = SnapshotType.REGULAR; saveMemory = true; diskIdsToIgnoreInChecks = Collections.emptySet(); }
Source:
<code>public void testRedeemGiftCardOnAccount() throws Exception { final GiftCard giftCardData = TestUtils.createRandomGiftCard(); try { final GiftCard giftCard = recurlyClient.purchaseGiftCard(giftCardData); Assert.assertEquals(giftCard.getProductCode(), giftCardData.getProductCode()); Assert.assertNull(giftCard.getRedeemedAt()); final Account gifterAccount = giftCard.getGifterAccount(); Assert.assertNotNull(gifterAccount); final String redemptionCode = giftCard.getRedemptionCode(); final String gifterAccountCode = gifterAccount.getAccountCode(); final GiftCard redeemedCard = recurlyClient.redeemGiftCard(redemptionCode, gifterAccountCode); Assert.assertNotNull(redeemedCard.getRedeemedAt()); <START> } finally { <END> } }</code><technical_language>Empty finally block</technical_language>

Target:
public void testRedeemGiftCardOnAccount() throws Exception { final GiftCard giftCardData = TestUtils.createRandomGiftCard(); final GiftCard giftCard = recurlyClient.purchaseGiftCard(giftCardData); Assert.assertEquals(giftCard.getProductCode(), giftCardData.getProductCode()); Assert.assertNull(giftCard.getRedeemedAt()); final Account gifterAccount = giftCard.getGifterAccount(); Assert.assertNotNull(gifterAccount); final String redemptionCode = giftCard.getRedemptionCode(); final String gifterAccountCode = gifterAccount.getAccountCode(); final GiftCard redeemedCard = recurlyClient.redeemGiftCard(redemptionCode, gifterAccountCode); Assert.assertNotNull(redeemedCard.getRedeemedAt()); }
Source:
<code>public T getItem() { T result = null; try { result = (T)config .createExecutableExtension(DescriptorRegistryEventListener.IMPL_CLASS_DESCRIPTPOR_ATTR); } catch (CoreException e) { <START> e.printStackTrace(); <END> } return result; }</code><technical_language>log error re-throw wrapped in a runtime. do print it. tend Throwables.propagate() guava for this kind of case</technical_language>

Target:
public T getItem() { T result = null; try { result = (T)config .createExecutableExtension(DescriptorRegistryEventListener.IMPL_CLASS_DESCRIPTPOR_ATTR); } catch (CoreException e) { Throwables.propagate(e); } return result; }
Source:
<code><START> public Text evaluate(String ip, String xff) { <END> assert ipUtil != null : "Evaluate called without initializing 'ipUtil'"; return new Text(ipUtil.getClientIp(ip, xff)); }</code><technical_language>String instead of Text? Hive do magic for us, this method simpler</technical_language>

Target:
public String evaluate(String ip, String xff) { assert ipUtil != null : "Evaluate called without initializing 'ipUtil'"; return ipUtil.getClientIp(ip, xff); }
Source:
<code>public static boolean convertSegment(File toConvert, File converted, IndexSpec indexSpec, boolean forceIfCurrent, boolean validate) throws IOException { final int version = SegmentUtils.getVersionFromDir(toConvert); final boolean wasConverted; switch (version) { case 1: case 2: case 3: log.makeAlert("Attempt to load segment of version <= 3.") .addData("version", version) .emit(); wasConverted = false; break; case 4: case 5: case 6: case 7: log.info("Old version, re-persisting."); IndexMerger.append( Arrays.<IndexableAdapter>asList(new QueryableIndexIndexableAdapter(loadIndex(toConvert))), converted, indexSpec ); wasConverted = true; break; case 8: DefaultIndexIOHandler.convertV8toV9(toConvert, converted, indexSpec); wasConverted = true; break; default: if (forceIfCurrent) { IndexMaker.convert(toConvert, converted, indexSpec); <START> wasConverted = true; <END> } else { log.info("Version[%s], skipping.", version); wasConverted = false; } break; } if(validate){ DefaultIndexIOHandler.validateTwoSegments(toConvert, converted); } return wasConverted; }</code><technical_language>validate v8->v9 conversion. I a reason change this, implications for older versions. code a lot more readable</technical_language>

Target:
public static boolean convertSegment(File toConvert, File converted, IndexSpec indexSpec, boolean forceIfCurrent, boolean validate) throws IOException { final int version = SegmentUtils.getVersionFromDir(toConvert); switch (version) { case 1: case 2: case 3: log.makeAlert("Attempt to load segment of version <= 3.") .addData("version", version) .emit(); return false; case 4: case 5: case 6: case 7: log.info("Old version, re-persisting."); IndexMerger.append( Arrays.<IndexableAdapter>asList(new QueryableIndexIndexableAdapter(loadIndex(toConvert))), converted, indexSpec ); return true; case 8: DefaultIndexIOHandler.convertV8toV9(toConvert, converted, indexSpec); return true; default: if (forceIfCurrent) { IndexMaker.convert(toConvert, converted, indexSpec); if(validate){ DefaultIndexIOHandler.validateTwoSegments(toConvert, converted); } return true; } else { log.info("Version[%s], skipping.", version); return false; } } }
Source:
<code>protected void handleError(final Exception e, final String correlationUid, final String organisationIdentification, final String deviceIdentification, final String messageType) { LOGGER.info("handeling error: for message type: {}", e.getMessage(), messageType); final OsgpException osgpException = new TechnicalException(ComponentType.UNKNOWN, "An unknown error occurred", e); <START> this.webServiceResponseMessageSender.send(ResponseMessage.newResponseMessageBuilder() <END> .withCorrelationUid(correlationUid).withOrganisationIdentification(organisationIdentification) .withDeviceIdentification(deviceIdentification).withResult(ResponseMessageResultType.NOT_OK) .withOsgpException(osgpException).withDataObject(e).build(), messageType); }</code><technical_language>Extract building of ResponseMessage variable (in eclipse, select text, right-click > refactor > extract local variable / select code + shift+alt+L). This code a bit more readable, especially passing in other besides ResponseMessage</technical_language>

Target:
protected void handleError(final Exception e, final String correlationUid, final String organisationIdentification, final String deviceIdentification, final String messageType) { LOGGER.info("handeling error: for message type: {}", e.getMessage(), messageType); final OsgpException osgpException = new TechnicalException(ComponentType.UNKNOWN, "An unknown error occurred", e); ResponseMessage responseMessage = ResponseMessage.newResponseMessageBuilder() .withCorrelationUid(correlationUid).withOrganisationIdentification(organisationIdentification) .withDeviceIdentification(deviceIdentification).withResult(ResponseMessageResultType.NOT_OK) .withOsgpException(osgpException).withDataObject(e).build(); this.webServiceResponseMessageSender.send(responseMessage, messageType); }
Source:
<code>public void requestInterstitialAd(Context context, final MediationInterstitialListener mediationInterstitialListener, Bundle bundle, MediationAdRequest mediationAdRequest, Bundle mediationExtras) { Log.d(TAG, "requestInterstitialAd called with bundle: " + bundle); initializeFromBundle(context, bundle); mInterstitialContext = new WeakReference<>(context); String spotId = bundle.getString(FyberMediationAdapter.KEY_SPOT_ID); if (TextUtils.isEmpty(spotId)) { mediationInterstitialListener.onAdFailedToLoad(this, AdRequest.ERROR_CODE_INVALID_REQUEST); <START> Log.w(TAG, "Cannot render banner ad. Please define a valid spot id on the AdMob console"); <END> return; } mMediationInterstitialListener = mediationInterstitialListener; mInterstitialSpot = InneractiveAdSpotManager.get().createSpot(); mInterstitialSpot.setMediationName(MEDIATOR_NAME); InneractiveFullscreenUnitController controller = new InneractiveFullscreenUnitController(); mInterstitialSpot.addUnitController(controller); InneractiveAdRequest request = new InneractiveAdRequest(spotId); InneractiveAdSpot.RequestListener requestListener = createFyberInterstitialAdListener(); mInterstitialSpot.setRequestListener(requestListener); mInterstitialSpot.requestAd(request); }</code><technical_language>render banner ad. -> render interstitial ad. AdMob console -> AdMob UI. Please apply this messages</technical_language>

Target:
public void requestInterstitialAd(Context context, final MediationInterstitialListener mediationInterstitialListener, Bundle bundle, MediationAdRequest mediationAdRequest, Bundle mediationExtras) { Log.d(TAG, "requestInterstitialAd called with bundle: " + bundle); initializeFromBundle(context, bundle); mInterstitialContext = new WeakReference<>(context); String spotId = bundle.getString(FyberMediationAdapter.KEY_SPOT_ID); if (TextUtils.isEmpty(spotId)) { mediationInterstitialListener.onAdFailedToLoad(this, AdRequest.ERROR_CODE_INVALID_REQUEST); Log.w(TAG, "Cannot render interstitial ad. Please define a valid spot id on the AdMob UI"); return; } mMediationInterstitialListener = mediationInterstitialListener; mInterstitialSpot = InneractiveAdSpotManager.get().createSpot(); mInterstitialSpot.setMediationName(MEDIATOR_NAME); InneractiveFullscreenUnitController controller = new InneractiveFullscreenUnitController(); mInterstitialSpot.addUnitController(controller); InneractiveAdRequest request = new InneractiveAdRequest(spotId); InneractiveAdSpot.RequestListener requestListener = createFyberInterstitialAdListener(); mInterstitialSpot.setRequestListener(requestListener); mInterstitialSpot.requestAd(request); }
Source:
<code>public BackupReceiverImpl(Cache cache) { this.cache = cache; <START> this.local = cache.getCacheConfiguration().clustering().cacheMode() == CacheMode.LOCAL; <END> siteUpdater = new BackupCacheUpdater(cache, remote2localTx); }</code><technical_language>I problem prohibiting x-site backup to/from a LOCAL cache, familiar x-site configuration I if do validation</technical_language>

Target:
public BackupReceiverImpl(Cache cache) { this.cache = cache; siteUpdater = new BackupCacheUpdater(cache, remote2localTx); }
Source:
<code>private Collection<CorrelationAttribute> getCorrelationAttributesFromNode(Node node) { Collection<CorrelationAttribute> ret = new ArrayList<>(); BlackboardArtifact bbArtifact = getBlackboardArtifactFromNode(node); if (bbArtifact != null) { ret.addAll(EamArtifactUtil.getCorrelationAttributeFromBlackboardArtifact(bbArtifact, false, false)); } if (this.file != null && EamDb.isEnabled()) { try { List<CorrelationAttribute.Type> artifactTypes = EamDb.getInstance().getDefinedCorrelationTypes(); String md5 = this.file.getMd5Hash(); if (md5 != null && !md5.isEmpty() && null != artifactTypes && !artifactTypes.isEmpty()) { for (CorrelationAttribute.Type aType : artifactTypes) { if (aType.getId() == CorrelationAttribute.FILES_TYPE_ID) { ret.add(new CorrelationAttribute(aType, md5)); break; } } } } catch (EamDbException ex) { LOGGER.log(Level.SEVERE, "Error connecting to DB", ex); } <START> } else { <END> try { ret.add(new CorrelationAttribute(CorrelationAttribute.getDefaultCorrelationTypes().get(0), this.file.getMd5Hash())); } catch (EamDbException ex) { LOGGER.log(Level.SEVERE, "Error connecting to DB", ex); } } return ret; }</code><technical_language>I need another null check file protect NPE</technical_language>

Target:
private Collection<CorrelationAttribute> getCorrelationAttributesFromNode(Node node) { Collection<CorrelationAttribute> ret = new ArrayList<>(); BlackboardArtifact bbArtifact = getBlackboardArtifactFromNode(node); if (bbArtifact != null) { ret.addAll(EamArtifactUtil.getCorrelationAttributeFromBlackboardArtifact(bbArtifact, false, false)); } if (this.file != null && EamDb.isEnabled()) { try { List<CorrelationAttribute.Type> artifactTypes = EamDb.getInstance().getDefinedCorrelationTypes(); String md5 = this.file.getMd5Hash(); if (md5 != null && !md5.isEmpty() && null != artifactTypes && !artifactTypes.isEmpty()) { for (CorrelationAttribute.Type aType : artifactTypes) { if (aType.getId() == CorrelationAttribute.FILES_TYPE_ID) { ret.add(new CorrelationAttribute(aType, md5)); break; } } } } catch (EamDbException ex) { LOGGER.log(Level.SEVERE, "Error connecting to DB", ex); } } else { try { if(this.file != null) { String md5 = this.file.getMd5Hash(); if(md5 != null && !md5.isEmpty()) { ret.add(new CorrelationAttribute(CorrelationAttribute.getDefaultCorrelationTypes().get(0),md5)); } } } catch (EamDbException ex) { LOGGER.log(Level.SEVERE, "Error connecting to DB", ex); } } return ret; }
Source:
<code>public void processMessage(final ObjectMessage message) throws JMSException { LOGGER.debug("Processing retrieve configuration objects request message"); final DlmsDeviceMessageMetadata messageMetadata = new DlmsDeviceMessageMetadata(); try { messageMetadata.handleMessage(message); <START> final RetrieveConfigurationObjectsRequest synchronizeTimeRequest = (RetrieveConfigurationObjectsRequest) message <END> .getObject(); this.adhocService.retrieveConfigurationObjects(messageMetadata, synchronizeTimeRequest, this.responseMessageSender); } catch (final JMSException exception) { this.logJmsException(LOGGER, exception, messageMetadata); } }</code><technical_language>rename "synchronizeTimeRequest" variable</technical_language>

Target:
public void processMessage(final ObjectMessage message) throws JMSException { LOGGER.debug("Processing retrieve configuration objects request message"); final DlmsDeviceMessageMetadata messageMetadata = new DlmsDeviceMessageMetadata(); try { messageMetadata.handleMessage(message); final RetrieveConfigurationObjectsRequest retrieveConfigurationRequest = (RetrieveConfigurationObjectsRequest) message .getObject(); this.adhocService.retrieveConfigurationObjects(messageMetadata, retrieveConfigurationRequest, this.responseMessageSender); } catch (final JMSException exception) { this.logJmsException(LOGGER, exception, messageMetadata); } }
Source:
<code>public GetTapesResult call() throws Exception {try { final GetTapesResponse response = getClient().getTapes(new GetTapesRequest()); return new GetTapesResult(response.getTapes()); } catch (final FailedRequestException e) { <START> throw new CommandException("Failed Get Service", e); <END> } }</code><technical_language>Failed Get Tapes..</technical_language>

Target:
public GetTapesResult call() throws Exception {try { final GetTapesResponse response = getClient().getTapes(new GetTapesRequest()); return new GetTapesResult(response.getTapes()); } catch (final FailedRequestException e) { throw new CommandException("Failed Get Tapes", e); } }
Source:
<code>synchronized void commit(long offset, BigInteger v) { if (!validateOffset((int) offset) || v == null || chceckpoints[(int) offset] == null) { return; } if (offset <= s && offset > c && v.equals(chceckpoints[(int) offset])) { int ggap = (int) Math.min(lagLen, offset - c); if (ggap == lagLen) { c = offset - lagLen + 1; lag[idx(c)] = c; } lag[idx(offset)] = offset; while (ggap > 0 && lag[idx(c)] + 1 == lag[idx(c + 1)]) { ++c; <START> } <END> } }</code><technical_language>modify implemented in ENG-10264</technical_language>

Target:
synchronized void commit(long offset, BigInteger v) { if (!validateOffset((int) offset) || v == null || chceckpoints[(int) offset] == null) { return; } if (offset <= s && offset > c && v.equals(chceckpoints[(int) offset])) { int ggap = (int) Math.min(lagLen, offset - c); if (ggap == lagLen) { c = offset - lagLen + 1; lag[idx(c)] = c; } lag[idx(offset)] = offset; while (ggap > 0 && lag[idx(c)] + 1 == lag[idx(c + 1)]) { ++c; } if (offer >= 0 && (offer - c) < lag.length) { offer = -1L; notify(); } } }
Source:
<code>public void removePage(int pageIndex) { <START> if (0 > pageIndex || pageIndex >= getChildren().size()) { <END> getChildren().remove(pageIndex); } }</code><technical_language>Recheck condition, 0 <= pageIndex && pageIndex < getChildren().size()</technical_language>

Target:
public void removePage(int pageIndex) { if (0 <= pageIndex && pageIndex < getChildren().size()) { getChildren().remove(pageIndex); } }
Source:
<code>public boolean spawnEntityOrCapture(G context, Entity entity, int chunkX, int chunkZ) { final ArrayList<Entity> entities = new ArrayList<>(1); entities.add(entity); try (CauseStackManager.StackFrame frame = Sponge.getCauseStackManager().pushCauseFrame()) { <START> frame.addContext(EventContextKeys.SPAWN_TYPE, SpawnTypes.WORLD_SPAWNER); <END> final SpawnEntityEvent event = SpongeEventFactory.createSpawnEntityEventSpawner(Sponge.getCauseStackManager().getCurrentCause(), entities); SpongeImpl.postEvent(event); if (!event.isCancelled() && event.getEntities().size() > 0) { for (Entity item : event.getEntities()) { ((IMixinWorldServer) item.getWorld()).forceSpawnEntity(item); } return true; } return false; } }</code><technical_language>adding world here, in frame</technical_language>

Target:
public boolean spawnEntityOrCapture(G context, Entity entity, int chunkX, int chunkZ) { final ArrayList<Entity> entities = new ArrayList<>(1); entities.add(entity); try (CauseStackManager.StackFrame frame = Sponge.getCauseStackManager().pushCauseFrame()) { frame.pushCause(entity.getLocation().getExtent()); frame.addContext(EventContextKeys.SPAWN_TYPE, SpawnTypes.WORLD_SPAWNER); final SpawnEntityEvent event = SpongeEventFactory.createSpawnEntityEventSpawner(frame.getCurrentCause(), entities); SpongeImpl.postEvent(event); if (!event.isCancelled() && event.getEntities().size() > 0) { for (Entity item : event.getEntities()) { ((IMixinWorldServer) item.getWorld()).forceSpawnEntity(item); } return true; } return false; } }
Source:
<code>private boolean isTaskPending(Task task) { for (TaskRunnerWorkItem workItem : taskRunner.getPendingTasks()) { if (workItem.getTaskId().equals(task.getId())) { return true; } } <START> return false; <END> }</code><technical_language>task.getId() called for loop, change this method a lambda style. java final String taskId = task.getId(); return taskRunner.getPendingTasks() .stream() .anyMatch(t -> taskId.equals(t.getTaskId()));</technical_language>

Target:
private boolean isTaskPending(Task task) { return taskRunner.getPendingTasks() .stream() .anyMatch(workItem -> workItem.getTaskId().equals(task.getId())); }
Source:
<code>public Group createGroup(PerunSession sess, Vo vo, Group group) throws GroupExistsException, InternalErrorException { group = getGroupsManagerImpl().createGroup(sess, vo, group); getPerunBl().getAuditer().log(sess, "{} created in {}.", group, vo); group.setVoId(vo.getId()); try { <START> User user = perunBl.getUsersManagerBl().getUserById(sess, group.getCreatedByUid()); <END> if(!AuthzResolver.isAuthorized(sess, Role.VOADMIN, vo)) { AuthzResolver.setRole(sess, user, group, Role.GROUPADMIN); } } catch (UserNotExistsException e) { throw new InternalErrorException("Inconsistency error: User (group creator) does not exist."); } catch (AlreadyAdminException e) { throw new InternalErrorException("Inconsistency error: User is already group admin."); } catch (PrivilegeException e) { throw new InternalErrorException("Insufficient privilege."); } return group; }</code><technical_language>If createdByUid == null user exists, skip this settings continue seting role</technical_language>

Target:
public Group createGroup(PerunSession sess, Vo vo, Group group) throws GroupExistsException, InternalErrorException { group = getGroupsManagerImpl().createGroup(sess, vo, group); getPerunBl().getAuditer().log(sess, "{} created in {}.", group, vo); group.setVoId(vo.getId()); try { User user = sess.getPerunPrincipal().getUser(); if(!AuthzResolverBlImpl.isAuthorized(sess, Role.VOADMIN, vo)) { AuthzResolverBlImpl.setRole(sess, user, group, Role.GROUPADMIN); } } catch (AlreadyAdminException e) { throw new InternalErrorException("Inconsistency error: User is already group admin."); } return group; }
Source:
<code>public void testInnerListChildrenDirectoryNpe() throws Exception { DynamoDBMetadataStore ddbms = new DynamoDBMetadataStore(); Path p = mock(Path.class); List<PathMetadata> metas = mock(List.class); when(metas.isEmpty()).thenReturn(false); DDBPathMetadata dirPathMeta = null; <START> assertEquals(null, <END> ddbms.getDirListingMetadataFromDirMetaAndList(p, metas, dirPathMeta)); }</code><technical_language>assertNull() for this; switch that. a need for text text I of is "should null"</technical_language>

Target:
public void testInnerListChildrenDirectoryNpe() throws Exception { DynamoDBMetadataStore ddbms = new DynamoDBMetadataStore(); Path p = mock(Path.class); List<PathMetadata> metas = mock(List.class); when(metas.isEmpty()).thenReturn(false); DDBPathMetadata dirPathMeta = null; assertNull("The return value should be null.", ddbms.getDirListingMetadataFromDirMetaAndList(p, metas, dirPathMeta)); }
Source:
<code>protected void disableAndRemoveECrossReferenceAdapters() { ResourceSet resourceSet = getTransactionalEditingDomain().getResourceSet(); for (Iterator<Adapter> iterator = resourceSet.eAdapters().iterator(); iterator.hasNext(); ) { Adapter next = iterator.next(); if (next instanceof SiriusCrossReferenceAdapter) { ((SiriusCrossReferenceAdapter) next).disableResolveProxy(); } } <START> resourceSet.eAdapters().clear(); for (final DAnalysis analysis : Iterables.filter(allAnalyses(), Predicates.notNull())) { removeAdaptersOnAnalysis(analysis); } END> }</code><technical_language>impact of this modifications. This is in conflict PCD modifications DASI</technical_language>

Target:
protected void disableAndRemoveECrossReferenceAdapters() { ResourceSet resourceSet = getTransactionalEditingDomain().getResourceSet(); for (Iterator<Adapter> iterator = resourceSet.eAdapters().iterator(); iterator.hasNext(); ) { Adapter next = iterator.next(); if (next instanceof SiriusCrossReferenceAdapter) { ((SiriusCrossReferenceAdapter) next).disableResolveProxy(); } } for (final Resource res : getSemanticResources()) { unregisterResourceInCrossReferencer(res); } for (final DAnalysis analysis : Iterables.filter(allAnalyses(), Predicates.notNull())) { removeAdaptersOnAnalysis(analysis); Resource analysisResource = analysis.eResource(); if (analysisResource != null) { unregisterResourceInCrossReferencer(analysisResource); } } Iterable<Resource> resources = Lists.newArrayList(resourceSet.getResources()); for (Resource resource : Iterables.filter(resources, new ResourceFileExtensionPredicate(SiriusUtil.DESCRIPTION_MODEL_EXTENSION, false))) { unregisterResourceInCrossReferencer(resource); } }
Source:
<code>public SimpleObject getAll(RequestContext context) throws ResponseException { SimpleObject rest = new SimpleObject(); try { rest.put("SystemInfo", Context.getAdministrationService().getSystemInformation()); } catch (Exception ex) { <START> System.out.println(ex.getMessage()); <END> } finally { return rest; } }</code><technical_language>java conventions in line? <LINK_0></technical_language>

Target:
public SimpleObject getAll(RequestContext context) throws ResponseException { SimpleObject rest = new SimpleObject(); rest.put("systemInfo", Context.getAdministrationService().getSystemInformation()); return rest; }
Source:
<code>public void run() { long lastTimeStamp = 0; while (!closed.get()) { WatchKey key = null; try { key = watcher.take(); } catch (Exception e) { LOG.info("Watcher is either interruped or closed", e); break; } for (WatchEvent<?> event : key.pollEvents()) { WatchEvent.Kind<?> kind = event.kind(); WatchEvent<Path> ev = cast(event); Path dir = (Path) key.watchable(); Path updatedFile = dir.resolve(ev.context()); if (kind == StandardWatchEventKinds.ENTRY_MODIFY || kind == StandardWatchEventKinds.ENTRY_CREATE) { if (updatedFile.toString().equals(fileName)) { final long now = System.currentTimeMillis(); <START> final long interval = Long.getLong("org.opennms.core.fileutils.watcher.interval.seconds", 1); <END> if (now - lastTimeStamp > TimeUnit.SECONDS.toMillis(interval)) { LOG.info(" file got updated, send callback"); callback.reload(); } else { LOG.debug(" callback was not sent as the changes are in within secs interval ", interval); } lastTimeStamp = now; } } if (!key.reset()) { break; } } } }</code><technical_language>This static, need time</technical_language>

Target:
public void run() { while (!closed.get()) { WatchKey key = null; try { key = watcher.take(); } catch (Exception e) { LOG.info("Watcher is either interruped or closed", e); break; } for (WatchEvent<?> event : key.pollEvents()) { WatchEvent.Kind<?> kind = event.kind(); WatchEvent<Path> ev = cast(event); Path dir = (Path) key.watchable(); Path updatedFile = dir.resolve(ev.context()); if (kind == StandardWatchEventKinds.ENTRY_MODIFY || kind == StandardWatchEventKinds.ENTRY_CREATE) { if (updatedFile.toString().equals(fileName)) { LOG.info(" file got updated, send callback", updatedFile.getFileName()); callback.reload(); } } if (!key.reset()) { break; } } } }
Source:
<code>public PColumnFamilyImpl(PName name, List<PColumn> columns, List<byte[]> guidePosts) { Preconditions.checkNotNull(name); int guidePostsSize = 0; if(guidePosts != null) { guidePostsSize = guidePosts.size(); } this.guidePosts = guidePosts; <START> long estimatedSize = SizedUtil.OBJECT_SIZE + SizedUtil.POINTER_SIZE * 5 + SizedUtil.INT_SIZE + name.getEstimatedSize() + <END> SizedUtil.sizeOfMap(columns.size()) * 2 + SizedUtil.sizeOfArrayList(columns.size()) + guidePostsSize; this.name = name; this.columns = ImmutableList.copyOf(columns); ImmutableMap.Builder<String, PColumn> columnByStringBuilder = ImmutableMap.builder(); ImmutableSortedMap.Builder<byte[], PColumn> columnByBytesBuilder = ImmutableSortedMap.orderedBy(Bytes.BYTES_COMPARATOR); for (PColumn column : columns) { estimatedSize += column.getEstimatedSize(); columnByBytesBuilder.put(column.getName().getBytes(), column); columnByStringBuilder.put(column.getName().getString(), column); } this.columnByBytes = columnByBytesBuilder.build(); this.columnByString = columnByStringBuilder.build(); this.estimatedSize = (int)estimatedSize; }</code><technical_language>This is size in bytes of PColumnFamily. do a += SizedUtil.sizeOfList(guideposts.size()) loop guideposts add byte[].length for element</technical_language>

Target:
public PColumnFamilyImpl(PName name, List<PColumn> columns, List<byte[]> guidePosts) { Preconditions.checkNotNull(name); int guidePostsSize = 0; if(guidePosts != null) { guidePostsSize = guidePosts.size(); for(byte[] gps : guidePosts) { guidePostsSize += gps.length; } Collections.sort(guidePosts, Bytes.BYTES_COMPARATOR); this.guidePosts = guidePosts; } long estimatedSize = SizedUtil.OBJECT_SIZE + SizedUtil.POINTER_SIZE * 5 + SizedUtil.INT_SIZE + name.getEstimatedSize() + SizedUtil.sizeOfMap(columns.size()) * 2 + SizedUtil.sizeOfArrayList(columns.size()) + SizedUtil.sizeOfArrayList(guidePostsSize); this.name = name; this.columns = ImmutableList.copyOf(columns); ImmutableMap.Builder<String, PColumn> columnByStringBuilder = ImmutableMap.builder(); ImmutableSortedMap.Builder<byte[], PColumn> columnByBytesBuilder = ImmutableSortedMap.orderedBy(Bytes.BYTES_COMPARATOR); for (PColumn column : columns) { estimatedSize += column.getEstimatedSize(); columnByBytesBuilder.put(column.getName().getBytes(), column); columnByStringBuilder.put(column.getName().getString(), column); } this.columnByBytes = columnByBytesBuilder.build(); this.columnByString = columnByStringBuilder.build(); this.estimatedSize = (int)estimatedSize; }
Source:
<code>private boolean isEditAvailable(StorageDomain storageDomain) { if (storageDomain == null || storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Locked) { return false; } boolean isEditAvailable; boolean isActive = storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Active || storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Mixed; boolean isInMaintenance = (storageDomain.getStatus() == StorageDomainStatus.Maintenance || storageDomain.getStatus() == StorageDomainStatus.PreparingForMaintenance); boolean isUnattached = (storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Unattached || storageDomain.getStatus() == StorageDomainStatus.Detaching); boolean isDataISOorExportDomain = storageDomain.getStorageDomainType().isDataDomain() <START> || storageDomain.getStorageDomainType().isIsoOrImportExportDomain(); <END> boolean isBlockStorage = storageDomain.getStorageType().isBlockDomain(); isEditAvailable = isActive || isBlockStorage || ((isInMaintenance || isUnattached) && isDataISOorExportDomain); return isEditAvailable; }</code><technical_language>name suggestion: isInternalDomain</technical_language>

Target:
private boolean isEditAvailable(StorageDomain storageDomain) { if (storageDomain == null || storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Locked) { return false; } boolean isEditAvailable; boolean isActive = storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Active || storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Mixed; boolean isInMaintenance = (storageDomain.getStatus() == StorageDomainStatus.Maintenance || storageDomain.getStatus() == StorageDomainStatus.PreparingForMaintenance); boolean isUnattached = (storageDomain.getStorageDomainSharedStatus() == StorageDomainSharedStatus.Unattached || storageDomain.getStatus() == StorageDomainStatus.Detaching); boolean isInternalDomain = storageDomain.getStorageDomainType().isInternalDomain(); boolean isBlockStorage = storageDomain.getStorageType().isBlockDomain(); isEditAvailable = isActive || isBlockStorage || ((isInMaintenance || isUnattached) && isInternalDomain); return isEditAvailable; }
Source:
<code>private boolean shouldShowAsyncPromoDialog() { PostStatus status = PostStatus.fromPost(mPost); <START> if (AppPrefs.isAsyncPromoRequired() && userCanPublishPosts() <END> && ((status == PostStatus.DRAFT || status == PostStatus.PUBLISHED) && isNewPost() && mPost.isLocalDraft() || status == PostStatus.UNKNOWN && mPost.isLocalDraft())) { return true; } return false; }</code><technical_language>isNewPost() is invoked for DRAFTS in getSaveButtonText(). invoke for PUBLISHED posts here. please double check intentional? Thanks</technical_language>

Target:
private boolean shouldShowAsyncPromoDialog() { if (!AppPrefs.isAsyncPromoRequired() || !userCanPublishPosts()) return false; switch (PostStatus.fromPost(mPost)) { case DRAFT: case PUBLISHED: return isNewPost() && mPost.isLocalDraft(); case UNKNOWN: return mPost.isLocalDraft(); case SCHEDULED: case PRIVATE: case PENDING: case TRASHED: default: return false; } }
Source:
<code>public void testCreateKey() throws IOException { QseqRecordReader reader = createReaderForOneQseq(); <START> assertTrue(reader.createKey() != null); <END> }</code><technical_language>assertNotNull</technical_language>

Target:
public void testCreateKey() throws IOException { QseqRecordReader reader = createReaderForOneQseq(); assertNotNull(reader.createKey()); }
Source:
<code>private TypeConverter obtainConverter(QueryableEntry entry) { if (components == null) { return MapEntryAttributeExtractor.getConverter(entry, name, queryFieldType); } else { CompositeConverter existingConverter = (CompositeConverter) converter; TypeConverter[] converters = new TypeConverter[components.length]; for (int i = 0; i < components.length; ++i) { TypeConverter existingComponentConverter = getNonTransientComponentConverter(existingConverter, i); if (existingComponentConverter == null) { converters[i] = MapEntryAttributeExtractor.getConverter(entry, <START> components[i], QueryFieldType.fromName(components[i])); <END> assert converters[i] != null; } else { converters[i] = existingComponentConverter; } } return new CompositeConverter(converters); } }</code><technical_language>Minor: caching nice here</technical_language>

Target:
private TypeConverter obtainConverter(QueryableEntry entry) { if (components == null) { return MapEntryAttributeExtractor.getConverter(entry, name, attributeOrigin); } else { CompositeConverter existingConverter = (CompositeConverter) converter; TypeConverter[] converters = new TypeConverter[components.length]; for (int i = 0; i < components.length; ++i) { TypeConverter existingComponentConverter = getNonTransientComponentConverter(existingConverter, i); if (existingComponentConverter == null) { converters[i] = MapEntryAttributeExtractor.getConverter(entry, components[i], AttributeOrigin.fromName(components[i])); assert converters[i] != null; } else { converters[i] = existingComponentConverter; } } return new CompositeConverter(converters); } }
Source:
<code>public void testEmptyBatchDeletion() { if (magic >= RecordBatch.MAGIC_VALUE_V2) { for (final BatchRetention deleteRetention : Arrays.asList(BatchRetention.DELETE, BatchRetention.DELETE_EMPTY)) { ByteBuffer buffer = ByteBuffer.allocate(DefaultRecordBatch.RECORD_BATCH_OVERHEAD); long producerId = 23L; short producerEpoch = 5; long baseOffset = 3L; int baseSequence = 10; int partitionLeaderEpoch = 293; long timestamp = System.currentTimeMillis(); DefaultRecordBatch.writeEmptyHeader(buffer, RecordBatch.MAGIC_VALUE_V2, producerId, producerEpoch, baseSequence, baseOffset, baseOffset, partitionLeaderEpoch, TimestampType.CREATE_TIME, timestamp, false, false); buffer.flip(); ByteBuffer filtered = ByteBuffer.allocate(2048); MemoryRecords records = MemoryRecords.readableRecords(buffer); MemoryRecords.FilterResult filterResult = records.filterTo(new TopicPartition("foo", 0), new MemoryRecords.RecordFilter(0, 0) { @Override protected BatchRetentionResult checkBatchRetention(RecordBatch batch) { <START> return new BatchRetentionResult(deleteRetention, true); <END> } @Override protected boolean shouldRetainRecord(RecordBatch recordBatch, Record record) { return false; } }, filtered, Integer.MAX_VALUE, BufferSupplier.NO_CACHING); assertEquals(0, filterResult.outputBuffer().position()); filtered.flip(); MemoryRecords filteredRecords = MemoryRecords.readableRecords(filtered); assertEquals(0, filteredRecords.sizeInBytes()); } } }</code><technical_language>is marker, containsMarkerForEmptyTxn false</technical_language>

Target:
public void testEmptyBatchDeletion() { if (magic >= RecordBatch.MAGIC_VALUE_V2) { for (final BatchRetention deleteRetention : Arrays.asList(BatchRetention.DELETE, BatchRetention.DELETE_EMPTY)) { ByteBuffer buffer = ByteBuffer.allocate(DefaultRecordBatch.RECORD_BATCH_OVERHEAD); long producerId = 23L; short producerEpoch = 5; long baseOffset = 3L; int baseSequence = 10; int partitionLeaderEpoch = 293; long timestamp = System.currentTimeMillis(); DefaultRecordBatch.writeEmptyHeader(buffer, RecordBatch.MAGIC_VALUE_V2, producerId, producerEpoch, baseSequence, baseOffset, baseOffset, partitionLeaderEpoch, TimestampType.CREATE_TIME, timestamp, false, false); buffer.flip(); ByteBuffer filtered = ByteBuffer.allocate(2048); MemoryRecords records = MemoryRecords.readableRecords(buffer); MemoryRecords.FilterResult filterResult = records.filterTo(new TopicPartition("foo", 0), new MemoryRecords.RecordFilter(0, 0) { @Override protected BatchRetentionResult checkBatchRetention(RecordBatch batch) { return new BatchRetentionResult(deleteRetention, false); } @Override protected boolean shouldRetainRecord(RecordBatch recordBatch, Record record) { return false; } }, filtered, Integer.MAX_VALUE, BufferSupplier.NO_CACHING); assertEquals(0, filterResult.outputBuffer().position()); filtered.flip(); MemoryRecords filteredRecords = MemoryRecords.readableRecords(filtered); assertEquals(0, filteredRecords.sizeInBytes()); } } }
Source:
<code>private ShouldBeAbsolutePath(final Path actual) { <START> super("\nExpecting:\n <%s>\nto be an absolute path", actual); <END> }</code><technical_language>extract message a constant avoid duplication</technical_language>

Target:
private ShouldBeAbsolutePath(final Path actual) { super(MESSAGE, actual); }
Source:
<code>public void initMDS() throws IOException { LOGGER.info("Initializing MOTECH Data Services"); File migrationDirectory = mdsConfig.getFlywayMigrationDirectory(); if (migrationDirectory.exists()) { FileUtils.cleanDirectory(migrationDirectory); } LOGGER.info("Migration directory cleared"); bundleContext.registerService(WeavingHook.class.getName(), mdsWeavingHook, null); LOGGER.info("MDS weaving hook registered"); try { monitor.init(); LOGGER.info("The entities bundle monitor started"); } catch (Exception e) { LOGGER.error("Error while starting the entities bundle monitor", e); } LOGGER.info("Starting MDS Bundle Watcher"); try { mdsBundleWatcher.start(); LOGGER.info("Existing bundles have been processed and refreshed"); } catch (Exception e) { LOGGER.error("Error while starting MDS Annotation Processor", e); } eventAdmin.postEvent(new Event(PlatformConstants.MDS_STARTUP_TOPIC, new HashMap<String, Object>())); LOGGER.info("MOTECH data services initialization complete"); <START> bundleContext.registerService(OsgiBundleApplicationContextListener.class, mdsOsgiBundleApplicationContextListener, null); <END> }</code><technical_language>this registered in blueprint.xml, other OSGi services</technical_language>

Target:
public void initMDS() throws IOException { LOGGER.info("Initializing MOTECH Data Services"); File migrationDirectory = mdsConfig.getFlywayMigrationDirectory(); if (migrationDirectory.exists()) { FileUtils.cleanDirectory(migrationDirectory); } LOGGER.info("Migration directory cleared"); bundleContext.registerService(WeavingHook.class.getName(), mdsWeavingHook, null); LOGGER.info("MDS weaving hook registered"); try { monitor.init(); LOGGER.info("The entities bundle monitor started"); } catch (Exception e) { LOGGER.error("Error while starting the entities bundle monitor", e); } LOGGER.info("Starting MDS Bundle Watcher"); try { mdsBundleWatcher.start(); LOGGER.info("Existing bundles have been processed and refreshed"); } catch (Exception e) { LOGGER.error("Error while starting MDS Annotation Processor", e); } eventAdmin.postEvent(new Event(PlatformConstants.MDS_STARTUP_TOPIC, new HashMap<String, Object>())); LOGGER.info("MOTECH data services initialization complete"); }