auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void sendFullCubeLoadPacketsWhereNecessary(Collection<? extends ICube> cubes, EntityPlayerMP player, CubePos offset, Set<ChunkPos> clientLoadedChunks) { if (!CubicChunksConfig.allowVanillaClients) { return; } Map<Chunk, List<ICube>> columns = cubes.stream().collect(Collectors.groupingBy(ICube::getColumn)); for (Map.Entry<Chunk, List<ICube>> chunkPosListEntry : columns.entrySet()) { Chunk chunk = chunkPosListEntry.getKey(); ChunkPos pos = chunk.getPos(); List<ICube> column = chunkPosListEntry.getValue(); if (clientLoadedChunks.contains(new ChunkPos(pos.x + offset.getX(), pos.z + offset.getZ()))) { player.connection.sendPacket(constructChunkData(pos, column, offset, world.provider.hasSkyLight())); } else { player.connection.sendPacket(constructFullChunkData(chunk, column, offset, world.provider.hasSkyLight())); clientLoadedChunks.add(pos); } } }

Target:
private Set<ChunkPos> sendFullCubeLoadPacketsWhereNecessary(Collection<? extends ICube> cubes, EntityPlayerMP player, CubePos offset, Set<ChunkPos> clientLoadedChunks) { if (!CubicChunksConfig.allowVanillaClients) { return Collections.emptySet(); } Map<Chunk, List<ICube>> columns = cubes.stream().collect(Collectors.groupingBy(ICube::getColumn)); Set<ChunkPos> sentAsFullChunks = Collections.emptySet(); for (Map.Entry<Chunk, List<ICube>> chunkPosListEntry : columns.entrySet()) { Chunk chunk = chunkPosListEntry.getKey(); ChunkPos offsetPos = new ChunkPos(chunk.x + offset.getX(), chunk.z + offset.getZ()); List<ICube> column = chunkPosListEntry.getValue(); if (clientLoadedChunks.contains(offsetPos)) { player.connection.sendPacket(constructChunkData(chunk.getPos(), column, offset, world.provider.hasSkyLight())); } else { player.connection.sendPacket(constructFullChunkData(chunk, column, offset, world.provider.hasSkyLight())); (sentAsFullChunks.isEmpty() ? sentAsFullChunks = new HashSet<>() : sentAsFullChunks).add(offsetPos); } } return sentAsFullChunks; }
Source:
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { super.onLoadingComplete(imageUri, view, loadedImage); updateNotificationThumbnail(); updateNotification(-1); }

Target:
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { super.onLoadingComplete(imageUri, view, loadedImage); resetNotification(); updateNotificationThumbnail(); updateNotification(-1); }
Source:
public boolean accept(FilterableIssue issue) { if (filterAnyRule) { return !(issue.componentKey().equals(componentKey) && excludedLinesByRule.get(ANY_RULE_KEY).contains(issue.line())); } return !(issue.componentKey().equals(componentKey) && excludedLinesByRule.get(issue.ruleKey().rule()).contains(issue.line())); }

Target:
public boolean accept(FilterableIssue issue) { return !(issue.componentKey().equals(componentKey) && excludedLinesByRule.get(issue.ruleKey().rule()).contains(issue.line())); }
Source:
public List<MappedResource<E>> getMatches(String path) { boolean isRootPath = "/".equals(path); List<MappedResource<E>> ret = new ArrayList<>(); for (MappedResource<E> mr : _mappings) { switch (mr.getPathSpec().group) { case ROOT: if (isRootPath) ret.add(mr); break; case DEFAULT: if (isRootPath || mr.getPathSpec().matches(path)) ret.add(mr); break; default: if (mr.getPathSpec().matches(path)) ret.add(mr); break; } } ret.sort(LogicalDeclarationComparator.INSTANCE); return ret; }

Target:
public List<MappedResource<E>> getMatches(String path) { boolean isRootPath = "/".equals(path); List<MappedResource<E>> ret = new ArrayList<>(); for (MappedResource<E> mr : _mappings) { switch (mr.getPathSpec().group) { case ROOT: if (isRootPath) ret.add(mr); break; case DEFAULT: if (isRootPath || mr.getPathSpec().matches(path)) ret.add(mr); break; default: if (mr.getPathSpec().matches(path)) ret.add(mr); break; } } return ret; }
Source:
public void query(ActivityScope scope, IProgressMonitor monitor) throws CoreException { if (scope instanceof TaskActivityScope) { ITask scopeTask = ((TaskActivityScope) scope).getTask(); GetAssociatedTasks collector = new GetAssociatedTasks(session); IndexReference reference = new IndexReference(); try { TaskListIndex taskListIndex = reference.index(); taskListIndex.find(scopeTask.getTaskId(), collector, 10); } finally { reference.dispose(); } } }

Target:
public void query(ActivityScope scope, IProgressMonitor monitor) throws CoreException { if (scope instanceof TaskActivityScope) { ITask scopeTask = ((TaskActivityScope) scope).getTask(); GetAssociatedTasks collector = new GetAssociatedTasks(session); IndexReference reference = new IndexReference(); try { TaskListIndex taskListIndex = reference.index(); taskListIndex.find(scopeTask.getTaskKey(), collector, 50); } finally { reference.dispose(); } } }
Source:
ErrorType getErrorType(@Nullable Throwable caught) { if (caught != null && is404(caught)) { return ErrorType.PAGE_MISSING; } else if (caught != null && isTimeout(caught)) { return ErrorType.TIMEOUT; } else if (caught != null && isOffline(caught)) { return ErrorType.OFFLINE; } return ErrorType.GENERIC; }

Target:
ErrorType getErrorType(@Nullable Throwable caught) { if (caught != null && is404(caught)) { return ErrorType.PAGE_MISSING; } else if (isTimeout(caught)) { return ErrorType.TIMEOUT; } else if (isOffline(caught)) { return ErrorType.OFFLINE; } return ErrorType.GENERIC; }
Source:
private void newDR() { if (getWindow() != null) { return; } final StorageDomain storageDomain = getEntity(); if (storageDomain == null) { return; } final StorageDRModel model = new StorageDRModel(); model.setHelpTag(HelpTag.new_storage_dr); model.setHashName("new_storage_dr"); model.setTitle(ConstantsManager.getInstance().getConstants().newDRSetup()); setWindow(model); model.startProgress(); model.getStorageDomain().setEntity(storageDomain); AsyncDataProvider.getInstance().getGlusterGeoRepSessionsForStorageDomain(new AsyncQuery<>(new AsyncCallback<List<GlusterGeoRepSession>>() { @Override public void onSuccess(List<GlusterGeoRepSession> geoRepSessions) { model.getGeoRepSession().setItems(geoRepSessions); model.stopProgress(); } }), storageDomain.getId()); UICommand okCommand = UICommand.createDefaultOkUiCommand("onNewDR", this); model.getCommands().add(okCommand); UICommand cancelCommand = UICommand.createCancelUiCommand("Cancel", this); model.getCommands().add(cancelCommand); }

