auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void set(CommentLinkProcessor commentLinkProcessor, ChangeInfo change, String revision) { RevisionInfo revInfo = change.revision(revision); CommitInfo commit = revInfo.commit(); String sub = commit.subject(); String msg = commit.message(); if (msg.startsWith(sub)) { msg = msg.substring(sub.length()); if (msg.length() > 0 && msg.charAt(0) == '\n') { msg = msg.substring(1); } } commitName.setText(revision); commitName.setPreviewText(revision); idText.setText("Change-Id: " + change.change_id()); idText.setPreviewText(change.change_id()); formatLink(commit.author(), authorNameEmail, authorDate, change.status()); formatLink(commit.committer(), committerNameEmail, committerDate, change.status()); text.setHTML(commentLinkProcessor.apply( new SafeHtmlBuilder().append(msg).linkify())); GitwebLink gw = Gerrit.getGitwebLink(); if (gw != null && gw.canLink(revInfo)) { browserLink.setInnerText(gw.getLinkName()); browserLink.setHref(gw.toRevision(change.project(), revision)); } else { UIObject.setVisible(browserLink, false); } }

Target:
void set(CommentLinkProcessor commentLinkProcessor, ChangeInfo change, String revision) { RevisionInfo revInfo = change.revision(revision); CommitInfo commit = revInfo.commit(); String sub = commit.subject(); String msg = commit.message(); if (msg.startsWith(sub)) { msg = msg.substring(sub.length()); if (msg.length() > 0 && msg.charAt(0) == '\n') { msg = msg.substring(1); } } commitName.setText(revision); idText.setText("Change-Id: " + change.change_id()); idText.setPreviewText(change.change_id()); formatLink(commit.author(), authorNameEmail, authorDate, change.status()); formatLink(commit.committer(), committerNameEmail, committerDate, change.status()); text.setHTML(commentLinkProcessor.apply( new SafeHtmlBuilder().append(msg).linkify())); GitwebLink gw = Gerrit.getGitwebLink(); if (gw != null && gw.canLink(revInfo)) { browserLink.setInnerText(gw.getLinkName()); browserLink.setHref(gw.toRevision(change.project(), revision)); } else { UIObject.setVisible(browserLink, false); } }
Source:
static void validateMultiPageDataLabeled(List<RecognizedForm> actualRecognizedFormsList) { actualRecognizedFormsList.forEach(recognizedForm -> { assertEquals(1, recognizedForm.getPageRange().getFirstPageNumber()); assertEquals(3, recognizedForm.getPageRange().getLastPageNumber()); assertEquals(3, recognizedForm.getPages().size()); recognizedForm.getFields().forEach((label, formField) -> { assertNotNull(formField.getName()); assertNotNull(formField.getValue()); assertNotNull(formField.getValueData().getText()); }); }); }

Target:
static void validateMultiPageDataLabeled(List<RecognizedForm> actualRecognizedFormsList) { actualRecognizedFormsList.forEach(recognizedForm -> { assertEquals(1, recognizedForm.getPageRange().getFirstPageNumber()); assertEquals(3, recognizedForm.getPageRange().getLastPageNumber()); assertEquals(3, recognizedForm.getPages().size()); recognizedForm.getFields().forEach((label, formField) -> { assertNotNull(formField.getName()); assertNotNull(formField.getValue()); assertNotNull(formField.getValueData().getText()); assertNull(formField.getLabelData()); }); }); }
Source:
private void setConstructors() { constructor = generatedClass.constructor(PRIVATE); JVar constructorContextParam = constructor.param(getClasses().CONTEXT, "context"); JBlock constructorBody = constructor.body(); List<ExecutableElement> constructors = ElementFilter.constructorsIn(annotatedElement.getEnclosedElements()); ExecutableElement superConstructor = constructors.get(0); if (superConstructor.getParameters().size() == 1) { constructorBody.invoke("super").arg(constructorContextParam); } constructorBody.assign(getContextField(), constructorContextParam); overloadedConstructor = generatedClass.constructor(PRIVATE); JVar overloadedConstructorContextParam = overloadedConstructor.param(getClasses().CONTEXT, "context"); JVar overloadedConstructorRootFragmentParam = overloadedConstructor.param(getClasses().OBJECT, "rootFragment"); JBlock overloadedConstructorBody = overloadedConstructor.body(); if (superConstructor.getParameters().size() == 1) { overloadedConstructorBody.invoke("super").arg(constructorContextParam); } overloadedConstructorBody.assign(getContextField(), overloadedConstructorContextParam); overloadedConstructorBody.assign(getRootFragmentField(), overloadedConstructorRootFragmentParam); }

Target:
private void setConstructors() { constructor = generatedClass.constructor(PRIVATE); JVar constructorContextParam = constructor.param(getClasses().CONTEXT, "context"); JBlock constructorBody = constructor.body(); List<ExecutableElement> constructors = ElementFilter.constructorsIn(annotatedElement.getEnclosedElements()); ExecutableElement superConstructor = constructors.get(0); if (superConstructor.getParameters().size() == 1) { constructorBody.add(JExpr.invokeSuper().arg(constructorContextParam)); } constructorBody.assign(getContextField(), constructorContextParam); overloadedConstructor = generatedClass.constructor(PRIVATE); JVar overloadedConstructorContextParam = overloadedConstructor.param(getClasses().CONTEXT, "context"); JVar overloadedConstructorRootFragmentParam = overloadedConstructor.param(getClasses().OBJECT, "rootFragment"); JBlock overloadedConstructorBody = overloadedConstructor.body(); if (superConstructor.getParameters().size() == 1) { overloadedConstructorBody.add(JExpr.invokeSuper().arg(constructorContextParam)); } overloadedConstructorBody.assign(getContextField(), overloadedConstructorContextParam); overloadedConstructorBody.assign(getRootFragmentField(), overloadedConstructorRootFragmentParam); }
Source:
public void setPassword(String thisPassword) { logger.trace("setPassword({}) called.",thisPassword); request.params.password = thisPassword; return; }

