auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public void testTruncateWithSplits() throws IOException { byte[][] splits = new byte[][] { Bytes.toBytes("AAA"), Bytes.toBytes("BBB"), Bytes.toBytes("CCC"), }; TableName tableName = IntegrationTests.newTestTableName(); HTableDescriptor descriptor = new HTableDescriptor(tableName); descriptor.addFamily(new HColumnDescriptor(COLUMN_FAMILY)); Admin admin = getConnection().getAdmin(); <START> admin.createTable(descriptor, splits); <END> try { try (Table table = getConnection().getTable(tableName)) { byte[] rowKey = dataHelper.randomData("testrow-"); byte[] qual = dataHelper.randomData("qual-"); byte[] value = dataHelper.randomData("value-"); Put put = new Put(rowKey); put.addColumn(COLUMN_FAMILY, qual, 1L, value); put.addColumn(COLUMN_FAMILY, qual, 2L, value); table.put(put); assertTrue(table.exists(new Get(rowKey))); admin.disableTable(tableName); admin.truncateTable(tableName, true); assertTrue(admin.tableExists(tableName)); assertFalse(table.exists(new Get(rowKey))); } List<HRegionLocation> regions = null; try (RegionLocator locator = getConnection().getRegionLocator(tableName)) { regions = locator.getAllRegionLocations(); } Assert.assertEquals(splits.length + 1, regions.size()); for (int i = 0; i < regions.size(); i++) { HRegionLocation region = regions.get(i); String start_key = Bytes.toString(region.getRegionInfo().getStartKey()); String end_key = Bytes.toString(region.getRegionInfo().getEndKey()); if (i == 0) { Assert.assertEquals(Bytes.toString(splits[0]), end_key); } else if (i == regions.size() - 1) { Assert.assertEquals(Bytes.toString(splits[splits.length - 1]), start_key); } else { Assert.assertEquals(Bytes.toString(splits[i - 1]), start_key); Assert.assertEquals(Bytes.toString(splits[i]), end_key); } } } finally { if (admin.tableExists(tableName)) { admin.disableTable(tableName); admin.deleteTable(tableName); } } }</code><technical_language>splits preserved, do want check splits after</technical_language>

Target:
public void testTruncateWithSplits() throws IOException { byte[][] splits = new byte[][] { Bytes.toBytes("AAA"), Bytes.toBytes("BBB"), Bytes.toBytes("CCC"), }; TableName tableName = IntegrationTests.newTestTableName(); HTableDescriptor descriptor = new HTableDescriptor(tableName); descriptor.addFamily(new HColumnDescriptor(COLUMN_FAMILY)); Admin admin = getConnection().getAdmin(); admin.createTable(descriptor, splits); testSpllits(tableName, splits); try { try (Table table = getConnection().getTable(tableName)) { byte[] rowKey = dataHelper.randomData("testrow-"); byte[] qual = dataHelper.randomData("qual-"); byte[] value = dataHelper.randomData("value-"); Put put = new Put(rowKey); put.addColumn(COLUMN_FAMILY, qual, 1L, value); put.addColumn(COLUMN_FAMILY, qual, 2L, value); table.put(put); assertTrue(table.exists(new Get(rowKey))); admin.disableTable(tableName); admin.truncateTable(tableName, true); assertTrue(admin.tableExists(tableName)); assertFalse(table.exists(new Get(rowKey))); } testSpllits(tableName, splits); } finally { if (admin.tableExists(tableName)) { admin.disableTable(tableName); admin.deleteTable(tableName); } } }
Source:
<code>private void testOrderEditStagedUpdateAction(final OrderEditStagedUpdateAction orderEditStagedUpdateAction) { OrderEditFixtures.withUpdateableOrderEdit(client(), orderEdit -> { final OrderEditUpdateCommand orderEditUpdateCommand = OrderEditUpdateCommand.of(orderEdit, AddStagedAction.of(orderEditStagedUpdateAction)); final OrderEdit updatedOrderEdit = client().executeBlocking(orderEditUpdateCommand); Assertions.assertThat(updatedOrderEdit).isNotNull(); <START> Assertions.assertThat(updatedOrderEdit.getStagedActions().get(0).getAction()).isEqualTo(orderEditStagedUpdateAction.getAction()); <END> Assertions.assertThat(updatedOrderEdit.getStagedActions().get(0)).isInstanceOf(orderEditStagedUpdateAction.getClass()); return updatedOrderEdit; }); }</code><technical_language>Add a check OrderEdit action</technical_language>

Target:
private void testOrderEditStagedUpdateAction(final OrderEditStagedUpdateAction orderEditStagedUpdateAction) { OrderEditFixtures.withUpdateableOrderEdit(client(), orderEdit -> { final OrderEditUpdateCommand orderEditUpdateCommand = OrderEditUpdateCommand.of(orderEdit, AddStagedAction.of(orderEditStagedUpdateAction)); final OrderEdit updatedOrderEdit = client().executeBlocking(orderEditUpdateCommand); Assertions.assertThat(updatedOrderEdit).isNotNull(); Assertions.assertThat(updatedOrderEdit.getStagedActions().size()).isEqualTo(1); Assertions.assertThat(updatedOrderEdit.getStagedActions().get(0).getAction()).isEqualTo(orderEditStagedUpdateAction.getAction()); Assertions.assertThat(updatedOrderEdit.getStagedActions().get(0)).isInstanceOf(orderEditStagedUpdateAction.getClass()); return updatedOrderEdit; }); }
Source:
<code>public static StandardUsernamePasswordCredentials migrateCredentials(@Nonnull String username, String password, @CheckForNull URL url) { StandardUsernamePasswordCredentials cred = null; List<StandardUsernamePasswordCredentials> credentials = CredentialsMatchers.filter( CredentialsProvider.lookupCredentials( StandardUsernamePasswordCredentials.class, Jenkins.getInstance(), ACL.SYSTEM, URIRequirementBuilder.fromUri(url != null ? url.toExternalForm() : null).build() ), CredentialsMatchers.withUsername(username) ); for (StandardUsernamePasswordCredentials c : credentials) { if (StringUtils.equals(password, Secret.toString(c.getPassword()))) { cred = c; <START> break; END> } } if (cred == null) { StandardUsernamePasswordCredentials newCredentials = new UsernamePasswordCredentialsImpl( CredentialsScope.SYSTEM, null, "Migrated by JIRA Plugin", username, password ); SystemCredentialsProvider.getInstance().getCredentials().add(newCredentials); try { SystemCredentialsProvider.getInstance().save(); LOGGER.log(Level.INFO, "Migrated credentials"); } catch (IOException e) { LOGGER.log(Level.WARNING, "Unable to store migrated credentials", e); } cred = newCredentials; } return cred; }</code><technical_language>return c drop null check</technical_language>

