auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private boolean validateNoRunningJobs(Guid vdsId) { List<Step> steps = stepDao.getStartedStepsByStepSubjectEntity(new SubjectEntity(VdcObjectType.EXECUTION_HOST, <START> vdsId)); <END> if (!steps.isEmpty()) { return failValidation(EngineMessage.VDS_CANNOT_MAINTENANCE_HOST_WITH_RUNNING_JOBS, String.format("$jobs %1$s", steps.stream() .map(s -> s.getDescription()) .collect(Collectors.joining(System.lineSeparator())))); } return true; }</code><technical_language>line is long. please formatter extract new SubjectEntity a local variable</technical_language>

Target:
private boolean validateNoRunningJobs(Guid vdsId) { List<Step> steps = stepDao.getStartedStepsByStepSubjectEntity(new SubjectEntity(VdcObjectType.EXECUTION_HOST, vdsId)); if (!steps.isEmpty()) { ReplacementUtils.replaceWith("jobs", steps.stream().map(s -> s.getDescription()).collect(Collectors.toSet())); return failValidation(EngineMessage.VDS_CANNOT_MAINTENANCE_HOST_WITH_RUNNING_JOBS, String.format("$jobs %1$s", steps.stream() .map(s -> s.getDescription()) .collect(Collectors.joining(System.lineSeparator())))); } return true; }
Source:
<code>private static void checkParameterTypes(String methodName, Class<?>[] parameterTypes, String methodAnnotation, String[] parameterNames) { int totalLength = parameterTypes.length; int tmp = totalLength; for (Class parameterType : parameterTypes) { if (INJECTED_TYPES.contains(parameterType)) { totalLength--; } } <START> if (tmp != totalLength) { <END> isInjected = true; } if (parameterNames.length == 0) { boolean invalid = (totalLength != 0) || (!validParameters(methodAnnotation, parameterTypes)); if (invalid) { String annotation = methodAnnotation; if (!methodAnnotation.startsWith("@")) { annotation = "@" + methodAnnotation; } String errPrefix; if (mapping.containsKey(methodAnnotation)) { errPrefix = "Can inject only one of " + prettyFormat(mapping.get(methodAnnotation)) + " into a " + annotation + " annotated " + methodName; } else { errPrefix = "Cannot inject " + annotation + " annotated Method [" + methodName + "] with " + Arrays.toString(parameterTypes); } throw new TestNGException(errPrefix + ".\nFor more information on native dependency injection please refer to " + "<LINK_0>" ); } } if (parameterNames.length != totalLength) { throw new TestNGException( "Method " + methodName + " requires " + parameterTypes.length + " parameters but " + parameterNames.length + " were supplied in the " + methodAnnotation + " annotation."); } }</code><technical_language>do need for tmp variable if resorted if (totalLength != parameterTypes.length)</technical_language>

Target:
private static void checkParameterTypes(String methodName, Class<?>[] parameterTypes, String methodAnnotation, String[] parameterNames) { int totalLength = parameterTypes.length; for (Class parameterType : parameterTypes) { if (INJECTED_TYPES.contains(parameterType)) { totalLength--; } } if (parameterNames.length == 0) { boolean invalid = (totalLength != 0) || (!validParameters(methodAnnotation, parameterTypes)); if (invalid) { String annotation = methodAnnotation; if (!methodAnnotation.startsWith("@")) { annotation = "@" + methodAnnotation; } String errPrefix; if (mapping.containsKey(methodAnnotation)) { errPrefix = "Can inject only one of " + prettyFormat(mapping.get(methodAnnotation)) + " into a " + annotation + " annotated " + methodName; } else { errPrefix = "Cannot inject " + annotation + " annotated Method [" + methodName + "] with " + Arrays.toString(parameterTypes); } throw new TestNGException(errPrefix + ".\nFor more information on native dependency injection please refer to " + "<LINK_0>" ); } } if (parameterNames.length != totalLength) { throw new TestNGException( "Method " + methodName + " requires " + parameterTypes.length + " parameters but " + parameterNames.length + " were supplied in the " + methodAnnotation + " annotation."); } }
Source:
<code>public void testVpnMeterednessWithNonNullUnderlyingNetwork() throws Exception { if (!supportedHardware()) { return; } Network wifi = getWifiNetwork(); <START> assertEquals(wifi, <END> mCM.getActiveNetwork()); ArrayList<Network> underlyingNetworks = new ArrayList<>(1); underlyingNetworks.add(wifi); String allowedApps = mPackageName; startVpn( new String[] {"192.0.2.2/32", "2001:db8:1:2::ffe/128"}, new String[] {"0.0.0.0/0", "::/0"}, allowedApps, "", null, underlyingNetworks, false ); assertEquals(mNetwork, mCM.getActiveNetwork()); ensureVpnTransportContains(NetworkCapabilities.TRANSPORT_WIFI); assertEquals(isNetworkMetered(wifi), isNetworkMetered(mNetwork)); assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); }</code><technical_language>convinced require in CTS device is connected WiFi default network right now. Some Android devices WiFi Ethernet something</technical_language>

Target:
public void testVpnMeterednessWithNonNullUnderlyingNetwork() throws Exception { if (!supportedHardware()) { return; } Network wifi = getWifiNetwork(); assertEquals(wifi, mCM.getActiveNetwork()); ArrayList<Network> underlyingNetworks = new ArrayList<>(1); underlyingNetworks.add(wifi); String allowedApps = mPackageName; startVpn( new String[] {"192.0.2.2/32", "2001:db8:1:2::ffe/128"}, new String[] {"0.0.0.0/0", "::/0"}, allowedApps, "", null, underlyingNetworks, false ); assertEquals(mNetwork, mCM.getActiveNetwork()); assertVpnTransportContains(NetworkCapabilities.TRANSPORT_WIFI); assertEquals(isNetworkMetered(wifi), isNetworkMetered(mNetwork)); assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); }
Source:
<code>public Object intercept(InvocationContext context) throws Throwable { WebDriver browser = context.getGrapheneContext().getWebDriver(); if (indexOfFrame != -1) { browser.switchTo().frame(indexOfFrame); } else if (nameOrIdOfFrame != null) { browser.switchTo().frame(nameOrIdOfFrame); } Object result = context.invoke(); if(result instanceof GrapheneProxyInstance) { ((GrapheneProxyInstance) result).registerInterceptor(this); } <START> browser.switchTo().defaultContent(); <END> return result; }</code><technical_language>switch content/frame previously? retrieve current content/frame start of intercept method switch later</technical_language>

