auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public Collection<?> getChildren(Object object) { Conflict conflict = (Conflict)object; EList<Diff> differences = conflict.getDifferences(); Collection<Diff> filteredDifferences = Sets.newHashSet(); for (Diff diff : differences) { boolean subdiff = false; for (Diff diffParent : differences) { if (!diff.equals(diffParent) && Iterables.contains(getSubDiffs.apply(diffParent), diff)) { subdiff = true; break; } } if (!subdiff) { filteredDifferences.add(diff); } } return filteredDifferences; }

Target:
public Collection<?> getChildren(Object object) { Conflict conflict = (Conflict)object; EList<Diff> differences = conflict.getDifferences(); Collection<Diff> filteredDifferences = Sets.newLinkedHashSet(); for (Diff diff : differences) { boolean subdiff = false; for (Diff diffParent : differences) { if (!diff.equals(diffParent) && Iterables.contains(getSubDiffs.apply(diffParent), diff)) { subdiff = true; break; } } if (!subdiff) { filteredDifferences.add(diff); } } return filteredDifferences; }
Source:
protected void setActionMessageParameters() { addCanDoActionMessage(VdcBllMessages.VAR__ACTION__START_VOLUME_PROFILE); addCanDoActionMessage(VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME); }

Target:
protected void setActionMessageParameters() { addCanDoActionMessage(VdcBllMessages.VAR__ACTION__START_PROFILE); addCanDoActionMessage(VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME); }
Source:
public void print(PrintStream out) { if (nodeResultList.isEmpty()) return; List<Row> rows = new ArrayList<>(); for (CacheDistributionNode node : nodeResultList) { for (CacheDistributionGroup group : node.getGroups()) { for (CacheDistributionPartition partition : group.getPartitions()) { final Row row = new Row(); row.setGroupId(group.getGroupId()); row.setGroupName(group.getGroupName()); row.setPartition(partition.getPartition()); row.setNodeId(node.getNodeId()); row.setPrimary(partition.isPrimary()); row.setState(partition.getState()); row.setUpdateCounter(partition.getUpdateCounter()); row.setSize(partition.getSize()); row.setAddresses(node.getAddresses()); row.setUserAttributes(node.getUserAttributes()); rows.add(row); } } } rows.sort(null); StringBuilder userAttributesName=new StringBuilder(); if (!rows.isEmpty() && rows.get(0).userAttributes!=null){ for (String userAttribute:rows.get(0).userAttributes.keySet()){ userAttributesName.append(','); if (userAttribute!=null) userAttributesName.append(userAttribute); } } out.println("[groupId,partition,nodeId,primary,state,updateCounter,partitionSize,nodeAddresses"+userAttributesName+"]"); int oldGroupId = 0; for (Row row : rows) { if (oldGroupId != row.groupId) { out.println("[next group: id=" + row.groupId + ", name=" + row.groupName + ']'); oldGroupId = row.getGroupId(); } row.print(out); } }

Target:
public void print(PrintStream out) { if (nodeResList.isEmpty()) return; List<Row> rows = new ArrayList<>(); for (CacheDistributionNode node : nodeResList) { for (CacheDistributionGroup group : node.getGroups()) { for (CacheDistributionPartition partition : group.getPartitions()) { final Row row = new Row(); row.setGroupId(group.getGroupId()); row.setGroupName(group.getGroupName()); row.setPartition(partition.getPartition()); row.setNodeId(node.getNodeId()); row.setPrimary(partition.isPrimary()); row.setState(partition.getState()); row.setUpdateCounter(partition.getUpdateCounter()); row.setSize(partition.getSize()); row.setAddresses(node.getAddresses()); row.setUserAttributes(node.getUserAttributes()); rows.add(row); } } } rows.sort(null); StringBuilder userAttrsName = new StringBuilder(); if (!rows.isEmpty() && rows.get(0).userAttrs != null) { for (String userAttribute : rows.get(0).userAttrs.keySet()) { userAttrsName.append(','); if (userAttribute != null) userAttrsName.append(userAttribute); } } out.println("[groupId,partition,nodeId,primary,state,updateCounter,partitionSize,nodeAddresses" + userAttrsName + "]"); int oldGrpId = 0; for (Row row : rows) { if (oldGrpId != row.grpId) { out.println("[next group: id=" + row.grpId + ", name=" + row.grpName + ']'); oldGrpId = row.getGroupId(); } row.print(out); } }
Source:
public Response trigger( @PathParam("application") String applicationName, @PathParam("entity") String entityIdOrName, @PathParam("effector") String effectorName, @Valid final Map<String, String> parameters ) { final Application application = getApplicationOr404(manager.registry(), applicationName); final EntityLocal entity = getEntityOr404(application, entityIdOrName); final Effector<?> effector = entity.getEffectors().get(effectorName); executorService.submit(new Runnable() { @Override public void run() { entity.invoke(effector, parameters); } }); return Response.status(Response.Status.ACCEPTED).build(); }

Target:
public Response trigger( @PathParam("application") String applicationName, @PathParam("entity") String entityIdOrName, @PathParam("effector") String effectorName, @Valid final Map<String, String> parameters ) { final Application application = getApplicationOr404(manager.registry(), applicationName); final EntityLocal entity = getEntityOr404(application, entityIdOrName); final Effector<?> effector = entity.getEffectors().get(effectorName); if (effector == null) { throw notFound("Entity '%s' has no effector with name '%s'", entityIdOrName, effectorName); } executorService.submit(new Runnable() { @Override public void run() { try { entity.invoke(effector, parameters); } catch (Exception e) { LOG.error(e, "Failed while invoking effector"); throw Throwables.propagate(e); } } }); return Response.status(Response.Status.ACCEPTED).build(); }
Source:
public String getAttribute(Attribute attribute) { if (attribute == null) { return null; } if (attribute.startsWith("max_fuse_ticks") && entity.getBukkitEntity() instanceof Creeper) { return new Element(((Creeper) entity.getBukkitEntity()).getMaxFuseTicks()) .getAttribute(attribute.fulfill(1)); } return null; }