Target:
public static StandardUsernamePasswordCredentials migrateCredentials(@Nonnull String username, String password, @CheckForNull URL url) { List<StandardUsernamePasswordCredentials> credentials = CredentialsMatchers.filter( CredentialsProvider.lookupCredentials( StandardUsernamePasswordCredentials.class, Jenkins.getInstance(), ACL.SYSTEM, URIRequirementBuilder.fromUri(url != null ? url.toExternalForm() : null).build() ), CredentialsMatchers.withUsername(username) ); for (StandardUsernamePasswordCredentials c : credentials) { if (StringUtils.equals(password, Secret.toString(c.getPassword()))) { return c; } } StandardUsernamePasswordCredentials newCredentials = new UsernamePasswordCredentialsImpl( CredentialsScope.SYSTEM, null, "Migrated by JIRA Plugin", username, password ); SystemCredentialsProvider.getInstance().getCredentials().add(newCredentials); try { SystemCredentialsProvider.getInstance().save(); LOGGER.log(Level.INFO, "Provided username and password were successfully migrated and stored as {0}", newCredentials.getId()); } catch (IOException e) { LOGGER.log(Level.WARNING, "Unable to store migrated credentials", e); } return newCredentials; }
Source:
<code>private void initializeMeta() throws BlockAlreadyExistsException, IOException, WorkerOutOfSpaceException { boolean isDirectoryNewlyCreated = FileUtils.createStorageDirPath(mDirPath, ServerConfiguration.get(PropertyKey.WORKER_DATA_FOLDER_PERMISSIONS)); if (isDirectoryNewlyCreated) { LOG.info("Folder was created!", mDirPath); } File dir = new File(mDirPath); File[] paths = dir.listFiles(); if (paths == null) { return; } for (File path : paths) { if (!path.isFile()) { <START> if (!path.getName().equals(ServerConfiguration.get(PropertyKey.WORKER_DATA_TMP_FOLDER))) { <END> LOG.error("{} in StorageDir is not a file", path.getAbsolutePath()); } try { org.apache.commons.io.FileUtils.deleteDirectory(path); } catch (IOException e) { LOG.error("can not delete directory {}", path.getAbsolutePath(), e); } } else { try { long blockId = Long.parseLong(path.getName()); addBlockMeta(new BlockMeta(blockId, path.length(), this)); } catch (NumberFormatException e) { LOG.error("filename of in StorageDir can not be parsed into long", path.getAbsolutePath(), e); if (path.delete()) { LOG.warn("file has been deleted", path.getAbsolutePath()); } else { LOG.error("can not delete file {}", path.getAbsolutePath()); } } } } }</code><technical_language>Is intention _only_ filter out this tmp folder, blocks it? it, this filter out single folder</technical_language>

Target:
private void initializeMeta() throws BlockAlreadyExistsException, IOException, WorkerOutOfSpaceException, InvalidPathException { boolean isDirectoryNewlyCreated = FileUtils.createStorageDirPath(mDirPath, ServerConfiguration.get(PropertyKey.WORKER_DATA_FOLDER_PERMISSIONS)); String tmpDir = Paths.get(ServerConfiguration.get(PropertyKey.WORKER_DATA_TMP_FOLDER)) .getName(0).toString(); if (isDirectoryNewlyCreated) { LOG.info("Folder was created!", mDirPath); } File dir = new File(mDirPath); File[] paths = dir.listFiles(); if (paths == null) { return; } for (File path : paths) { if (!path.isFile()) { if (!path.getName().equals(tmpDir)) { LOG.error("{} in StorageDir is not a file", path.getAbsolutePath()); } try { org.apache.commons.io.FileUtils.deleteDirectory(path); } catch (IOException e) { LOG.error("can not delete directory {}", path.getAbsolutePath(), e); } } else { try { long blockId = Long.parseLong(path.getName()); addBlockMeta(new BlockMeta(blockId, path.length(), this)); } catch (NumberFormatException e) { LOG.error("filename of in StorageDir can not be parsed into long", path.getAbsolutePath(), e); if (path.delete()) { LOG.warn("file has been deleted", path.getAbsolutePath()); } else { LOG.error("can not delete file {}", path.getAbsolutePath()); } } } } }
Source:
<code>public String createDatabase() throws SQLException <START> { <END> return getJdbcUri(createNewDatabase()); }</code><technical_language>Style nit: is this project randomly a mixture of K&R Allman style, in other places (even this project) more strictly K&R</technical_language>

Target:
public String createDatabase() throws SQLException { return getJdbcUri(createNewDB()); }
Source:
<code>protected VMs mapCollection(List<org.ovirt.engine.core.common.businessentities.VM> entities) { VMs collection = new VMs(); for (org.ovirt.engine.core.common.businessentities.VM entity : entities) { VM vm = map(entity); collection.getVMs().add(addLinks(populate(vm, entity))); <START> setPayload(vm); <END> } return collection; }</code><technical_language>put call 'setPayload(vm)' method populate(). this method is for - adds information want collection objects mapped</technical_language>

Target:
protected VMs mapCollection(List<org.ovirt.engine.core.common.businessentities.VM> entities) { VMs collection = new VMs(); for (org.ovirt.engine.core.common.businessentities.VM entity : entities) { VM vm = map(entity); collection.getVMs().add(addLinks(populate(vm, entity))); } return collection; }
Source:
<code>public void testConversions(TimeUnit unit, TimeUnit toTimeUnit, double factor) { Duration size = new Duration(1, unit).convertTo(toTimeUnit); assertEquals(size.getUnit(), toTimeUnit); assertEquals(size.getValue(), factor, factor * 0.001); <START> <END> assertEquals(size.getValue(toTimeUnit), factor, factor * 0.001); }</code><technical_language>Intended blank line</technical_language>