Target:
public Object intercept(InvocationContext context) throws Throwable { WebDriver browser = context.getGrapheneContext().getWebDriver(); if (indexOfFrame != -1) { browser.switchTo().frame(indexOfFrame); } else if (nameOrIdOfFrame != null) { browser.switchTo().frame(nameOrIdOfFrame); } Object result = null; try { result = context.invoke(); } finally { browser.switchTo().defaultContent(); } if (result instanceof GrapheneProxyInstance) { ((GrapheneProxyInstance) result).registerInterceptor(this); } return result; }
Source:
<code>private Map<String, CourseSummaryBundle> getCourseSummaryWithoutStatsForInstructor( List<InstructorAttributes> instructorAttributesList) { HashMap<String, CourseSummaryBundle> courseSummaryList = new HashMap<>(); List<String> courseIdList = new ArrayList<>(); for (InstructorAttributes ia : instructorAttributesList) { if (!coursesDb.getCourse(ia.courseId).isCourseDeleted()) { <START> courseIdList.add(ia.courseId); <END> } } List<CourseAttributes> courseList = coursesDb.getCourses(courseIdList); if (courseIdList.size() > courseList.size()) { for (CourseAttributes ca : courseList) { courseIdList.remove(ca.getId()); } log.severe("Course(s) was deleted but the instructor still exists: " + System.lineSeparator() + courseIdList.toString()); } for (CourseAttributes ca : courseList) { courseSummaryList.put(ca.getId(), getCourseSummaryWithoutStats(ca)); } return courseSummaryList; }</code><technical_language>Streams</technical_language>

Target:
private Map<String, CourseSummaryBundle> getCourseSummaryWithoutStatsForInstructor( List<InstructorAttributes> instructorAttributesList) { HashMap<String, CourseSummaryBundle> courseSummaryList = new HashMap<>(); List<String> courseIdList = instructorAttributesList.stream() .filter(instructor -> !coursesDb.getCourse(instructor.courseId).isCourseDeleted()) .map(InstructorAttributes::getCourseId) .collect(Collectors.toList()); List<CourseAttributes> courseList = coursesDb.getCourses(courseIdList); if (courseIdList.size() > courseList.size()) { for (CourseAttributes ca : courseList) { courseIdList.remove(ca.getId()); } log.severe("Course(s) was deleted but the instructor still exists: " + System.lineSeparator() + courseIdList.toString()); } for (CourseAttributes ca : courseList) { courseSummaryList.put(ca.getId(), getCourseSummaryWithoutStats(ca)); } return courseSummaryList; }
Source:
<code>public static Optional<DateTime> getLightsOutTime(final List<Event> lightEvents) { for (final Event event : lightEvents) { if (event.getType() == Event.Type.LIGHTS_OUT) { final DateTime lightsOutTime = new DateTime(event.getEndTimestamp(), DateTimeZone.UTC).plusMillis(event.getTimezoneOffset()); final int lightsOutHour = lightsOutTime.getHourOfDay(); <START> if (lightsOutHour > 19 || lightsOutHour < 4) { END> return Optional.of(lightsOutTime.minusMinutes(10)); } break; } } return Optional.absent(); }</code><technical_language>put this static variables more visible</technical_language>

Target:
public static Optional<DateTime> getLightsOutTime(final List<Event> lightEvents) { for (final Event event : lightEvents) { if (event.getType() == Event.Type.LIGHTS_OUT) { final DateTime lightsOutTime = new DateTime(event.getEndTimestamp(), DateTimeZone.UTC).plusMillis(event.getTimezoneOffset()); final int lightsOutHour = lightsOutTime.getHourOfDay(); if (lightsOutHour > LIGHTS_OUT_START_THRESHOLD || lightsOutHour < LIGHTS_OUT_END_THRESHOLD) { return Optional.of(lightsOutTime.minusMinutes(LIGHTS_OUT_TOLERANCE)); } break; } } return Optional.absent(); }
Source:
<code>public void process(TypedTransactionBase tx, Bytes row, Column col) { String newContent = tx.get().row(row).col(col).toString(); String currentContent = tx.get().row(row).fam("content").qual("current").toString(""); Map<String, Long> newWordCounts = getWordCounts(newContent); Map<String, Long> currentWordCounts = getWordCounts(currentContent); Map<String, Long> changes = new HashMap<>(); for (Entry<String, Long> entry : newWordCounts.entrySet()) { String word = entry.getKey(); long newCount = entry.getValue(); <START> long currentCount = currentWordCounts.getOrDefault(word, 0l); <END> changes.put(word, newCount - currentCount); } for (Entry<String, Long> entry : currentWordCounts.entrySet()) { String word = entry.getKey(); long currentCount = entry.getValue(); if (!newWordCounts.containsKey(word)) { changes.put(word, -1 * currentCount); } } wcm.update(tx, changes); tx.mutate().row(row).fam("content").qual("current").set(newContent); }</code><technical_language>Is default 1 0L</technical_language>