Target:
public String getAttribute(Attribute attribute) { if (attribute == null) { return null; } if (attribute.startsWith("max_fuse_ticks")) { return new Element(((Creeper) entity.getBukkitEntity()).getMaxFuseTicks()) .getAttribute(attribute.fulfill(1)); } return null; }
Source:
public String getUserAgent() { try { return ZulipApp.USER_AGENT + "-" + getPackageManager().getPackageInfo(getPackageName(), 0).versionName; } catch (NameNotFoundException e) { ZLog.logException(e); return ZulipApp.USER_AGENT + "-unknown"; } }

Target:
public String getUserAgent() { try { return ZulipApp.USER_AGENT + "/" + getPackageManager().getPackageInfo(getPackageName(), 0).versionName; } catch (NameNotFoundException e) { ZLog.logException(e); return ZulipApp.USER_AGENT + "/unknown"; } }
Source:
public Flux<Frame> receive() { return in.receive().map(buf -> { buf.retain(); CompositeByteBuf composite = context.channel().alloc().compositeBuffer(); ByteBuf length = Unpooled.wrappedBuffer(new byte[3]); FrameHeaderFlyweight.encodeLength(length, 0, buf.readableBytes()); composite.addComponents(true, length, buf); return Frame.from(composite); }); }

Target:
public Flux<Frame> receive() { return in.receive().map(buf -> { CompositeByteBuf composite = context.channel().alloc().compositeBuffer(); ByteBuf length = wrappedBuffer(new byte[FRAME_LENGTH_SIZE]); FrameHeaderFlyweight.encodeLength(length, 0, buf.readableBytes()); composite.addComponents(true, length, buf.retain()); return Frame.from(composite); }); }
Source:
public void testInvalidNotificationBadge() { final Intent intent = new Intent(); intent.putExtra("mp_message", "MESSAGE"); intent.putExtra("mp_bdgcnt", "0"); mpPushSpy.createNotification(intent); verify(builderSpy, never()).setNumber(any(Integer.class)); }

Target:
public void testInvalidNotificationBadge() { final Intent intent = new Intent(); intent.putExtra("mp_message", "MESSAGE"); intent.putExtra("mp_bdgcnt", 0); mpPushSpy.createNotification(intent); verify(builderSpy, never()).setNumber(any(Integer.class)); }
Source:
private void init() { if (this.environment.containsProperty(FRACTION_DIGITS)) { this.fraction_digits = this.environment.getProperty(FRACTION_DIGITS, Integer.class); } }

Target:
private void init() { if (this.environment.containsProperty(FRACTION_DIGITS)) { this.fractionDigits = this.environment.getProperty(FRACTION_DIGITS, Integer.class); } }
Source:
public void toggleJoypad(Key key, boolean state) { if (key.name == MojamComponent.instance.keys.joy_click.name) { MouseButtons mb = MojamComponent.instance.mouseButtons; MojamComponent.instance.mouseButtons.nextState[1] = (!mb.nextState2[1])?state:mb.nextState[1]; return; } key.nextState = (!key.nextState2)?state:key.nextState; }

Target:
public void toggleJoypad(Key key, boolean state) { if (key.name.equals(MojamComponent.instance.keys.joy_click.name)) { MouseButtons mb = MojamComponent.instance.mouseButtons; MojamComponent.instance.mouseButtons.nextState[1] = (!mb.nextState2[1])?state:mb.nextState[1]; return; } key.nextState = (!key.nextState2)?state:key.nextState; }
Source:
public static String formatIPAddressForURI(InetAddress inet){ if(inet == null){ throw new NullPointerException(); } if(inet instanceof Inet4Address){ return inet.getHostAddress(); } else if (inet instanceof Inet6Address){ return '[' + formatAddress(inet) + ']'; } else { return inet.getHostAddress(); } }

Target:
public static String formatIPAddressForURI(InetAddress inet){ if(inet == null){ throw new IllegalArgumentException(); } if(inet instanceof Inet4Address){ return inet.getHostAddress(); } else if (inet instanceof Inet6Address){ return '[' + formatAddress(inet) + ']'; } else { return inet.getHostAddress(); } }
Source:
private void appendGMFEdgeLabels(Edge edge, StringBuilder sb) { sb.append("\nLabels of edge:\n"); for (Object child : edge.getChildren()) { if (child instanceof Node) { Node node = (Node) child; if (new ViewQuery(node).isForEdgeNameEditPart() && (node).getLayoutConstraint() instanceof Location) { Location location = (Location) (node).getLayoutConstraint(); int type = SiriusVisualIDRegistry.getVisualID((node).getType()); if (type == DEdgeBeginNameEditPart.VISUAL_ID) { sb.append("\nBegin label: ").append(((DEdge) node.getElement()).getBeginLabel()).append(", "); sb.append(" (x: "); sb.append(location.getX()); sb.append(", y: "); sb.append(location.getY()); sb.append(')'); } else if (type == DEdgeNameEditPart.VISUAL_ID) { sb.append("\nCenter label: ").append(((DEdge) node.getElement()).getName()).append(", "); sb.append(" (x: "); sb.append(location.getX()); sb.append(", y: "); sb.append(location.getY()); sb.append(')'); } else if (type == DEdgeEndNameEditPart.VISUAL_ID) { sb.append("\nEnd label: ").append(((DEdge) node.getElement()).getEndLabel()).append(", "); sb.append(" (x: "); sb.append(location.getX()); sb.append(", y: "); sb.append(location.getY()); sb.append(')'); } } } } }