Target:
public void setPassword(String thisPassword) { logger.trace("setPassword({}) called.", thisPassword); request.params.password = thisPassword; }
Source:
public final Response delete(@Context final HttpServletRequest request, @PathParam("schemeId") final String schemeId) { final InitDataObject initDataObject = this.webResource.init(null, true, request, true, null); Logger.debug(this, "Deleting scheme with id: " + schemeId); Response response = null; try { this.workflowHelper.delete(schemeId, initDataObject.getUser()); response = Response.ok(new ResponseEntityView(OK)).build(); } catch ( DoesNotExistException e) { Logger.error(this.getClass(), "Exception attempting to delete a nonexistent schema identified by : " +schemeId + ", exception message: " + e.getMessage(), e); response = ExceptionMapperUtil.createResponse(e, Response.Status.BAD_REQUEST); } catch (Exception e) { Logger.error(this.getClass(), "Exception attempting to delete schema identified by : " +schemeId + ", exception message: " + e.getMessage(), e); response = (e.getCause() instanceof SecurityException)? this.createUnAuthorizedResponse(e) : ExceptionMapperUtil.createResponse(e, Response.Status.INTERNAL_SERVER_ERROR); } return response; }

Target:
public final Response delete(@Context final HttpServletRequest request, @PathParam("schemeId") final String schemeId) { final InitDataObject initDataObject = this.webResource.init(null, true, request, true, null); Logger.debug(this, "Deleting scheme with id: " + schemeId); Response response = null; try { this.workflowHelper.delete(schemeId, initDataObject.getUser()); response = Response.ok(new ResponseEntityView(OK)).build(); } catch ( DoesNotExistException e) { Logger.error(this.getClass(), "Exception attempting to delete a nonexistent schema identified by : " +schemeId + ", exception message: " + e.getMessage(), e); response = ExceptionMapperUtil.createResponse(e, Response.Status.NOT_FOUND); } catch (Exception e) { Logger.error(this.getClass(), "Exception attempting to delete schema identified by : " +schemeId + ", exception message: " + e.getMessage(), e); response = (e.getCause() instanceof SecurityException)? this.createUnAuthorizedResponse(e) : ExceptionMapperUtil.createResponse(e, Response.Status.INTERNAL_SERVER_ERROR); } return response; }
Source:
private static void stopServer(final ClientContext context, final boolean tabletServersToo) throws AccumuloException, AccumuloSecurityException { MasterClient.executeVoidWithConnRetry(context, client -> client.shutdown(Tracer.traceInfo(), context.rpcCreds(), tabletServersToo)); }

Target:
private static void stopServer(final ClientContext context, final boolean tabletServersToo) throws AccumuloException, AccumuloSecurityException { MasterClient.executeVoidAdmin(context, new ClientExec<MasterClientService.Client>() { @Override public void execute(MasterClientService.Client client) throws Exception { client.shutdown(Tracer.traceInfo(), context.rpcCreds(), tabletServersToo); } }); }
Source:
public static Datum createFromBytes(DataType dataType, byte[] bytes) { switch (dataType.getType()) { case BOOLEAN: return createBool(bytes[0]); case INT2: return createInt2(NumberUtil.toShort(bytes)); case INT4: return createInt4(NumberUtil.toInt(bytes)); case INT8: return createInt8(NumberUtil.toLong(bytes)); case FLOAT4: return createFloat4(NumberUtil.toFloat(bytes)); case FLOAT8: return createFloat8(NumberUtil.toDouble(bytes)); case CHAR: return createChar(bytes); case TEXT: return createText(bytes); case DATE: return new DateDatum(NumberUtil.toInt(bytes)); case TIME: return new TimeDatum(NumberUtil.toLong(bytes)); case TIMESTAMP: return new TimestampDatum(NumberUtil.toLong(bytes)); case BIT: return createBit(bytes[0]); case BLOB: return createBlob(bytes); case INET4: return createInet4(bytes); case PROTOBUF: try { return ProtobufDatumFactory.createDatum(dataType, bytes); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } default: throw new UnsupportedOperationException(dataType.toString()); } }

Target:
public static Datum createFromBytes(DataType dataType, byte[] bytes) { switch (dataType.getType()) { case BOOLEAN: return createBool(bytes[0]); case INT2: return createInt2(NumberUtil.toShort(bytes)); case INT4: return createInt4(NumberUtil.toInt(bytes)); case INT8: return createInt8(NumberUtil.toLong(bytes)); case FLOAT4: return createFloat4(NumberUtil.toFloat(bytes)); case FLOAT8: return createFloat8(NumberUtil.toDouble(bytes)); case CHAR: return createChar(bytes); case TEXT: return createText(bytes); case DATE: return new DateDatum(NumberUtil.toInt(bytes)); case TIME: return new TimeDatum(NumberUtil.toLong(bytes)); case TIMESTAMP: return new TimestampDatum(NumberUtil.toLong(bytes)); case BIT: return createBit(bytes[0]); case BLOB: return createBlob(bytes); case INET4: return createInet4(bytes); case PROTOBUF: try { return ProtobufDatumFactory.createDatum(dataType, bytes); } catch (IOException e) { throw new TajoInternalError(e); } default: throw new TajoRuntimeException(new UnsupportedDataTypeException(dataType.toString())); } }
Source:
public static Iterable<? extends Object> data() { return EnumSet.allOf(TestPlatform.class); }

Target:
public static Object[] data() { return TestPlatform.values(); }
Source:
public ConfigParamPreprocessor() { fieldCache = new ClassAttributeCache.FieldCache(); }

Target:
public ConfigParamPreprocessor() { this.resolver = new ParamResolver(new ParamSubstitutionHandlerFactory(new ParamsConfig()), new ClassAttributeCache.FieldCache()); }
Source:
default <B> BiConstraintStream<A, B> join(Class<B> otherClass, BiJoiner<A, B>... joiners) { int joinerCount = joiners.length; int indexOfFirstFilter = -1; for (int i = 0; i < joinerCount; i++) { BiJoiner<A, B> joiner = joiners[i]; boolean hasAFilter = indexOfFirstFilter >= 0; if (joiner instanceof FilteringBiJoiner) { if (!hasAFilter) { indexOfFirstFilter = i; } } else if (hasAFilter) { throw new IllegalStateException("Indexing joiner (" + joiner + ") must not follow a filtering joiner (" + joiners[indexOfFirstFilter] + ")."); } } if (indexOfFirstFilter < 0) { return join(otherClass, AbstractBiJoiner.merge(joiners)); } BiConstraintStream<A, B> joined = indexOfFirstFilter == 0 ? join(otherClass) : join(otherClass, Arrays.copyOf(joiners, indexOfFirstFilter)); BiPredicate<A, B> resultingFilter = (a, b) -> true; for (int i = indexOfFirstFilter; i < joinerCount; i++) { FilteringBiJoiner<A, B> filteringJoiner = (FilteringBiJoiner<A, B>) joiners[i]; resultingFilter = resultingFilter.and(filteringJoiner.getFilter()); } return joined.filter(resultingFilter); }