Target:
private void newDR() { if (getWindow() != null) { return; } final StorageDomain storageDomain = getEntity(); if (storageDomain == null) { return; } final StorageDRModel model = new StorageDRModel(); model.setHelpTag(HelpTag.new_storage_dr); model.setHashName("new_storage_dr"); model.setTitle(ConstantsManager.getInstance().getConstants().newDRSetup()); setWindow(model); model.getStorageDomain().setEntity(storageDomain); model.startProgress(); AsyncDataProvider.getInstance().getGlusterGeoRepSessionsForStorageDomain(new AsyncQuery<>(new AsyncCallback<List<GlusterGeoRepSession>>() { @Override public void onSuccess(List<GlusterGeoRepSession> geoRepSessions) { model.getGeoRepSession().setItems(geoRepSessions); model.stopProgress(); } }), storageDomain.getId()); UICommand okCommand = UICommand.createDefaultOkUiCommand("onNewDR", this); model.getCommands().add(okCommand); UICommand cancelCommand = UICommand.createCancelUiCommand("Cancel", this); model.getCommands().add(cancelCommand); }
Source:
public void handleGet(ActionParameters params) throws ActionException { try { final JSONObject root = new JSONObject(); getRoles(root); getPermissionTypes(root,params.getLocale().getLanguage()); ResponseHelper.writeResponse(params, root); } catch (Exception e) { throw new ActionException("Something went wrong getting roles and permission types from the platform", e); } }

Target:
public void handleGet(ActionParameters params) throws ActionException { try { final JSONObject root = new JSONObject(); JSONHelper.putValue(root, JSKEY_ROLES, getRoles()); JSONHelper.putValue(root, JSKEY_PERMISSION_TYPES, getPermissionTypes(params.getLocale().getLanguage())); ResponseHelper.writeResponse(params, root); } catch (Exception e) { throw new ActionException("Something went wrong getting roles and permission types from the platform", e); } }
Source:
public void accept( PageCursor cursor ) { byte[] bytesToWrite = failureBytes; cursor.putByte( NativeSchemaNumberIndexPopulator.BYTE_FAILED ); int availableSpace = cursor.getCurrentPageSize() - cursor.getOffset(); if ( bytesToWrite.length + HEADER_LENGTH_FIELD_LENGTH > availableSpace ) { bytesToWrite = Arrays.copyOf( bytesToWrite, availableSpace - 2 ); } cursor.putShort( (short) bytesToWrite.length ); cursor.putBytes( bytesToWrite ); }

Target:
public void accept( PageCursor cursor ) { byte[] bytesToWrite = failureBytes; cursor.putByte( NativeSchemaNumberIndexPopulator.BYTE_FAILED ); int availableSpace = cursor.getCurrentPageSize() - cursor.getOffset(); if ( bytesToWrite.length + HEADER_LENGTH_FIELD_LENGTH > availableSpace ) { bytesToWrite = Arrays.copyOf( bytesToWrite, availableSpace - HEADER_LENGTH_FIELD_LENGTH ); } cursor.putShort( (short) bytesToWrite.length ); cursor.putBytes( bytesToWrite ); }
Source:
private void pushToRemoteSteam() { try { LOG.debug("Push latest changed from remote stream"); PushCommand pushCommand = git.push(); pushCommand.setCredentialsProvider( new UsernamePasswordCredentialsProvider( zeppelinConfiguration.getZeppelinNotebookGitUsername(), zeppelinConfiguration.getZeppelinNotebookGitAccessToken() ) ); pushCommand.call(); } catch (GitAPIException e) { LOG.error("Error when pushing latest changes from remote repository"); e.printStackTrace(); } }

Target:
private void pushToRemoteSteam() { try { LOG.debug("Push latest changed from remote stream"); PushCommand pushCommand = git.push(); pushCommand.setCredentialsProvider( new UsernamePasswordCredentialsProvider( zeppelinConfiguration.getZeppelinNotebookGitUsername(), zeppelinConfiguration.getZeppelinNotebookGitAccessToken() ) ); pushCommand.call(); } catch (GitAPIException e) { LOG.error("Error when pushing latest changes from remote repository", e); } }
Source:
public void shouldFailForConversions(String value) { String payload = format("{" + " \"reference\" : %s," + " \"return_url\" : \"<LINK_0>\"" + "}", value); given().port(app.getLocalPort()) .body(payload) .accept(JSON) .contentType(JSON) .header(AUTHORIZATION, "Bearer " + API_KEY) .post("/v1/directdebit/mandates") .then().log().body() .statusCode(HttpStatus.SC_UNPROCESSABLE_ENTITY) .body("size()", is(3)) .body("field", is("reference")) .body("code", is("P0102")) .body("description", is("Invalid attribute value: reference. Must be of type String")); }

Target:
public void shouldFailForConversions(String value) { String payload = format("{" + " \"reference\" : %s," + " \"return_url\" : \"<LINK_0>\"" + "}", value); given().port(app.getLocalPort()) .body(payload) .accept(JSON) .contentType(JSON) .header(AUTHORIZATION, "Bearer " + API_KEY) .post("/v1/directdebit/mandates") .then() .statusCode(HttpStatus.SC_UNPROCESSABLE_ENTITY) .body("size()", is(3)) .body("field", is("reference")) .body("code", is("P0102")) .body("description", is("Invalid attribute value: reference. Must be of type String")); }
Source:
static String toJavaName(String opensslName) { if (opensslName == null) { return null; } Matcher matcher = PATTERN.matcher(opensslName); if (matcher.matches()) { String group2 = matcher.group(2); if (group2 != null) { return group2.toUpperCase(Locale.ROOT) + "with" + matcher.group(3).toUpperCase(Locale.ROOT); } if (matcher.group(4) != null) { return matcher.group(7).toUpperCase(Locale.ROOT) + "with" + matcher.group(5).toUpperCase(Locale.ROOT); } if (matcher.group(8) != null) { return matcher.group(11).toUpperCase(Locale.ROOT) + "with" + matcher.group(9).toUpperCase(Locale.ROOT); } if (matcher.group(8) != null) { return matcher.group(10).toUpperCase(Locale.ROOT) + "with" + matcher.group(5).toUpperCase(Locale.ROOT); } if (matcher.group(12) != null) { return matcher.group(14).toUpperCase(Locale.ROOT) + "with" + matcher.group(13).toUpperCase(Locale.ROOT); } } return null; }