Target:
private void appendGMFEdgeLabels(Edge edge, StringBuilder sb) { sb.append("\nLabels of edge:\n"); for (Object child : edge.getChildren()) { if (child instanceof Node) { Node node = (Node) child; if (new ViewQuery(node).isForEdgeNameEditPart() && node.getLayoutConstraint() instanceof Location) { Location location = (Location) (node).getLayoutConstraint(); int type = SiriusVisualIDRegistry.getVisualID(node.getType()); if (type == DEdgeBeginNameEditPart.VISUAL_ID) { appendLabelLocation(sb, "Begin label", ((DEdge) node.getElement()).getBeginLabel(), location); } else if (type == DEdgeNameEditPart.VISUAL_ID) { appendLabelLocation(sb, "Center label", ((DEdge) node.getElement()).getName(), location); } else if (type == DEdgeEndNameEditPart.VISUAL_ID) { appendLabelLocation(sb, "End label", ((DEdge) node.getElement()).getEndLabel(), location); } } } } }
Source:
private Set<BasicAuthorizerRoleSimplifiedPermissions> getRolesForUserWithSimplifiedPermissions( BasicAuthorizerUser user, Map<String, BasicAuthorizerRole> roleMap ) { Set<BasicAuthorizerRoleSimplifiedPermissions> roles = new HashSet<>(); for (String roleName : user.getRoles()) { BasicAuthorizerRole role = roleMap.get(roleName); if (role == null) { log.error("User [%s] had role [%s], but role was not found.", user.getName(), roleName); } else { BasicAuthorizerRoleSimplifiedPermissions roleWithSimplifiedPermissions = new BasicAuthorizerRoleSimplifiedPermissions( role.getName(), null, BasicAuthorizerRoleSimplifiedPermissions.convertPermissions(role.getPermissions()) ); roles.add(roleWithSimplifiedPermissions); } } return roles; }

Target:
private Set<BasicAuthorizerRoleSimplifiedPermissions> getRolesForUserWithSimplifiedPermissions( BasicAuthorizerUser user, Map<String, BasicAuthorizerRole> roleMap ) { Set<BasicAuthorizerRoleSimplifiedPermissions> roles = new HashSet<>(); for (String roleName : user.getRoles()) { BasicAuthorizerRole role = roleMap.get(roleName); if (role == null) { log.error("User [%s] had role [%s], but role object was not found.", user.getName(), roleName); } else { BasicAuthorizerRoleSimplifiedPermissions roleWithSimplifiedPermissions = new BasicAuthorizerRoleSimplifiedPermissions( role.getName(), null, BasicAuthorizerRoleSimplifiedPermissions.convertPermissions(role.getPermissions()) ); roles.add(roleWithSimplifiedPermissions); } } return roles; }
Source:
public int getPropagationConditions(int idx) { if (fast) { return IntEventType.instantiation(); } return IntEventType.boundAndInst(); }

Target:
public int getPropagationConditions(int idx) { return IntEventType.boundAndInst(); }
Source:
private static View createToastView(Context context, CharSequence message) { View toastView = LayoutInflater.from(context).inflate(R.layout.toast, null, false); QuranSettings settings = QuranSettings.getInstance(context); Drawable tintedBackground = createTintedBackground(context, settings.isNightMode()); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { toastView.setBackground(tintedBackground); } else { toastView.setBackgroundDrawable(tintedBackground); } TextView textView = toastView.findViewById(android.R.id.message); textView.setTextColor(getTextColor(context, settings)); textView.setText(message); return toastView; }

Target:
private static View createToastView(Context context, CharSequence message) { View toastView = LayoutInflater.from(context).inflate(R.layout.toast, null, false); boolean nightMode = QuranSettings.getInstance(context).isNightMode(); Drawable tintedBackground = createTintedBackground(context, nightMode); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { toastView.setBackground(tintedBackground); } else { toastView.setBackgroundDrawable(tintedBackground); } TextView textView = toastView.findViewById(R.id.message); textView.setTextColor(getTextColor(context, nightMode)); textView.setText(message); return toastView; }
Source:
public void init(MapBackedPreferences preferences) { INSTANCE.preferences = preferences; emptyNode = preferences.node("emptyNode"); buildIdToUnameLookup(); buildBackCompatMapping(); validateTree(); if (log.isDebugEnabled()) { log.debug("Osinfo Repository:\n {}", toString()); } }

Target:
public void init(MapBackedPreferences preferences) { INSTANCE.preferences = preferences; emptyNode = preferences.node("emptyNode"); buildIdToUnameLookup(); buildBackCompatMapping(); validateTree(); if (log.isDebugEnabled()) { log.debug("Osinfo Repository:\n{}", this); } }
Source:
public LoginCredential getLoginCredentialByActivationKey(String activationKey) { String key = Security.encodeString(activationKey); LoginCredential loginCred = (LoginCredential) sessionFactory.getCurrentSession().createCriteria(LoginCredential.class).add(Restrictions.like("activationKey", key, MatchMode.START)).uniqueResult(); if(loginCred != null) { String[] credTokens = loginCred.getActivationKey().split(":"); if(credTokens[0].equals(key) && (System.currentTimeMillis() <= Long.parseLong(credTokens[1]) )){ return loginCred; } } return null; }

Target:
public LoginCredential getLoginCredentialByActivationKey(String activationKey) { String key = Security.encodeString(activationKey); LoginCredential loginCred = (LoginCredential) sessionFactory.getCurrentSession().createCriteria(LoginCredential.class) .add(Restrictions.like("activationKey", key, MatchMode.START)).uniqueResult(); if(loginCred != null) { String[] credTokens = loginCred.getActivationKey().split(":"); if(credTokens[0].equals(key)){ return loginCred; } } return null; }
Source:
private void prepareForSending() { try { if (partitionId != null) { attemptedPartitionIds.add(partitionId); } partitionId = getPartitionForPut(attemptedPartitionIds); chunkBlobId = new BlobId(partitionId); operationTracker = new SimpleOperationTracker(routerConfig.routerDatacenterName, partitionId, false, routerConfig.routerPutSuccessTarget, routerConfig.routerPutRequestParallelism, false); correlationIdToChunkPutRequestInfo.clear(); state = ChunkState.Ready; } catch (RouterException e) { setOperationException(e); } }