Target:
default <B> BiConstraintStream<A, B> join(Class<B> otherClass, BiJoiner<A, B>... joiners) { int joinerCount = joiners.length; int indexOfFirstFilter = -1; for (int i = 0; i < joinerCount; i++) { BiJoiner<A, B> joiner = joiners[i]; if (indexOfFirstFilter >= 0) { if (!(joiner instanceof FilteringBiJoiner)) { throw new IllegalStateException("Indexing joiner (" + joiner + ") must not follow " + "a filtering joiner (" + joiners[indexOfFirstFilter] + ").\n" + "Maybe reorder the joiners such that filtering() joiners are later in the parameter list."); } } else { if (joiner instanceof FilteringBiJoiner) { indexOfFirstFilter = i; } } } if (indexOfFirstFilter < 0) { return join(otherClass, AbstractBiJoiner.merge(joiners)); } BiConstraintStream<A, B> joined = indexOfFirstFilter == 0 ? join(otherClass) : join(otherClass, Arrays.copyOf(joiners, indexOfFirstFilter)); int filterCount = joinerCount - indexOfFirstFilter; if (filterCount == 0) { return joined; } FilteringBiJoiner<A, B> filteringJoiner = (FilteringBiJoiner<A, B>) joiners[indexOfFirstFilter]; BiPredicate<A, B> resultingFilter = filteringJoiner.getFilter(); for (int i = indexOfFirstFilter + 1; i < joinerCount; i++) { FilteringBiJoiner<A, B> anoterFilteringJoiner = (FilteringBiJoiner<A, B>) joiners[i]; resultingFilter = resultingFilter.and(anoterFilteringJoiner.getFilter()); } return joined.filter(resultingFilter); }
Source:
public void saveContent(final String pageId, final List<PageContainerForm.ContainerEntry> containerEntries) throws DotDataException { final List<MultiTree> multiTres = new ArrayList<>(); for (final PageContainerForm.ContainerEntry containerEntry : containerEntries) { int i = 0; final List<String> contentIds = containerEntry.getContentIds(); for (String contentletId : contentIds) { final MultiTree mt = new MultiTree().setContainer(containerEntry.getContainerId()) .setContentlet(contentletId) .setRelationType(containerEntry.getContainerUUID()) .setTreeOrder(i) .setHtmlPage(pageId); multiTres.add(mt); i++; } } multiTreeAPI.saveMultiTrees(pageId, multiTres); }

Target:
public void saveContent(final String pageId, final List<PageContainerForm.ContainerEntry> containerEntries) throws DotDataException { final List<MultiTree> multiTres = new ArrayList<>(); for (final PageContainerForm.ContainerEntry containerEntry : containerEntries) { int i = 0; final List<String> contentIds = containerEntry.getContentIds(); for (final String contentletId : contentIds) { final MultiTree multiTree = new MultiTree().setContainer(containerEntry.getContainerId()) .setContentlet(contentletId) .setRelationType(containerEntry.getContainerUUID()) .setTreeOrder(i++) .setHtmlPage(pageId); multiTres.add(multiTree); } } multiTreeAPI.saveMultiTrees(pageId, multiTres); }
Source:
protected boolean set(ItemStack container, Boolean value) { if (!container.hasTagCompound()) { container.setTagCompound(new NBTTagCompound()); } if (container.getTagCompound().hasKey(NbtDataUtil.ITEM_HIDE_FLAGS, NbtDataUtil.TAG_INT)) { int flag = container.getTagCompound().getInteger(NbtDataUtil.ITEM_HIDE_FLAGS); if (value && flag + 1 <= 63) { container.getTagCompound() .setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, flag + 1); } else if (!value && flag - 1 >= 0) { container.getTagCompound() .setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, flag - 1); } } else { if (value) { container.getTagCompound().setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, 1); } } return true; }

Target:
protected boolean set(ItemStack container, Boolean value) { if (!container.hasTagCompound()) { container.setTagCompound(new NBTTagCompound()); } if (container.getTagCompound().hasKey(NbtDataUtil.ITEM_HIDE_FLAGS, NbtDataUtil.TAG_INT)) { int flag = container.getTagCompound().getInteger(NbtDataUtil.ITEM_HIDE_FLAGS); if (value) { container.getTagCompound() .setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, flag | DataConstants.HIDE_ENCHANTMENTS_FLAG); } else { container.getTagCompound() .setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, flag - DataConstants.HIDE_ENCHANTMENTS_FLAG >= 0 ? flag - DataConstants.HIDE_ENCHANTMENTS_FLAG : 0); } } else { if (value) { container.getTagCompound().setInteger(NbtDataUtil.ITEM_HIDE_FLAGS, DataConstants.HIDE_ENCHANTMENTS_FLAG); } } return true; }
Source:
public static Leader create(String leader, Map<String, Follower> followers) { return new AutoValue_Leader(leader, followers); }

Target:
public static Leader create(String leader, Map<String, Follower> followers) { return new AutoValue_Leader(leader, ImmutableMap.copyOf(followers)); }
Source:
public AnnotationRepositoryConfigurationSource(AnnotationMetadata metadata, Class<? extends Annotation> annotation, ResourceLoader resourceLoader, Environment environment) { super(environment); Assert.notNull(metadata, "Metadata must not be null!"); Assert.notNull(annotation, "Annotation must not be null!"); Assert.notNull(resourceLoader, "ResourceLoader must not be null!"); this.attributes = new AnnotationAttributes(metadata.getAnnotationAttributes(annotation.getName())); this.enableAnnotationMetadata = new StandardAnnotationMetadata(annotation); this.configMetadata = metadata; this.resourceLoader = resourceLoader; this.hasExplicitFilters = hasExplicitFilters(attributes); beanNameGenerator = new RepositoryBeanNameGenerator(resourceLoader.getClassLoader()); }