Target:
public void testConversions(TimeUnit unit, TimeUnit toTimeUnit, double factor) { Duration duration = new Duration(1, unit).convertTo(toTimeUnit); assertEquals(duration.getUnit(), toTimeUnit); assertEquals(duration.getValue(), factor, factor * 0.001); assertEquals(duration.getValue(toTimeUnit), factor, factor * 0.001); }
Source:
<code>public RegionScanner preScannerOpen(ObserverContext<RegionCoprocessorEnvironment> e, Scan scan, RegionScanner s) throws IOException { s = super.preScannerOpen(e, scan, s); if (ScanUtil.isAnalyzeTable(scan)) { if (!ScanUtil.isLocalIndex(scan)) { scan.getFamilyMap().clear(); } <START> <END> scan.setStartRow(HConstants.EMPTY_START_ROW); scan.setStopRow(HConstants.EMPTY_END_ROW); scan.setFilter(null); } return s; }</code><technical_language>this change</technical_language>

Target:
public RegionScanner preScannerOpen(ObserverContext<RegionCoprocessorEnvironment> e, Scan scan, RegionScanner s) throws IOException { s = super.preScannerOpen(e, scan, s); if (ScanUtil.isAnalyzeTable(scan)) { scan.setStartRow(HConstants.EMPTY_START_ROW); scan.setStopRow(HConstants.EMPTY_END_ROW); scan.setFilter(null); } return s; }
Source:
<code>public void killSyncthing() { for (int i = 0; i < 2; i++) { List<String> syncthingPIDs = getSyncthingPIDs(); if (syncthingPIDs.isEmpty()) { Log.d(TAG, "killSyncthing: Found no more running instances of " + Constants.FILENAME_SYNCTHING_BINARY); break; } int exitCode; String shellCmd; for (String syncthingPID : syncthingPIDs) { if (i > 0) { shellCmd = "sleep 3; kill -SIGKILL " + syncthingPID + "\n"; } else { shellCmd = "kill -SIGINT " + syncthingPID + "; sleep 1\n"; <START> } <END> exitCode = Util.runShellCommand(shellCmd, mUseRoot); if (exitCode == 0) { Log.d(TAG, "Killed Syncthing process " + syncthingPID); } else { Log.w(TAG, "Failed to kill Syncthing process " + syncthingPID + " exit code " + Integer.toString(exitCode)); } } } }</code><technical_language>do sleeping in java. <LINK_0></technical_language>

Target:
public void killSyncthing() { for (int i = 0; i < 2; i++) { List<String> syncthingPIDs = getSyncthingPIDs(); if (syncthingPIDs.isEmpty()) { Log.d(TAG, "killSyncthing: Found no more running instances of " + Constants.FILENAME_SYNCTHING_BINARY); break; } int exitCode; for (String syncthingPID : syncthingPIDs) { if (i > 0) { SystemClock.sleep(3000); exitCode = Util.runShellCommand("kill -SIGKILL " + syncthingPID + "\n", mUseRoot); } else { exitCode = Util.runShellCommand("kill -SIGINT " + syncthingPID + "\n", mUseRoot); SystemClock.sleep(1000); } if (exitCode == 0) { Log.d(TAG, "Killed Syncthing process " + syncthingPID); } else { Log.w(TAG, "Failed to kill Syncthing process " + syncthingPID + " exit code " + Integer.toString(exitCode)); } } } }
Source:
<code>private String buildErrorLines(String prefix, String errorMessage) { <START> StringBuffer errorLines = new StringBuffer(); <END> String[] lines = errorMessage.split(KFSConstants.NEWLINE); for (String line : lines) { if (StringUtils.isNoneBlank(line)) { errorLines.append(prefix); errorLines.append(line); errorLines.append(KFSConstants.NEWLINE); } } return errorLines.toString(); }</code><technical_language>need multi-thread appending need work APIs accept StringBuffer, I suggest a StringBuilder instead</technical_language>

Target:
private String buildErrorLines(String prefix, String errorMessage) { StringBuilder errorLines = new StringBuilder(); String[] lines = errorMessage.split(KFSConstants.NEWLINE); for (String line : lines) { if (StringUtils.isNotBlank(line)) { errorLines.append(prefix); errorLines.append(line); errorLines.append(KFSConstants.NEWLINE); } } return errorLines.toString(); }
Source:
<code>public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { final List<EObject> leftEObjectsNoID = Lists.newArrayList(); final List<EObject> rightEObjectsNoID = Lists.newArrayList(); final List<EObject> originEObjectsNoID = Lists.newArrayList(); <START> List<EObject> leftList = Lists.newArrayList(leftEObjects); <END> List<EObject> rightList = Lists.newArrayList(rightEObjects); List<EObject> originList = Lists.newArrayList(originEObjects); checkAndReportDuplicateIDs(comparison, leftList, Side.LEFT); checkAndReportDuplicateIDs(comparison, rightList, Side.RIGHT); checkAndReportDuplicateIDs(comparison, originList, Side.ORIGIN); final Set<Match> matches = matchPerId(leftList.iterator(), rightList.iterator(), originList .iterator(), leftEObjectsNoID, rightEObjectsNoID, originEObjectsNoID); Iterables.addAll(comparison.getMatches(), matches); if (delegate.isPresent()) { doDelegation(comparison, leftEObjectsNoID, rightEObjectsNoID, originEObjectsNoID, monitor); } else { for (EObject eObject : leftEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setLeft(eObject); matches.add(match); } for (EObject eObject : rightEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setRight(eObject); matches.add(match); } for (EObject eObject : originEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setOrigin(eObject); matches.add(match); } } }</code><technical_language>goal of iterators _is_ force implementers iterations elements. again, checking duplicates? 'matchPerId' a single iteration elements of sides, creatings matches needs registering a Map (idToMatch). check of sort: Match existingMatch = idToMatch.get(identifier); if (existingMatch.get<CurrentSide>() != null) reportDuplicateId(...);</technical_language>

Target:
public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { final List<EObject> leftEObjectsNoID = Lists.newArrayList(); final List<EObject> rightEObjectsNoID = Lists.newArrayList(); final List<EObject> originEObjectsNoID = Lists.newArrayList(); diagnostic = (BasicDiagnostic)Diagnostic.OK_INSTANCE; final Set<Match> matches = matchPerId(leftEObjects, rightEObjects, originEObjects, leftEObjectsNoID, rightEObjectsNoID, originEObjectsNoID); addDiagnostic(comparison); Iterables.addAll(comparison.getMatches(), matches); if (delegate.isPresent()) { doDelegation(comparison, leftEObjectsNoID, rightEObjectsNoID, originEObjectsNoID, monitor); } else { for (EObject eObject : leftEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setLeft(eObject); matches.add(match); } for (EObject eObject : rightEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setRight(eObject); matches.add(match); } for (EObject eObject : originEObjectsNoID) { Match match = CompareFactory.eINSTANCE.createMatch(); match.setOrigin(eObject); matches.add(match); } } }
Source:
<code>public void run() { SentryEnvironment.startManagingThread(); try { actualConnection.send(event); } catch (LockedDownException e) { <START> lockdownLogger.warn(e.getMessage()); <END> } catch (Exception e) { logger.error("An exception occurred while sending the event to Sentry.", e); } finally { SentryEnvironment.stopManagingThread(); } }</code><technical_language>I suggest logging full exception DEBUG level for troubleshooting</technical_language>