Target:
private void prepareForSending() { try { if (partitionId != null) { attemptedPartitionIds.add(partitionId); } partitionId = getPartitionForPut(attemptedPartitionIds); chunkBlobId = new BlobId(partitionId); operationTracker = new SimpleOperationTracker(routerConfig.routerDatacenterName, partitionId, false, routerConfig.routerPutSuccessTarget, routerConfig.routerPutRequestParallelism); correlationIdToChunkPutRequestInfo.clear(); state = ChunkState.Ready; } catch (RouterException e) { setOperationException(e); } }
Source:
public void upload() throws IOException { String bucketName = getBucketName(); String key = getKey(); File file = getFile(); String kmsKeyId = getKmsKeyId(); if (bucketName == null) { throw new GradleException("bucketName is not specified"); } if (key == null) { throw new GradleException("key is not specified"); } if (file == null) { throw new GradleException("file is not specified"); } if (file.isFile()) { throw new GradleException("file must be regular file"); } AmazonS3PluginExtension ext = getProject().getExtensions().getByType(AmazonS3PluginExtension.class); AmazonS3 s3 = ext.getClient(); ObjectMetadata metadata = existingObjectMetadata(); if (metadata == null || (isOverwrite() || metadata.getETag().equals(md5()))) { getLogger().info("uploading... " + bucketName + "/" + key); if (kmsKeyId == null) { putObject(bucketName, key, file, s3); } else { putObjectWithKmsSupport(bucketName, key, file, kmsKeyId, s3); } getLogger().info("upload completed: " + ((AmazonS3Client) s3).getResourceUrl(bucketName, key)); } else { getLogger().info("s3://{}/{} already exists with matching md5 sum -- skipped", bucketName, key); } setResourceUrl(s3.getUrl(bucketName, key).toString()); }

Target:
public void upload() throws IOException { String bucketName = getBucketName(); String key = getKey(); File file = getFile(); String kmsKeyId = getKmsKeyId(); if (bucketName == null) { throw new GradleException("bucketName is not specified"); } if (key == null) { throw new GradleException("key is not specified"); } if (file == null) { throw new GradleException("file is not specified"); } if (file.isFile() == false) { throw new GradleException("file must be regular file"); } AmazonS3PluginExtension ext = getProject().getExtensions().getByType(AmazonS3PluginExtension.class); AmazonS3 s3 = ext.getClient(); ObjectMetadata metadata = existingObjectMetadata(); if (metadata == null || (isOverwrite() || metadata.getETag().equals(md5()) == false)) { getLogger().info("uploading... " + bucketName + "/" + key); if (kmsKeyId == null) { putObject(bucketName, key, file, s3); } else { putObjectWithKmsSupport(bucketName, key, file, kmsKeyId, s3); } getLogger().info("upload completed: " + ((AmazonS3Client) s3).getResourceUrl(bucketName, key)); } else { getLogger().info("s3://{}/{} already exists with matching md5 sum -- skipped", bucketName, key); } setResourceUrl(s3.getUrl(bucketName, key).toString()); }
Source:
public AirConditioner login() throws Exception { try { connect(); getToken(); loginWithToken(); } catch (Exception e) { logger.debug("Disconnecting... with exception: " + e.toString()); disconnect(); throw e; } return this; }

Target:
public AirConditioner login() throws Exception { try { connect(); getToken(); loginWithToken(); } catch (Exception e) { logger.debug("Disconnecting... with exception: {}", e.toString()); disconnect(); throw e; } return this; }
Source:
private void initializeMetricCaches() { timerMetricCache = CacheBuilder.newBuilder().build(new CacheLoader<Method, Timer>() { @Override public Timer load(final Method method) { final String serviceInterfaceName = serviceInterface.getSimpleName(); final String methodName = method.getName(); final String timerMetricName = DOT_JOINER.join("killbill-service", "kb_plugin_latency", serviceName, serviceInterfaceName, methodName); return metricRegistry.timer(timerMetricName); } }); errorMetricCache = CacheBuilder.newBuilder().build(new CacheLoader<Method, Meter>() { @Override public Meter load(final Method method) { final String serviceInterfaceName = serviceInterface.getSimpleName(); final String methodName = method.getName(); final String counterMetricName = DOT_JOINER.join("killbill-service", "kb_plugin_errors", serviceName, serviceInterfaceName, methodName); return metricRegistry.meter(counterMetricName); } }); }

Target:
private void initializeMetricCaches() { timerMetricCache = CacheBuilder.newBuilder().build(new CacheLoader<String, Timer>() { @Override public Timer load(final String methodName) { final String timerMetricName = DOT_JOINER.join("killbill-service", "kb_plugin_latency", serviceName, serviceInterfaceName, methodName); return metricRegistry.timer(timerMetricName); } }); errorMetricCache = CacheBuilder.newBuilder().build(new CacheLoader<String, Meter>() { @Override public Meter load(final String methodName) { final String counterMetricName = DOT_JOINER.join("killbill-service", "kb_plugin_errors", serviceName, serviceInterfaceName, methodName); return metricRegistry.meter(counterMetricName); } }); }
Source:
public boolean layoutDependsOn(CoordinatorLayout parent, V child, View dependency) { if (dependency instanceof Snackbar.SnackbarLayout) { if (snackBarHeight == -1) { snackBarHeight = dependency.getHeight(); } dependency.setPadding(dependency.getPaddingLeft(), dependency.getPaddingTop(), dependency.getPaddingRight(), snackBarHeight + child.getMeasuredHeight()); child.bringToFront(); return true; } return false; }

Target:
public boolean layoutDependsOn(CoordinatorLayout parent, V child, View dependency) { if (dependency instanceof Snackbar.SnackbarLayout) { ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) dependency.getLayoutParams(); layoutParams.bottomMargin = child.getMeasuredHeight(); child.bringToFront(); return true; } return false; }
Source:
private VDS getAlternateUpServerInCluster(Guid clusterId, Guid vdsId) { List<VDS> vdsList = getVdsDao().getAllForClusterWithStatus(clusterId, VDSStatus.Up); if (vdsList.isEmpty()) { return null; } for (VDS vds : vdsList) { if (!vdsId.equals(vds.getId()) && vds.getExternalStatus() == ExternalStatus.Ok) { return vds; } } return null; }