Target:
public AnnotationRepositoryConfigurationSource(AnnotationMetadata metadata, Class<? extends Annotation> annotation, ResourceLoader resourceLoader, Environment environment) { super(environment, resourceLoader.getClassLoader()); Assert.notNull(metadata, "Metadata must not be null!"); Assert.notNull(annotation, "Annotation must not be null!"); Assert.notNull(resourceLoader, "ResourceLoader must not be null!"); this.attributes = new AnnotationAttributes(metadata.getAnnotationAttributes(annotation.getName())); this.enableAnnotationMetadata = new StandardAnnotationMetadata(annotation); this.configMetadata = metadata; this.resourceLoader = resourceLoader; this.hasExplicitFilters = hasExplicitFilters(attributes); }
Source:
public Secret getPassword() { if (Util.fixEmpty(apiUri) == null) { apiUri = "<LINK_0>"; } long now = System.currentTimeMillis(); String appInstallationToken; if (cachedToken != null && now - tokenCacheTime < JwtHelper.VALIDITY_MS / 2) { appInstallationToken = cachedToken; } else { appInstallationToken = generateAppInstallationToken(appID, privateKey.getPlainText(), apiUri); cachedToken = appInstallationToken; tokenCacheTime = now; } return Secret.fromString(appInstallationToken); }

Target:
public Secret getPassword() { if (Util.fixEmpty(apiUri) == null) { apiUri = "<LINK_0>"; } long now = System.currentTimeMillis(); String appInstallationToken; if (cachedToken != null && now - tokenCacheTime < JwtHelper.VALIDITY_MS / 2) { appInstallationToken = cachedToken; } else { appInstallationToken = generateAppInstallationToken(appID, privateKey.getPlainText(), apiUri, owner); cachedToken = appInstallationToken; tokenCacheTime = now; } return Secret.fromString(appInstallationToken); }
Source:
protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException, ChargeException { final ItemStack stack; try { stack = sign.getLine(1).equals("*") || sign.getLine(1).equalsIgnoreCase("any") ? null : getItemStack(sign.getLine(1), 1, ess); } catch (SignException e) { sign.setLine(1, "§c<item|any>"); throw e; } final String[] enchantLevel = sign.getLine(2).split(":"); int level = 1; final Enchantment enchantment = Enchantments.getByName(enchantLevel[0]); if (enchantment == null) { sign.setLine(2, "§c<enchant>"); throw new SignException(tl("enchantmentNotFound")); } if (enchantLevel.length == 2) { try { level = Integer.parseInt(enchantLevel[1]); } catch (NumberFormatException ex) { sign.setLine(2, "§c<enchant>"); throw new SignException(ex.getMessage(), ex); } } final boolean allowUnsafe = ess.getSettings().allowUnsafeEnchantments() && player.isAuthorized("essentials.enchantments.allowunsafe") && player.isAuthorized("essentials.signs.enchant.allowunsafe"); if (level < 0 || (!allowUnsafe && level > enchantment.getMaxLevel())) { level = enchantment.getMaxLevel(); sign.setLine(2, enchantLevel[0] + ":" + level); } try { if (stack != null) { if (allowUnsafe) { stack.addUnsafeEnchantment(enchantment, level); } else { stack.addEnchantment(enchantment, level); } } } catch (Throwable ex) { throw new SignException(ex.getMessage(), ex); } getTrade(sign, 3, ess); return true; }

Target:
protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException, ChargeException { final ItemStack stack; try { stack = sign.getLine(1).equals("*") || sign.getLine(1).equalsIgnoreCase("any") ? null : getItemStack(sign.getLine(1), 1, ess); } catch (SignException e) { sign.setLine(1, "§c<item|any>"); throw e; } final String[] enchantLevel = sign.getLine(2).split(":"); int level = 1; final Enchantment enchantment = Enchantments.getByName(enchantLevel[0]); if (enchantment == null) { sign.setLine(2, "§c<enchant>"); throw new SignException(tl("enchantmentNotFound")); } if (enchantLevel.length > 1) { try { level = Integer.parseInt(enchantLevel[1]); } catch (NumberFormatException ex) { sign.setLine(2, "§c<enchant>"); throw new SignException(ex.getMessage(), ex); } } final boolean allowUnsafe = ess.getSettings().allowUnsafeEnchantments() && player.isAuthorized("essentials.enchantments.allowunsafe") && player.isAuthorized("essentials.signs.enchant.allowunsafe"); if (level < 0 || (!allowUnsafe && level > enchantment.getMaxLevel())) { level = enchantment.getMaxLevel(); sign.setLine(2, enchantLevel[0] + ":" + level); } try { if (stack != null) { if (allowUnsafe) { stack.addUnsafeEnchantment(enchantment, level); } else { stack.addEnchantment(enchantment, level); } } } catch (Throwable ex) { throw new SignException(ex.getMessage(), ex); } getTrade(sign, 3, ess); return true; }
Source:
private static String getErrorMessage(String propertyFileName, String propertyName) { return "Could not find the property: " + propertyName + " in the file:" + propertyFileName; }

Target:
private static String getErrorMessage(String propertyFileName, String propertyName) { return MessageFormat.format("Could not find the property: {0} in the file: {1}", propertyName, propertyFileName); }
Source:
public Response deleteDataSource( @PathParam("dataSourceName") final String dataSourceName, @QueryParam("kill") final String kill, @QueryParam("interval") final String interval ) { if (indexingServiceClient == null) { return Response.ok(ImmutableMap.of("error", "no indexing service found")).build(); } if (kill != null && Boolean.valueOf(kill)) { try { indexingServiceClient.killSegments(dataSourceName, new Interval(interval)); } catch (IllegalArgumentException e) { return Response.serverError().entity( ImmutableMap.of( "error", "Exception occurred. Probably the interval is invalid", "Error-Message", e ) ) .build(); } catch (Exception e) { return Response.serverError().entity( ImmutableMap.of( "error", "Exception occurred. Are you sure you have an indexing service?", "Error-Message", e ) ) .build(); } } else { if (!databaseSegmentManager.removeDatasource(dataSourceName)) { return Response.noContent().build(); } } return Response.ok().build(); }