Target:
static String toJavaName(String opensslName) { if (opensslName == null) { return null; } Matcher matcher = PATTERN.matcher(opensslName); if (matcher.matches()) { String group1 = matcher.group(1); if (group1 != null) { return group1.toUpperCase(Locale.ROOT) + "with" + matcher.group(2).toUpperCase(Locale.ROOT); } if (matcher.group(3) != null) { return matcher.group(4).toUpperCase(Locale.ROOT) + "with" + matcher.group(3).toUpperCase(Locale.ROOT); } if (matcher.group(5) != null) { return matcher.group(6).toUpperCase(Locale.ROOT) + "with" + matcher.group(5).toUpperCase(Locale.ROOT); } } return null; }
Source:
private ECPControlDescription getControlCandidate(Class<?> controlClass, EObject domainModel, VDomainModelReference domainModelReference) { int highestPriority = -1; ECPControlDescription bestCandidate = null; IObservableValue observableValue; try { observableValue = Activator.getDefault().getEMFFormsDatabinding() .getObservableValue(domainModelReference, domainModel); } catch (final DatabindingFailedException ex) { Activator.getDefault().getReportService().report(new DatabindingFailedReport(ex)); return bestCandidate; } catch (final IllegalArgumentException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); return bestCandidate; } final EObject eObject = (EObject) ((IObserving) observableValue).getObserved(); final EStructuralFeature structuralFeature = (EStructuralFeature) observableValue.getValueType(); observableValue.dispose(); for (final ECPControlDescription description : controlDescriptors) { if (!controlClass.isAssignableFrom(description.getControlClass())) { continue; } int currentPriority = -1; for (final ECPApplicableTester tester : description.getTester()) { final int testerPriority = tester.isApplicable(eObject, structuralFeature); if (testerPriority > currentPriority) { currentPriority = testerPriority; } } if (currentPriority > highestPriority) { highestPriority = currentPriority; bestCandidate = description; } } return bestCandidate; }

Target:
private ECPControlDescription getControlCandidate(Class<?> controlClass, EObject domainModel, VDomainModelReference domainModelReference) { int highestPriority = -1; ECPControlDescription bestCandidate = null; if (domainModelReference == null) { return bestCandidate; } IObservableValue observableValue; try { observableValue = Activator.getDefault().getEMFFormsDatabinding() .getObservableValue(domainModelReference, domainModel); } catch (final DatabindingFailedException ex) { Activator.getDefault().getReportService().report(new DatabindingFailedReport(ex)); return bestCandidate; } catch (final IllegalArgumentException ex) { Activator.getDefault().getReportService().report(new AbstractReport(ex)); return bestCandidate; } final EObject eObject = (EObject) ((IObserving) observableValue).getObserved(); final EStructuralFeature structuralFeature = (EStructuralFeature) observableValue.getValueType(); observableValue.dispose(); for (final ECPControlDescription description : controlDescriptors) { if (!controlClass.isAssignableFrom(description.getControlClass())) { continue; } int currentPriority = -1; for (final ECPApplicableTester tester : description.getTester()) { final int testerPriority = tester.isApplicable(eObject, structuralFeature); if (testerPriority > currentPriority) { currentPriority = testerPriority; } } if (currentPriority > highestPriority) { highestPriority = currentPriority; bestCandidate = description; } } return bestCandidate; }
Source:
public ShaderProvider getPassShaderProvider (int n) { if (n >= passShaderProviders.length) throw new GdxRuntimeException("ShaderProvider " + n + " doesn't exist in " + getClass().getName()); return passShaderProviders[n]; }

Target:
public ShaderProvider getPassShaderProvider (int n) { return passShaderProviders[n]; }
Source:
public static boolean equalAsCollectionSansNullability( RelDataTypeFactory factory, RelDataType type1, RelDataType type2) { if (type1.equals(type2)) { return true; } if (isCollection(type1) && isCollection(type2)) { return equalSansNullability(factory, type1.getComponentType(), type2.getComponentType()); } else { return false; } }

Target:
public static boolean equalAsCollectionSansNullability( RelDataTypeFactory factory, RelDataType type1, RelDataType type2) { Preconditions.checkArgument(isCollection(type1)); Preconditions.checkArgument(isCollection(type2)); return (type1 == type2) || (type1.getSqlTypeName() == type2.getSqlTypeName() && equalSansNullability(factory, type1.getComponentType(), type2.getComponentType())); }
Source:
private static boolean checkFirstMiddleLastNameContents(EnExplicitFamily lastname, EnExplicitGiven firstname, EnExplicitGiven middlename, Personname personNameDBModel) { boolean namefound = false; if (lastname != null && lastname.getContent() != null) { personNameDBModel.setLastName(lastname.getContent()); LOG.info("FamilyName : ", personNameDBModel.getLastName()); namefound = true; } if (firstname != null && firstname.getContent() != null) { personNameDBModel.setFirstName(firstname.getContent()); LOG.info("GivenName(first) : ", personNameDBModel.getFirstName()); namefound = true; } if (middlename != null && middlename.getContent() != null) { personNameDBModel.setMiddleName(middlename.getContent()); LOG.info("GivenName(middle) : ", personNameDBModel.getMiddleName()); namefound = true; } return namefound; }