Target:
public void run() { SentryEnvironment.startManagingThread(); try { actualConnection.send(event); } catch (LockedDownException | TooManyRequestsException e) { logger.debug("Dropping an Event due to lockdown: " + event); } catch (Exception e) { logger.error("An exception occurred while sending the event to Sentry.", e); } finally { SentryEnvironment.stopManagingThread(); } }
Source:
<code>default Option<Tuple2<K, V>> max() { if (isEmpty()) { return Option.none(); } else { <START> if (head()._2 instanceof Comparator) { <END> final Comparator<Tuple2<K, V>> comparator = (e1, e2) -> ((Comparable<V>) e1._2).compareTo(e2._2); return iterator().maxBy(comparator); } else { return Option.none(); } } }</code><technical_language>Comparable</technical_language>

Target:
default Option<Tuple2<K, V>> max() { if (isEmpty()) { return Option.none(); } else { if (head()._2 instanceof Comparable) { final Comparator<Tuple2<K, V>> comparator = (e1, e2) -> ((Comparable<V>) e1._2).compareTo(e2._2); return iterator().maxBy(comparator); } else { return Option.none(); } } }
Source:
<code>public String getContainerIdFromPath(final String fullPath) throws DotDataException { Host host = null; String hostname = this.getHostName(fullPath); try { if (null != hostname) { host = this.getHostFromHostname(hostname); } } catch (DotDataException | DotSecurityException e) { host = null; } if (null == host) { try { host = WebAPILocator.getHostWebAPI() <START> .getCurrentHost(HttpServletRequestThreadLocal.INSTANCE.getRequest()); <END> } catch (DotSecurityException | PortalException | SystemException e) { Logger.debug(FileAssetContainerUtil.class, e.getMessage()); try { host = APILocator.getHostAPI().findDefaultHost(APILocator.systemUser(), false); } catch (DotDataException | DotSecurityException ex) { Logger.debug(FileAssetContainerUtil.class, e.getMessage()); host = APILocator.systemHost(); } } } if (null == hostname) { hostname = null != host?host.getHostname():StringPool.BLANK; } final String relativePath = this.getPathFromFullPath (hostname, fullPath); final String containerUri = (relativePath.endsWith(FORWARD_SLASH)? relativePath:relativePath+FORWARD_SLASH)+"container.vtl"; final Identifier identifier = APILocator.getIdentifierAPI().find(host, containerUri); return identifier.getId(); }</code><technical_language>good</technical_language>

Target:
public String getContainerIdFromPath(final String fullPath) throws DotDataException { Host host = null; String hostname = this.getHostName(fullPath); try { if (null != hostname) { host = this.getHostFromHostname(hostname); } } catch (DotDataException | DotSecurityException e) { host = null; } if (null == host) { try { host = WebAPILocator.getHostWebAPI() .getCurrentHost(HttpServletRequestThreadLocal.INSTANCE.getRequest()); } catch (DotSecurityException | PortalException | SystemException e) { Logger.warnAndDebug(FileAssetContainerUtil.class, e); try { host = APILocator.getHostAPI().findDefaultHost(APILocator.systemUser(), false); } catch (DotDataException | DotSecurityException ex) { Logger.warnAndDebug(FileAssetContainerUtil.class, e); host = APILocator.systemHost(); } } } if (null == hostname) { hostname = null != host?host.getHostname():StringPool.BLANK; } final String relativePath = this.getPathFromFullPath (hostname, fullPath); final String containerUri = (relativePath.endsWith(FORWARD_SLASH)? relativePath:relativePath+FORWARD_SLASH)+"container.vtl"; final Identifier identifier = APILocator.getIdentifierAPI().find(host, containerUri); return identifier.getId(); }
Source:
<code>public boolean textboxKeyTyped(char par1, int par2) { if (getEnabled() && this.isFocused() && par1 == '\r') { return true; <START> setFocused(false); <END> } return super.textboxKeyTyped(par1, par2); }</code><technical_language>inverted</technical_language>

Target:
public boolean textboxKeyTyped(char par1, int par2) { if (getEnabled() && this.isFocused() && par1 == '\r') { setFocused(false); return true; } return super.textboxKeyTyped(par1, par2); }
Source:
<code>public void nonWritableDatastoreManagerPathThrows() throws DatastoreNotOpenedException, IOException { File f = new File(TEST_PATH, "c_root_test"); try { <START> FileUtils.forceMkdir(f); <END> f.setReadOnly(); DocumentStore ds = DocumentStore.getInstance(f); ds.close(); } finally { f.setWritable(true); f.delete(); } }</code><technical_language>forcing creation of directory? Surely writeable</technical_language>

Target:
public void nonWritableDatastoreManagerPathThrows() throws DatastoreNotOpenedException, IOException { File f = new File(TEST_PATH, "c_root_test"); try { f.mkdirs(); f.setReadOnly(); DocumentStore ds = DocumentStore.getInstance(f); ds.close(); } finally { f.setWritable(true); f.delete(); } }
Source:
<code>public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { if (this.sharedCache.size() == MAX_SIZE_OF_QUEUE) { <START> this.sharedCache.clear(); <END> } response.setContentType("text/event-stream"); response.setCharacterEncoding("UTF-8"); response.setHeader("Cache-control", "no-cache"); response.setHeader("Connection", "keep-alive"); final PrintWriter writer = response.getWriter(); while (!this.sharedCache.isEmpty()) { writer.write("data: " + this.sharedCache.poll() + "\n\n"); } writer.flush(); writer.close(); }</code><technical_language>If clear queue here. empty a lines below. that? Is upper bound enough</technical_language>