Target:
public Response deleteDataSource( @PathParam("dataSourceName") final String dataSourceName, @QueryParam("kill") final String kill, @QueryParam("interval") final String interval ) { if (indexingServiceClient == null) { return Response.ok(ImmutableMap.of("error", "no indexing service found")).build(); } if (kill != null && Boolean.valueOf(kill)) { try { indexingServiceClient.killSegments(dataSourceName, new Interval(interval)); } catch (IllegalArgumentException e) { return Response.status(Response.Status.BAD_REQUEST) .entity( ImmutableMap.of( "error", "Exception occurred. Probably the interval is invalid", "message", e.toString() ) ) .build(); } catch (Exception e) { return Response.serverError().entity( ImmutableMap.of( "error", "Exception occurred. Are you sure you have an indexing service?", "message", e.toString() ) ) .build(); } } else { if (!databaseSegmentManager.removeDatasource(dataSourceName)) { return Response.noContent().build(); } } return Response.ok().build(); }
Source:
public BasicInvocationStage visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable { if (streamSummaryContainer.isEnabled() && ctx.isOriginLocal()) { for (Object key : command.getKeys()) { streamSummaryContainer.addGet(key, false); } } return invokeNext(ctx, command); }

Target:
public BasicInvocationStage visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable { if (streamSummaryContainer.isEnabled() && ctx.isOriginLocal()) { for (Object key : command.getKeys()) { streamSummaryContainer.addGet(key, isRemote(key)); } } return invokeNext(ctx, command); }
Source:
public static CommentInput create(CommentInfo original) { CommentInput input = createObject().cast(); input.setId(original.id()); input.setPath(original.path()); input.setSide(original.side()); input.setLine(original.line()); input.setInReplyTo(original.in_reply_to()); input.setMessage(original.message()); return input; }

Target:
public static CommentInput create(CommentInfo original) { CommentInput input = createObject().cast(); input.setId(original.id()); input.setPath(original.path()); input.setSide(original.side()); if (original.has_line()) { input.setLine(original.line()); } input.setInReplyTo(original.in_reply_to()); input.setMessage(original.message()); return input; }
Source:
public void afterPropertiesSet() { if (this.beanName == null) { LOGGER.error("The MessageHandler [" + this.handler + "] will be created without a 'componentName'. " + "Consider specifying the 'beanName' property on this ConsumerEndpointFactoryBean."); } else { populateComponentNameIfAny(); } if (!(this.handler instanceof ReactiveMessageHandlerAdapter)) { this.handler = adviceChain(this.handler); } else if (!CollectionUtils.isEmpty(this.adviceChain)) { ReactiveMessageHandler reactiveMessageHandler = ((ReactiveMessageHandlerAdapter) this.handler).getDelegate(); reactiveMessageHandler = adviceChain(reactiveMessageHandler); this.handler = new ReactiveMessageHandlerAdapter(reactiveMessageHandler); } if (this.channelResolver == null) { this.channelResolver = ChannelResolverUtils.getChannelResolver(this.beanFactory); } initializeEndpoint(); }

Target:
public void afterPropertiesSet() { if (this.beanName == null) { LOGGER.error("The MessageHandler [" + this.handler + "] will be created without a 'componentName'. " + "Consider specifying the 'beanName' property on this ConsumerEndpointFactoryBean."); } else { populateComponentNameIfAny(); } if (!(this.handler instanceof ReactiveMessageHandlerAdapter)) { this.handler = adviceChain(this.handler); } else if (!CollectionUtils.isEmpty(this.adviceChain)) { this.handler = new ReactiveMessageHandlerAdapter( adviceChain(((ReactiveMessageHandlerAdapter) this.handler).getDelegate())); } if (this.channelResolver == null) { this.channelResolver = ChannelResolverUtils.getChannelResolver(this.beanFactory); } initializeEndpoint(); }
Source:
private float[][] calculateRubricStats(List<FeedbackResponseAttributes> responses, FeedbackQuestionAttributes question) { FeedbackRubricQuestionDetails fqd = (FeedbackRubricQuestionDetails) question.getQuestionDetails(); int[][] responseFrequency = calculateResponseFrequency(responses, fqd); float[][] pecentageFrequencyOrAverage = new float[fqd.numOfRubricSubQuestions][]; for (int i = 0; i < pecentageFrequencyOrAverage.length; i++) { pecentageFrequencyOrAverage[i] = new float[fqd.numOfRubricChoices + 1]; for (int j = 0; j < pecentageFrequencyOrAverage[i].length - 1; j++) { pecentageFrequencyOrAverage[i][j] = responseFrequency[i][j]; } pecentageFrequencyOrAverage[i][fqd.numOfRubricSubQuestions] = 0; } for (int i = 0; i < pecentageFrequencyOrAverage.length; i++) { int totalForSubQuestion = 0; for (int j = 0; j < pecentageFrequencyOrAverage[i].length - 1; j++) { totalForSubQuestion += responseFrequency[i][j]; } for (int j = 0; j < pecentageFrequencyOrAverage[i].length - 1; j++) { pecentageFrequencyOrAverage[i][j] /= totalForSubQuestion; pecentageFrequencyOrAverage[i][fqd.numOfRubricSubQuestions] += (fqd.numOfRubricChoices - j) * pecentageFrequencyOrAverage[i][j]; } } return pecentageFrequencyOrAverage; }