Target:
public void process(TypedTransactionBase tx, Bytes row, Column col) { String newContent = tx.get().row(row).col(col).toString(); String currentContent = tx.get().row(row).fam("content").qual("current").toString(""); Map<String, Long> newWordCounts = getWordCounts(newContent); Map<String, Long> currentWordCounts = getWordCounts(currentContent); Map<String, Long> changes = new HashMap<>(); for (Entry<String, Long> entry : newWordCounts.entrySet()) { String word = entry.getKey(); long newCount = entry.getValue(); long currentCount = currentWordCounts.getOrDefault(word, 0L); changes.put(word, newCount - currentCount); } for (Entry<String, Long> entry : currentWordCounts.entrySet()) { String word = entry.getKey(); long currentCount = entry.getValue(); if (!newWordCounts.containsKey(word)) { changes.put(word, -1 * currentCount); } } wcm.update(tx, changes); tx.mutate().row(row).fam("content").qual("current").set(newContent); }
Source:
<code>private ServerErrorCode validateRequest(PartitionId partition, boolean checkPartitionState) { try { storeManager.getStore(partition); } catch (StoreException e) { if (e.getErrorCode() == StoreErrorCodes.Store_Not_Started) { metrics.diskUnavailableError.inc(); return ServerErrorCode.Disk_Unavailable; } else if (e.getErrorCode() == StoreErrorCodes.Partition_Not_Found) { metrics.partitionUnknownError.inc(); <START> return ServerErrorCode.Partition_Unknown; <END> } } List<ReplicaId> replicaIds = partition.getReplicaIds(); for (ReplicaId replica : replicaIds) { if (replica.getDataNodeId().getHostname() == currentNode.getHostname() && replica.getDataNodeId().getPort() == currentNode.getPort()) { if (replica.getDiskId().getState() == HardwareState.UNAVAILABLE) { metrics.diskUnavailableError.inc(); return ServerErrorCode.Disk_Unavailable; } } } if (checkPartitionState && partition.getPartitionState() == PartitionState.READ_ONLY) { metrics.partitionReadOnlyError.inc(); return ServerErrorCode.Partition_ReadOnly; } return ServerErrorCode.No_Error; }</code><technical_language>is cluster map find this detail</technical_language>

Target:
private ServerErrorCode validateRequest(PartitionId partition, boolean checkPartitionState) { if (storageManager.getStore(partition) == null) { boolean partitionPresent = false; for (ReplicaId replica : partition.getReplicaIds()) { if (replica.getDataNodeId().equals(currentNode)) { partitionPresent = true; break; } } if (partitionPresent) { metrics.diskUnavailableError.inc(); return ServerErrorCode.Disk_Unavailable; } else { metrics.partitionUnknownError.inc(); return ServerErrorCode.Partition_Unknown; } } List<ReplicaId> replicaIds = partition.getReplicaIds(); for (ReplicaId replica : replicaIds) { if (replica.getDataNodeId().getHostname() == currentNode.getHostname() && replica.getDataNodeId().getPort() == currentNode.getPort()) { if (replica.getDiskId().getState() == HardwareState.UNAVAILABLE) { metrics.diskUnavailableError.inc(); return ServerErrorCode.Disk_Unavailable; } } } if (checkPartitionState && partition.getPartitionState() == PartitionState.READ_ONLY) { metrics.partitionReadOnlyError.inc(); return ServerErrorCode.Partition_ReadOnly; } return ServerErrorCode.No_Error; }
Source:
<code>public void setUp() throws Exception { resourceFactory = (ResourceFactory<String, String>) EasyMock.createMock(ResourceFactory.class); EasyMock.replay(resourceFactory); pool = new ResourcePool<String, String>( resourceFactory, <START> new ResourcePoolConfig(2, 14400000000l) <END> ); EasyMock.verify(resourceFactory); EasyMock.reset(resourceFactory); }</code><technical_language>this mean</technical_language>

Target:
public void setUp() throws Exception { resourceFactory = (ResourceFactory<String, String>) EasyMock.createMock(ResourceFactory.class); EasyMock.replay(resourceFactory); pool = new ResourcePool<String, String>( resourceFactory, new ResourcePoolConfig(2, TimeUnit.MINUTES.toMillis(4)) ); EasyMock.verify(resourceFactory); EasyMock.reset(resourceFactory); }
Source:
<code>public DataSetPreProcessor getPreProcessor() { throw new UnsupportedOperationException(); <START> } <END></code><technical_language>1 field</technical_language>

Target:
public DataSetPreProcessor getPreProcessor() { return preProcessor; }
Source:
<code>public StructuredRecord getCurrentValue(StructuredRecord.Builder recordBuilder) throws IOException, InterruptedException { StructuredRecord ret = recordTransformer.transform(recordBuilder, delegate.getCurrentValue(), schema, pathField); <START> AvroReadSupport.setAvroReadSchema(job.getConfiguration(), new org.apache.avro.Schema.Parser().parse <END> (ret.getSchema().toString())); return ret; }</code><technical_language>this needs set configuring job, here</technical_language>

Target:
public StructuredRecord getCurrentValue(StructuredRecord.Builder recordBuilder) throws IOException, InterruptedException { return recordTransformer.transform(recordBuilder, delegate.getCurrentValue(), schema, pathField); }
Source:
<code>public IndexReader select( IndexReader[] instances, IndexQuery... predicates ) { if ( predicates.length > 1 ) { return instances[LUCENE]; } IndexQuery predicate = predicates[0]; if ( predicate instanceof ExactPredicate ) { ExactPredicate exactPredicate = (ExactPredicate) predicate; return select( instances, exactPredicate.value() ); } if ( predicate instanceof IndexQuery.RangePredicate ) { switch ( predicate.valueGroup() ) { case NUMBER: return instances[NUMBER]; case GEOMETRY: return instances[SPATIAL]; case DATE: case LOCAL_DATE_TIME: case ZONED_DATE_TIME: case LOCAL_TIME: case ZONED_TIME: case DURATION: return instances[TEMPORAL]; default: } } <START> if ( predicate instanceof ExistsPredicate ) <END> { return null; } return instances[LUCENE]; }</code><technical_language>Lines 86, 92 & 111: consistent static imports =)</technical_language>

Target:
public IndexReader select( IndexReader[] instances, IndexQuery... predicates ) { if ( predicates.length > 1 ) { return instances[LUCENE]; } IndexQuery predicate = predicates[0]; if ( predicate instanceof ExactPredicate ) { ExactPredicate exactPredicate = (ExactPredicate) predicate; return select( instances, exactPredicate.value() ); } if ( predicate instanceof RangePredicate ) { switch ( predicate.valueGroup() ) { case NUMBER: return instances[NUMBER]; case GEOMETRY: return instances[SPATIAL]; case DATE: case LOCAL_DATE_TIME: case ZONED_DATE_TIME: case LOCAL_TIME: case ZONED_TIME: case DURATION: return instances[TEMPORAL]; default: } } if ( predicate instanceof ExistsPredicate ) { return null; } return instances[LUCENE]; }
Source:
<code>public void run() throws OperationException { if (TransactionHelper.isTransactionMarkedRollback()) { return; } try { TransactionHelper.runInNewTransaction(() -> { try (OperationContext subctx = ctx.getSubContext(isolate)) { try { service.run(subctx, chainId, chainParameters); } catch (OperationException e) { if (rollbackGlobalOnError) { throw new NuxeoException(e); } else { log.error("Error while executing operation " + chainId, e); } } } catch (OperationException cause) { throw new NuxeoException(cause); } }); <START> } catch (NuxeoException cause) { <END> if (cause.getCause() instanceof OperationException) { throw (OperationException) cause.getCause(); } throw cause; } }</code><technical_language>> e for consistency</technical_language>