Target:
public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { final String sessionId = request.getParameter("session"); if (!isNullOrEmpty(sessionId)) { this.requests.put(sessionId, request); } response.setContentType("text/event-stream"); response.setCharacterEncoding("UTF-8"); response.setHeader("Cache-control", "no-cache"); response.setHeader("Connection", "keep-alive"); response.setHeader("Access-Control-Allow-Origin", "*"); final HttpSession session = request.getSession(false); session.setMaxInactiveInterval(MAX_INACTIVE_INTERVAL); final String sessionToDestroy = request.getParameter("logout"); if ((!isNullOrEmpty(sessionToDestroy)) && this.requests.containsKey(sessionId)) { this.requests.remove(sessionId); session.invalidate(); return; } final BlockingQueue<String> eventQueue = new LinkedBlockingQueue<>(MAX_SIZE_OF_QUEUE); final ServletOutputStream outputStream = response.getOutputStream(); final PrintStream printStream = new PrintStream(outputStream); final AtomicReference<Closeable> closeableReference = new AtomicReference<>(outputStream); final CompletableFuture<Void> elementRemovalFuture = CompletableFuture.runAsync(() -> { try { final boolean sessionExistsAndValid = this.requests.containsKey(sessionId) && this.requests.get(sessionId).isRequestedSessionIdValid(); while (sessionExistsAndValid) { final String data = eventQueue.poll(2, TimeUnit.SECONDS); if (isNull(data)) { printStream.print(":\n\n"); } else { printStream.printf("data: %s%n%n", data); } printStream.flush(); } } catch (final InterruptedException ex) { logger.warn("Element removal timeout..." + stackTraceAsString(ex)); response.setStatus(HttpServletResponse.SC_OK); } }); final ServiceRegistration<?> registration = registerEventHandler(EMIT_EVENT_TOPIC, eventQueue, sessionId, closeableReference, elementRemovalFuture); final CompletableFuture<Void> cleanupFuture = elementRemovalFuture.handle((ok, exeption) -> { registration.unregister(); try { outputStream.close(); } catch (final IOException ex) { logger.warn("Outport Stream closing issue..." + stackTraceAsString(ex)); } return null; }); try { cleanupFuture.join(); } catch (RuntimeException re) { } }
Source:
<code>public void validate(PlanNode plan, Session session, Metadata metadata, SqlParser sqlParser, Map<Symbol, Type> types) { <START> for (Expression expression : ExpressionExtractor.extractExpressions(plan)) { <END> new DefaultTraversalVisitor<Void, Void>() { @Override protected Void visitIdentifier(Identifier node, Void context) { throw new IllegalStateException(format("Unexpected identifier in logical plan: %s", node)); } }.process(expression, null); } }</code><technical_language>use: ExpressionTreeUtils#extractExpressions(java.lang.Iterable<? extends com.facebook.presto.sql.tree.Node>, java.lang.Class<T>) validate isEmpty()</technical_language>

Target:
public void validate(PlanNode plan, Session session, Metadata metadata, SqlParser sqlParser, Map<Symbol, Type> types) { List<Identifier> identifiers = ExpressionTreeUtils.extractExpressions(ExpressionExtractor.extractExpressions(plan), Identifier.class); if (!identifiers.isEmpty()) { throw new IllegalStateException("Unexpected identifier in logical plan: " + identifiers.get(0)); } }
Source:
<code>public void onTerminate() { <START> unregisterExtranlControlClient(); <END> super.onTerminate(); }</code><technical_language>this method is, refactor spell external correctly</technical_language>

Target:
public void onTerminate() { super.onTerminate(); }
Source:
<code>public void testSnapshotMapReduceJobNotImpactingTableMapReduceJob() throws Exception { PhoenixMapReduceUtil .setInput(job, PhoenixIndexDBWritable.class, SNAPSHOT_NAME, tableName, tmpDir, null, FIELD1, FIELD2, FIELD3); configureJob(job, tableName, null, null, false); <START> Connection conn = DriverManager.getConnection(getUrl()); <END> tableName = generateUniqueName(); conn.createStatement().execute(String.format(CREATE_TABLE, tableName)); conn.commit(); createAndTestJob(conn); }</code><technical_language>try-with-resources opening connections statements throughout</technical_language>

Target:
public void testSnapshotMapReduceJobNotImpactingTableMapReduceJob() throws Exception { PhoenixMapReduceUtil .setInput(job, PhoenixIndexDBWritable.class, SNAPSHOT_NAME, tableName, tmpDir, null, FIELD1, FIELD2, FIELD3); configureJob(job, tableName, null, null, false); Configuration config = job.getConfiguration(); Assert.assertEquals("Correct snapshot name not found in configuration", SNAPSHOT_NAME, config.get(PhoenixConfigurationUtil.SNAPSHOT_NAME_KEY)); try (Connection conn = DriverManager.getConnection(getUrl())) { tableName = generateUniqueName(); conn.createStatement().execute(String.format(CREATE_TABLE, tableName)); conn.commit(); job = createAndTestJob(conn); } config = job.getConfiguration(); Assert.assertNull("Snapshot name is not null in Configuration", config.get(PhoenixConfigurationUtil.SNAPSHOT_NAME_KEY)); }
Source:
<code>protected void endSuccessfully() { <START> removeRedudantVolumesForOrphanedDisks(); <END> if (!getParameters().isParentHasTasks()) { getBackend().endAction(getParameters().getParentCommand(), getParameters().getParentParameters(), getContext().clone().withoutCompensationContext().withoutExecutionContext().withoutLock()); } }</code><technical_language>s/redudant/redundant</technical_language>

Target:
protected void endSuccessfully() { removeRedundantVolumesForOrphanedDisks(); if (!getParameters().isParentHasTasks()) { getBackend().endAction(getParameters().getParentCommand(), getParameters().getParentParameters(), getContext().clone().withoutCompensationContext().withoutExecutionContext().withoutLock()); } }
Source:
<code>public double getDouble(ByteBuffer buf, int position) { <START> return buf.getDouble(position); <END> }</code><technical_language>this change is wrong (I suggested - sorry). DistinctCountBufferAggregator extend LongBufferAggregator</technical_language>

Target:
public double getDouble(ByteBuffer buf, int position) { return (double) buf.getLong(position); }
Source:
<code>public ValidationResult validateStatusForActivation() { ValidationResult existsValidation = exists(); if (!existsValidation.isValid()) { return existsValidation; } if (vds.getStatus().equals(VDSStatus.Up)) { return new ValidationResult(VdcBllMessages.VDS_ALREADY_UP); } <START> if (vds.getStatus().equals(VDSStatus.NonResponsive)) { <END> return new ValidationResult(VdcBllMessages.VDS_NON_RESPONSIVE); } return ValidationResult.VALID; }</code><technical_language>is practice do if (VDSStatus.NonResponsive.equals(vds.getStatus())) for check</technical_language>

