auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private Mono<ServerOAuth2AuthorizeRequest> authorizeRequest(String registrationId, ServerWebExchange exchange) { Mono<Authentication> defaultedAuthentication = currentAuthentication(); Mono<String> defaultedRegistrationId = Mono.justOrEmpty(registrationId) .switchIfEmpty(clientRegistrationId(defaultedAuthentication)) .switchIfEmpty(Mono.error(() -> new IllegalArgumentException("The clientRegistrationId could not be resolved. Please provide one"))); <START> Mono<Optional<ServerWebExchange>> defaultedExchange = Mono.justOrEmpty(exchange) <END> .switchIfEmpty(currentServerWebExchange()).map(Optional::of) .defaultIfEmpty(Optional.empty()); return Mono.zip(defaultedRegistrationId, defaultedAuthentication, defaultedExchange) .map(t3 -> new ServerOAuth2AuthorizeRequest(t3.getT1(), t3.getT2(), t3.getT3().orElse(null))); }</code><technical_language>Optional</technical_language>

Target:
private Mono<ServerOAuth2AuthorizeRequest> authorizeRequest(String registrationId, ServerWebExchange exchange) { Mono<Authentication> defaultedAuthentication = currentAuthentication(); Mono<String> defaultedRegistrationId = Mono.justOrEmpty(registrationId) .switchIfEmpty(clientRegistrationId(defaultedAuthentication)) .switchIfEmpty(Mono.error(() -> new IllegalArgumentException("The clientRegistrationId could not be resolved. Please provide one"))); Mono<ServerWebExchange> defaultedExchange = Mono.justOrEmpty(exchange) .switchIfEmpty(currentServerWebExchange()); return Mono.zip(defaultedRegistrationId, defaultedAuthentication, defaultedExchange) .map(t3 -> new ServerOAuth2AuthorizeRequest(t3.getT1(), t3.getT2(), t3.getT3())); }
Source:
<code>public boolean equals(Object o) { if (o instanceof CaseFileVariables) { CaseFileVariables other = (CaseFileVariables) o; <START> return (null != value) ? value.equals(other.value) : null == other.value; <END> } return false; }</code><technical_language>suggestion Objects.equals(value, other.value);</technical_language>

Target:
public boolean equals(Object o) { if (o instanceof CaseFileVariables) { CaseFileVariables other = (CaseFileVariables) o; return Objects.equals(value, other.value); } return false; }
Source:
<code>private void setDescription(ProgData progData, Item item, Channel channel) { if (progData.getBillings() != null) { for (Billing billing : progData.getBillings().getBilling()) { if((item.getDescription() == null || (channel !=null && !channel.getUri().contains("wales"))) && billing.getType().equals("synopsis")) { item.setDescription(billing.getvalue()); } <START> if ((item.getShortDescription() == null || (channel !=null && !channel.getUri().contains("wales"))) <END> && billing.getType().equals("pa_detail1")) { item.setShortDescription(billing.getvalue()); } if ((item.getMediumDescription() == null || (channel !=null && !channel.getUri().contains("wales"))) && billing.getType().equals("pa_detail2")) { item.setMediumDescription(billing.getvalue()); } if ((item.getLongDescription() == null || (channel !=null && !channel.getUri().contains("wales"))) && billing.getType().equals("pa_detail3")) { item.setLongDescription(billing.getvalue()); } } } }</code><technical_language>repetition of channel URI condition</technical_language>

Target:
private void setDescription(ProgData progData, Item item, Channel channel) { if (progData.getBillings() != null) { for (Billing billing : progData.getBillings().getBilling()) { boolean channelContainsWales = channel !=null && !channel.getUri().contains("wales"); if((item.getDescription() == null || !channelContainsWales) && billing.getType().equals("synopsis")) { item.setDescription(billing.getvalue()); } if ((item.getShortDescription() == null || !channelContainsWales) && billing.getType().equals("pa_detail1")) { item.setShortDescription(billing.getvalue()); } if ((item.getMediumDescription() == null || !channelContainsWales) && billing.getType().equals("pa_detail2")) { item.setMediumDescription(billing.getvalue()); } if ((item.getLongDescription() == null || !channelContainsWales) && billing.getType().equals("pa_detail3")) { item.setLongDescription(billing.getvalue()); } } } }
Source:
<code>default @NonNull Map<String, String> getFilterInput(ITimeEvent event) { Map<String, String> inputs = new HashMap<>(); ITimeGraphEntry entry = event.getEntry(); String stateTypeName = getStateTypeName(entry); String entryName = entry.getName(); if (stateTypeName == null) { stateTypeName = getStateTypeName(); } if (!entryName.isEmpty()) { inputs.put(stateTypeName, entry.getName()); } String state = getEventName(event); if (state != null) { <START> inputs.put("State", state); <END> } return inputs; }</code><technical_language>Messages.TmfTimeTipHandler_TRACE_STATE matches tool tip key, if changed in future</technical_language>

Target:
default @NonNull Map<String, String> getFilterInput(ITimeEvent event) { Map<String, String> inputs = new HashMap<>(); ITimeGraphEntry entry = event.getEntry(); String stateTypeName = getStateTypeName(entry); String entryName = entry.getName(); if (stateTypeName == null) { stateTypeName = getStateTypeName(); } if (!entryName.isEmpty()) { inputs.put(stateTypeName, entry.getName()); } String state = getEventName(event); if (state != null) { inputs.put(Messages.TmfTimeTipHandler_TRACE_STATE, state); } return inputs; }
Source:
<code>public void flushStreamsToBlocks() { closeAllStreams(); sliceBlocks.setCoreBlock(Block.createRawCoreDataBlock(coreBlockByteOutputStream.toByteArray())); <START> for (final Map.Entry<Integer, ByteArrayOutputStream> streamEntry : externalOutputStreams.entrySet()) { <END> final Integer contentId = streamEntry.getKey(); if (streamEntry.getKey().equals(Block.NO_CONTENT_ID)) { throw new CRAMException("A valid content ID is required. Given: " + contentId); } final Block externalBlock = compressionHeader.getEncodingMap().createCompressedBlockForStream(contentId, streamEntry.getValue()); sliceBlocks.addExternalBlock(externalBlock); } }</code><technical_language>I map.foreach is nicer for(Map.entry) a style you..</technical_language>