Target:
public void run() throws OperationException { if (TransactionHelper.isTransactionMarkedRollback()) { return; } try { TransactionHelper.runInNewTransaction(() -> { try (OperationContext subctx = ctx.getSubContext(isolate)) { try { service.run(subctx, chainId, chainParameters); } catch (OperationException e) { if (rollbackGlobalOnError) { throw new NuxeoException(e); } else { log.error("Error while executing operation " + chainId, e); } } } catch (OperationException e) { throw new NuxeoException(e); } }); } catch (NuxeoException e) { if (e.getCause() instanceof OperationException) { throw (OperationException) e.getCause(); } throw e; } }
Source:
<code>private void checkSecurityOr403(Request request, Response response) { <START> if (Arrays.asList("PATCH", "PUT", "DELETE").contains(request.requestMethod().toUpperCase())) { <END> apiAuthenticationHelper.checkAdminUserAnd403(request, response); return; } apiAuthenticationHelper.checkUserAnd403(request, response); }</code><technical_language>invert this, GET HEAD allowed, else is denied, prevents accidentally opening else</technical_language>

Target:
private void checkSecurityOr403(Request request, Response response) { if (Arrays.asList("GET", "HEAD").contains(request.requestMethod().toUpperCase())) { apiAuthenticationHelper.checkUserAnd403(request, response); return; } apiAuthenticationHelper.checkAdminUserAnd403(request, response); }
Source:
<code>public HttpResponse doResourceBundle(StaplerRequest request) { String baseName = request.getParameter("baseName"); if (baseName == null) { return HttpResponses.errorJSON("Mandatory parameter 'baseName' not specified."); } String language = request.getParameter("language"); String country = request.getParameter("country"); String variant = request.getParameter("variant"); <START> if (country == null && language.length()>2) { <END> country = language.substring(3,5); if (variant == null && language.length()>5) { variant = language.substring(6); } language = language.substring(0,2); } try { Locale locale = request.getLocale(); if (language != null && country != null && variant != null) { locale = new Locale(language, country, variant); } else if (language != null && country != null) { locale = new Locale(language, country); } else if (language != null) { locale = new Locale(language); } return HttpResponses.okJSON(ResourceBundleUtil.getBundle(baseName, locale)); } catch (Exception e) { return HttpResponses.errorJSON(e.getMessage()); } }</code><technical_language>I meant language.length() >= 5, right? call substring assumes string is length 5</technical_language>

Target:
public HttpResponse doResourceBundle(StaplerRequest request) { String baseName = request.getParameter("baseName"); if (baseName == null) { return HttpResponses.errorJSON("Mandatory parameter 'baseName' not specified."); } String language = request.getParameter("language"); String country = request.getParameter("country"); String variant = request.getParameter("variant"); if (language != null) { String[] languageTokens = language.split("-|_"); language = languageTokens[0]; if (country == null && languageTokens.length > 1) { country = languageTokens[1]; if (variant == null && languageTokens.length > 2) { variant = languageTokens[2]; } } } try { Locale locale = request.getLocale(); if (language != null && country != null && variant != null) { locale = new Locale(language, country, variant); } else if (language != null && country != null) { locale = new Locale(language, country); } else if (language != null) { locale = new Locale(language); } return HttpResponses.okJSON(ResourceBundleUtil.getBundle(baseName, locale)); } catch (Exception e) { return HttpResponses.errorJSON(e.getMessage()); } }
Source:
<code>private Weighting createWeighting(FlagEncoder encoder, double uTurnCosts) { TurnWeighting result = new TurnWeighting(new FastestWeighting(encoder), tcs); if (!Double.isInfinite(uTurnCosts)) { result.setUTurnCost(uTurnCosts); <START> } <END> return result; }</code><technical_language>this moved new constructor</technical_language>

Target:
private Weighting createWeighting(FlagEncoder encoder, double uTurnCosts) { return new TurnWeighting(new FastestWeighting(encoder), tcs, uTurnCosts); }
Source:
<code>public boolean isSymbolicLink() { if (context.getLayout() == StorageFileLayout.OBJECT_ID) { <START> return path.getFileName().endsWith(".bai") || path.getFileName().endsWith(".tbi"); <END> } return false; }</code><technical_language>IndexFileType.isIndexFile(path.getFileName)</technical_language>

Target:
public boolean isSymbolicLink() { if (context.getLayout() == StorageFileLayout.OBJECT_ID) { return IndexFileType.isIndexFile(path.getFileName().toString()); } return false; }
Source:
<code>TypeAdapter<?> getTypeAdapter(ConstructorConstructor constructorConstructor, Gson gson, TypeToken<?> type, JsonAdapter annotation) { Class<?> value = annotation.value(); Class<?> rawType = type.getRawType(); TypeAdapter<?> typeAdapter; if (TypeAdapter.class.isAssignableFrom(value)) { Map<Class, TypeAdapter> adapters = activeJsonAdapterClasses.get(); typeAdapter = adapters.get(rawType); if (typeAdapter == null) { Class<TypeAdapter<?>> typeAdapterClass = (Class<TypeAdapter<?>>) value; typeAdapter = constructorConstructor.get(TypeToken.get(typeAdapterClass)).construct(); adapters.put(rawType, typeAdapter); } } else if (TypeAdapterFactory.class.isAssignableFrom(value)) { TypeAdapterFactory factory = getTypeAdapterFactory(rawType, annotation, constructorConstructor); typeAdapter = factory == null ? null : factory.create(gson, type); } else { throw new IllegalArgumentException( <START> "@JsonAdapter value must be TypeAdapter, TypeAdapterFactory, JsonSerializer or JsonDeserializer reference."); <END> } if (typeAdapter != null) { typeAdapter = typeAdapter.nullSafe(); } return typeAdapter; }</code><technical_language>Is JsonSerializer / JsonDeserializer change true</technical_language>