Target:
public ValidationResult validateStatusForActivation() { ValidationResult existsValidation = exists(); if (!existsValidation.isValid()) { return existsValidation; } if (VDSStatus.Up == vds.getStatus()) { return new ValidationResult(VdcBllMessages.VDS_ALREADY_UP); } if (VDSStatus.NonResponsive == vds.getStatus()) { return new ValidationResult(VdcBllMessages.VDS_NON_RESPONSIVE); } return ValidationResult.VALID; }
Source:
<code>protected abstract void sendEmailWithService(EmailWrapper wrapper) throws Exception; <START> static boolean isErrorStatus(int statusCode) { <END> return statusCode < 200 || statusCode > 299; }</code><technical_language>strictly speaking, 2XX is isNotSuccessfulStatus, e.g. I call 1XX 3XX errors</technical_language>

Target:
protected abstract void sendEmailWithService(EmailWrapper wrapper) throws Exception; static boolean isNotSuccessStatus(int statusCode) { return statusCode < 200 || statusCode > 299; }
Source:
<code>public void onBackPressed() { if (mDrawerLayout != null && mDrawerLayout.isDrawerOpen(GravityCompat.START)) { mDrawerLayout.closeDrawer(Gravity.LEFT); } else { if (doubleBackToExitPressedOnce) { setMenuCreateClient(true); setMenuCreateCentre(true); setMenuCreateGroup(true); super.onBackPressed(); return; } this.doubleBackToExitPressedOnce = true; Toast.makeText(this, R.string.back_again, Toast.LENGTH_SHORT).show(); <START> new android.os.Handler().postDelayed(new Runnable() { <END> @Override public void run() { doubleBackToExitPressedOnce = false; } }, 2000); } }</code><technical_language>Import this Handler class this new Handler()..</technical_language>

Target:
public void onBackPressed() { if (mDrawerLayout != null && mDrawerLayout.isDrawerOpen(GravityCompat.START)) { mDrawerLayout.closeDrawer(Gravity.LEFT); } else { if (doubleBackToExitPressedOnce) { setMenuCreateClient(true); setMenuCreateCentre(true); setMenuCreateGroup(true); super.onBackPressed(); return; } this.doubleBackToExitPressedOnce = true; Toast.makeText(this, R.string.back_again, Toast.LENGTH_SHORT).show(); new Handler().postDelayed(new Runnable() { @Override public void run() { doubleBackToExitPressedOnce = false; } }, 2000); } }
Source:
<code>public Collection<SideEffect> getSupportedSideEffects() { <START> return Lists.newArrayList(); <END> }</code><technical_language>matter, this ImmutableList.of(), Collections.emptyList(), other constant empty collection avoid a tiny allocation. generally more performant compact well</technical_language>

Target:
public Set<SideEffect> getSupportedSideEffects() { return ImmutableSet.of(); }
Source:
<code>private void enableConnectivityChangeReceiver(boolean enable) { if(getSettings().isAutoSyncQueueEnabled()) { <START> Log.d(TAG, "onOfflineQueueChangedEvent() enable connectivity change receiver: " + enable); <END> Settings.enableConnectivityChangeReceiver(getContext(), enable); } }</code><technical_language>method name in log message enableConnectivityChangeReceiver()</technical_language>

Target:
private void enableConnectivityChangeReceiver(boolean enable) { if(getSettings().isAutoSyncQueueEnabled()) { Log.d(TAG, "enableConnectivityChangeReceiver() enable connectivity change receiver: " + enable); Settings.enableConnectivityChangeReceiver(getContext(), enable); } }
Source:
<code>public static boolean isJava7OrAbove() { <START> return isJavaSpecAtLeast(7); <END> }</code><technical_language>no, this stay true. support stuff more</technical_language>

Target:
public static boolean isJava7OrAbove() { return true; }
Source:
<code>private List<Expression> extractColumnData(final int uiColumnIndex) { final int iiIndex = uiColumnIndex - RelationUIModelMapperHelper.ROW_INDEX_COLUMN_COUNT; <START> final List<Expression> values = relation.getRow().stream().map(row -> row.getExpression().get(iiIndex)).collect(Collectors.toList()); <END> return values; }</code><technical_language>Do this local variable values for debugging purposes? If not, shorten statement: java return relation.getRow().stream().map(row -> row.getExpression().get(iiIndex)).collect(Collectors.toList()); WDYT</technical_language>

Target:
private List<Expression> extractColumnData(final int uiColumnIndex) { final int iiIndex = uiColumnIndex - RelationUIModelMapperHelper.ROW_INDEX_COLUMN_COUNT; return relation.getRow() .stream() .map(row -> row.getExpression().get(iiIndex)) .collect(Collectors.toList()); }
Source:
<code>private void init() throws IOException { final long begin = System.nanoTime(); <START> <END> structurePanel.show(); metadataPanel.showLogical(getSelectedStructure()); metadataPanel.showPhysical(getSelectedMediaUnit()); galleryPanel.show(); paginationPanel.show(); commentPanel.show(); addDocStrucTypeDialog.prepare(); addMediaUnitDialog.prepare(); editPagesDialog.prepare(); if (logger.isTraceEnabled()) { logger.trace("Initializing editor beans took ms", TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - begin)); } }</code><technical_language>This meta-data panel initialized display meta-data for a structure, reset show meta-data of a media unit. please clarify that? For example: Optional<IncludedStructuralElement> structure = getSelectedStructure(); if(structure.isPresent()){ metadataPanel.show(structure); } else { metadataPanel.show(getSelectedMediaUnit()); }</technical_language>

Target:
private void init() { final long begin = System.nanoTime(); structurePanel.show(); metadataPanel.showLogical(getSelectedStructure()); metadataPanel.showPhysical(getSelectedMediaUnit()); galleryPanel.show(); paginationPanel.show(); addDocStrucTypeDialog.prepare(); addMediaUnitDialog.prepare(); editPagesDialog.prepare(); if (logger.isTraceEnabled()) { logger.trace("Initializing editor beans took ms", TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - begin)); } }
Source:
<code>protected String parseResourceName(String line) { if (line == null) { return null; } for (String template : COMPILER_COMMAND_PATTERN_TEMPLATES) { String pattern = makePattern(template); <START> Matcher fileMatcher = Pattern.compile(pattern).matcher(line); <END> if (fileMatcher.matches()) { int fileGroup = adjustFileGroup(); String sourceFileName = fileMatcher.group(fileGroup); return sourceFileName; } } return null; }</code><technical_language>rebasing latest master I forgot change</technical_language>