Target:
public SliceBlocks flushStreamsToBlocks() { closeAllStreams(); final Block coreBlock = Block.createRawCoreDataBlock(coreBlockByteOutputStream.toByteArray()); final List<Block> externalBlocks = new ArrayList<>(); externalOutputStreams.forEach((contentId, contentStream) -> { if (contentId.equals(Block.NO_CONTENT_ID)) { throw new CRAMException("A valid content ID is required. Given: " + contentId); } externalBlocks.add(compressionHeader.getEncodingMap().createCompressedBlockForStream(contentId, contentStream)); }); return new SliceBlocks(coreBlock, externalBlocks); }
Source:
<code>private void initDataStore(RegionShortcut regionShortcut) { <START> @SuppressWarnings("rawtypes") <END> PartitionAttributes attributes = new PartitionAttributesFactory<String, String>() .setTotalNumBuckets(BUCKETS) .create(); cacheRule.getCache().createRegionFactory(regionShortcut) .setPartitionAttributes(attributes) .create(REGION_NAME); }</code><technical_language>This warning suppression removed if line is changed PartitionAttributes<String, String> attributes = new PartitionAttributesFactory<String, String>()</technical_language>

Target:
private void initDataStore(RegionShortcut regionShortcut) { PartitionAttributes<String, String> attrs = new PartitionAttributesFactory<String, String>() .setTotalNumBuckets(BUCKETS) .create(); cacheRule.getCache().createRegionFactory(regionShortcut) .setPartitionAttributes(attrs) .create(REGION_NAME); }
Source:
<code>public static String identifyVM() { SystemInfo si = new SystemInfo(); HardwareAbstractionLayer hw = si.getHardware(); NetworkIF[] nifs = hw.getNetworkIFs(); for (NetworkIF nif : nifs) { String mac = nif.getMacaddr().toUpperCase(); String oui = findOuiByMacAddressIfPossible(mac); <START> if (oui != null && oui != "") { <END> return oui; } } String model = hw.getComputerSystem().getModel(); for (String vm : vmModelArray) { if (model.contains(vm)) { return vm; } } String manufacturer = hw.getComputerSystem().getManufacturer(); if ("Microsoft Corporation".equals(manufacturer) && "Virtual Machine".equals(model)) { return "Microsoft Hyper-V"; } return ""; }</code><technical_language>!= a comparison for Strings, objects. correct equality comparison "".equals(oui). However, is slightly more efficient do !oui.isEmpty()</technical_language>

Target:
public static String identifyVM() { SystemInfo si = new SystemInfo(); HardwareAbstractionLayer hw = si.getHardware(); NetworkIF[] nifs = hw.getNetworkIFs(); for (NetworkIF nif : nifs) { String mac = nif.getMacaddr().toUpperCase(); String oui = findOuiByMacAddressIfPossible(mac); if (oui != null && !oui.isEmpty()) { return oui; } } String model = hw.getComputerSystem().getModel(); for (String vm : vmModelArray) { if (model.contains(vm)) { return vm; } } String manufacturer = hw.getComputerSystem().getManufacturer(); if ("Microsoft Corporation".equals(manufacturer) && "Virtual Machine".equals(model)) { return "Microsoft Hyper-V"; } return ""; }
Source:
<code>public void testProcessFunctions() throws IOException { Assert.assertNull(ProcessStore.getProcess(applicationName, scopedInstancePath)); <START> Process process = (new ProcessBuilder("ls")).start(); <END> ProcessStore.setProcess(applicationName, scopedInstancePath, process); Assert.assertEquals(ProcessStore.getProcess(applicationName, scopedInstancePath), process); ProcessStore.setProcess(null, null, process); Assert.assertEquals(ProcessStore.getProcess(null, null), process); ProcessStore.clearProcess(applicationName, scopedInstancePath); Assert.assertEquals(ProcessStore.getProcess(null, null), process); Assert.assertNull(ProcessStore.getProcess(applicationName, scopedInstancePath)); ProcessStore.clearProcess(null, null); Assert.assertNull(ProcessStore.getProcess(null, null)); }</code><technical_language>another OS? if put "toto hi" instead? If work "toto", verify test run system. Junit's **Assume** aims it</technical_language>

Target:
public void testProcessFunctions() throws IOException { Assert.assertNull(ProcessStore.getProcess(applicationName, scopedInstancePath)); Process process = (new ProcessBuilder("date")).start(); ProcessStore.setProcess(applicationName, scopedInstancePath, process); Assert.assertEquals(ProcessStore.getProcess(applicationName, scopedInstancePath), process); Assert.assertSame(ProcessStore.getProcess(applicationName, scopedInstancePath), process); ProcessStore.setProcess(null, null, process); Assert.assertEquals(ProcessStore.getProcess(null, null), process); ProcessStore.clearProcess(applicationName, scopedInstancePath); Assert.assertEquals(ProcessStore.getProcess(null, null), process); Assert.assertNull(ProcessStore.getProcess(applicationName, scopedInstancePath)); ProcessStore.clearProcess(null, null); Assert.assertNull(ProcessStore.getProcess(null, null)); }
Source:
<code>public void run(final T configuration, final Environment environment) throws Exception { <START> Preconditions.checkArgument(configuration instanceof AlchemyServiceConfiguration); <END> final AlchemyModule module = new AlchemyModule(configuration, environment); environment.lifecycle().manage(module); final Injector injector = Guice.createInjector(module); runInjected(injector, configuration, environment); environment.jersey().register(new SparseFieldSetFilter(environment.getObjectMapper())); environment.jersey().register(new RuntimeExceptionMapper()); environment.lifecycle().manage(new JmxMetricsManaged(environment)); registerIdentitySubTypes(configuration, environment); }</code><technical_language>this i is actual state exception, no? fail starting application</technical_language>