Target:
TypeAdapter<?> getTypeAdapter(ConstructorConstructor constructorConstructor, Gson gson, TypeToken<?> type, JsonAdapter annotation) { Class<?> value = annotation.value(); boolean isTypeAdapter = TypeAdapter.class.isAssignableFrom(value); boolean isJsonSerializer = JsonSerializer.class.isAssignableFrom(value); boolean isJsonDeserializer = JsonDeserializer.class.isAssignableFrom(value); TypeAdapter<?> typeAdapter; if (isTypeAdapter || isJsonSerializer || isJsonDeserializer) { if (isTypeAdapter) { Class<TypeAdapter<?>> typeAdapterClass = (Class<TypeAdapter<?>>) value; typeAdapter = constructorConstructor.get(TypeToken.get(typeAdapterClass)).construct(); } else if (isJsonSerializer || isJsonDeserializer) { JsonSerializer serializer = null; if (isJsonSerializer) { Class<JsonSerializer<?>> serializerClass = (Class<JsonSerializer<?>>) value; serializer = constructorConstructor.get(TypeToken.get(serializerClass)).construct(); } JsonDeserializer deserializer = null; if (isJsonDeserializer) { Class<JsonDeserializer<?>> deserializerClass = (Class<JsonDeserializer<?>>) value; deserializer = constructorConstructor.get(TypeToken.get(deserializerClass)).construct(); } typeAdapter = new TreeTypeAdapter(serializer, deserializer, gson, type, null); } else { typeAdapter = null; } } else if (TypeAdapterFactory.class.isAssignableFrom(value)) { TypeAdapterFactory factory = getTypeAdapterFactory(annotation, constructorConstructor); typeAdapter = factory == null ? null : factory.create(gson, type); } else { throw new IllegalArgumentException( "@JsonAdapter value must be TypeAdapter, TypeAdapterFactory, JsonSerializer or JsonDeserializer reference."); } if (typeAdapter != null) { typeAdapter = typeAdapter.nullSafe(); } return typeAdapter; }
Source:
<code>void processEvent(WatchedEvent event) { switch(event.getType()) { case None: { connectionEvent(event); break; } case NodeCreated: { for(ZKListener listener : listeners) { listener.nodeCreated(event.getPath()); } break; } case NodeDeleted: { for(ZKListener listener : listeners) { listener.nodeDeleted(event.getPath()); } break; } case NodeDataChanged: { for(ZKListener listener : listeners) { listener.nodeDataChanged(event.getPath()); } break; } case NodeChildrenChanged: { for(ZKListener listener : listeners) { listener.nodeChildrenChanged(event.getPath()); } break; } default: <START> LOG.error("Invalid event of type received for path {}. Ignoring.", <END> event.getState(), event.getPath()); } }</code><technical_language>Yeah, this better</technical_language>

Target:
private void processEvent(WatchedEvent event) { switch(event.getType()) { case None: { connectionEvent(event); break; } case NodeCreated: { for(ZKListener listener : listeners) { listener.nodeCreated(event.getPath()); } break; } case NodeDeleted: { for(ZKListener listener : listeners) { listener.nodeDeleted(event.getPath()); } break; } case NodeDataChanged: { for(ZKListener listener : listeners) { listener.nodeDataChanged(event.getPath()); } break; } case NodeChildrenChanged: { for(ZKListener listener : listeners) { listener.nodeChildrenChanged(event.getPath()); } break; } default: LOG.error("Invalid event of type received for path {}. Ignoring.", event.getState(), event.getPath()); } }
Source:
<code>public static String getNextTestThreadName() { String testName = getCurrentTestName(); TestResources resources = getTestResources(testName); String simpleName = resources.getSimpleName(); <START> int nextThreadIndex = resources.addNode(); <END> return "testng-" + simpleName + (nextThreadIndex != 0 ? "-" + nextThreadIndex : ""); }</code><technical_language>addThread() maybe</technical_language>

Target:
public static String getNextTestThreadName() { String testName = getCurrentTestName(); TestResources resources = getTestResources(testName); String simpleName = resources.getSimpleName(); int nextThreadIndex = resources.addThread(); return "testng-" + simpleName + (nextThreadIndex != 0 ? "-" + nextThreadIndex : ""); }
Source:
<code>public void defaultTrackerGeneratesTimestampMetrics() { try (TimestampTracker ignored = TimestampTracker.createWithDefaultTrackers(timelockService, cleaner)) { <START> assertThat(AtlasDbMetrics.getMetricRegistry().getNames()) <END> .contains(buildFullyQualifiedMetricName(IMMUTABLE_TIMESTAMP_NAME)) .contains(buildFullyQualifiedMetricName(FRESH_TIMESTAMP_NAME)) .contains(buildFullyQualifiedMetricName(UNREADABLE_TIMESTAMP_NAME)); } }</code><technical_language>Do want test default tracker generates metrics</technical_language>

Target:
public void defaultTrackerGeneratesTimestampMetrics() { try (TimestampTrackerImpl ignored = createDefaultTracker()) { assertThat(AtlasDbMetrics.getMetricRegistry().getNames()) .containsExactlyInAnyOrder(buildFullyQualifiedMetricName(IMMUTABLE_TIMESTAMP_NAME), buildFullyQualifiedMetricName(FRESH_TIMESTAMP_NAME), buildFullyQualifiedMetricName(UNREADABLE_TIMESTAMP_NAME)); } }
Source:
<code>public Idle(String name, boolean verbose, Subsystem... subsystems) { super(); setName(name); this.verbose = verbose; <START> requirements = Set.of(subsystems); <END> }</code><technical_language>replace addRequirements(subsystems)</technical_language>