Target:
protected String parseResourceName(String line) { if (line == null) { return null; } if (compilerPatterns == null) { compilerPatterns = new Pattern[COMPILER_COMMAND_PATTERN_TEMPLATES.length]; for (int i = 0; i < COMPILER_COMMAND_PATTERN_TEMPLATES.length; i++) { String patternTemplate = COMPILER_COMMAND_PATTERN_TEMPLATES[i]; String patternString = makePattern(patternTemplate); compilerPatterns[i] = Pattern.compile(patternString); } } for (Pattern pattern : compilerPatterns) { Matcher fileMatcher = pattern.matcher(line); if (fileMatcher.matches()) { int fileGroup = adjustFileGroup(); String sourceFileName = fileMatcher.group(fileGroup); return sourceFileName; } } return null; }
Source:
<code>public final Set<Class<?>> scan(Class<? extends Annotation>... annotationTypes) throws ClassNotFoundException { List<String> packages = getPackages(); if (packages.isEmpty()) { return Collections.emptySet(); } ClassPathScanningCandidateComponentProvider scanner; <START> if (this.excludeAbstractClasses) { <END> scanner = new ClassPathScanningCandidateComponentProvider(false); } else { scanner = new ClassPathScanningCandidateComponentProvider(false) { @Override protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) { AnnotationMetadata metadata = beanDefinition.getMetadata(); return metadata.isIndependent(); } }; } scanner.setEnvironment(this.context.getEnvironment()); scanner.setResourceLoader(this.context); for (Class<? extends Annotation> annotationType : annotationTypes) { scanner.addIncludeFilter(new AnnotationTypeFilter(annotationType)); } Set<Class<?>> entitySet = new HashSet<>(); for (String basePackage : packages) { if (StringUtils.hasText(basePackage)) { for (BeanDefinition candidate : scanner.findCandidateComponents(basePackage)) { entitySet.add(ClassUtils.forName(candidate.getBeanClassName(), this.context.getClassLoader())); } } } return entitySet; }</code><technical_language>of this, I expose a protected method ClassPathScanningCandidateComponentProvider tuned. able change behaviour duplicate logic</technical_language>

Target:
public final Set<Class<?>> scan(Class<? extends Annotation>... annotationTypes) throws ClassNotFoundException { List<String> packages = getPackages(); if (packages.isEmpty()) { return Collections.emptySet(); } for (Class<? extends Annotation> annotationType : annotationTypes) { this.componentProvider.addIncludeFilter(new AnnotationTypeFilter(annotationType)); } Set<Class<?>> entitySet = new HashSet<>(); for (String basePackage : packages) { if (StringUtils.hasText(basePackage)) { for (BeanDefinition candidate : this.componentProvider.findCandidateComponents(basePackage)) { entitySet.add(ClassUtils.forName(candidate.getBeanClassName(), this.context.getClassLoader())); } } } return entitySet; }
Source:
<code>public void start() throws Exception { JsonObject config = new JsonObject().put("url", "jdbc:hsqldb:mem:test?shutdown=true") .put("driver_class", "org.hsqldb.jdbcDriver"); JDBCClient jdbc = JDBCClient.createShared(vertx, config); <START> jdbc.rxGetConnection().subscribe( <END> conn -> { conn.rxUpdate("CREATE TABLE test(col VARCHAR(20))"). flatMap(result -> conn.rxUpdate("INSERT INTO test (col) VALUES ('val1')")). flatMap(result -> conn.rxUpdate("INSERT INTO test (col) VALUES ('val2')")). flatMap(result -> conn.rxQueryStream("SELECT * FROM test")).subscribe( rowStream -> { rowStream.toObservable().subscribe( row -> System.out.println("Row : " + row.encode()), Throwable::printStackTrace, conn::close ); }, Throwable::printStackTrace); }, Throwable::printStackTrace ); }</code><technical_language>subscribe here, flatMap</technical_language>

Target:
public void start() throws Exception { JsonObject config = new JsonObject().put("url", "jdbc:hsqldb:mem:test?shutdown=true") .put("driver_class", "org.hsqldb.jdbcDriver"); JDBCClient jdbc = JDBCClient.createShared(vertx, config); jdbc.rxGetConnection(). flatMap(conn -> conn.rxUpdate("CREATE TABLE test(col VARCHAR(20))"). flatMap(result -> conn.rxUpdate("INSERT INTO test (col) VALUES ('val1')")). flatMap(result -> conn.rxUpdate("INSERT INTO test (col) VALUES ('val2')")). flatMap(result -> conn.rxQueryStream("SELECT * FROM test"))). flatMapObservable(SQLRowStream::toObservable). subscribe( row -> System.out.println("Row : " + row.encode()) ); }
Source:
<code>public static void registerDefaultRules(RelOptPlanner planner, boolean enableMaterialziations, boolean enableBindable) { if (CalciteSystemProperty.ENABLE_COLLATION_TRAIT.value()) { registerAbstractRelationalRules(planner); } registerAbstractRules(planner); registerBaseRules(planner); if (enableMaterialziations) { registerMaterializationRules(planner); } if (enableBindable) { for (RelOptRule rule : Bindables.RULES) { planner.addRule(rule); } } planner.addRule(Bindables.BINDABLE_TABLE_SCAN_RULE); planner.addRule(ProjectTableScanRule.INSTANCE); planner.addRule(ProjectTableScanRule.INTERPRETER); if (CalciteSystemProperty.ENABLE_ENUMERABLE.value()) { registerEnumerableRules(planner); planner.addRule(EnumerableInterpreterRule.INSTANCE); } if (enableBindable && CalciteSystemProperty.ENABLE_ENUMERABLE.value()) { planner.addRule( EnumerableBindable.EnumerableToBindableConverterRule.INSTANCE); } if (CalciteSystemProperty.ENABLE_STREAM.value()) { for (RelOptRule rule : StreamRules.RULES) { planner.addRule(rule); } } if (false) { registerReductionRules(planner); } else { <START> planner.addRule(ReduceExpressionsRule.FILTER_INSTANCE); <END> } }</code><technical_language>I suggested enabling this rule I remember other constant reduction rules disabled. disabled explicitly reduction rules</technical_language>