Target:
private VDS getAlternateUpServerInCluster(Guid clusterId, Guid vdsId) { List<VDS> vdsList = getVdsDao().getAllForClusterWithStatusAndPeerStatus(clusterId, VDSStatus.Up, PeerStatus.CONNECTED); if (vdsList.isEmpty()) { return null; } for (VDS vds : vdsList) { if (!vdsId.equals(vds.getId()) && vds.getExternalStatus() == ExternalStatus.Ok) { return vds; } } return null; }
Source:
public void reloadDaemonConfig(Event e) { LOG.info("reloadDaemonConfig: processing reload daemon event..."); DaemonTools.handleReloadEvent(e, DAEMON_NAME, (event)->{ m_discoveryFactory.reload(); this.stop(); this.start(); }); LOG.info("reloadDaemonConfig: reload daemon event processed."); }

Target:
public void reloadDaemonConfig(Event e) { LOG.info("reloadDaemonConfig: processing reload daemon event..."); if (isReloadConfigEventTarget(e)) { reloadAndReStart(); } LOG.info("reloadDaemonConfig: reload daemon event processed."); }
Source:
private static String formatLocalDateTime(LocalDateTime localDateTime, String pattern) { if (localDateTime == null || pattern == null) { return ""; } String processedPattern = pattern; if (localDateTime.getHour() == 12 && localDateTime.getMinute() == 0) { processedPattern = pattern.replace("a", "'NOON'"); } DateTimeFormatter formatter = DateTimeFormatter.ofPattern(processedPattern, Locale.US); return localDateTime.format(formatter); }

Target:
private static String formatLocalDateTime(LocalDateTime localDateTime, String pattern) { if (localDateTime == null || pattern == null) { return ""; } String processedPattern = pattern; if (localDateTime.getHour() == 12 && localDateTime.getMinute() == 0) { processedPattern = pattern.replace("a", "'NOON'"); } DateTimeFormatter formatter = DateTimeFormatter.ofPattern(processedPattern); return localDateTime.format(formatter); }
Source:
public double calculateHeadingPower(double humanRotationalPower) { if (humanRotationalPower > humanThreshold.get()) { inAutomaticMode = false; lastHumanInput = Timer.getFPGATimestamp(); return humanRotationalPower; } double timeSinceHumanInput = Timer.getFPGATimestamp() - lastHumanInput; if (timeSinceHumanInput < coastTime.get()) { return 0; } else if (timeSinceHumanInput >= coastTime.get() && !inAutomaticMode) { desiredHeading = pose.getCurrentHeading().getValue(); inAutomaticMode = true; headingModule.reset(); decayModule.reset(); return 0; } else { switch (headingMode) { case HoldOrientation: return headingModule.calculateHeadingPower(desiredHeading); case DecayVelocity: return decayModule.calculateHeadingPower(0); default: return 0; } } }

Target:
public double calculateHeadingPower(double humanRotationalPower) { if (humanRotationalPower > humanThreshold.get()) { inAutomaticMode = false; lastHumanInput = Timer.getFPGATimestamp(); return humanRotationalPower; } double timeSinceHumanInput = Timer.getFPGATimestamp() - lastHumanInput; if (timeSinceHumanInput < coastTime.get()) { return 0; } else if (timeSinceHumanInput >= coastTime.get() && !inAutomaticMode) { desiredHeading = pose.getCurrentHeading().getValue(); inAutomaticMode = true; headingModule.reset(); decayModule.reset(); return 0; } else { if (headingMode == null) { log.warn("Heading module did not have any mode set. Forcing to HoldOrientation."); this.headingMode = HeadingAssistMode.HoldOrientation; } switch (headingMode) { case HoldOrientation: return headingModule.calculateHeadingPower(desiredHeading); case DecayVelocity: return decayModule.calculateHeadingPower(0); default: return 0; } } }
Source:
private void onAddBricksInternal() { VolumeBrickModel volumeBrickModel = (VolumeBrickModel) getWindow(); cancelConfirmation(); if (!volumeBrickModel.validate()) { return; } GlusterVolumeType selectedVolumeType = (GlusterVolumeType) getTypeList().getSelectedItem(); if (selectedVolumeType == GlusterVolumeType.REPLICATE || selectedVolumeType == GlusterVolumeType.DISTRIBUTED_REPLICATE) { getReplicaCount().setEntity(volumeBrickModel.getReplicaCount().getEntity()); } else if (selectedVolumeType == GlusterVolumeType.STRIPE || selectedVolumeType == GlusterVolumeType.DISTRIBUTED_STRIPE) { getStripeCount().setEntity(volumeBrickModel.getStripeCount().getEntity()); } else if (selectedVolumeType == GlusterVolumeType.STRIPED_REPLICATE || selectedVolumeType == GlusterVolumeType.DISTRIBUTED_STRIPED_REPLICATE) { getReplicaCount().setEntity(volumeBrickModel.getReplicaCount().getEntity()); getStripeCount().setEntity(volumeBrickModel.getStripeCount().getEntity()); } ArrayList<EntityModel> brickList = new ArrayList<EntityModel>(); for (Object object : volumeBrickModel.getBricks().getItems()) { EntityModel entityModel = (EntityModel) object; brickList.add(entityModel); } volumeBrickModel.getBricks().setItems(null); ListModel brickListModel = new ListModel(); brickListModel.setItems(brickList); brickListModel.setSelectedItems(brickList); setBricks(brickListModel); setWindow(null); }

Target:
private void onAddBricksInternal() { VolumeBrickModel volumeBrickModel = (VolumeBrickModel) getWindow(); cancelConfirmation(); if (!volumeBrickModel.validate()) { return; } GlusterVolumeType selectedVolumeType = (GlusterVolumeType) getTypeList().getSelectedItem(); if (selectedVolumeType.isReplicatedType()) { getReplicaCount().setEntity(volumeBrickModel.getReplicaCount().getEntity()); } if (selectedVolumeType.isStripedType()) { getStripeCount().setEntity(volumeBrickModel.getStripeCount().getEntity()); } ArrayList<EntityModel> brickList = new ArrayList<EntityModel>(); for (Object object : volumeBrickModel.getBricks().getItems()) { EntityModel entityModel = (EntityModel) object; brickList.add(entityModel); } volumeBrickModel.getBricks().setItems(null); ListModel brickListModel = new ListModel(); brickListModel.setItems(brickList); brickListModel.setSelectedItems(brickList); setBricks(brickListModel); setWindow(null); }
Source:
public static boolean isEmptyDirectory(String location) throws Exception { String[] files = ImportUtils.getFileSystem(location).getExistingFiles(location, "*"); if ((files.length == 0) || (files.length == 1 && truncateFileNameFromFullPath(files[0]).equals("_SUCCESS"))) return true; else return false; }