Target:
public Idle(String name, boolean verbose, Subsystem... subsystems) { super(); setName(name); this.verbose = verbose; addRequirements(subsystems); }
Source:
<code>public ClassLoader getClassLoader(ObjectId rulesId) { <START> Reference<? extends ClassLoader> ref = referMap.get(rulesId); <END> if (ref != null) { ClassLoader cl = ref.get(); if (cl != null) { return cl; } synchronized(lock) { referMap.remove(rulesId); } ref.enqueue(); } cleanMap(); if (rulesId == null || rulesDir == null) { return null; } File jarFile = new File(rulesDir, "rules-" + rulesId.getName() + ".jar"); if (!jarFile.isFile()) { return null; } ClassLoader defaultLoader = getClass().getClassLoader(); URL url; try { url = jarFile.toURI().toURL(); } catch (MalformedURLException e) { return null; } URL[] urls = new URL[]{url}; ClassLoader urlLoader = new URLClassLoader(urls, defaultLoader); LoaderRef lRef = new LoaderRef(rulesId, urlLoader); synchronized(lock) { referMap.put(rulesId, lRef); } return urlLoader; }</code><technical_language>need grab lock read map. that, cleanest mark method synchronized "this" object lock protect map. drop lock object declaration</technical_language>

Target:
public synchronized ClassLoader getClassLoader(ObjectId rulesId) { if (rulesId == null || rulesDir == null) { return null; } Reference<? extends ClassLoader> ref = classLoaderCache.get(rulesId); if (ref != null) { ClassLoader cl = ref.get(); if (cl != null) { return cl; } classLoaderCache.remove(rulesId); ref.enqueue(); } cleanCache(); File jarFile = new File(rulesDir, "rules-" + rulesId.getName() + ".jar"); if (!jarFile.isFile()) { return null; } ClassLoader defaultLoader = getClass().getClassLoader(); URL url; try { url = jarFile.toURI().toURL(); } catch (MalformedURLException e) { log.error("Path to rules jar is broken", e); return null; } URL[] urls = new URL[]{url}; ClassLoader urlLoader = new URLClassLoader(urls, defaultLoader); LoaderRef lRef = new LoaderRef(rulesId, urlLoader); classLoaderCache.put(rulesId, lRef); return urlLoader; }
Source:
<code>public Object getParent(Object element) { final Object ret; if (element instanceof CompareInputAdapter) { Object parentNode = super.getParent(((Adapter)element).getTarget()); if (parentNode instanceof TreeNode) { <START> final Iterable<CompareInputAdapter> cia = Iterables.filter( <END> ((TreeNode)parentNode).eAdapters(), CompareInputAdapter.class); if (!Iterables.isEmpty(cia)) { ret = cia.iterator().next(); } else { ret = parentNode; } } else { ret = parentNode; } } else if (element instanceof ICompareInput) { ret = null; } else { ret = super.getParent(element); } return ret; }</code><technical_language>Iterators instead of Iterables</technical_language>

Target:
public Object getParent(Object element) { final Object ret; if (element instanceof CompareInputAdapter) { Object parentNode = super.getParent(((Adapter)element).getTarget()); if (parentNode instanceof TreeNode) { final Optional<Adapter> cia = Iterators.tryFind( ((TreeNode)parentNode).eAdapters().iterator(), instanceOf(CompareInputAdapter.class)); if (cia.isPresent()) { ret = cia.get(); } else { ret = parentNode; } } else { ret = parentNode; } } else if (element instanceof ICompareInput) { ret = null; } else { ret = super.getParent(element); } return ret; }
Source:
<code>public void testAddWebMessageListenerBasicUsage() throws Exception { mWebViewOnUiThread.addWebMessageListener(JS_OBJECT_NAME, <START> new ArrayList<String>() { { add("*"); } }, mListener); <END> loadPage(BASIC_USAGE); TestWebMessageListener.Data data = mListener.waitForOnPostMessage(); Assert.assertEquals("hello", data.mMessage.getData()); Assert.assertTrue(mListener.hasNoMoreOnPostMessage()); }</code><technical_language>calling <LINK_1> here? This is obvious. call <LINK_0> instead</technical_language>

Target:
public void testAddWebMessageListenerBasicUsage() throws Exception { mWebViewOnUiThread.addWebMessageListener(JS_OBJECT_NAME, MATCH_EXAMPLE_COM, mListener); loadHtmlSync(BASIC_USAGE); TestWebMessageListener.Data data = mListener.waitForOnPostMessage(); Assert.assertEquals("hello", data.mMessage.getData()); Assert.assertTrue( "Should have no more message at this point.", mListener.hasNoMoreOnPostMessage()); }
Source:
<code>protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException { <START> resp.addHeader(HttpHeaders.VARY, HttpHeaders.CONTENT_TYPE); <END> ldfDelegate.doGet(req, resp); }</code><technical_language>I barely understand this is working, Content-Type is a header present in response this affect cache negotiation</technical_language>

Target:
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException { resp.addHeader(HttpHeaders.VARY, HttpHeaders.ACCEPT); ldfDelegate.doGet(req, resp); }
Source:
<code>public Object run(Stressor stressor, int iteration) { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put(Queryable.QUERYABLE_FIELD, onField); paramMap.put(Queryable.MATCH_STRING, matching); paramMap.put(Queryable.IS_WILDCARD, isWildcardQuery); Object obj = stressor.makeRequest(iteration, Operation.QUERY, paramMap); <START> resultObjects.add(obj); <END> return obj; }</code><technical_language>I big is returned value, do plan more compare sizes assert? Otherwise, recommend do check right get returned store size</technical_language>

Target:
public Object run(Stressor stressor, int iteration) { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put(Queryable.QUERYABLE_FIELD, onField); paramMap.put(Queryable.MATCH_STRING, matching); paramMap.put(Queryable.IS_WILDCARD, isWildcardQuery); List obj = (List) stressor.makeRequest(iteration, Operation.QUERY, paramMap); resultObjects.add(obj.size()); return obj; }
Source:
<code>String execute(final HttpEntityEnclosingRequestBase request, final JSONObject jsonObject) { String result = StringUtils.EMPTY; try { request.setHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.toString()); request.setEntity(new StringEntity(jsonObject.toString())); result = execute(request); <START> } catch (UnsupportedEncodingException|RemoteException x) { <END> PageObjectLogging.log("Error while creating http post entity.", ExceptionUtils.getStackTrace(x), false); } return result; }</code><technical_language>Nitpick: missing spaces pipe. suggest naming exception variables ex</technical_language>