Target:
public void run(final T configuration, final Environment environment) throws Exception { Preconditions.checkState(configuration instanceof AlchemyServiceConfiguration); final AlchemyModule module = new AlchemyModule(configuration, environment); environment.lifecycle().manage(module); final Injector injector = Guice.createInjector(module); runInjected(injector, configuration, environment); environment.jersey().register(new SparseFieldSetFilter(environment.getObjectMapper())); environment.jersey().register(new RuntimeExceptionMapper()); environment.lifecycle().manage(new JmxMetricsManaged(environment)); registerIdentitySubTypes(configuration, environment); }
Source:
<code>protected void checkFormMappingResolution(TenantServiceAccessor tenantAccessor, SFormMapping formMapping, List<Problem> problems) throws SBonitaReadException, SObjectNotFoundException { if (isMappingRelatedToCustomPage(formMapping)) { SPageMapping pageMapping = formMapping.getPageMapping(); if (pageMapping == null) { addProblem(formMapping, problems); return; } final Long pageId = pageMapping.getPageId(); if (pageId == null || tenantAccessor.getPageService().getPage(pageId) == null) { addProblem(formMapping, problems); } } <START> if (isUndefined(formMapping)) { <END> addProblem(formMapping, problems); } }</code><technical_language>**else if** here, conditions exclusive</technical_language>

Target:
protected void checkFormMappingResolution(TenantServiceAccessor tenantAccessor, SFormMapping formMapping, List<Problem> problems) throws SBonitaReadException, SObjectNotFoundException { if (isMappingRelatedToCustomPage(formMapping)) { SPageMapping pageMapping = formMapping.getPageMapping(); if (pageMapping == null) { addProblem(formMapping, problems); return; } final Long pageId = pageMapping.getPageId(); if (pageId == null || tenantAccessor.getPageService().getPage(pageId) == null) { addProblem(formMapping, problems); } } else if (isUndefined(formMapping)) { addProblem(formMapping, problems); } }
Source:
<code>private void addDefaultGraphicsDevice() { VmDevice device = VmDeviceCommonUtils.findVmDeviceByGeneralType( vmBase.getManagedDeviceMap(), VmDeviceGeneralType.GRAPHICS); if (device != null) { return; } List<Pair<GraphicsType, DisplayType>> graphicsAndDisplays = osRepository.getGraphicsAndDisplays(vmBase.getOsId(), new Version(getVersion())); GraphicsType graphicsType = <START> vmBase.getDefaultDisplayType() == DisplayType.vga ? GraphicsType.VNC : GraphicsType.SPICE; <END> GraphicsType supportedGraphicsType = null; for (Pair<GraphicsType, DisplayType> pair : graphicsAndDisplays) { if (pair.getSecond() == vmBase.getDefaultDisplayType()) { if (pair.getFirst() == graphicsType) { supportedGraphicsType = graphicsType; break; } if (supportedGraphicsType == null) { supportedGraphicsType = pair.getFirst(); } } } if (supportedGraphicsType != null) { device = new GraphicsDevice(supportedGraphicsType.getCorrespondingDeviceType()); device.setId(new VmDeviceId(Guid.newGuid(), vmBase.getId())); addManagedVmDevice(device); } }</code><technical_language>account vga added in 3.6 is graphics absent default-diplay-type = vga. 3.6 cirrus qxl cirrus mapped VNC qxl SPICE</technical_language>

Target:
private void addDefaultGraphicsDevice() { VmDevice device = VmDeviceCommonUtils.findVmDeviceByGeneralType( vmBase.getManagedDeviceMap(), VmDeviceGeneralType.GRAPHICS); if (device != null) { return; } List<Pair<GraphicsType, DisplayType>> graphicsAndDisplays = osRepository.getGraphicsAndDisplays(vmBase.getOsId(), new Version(getVersion())); GraphicsType graphicsType = vmBase.getDefaultDisplayType() == DisplayType.cirrus ? GraphicsType.VNC : GraphicsType.SPICE; GraphicsType supportedGraphicsType = null; for (Pair<GraphicsType, DisplayType> pair : graphicsAndDisplays) { if (pair.getSecond() == vmBase.getDefaultDisplayType()) { if (pair.getFirst() == graphicsType) { supportedGraphicsType = graphicsType; break; } if (supportedGraphicsType == null) { supportedGraphicsType = pair.getFirst(); } } } if (supportedGraphicsType != null) { device = new GraphicsDevice(supportedGraphicsType.getCorrespondingDeviceType()); device.setId(new VmDeviceId(Guid.newGuid(), vmBase.getId())); addManagedVmDevice(device); } else { log.warn("Cannot find any graphics type for display type supported by OS in compatibility version {}", vmBase.getDefaultDisplayType().name(), osRepository.getOsName(vmBase.getOsId()), getVersion()); } }
Source:
<code>List<String> getRecommendationsForUser(String userId) throws TasteException { List<String> results = new ArrayList<>(); long id = usersMap.get(userId); List<RecommendedItem> recommendations = recommender.recommend(id, 3); for (RecommendedItem r : recommendations) { <START> results.add(invertedProductsMap.get((int) r.getItemID())); <END> } return results; }</code><technical_language>this is a small piece of code, more clear more clear name of **_r_** variable</technical_language>

Target:
List<String> getRecommendationsForUser(String userId) { List<String> results = new ArrayList<>(); long id = usersMap.get(userId); try { List<RecommendedItem> recommendations = recommender.recommend(id, 3); for (RecommendedItem recommendedItem : recommendations) { results.add(invertedProductsMap.get((int) recommendedItem.getItemID())); } } catch (TasteException e) { System.out.println("Error encountered: " + e.getMessage()); } return results; }
Source:
<code>public void process(FContext ctx, FProtocol iprot, FProtocol oprot) throws TException { Store.buyAlbum_args args = new Store.buyAlbum_args(); try { args.read(iprot); } catch (TException e) { iprot.readMessageEnd(); synchronized (WRITE_LOCK) { writeApplicationException(ctx, oprot, TApplicationException.PROTOCOL_ERROR, "buyAlbum", e.getMessage()); } throw e; } iprot.readMessageEnd(); Store.buyAlbum_result result = new Store.buyAlbum_result(); try { result.success = this.handler.buyAlbum(ctx, args.ASIN, args.acct); result.setSuccessIsSet(true); } catch (PurchasingError error) { result.error = error; } catch (FRateLimitException e) { <START> writeApplicationException(ctx, oprot, FRateLimitException.RATE_LIMIT_EXCEEDED, "buyAlbum", "rate limit exceeded"); <END> } catch (TException e) { synchronized (WRITE_LOCK) { writeApplicationException(ctx, oprot, TApplicationException.INTERNAL_ERROR, "buyAlbum", "Internal error processing buyAlbum: " + e.getMessage()); } throw e; } synchronized (WRITE_LOCK) { try { oprot.writeResponseHeader(ctx); oprot.writeMessageBegin(new TMessage("buyAlbum", TMessageType.REPLY, 0)); result.write(oprot); oprot.writeMessageEnd(); oprot.getTransport().flush(); } catch (TException e) { if (e instanceof FMessageSizeException) { writeApplicationException(ctx, oprot, FTransport.RESPONSE_TOO_LARGE, "buyAlbum", "response too large: " + e.getMessage()); } else { throw e; } } } }</code><technical_language>I returning here</technical_language>