Target:
private float[][] calculateRubricStats(List<FeedbackResponseAttributes> responses, FeedbackQuestionAttributes question) { FeedbackRubricQuestionDetails fqd = (FeedbackRubricQuestionDetails) question.getQuestionDetails(); int[][] responseFrequency = calculateResponseFrequency(responses, fqd); float[][] percentageFrequencyOrAverage = new float[fqd.numOfRubricSubQuestions][]; for (int i = 0; i < percentageFrequencyOrAverage.length; i++) { percentageFrequencyOrAverage[i] = new float[fqd.numOfRubricChoices + 1]; for (int j = 0; j < percentageFrequencyOrAverage[i].length - 1; j++) { percentageFrequencyOrAverage[i][j] = responseFrequency[i][j]; } percentageFrequencyOrAverage[i][fqd.numOfRubricChoices] = 0; } for (int i = 0; i < percentageFrequencyOrAverage.length; i++) { int totalForSubQuestion = 0; for (int j = 0; j < percentageFrequencyOrAverage[i].length - 1; j++) { totalForSubQuestion += responseFrequency[i][j]; } for (int j = 0; j < percentageFrequencyOrAverage[i].length - 1; j++) { percentageFrequencyOrAverage[i][j] /= totalForSubQuestion; float choiceWeight = (fqd.numOfRubricChoices - j) * percentageFrequencyOrAverage[i][j]; percentageFrequencyOrAverage[i][fqd.numOfRubricChoices] += choiceWeight; } } return percentageFrequencyOrAverage; }
Source:
private static void setBarData(XWPFChart chart, String chartTitle, String[] categories, Double[] values) { final List<XDDFChartData> series = chart.getChartSeries(); final XDDFBarChartData bar = (XDDFBarChartData) series.get(0); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new CellRangeAddress(1, numOfPoints, 0, 0)); final String valuesDataRange = chart.formatRange(new CellRangeAddress(1, numOfPoints, 1, 1)); final String valuesDataRange2 = chart.formatRange(new CellRangeAddress(1, numOfPoints, 2, 2)); final XDDFDataSource<?> categoriesData = XDDFDataSourcesFactory.fromArray(categories, categoryDataRange,0); final XDDFNumericalDataSource<? extends Number> valuesData = XDDFDataSourcesFactory.fromArray(values, valuesDataRange,1); values[3]=(double) 10; final XDDFNumericalDataSource<? extends Number> valuesData2 = XDDFDataSourcesFactory.fromArray(values, valuesDataRange2,2); bar.getSeries().get(0).replaceData(categoriesData, valuesData2); bar.addSeries(categoriesData, valuesData); bar.getSeries().get(0).setTitle(chartTitle, chart.setSheetTitle(chartTitle)); chart.plot(bar); }

Target:
private static void setBarData(XWPFChart chart, String chartTitle, String[] categories, Double[] values) { final List<XDDFChartData> series = chart.getChartSeries(); final XDDFBarChartData bar = (XDDFBarChartData) series.get(0); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new CellRangeAddress(1, numOfPoints, 0, 0)); final String valuesDataRange = chart.formatRange(new CellRangeAddress(1, numOfPoints, 1, 1)); final String valuesDataRange2 = chart.formatRange(new CellRangeAddress(1, numOfPoints, 2, 2)); final XDDFDataSource<?> categoriesData = XDDFDataSourcesFactory.fromArray(categories, categoryDataRange, 0); final XDDFNumericalDataSource<? extends Number> valuesData = XDDFDataSourcesFactory.fromArray(values, valuesDataRange, 1); values[2] = 10.0; final XDDFNumericalDataSource<? extends Number> valuesData2 = XDDFDataSourcesFactory.fromArray(values, valuesDataRange2, 2); bar.getSeries().get(0).replaceData(categoriesData, valuesData); bar.addSeries(categoriesData, valuesData2); bar.getSeries().get(0).setTitle(chartTitle, chart.setSheetTitle(chartTitle)); chart.plot(bar); }
Source:
public void testGet() { JobRequest jobRequest = createSpace("getJobOrgUnit"); JobResult jobResult = client.getJob(jobRequest.getJobId()); Assertions.assertThat(jobResult.getStatus()).isNotEqualTo(JobStatus.GONE); }

Target:
public void testGet() { JobRequest jobRequest = createSpace("getSpace"); JobResult jobResult = client.getJob(jobRequest.getJobId()); Assertions.assertThat(jobResult.getStatus()).isNotEqualTo(JobStatus.GONE); }
Source:
public void getIpv6AddressOfNetworkReturnsNullWhenThereIsNoNetworkOfGivenName() { nic.setIpv6Address(IPV6_ADDRESS); assertThat(underTest.getIpv6AddressOfNetwork("not" + NETWORK_NAME), nullValue(null)); }

Target:
public void getIpv6AddressOfNetworkReturnsNullWhenThereIsNoNetworkOfGivenName() { nic.setIpv6Address(IPV6_ADDRESS); assertThat(underTest.getIpv6AddressOfNetwork(NETWORK_NAME2), nullValue(null)); }
Source:
public static void createESBProject(String projectName) { Util.bot.sleep(2000); SWTBotShell newESBConf = Util.bot.shell("New ESB Config Project"); newESBConf.bot().button(CommonConstants.NEXT).click(); Util.bot.sleep(1000); Util.setLableText(newESBConf, ESBProjectConstants.PROJECT_NAME, projectName); Util.bot.sleep(1000); newESBConf.bot().button(CommonConstants.NEXT).click(); Util.bot.sleep(1000); newESBConf.bot().button(CommonConstants.FINISH).click(); Util.bot.sleep(1000); }

Target:
public static void createESBProject(String projectName) { WorkbenchElementsValidator.bot.sleep(2000); SWTBotShell newESBConf = WorkbenchElementsValidator.bot.shell(ESBProjectConstants.NEW_ESB_PROJECT); newESBConf.bot().button(CommonConstants.NEXT).click(); WorkbenchElementsValidator.bot.sleep(1000); WorkbenchElementsValidator.setLableText(newESBConf, ESBProjectConstants.PROJECT_NAME, projectName); WorkbenchElementsValidator.bot.sleep(1000); newESBConf.bot().button(CommonConstants.NEXT).click(); WorkbenchElementsValidator.bot.sleep(1000); newESBConf.bot().button(CommonConstants.FINISH).click(); WorkbenchElementsValidator.bot.sleep(1000); }
Source:
private void finalizeBuildingSectionPanel( InstructorFeedbackResultsSectionPanel sectionPanel, String sectionName, LinkedHashMap<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> responsesGroupedByTeam, Set<String> teamsWithResponses) { switch (viewType) { case GIVER_QUESTION_RECIPIENT: case RECIPIENT_QUESTION_GIVER: prepareHeadersForTeamPanelsInSectionPanel(sectionPanel); if (!responsesGroupedByTeam.isEmpty()) { buildTeamsStatisticsTableForSectionPanel(sectionPanel, responsesGroupedByTeam, teamsWithResponses); } Map<String, Boolean> isTeamDisplayingStatistics = new HashMap<>(); for (String team : teamsWithResponses) { isTeamDisplayingStatistics.put(team, bundle.rosterTeamNameMembersTable.containsKey(team)); } sectionPanel.setDisplayingTeamStatistics(isTeamDisplayingStatistics); sectionPanel.setSectionName(sectionName); sectionPanel.setSectionNameForDisplay(sectionName.equals(Const.DEFAULT_SECTION) ? DISPLAY_NAME_FOR_DEFAULT_SECTION : sectionName); break; case RECIPIENT_GIVER_QUESTION: case GIVER_RECIPIENT_QUESTION: sectionPanel.setSectionName(sectionName); sectionPanel.setSectionNameForDisplay(sectionName.equals(Const.DEFAULT_SECTION) ? DISPLAY_NAME_FOR_DEFAULT_SECTION : sectionName); break; default: Assumption.fail(); break; } }