Target:
private static boolean checkFirstMiddleLastNameContents(EnExplicitFamily lastname, EnExplicitGiven firstname, EnExplicitGiven middlename, Personname personNameDBModel) { boolean namefound = false; if (lastname != null && lastname.getContent() != null) { personNameDBModel.setLastName(lastname.getContent()); LOG.info("FamilyName : ", personNameDBModel.getLastName()); namefound = true; } if (firstname != null && firstname.getContent() != null) { personNameDBModel.setFirstName(firstname.getContent()); LOG.info("GivenName(first) : ", personNameDBModel.getFirstName()); namefound = true; } if (middlename != null && middlename.getContent() != null) { personNameDBModel.setMiddleName(middlename.getContent()); LOG.info("GivenName(middle) : ", personNameDBModel.getMiddleName()); namefound = true; } return namefound; }
Source:
public void whenTemplateWithGivenInputTemplate_String_shouldRenderBlobAsIt() throws IOException { TemplateSourceDocument templateSrc = createTemplateSourceDoc("We are introducing ${myStringInCtxt} !", WEBVIEW_RENDITION); TemplateBasedDocument templateBase = createTemplateBasedDoc(templateSrc.getAdaptedDoc()); List<TemplateInput> params = Arrays.asList( factory("myStringInCtxt", StringValue, "Beautiful String") ); templateBase.saveParams(TEMPLATE_NAME, params, true); Blob result = templateBase.renderWithTemplate(TEMPLATE_NAME); assertNotNull(result); assertEquals("We are introducing Beautiful String !", result.getString()); }

Target:
public void whenTemplateWithGivenInputTemplate_String_shouldRenderBlobAsIt() throws IOException { TemplateSourceDocument templateSrc = createTemplateSourceDoc("We are introducing ${myStringInCtxt} !", WEBVIEW_RENDITION); TemplateBasedDocument templateBase = createTemplateBasedDoc(templateSrc.getAdaptedDoc()); List<TemplateInput> params = List.of( factory("myStringInCtxt", StringValue, "Beautiful String") ); templateBase.saveParams(TEMPLATE_NAME, params, true); Blob result = templateBase.renderWithTemplate(TEMPLATE_NAME); assertNotNull(result); assertEquals("We are introducing Beautiful String !", result.getString()); }
Source:
boolean getAsBoolean() throws Exception; } public static void waitUntil( String message, int timeoutSeconds, BooleanSupplierWithThrow predicate) throws Exception { int sleep = 125; final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; while (System.currentTimeMillis() < timeout) { if (predicate.getAsBoolean()) { return; } RunUtil.getDefault().sleep(sleep); } fail(message); }

Target:
boolean getAsBoolean() throws Exception; } public static void waitUntil( String message, long timeoutSeconds, BooleanSupplierWithThrow predicate) throws Exception { int sleep = 125; final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; while (System.currentTimeMillis() < timeout) { if (predicate.getAsBoolean()) { return; } RunUtil.getDefault().sleep(sleep); } fail(message); }
Source:
protected void stopBackgroundDiscovery() { logger.debug("Stop WeMo device background discovery"); }

Target:
protected void stopBackgroundDiscovery() { logger.debug("Stop WeMo device background discovery"); if (scanningJob != null && !scanningJob.isCancelled()) { scanningJob.cancel(true); scanningJob = null; } }
Source:
public void testClientServer() throws Exception { InMemoryZKServer zkServer = InMemoryZKServer.builder().setDataDir(tmpFolder.newFolder()).build(); zkServer.startAndWait(); try { Configuration conf = HBaseConfiguration.create(); conf.set(TxConstants.Service.CFG_DATA_TX_ZOOKEEPER_QUORUM, zkServer.getConnectionStr()); conf.set(TxConstants.Manager.CFG_TX_SNAPSHOT_DIR, tmpFolder.newFolder().getAbsolutePath()); final TransactionServiceMain main = new TransactionServiceMain(conf); Thread t = new Thread() { @Override public void run() { try { main.start(); } catch (Exception e) { throw Throwables.propagate(e); } } }; try { t.start(); TimeUnit.SECONDS.sleep(5); TransactionServiceClient.doMain(true, conf); } finally { main.stop(); t.join(); } } finally { zkServer.stopAndWait(); } }

Target:
public void testClientServer() throws Exception { InMemoryZKServer zkServer = InMemoryZKServer.builder().setDataDir(tmpFolder.newFolder()).build(); zkServer.startAndWait(); try { Configuration conf = HBaseConfiguration.create(); conf.set(TxConstants.Service.CFG_DATA_TX_ZOOKEEPER_QUORUM, zkServer.getConnectionStr()); conf.set(TxConstants.Manager.CFG_TX_SNAPSHOT_DIR, tmpFolder.newFolder().getAbsolutePath()); final TransactionServiceMain main = new TransactionServiceMain(conf); final CountDownLatch latch = new CountDownLatch(1); Thread t = new Thread() { @Override public void run() { try { main.start(); latch.countDown(); } catch (Exception e) { throw Throwables.propagate(e); } } }; try { t.start(); latch.await(); TransactionServiceClient.doMain(true, conf); } finally { main.stop(); t.join(); } } finally { zkServer.stopAndWait(); } }
Source:
private Metacard readMetacard(File file) throws IngestException { Metacard result; FileInputStream fis = null; ObjectInputStream ois = null; try { if (SERIALIZED_OBJECT_ID.matches(transformerId)) { ois = new ObjectInputStream(new FileInputStream(file)); result = (Metacard) ois.readObject(); ois.close(); } else { fis = new FileInputStream(file); result = generateMetacard(fis); if (StringUtils.isBlank(result.getTitle())) { LOGGER.debug("Metacard title was blank. Setting title to filename."); result.setAttribute(new AttributeImpl(Metacard.TITLE, file.getName())); } fis.close(); } } catch (IOException | IllegalArgumentException | ClassNotFoundException e) { throw new IngestException(e); } finally { if (fis != null) { try { fis.close(); } catch (IOException e1) { console.println(e1); } } if (ois != null) { try { ois.close(); } catch (IOException e2) { console.println(e2); } } } return result; }

Target:
private Metacard readMetacard(File file) throws IngestException { Metacard result = null; FileInputStream fis = null; ObjectInputStream ois = null; try { if (SERIALIZED_OBJECT_ID.matches(transformerId)) { ois = new ObjectInputStream(new FileInputStream(file)); result = (Metacard) ois.readObject(); ois.close(); } else { fis = new FileInputStream(file); result = generateMetacard(fis); if (StringUtils.isBlank(result.getTitle())) { LOGGER.debug("Metacard title was blank. Setting title to filename."); result.setAttribute(new AttributeImpl(Metacard.TITLE, file.getName())); } fis.close(); } } catch (IOException | IllegalArgumentException | ClassNotFoundException e) { throw new IngestException(e); } finally { if (fis != null) { try { fis.close(); } catch (IOException e1) { console.println(e1); } } if (ois != null) { try { ois.close(); } catch (IOException e2) { console.println(e2); } } } return result; }
Source:
public BitBuffer(ByteBuffer buf, ByteOrder order) { setByteBuffer(buf); setByteOrder(order); pos = 0; }