Target:
public void process(FContext ctx, FProtocol iprot, FProtocol oprot) throws TException { Store.buyAlbum_args args = new Store.buyAlbum_args(); try { args.read(iprot); } catch (TException e) { iprot.readMessageEnd(); synchronized (WRITE_LOCK) { writeApplicationException(ctx, oprot, TApplicationException.PROTOCOL_ERROR, "buyAlbum", e.getMessage()); } throw e; } iprot.readMessageEnd(); Store.buyAlbum_result result = new Store.buyAlbum_result(); try { result.success = this.handler.buyAlbum(ctx, args.ASIN, args.acct); result.setSuccessIsSet(true); } catch (PurchasingError error) { result.error = error; } catch (FRateLimitException e) { writeApplicationException(ctx, oprot, FRateLimitException.RATE_LIMIT_EXCEEDED, "buyAlbum", "rate limit exceeded"); return; } catch (TException e) { synchronized (WRITE_LOCK) { writeApplicationException(ctx, oprot, TApplicationException.INTERNAL_ERROR, "buyAlbum", "Internal error processing buyAlbum: " + e.getMessage()); } throw e; } synchronized (WRITE_LOCK) { try { oprot.writeResponseHeader(ctx); oprot.writeMessageBegin(new TMessage("buyAlbum", TMessageType.REPLY, 0)); result.write(oprot); oprot.writeMessageEnd(); oprot.getTransport().flush(); } catch (TException e) { if (e instanceof FMessageSizeException) { writeApplicationException(ctx, oprot, FTransport.RESPONSE_TOO_LARGE, "buyAlbum", "response too large: " + e.getMessage()); } else { throw e; } } } }
Source:
<code>protected HttpEntity executeRequest(BasicHttpRequest request, DefaultBHttpClientConnection conn) { try { conn.sendRequestHeader(request); if (request instanceof HttpEntityEnclosingRequest) { conn.sendRequestEntity((HttpEntityEnclosingRequest) request); } conn.flush(); HttpResponse response = conn.receiveResponseHeader(); conn.receiveResponseEntity(response); if (response.getStatusLine().getStatusCode() >= 300) { throw new RuntimeException(String.format( "ImageioClient request failed. Status: %s, Reason: %s, Error: %s.", response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), <START> response.getEntity().getContent())); <END> } HttpEntity entity = response.getEntity(); if (entity == null) { throw new RuntimeException("Empty response"); } return entity; } catch (HttpException | IOException e) { throw new RuntimeException(e.getMessage(), e); } }</code><technical_language>This returns InputStream no? need read convert string. add a helper do this: String readContent(HTTPResponse r) { BufferedReader reader = new BufferedReader(new InputStreamReader(r.getContent())); return reader.lines().collect(Collectors.joining()); }</technical_language>

Target:
protected HttpEntity executeRequest(BasicHttpRequest request, DefaultBHttpClientConnection conn) { try { conn.sendRequestHeader(request); if (request instanceof HttpEntityEnclosingRequest) { conn.sendRequestEntity((HttpEntityEnclosingRequest) request); } conn.flush(); HttpResponse response = conn.receiveResponseHeader(); conn.receiveResponseEntity(response); if (response.getStatusLine().getStatusCode() >= 300) { throw new RuntimeException(String.format( "ImageioClient request failed. Status: %s, Reason: %s, Error: %s.", response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), readContent(response))); } HttpEntity entity = response.getEntity(); if (entity == null) { throw new RuntimeException("Empty response"); } return entity; } catch (HttpException | IOException e) { throw new RuntimeException(e.getMessage(), e); } }
Source:
<code>public boolean documentExists(CoreSession session, String idOrPath) { <START> DocumentRef documentRef; <END> if (idOrPath.startsWith("/")) { documentRef = new PathRef(idOrPath); } else { documentRef = new IdRef(idOrPath); } try { session.getDocument(documentRef); } catch (DocumentNotFoundException exception) { return false; } return true; }</code><technical_language>Ternary operator idOrPath.startsWith("/") ? new PathRef(idOrPath) : new IdRef(idOrPath)</technical_language>

Target:
public boolean documentExists(CoreSession session, String idOrPath) { DocumentRef documentRef = idOrPath.startsWith("/") ? new PathRef(idOrPath) : new IdRef(idOrPath); return session.exists(documentRef); }
Source:
<code>public List<Question> getByIds(List<Long> ids){ List<Question> questions = new ArrayList<>(); for (Long id : ids) { questions.add(getById(id)); } return questions; <START> } <END></code><technical_language>a avoid n+1: a query searching for questions in (:ids) and, that, session.load get questions in order (the hibernate get questions level cache selected before). (yeah, pretty, works)</technical_language>

Target:
public List<Question> getByIds(List<Long> ids){ List<Question> questions = new ArrayList<>(); if(ids != null && ids.size() >0) { List<Question> result = session.createQuery("from Question where id in (:ids)").setParameterList("ids", ids).list(); for (final Long id : ids) { Question q = Iterables.find(result, new Predicate<Question>() { public boolean apply(Question input) { return input.getId().equals(id); } }); questions.add(q); } } return questions; }
Source:
<code>public BreakpointListener(DebugEventManager debugEventManager) { this.debugEventManager = debugEventManager; <START> this.breakpoints = new HashMap<>(); <END> }</code><technical_language>good parameterize this instead of raw type</technical_language>

Target:
public BreakpointListener(DebugEventManager debugEventManager) { this.debugEventManager = debugEventManager; this.breakpoints = new HashMap<Integer, Breakpoint>(); }
Source:
<code><START> private StringBuilder getGeneralLockStats() { <END> StringBuilder logString = new StringBuilder(); logString.append("Logging current state. Time = ").append(currentTimeMillis()).append("\n"); logString.append("isStandaloneServer = ").append(isStandaloneServer).append("\n"); logString.append("maxAllowedLockTimeout = ").append(maxAllowedLockTimeout).append("\n"); logString.append("maxAllowedClockDrift = ").append(maxAllowedClockDrift).append("\n"); logString.append("maxAllowedBlockingDuration = ").append(maxAllowedBlockingDuration).append("\n"); logString.append("randomBitCount = ").append(randomBitCount).append("\n"); return logString; }</code><technical_language>Wondering if want included more information locks, size of maps, size of reaper queue, versionIds. This logs out configs immutable representations of is disk. If update this, want consider returning a Builder, feels off</technical_language>