Target:
public static boolean isEmptyDirectory(String location) throws Exception { String[] files = ImportUtils.getFileSystem(location).getExistingFiles(location, "*"); return ((files.length == 0) || (files.length == 1 && "_SUCCESS".equals(truncateFileNameFromFullPath(files[0])))); }
Source:
public <T> T construct(Class<T> componentType) { if (componentType.equals(LockContainer.class)) { boolean notTransactional = !configuration.transaction().transactionMode().isTransactional(); LockContainer<?> lockContainer = configuration.locking().useLockStriping() ? notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : new OwnableReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()); return (T) lockContainer; } throw new CacheConfigurationException("Don't know how to create a " + componentType.getName()); }

Target:
public <T> T construct(Class<T> componentType) { boolean notTransactional = !configuration.transaction().transactionMode().isTransactional(); LockContainer<?> lockContainer = configuration.locking().useLockStriping() ? notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()) : new OwnableReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel(), configuration.dataContainer().keyEquivalence()); return (T) lockContainer; }
Source:
public ArtifactoryHttpClient(String artifactoryUrl, String username, String password, String accessToken, Log log) { this.artifactoryUrl = StringUtils.stripEnd(artifactoryUrl, "/"); this.username = username; this.password = password; this.accessToken = accessToken; this.log = log; }

Target:
private ArtifactoryHttpClient(String artifactoryUrl, String username, String password, String accessToken, Log log) { this.artifactoryUrl = StringUtils.stripEnd(artifactoryUrl, "/"); this.username = username; this.password = password; this.accessToken = accessToken; this.log = log; }
Source:
public Endpoint parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException { String id = parser.getAttributeValue(null, "id"); Vector<StackOperation> stackOperations = new Vector<>(); Vector<String> arguments = new Vector<>(); while (nextTagInBlock(NAME_ENDPOINT)) { String tagName = parser.getName().toLowerCase(); if (tagName.contentEquals(NAME_ARGUMENT)) { String argumentID = parser.getAttributeValue(null, "id"); if (argumentID == null || argumentID.isEmpty()) { throw new InvalidStructureException("argument must define a non empty id", parser); } arguments.add(argumentID); } else if (tagName.contentEquals(NAME_STACK)) { StackOpParser sop = new StackOpParser(parser); while (this.nextTagInBlock(NAME_STACK)) { stackOperations.add(sop.parse()); } } } return new Endpoint(id, arguments, stackOperations); }

Target:
public Endpoint parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException { String endpointId = parser.getAttributeValue(null, "id"); if (endpointId == null || endpointId.isEmpty()) { throw new InvalidStructureException("endpoint must define a non empty id", parser); } Vector<StackOperation> stackOperations = new Vector<>(); Vector<String> arguments = new Vector<>(); while (nextTagInBlock(NAME_ENDPOINT)) { String tagName = parser.getName().toLowerCase(); if (tagName.contentEquals(NAME_ARGUMENT)) { String argumentID = parser.getAttributeValue(null, "id"); if (argumentID == null || argumentID.isEmpty()) { throw new InvalidStructureException("argument must define a non empty id", parser); } arguments.add(argumentID); } else if (tagName.contentEquals(NAME_STACK)) { StackOpParser sop = new StackOpParser(parser); while (this.nextTagInBlock(NAME_STACK)) { stackOperations.add(sop.parse()); } } } return new Endpoint(endpointId, arguments, stackOperations); }
Source:
public void shouldSearchAndReturnAListOfLogEntriesWithGivenSourceUuid() throws Exception { MockHttpServletRequest req = request(RequestMethod.GET, getURI()); req.addParameter("source", "0d47284f-9e9b-4a81-a88b-8bb42bc0a901"); SimpleObject result = deserialize(handle(req)); Assert.assertNotNull(result); Assert.assertEquals(3, Util.getResultsSize(result)); }

Target:
public void shouldSearchAndReturnAListOfLogEntriesWithGivenSourceUuid() throws Exception { MockHttpServletRequest req = request(RequestMethod.GET, getURI()); req.addParameter("source", LOG_ENTRY_SOURCE_UUID); SimpleObject result = deserialize(handle(req)); Assert.assertNotNull(result); Assert.assertEquals(3, Util.getResultsSize(result)); }
Source:
private void parseUrl() { try { URI uri = new URI(UriUtils.encodeURIComponent(template.getUrl())); if (uri.getScheme() != null && uri.getScheme().equalsIgnoreCase("nfs")) { srcHost = uri.getHost(); srcPath = uri.getPath(); } } catch (URISyntaxException e) { throw new CloudRuntimeException("Invalid NFS url " + template.getUrl() + " caused error: " + e.getMessage()); } }

Target:
private void parseUrl() { try { URI uri = new URI(UriUtils.encodeURIComponent(template.getUrl())); if (uri.getScheme() != null && uri.getScheme().equalsIgnoreCase("nfs")) { srcHost = uri.getHost(); srcPath = uri.getPath(); } } catch (URISyntaxException e) { s_logger.error(String.format("Invalid NFS URL: %s", template.getUrl()), e); throw new CloudRuntimeException("Invalid NFS url " + template.getUrl() + " caused error: " + e.getMessage()); } }
Source:
public void scanFile(JavaFileScannerContext context) { this.context = context; scan(context.getTree()); }