Target:
public BitBuffer(ByteBuffer buf, ByteOrder order) { setByteBuffer(buf); setByteOrder(order); resetPosition(); }
Source:
private String format(Object o) { if (o instanceof Float) { return format(((Float) o).doubleValue()); } else if (o instanceof Double) { return format(((Double) o).doubleValue()); } else if (o instanceof Byte) { return format(((Byte) o).longValue()); } else if (o instanceof Short) { return format(((Short) o).longValue()); } else if (o instanceof Integer) { return format(((Integer) o).longValue()); } else if (o instanceof Long) { return format(((Long) o).longValue()); } return null; }

Target:
private String format(Object o) { if (o instanceof Float) { return format(((Float) o).doubleValue()); } else if (o instanceof Double) { return format(((Double) o).doubleValue()); } else if (o instanceof Byte) { return format(((Byte) o).longValue()); } else if (o instanceof Short) { return format(((Short) o).longValue()); } else if (o instanceof Integer) { return format(((Integer) o).longValue()); } else if (o instanceof Long) { return format(((Long) o).longValue()); } else if (o instanceof BigInteger) { return format(((BigInteger) o).doubleValue()); } else if (o instanceof BigDecimal) { return format(((BigDecimal) o).doubleValue()); } else if (o instanceof Boolean) { return format(((Boolean) o) ? 1 : 0); } return null; }
Source:
public SystemInfo getSystemInfo() throws IOException { PodList chePods = openShiftClient.pods().inNamespace(this.openShiftCheProjectName) .withLabel(OPENSHIFT_DEPLOYMENT_CONFIG_LABEL, OPENSHIFT_DEPLOYMENT_CONFIG_VALUE).list(); if (chePods.getItems().size() > 0) { Pod pod = chePods.getItems().get(0); Node node = openShiftClient.nodes().withName(pod.getSpec().getNodeName()).get(); NodeSystemInfo nodeInfo = node.getStatus().getNodeInfo(); SystemInfo systemInfo = new SystemInfo(); systemInfo.setKernelVersion(nodeInfo.getKernelVersion()); systemInfo.setOperatingSystem(nodeInfo.getOperatingSystem()); systemInfo.setID(node.getMetadata().getUid()); int containers = 0; List<Pod> pods = openShiftClient.pods().inNamespace(this.openShiftCheProjectName).list().getItems(); for (Pod p:pods) { containers += p.getSpec().getContainers().size(); } int images = node.getStatus().getImages().size(); systemInfo.setContainers(containers); systemInfo.setImages(images); systemInfo.setName(node.getMetadata().getName()); String[] labels = new String[node.getMetadata().getLabels().size()]; final int[] i = {0}; node.getMetadata().getLabels().forEach((k,v)-> labels[i[0]++] = k + "=" + v ); systemInfo.setLabels(labels); return systemInfo; } else { throw new OpenShiftException(String.format("Deployment config with %s not found", OPENSHIFT_DEPLOYMENT_CONFIG_VALUE)); } }

Target:
public SystemInfo getSystemInfo() throws IOException { PodList chePods = openShiftClient.pods().inNamespace(this.openShiftCheProjectName).list(); if (chePods.getItems().size() > 0) { Pod pod = chePods.getItems().get(0); Node node = openShiftClient.nodes().withName(pod.getSpec().getNodeName()).get(); NodeSystemInfo nodeInfo = node.getStatus().getNodeInfo(); SystemInfo systemInfo = new SystemInfo(); systemInfo.setKernelVersion(nodeInfo.getKernelVersion()); systemInfo.setOperatingSystem(nodeInfo.getOperatingSystem()); systemInfo.setID(node.getMetadata().getUid()); int containers = openShiftClient.pods().inNamespace(this.openShiftCheProjectName).list().getItems().size(); int images = node.getStatus().getImages().size(); systemInfo.setContainers(containers); systemInfo.setImages(images); systemInfo.setName(node.getMetadata().getName()); String[] labels = node.getMetadata() .getLabels() .entrySet().stream().map(e -> String.format("%s=%s", e.getKey(), e.getValue())) .toArray(String[]::new); systemInfo.setLabels(labels); return systemInfo; } else { throw new OpenShiftException("No pod found"); } }
Source:
public void updatePatientMotechId(Config config, String patientUuid, String newMotechId) { List<Identifier> patientIdentifiers = getPatientIdentifierList(config, patientUuid); for (Identifier patientIdentifier : patientIdentifiers) { if ("MOTECH Id".equals(patientIdentifier.getIdentifierType().getDisplay())) { patientIdentifier.setIdentifier(newMotechId); String requestJson = buildGson().toJson(patientIdentifier); postForJson(config, requestJson, "/patient/{patientUuid}/identifier/{identifierUuid}", patientUuid, patientIdentifier.getUuid()); break; } } }

Target:
public void updatePatientMotechId(Config config, String patientUuid, String newMotechId) { List<Identifier> patientIdentifiers = getPatientIdentifierList(config, patientUuid); for (Identifier patientIdentifier : patientIdentifiers) { if (config.getMotechPatientIdentifierTypeName().equals(patientIdentifier.getIdentifierType().getName())) { patientIdentifier.setIdentifier(newMotechId); updatePatientIdentifier(config, patientUuid, patientIdentifier); break; } } }
Source:
@Override public void onDestroyView() { unbinder.unbind(); unbinder = null; super.onDestroyView(); }

Target:
@Override public void onDestroyView() { recyclerView.setAdapter(null); unbinder.unbind(); unbinder = null; readingList = null; super.onDestroyView(); }
Source:
public void handleError(HttpCommand command, HttpResponse response) { byte[] data = closeClientButKeepContentStream(response); String message = data != null ? new String(data) : null; Exception exception = message != null ? new HttpResponseException(command, response, message) : new HttpResponseException(command, response); message = message != null ? message : String.format("%s -> %s", command.getCurrentRequest().getRequestLine(), response.getStatusLine()); switch (response.getStatusCode()) { case 400: exception = new IllegalArgumentException(message, exception); break; case 401: case 403: if (message.contains("\"Code\":\"DependencyViolation\"")) { exception = new DependencyViolationException(message, exception); } else { exception = new AuthorizationException(message, exception); } break; case 404: if (!command.getCurrentRequest().getMethod().equals("DELETE")) { exception = new ResourceNotFoundException(message, exception); } break; case 409: exception = new IllegalStateException(message, exception); break; } command.setException(exception); }