Target:
private StringBuilder getGeneralLockStats() { StringBuilder logString = new StringBuilder(); logString.append("Logging current state. Time = ").append(currentTimeMillis()).append("\n"); logString.append("isStandaloneServer = ").append(isStandaloneServer).append("\n"); logString.append("maxAllowedLockTimeout = ").append(maxAllowedLockTimeout).append("\n"); logString.append("maxAllowedClockDrift = ").append(maxAllowedClockDrift).append("\n"); logString.append("maxAllowedBlockingDuration = ").append(maxAllowedBlockingDuration).append("\n"); logString.append("randomBitCount = ").append(randomBitCount).append("\n"); logString.append("descriptorToLockMap.size = ").append(descriptorToLockMap.size()).append("\n"); logString.append("outstandingLockRequestMultimap.size = ").append(descriptorToLockMap.size()).append("\n"); logString.append("heldLocksTokenMap.size = ").append(heldLocksTokenMap.size()).append("\n"); logString.append("heldLocksGrantMap.size = ").append(heldLocksGrantMap.size()).append("\n"); logString.append("lockTokenReaperQueue.size = ").append(lockTokenReaperQueue.size()).append("\n"); logString.append("lockGrantReaperQueue.size = ").append(lockGrantReaperQueue.size()).append("\n"); logString.append("lockClientMultimap.size = ").append(lockClientMultimap.size()).append("\n"); logString.append("lockClientMultimap.size = ").append(lockClientMultimap.size()).append("\n"); return logString; }
Source:
<code>protected ConnectionFactory createConnectionFactory( List<String> urls, Boolean startTls, String loadBalancingAlgorithm) throws LdapException { List<ConnectionFactory> connectionFactories = new ArrayList<>(); for (String singleUrl : urls) { connectionFactories.add( <START> createLdapConnectionFactory(new PropertyResolver(singleUrl).toString(), startTls)); <END> } Options options = Options.defaultOptions(); if (loadBalancingAlgorithm != null && loadBalancingAlgorithm.equalsIgnoreCase("failover")) { return Connections.newFailoverLoadBalancer(connectionFactories, options); } else { return Connections.newRoundRobinLoadBalancer(connectionFactories, options); } }</code><technical_language>This section simplified java streams. connectionFactories final final List<ConnectionFactory> connectionFactories = urls .stream() .map(url -> createLdapConnectionFactory(new PropertyResolver(url).toString(), startTls); .collect(toList());</technical_language>

Target:
protected ConnectionFactory createConnectionFactory( List<String> urls, Boolean startTls, String loadBalancingAlgorithm) throws LdapException { List<ConnectionFactory> connectionFactories = new ArrayList<>(); for (String singleUrl : urls) { connectionFactories.add( createLdapConnectionFactory(new PropertyResolver(singleUrl).toString(), startTls)); } Options options = Options.defaultOptions(); if (FAILOVER.equalsIgnoreCase(loadBalancingAlgorithm)) { return Connections.newFailoverLoadBalancer(connectionFactories, options); } else { return Connections.newRoundRobinLoadBalancer(connectionFactories, options); } }
Source:
<code>private IndexerFactory getIndexerFor(String environment) { <START> if ("PREVIEW".toString().equals(environment)) <END> return indexerFactoryForPreviewEnv; else if ("PUBLISH".toString().equals(environment)) return indexerFactoryForPublishEnv; else throw new RuntimeException("Specified environment is not recognized"); }</code><technical_language>remark enum values in</technical_language>

Target:
private IndexerFactory getIndexerFor(String environment) { if (TargetIndexingDatabase.PREVIEW.toString().equals(environment)) return indexerFactoryForPreviewEnv; else if (TargetIndexingDatabase.PUBLISH.toString().equals(environment)) return indexerFactoryForPublishEnv; else throw new RuntimeException("Specified environment is not recognized"); }
Source:
<code>public void testGenerateAmazonS3GetBucketRequest() throws IOException, ParseException, TemplateModelException { final TestFileUtilsImpl fileUtils = new TestFileUtilsImpl(); final Map<String,Object> testMap = new HashMap<>(); final Request requestEntry = RequestConverter.toRequest(Ds3ModelFixtures.getBucketRequest(), <START> new Ds3DocSpecImpl( <END> ImmutableMap.of(), ImmutableMap.of())); testMap.put("requestEntry", requestEntry); final CCodeGenerator codeGenerator = new CCodeGenerator(); codeGenerator.processTemplate(testMap, "request-templates/RequestWithResponsePayload.ftl", fileUtils.getOutputStream()); final ByteArrayOutputStream bstream = (ByteArrayOutputStream) fileUtils.getOutputStream(); final String output = new String(bstream.toByteArray()); assertTrue(output.contains("ds3_error* ds3_get_bucket(const ds3_client* client, const ds3_request* request, ds3_list_bucket_result_response** response) {")); assertTrue(output.contains(" if (request->path->size < 2) {")); assertTrue(output.contains(" return ds3_create_error(DS3_ERROR_MISSING_ARGS, \"The bucket name parameter is required.\");")); assertTrue(output.contains(" }")); assertTrue(output.contains(" return _parse_top_level_ds3_list_bucket_result_response(client, request, response, xml_blob);")); assertTrue(output.contains("}")); }</code><technical_language>Ds3DocSpecEmptyImpl</technical_language>

Target:
public void testGenerateAmazonS3GetBucketRequest() throws IOException, ParseException, TemplateModelException { final TestFileUtilsImpl fileUtils = new TestFileUtilsImpl(); final Map<String,Object> testMap = new HashMap<>(); final Request requestEntry = RequestConverter.toRequest(Ds3ModelFixtures.getBucketRequest(), new Ds3DocSpecEmptyImpl()); testMap.put("requestEntry", requestEntry); final CCodeGenerator codeGenerator = new CCodeGenerator(); codeGenerator.processTemplate(testMap, "request-templates/RequestWithResponsePayload.ftl", fileUtils.getOutputStream()); final ByteArrayOutputStream bstream = (ByteArrayOutputStream) fileUtils.getOutputStream(); final String output = new String(bstream.toByteArray()); assertTrue(output.contains("ds3_error* ds3_get_bucket(const ds3_client* client, const ds3_request* request, ds3_list_bucket_result_response** response) {")); assertTrue(output.contains(" if (request->path->size < 2) {")); assertTrue(output.contains(" return ds3_create_error(DS3_ERROR_MISSING_ARGS, \"The bucket name parameter is required.\");")); assertTrue(output.contains(" }")); assertTrue(output.contains(" return _parse_top_level_ds3_list_bucket_result_response(client, request, response, xml_blob);")); assertTrue(output.contains("}")); }
Source:
<code>public String contentUTF8() { if (content != null) { return new String(content, UTF_8); } else { <START> return null; <END> } }</code><technical_language>return empty string instead of null. others this code, pushing null pointer higher. Thoughts</technical_language>

Target:
public String contentUTF8() { if (content != null) { return new String(content, UTF_8); } else { return ""; } }
Source:
<code>public TicketEntity findById(String ticketId) { try { return ticketRepository .findById(ticketId) .map(t -> { <START> Ticket ticket = new Ticket(t); <END> if (StringUtils.isNotEmpty(t.getApplication())) { ApplicationEntity application = applicationService.findById(t.getApplication()); ticket.setApplication(application.getName()); } if (StringUtils.isNotEmpty(t.getApi())) { ApiEntity api = apiService.findById(t.getApi()); ticket.setApi(api.getName()); } return ticket; }) .map(this::convert) .orElse(null); } catch (TechnicalException ex) { LOGGER.error("An error occurs while trying to search ticket {}", ticketId, ex); throw new TechnicalManagementException("An error occurs while trying to search ticket " + ticketId , ex); } }</code><technical_language>creating a new ticket</technical_language>

Target:
public TicketEntity findById(String ticketId) { try { return ticketRepository .findById(ticketId) .map(this::getApiNameAndApplicationName) .map(this::convert) .orElseThrow(() -> new TicketNotFoundException(ticketId)); } catch (TechnicalException ex) { LOGGER.error("An error occurs while trying to search ticket {}", ticketId, ex); throw new TechnicalManagementException("An error occurs while trying to search ticket " + ticketId , ex); } }
Source:
<code>public boolean isIdentifierLocallyUnique(String identifier, Dataset dataset) { <START> boolean u = em.createNamedQuery("Dataset.findByIdentifierAuthorityProtocol") <END> .setParameter("identifier", identifier) .setParameter("authority", dataset.getAuthority()) .setParameter("protocol", dataset.getProtocol()) .getResultList().isEmpty(); return u; }</code><technical_language>return, assign</technical_language>

Target:
public boolean isIdentifierLocallyUnique(String identifier, Dataset dataset) { return em.createNamedQuery("Dataset.findByIdentifierAuthorityProtocol") .setParameter("identifier", identifier) .setParameter("authority", dataset.getAuthority()) .setParameter("protocol", dataset.getProtocol()) .getResultList().isEmpty(); }
Source:
<code>public void fromJson(JsonObject json) { this.config = json.getJsonObject("config"); this.worker = json.getBoolean("worker", DEFAULT_WORKER); <START> this.isolationGroup = json.getString("isolationGroup", null); <END> this.ha = json.getBoolean("ha", DEFAULT_HA); JsonArray arr = json.getJsonArray("extraClasspath", null); if (arr != null) { this.extraClasspath = arr.getList(); } this.instances = json.getInteger("instances", DEFAULT_INSTANCES); JsonArray arrIsolated = json.getJsonArray("isolatedClasses", null); if (arrIsolated != null) { this.isolatedClasses = arrIsolated.getList(); } }</code><technical_language>json.getString("isolationGroup")</technical_language>

Target:
public void fromJson(JsonObject json) { this.config = json.getJsonObject("config"); this.worker = json.getBoolean("worker", DEFAULT_WORKER); this.isolationGroup = json.getString("isolationGroup"); this.ha = json.getBoolean("ha", DEFAULT_HA); JsonArray arr = json.getJsonArray("extraClasspath"); if (arr != null) { this.extraClasspath = arr.getList(); } this.instances = json.getInteger("instances", DEFAULT_INSTANCES); JsonArray arrIsolated = json.getJsonArray("isolatedClasses"); if (arrIsolated != null) { this.isolatedClasses = arrIsolated.getList(); } }
Source:
<code>public boolean isSatisfied() { if (args.length == 0) { return false; } String bundleName = bundle.getHeaders().get("Bundle-SymbolicName"); String key = bundleName + args[0]; Boolean storedResult = DECISION_MAP.get(key); if (storedResult != null) { <START> return storedResult; <END> } String[] bundles = REGEX.split(args[0]); for (String bundleStr : bundles) { if (bundleName.contains(bundleStr)) { DECISION_MAP.put(key, true); return true; } } DECISION_MAP.put(key, false); return false; }</code><technical_language>replaced return DECISION_MAP.computeIfAbsent(key, -> Stream.of(REGEX.split(args[0])).anyMatch(bundleName::contains)); pre-splitting args[0] in constructor avoid time</technical_language>

Target:
public boolean isSatisfied() { if (args.length == 0) { return false; } String bundleName = bundle.getHeaders().get("Bundle-SymbolicName"); String key = bundleName + args[0]; Boolean storedResult = DECISION_MAP.get(key); if (storedResult != null) { return storedResult; } for (String bundleStr : bundles) { if (bundleName.contains(bundleStr)) { DECISION_MAP.put(key, true); return true; } } DECISION_MAP.put(key, false); return false; }
Source:
<code>public HelixAccountServiceFactory(VerifiableProperties verifiableProperties, MetricRegistry metricRegistry) { storeConfig = new HelixPropertyStoreConfig(verifiableProperties); accountServiceConfig = new HelixAccountServiceConfig(verifiableProperties); accountServiceMetrics = new AccountServiceMetrics(metricRegistry); <START> this.notifier = <END> accountServiceConfig.zkClientConnectString.equals(HelixAccountServiceConfig.INVALID_ZK_CLIENT_CONNECT_STRING) ? null : new HelixNotifier(accountServiceConfig.zkClientConnectString, storeConfig); }</code><technical_language>minor: need this</technical_language>

Target:
public HelixAccountServiceFactory(VerifiableProperties verifiableProperties, MetricRegistry metricRegistry) { this(new HelixPropertyStoreConfig(verifiableProperties), new HelixAccountServiceConfig(verifiableProperties), new AccountServiceMetrics(metricRegistry), new HelixNotifier(new HelixAccountServiceConfig(verifiableProperties).zkClientConnectString, new HelixPropertyStoreConfig(verifiableProperties))); }
Source:
<code>synchronized String decrypt(String encryptedValue) { if (initFailureMessage != null) { alertSystem(initFailureMessage, initException); } if (isBlank(encryptedValue)) { LOGGER.debug( <START> "Failed to decrypt value of %s, because it was null or blank.", encryptedValue); <END> return encryptedValue; } try { return crypter.decrypt(encryptedValue); } catch (CrypterException e) { LOGGER.warn(String.format("Failed to decrypt from bundle cache. %s", e.getMessage())); return encryptedValue; } }</code><technical_language>this parameterized</technical_language>

Target:
synchronized String decrypt(String encryptedValue) { if (initFailureMessage != null) { alertSystem(initFailureMessage, initException); } if (isBlank(encryptedValue)) { LOGGER.debug( "Failed to decrypt value of {}, because it was null or blank.", encryptedValue); return encryptedValue; } try { return crypter.decrypt(encryptedValue); } catch (CrypterException e) { LOGGER.warn("Failed to decrypt from bundle cache. {}", e.getMessage()); return encryptedValue; } }
Source:
<code>protected IFigure createNodeShape() { final EObject eObj = resolveSemanticElement(); ViewNodeContainerFigureDesc shapeFigure = null; if (eObj instanceof DDiagramElementContainer) { final DDiagramElementContainer container = (DDiagramElementContainer) eObj; ContainerStyle ownedStyle = container.getOwnedStyle(); if (ownedStyle instanceof ShapeContainerStyle) { shapeFigure = new ViewNodeContainerParallelogram(); } else if (ownedStyle instanceof WorkspaceImage) { shapeFigure = new ViewNodeContainerRectangleFigureDesc(); } } else { deactivate(); } if (shapeFigure == null) { shapeFigure = new GradientRoundedRectangle(DiagramContainerEditPartOperation.getCornerDimension(this), DiagramContainerEditPartOperation.getBackgroundStyle(this)); } <START> if (eObj instanceof DDiagramElement && new DDiagramElementQuery((DDiagramElement) eObj).isLabelHidden()) { shapeFigure.getLabelFigure().setVisible(false); } else { shapeFigure.getLabelFigure().setVisible(true); } <END> return shapeFigure; }</code><technical_language>if (eObj instanceof DDiagramElement) { shape.figure.set(new DDEQuery(eObj).isLabelHidden()) }</technical_language>

Target:
protected IFigure createNodeShape() { DDiagramElement diagramElement = resolveDiagramElement(); ViewNodeContainerFigureDesc shapeFigure = null; if (diagramElement instanceof DDiagramElementContainer) { final DDiagramElementContainer container = (DDiagramElementContainer) diagramElement; ContainerStyle ownedStyle = container.getOwnedStyle(); if (ownedStyle instanceof ShapeContainerStyle) { shapeFigure = new ViewNodeContainerParallelogram(); } else if (ownedStyle instanceof WorkspaceImage) { shapeFigure = new ViewNodeContainerRectangleFigureDesc(); } } else { deactivate(); } if (shapeFigure == null) { shapeFigure = new GradientRoundedRectangle(DiagramContainerEditPartOperation.getCornerDimension(this), DiagramContainerEditPartOperation.getBackgroundStyle(this)); } if (diagramElement != null) { shapeFigure.getLabelFigure().setVisible(!(new DDiagramElementQuery(diagramElement).isLabelHidden())); } return shapeFigure; }
Source:
<code>public void add(Path datasetLocation) throws AggregationException { try (NetcdfDatasetAdapter dataset = NetcdfDatasetAdapter.open(datasetLocation, getUnpackerOverrides())) { NetcdfDatasetIF subsettedDataset = dataset.subset(dateRange, verticalSubset, bbox); <START> if (!Files.exists(outputPath)) { <END> logger.info("Creating output file using as a template", outputPath, datasetLocation); templateDataset = new TemplateDataset(subsettedDataset, requestedVariables, attributeChanges, dateRange, verticalSubset, bbox); createFileFromTemplate(templateDataset); unpackerOverrides = dataset.getUnpackerOverrides(); } logger.info("Adding to output file", datasetLocation); appendRecordVariables(subsettedDataset); } catch (IOException e) { throw new AggregationException(e); } }</code><technical_language>do file setup stuff in constructor? throw exception if a file exists program runs</technical_language>

Target:
public void add(Path datasetLocation) throws AggregationException { try (NetcdfDatasetAdapter dataset = NetcdfDatasetAdapter.open(datasetLocation, getUnpackerOverrides())) { NetcdfDatasetIF subsettedDataset = dataset.subset(dateRange, verticalSubset, bbox); if (!fileProcessed) { logger.info("Creating output file using as a template", outputPath, datasetLocation); templateDataset = new TemplateDataset(subsettedDataset, requestedVariables, attributeChanges, dateRange, verticalSubset, bbox); createFileFromTemplate(templateDataset); fileProcessed = true; } logger.info("Adding to output file", datasetLocation); appendRecordVariables(subsettedDataset); } catch (IOException e) { throw new AggregationException(e); } }
Source:
<code>public boolean hasSearchHandler(String resourceName, String resourceParentName) { if (resourceParentName != null) { resourceName = RestConstants.VERSION_1 + "/" + resourceParentName + "/" + resourceName; } else { resourceName = RestConstants.VERSION_1 + "/" + resourceName; } List<SearchHandler> searchHandlers = Context.getService(RestService.class).getAllSearchHandlers(); <START> if (searchHandlers != null) { <END> for (SearchHandler searchHandler : searchHandlers) { if (searchHandler.getSearchConfig().getSupportedResource().equals(resourceName)) { return true; } } } return false; }</code><technical_language>get a NPE here</technical_language>

Target:
public boolean hasSearchHandler(String resourceName, String resourceParentName) { if (resourceParentName != null) { resourceName = RestConstants.VERSION_1 + "/" + resourceParentName + "/" + resourceName; } else { resourceName = RestConstants.VERSION_1 + "/" + resourceName; } List<SearchHandler> searchHandlers = Context.getService(RestService.class).getAllSearchHandlers(); for (SearchHandler searchHandler : searchHandlers) { if (searchHandler.getSearchConfig().getSupportedResource().equals(resourceName)) { return true; } } return false; }
Source:
<code>public void listItemClicked(int position, String formName) { List<FormResource> valueRef = formResourceList.get(position).getResourceList(); String valueRefString = null; for (FormResource resource : valueRef) { if (resource.getName().equals("json")) { valueRefString = resource.getValueReference(); } } EncounterType encType = encounterDAO.getEncounterTypeByFormName(formsStringArray[position]); if (encType != null) { String encounterType = encType.getUuid(); view.startFormDisplayActivity(formName, patientId, valueRefString, encounterType); } else { <START> view.showError(Resources.getSystem().getString(R.string.no_such_form_name_error_message, formName)); <END> } }</code><technical_language>Resources.getSystem() references system resources a crash if incorrectly. a this [post](<LINK_0> this is generally a good practice NullPointerException this is happened in test received NULL instead of string..</technical_language>

Target:
public void listItemClicked(int position, String formName) { List<FormResource> valueRef = formResourceList.get(position).getResourceList(); String valueRefString = null; for (FormResource resource : valueRef) { if (resource.getName().equals("json")) { valueRefString = resource.getValueReference(); } } EncounterType encType = encounterDAO.getEncounterTypeByFormName(formsStringArray[position]); if (encType != null) { String encounterType = encType.getUuid(); view.startFormDisplayActivity(formName, patientId, valueRefString, encounterType); } else { view.showError(formName); } }
Source:
<code>public void writeToParcel(@NonNull Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(color); out.writeInt(dateTextAppearance); out.writeInt(weekDayTextAppearance); out.writeInt(showOtherDates); out.writeByte((byte) (allowClickDaysOutsideCurrentMonth ? 1 : 0)); out.writeParcelable(minDate, 0); out.writeParcelable(maxDate, 0); out.writeTypedList(selectedDates); out.writeInt(firstDayOfWeek); out.writeInt(tileWidthPx); out.writeInt(tileHeightPx); out.writeInt(topbarVisible ? 1 : 0); out.writeInt(selectionMode); out.writeInt(dynamicHeightEnabled ? 1 : 0); out.writeInt(calendarMode == CalendarMode.WEEKS ? 1 : 0); out.writeParcelable(currentMonth, 0); <START> out.writeByte((byte) (saveCurrentPosition ? 1 : 0)); <END> }</code><technical_language>Is a boolean writable in a more direct manner mapping a byte of 0 1</technical_language>

Target:
public void writeToParcel(@NonNull Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(color); out.writeInt(dateTextAppearance); out.writeInt(weekDayTextAppearance); out.writeInt(showOtherDates); out.writeByte((byte) (allowClickDaysOutsideCurrentMonth ? 1 : 0)); out.writeParcelable(minDate, 0); out.writeParcelable(maxDate, 0); out.writeTypedList(selectedDates); out.writeInt(firstDayOfWeek); out.writeInt(orientation); out.writeInt(tileWidthPx); out.writeInt(tileHeightPx); out.writeInt(topbarVisible ? 1 : 0); out.writeInt(selectionMode); out.writeInt(dynamicHeightEnabled ? 1 : 0); out.writeInt(calendarMode == CalendarMode.WEEKS ? 1 : 0); out.writeParcelable(currentMonth, 0); out.writeByte((byte) (saveCurrentPosition ? 1 : 0)); }
Source:
<code>public void bucket(WebContext ctx, String bucketName) { try { Bucket bucket = storage.getBucket(bucketName); if (!bucket.exists()) { ctx.respondWith().error(HttpResponseStatus.NOT_FOUND, "Bucket does not exist"); return; } Page<StoredObject> page = new Page<StoredObject>().bindToRequest(ctx); page.withLimitedItemsSupplier(limit -> bucket.getObjects(page.getQuery(), limit)); page.withTotalItems(bucket.countObjects(page.getQuery())); ctx.respondWith().template("/templates/bucket.html.pasta", bucket, page); } catch (Exception e) { <START> ctx.respondWith().error(HttpResponseStatus.BAD_REQUEST, Exceptions.handle(UserContext.LOG, e)); <END> } }</code><technical_language>for BasicController handle this simply throwing exception... (addd throws Exception signature of method)</technical_language>

Target:
public void bucket(WebContext ctx, String bucketName) { Bucket bucket = storage.getBucket(bucketName); if (!bucket.exists()) { ctx.respondWith().error(HttpResponseStatus.NOT_FOUND, "Bucket does not exist"); return; } Page<StoredObject> page = new Page<StoredObject>().bindToRequest(ctx); page.withLimitedItemsSupplier(limit -> bucket.getObjects(page.getQuery(), limit)); page.withTotalItems(bucket.countObjects(page.getQuery())); ctx.respondWith().template("/templates/bucket.html.pasta", bucket, page); }
Source:
<code>public static MarshallingMessageDecorator<Result> resultBpmnDecorator() { return MarshallingMessageDecorator.of(r -> { BpmnNode o = (BpmnNode) r.value() .map(BpmnNode.class::cast) <START> .get(); <END> return Optional.ofNullable(o .value() .getContent() .getDefinition() .getGeneral() .getName() .getValue()) .orElseGet(() -> o.value().getUUID()); }, r -> { BpmnNode o1 = (BpmnNode) r.value().get(); return o1.value() .getContent() .getDefinition() .getClass() .getSimpleName(); }); }</code><technical_language>optional isPresent check access</technical_language>

Target:
public static MarshallingMessageDecorator<Result> resultBpmnDecorator() { return MarshallingMessageDecorator.of(r -> { BpmnNode o = (BpmnNode) r.value(); return Optional.ofNullable(o.value() .getContent() .getDefinition() .getGeneral() .getName() .getValue()) .orElseGet(() -> o.value().getUUID()); }, r -> { BpmnNode o1 = (BpmnNode) r.value(); return o1.value() .getContent() .getDefinition() .getClass() .getSimpleName(); }); }