Target:
String execute(final HttpEntityEnclosingRequestBase request, final JSONObject jsonObject) { String result = StringUtils.EMPTY; try { request.setHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.toString()); request.setEntity(new StringEntity(jsonObject.toString())); result = execute(request); } catch (UnsupportedEncodingException | RemoteException ex) { PageObjectLogging.log("Error while creating http post entity.", ExceptionUtils.getStackTrace(ex), false); } return result; }
Source:
<code><START> public void run() { <END> while (isRunning()) { try { processResponses(); processRequests(); } catch (Exception e) { logger.error("Swallowing unexpected exception during processing of responses and requests", e); restServerMetrics.dequeuedRequestHandlerUnexpectedExceptionError.inc(); } } discardRequestsResponses(); logger.trace("AsyncHandlerWorker stopped"); shutdownLatch.countDown(); }</code><technical_language>do ensure caller dont start thread w/o setting blob storage service</technical_language>

Target:
public void run() { while (isRunning()) { try { processRequests(); processResponses(); } catch (Exception e) { logger.error("Swallowing unexpected exception during processing of responses and requests", e); restServerMetrics.dequeuedRequestHandlerUnexpectedExceptionError.inc(); } } discardRequestsResponses(); logger.trace("AsyncHandlerWorker stopped"); shutdownLatch.countDown(); }
Source:
<code>private void showRecyclerView() { recyclerView.setVisibility(View.VISIBLE); <START> emptyTextView.setVisibility(View.VISIBLE); <END> }</code><technical_language>emptyTextView View.GONE</technical_language>

Target:
private void showRecyclerView() { recyclerView.setVisibility(View.VISIBLE); emptyTextView.setVisibility(View.GONE); }
Source:
<code>private void startRemoteManager() { if ( !remoteConfiguration.isEnabled() ) { logger.info( "Infinispan remote configuration not enabled. Skip." ); return; } ConfigurationBuilder builder = new ConfigurationBuilder(); <START> builder.addServer().host( remoteConfiguration.getRemoteServer() ).port( remoteConfiguration.getHotrodPort() ); <END> remoteCacheManager = new RemoteCacheManager( builder.build() ); logger.info( "Infinispan remote cache manager started." ); }</code><technical_language>this need a list of remote servers in order handle clustering? if configured cluster is up</technical_language>

Target:
private void startRemoteManager() { if ( remoteConfiguration == null || !remoteConfiguration.isEnabled() ) { logger.info( "Infinispan remote configuration not enabled. Skip." ); return; } ConfigurationBuilder builder = new ConfigurationBuilder(); builder.addServer().host( remoteConfiguration.getRemoteServer() ).port( remoteConfiguration.getHotrodPort() ); remoteCacheManager = new RemoteCacheManager( builder.build() ); logger.info( "Infinispan remote cache manager started." ); }
Source:
<code>public static void writeFromInputToOutputUnmanaged(InputStream is, <START> OutputStream os) throws IOException { <END> int count; byte[] buffer = new byte[8192]; try { count = is.read(buffer); } catch (IOException e) { throw new StreamsUtil().new InputIOException(e); } while (count != -1) { try { os.write(buffer, 0, count); } catch (IOException e) { throw new StreamsUtil().new OutputIOException(e); } try { count = is.read(buffer); } catch (IOException e) { throw new StreamsUtil().new InputIOException(e); } } }</code><technical_language>split this "throws InputIOExcepton, OutputIOException"? helpful for signal</technical_language>

Target:
public static void writeFromInputToOutputUnmanaged(InputStream is, OutputStream os) throws InputIOException, OutputIOException { int count; byte[] buffer = new byte[8192]; try { count = is.read(buffer); } catch (IOException e) { throw new StreamsUtil().new InputIOException(e); } while (count != -1) { try { os.write(buffer, 0, count); } catch (IOException e) { throw new StreamsUtil().new OutputIOException(e); } try { count = is.read(buffer); } catch (IOException e) { throw new StreamsUtil().new InputIOException(e); } } }
Source:
<code>@Override public String toString() { <START> return "[cache=" + cctx.name() + <END> ", partitions=" + Arrays.toString(parts.get()) + ", topology=" + topVer; }</code><technical_language>reuse S#toString</technical_language>

Target:
@Override public String toString() { return S.toString(null, "cache", cctx.name(), false, "partitions", Arrays.toString(parts.get()), false, "topology", topVer.toString(), false); }
Source:
<code>private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(fContent.size()); for (Map.Entry<String, ITmfStateValue> entry : fContent.entrySet()) { out.writeInt(entry.getKey().length()); out.writeBytes(entry.getKey()); final ITmfStateValue value = entry.getValue(); final byte type = getByteFromType(value.getType()); out.writeByte(type); switch (type) { <START> case TYPE_NULL: <END> case TYPE_INTEGER: out.writeInt(value.unboxInt()); break; case TYPE_LONG: out.writeLong(value.unboxLong()); break; case TYPE_STRING: final @NonNull String string = value.unboxStr(); out.writeInt(string.length()); out.writeBytes(string); break; default: throw new IOException("Write object failed : Invalid data"); } } }</code><technical_language>technically, write for a null type reading</technical_language>

Target:
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(fContent.size()); for (Map.Entry<String, ITmfStateValue> entry : fContent.entrySet()) { out.writeInt(entry.getKey().length()); out.writeBytes(entry.getKey()); final ITmfStateValue value = entry.getValue(); final byte type = getByteFromType(value.getType()); out.writeByte(type); switch (type) { case TYPE_NULL: break; case TYPE_INTEGER: out.writeInt(value.unboxInt()); break; case TYPE_LONG: out.writeLong(value.unboxLong()); break; case TYPE_STRING: final @NonNull String string = value.unboxStr(); out.writeInt(string.length()); out.writeBytes(string); break; default: throw new IOException("Write object failed : Invalid data"); } } }
Source:
<code>public Slice fromObject(HDHTWalEntry entry) { ByteArrayOutputStream bao = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bao); try { dos.writeInt(entry.getType()); entry.writeObject(dos); dos.flush(); } catch (IOException ex) { <START> throw new RuntimeException("Unable to serialize WAL entry"); <END> } return new Slice(bao.toByteArray()); }</code><technical_language>wrap exception</technical_language>