Target:
public static void registerDefaultRules(RelOptPlanner planner, boolean enableMaterialziations, boolean enableBindable) { if (CalciteSystemProperty.ENABLE_COLLATION_TRAIT.value()) { registerAbstractRelationalRules(planner); } registerAbstractRules(planner); registerBaseRules(planner); if (enableMaterialziations) { registerMaterializationRules(planner); } if (enableBindable) { for (RelOptRule rule : Bindables.RULES) { planner.addRule(rule); } } planner.addRule(Bindables.BINDABLE_TABLE_SCAN_RULE); planner.addRule(ProjectTableScanRule.INSTANCE); planner.addRule(ProjectTableScanRule.INTERPRETER); if (CalciteSystemProperty.ENABLE_ENUMERABLE.value()) { registerEnumerableRules(planner); planner.addRule(EnumerableInterpreterRule.INSTANCE); } if (enableBindable && CalciteSystemProperty.ENABLE_ENUMERABLE.value()) { planner.addRule( EnumerableBindable.EnumerableToBindableConverterRule.INSTANCE); } if (CalciteSystemProperty.ENABLE_STREAM.value()) { for (RelOptRule rule : StreamRules.RULES) { planner.addRule(rule); } } planner.addRule(ReduceExpressionsRule.FILTER_INSTANCE); }
Source:
<code>private void loadSubscriptions() { if (disposable != null) { disposable.dispose(); } emptyView.hide(); progressBar.setVisibility(View.VISIBLE); disposable = Observable.fromCallable(DBReader::getNavDrawerData) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(result -> { navDrawerData = result; subscriptionAdapter.notifyDataSetChanged(); emptyView.updateVisibility(); progressBar.setVisibility(View.GONE); }, error -> Log.e(TAG, Log.getStackTraceString(error))); <START> if (UserPreferences.getSubscriptionsFilter().areSubscriptionsFiltered()) { <END> feedsFilteredMsg.setText("{md-info-outline} " + getString(R.string.subscriptions_are_filtered)); Iconify.addIcons(feedsFilteredMsg); feedsFilteredMsg.setVisibility(View.VISIBLE); } else { feedsFilteredMsg.setVisibility(View.GONE); } }</code><technical_language>method name sounds a bit strange (having words "subscription filter" twice). I currently do a name in mind, though</technical_language>

Target:
private void loadSubscriptions() { if (disposable != null) { disposable.dispose(); } emptyView.hide(); progressBar.setVisibility(View.VISIBLE); disposable = Observable.fromCallable(DBReader::getNavDrawerData) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(result -> { navDrawerData = result; subscriptionAdapter.notifyDataSetChanged(); emptyView.updateVisibility(); progressBar.setVisibility(View.GONE); }, error -> Log.e(TAG, Log.getStackTraceString(error))); if (UserPreferences.getSubscriptionsFilter().isEnabled()) { feedsFilteredMsg.setText("{md-info-outline} " + getString(R.string.subscriptions_are_filtered)); Iconify.addIcons(feedsFilteredMsg); feedsFilteredMsg.setVisibility(View.VISIBLE); } else { feedsFilteredMsg.setVisibility(View.GONE); } }
Source:
<code>public void testNarrowingConversionsInListInitialization_389782() throws Exception { <START> <END> BindingAssertionHelper helper = getAssertionHelper(); assertProblemOnFirstToken(helper, "fint({vdouble"); assertProblemOnFirstToken(helper, "ffloat({vlongdouble"); assertProblemOnFirstToken(helper, "ffloat({vdouble"); assertProblemOnFirstToken(helper, "fdouble({vlongdouble"); assertProblemOnFirstToken(helper, "fdouble({vint"); assertProblemOnFirstToken(helper, "fdouble({vue"); assertProblemOnFirstToken(helper, "fshort({vint"); assertProblemOnFirstToken(helper, "fuint({vint"); assertProblemOnFirstToken(helper, "fint({vuint"); assertProblemOnFirstToken(helper, "fulong({vshort"); assertProblemOnFirstToken(helper, "fbool({vint"); assertProblemOnFirstToken(helper, "fchar({vint"); assertNonProblemOnFirstToken(helper, "fint({vshort"); assertNonProblemOnFirstToken(helper, "flong({vint"); assertNonProblemOnFirstToken(helper, "fuint({vushort"); assertNonProblemOnFirstToken(helper, "flong({vshort"); assertNonProblemOnFirstToken(helper, "fulong({vuint"); assertNonProblemOnFirstToken(helper, "fulong({vushort"); assertNonProblemOnFirstToken(helper, "fdouble({vfloat"); assertNonProblemOnFirstToken(helper, "flongdouble({vfloat"); assertNonProblemOnFirstToken(helper, "flongdouble({vdouble"); assertNonProblemOnFirstToken(helper, "fint({vbool"); assertNonProblemOnFirstToken(helper, "fint({vchar"); }</code><technical_language>Unnecessary blank line</technical_language>

Target:
public void testNarrowingConversionsInListInitialization_389782() throws Exception { BindingAssertionHelper helper = getAssertionHelper(); helper.assertProblemOnFirstToken("fint({vdouble"); helper.assertProblemOnFirstToken("ffloat({vlongdouble"); helper.assertProblemOnFirstToken("ffloat({vdouble"); helper.assertProblemOnFirstToken("fdouble({vlongdouble"); helper.assertProblemOnFirstToken("fdouble({vint"); helper.assertProblemOnFirstToken("fdouble({vue"); helper.assertProblemOnFirstToken("fshort({vint"); helper.assertProblemOnFirstToken("fuint({vint"); helper.assertProblemOnFirstToken("fint({vuint"); helper.assertProblemOnFirstToken("fulong({vshort"); helper.assertProblemOnFirstToken("fbool({vint"); helper.assertProblemOnFirstToken("fchar({vint"); helper.assertNonProblemOnFirstToken("fint({vshort"); helper.assertNonProblemOnFirstToken("flong({vint"); helper.assertNonProblemOnFirstToken("fuint({vushort"); helper.assertNonProblemOnFirstToken("flong({vshort"); helper.assertNonProblemOnFirstToken("fulong({vuint"); helper.assertNonProblemOnFirstToken("fulong({vushort"); helper.assertNonProblemOnFirstToken("fdouble({vfloat"); helper.assertNonProblemOnFirstToken("flongdouble({vfloat"); helper.assertNonProblemOnFirstToken("flongdouble({vdouble"); helper.assertNonProblemOnFirstToken("fint({vbool"); helper.assertNonProblemOnFirstToken("fint({vchar"); }