Target:
private void finalizeBuildingSectionPanel( InstructorFeedbackResultsSectionPanel sectionPanel, String sectionName, LinkedHashMap<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> responsesGroupedByTeam, Set<String> teamsWithResponses) { switch (viewType) { case GIVER_QUESTION_RECIPIENT: case RECIPIENT_QUESTION_GIVER: prepareHeadersForTeamPanelsInSectionPanel(sectionPanel); if (!responsesGroupedByTeam.isEmpty()) { buildTeamsStatisticsTableForSectionPanel(sectionPanel, responsesGroupedByTeam, teamsWithResponses); } Map<String, Boolean> isTeamDisplayingStatistics = new HashMap<>(); for (String team : teamsWithResponses) { isTeamDisplayingStatistics.put(team, isTeamVisible(team)); } sectionPanel.setDisplayingTeamStatistics(isTeamDisplayingStatistics); sectionPanel.setSectionName(sectionName); sectionPanel.setSectionNameForDisplay(sectionName.equals(Const.DEFAULT_SECTION) ? DISPLAY_NAME_FOR_DEFAULT_SECTION : sectionName); break; case RECIPIENT_GIVER_QUESTION: case GIVER_RECIPIENT_QUESTION: sectionPanel.setSectionName(sectionName); sectionPanel.setSectionNameForDisplay(sectionName.equals(Const.DEFAULT_SECTION) ? DISPLAY_NAME_FOR_DEFAULT_SECTION : sectionName); break; default: Assumption.fail(); break; } }
Source:
public BoundFilter(final BoundDimFilter boundDimFilter) { super( boundDimFilter.getDimension(), new Predicate<String>() { private Predicate<String> predicate; @Override public boolean apply(String input) { return function().apply(input); } private Predicate<String> function() { if (predicate == null) { final Comparator<String> comparator; if (boundDimFilter.isAlphaNumeric()) { comparator = new AlphaNumericTopNMetricSpec(null).getComparator(null, null); } else { comparator = new LexicographicTopNMetricSpec(null).getComparator(null, null); } predicate = new Predicate<String>() { @Nullable @Override public boolean apply(String input) { if (input == null) { return false; } int lowerComparing = 1; int upperComparing = 1; if (boundDimFilter.getLower() != null) { lowerComparing = comparator.compare(input, boundDimFilter.getLower()); } if (boundDimFilter.getUpper() != null) { upperComparing = comparator.compare(boundDimFilter.getUpper(), input); } if (boundDimFilter.isLowerStrict() && boundDimFilter.isUpperStrict()) { return ((lowerComparing > 0)) && (upperComparing > 0); } else if (boundDimFilter.isLowerStrict()) { return (lowerComparing > 0) && (upperComparing >= 0); } else if (boundDimFilter.isUpperStrict()) { return (lowerComparing >= 0) && (upperComparing > 0); } return (lowerComparing >= 0) && (upperComparing >= 0); } }; } return predicate; } } ); }

Target:
public BoundFilter(final BoundDimFilter boundDimFilter) { super( boundDimFilter.getDimension(), new Predicate<String>() { private volatile Predicate<String> predicate; @Override public boolean apply(String input) { return function().apply(input); } private Predicate<String> function() { if (predicate == null) { final Comparator<String> comparator; if (boundDimFilter.isAlphaNumeric()) { comparator = new AlphaNumericTopNMetricSpec(null).getComparator(null, null); } else { comparator = new LexicographicTopNMetricSpec(null).getComparator(null, null); } predicate = new Predicate<String>() { @Override public boolean apply(String input) { if (input == null) { return false; } int lowerComparing = 1; int upperComparing = 1; if (boundDimFilter.getLower() != null) { lowerComparing = comparator.compare(input, boundDimFilter.getLower()); } if (boundDimFilter.getUpper() != null) { upperComparing = comparator.compare(boundDimFilter.getUpper(), input); } if (boundDimFilter.isLowerStrict() && boundDimFilter.isUpperStrict()) { return ((lowerComparing > 0)) && (upperComparing > 0); } else if (boundDimFilter.isLowerStrict()) { return (lowerComparing > 0) && (upperComparing >= 0); } else if (boundDimFilter.isUpperStrict()) { return (lowerComparing >= 0) && (upperComparing > 0); } return (lowerComparing >= 0) && (upperComparing >= 0); } }; } return predicate; } } ); }
Source:
public static <T extends ToolInstallation> T addTool(Jenkins jenkins, Class<T> type) { final ConfigurablePageObject page = ensureConfigPage(jenkins); final String name = type.getAnnotation(ToolInstallationPageObject.class).name(); final Control button = page.control(by.button("Add " + name)); String pathPrefix = button.resolve().getAttribute("path").replaceAll("repeatable-add", "tool"); String path = page.createPageArea(pathPrefix, () -> button.click()); System.out.println("Path: " + path); return page.newInstance(type, jenkins, path); }