Target:
public Slice fromObject(HDHTWalEntry entry) { ByteArrayOutputStream bao = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bao); try { dos.writeInt(entry.getType()); entry.writeObject(dos); dos.flush(); } catch (IOException ex) { throw new RuntimeException("Unable to serialize WAL entry", ex); } return new Slice(bao.toByteArray()); }
Source:
<code>public void testFooterSettingSerialization() throws Exception { FooterSetting setting = new FooterSetting(); setting.setEnable(false); <START> String jsonTwo = mapper.writeValueAsString(setting); <END> System.out.println(jsonTwo); Assert.assertEquals(jsonTwo, "{\"enable\":false}"); }</code><technical_language>jsonOne. This is assuming numeral part of variable name is expected number of fields in serialized version. If case, elaborate naming convention</technical_language>

Target:
public void testFooterSettingSerialization() throws Exception { FooterSetting setting = new FooterSetting(); setting.setEnable(false); String json = mapper.writeValueAsString(setting); System.out.println(json); Assert.assertEquals(json, "{\"enable\":false}"); }
Source:
<code>public void edit(final VolumeModel object) { driver.edit(object); addBricksButton.setCommand(object.getAddBricksCommand()); object.getPropertyChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { VolumeModel model = (VolumeModel) sender; if ("Bricks".equals(((PropertyChangedEventArgs) args).propertyName)) { bricksCountEditor.setText(ConstantsManager.getInstance() .getMessages() .noOfBricksSelected(model.getBricks().getSelectedItems() == null ? 0 : model.getBricks() .getSelectedItems() .size())); } if(((PropertyChangedEventArgs) args).propertyName.equalsIgnoreCase("optimiseForVirtStore")) { virtStoreOptimiseWarningLabel.setVisible(object.getOptimizeForVirtStore().getEntity() && object.getReplicaCount().getEntity() != 3); <START> } <END> } }); }</code><technical_language>improve this further. Refer AddBrickPopupView.java Line:283 this mind lastime :)</technical_language>

Target:
public void edit(final VolumeModel object) { driver.edit(object); addBricksButton.setCommand(object.getAddBricksCommand()); object.getPropertyChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { VolumeModel model = (VolumeModel) sender; if ("Bricks".equals(((PropertyChangedEventArgs) args).propertyName)) { bricksCountEditor.setText(ConstantsManager.getInstance() .getMessages() .noOfBricksSelected(model.getBricks().getSelectedItems() == null ? 0 : model.getBricks() .getSelectedItems() .size())); } } }); object.getOptimizeForVirtStore().getEntityChangedEvent().addListener(new IEventListener<EventArgs>() { @Override public void eventRaised(Event<EventArgs> ev, Object sender, EventArgs args) { virtStoreOptimiseWarningLabel.setVisible(object.getOptimizeForVirtStore().getEntity() && object.getReplicaCount().getEntity() != 3); } }); object.getReplicaCount().getEntityChangedEvent().addListener(new IEventListener<EventArgs>() { @Override public void eventRaised(Event<EventArgs> ev, Object sender, EventArgs args) { virtStoreOptimiseWarningLabel.setVisible(object.getOptimizeForVirtStore().getEntity() && object.getReplicaCount().getEntity() != 3); } }); }
Source:
<code><START> void signOut() { <END> Simplenote application = (Simplenote) getActivity().getApplication(); application.getSimperium().deauthorizeUser(); application.getNotesBucket().reset(); application.getTagsBucket().reset(); application.getNotesBucket().stop(); application.getTagsBucket().stop(); AnalyticsTracker.track( AnalyticsTracker.Stat.USER_SIGNED_OUT, AnalyticsTracker.CATEGORY_USER, "preferences_sign_out_button" ); AnalyticsTracker.refreshMetadata(null); getActivity().finish(); }</code><technical_language>private. passed asyncTask a subclass of this class</technical_language>

Target:
private void signOut() { Simplenote application = (Simplenote) getActivity().getApplication(); application.getSimperium().deauthorizeUser(); application.getNotesBucket().reset(); application.getTagsBucket().reset(); application.getNotesBucket().stop(); application.getTagsBucket().stop(); AnalyticsTracker.track( AnalyticsTracker.Stat.USER_SIGNED_OUT, AnalyticsTracker.CATEGORY_USER, "preferences_sign_out_button" ); AnalyticsTracker.refreshMetadata(null); getActivity().finish(); }
Source:
<code><START> TextAnalyticsPagedFlux<AnalyzeSentimentResult> analyzeSentimentBatch(Iterable<TextDocumentInput> textInputs, <END> TextAnalyticsRequestOptions options) { Objects.requireNonNull(textInputs, "'textInputs' cannot be null."); try { return new TextAnalyticsPagedFlux<>(() -> (continuationToken, pageSize) -> withContext(context -> service.sentimentWithRestResponseAsync( new MultiLanguageBatchInput().setDocuments(Transforms.toMultiLanguageInput(textInputs)), options == null ? null : options.getModelVersion(), options == null ? null : options.isStatisticsShown(), context) .doOnSubscribe(ignoredValue -> logger.info("A batch of text sentiment input - {}", textInputs.toString())) .doOnSuccess(response -> logger.info("A batch of text sentiment output - {}", response)) .doOnError(error -> logger.warning("Failed to analyze text sentiment - {}", error)) .map(this::toTextAnalyticsPagedResponse)) .flux()); } catch (RuntimeException ex) { return new TextAnalyticsPagedFlux<>(() -> (continuationToken, pageSize) -> fluxError(logger, ex)); } }</code><technical_language>combine analyzeSentimentBatch anlayzeSentimentBatchWithContext a single method</technical_language>

Target:
TextAnalyticsPagedFlux<AnalyzeSentimentResult> analyzeSentimentBatch(Iterable<TextDocumentInput> textInputs, TextAnalyticsRequestOptions options) { Objects.requireNonNull(textInputs, "'textInputs' cannot be null."); try { return new TextAnalyticsPagedFlux<>(() -> (continuationToken, pageSize) -> withContext(context -> getAnalyzedSentimentResponseInPage(textInputs, options, context)).flux()); } catch (RuntimeException ex) { return new TextAnalyticsPagedFlux<>(() -> (continuationToken, pageSize) -> fluxError(logger, ex)); } }