Target:
public void scanFile(JavaFileScannerContext context) { this.context = context; if (context.getSemanticModel() != null) { scan(context.getTree()); } }
Source:
public void extractResponseDetails(FeedbackQuestionType questionType, FeedbackQuestionDetails questionDetails, String[] answer) { List<Integer> constSumAnswer = new ArrayList<Integer>(); for (String element : answer) { try { constSumAnswer.add(Integer.parseInt(element)); } catch (NumberFormatException e) { constSumAnswer.add(0); } } FeedbackConstantSumQuestionDetails constSumQd = (FeedbackConstantSumQuestionDetails) questionDetails; this.setConstantSumResponseDetails(constSumAnswer, constSumQd.getConstSumOptions(), constSumQd.isDistributeToRecipients()); }

Target:
public void extractResponseDetails(FeedbackQuestionType questionType, FeedbackQuestionDetails questionDetails, String[] answer) { List<Integer> constSumAnswer = new ArrayList<Integer>(); for (String answerPart : answer) { try { constSumAnswer.add(Integer.parseInt(answerPart)); } catch (NumberFormatException e) { constSumAnswer.add(0); } } FeedbackConstantSumQuestionDetails constSumQd = (FeedbackConstantSumQuestionDetails) questionDetails; this.setConstantSumResponseDetails(constSumAnswer, constSumQd.getConstSumOptions(), constSumQd.isDistributeToRecipients()); }
Source:
private void reportError(String message, Exception exception) { System.out.print(message + exception.getCause()); }

Target:
private void reportError(String message, Exception exception) { addError(message, exception); }
Source:
public static Double getJoinRowCount(RelMetadataQuery mq, Join join, RexNode condition) { if (!join.getJoinType().projectsRight()) { RexNode semiJoinSelectivity = RelMdUtil.makeSemiJoinSelectivityRexNode(mq, join); Double selectivity = mq.getSelectivity(join.getLeft(), semiJoinSelectivity); return NumberUtil.multiply( join.getJoinType() == JoinRelType.SEMI ? selectivity : 1D - selectivity, mq.getRowCount(join.getLeft())); } final Double left = mq.getRowCount(join.getLeft()); final Double right = mq.getRowCount(join.getRight()); if (left == null || right == null) { return null; } if (left <= 1D || right <= 1D) { Double max = mq.getMaxRowCount(join); if (max != null && max <= 1D) { return max; } } double product = left * right; double selectivity = mq.getSelectivity(join, condition); double innerRowCount = product * selectivity; switch (join.getJoinType()) { case INNER: return innerRowCount; case LEFT: return left * (1D - selectivity) + innerRowCount; case RIGHT: return right * (1D - selectivity) + innerRowCount; case FULL: return (left + right) * (1D - selectivity) + innerRowCount; default: throw Util.unexpected(join.getJoinType()); } }

Target:
public static Double getJoinRowCount(RelMetadataQuery mq, Join join, RexNode condition) { if (!join.getJoinType().projectsRight()) { RexNode semiJoinSelectivity = RelMdUtil.makeSemiJoinSelectivityRexNode(mq, join); Double selectivity = mq.getSelectivity(join.getLeft(), semiJoinSelectivity); return NumberUtil.multiply( join.getJoinType() == JoinRelType.SEMI ? selectivity : NumberUtil.subtract(1D, selectivity), mq.getRowCount(join.getLeft())); } final Double left = mq.getRowCount(join.getLeft()); final Double right = mq.getRowCount(join.getRight()); if (left == null || right == null) { return null; } if (left <= 1D || right <= 1D) { Double max = mq.getMaxRowCount(join); if (max != null && max <= 1D) { return max; } } Double selectivity = mq.getSelectivity(join, condition); if (selectivity == null) { return null; } double innerRowCount = left * right * selectivity; switch (join.getJoinType()) { case INNER: return innerRowCount; case LEFT: return left * (1D - selectivity) + innerRowCount; case RIGHT: return right * (1D - selectivity) + innerRowCount; case FULL: return (left + right) * (1D - selectivity) + innerRowCount; default: throw Util.unexpected(join.getJoinType()); } }
Source:
public Iterator<Bucket> iterator() { final int bucketCount = super.getBucketCount(); final double min = super.getMin(); final double max = super.getMax(); Iterator<FixedHistogram.Bucket> baseIterator = super.getIterator(); return new Iterator<Bucket>() { final Iterator<FixedHistogram.Bucket> iterator = baseIterator; @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Bucket next() { if (!hasNext()) { throw new NoSuchElementException(); } final FixedHistogram.Bucket baseValue = iterator.next(); return new Bucket(baseValue.left, baseValue.right, breakdowns.get(baseValue.index)); } @Override public void remove() { throw new UnsupportedOperationException(); } }; }

Target:
public Iterator<Bucket> iterator() { final int bucketCount = super.getBucketCount(); final double min = super.getMin(); final double max = super.getMax(); Iterator<FixedHistogram.Bucket> baseIterator = super.getIterator(); return new Iterator<Bucket>() { final Iterator<FixedHistogram.Bucket> iterator = baseIterator; @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Bucket next() { if (!hasNext()) { throw new NoSuchElementException(); } final FixedHistogram.Bucket baseValue = iterator.next(); return new Bucket(baseValue.left, baseValue.right, breakdowns[baseValue.index]); } @Override public void remove() { throw new UnsupportedOperationException(); } }; }
Source:
public void cantDowngradeIfGlusterNotSupported() { storagePoolVersion35(); cmd.getStoragePool().setCompatibilityVersion(Version.v3_1); StorageDomain sd = new StorageDomain(); sd.setStorageFormat(StorageFormatType.V3); sd.setStorageType(StorageType.GLUSTERFS); setAttachedDomains(sd); mcr.mockConfigValue(ConfigValues.GlusterFsStorageEnabled, cmd.getStoragePool().getCompatibilityVersion(), false); canDoActionFailed(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTET_IN_DOWNGRADED_VERSION); }