Target:
public void handleError(HttpCommand command, HttpResponse response) { byte[] data = closeClientButKeepContentStream(response); String message = data != null ? new String(data) : null; Exception exception = message != null ? new HttpResponseException(command, response, message) : new HttpResponseException(command, response); message = message != null ? message : String.format("%s -> %s", command.getCurrentRequest().getRequestLine(), response.getStatusLine()); switch (response.getStatusCode()) { case 400: exception = new IllegalArgumentException(message, exception); break; case 401: case 403: exception = new AuthorizationException(message, exception); break; case 404: if (!command.getCurrentRequest().getMethod().equals("DELETE")) { exception = new ResourceNotFoundException(message, exception); } break; case 409: exception = new IllegalStateException(message, exception); break; } command.setException(exception); }
Source:
private void eliminateDuplicates(List<MessageInfo> messageEntries) { Set<StoreKey> setToFindDuplicate = new HashSet<>(); ListIterator<MessageInfo> messageEntriesIterator = messageEntries.listIterator(0); while (messageEntriesIterator.hasNext()) { MessageInfo messageInfo = messageEntriesIterator.next(); if (!messageInfo.isDeleted()) { if (setToFindDuplicate.contains(messageInfo.getStoreKey())) { messageEntriesIterator.remove(); } else { setToFindDuplicate.add(messageInfo.getStoreKey()); } } } setToFindDuplicate.clear(); messageEntriesIterator = messageEntries.listIterator(messageEntries.size()); while (messageEntriesIterator.hasPrevious()) { MessageInfo messageInfo = messageEntriesIterator.previous(); if (setToFindDuplicate.contains(messageInfo.getStoreKey())) { messageEntriesIterator.remove(); } else { setToFindDuplicate.add(messageInfo.getStoreKey()); } } }

Target:
private void eliminateDuplicates(List<MessageInfo> messageEntries) { Set<StoreKey> setToFindDuplicate = new HashSet<>(); messageEntries.removeIf( messageInfo -> !messageInfo.isDeleted() && !setToFindDuplicate.add(messageInfo.getStoreKey())); setToFindDuplicate.clear(); ListIterator<MessageInfo> messageEntriesIterator = messageEntries.listIterator(messageEntries.size()); while (messageEntriesIterator.hasPrevious()) { MessageInfo messageInfo = messageEntriesIterator.previous(); if (!setToFindDuplicate.add(messageInfo.getStoreKey())) { messageEntriesIterator.remove(); } } }
Source:
@Override public boolean equals(Object other) { return other != null && (other instanceof Module) && Objects.equals(name, ((Module)other).name); }

Target:
@Override public boolean equals(Object other) { return (other instanceof Module) && Objects.equals(name, ((Module)other).name); }
Source:
public void testListStatusNull() { @Nullable Path path = null; assertThrows("hadoopPath must not be null", IllegalArgumentException.class, () -> ghfs.listStatus(path)); }

Target:
public void testListStatusNull() { assertThrows( "hadoopPath must not be null", IllegalArgumentException.class, () -> ghfs.listStatus((Path) null)); }
Source:
public RoutingTableSnapshot getRoutingTableSnapshot() { String key = getRoutingTableKey(DEFAULT_PROPERTY, DEFAULT_TYPE); return new RoutingTableSnapshot(_routingTableRefMap.get(key).get()); }

Target:
public RoutingTableSnapshot getRoutingTableSnapshot() { return new RoutingTableSnapshot(getRoutingTableRef(DEFAULT_PROPERTY_TYPE, DEFAULT_STATE_TYPE)); }
Source:
private void damageEntities() { float power = this.power; this.power *= 2; LivingEntity[] entities = getNearbyEntities(); for (LivingEntity entity : entities) { if (distanceToSquared(entity) > power * power) { continue; } double exposure = world.rayTrace(location, (GlowEntity) entity); double impact = (1 - (distanceTo(entity) / power / 2)) * exposure; double damage = (impact * impact + impact) * 8 * power + 1; int epf = getProtectionFactor(entity); double reduction = calculateEnchantedReduction(epf); damage = damage * reduction; exposure -= exposure * epf * 0.15; DamageCause damageCause; if (source == null || source.getType() == EntityType.PRIMED_TNT) { damageCause = DamageCause.BLOCK_EXPLOSION; } else { damageCause = DamageCause.ENTITY_EXPLOSION; } entity.damage(damage, source, damageCause); if (entity instanceof GlowPlayer) { if (((GlowPlayer) entity).isFlying()) { continue; } } Vector rayLength = RayUtil.getVelocityRay(distanceToHead(entity)); rayLength.multiply(exposure); Vector currentVelocity = entity.getVelocity(); currentVelocity.add(rayLength); entity.setVelocity(currentVelocity); } }