Target:
public static <T extends ToolInstallation> T addTool(Jenkins jenkins, Class<T> type) { final ConfigurablePageObject page = ensureConfigPage(jenkins); final String name = type.getAnnotation(ToolInstallationPageObject.class).name(); final Control button = page.control(by.button("Add " + name)); String pathPrefix = button.resolve().getAttribute("path").replaceAll("repeatable-add", "tool"); String path = page.createPageArea(pathPrefix, button::click); return page.newInstance(type, jenkins, path); }
Source:
public void testParseCertAndPrivateKeyInCredentials() { ZoneList zoneList = new ZoneList() { @Override public Iterator<String> doRun(DNSApiManager mgr) { assertThat(configPath).isEqualTo(getTestConfigPath("test-config-cert.yml")); final Map mapCredentials = Map.class.cast(credentials); assertThat(mapCredentials.get("x509Certificate")).isInstanceOf(X509Certificate.class); assertThat(((X509Certificate) mapCredentials.get("x509Certificate")).getSubjectDN().getName()) .containsIgnoringCase("C=US,ST=California,O=NetflixOSS,OU=Denominator,CN=Denominator"); assertThat(mapCredentials.get("privateKey")).isInstanceOf(PrivateKey.class); final PrivateKey privateKey = (PrivateKey) mapCredentials.get("privateKey"); assertThat(privateKey.getAlgorithm()).isEqualToIgnoringCase("RSA"); assertThat(privateKey.getFormat()).isEqualToIgnoringCase("PKCS#8"); return Collections.<String>emptyList().iterator(); } }; zoneList.providerConfigurationName = "blah"; zoneList.configPath = getTestConfigPath("test-config-cert.yml"); zoneList.run(); }

Target:
public void testParseCertAndPrivateKeyInCredentials() { ZoneList zoneList = new ZoneList() { @Override public Iterator<String> doRun(DNSApiManager mgr) { assertThat(configPath).isEqualTo(getTestConfigPath("test-config-cert.yml")); Map mapCredentials = Map.class.cast(credentials); assertThat(((X509Certificate) mapCredentials.get("x509Certificate")).getSubjectDN().getName()) .containsIgnoringCase("C=US,ST=California,O=NetflixOSS,OU=Denominator,CN=Denominator"); PrivateKey privateKey = (PrivateKey) mapCredentials.get("privateKey"); assertThat(privateKey.getAlgorithm()).isEqualToIgnoringCase("RSA"); assertThat(privateKey.getFormat()).isEqualToIgnoringCase("PKCS#8"); return Collections.<String>emptyList().iterator(); } }; zoneList.providerConfigurationName = "blah"; zoneList.configPath = getTestConfigPath("test-config-cert.yml"); zoneList.run(); }
Source:
private String createFilePath(String basePath, String originalFileChecksum) { String[] binaryFcrepoChecksumSplit = originalFileChecksum.split(":"); String checksum = binaryFcrepoChecksumSplit[2]; String[] tokens = Iterables.toArray (Splitter.fixedLength(2).split(checksum), String.class); String remotePath = new StringJoiner("/") .add(basePath) .add(tokens[0]) .add(tokens[1]) .add(tokens[2]) .add(checksum) .toString(); return remotePath; }

Target:
private String createFilePath(String basePath, String originalFileChecksum) { String[] tokens = Iterables.toArray (Splitter.fixedLength(2).split( originalFileChecksum), String.class); String remotePath = new StringJoiner("/") .add(basePath) .add(tokens[0]) .add(tokens[1]) .add(tokens[2]) .toString(); return remotePath; }
Source:
public static <K, V> Map<K, V> filterEntries(Map<K, V> map, Collection<Object> keys) { Map<K, V> filteredEntries = new HashMap<>(map.size()); map.entrySet().stream() .filter(entry -> keys.contains(entry.getKey())) .forEach(entry -> filteredEntries.put(entry.getKey(), entry.getValue())); return filteredEntries; }

Target:
public static <K, V> Map<K, V> filterEntries(Map<K, V> map, Collection<Object> keys) { return map.entrySet().stream() .filter(entry -> keys.contains(entry.getKey())) .collect(HashMap::new, (rMap, entry) -> rMap.put(entry.getKey(), entry.getValue()), HashMap::putAll); }
Source:
private void prepareJavaWorkspaceAndOpenCreateDialog(String workspaceName) { newWorkspace.waitPageLoad(); newWorkspace.typeWorkspaceName(workspaceName); newWorkspace.selectStack(JAVA); newWorkspace.waitStackSelected(JAVA); newWorkspace.clickOnAddOrImportProjectButton(); newWorkspace.waitAddOrImportFormOpened(); newWorkspace.clickOnSampleCheckbox(SPRING_SAMPLE_NAME); newWorkspace.waitSampleCheckboxEnabled(SPRING_SAMPLE_NAME); newWorkspace.clickOnAddButtonInImportProjectForm(); checkProjectTabAppearanceAndFields( SPRING_SAMPLE_NAME, EXPECTED_SAMPLES_WITH_DESCRIPTIONS.get(SPRING_SAMPLE_NAME), EXPECTED_SPRING_REPOSITORY_URL); newWorkspace.clickOnBottomCreateButton(); newWorkspace.waitWorkspaceCreatedDialogIsVisible(); }

Target:
private void prepareJavaWorkspaceAndOpenCreateDialog(String workspaceName) { newWorkspace.waitPageLoad(); newWorkspace.typeWorkspaceName(workspaceName); newWorkspace.selectStack(JAVA); newWorkspace.waitStackSelected(JAVA); addOrImportForm.clickOnAddOrImportProjectButton(); addOrImportForm.waitAddOrImportFormOpened(); addOrImportForm.clickOnSampleCheckbox(SPRING_SAMPLE_NAME); addOrImportForm.waitSampleCheckboxEnabled(SPRING_SAMPLE_NAME); addOrImportForm.clickOnAddButton(); checkProjectTabAppearanceAndFields( SPRING_SAMPLE_NAME, EXPECTED_SAMPLES_WITH_DESCRIPTIONS.get(SPRING_SAMPLE_NAME), EXPECTED_SPRING_REPOSITORY_URL); newWorkspace.clickOnBottomCreateButton(); newWorkspace.waitWorkspaceCreatedDialogIsVisible(); }
Source:
public RowData toInternal(ResultSet resultSet) throws SQLException { GenericRowData genericRowData = new GenericRowData(rowType.getFieldCount()); try { for (int pos = 0; pos < rowType.getFieldCount(); pos++) { genericRowData.setField(pos, toInternalConverters[pos].convert(resultSet.getObject(pos + 1))); } } catch (Exception e) { e.printStackTrace(); } return genericRowData; }

Target:
public RowData toInternal(ResultSet resultSet) throws SQLException { GenericRowData genericRowData = new GenericRowData(rowType.getFieldCount()); for (int pos = 0; pos < rowType.getFieldCount(); pos++) { genericRowData.setField(pos, toInternalConverters[pos].deserialize(resultSet.getObject(pos + 1))); } return genericRowData; }