Target:
public void cantDowngradeIfGlusterNotSupported() { failOnDowngradingWithStorageType(StorageType.GLUSTERFS); }
Source:
public static WebViewClient getWebViewClient(final boolean ignoreErrors, final boolean followLinks, final Form form, final Component component) { return new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { EventDispatcher.dispatchEvent(this, "BeforePageLoad", url); return !followLinks; } @Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { if (ignoreErrors) { handler.proceed(); } else { handler.cancel(); form.dispatchErrorOccurredEvent(component, "WebView", ErrorMessages.ERROR_WEBVIEW_SSL_ERROR); } } @Override public void onPageFinished(WebView view, String url) { EventDispatcher.dispatchEvent(component, "PageLoaded", url); } }; }

Target:
public static WebViewClient getWebViewClient(final boolean ignoreErrors, final boolean followLinks, final Form form, final Component component) { return new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return !followLinks; } @Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { if (ignoreErrors) { handler.proceed(); } else { handler.cancel(); form.dispatchErrorOccurredEvent(component, "WebView", ErrorMessages.ERROR_WEBVIEW_SSL_ERROR); } } @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { EventDispatcher.dispatchEvent(component, "BeforePageLoad", url); } @Override public void onPageFinished(WebView view, String url) { EventDispatcher.dispatchEvent(component, "PageLoaded", url); } }; }
Source:
private <T extends PubSubWebSocketClient> T build(Class<T> clazz) { Preconditions.checkState(context != null, "Context not specified"); String gatewayAddress = context.getValue(LogicalPlan.GATEWAY_CONNECT_ADDRESS); if (gatewayAddress != null) { int timeout = context.getValue(LogicalPlan.PUBSUB_CONNECT_TIMEOUT_MILLIS); boolean gatewayUseSsl = context.getValue(LogicalPlan.GATEWAY_USE_SSL); SharedPubSubWebSocketClient wsClient = null; try { wsClient = new SharedPubSubWebSocketClient((gatewayUseSsl ? "wss://" : "ws://") + gatewayAddress + "/pubsub", timeout); String gatewayUserName = context.getValue(LogicalPlan.GATEWAY_USER_NAME); String gatewayPassword = context.getValue(LogicalPlan.GATEWAY_PASSWORD); if (gatewayUserName != null && gatewayPassword != null) { wsClient.setLoginUrl((gatewayUseSsl ? "https://" : "http://") + gatewayAddress + GATEWAY_LOGIN_URL_PATH); wsClient.setUserName(gatewayUserName); wsClient.setPassword(gatewayPassword); } return (T)wsClient; } catch (URISyntaxException e) { logger.warn("Error initializing websocket, gateway address {}", gatewayAddress, e); } return null; } return null; }

Target:
private <T extends PubSubWebSocketClient> T build(Class<T> clazz) { Preconditions.checkState(context != null, "Context not specified"); String gatewayAddress = context.getValue(LogicalPlan.GATEWAY_CONNECT_ADDRESS); if (gatewayAddress != null) { int timeout = context.getValue(LogicalPlan.PUBSUB_CONNECT_TIMEOUT_MILLIS); boolean gatewayUseSsl = context.getValue(LogicalPlan.GATEWAY_USE_SSL); SharedPubSubWebSocketClient wsClient = null; try { wsClient = new SharedPubSubWebSocketClient((gatewayUseSsl ? "wss://" : "ws://") + gatewayAddress + "/pubsub", timeout); String gatewayUserName = context.getValue(LogicalPlan.GATEWAY_USER_NAME); String gatewayPassword = context.getValue(LogicalPlan.GATEWAY_PASSWORD); if (gatewayUserName != null && gatewayPassword != null) { wsClient.setLoginUrl((gatewayUseSsl ? "https://" : "http://") + gatewayAddress + GATEWAY_LOGIN_URL_PATH); wsClient.setUserName(gatewayUserName); wsClient.setPassword(gatewayPassword); } return (T)wsClient; } catch (URISyntaxException e) { logger.warn("Unable to initialize websocket for gateway address {}", gatewayAddress, e); } return null; } return null; }
Source:
private void incrementEventQueueStatistic( ChangeSet changeSet ) { changesLock.lock(); try { if (repositoryStatistics != null) { repositoryStatistics.increment(ValueMetric.EVENT_QUEUE_SIZE); } if (!this.changesReceivedAndDispatched.containsKey(changeSet.hashCode())) { changesReceivedAndDispatched.put(changeSet.hashCode(), new AtomicInteger(listeners.size())); } } finally { changesLock.unlock(); } }

Target:
private void incrementEventQueueStatistic( ChangeSet changeSet ) { if (repositoryStatistics != null) { repositoryStatistics.increment(ValueMetric.EVENT_QUEUE_SIZE); } changesLock.lock(); try { if (!this.changesReceivedAndDispatched.containsKey(changeSet.hashCode())) { changesReceivedAndDispatched.put(changeSet.hashCode(), new AtomicInteger(listeners.size())); } } finally { changesLock.unlock(); } }
Source:
public void testBottom() throws Exception { final DefaultConfiguration checkConfig = createModuleConfig(ImportOrderCheck.class); checkConfig.addAttribute("option", "bottom"); final String[] expected = { "11: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "javax.swing.JComponent"), "15: " + getCheckMessage(MSG_ORDERING, "java.io.File"), "18: " + getCheckMessage(MSG_ORDERING, "java.awt.Button.ABORT"), "21: " + getCheckMessage(MSG_ORDERING, "java.io.Reader"), "8: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "java.io.IOException"), }; verify(checkConfig, getPath("InputImportOrder_Bottom.java"), expected); }

Target:
public void testBottom() throws Exception { final DefaultConfiguration checkConfig = createModuleConfig(ImportOrderCheck.class); checkConfig.addAttribute("option", "bottom"); final String[] expected = { "8: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "java.io.IOException"), "11: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "javax.swing.JComponent"), "14: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "java.io.File.*"), "15: " + getCheckMessage(MSG_ORDERING, "java.io.File"), "17: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "java.io.File.createTempFile"), "18: " + getCheckMessage(MSG_ORDERING, "java.awt.Button.ABORT"), "21: " + getCheckMessage(MSG_ORDERING, "java.io.Reader"), "21: " + getCheckMessage(MSG_SEPARATED_IN_GROUP, "java.io.Reader"), }; verify(checkConfig, getPath("InputImportOrder_Bottom.java"), expected); }