Target:
private void damageEntities() { float power = this.power; this.power *= 2; LivingEntity[] entities = getNearbyEntities(); for (LivingEntity entity : entities) { if (distanceToSquared(entity) > power * power) { continue; } double exposure = world.rayTrace(location, (GlowEntity) entity); double impact = (1 - (distanceTo(entity) / power / 2)) * exposure; double damage = (impact * impact + impact) * 8 * power + 1; int epf = getProtectionFactor(entity); double reduction = calculateEnchantedReduction(epf); damage = damage * reduction; exposure -= exposure * epf * 0.15; DamageCause damageCause; if (source == null || source.getType() == EntityType.PRIMED_TNT) { damageCause = DamageCause.BLOCK_EXPLOSION; } else { damageCause = DamageCause.ENTITY_EXPLOSION; } entity.damage(damage, source, damageCause); if (entity instanceof GlowPlayer && ((GlowPlayer) entity).isFlying()) { continue; } Vector rayLength = RayUtil.getVelocityRay(distanceToHead(entity)); rayLength.multiply(exposure); Vector currentVelocity = entity.getVelocity(); currentVelocity.add(rayLength); entity.setVelocity(currentVelocity); } }
Source:
public void serialize(ExtKey extKey, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException { jsonGenerator.writeFieldName(extKey.getUuid().getName() + ";" + extKey.getType().getName() + ";" + extKey.getUuid().getUuid()); }

Target:
public void serialize(ExtKey extKey, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException { jsonGenerator.writeFieldName( String.format("%s;%s;%s", extKey.getUuid().getName(), extKey.getType().getName(), extKey.getUuid().getUuid())); }
Source:
public void testLegacyLogFunctionDisabled() { try (DistributedQueryRunner queryRunner = createQueryRunner(false)) { MaterializedResult result = queryRunner.execute(QUERY); fail("Expected exception"); } catch (Exception e) { assertContains(e.getMessage(), "Function log not registered"); } }

Target:
public void testLegacyLogFunctionDisabled() { try (QueryRunner runner = createQueryRunner(false)) { runner.execute(QUERY); } }
Source:
public void handle(Exception exception) { if (exception instanceof IllegalArgumentException || exception instanceof IllegalStateException) { throw new InterceptionException(exception); } if (exception instanceof ReflectionProviderException) { throwIfNotValidationException(exception, exception.getCause()); } throwIfNotValidationException(exception, exception); }

Target:
public void handle(Exception exception) { if (exception instanceof ReflectionProviderException) { throwIfNotValidationException(exception, exception.getCause()); } throwIfNotValidationException(exception, exception); }
Source:
public SinkRuntimeProvider getSinkRuntimeProvider(Context context) { final SerializationSchema<RowData> keySerialization = createSerialization(context, keyEncodingFormat, keyProjection, keyPrefix); final SerializationSchema<RowData> valueSerialization = createSerialization(context, valueEncodingFormat, valueProjection, null); final FlinkKafkaProducer<RowData> kafkaProducer = createKafkaProducer(keySerialization, valueSerialization); return new SinkFunctionProvider() { @Override public SinkFunction<RowData> createSinkFunction() { return kafkaProducer; } @Override public Optional<Integer> getParallelism() { return parallelism == null ? Optional.empty() : Optional.of(parallelism); } }; }

Target:
public SinkRuntimeProvider getSinkRuntimeProvider(Context context) { final SerializationSchema<RowData> keySerialization = createSerialization(context, keyEncodingFormat, keyProjection, keyPrefix); final SerializationSchema<RowData> valueSerialization = createSerialization(context, valueEncodingFormat, valueProjection, null); final FlinkKafkaProducer<RowData> kafkaProducer = createKafkaProducer(keySerialization, valueSerialization); return SinkFunctionProvider.of(kafkaProducer, parallelism); }
Source:
public SqlOptionNode(SqlParserPos pos, SqlIdentifier key, SqlLiteral literal) { super(pos); if (key.isSimple()) { familyName = ""; propertyName = key.getSimple(); } else { familyName = key.names.get(0); propertyName = key.names.get(1); } PhoenixRelImplementor implementor = new PhoenixRelImplementorImpl(new RuntimeContextImpl()); this.value = CalciteUtils.convertLiteral(literal, implementor); }

Target:
public SqlOptionNode(SqlParserPos pos, SqlIdentifier key, SqlLiteral literal) { super(pos); if (key.isSimple()) { familyName = ""; propertyName = key.getSimple(); } else { familyName = key.names.get(0); propertyName = key.names.get(1); } PhoenixRelImplementor implementor = new PhoenixRelImplementorImpl(new RuntimeContextImpl()); this.value = CalciteUtils.convertSqlLiteral(literal, implementor); }
Source:
public void timeout() { synchronized (runLock) { createSnapshot(ACTION_TIMEOUT); requestBatchStart(); _startTimeout(); requestBatchEnd(); ScoreBoardManager.gameSnapshot(); } }

Target:
public void timeout() { synchronized (runLock) { createSnapshot(ACTION_TIMEOUT); _startTimeout(); ScoreBoardManager.gameSnapshot(); } }
Source:
public AuthFileCredential build() { ValidationUtil.validate(getClass().getSimpleName(), new HashMap<String, Object>() {{ put("filepath", filepath); }}); return new AuthFileCredential(filepath, identityClientOptions); }

Target:
public AuthFileCredential build() { return new AuthFileCredential(filepath, identityClientOptions); }
Source:
private <T> T withFollowingRedirect(WebTarget initialWebTarget, RequestWithFollowingRedirect<T> request) { WebApplicationException firstRedirectException = null; WebTarget webTarget = initialWebTarget; for (int i = 0; i < MAX_REDIRECT; i++) { try { return request.invoke(webTarget); } catch (WebApplicationException e) { firstRedirectException = e; Response response = checkNotNull(e.getResponse()); int status = response.getStatus(); if (status % 100 == 3 && response.getLocation() != null) { webTarget = client.target(UriBuilder.fromUri(response.getLocation())); continue; } throw e; } } throw firstRedirectException; }

Target:
private <T> T withFollowingRedirect(WebTarget initialWebTarget, RequestWithFollowingRedirect<T> request) { WebApplicationException firstRedirectException = null; WebTarget webTarget = initialWebTarget; for (int i = 0; i < MAX_REDIRECT; i++) { try { return request.invoke(webTarget); } catch (WebApplicationException e) { if (firstRedirectException == null) { firstRedirectException = e; } Response response = checkNotNull(e.getResponse()); int status = response.getStatus(); if (status % 100 == 3 && response.getLocation() != null) { webTarget = client.target(UriBuilder.fromUri(response.getLocation())); continue; } throw e; } } throw firstRedirectException; }
Source:
public void setUp() { memoryPool = new MemoryPool(LocalMemoryManager.GENERAL_POOL, new DataSize(10, DataSize.Unit.BYTE)); TaskExecutor taskExecutor = new TaskExecutor(8, 16); taskExecutor.start(); executor = newScheduledThreadPool(10, threadsNamed("task-notification-%s")); LocalExecutionPlanner planner = createTestingPlanner(); sqlTaskExecutionFactory = new SqlTaskExecutionFactory( executor, taskExecutor, planner, new QueryMonitor(new ObjectMapperProvider().get(), jsonCodec(StageInfo.class), new EventListenerManager(), new NodeInfo("test"), new NodeVersion("testVersion"), new QueryMonitorConfig()), new TaskManagerConfig()); allOperatorContexts = null; }

Target:
public void setUp() { memoryPool = new MemoryPool(GENERAL_POOL, new DataSize(10, BYTE)); TaskExecutor taskExecutor = new TaskExecutor(8, 16); taskExecutor.start(); executor = newScheduledThreadPool(1, threadsNamed("task-notification-%s")); LocalExecutionPlanner planner = createTestingPlanner(); sqlTaskExecutionFactory = new SqlTaskExecutionFactory( executor, taskExecutor, planner, new QueryMonitor(new ObjectMapperProvider().get(), jsonCodec(StageInfo.class), new EventListenerManager(), new NodeInfo("test"), new NodeVersion("testVersion"), new QueryMonitorConfig()), new TaskManagerConfig()); allOperatorContexts = null; }
Source:
public boolean delete( FileInfo fileInfo ) { File f = new File( baseDir, fileInfo.getFileStorage() ); return f.delete(); }

Target:
public boolean delete( FileInfo fileInfo ) { File f = new File( baseDir, fileInfo.getFileStorage() ); try { Files.deleteIfExists( Paths.get( f.getAbsolutePath() ) ); } catch ( IOException e ) { logger.error( "Failed to delete file: " + fileInfo, e ); return false; } return true; }
Source:
public ColumnReader getColumnReader(ColumnDescriptor path) { PrimitiveConverter converter = getPrimitiveConverter(path); PageReader pageReader = pageReadStore.getPageReader(path); if (pageReadStore.isInPageFilteringMode()) { return new SynchronizingColumnReader(path, pageReader, converter, writerVersion, pageReadStore.getRowIndexes()); } else { return new ColumnReaderImpl(path, pageReader, converter, writerVersion); } }

Target:
public ColumnReader getColumnReader(ColumnDescriptor path) { PrimitiveConverter converter = getPrimitiveConverter(path); PageReader pageReader = pageReadStore.getPageReader(path); Optional<PrimitiveIterator.OfLong> rowIndexes = pageReadStore.getRowIndexes(); if (rowIndexes.isPresent()) { return new SynchronizingColumnReader(path, pageReader, converter, writerVersion, rowIndexes.get()); } else { return new ColumnReaderImpl(path, pageReader, converter, writerVersion); } }
Source:
public void createPdpFeedsFromRequestExtracts() { List<String> filesToProcess = getUnprocessedRequestExtractFiles(); if (filesToProcess.isEmpty()) { LOG.error("No Request Extract files found to process."); } else { for (String requestExtractFileName : filesToProcess) { createPdpFeedFromRequestExtract(requestExtractFileName); LOG.info("Request Extract File " + requestExtractFileName + " was processed."); } } }

Target:
public void createPdpFeedsFromRequestExtracts() { List<String> filesToProcess = getUnprocessedRequestExtractFiles(); if (filesToProcess.isEmpty()) { LOG.info("No Request Extract files found to process."); } else { for (String requestExtractFileName : filesToProcess) { createPdpFeedFromRequestExtract(requestExtractFileName); LOG.info("Request Extract File " + requestExtractFileName + " was processed."); } } }
Source:
public void execute(IProgressMonitor monitor) { IPluginModelBase[] plugins = PluginJavaSearchUtil.getPluginImports(fImportID); SubMonitor subMonitor = SubMonitor.convert(monitor, PDEUIMessages.DependencyExtentOperation_searching + " " + fImportID + "...", 10); checkForJavaDependencies(plugins, subMonitor.newChild(9)); for (int i = 0; i < plugins.length; i++) { checkForExtensionPointsUsed(plugins[i]); } }

Target:
public void execute(IProgressMonitor monitor) { IPluginModelBase[] plugins = PluginJavaSearchUtil.getPluginImports(fImportID); SubMonitor subMonitor = SubMonitor.convert(monitor, PDEUIMessages.DependencyExtentOperation_searching + " " + fImportID + "...", 10); checkForJavaDependencies(plugins, subMonitor.newChild(9)); subMonitor.setWorkRemaining(plugins.length); for (int i = 0; i < plugins.length; i++) { checkForExtensionPointsUsed(plugins[i]); subMonitor.worked(1); } }
Source:
private void initKeyStore() throws CertificateManagerException { LOG.debug("SamlCallbackHandler.initKeyStore() -- Begin"); final Map<String, String> keyStoreProperties = getKeyStoreSystemProperties(); String storeType = keyStoreProperties.get(KEY_STORE_TYPE_KEY); final String password = keyStoreProperties.get(KEY_STORE_PASSWORD_KEY); final String storeLoc = keyStoreProperties.get(KEY_STORE_KEY); if (storeType == null) { LOG.warn(STORE_TYPE_ERROR, KEY_STORE_TYPE_KEY); storeType = JKS_TYPE; } if (password != null) { if (JKS_TYPE.equals(storeType) && storeLoc == null) { LOG.error("{} is not defined", KEY_STORE_TYPE_KEY); } else { keyStore = loadKeyStore(storeType, password, storeLoc); } } else { LOG.error("Please define {}", KEY_STORE_PASSWORD_KEY); } LOG.debug("SamlCallbackHandler.initKeyStore() -- End"); }

Target:
private void initKeyStore() throws CertificateManagerException { LOG.debug("initKeyStore() -- Begin"); final Map<String, String> keyStoreProperties = getKeyStoreSystemProperties(); String storeType = keyStoreProperties.get(KEY_STORE_TYPE_KEY); final String password = keyStoreProperties.get(KEY_STORE_PASSWORD_KEY); final String storeLoc = keyStoreProperties.get(KEY_STORE_KEY); if (storeType == null) { LOG.warn(STORE_TYPE_ERROR, KEY_STORE_TYPE_KEY); storeType = JKS_TYPE; } if (password != null) { if (JKS_TYPE.equals(storeType) && storeLoc == null) { LOG.error("{} is not defined", KEY_STORE_TYPE_KEY); } else { keyStore = loadKeyStore(storeType, password, storeLoc); } } else { LOG.error("Please define {}", KEY_STORE_PASSWORD_KEY); } LOG.debug("initKeyStore() -- End"); }
Source:
public void helpSiteAddress(String url) { launchHelpshift(url, null, HelpshiftHelper.chooseHelpshiftLoginTag(getLoginMode() == LoginMode.JETPACK_STATS, false)); }

Target:
public void helpSiteAddress(String url) { launchHelpshift(url, null, false); }