auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code><START> private boolean processJobDir(final Job job) throws GenieException, IOException { <END> log.debug("Got a job finished event. Will process job directory."); boolean result = false; final String jobId = job.getId(); final String jobWorkingDir = this.baseWorkingDir + JobConstants.FILE_PATH_DELIMITER + jobId; final File jobDir = new File(jobWorkingDir); if (jobDir.exists()) { if (this.deleteDependencies) { this.deleteApplicationDependencies(jobId, jobWorkingDir); } if (!Strings.isNullOrEmpty(job.getArchiveLocation())) { log.debug("Archiving job directory"); final String localArchiveFile = jobWorkingDir + JobConstants.FILE_PATH_DELIMITER + "genie/logs/" + jobId + ".tar.gz"; final CommandLine commandLine = new CommandLine("sudo"); commandLine.addArgument("tar"); commandLine.addArgument("-c"); commandLine.addArgument("-z"); commandLine.addArgument("-f"); commandLine.addArgument(localArchiveFile); commandLine.addArgument("./"); this.executor.setWorkingDirectory(jobDir); log.debug("Archive command : {}", commandLine.toString()); executor.execute(commandLine); this.genieFileTransferService.putFile(localArchiveFile, job.getArchiveLocation()); if (this.deleteArchiveFile) { log.debug("Deleting archive file"); try { Files.deleteIfExists(Paths.get(localArchiveFile)); } catch (Exception e) { log.error("Failed to delete archive file for job: {}", jobId, e); this.archiveFileDeletionFailure.increment(); } } result = true; } } return result; }</code><technical_language>merge bad... lost changes I for #357</technical_language>

Target:
private boolean processJobDir(final Job job) throws GenieException, IOException { log.debug("Got a job finished event. Will process job directory."); boolean result = false; final Optional<String> oJobId = job.getId(); if (oJobId.isPresent()) { final String jobId = oJobId.get(); final File jobDir = new File(this.baseWorkingDir, jobId); if (jobDir.exists()) { if (this.deleteDependencies) { this.deleteApplicationDependencies(jobId, jobDir); } final Optional<String> archiveLocation = job.getArchiveLocation(); if (archiveLocation.isPresent() && !Strings.isNullOrEmpty(archiveLocation.get())) { log.debug("Archiving job directory"); final File localArchiveFile = new File(jobDir, "genie/logs/" + jobId + ".tar.gz"); final CommandLine commandLine = new CommandLine("sudo"); commandLine.addArgument("tar"); commandLine.addArgument("-c"); commandLine.addArgument("-z"); commandLine.addArgument("-f"); commandLine.addArgument(localArchiveFile.getCanonicalPath()); commandLine.addArgument("./"); this.executor.setWorkingDirectory(jobDir); log.debug("Archive command : {}", commandLine.toString()); this.executor.execute(commandLine); this.genieFileTransferService.putFile(localArchiveFile.getCanonicalPath(), archiveLocation.get()); if (this.deleteArchiveFile) { log.debug("Deleting archive file"); try { if (!localArchiveFile.delete()) { log.error("Failed to delete archive file for job: {}", jobId); this.archiveFileDeletionFailure.increment(); } } catch (final Exception e) { log.error("Failed to delete archive file for job: {}", jobId, e); this.archiveFileDeletionFailure.increment(); } } result = true; } } } return result; }
Source:
<code>public Set<String> getCryptoCurrencies() { Set<String> result = new HashSet<String>(); result.add(Currencies.BTC); result.add(Currencies.SYS); result.add(Currencies.BCH); result.add(Currencies.BTX); result.add(Currencies.LTC); result.add(Currencies.ETH); result.add(Currencies.DASH); result.add(Currencies.XMR); result.add(Currencies.POT); result.add(Currencies.FLASH); result.add(Currencies.BTCP); result.add(Currencies.EFL); result.add(Currencies.BSD); result.add(Currencies.BTDX); result.add(Currencies.MEC); <START> result.add(Currencies.BURST); <END> return result; }</code><technical_language>forget update XML for CMC rate source's reported cryptos</technical_language>

Target:
public Set<String> getCryptoCurrencies() { Set<String> result = new HashSet<String>(); result.add(Currencies.BTC); result.add(Currencies.SYS); result.add(Currencies.BCH); result.add(Currencies.BTX); result.add(Currencies.LTC); result.add(Currencies.ETH); result.add(Currencies.DASH); result.add(Currencies.XMR); result.add(Currencies.POT); result.add(Currencies.FLASH); result.add(Currencies.BTCP); result.add(Currencies.EFL); result.add(Currencies.BSD); result.add(Currencies.BTDX); result.add(Currencies.MEC); result.add(Currencies.BURST); result.add(Currencies.DOGE); return result; }
Source:
<code>public void testSpelUnauthorizedType() throws ValidationException { <START> SpelValidator validator = new SpelValidator("T(Runtime).exec('hostname').waitFor() instanceof T(Integer)"); <END> String value = "MyString123"; validator.validate(value, new ModelValidatorContext(context)); }</code><technical_language>a mistake in this string, I T(java.lang.Runtime).getRuntime().exec( ..</technical_language>

Target:
public void testSpelUnauthorizedType() throws ValidationException { SpelValidator validator = new SpelValidator("new x.y.z.Object().toString() instanceof T(String)"); String value = "value"; validator.validate(value, new ModelValidatorContext(context)); }
Source:
<code>public DateAddTest() { c1 = Calendar.getInstance(); <START> c1.setTimeZone(TimeZone.getTimeZone("UTC")); <END> c1.set(2000, 2, 3, 4, 5, 6); c1.set(Calendar.MILLISECOND, 7); c1.setMinimalDaysInFirstWeek(4); c1.setFirstDayOfWeek(Calendar.MONDAY); addedDate = Calendar.getInstance(); addedDate.setTimeZone(TimeZone.getTimeZone("UTC")); addedDate.set(2000, 2, 3, 4, 5, 6); addedDate.set(Calendar.MILLISECOND, 7); addedDate.setMinimalDaysInFirstWeek(4); addedDate.setFirstDayOfWeek(Calendar.MONDAY); lastModified = Calendar.getInstance(); lastModified.setTimeZone(TimeZone.getTimeZone("UTC")); lastModified.set(2000, 2, 3, 4, 5, 6); lastModified.set(Calendar.MILLISECOND, 7); lastModified.setMinimalDaysInFirstWeek(4); lastModified.setFirstDayOfWeek(Calendar.MONDAY); }</code><technical_language>setting timezone below</technical_language>

Target:
public DateAddTest() { c1 = Calendar.getInstance(); c1.set(2000, 2, 3, 4, 5, 6); c1.set(Calendar.MILLISECOND, 7); c1.setMinimalDaysInFirstWeek(4); c1.setFirstDayOfWeek(Calendar.MONDAY); addedDate = Calendar.getInstance(); addedDate.set(2000, 2, 3, 4, 5, 6); addedDate.set(Calendar.MILLISECOND, 7); addedDate.setMinimalDaysInFirstWeek(4); addedDate.setFirstDayOfWeek(Calendar.MONDAY); lastModified = Calendar.getInstance(); lastModified.set(2000, 2, 3, 4, 5, 6); lastModified.set(Calendar.MILLISECOND, 7); lastModified.setMinimalDaysInFirstWeek(4); lastModified.setFirstDayOfWeek(Calendar.MONDAY); }
Source:
<code>public void presentIntentImportFatalError() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { Bundle args = new Bundle(); args.putBoolean("shouldShowRationale", shouldShowRequestPermissionRationale(Manifest.permission.READ_EXTERNAL_STORAGE)); <START> PermissionAlertDialogFragment permissionDialogFragment = PermissionAlertDialogFragment.newInstance(); <END> permissionDialogFragment.setArguments(args); navigationHandler.showDialog(permissionDialogFragment); } else { Toast.makeText(this, R.string.toast_attachment_error, Toast.LENGTH_SHORT).show(); finish(); } }</code><technical_language>move bundle stuff newInstance() method like: ... newInstance(String permission) { Bundle args = new Bundle(); args.putBoolean(...) } logic is contained in fragment</technical_language>

Target:
public void presentIntentImportFatalError() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { navigationHandler.showDialog(PermissionAlertDialogFragment.newInstance(this)); } else { Toast.makeText(this, R.string.toast_attachment_error, Toast.LENGTH_SHORT).show(); finish(); } }
Source:
<code>void executeDrop(String... statements) { for (String statement : statements) { <START> session.query("DROP " + statement, emptyMap()); <END> } }</code><technical_language>This intentionally underlying GraphDatabaseService preparation/cleanup more isolated OGM issues. problems this</technical_language>

Target:
void executeDrop(String... statements) { for (String statement : statements) { Transaction tx = service.beginTx(); try { service.execute("DROP " + statement); tx.success(); } catch (Exception e) { logger.trace("Could not execute drop for statement (this is likely expected) {}", statement, e); tx.failure(); } tx.close(); } }
Source:
<code>public AnyValue mapNode( VirtualNodeValue value ) { <START> if ( value instanceof NodeValue ) <END> { return value; } needsConversion = true; return value; }</code><technical_language>{ needsConversion = !value && instanceof NodeReference; return value; }</technical_language>

Target:
public AnyValue mapNode( VirtualNodeValue value ) { if ( !needsConversion ) { needsConversion = value instanceof NodeReference; } return value; }
Source:
<code>public void SignUp_validation_1() { SignUpPageObject signUpPage = new SignUpPageObject(driver); signUpPage.openSignUpPage(); signUpPage.typeInUserName(signUpPage.getTimeStamp()); String userNameEmail = Properties.emailQaart4; <START> signUpPage.typeInEmail(userNameEmail); <END> signUpPage.typeInPassword(signUpPage.getTimeStamp()); signUpPage.enterBirthDate( PageContent.wikiSignUpBirthMonth, PageContent.wikiSignUpBirthDay, PageContent.wikiSignUpBirthYear ); signUpPage.enterWrongBlurryWord(); signUpPage.clickCreateAccountButton(); signUpPage.verifyWrongBlurryWordValidation(); }</code><technical_language>pass Properties.emailQaart4 argument / need create additional string</technical_language>

Target:
public void SignUp_validation_1() { SignUpPageObject signUpPage = new SignUpPageObject(driver); signUpPage.openSignUpPage(); signUpPage.typeInUserName(signUpPage.getTimeStamp()); signUpPage.typeInEmail(Properties.emailQaart4); signUpPage.typeInPassword(signUpPage.getTimeStamp()); signUpPage.enterBirthDate( PageContent.wikiSignUpBirthMonth, PageContent.wikiSignUpBirthDay, PageContent.wikiSignUpBirthYear ); signUpPage.enterWrongBlurryWord(); signUpPage.clickCreateAccountButton(); signUpPage.verifyWrongBlurryWordValidation(); }
Source:
<code>public void onMapReady(GoogleMap gMap) { map = gMap; if (Build.VERSION.SDK_INT < 16) { View rootView = proxy.getActivity().findViewById(android.R.id.content); setBackgroundTransparent(rootView); } <START> mMarkerManager = new MarkerManager(map); <END> mMarkerManager.newCollection(DEFAULT_COLLECTION_ID); mMarkerManager.getCollection(DEFAULT_COLLECTION_ID).setOnMarkerClickListener(this); mClusterManager = new ClusterManager<TiClusterMarker>(TiApplication.getInstance().getApplicationContext(), map, mMarkerManager); mClusterManager.setRenderer( new TiClusterRenderer(TiApplication.getInstance().getApplicationContext(), map, mClusterManager)); processMapProperties(proxy.getProperties()); processPreloadRoutes(); processPreloadPolygons(); processPreloadCircles(); processPreloadPolylines(); processOverlaysList(); map.setOnMarkerClickListener(mMarkerManager); map.setOnMapClickListener(this); map.setOnCameraIdleListener(this); map.setOnCameraMoveStartedListener(this); map.setOnCameraMoveListener(this); map.setOnMarkerDragListener(this); map.setOnInfoWindowClickListener(this); map.setInfoWindowAdapter(this); map.setOnMapLongClickListener(this); map.setOnMapLoadedCallback(this); mClusterManager.setOnClusterClickListener(this); ((ViewProxy) proxy).clearPreloadObjects(); }</code><technical_language>clean this in release()</technical_language>

Target:
public void onMapReady(GoogleMap gMap) { map = gMap; if (Build.VERSION.SDK_INT < 16) { View rootView = proxy.getActivity().findViewById(android.R.id.content); setBackgroundTransparent(rootView); } mMarkerManager = new MarkerManager(map); mMarkerManager.newCollection(DEFAULT_COLLECTION_ID); mMarkerManager.getCollection(DEFAULT_COLLECTION_ID).setOnMarkerClickListener(this); mClusterManager = new ClusterManager<TiMarker>(TiApplication.getInstance().getApplicationContext(), map, mMarkerManager); mClusterManager.setRenderer( new TiClusterRenderer(TiApplication.getInstance().getApplicationContext(), map, mClusterManager)); processMapProperties(proxy.getProperties()); processPreloadRoutes(); processPreloadPolygons(); processPreloadCircles(); processPreloadPolylines(); processOverlaysList(); map.setOnMarkerClickListener(mMarkerManager); map.setOnMapClickListener(this); map.setOnCameraIdleListener(this); map.setOnCameraMoveStartedListener(this); map.setOnCameraMoveListener(this); map.setOnMarkerDragListener(this); map.setOnInfoWindowClickListener(this); map.setInfoWindowAdapter(this); map.setOnMapLongClickListener(this); map.setOnMapLoadedCallback(this); mClusterManager.setOnClusterClickListener(this); mClusterManager.setOnClusterItemClickListener(this); ((ViewProxy) proxy).clearPreloadObjects(); }
Source:
<code>CucumberThreadFactory() { SecurityManager s = System.getSecurityManager(); <START> this.group = s != null ? s.getThreadGroup() : Thread.currentThread().getThreadGroup(); <END> }</code><technical_language>I required desirable manually set thread group. ThreadGroup for workers ThreadGroup of Runtime.run. Currently is ThreadGroup of Runtime.Builder.build need same. a constructor automatically correct ThreadGroup</technical_language>

Target:
CucumberThreadFactory() { this.namePrefix = "cucumber-runner-" + poolNumber.getAndIncrement() + "-thread-"; }
Source:
<code>public boolean setTTL(String key, long ttl) { Document filter = new Document(ID_KEY, key); Document update; if (ttl == 0) { <START> update = new Document(MONGODB_UNSET, new Document(TTL_KEY, ONE)); <END> } else { Document doc = new Document(); setTTL(doc, ttl); update = new Document(MONGODB_SET, doc); } if (log.isTraceEnabled()) { log.trace("MongoDB: SETTTL " + key + " = " + ttl); } UpdateResult res = coll.updateOne(filter, update); return res.getModifiedCount() == 1; }</code><technical_language>I replaced update = com.mongodb.client.model.Updates.unset(TTL_KEY, ONE). If so, $unset variable is unneccessary</technical_language>

Target:
public boolean setTTL(String key, long ttl) { Bson filter = eq(ID_KEY, key); Bson update; if (ttl == 0) { update = unset(TTL_KEY); } else { update = set(TTL_KEY, getDateFromTTL(ttl)); } if (log.isTraceEnabled()) { log.trace("MongoDB: SETTTL " + key + " = " + ttl); } UpdateResult res = coll.updateOne(filter, update); return res.getModifiedCount() == 1; }
Source:
<code>public static void setReindexOnConfigChange(IProject project, boolean shouldReindexOnConfigChange) { if (shouldReindexOnConfigChange != getReindexOnConfigChange(project)) { getProjectPreferences(project).putBoolean(KEY_REINDEX_ON_CONFIG_CHANGE, shouldReindexOnConfigChange); <START> CCoreInternals.savePreferences(project, true); <END> } }</code><technical_language>Saving preferences a setter is appropriate. Please follow pattern for other preferences</technical_language>

Target:
public static void setReindexOnConfigChange(IProject project, boolean shouldReindexOnConfigChange) { if (shouldReindexOnConfigChange != getReindexOnConfigChange(project)) { getProjectPreferences(project).putBoolean(KEY_REINDEX_ON_CONFIG_CHANGE, shouldReindexOnConfigChange); } }
Source:
<code>protected final List<Component> getAdditionalButtons() { if (mode == Mode.UNITS_TO_PLACE_VIEW_DETACHED) { <START> return Arrays.asList(new Component[0]); <END> } updateUnits(); return Arrays.asList(SwingComponents.leftBox(leftToPlaceLabel), add(unitsToPlacePanel)); }</code><technical_language>slightly confused this line: return Arrays.asList(new Component[0]); I missing something, return a List<Component[]> List<Component> Is possibility return empty list instead of a singleton list empty elements? Is move if check caller caller deal DETACHED case? other thoughts help</technical_language>

Target:
protected final List<Component> getAdditionalButtons() { if (mode == Mode.UNITS_TO_PLACE_VIEW_DETACHED) { return super.getAdditionalButtons(); } updateUnits(); return Arrays.asList(SwingComponents.leftBox(leftToPlaceLabel), add(unitsToPlacePanel)); }
Source:
<code>public void setUp() throws Exception { if (resourceFilter instanceof TaskResourceFilter) { EasyMock.expect(tsqa.getTask(EasyMock.anyString())).andReturn(Optional.of(noopTask)).anyTimes(); <START> Field tsqaField = TaskResourceFilter.class.getDeclaredField("taskStorageQueryAdapter"); <END> tsqaField.setAccessible(true); tsqaField.set(resourceFilter, tsqa); } setUp(resourceFilter); }</code><technical_language>this avoided? instantiating class part of constructor feeder</technical_language>

Target:
public void setUp() throws Exception { if (resourceFilter instanceof TaskResourceFilter && !mockedOnce) { tsqa = injector.getInstance(TaskStorageQueryAdapter.class); EasyMock.expect(tsqa.getTask(EasyMock.anyString())).andReturn(Optional.of(noopTask)).anyTimes(); EasyMock.replay(tsqa); mockedOnce = true; } setUp(resourceFilter); }
Source:
<code>public synchronized void start() { try (SetThreadName ignored = new SetThreadName("Query-%s", delegate.getQueryId())) { try { if (memoryManager.preAllocateQueryMemory(delegate.getQueryId(), peakMemoryEstimate)) { delegate.addStateChangeListener(state -> { if (state.isDone()) { memoryManager.removePreAllocation(delegate.getQueryId()); } }); delegate.start(); return; } if (!startedWaiting) { memoryManager.addChangeListener(GENERAL_POOL, none -> start()); memoryManager.addChangeListener(RESERVED_POOL, none -> start()); delegate.startWaitingForResources(); <START> startedWaiting = true; <END> } } catch (Throwable e) { fail(e); throwIfInstanceOf(e, Error.class); } } }</code><technical_language>reverse order of lines, addChangeListener fire bottom lines: startedWaiting = true; delegate.startWaitingForResources(); memoryManager.addChangeListener(GENERAL_POOL, -> start()); memoryManager.addChangeListener(RESERVED_POOL, -> start());</technical_language>

Target:
public synchronized void start() { try (SetThreadName ignored = new SetThreadName("Query-%s", delegate.getQueryId())) { try { if (memoryManager.preAllocateQueryMemory(delegate.getQueryId(), peakMemoryEstimate)) { delegate.addStateChangeListener(state -> { if (state.isDone()) { memoryManager.removePreAllocation(delegate.getQueryId()); } }); delegate.start(); return; } if (!startedWaiting) { startedWaiting = true; delegate.startWaitingForResources(); memoryManager.addChangeListener(GENERAL_POOL, none -> start()); memoryManager.addChangeListener(RESERVED_POOL, none -> start()); } } catch (Throwable e) { fail(e); throwIfInstanceOf(e, Error.class); } } }
Source:
<code>private static void verifyValidClassName(String confOption, String className, Class<?> requiredBaseClass) { try { ConfigurationTypeHelper.getClassInstance(null, className, requiredBaseClass); <START> } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | IOException <END> | NoSuchMethodException | InvocationTargetException e) { fatal(confOption + " has an invalid class name: " + className); } catch (ClassCastException e) { fatal(confOption + " must implement " + requiredBaseClass + ", but the configured class does not: " + className); } }</code><technical_language>coincidence, I working this today. I ended replacing a lot of exceptions parent, ReflectiveOperationException remove redundancy, cover additional thrown getDeclaredConstructor().getInstance() pattern</technical_language>

Target:
private static void verifyValidClassName(String confOption, String className, Class<?> requiredBaseClass) { try { ConfigurationTypeHelper.getClassInstance(null, className, requiredBaseClass); } catch (IOException | ReflectiveOperationException e) { fatal(confOption + " has an invalid class name: " + className); } catch (ClassCastException e) { fatal(confOption + " must implement " + requiredBaseClass + ", but the configured class does not: " + className); } }
Source:
<code><START> public JPAInitializer(PersistService service) { <END> service.start(); }</code><technical_language>Injection constructors package private. Remove public modifier</technical_language>

Target:
private JPAInitializer(PersistService service) { service.start(); }
Source:
<code>public Jdbi setStatementLocator(StatementLocator locator) { if (locator == null) { throw new IllegalArgumentException("null statement locator"); <START> } <END> config.statementLocator = locator; return this; }</code><technical_language>alternatively Objects.requireNonNull(locator, "null statement locator")</technical_language>

Target:
public Jdbi setStatementLocator(StatementLocator locator) { Objects.requireNonNull(locator, "null statement locator"); config.statementLocator = locator; return this; }
Source:
<code>public AttachDiskToVmCommand(T parameters) { super(parameters); <START> disk = loadDiskById((Guid) getParameters().getEntityId()); <END> }</code><technical_language>call this(parameters, loadDiskById((Guid) getParameters().getEntityId())</technical_language>

Target:
public AttachDiskToVmCommand(T parameters) { super(parameters); disk = getDiskDao().get((Guid) getParameters().getEntityId()); }
Source:
<code>public AnnotationMemberDeclaration setDefaultValue(Expression defaultValue) { <START> notifyPropertyChange("defaultValue", this.defaultValue, defaultValue); <END> this.defaultValue = defaultValue; setAsParentNodeOf(defaultValue); return this; }</code><technical_language>my, identifiers in strings! This is a maintenance nightmare</technical_language>

Target:
public AnnotationMemberDeclaration setDefaultValue(Expression defaultValue) { notifyPropertyChange(ObservableProperty.DEFAULT_VALUE, this.defaultValue, defaultValue); this.defaultValue = defaultValue; setAsParentNodeOf(defaultValue); return this; }
Source:
<code>private String dumpLoadVerify(List<String> tableNames, String lastReplicationId, boolean parallelLoad, boolean metadataOnly, boolean failRetry) throws Throwable { List<String> withClauseList; parallelLoad = parallelLoad && (lastReplicationId == null); if (metadataOnly) { withClauseList = Collections.singletonList("'hive.repl.dump.metadata.only'='true'"); } else { withClauseList = Collections.emptyList(); } WarehouseInstance.Tuple dumpTuple = primary.run("use " + primaryDbName) .dump(primaryDbName, lastReplicationId, withClauseList); if (parallelLoad) { replica.hiveConf.setBoolVar(HiveConf.ConfVars.EXECPARALLEL, true); } if (failRetry) { if (lastReplicationId == null) { failBootstrapLoad(dumpTuple, tableNames.size()/2); } else { <START> failIncrementalLoad(dumpTuple, tableNames.size()/2); <END> } } replica.load(replicatedDbName, dumpTuple.dumpLocation) .run("use " + replicatedDbName) .run("show tables") .verifyResults(tableNames.toArray(new String[1])); if (!metadataOnly) { replica.run("repl status " + replicatedDbName) .verifyResult(dumpTuple.lastReplicationId); } if (parallelLoad) { replica.hiveConf.setBoolVar(HiveConf.ConfVars.EXECPARALLEL, false); } for (String name : tableNames) { if (metadataOnly) { verifyNoStatsReplicationForMetadataOnly(name); } else { verifyReplicatedStatsForTable(name); } } return dumpTuple.lastReplicationId; }</code><technical_language>is mapped event table. So, this of tableNames.size()/2 fail applying update state event. If want fail incremental load a fixed event, need get event count dumping operation source</technical_language>

Target:
private String dumpLoadVerify(List<String> tableNames, String lastReplicationId, boolean parallelLoad, boolean metadataOnly, boolean failRetry) throws Throwable { List<String> withClauseList; parallelLoad = parallelLoad && (lastReplicationId == null); if (metadataOnly) { withClauseList = Collections.singletonList("'hive.repl.dump.metadata.only'='true'"); } else { withClauseList = Collections.emptyList(); } WarehouseInstance.Tuple dumpTuple = primary.run("use " + primaryDbName) .dump(primaryDbName, lastReplicationId, withClauseList); if (parallelLoad) { replica.hiveConf.setBoolVar(HiveConf.ConfVars.EXECPARALLEL, true); } if (failRetry) { if (lastReplicationId == null) { failBootstrapLoad(dumpTuple, tableNames.size()/2); } else { failIncrementalLoad(dumpTuple); } } replica.load(replicatedDbName, dumpTuple.dumpLocation); if (!metadataOnly) { replica.run("repl status " + replicatedDbName) .verifyResult(dumpTuple.lastReplicationId); } if (parallelLoad) { replica.hiveConf.setBoolVar(HiveConf.ConfVars.EXECPARALLEL, false); } for (String name : tableNames) { if (metadataOnly) { verifyNoStatsReplicationForMetadataOnly(name); } else { verifyReplicatedStatsForTable(name); } } return dumpTuple.lastReplicationId; }
Source:
<code>public void verify_with_provided_test_jar() throws IOException { String testJarsPathname = "target/my-test-jars"; File file = new File(testJarsPathname); <START> if (file.mkdir()) { <END> IssuableSubscriptionVisitor visitor = new IssuableSubscriptionVisitor() { @Override public List<Tree.Kind> nodesToVisit() { return ImmutableList.of(); } @Override public void scanFile(JavaFileScannerContext context) { super.scanFile(context); addIssue(1, "message"); addIssue(3, "message1"); addIssue(7, "message2"); addIssue(8, "message3"); addIssue(8, "message3"); addIssue(10, "message4"); addIssue(10, "message4"); addIssue(11, "no message"); } }; JavaCheckVerifier.verify(FILENAME_ISSUES, visitor, testJarsPathname); file.delete(); } }</code><technical_language>@m-g-sonar if folder creation fails test pass</technical_language>

Target:
public void verify_with_provided_test_jar() throws IOException { String testJarsPathname = "target/my-test-jars"; File file = new File(testJarsPathname); if (file.exists()) { file.delete(); } if (file.mkdir()) { IssuableSubscriptionVisitor visitor = new FakeVisitor().withDefaultIssues(); JavaCheckVerifier.verify(FILENAME_ISSUES, visitor, testJarsPathname); file.delete(); } else { Fail.fail(); } }
Source:
<code>public void processEvent(final Map<String, String> dispatchMap) { super.processEvent(dispatchMap); <START> final List eventList = getEventList(); <END> final int size = eventList.size(); for (int i = 0; i < size; i++) { final Pair eventPair = (Pair<String, String>) eventList.get(i); final String name = (String) eventPair.first; if (name.equals(EventStrings.AUTHORITY_TYPE) || name.equals(EventStrings.API_DEPRECATED) || name.equals(EventStrings.AUTHORITY_VALIDATION) || name.equals(EventStrings.EXTENDED_EXPIRES_ON_SETTING) || name.equals(EventStrings.PROMPT_BEHAVIOR) || name.equals(EventStrings.WAS_SUCCESSFUL) || name.equals(EventStrings.IDP_NAME) || name.equals(EventStrings.TENANT_ID) || name.equals(EventStrings.USER_ID) || name.equals(EventStrings.LOGIN_HINT) || name.equals(EventStrings.RESPONSE_TIME) || name.equals(EventStrings.CORRELATION_ID) || name.equals(EventStrings.REQUEST_ID) || name.equals(EventStrings.API_ID) || name.equals(EventStrings.API_ERROR_CODE)) { dispatchMap.put(name, (String) eventPair.second); } } }</code><technical_language>avoid cast L154 generic types this List List<Pair<String, String>> #Resolved</technical_language>

Target:
public void processEvent(final Map<String, String> dispatchMap) { super.processEvent(dispatchMap); final List<Pair<String, String>> eventList = getEventList(); for (Pair<String, String> eventPair : eventList) { final String name = eventPair.first; if (name.equals(EventStrings.AUTHORITY_TYPE) || name.equals(EventStrings.API_DEPRECATED) || name.equals(EventStrings.AUTHORITY_VALIDATION) || name.equals(EventStrings.EXTENDED_EXPIRES_ON_SETTING) || name.equals(EventStrings.PROMPT_BEHAVIOR) || name.equals(EventStrings.WAS_SUCCESSFUL) || name.equals(EventStrings.IDP_NAME) || name.equals(EventStrings.TENANT_ID) || name.equals(EventStrings.USER_ID) || name.equals(EventStrings.LOGIN_HINT) || name.equals(EventStrings.RESPONSE_TIME) || name.equals(EventStrings.CORRELATION_ID) || name.equals(EventStrings.REQUEST_ID) || name.equals(EventStrings.API_ID) || name.equals(EventStrings.API_ERROR_CODE)) { dispatchMap.put(name, eventPair.second); } } }
Source:
<code>public boolean isDurable() { <START> if (messageID < 0) { <END> durable = getMessage().isDurable(); } return durable; }</code><technical_language>durable field additional flag if cached, messageID cached durable. possibly held field a byte 0 = false, 1 = true -1 set</technical_language>

Target:
public boolean isDurable() { if (durable == UNDEFINED_IS_DURABLE) { durable = getMessage().isDurable() ? IS_DURABLE : IS_NOT_DURABLE; } return durable == IS_DURABLE; }
Source:
<code><START> public synchronized long getRowCount() { <END> return rowCount.get(); }</code><technical_language>extra synchronization needed rowCount is AtomicLong. intent is shouldStop, rowCount, isRunning get modified concurrently guarding accesses synchronizing "this"</technical_language>

Target:
public long getRowCount() { return rowCount.get(); }
Source:
<code><START> public CreateImageRemoteCallable(BuildListener listener, Config cfgData, Descriptor<?> descriptor, String expandedDockerFolder, String expandedImageTag, String dockerFileRes, Map<String, String> buildArgsMap, boolean noCache, boolean rm) { <END> this.expandedDockerFolder = expandedDockerFolder; this.expandedImageTag = expandedImageTag; this.dockerFileRes = dockerFileRes; this.cfgData = cfgData; this.buildArgsMap = buildArgsMap; this.noCache = noCache; this.rm = rm; this.descriptor = descriptor; }</code><technical_language>listener is used, IMHO want assign this.listener</technical_language>

Target:
public CreateImageRemoteCallable(BuildListener listener, Config cfgData, Descriptor<?> descriptor, String expandedDockerFolder, String expandedImageTag, String dockerFileRes, Map<String, String> buildArgsMap, boolean noCache, boolean rm) { this.expandedDockerFolder = expandedDockerFolder; this.expandedImageTag = expandedImageTag; this.dockerFileRes = dockerFileRes; this.cfgData = cfgData; this.buildArgsMap = buildArgsMap; this.noCache = noCache; this.rm = rm; this.descriptor = descriptor; this.listener = listener; }
Source:
<code>public PentahoOrcInputFormat( NamedCluster namedCluster ) { if ( namedCluster == null ) { conf = new Configuration(); } else { conf = inClassloader( () -> { Configuration confProxy = new ConfigurationProxy(); confProxy.addResource( "hive-site.xml" ); BiConsumer<InputStream, String> consumer = ( is, filename ) -> <START> { <END> confProxy.addResource( is, filename ); }; ShimConfigsLoader.addConfigsAsResources( namedCluster, consumer ); return confProxy; } ); } }</code><technical_language>roll this functionality NamedCluster object start eliminate ShimConfigsLoader</technical_language>

Target:
public PentahoOrcInputFormat( NamedCluster namedCluster ) { if ( namedCluster == null ) { conf = new Configuration(); } else { conf = inClassloader( () -> { Configuration confProxy = new ConfigurationProxy(); confProxy.addResource( "hive-site.xml" ); BiConsumer<InputStream, String> consumer = ( is, filename ) -> confProxy.addResource( is, filename ); ShimConfigsLoader.addConfigsAsResources( namedCluster, consumer ); return confProxy; } ); } }
Source:
<code><START> public static String replaceExtension(String originalName, String newExtension) { <END> if (originalName == null | originalName == "") { return originalName; } int extensionIndex = originalName.lastIndexOf("."); if (extensionIndex != -1 ) { return originalName.substring(0, extensionIndex) + "."+newExtension ; } else if (newExtension != "") { return originalName +"."+newExtension ; } else { return originalName ; } }</code><technical_language>I understand urge code more robust, changes done replaceExtension possibly downstream changes. Code expecting error output null "" longer there. Please revert this change</technical_language>

Target:
public static String replaceExtension(String originalName, String newExtension) { int extensionIndex = originalName.lastIndexOf("."); if (extensionIndex != -1 ) { return originalName.substring(0, extensionIndex) + "."+newExtension ; } else { return originalName +"."+newExtension ; } }
Source:
<code>public ZkBucketDataAccessor(String zkAddr, int bucketSize, int numVersions) { HelixZkClient zkClient = DedicatedZkClientFactory.getInstance() .buildZkClient(new HelixZkClient.ZkConnectionConfig(zkAddr)); zkClient.setZkSerializer(new ZkSerializer() { @Override public byte[] serialize(Object data) throws ZkMarshallingError { if (data instanceof byte[]) { return (byte[]) data; } throw new HelixException("ZkBucketDataAccesor only supports a byte array as an argument!"); } @Override public Object deserialize(byte[] data) throws ZkMarshallingError { return data; } }); _zkBaseDataAccessor = new ZkBaseDataAccessor(zkClient); <START> HelixZkClient znRecordClient = DedicatedZkClientFactory.getInstance() <END> .buildZkClient(new HelixZkClient.ZkConnectionConfig(zkAddr)); _znRecordBaseDataAccessor = new ZkBaseDataAccessor<>(znRecordClient); znRecordClient.setZkSerializer(new ZNRecordSerializer()); _zkSerializer = new ZNRecordJacksonSerializer(); _bucketSize = bucketSize; _numVersions = numVersions; }</code><technical_language>SharedZkClient? Note shared client separate serializer share connection. fits requirement well</technical_language>

Target:
public ZkBucketDataAccessor(String zkAddr, int bucketSize, int numVersions) { _zkClient = DedicatedZkClientFactory.getInstance() .buildZkClient(new HelixZkClient.ZkConnectionConfig(zkAddr)); _zkClient.setZkSerializer(new ZkSerializer() { @Override public byte[] serialize(Object data) throws ZkMarshallingError { if (data instanceof byte[]) { return (byte[]) data; } throw new HelixException("ZkBucketDataAccesor only supports a byte array as an argument!"); } @Override public Object deserialize(byte[] data) throws ZkMarshallingError { return data; } }); _zkBaseDataAccessor = new ZkBaseDataAccessor(_zkClient); _znRecordClient = SharedZkClientFactory.getInstance() .buildZkClient(new HelixZkClient.ZkConnectionConfig(zkAddr)); _znRecordBaseDataAccessor = new ZkBaseDataAccessor<>(_znRecordClient); _znRecordClient.setZkSerializer(new ZNRecordSerializer()); _zkSerializer = new ZNRecordJacksonSerializer(); _bucketSize = bucketSize; _numVersions = numVersions; }
Source:
<code>public void deserialize( Block block, int index, DifferentialEntropyState state) { SliceInput input = VARBINARY.getSlice(block, index).getInput(); DifferentialEntropyStateStrategy strategy = <START> DifferentialEntropyStateSerializer.deserializeStrategy(input); <END> verify(strategy != null || state.getStrategy() == null, "strategy is not null for null method"); if (strategy != null) { state.setStrategy(strategy); } }</code><technical_language>nit: put statement line</technical_language>

Target:
public void deserialize( Block block, int index, DifferentialEntropyState state) { SliceInput input = VARBINARY.getSlice(block, index).getInput(); int method = input.readInt(); switch (method) { case 0: verify(state.getStrategy() == null, "strategy is not null for null method"); return; case 1: state.setStrategy(UnweightedReservoirSampleStateStrategy.deserialize(input)); return; case 2: state.setStrategy(WeightedReservoirSampleStateStrategy.deserialize(input)); return; case 3: state.setStrategy(FixedHistogramMleStateStrategy.deserialize(input)); return; case 4: state.setStrategy(FixedHistogramJacknifeStateStrategy.deserialize(input)); return; default: verify(false, format("Unknown method code when deserializing: %s", method)); } }
Source:
<code>private String formatFilePath(int siteId, String projectName, String revisionName) { Preconditions.checkArgument(!Strings.isNullOrEmpty(projectName), "projectName"); Preconditions.checkArgument(!Strings.isNullOrEmpty(revisionName), "revisionName"); <START> String encodedProjectName = Base64.getEncoder().encodeToString(projectName.getBytes(UTF_8)).replace("=", "_"); <END> return String.format(ENGLISH, "%s%d/%s/%s.%s.tar.gz", pathPrefix, siteId, encodedProjectName, revisionName, DATE_TIME_SUFFIX_FORMAT.format(Instant.now())); }</code><technical_language>I want is base64url padding (defined in RFC 4648). General base64 / character. = in base64 is padding is OK remove. build this variant of Base64 Guava: java import com.google.common.io.BaseEncoding; BaseEncoding.base64Url().omitPadding().encode(projectName.getBytes(UTF_8));</technical_language>

Target:
private String formatFilePath(int siteId, String projectName, String revisionName) { Preconditions.checkArgument(!Strings.isNullOrEmpty(projectName), "projectName"); Preconditions.checkArgument(!Strings.isNullOrEmpty(revisionName), "revisionName"); String encodedProjectName = BaseEncoding.base64Url().omitPadding().encode(projectName.getBytes(UTF_8)); return String.format(ENGLISH, "%s%d/%s/%s.%s.tar.gz", pathPrefix, siteId, encodedProjectName, revisionName, UUID.randomUUID().toString()); }
Source:
<code>public static RangeSet fromString(String list, boolean skipError) { RangeSet rs = new RangeSet(); for (String s : Util.tokenize(list,",")) { s = s.trim(); try { if(s.contains("-")) { String[] tokens = Util.tokenize(s,"-"); if (tokens.length == 2) { rs.ranges.add(new Range(Integer.parseInt(tokens[0]), Integer.parseInt(tokens[1]) + 1)); } else { if (!skipError) <START> throw new IllegalArgumentException("Unable to parse " + list); <END> } } else { int n = Integer.parseInt(s); rs.ranges.add(new Range(n,n+1)); } } catch (NumberFormatException e) { if (!skipError) throw new IllegalArgumentException("Unable to parse "+list); } } return rs; }</code><technical_language>NIT: missing brackets. useful explain formatting requirements in exception. E.g. "expected string format XX-YY" that. Int parsing errors caught & processed</technical_language>

Target:
public static RangeSet fromString(String list, boolean skipError) { RangeSet rs = new RangeSet(); for (String s : Util.tokenize(list,",")) { s = s.trim(); try { if(s.contains("-")) { String[] tokens = Util.tokenize(s,"-"); if (tokens.length == 2) { rs.ranges.add(new Range(Integer.parseInt(tokens[0]), Integer.parseInt(tokens[1]) + 1)); } else { if (!skipError) { throw new IllegalArgumentException( String.format("Unable to parse %s, expected string with a range M-N", list)); } } } else { int n = Integer.parseInt(s); rs.ranges.add(new Range(n,n+1)); } } catch (NumberFormatException e) { if (!skipError) throw new IllegalArgumentException( String.format("Unable to parse %s, expected number", list)); } } return rs; }
Source:
<code>public byte[] encrypt(byte[] plaintext, byte[] associatedData) throws GeneralSecurityException { <START> if (this.encryptPath == null || this.encryptPath.equals("")) { <END> throw new GeneralSecurityException("malformed keyUri provided"); } Map<String, Object> request = Map.of( "plaintext", Base64.getEncoder().encodeToString(plaintext), "context", associatedData == null ? "" : Base64.getEncoder().encodeToString(associatedData) ); try { LogicalResponse response = this.vault.logical().write(this.encryptPath, request); Map<String, String> data = response.getData(); String error = data.get("errors"); if (error != null) { throw new GeneralSecurityException(String.format("Failed to encrypt: %s", error)); } String ciphertext = data.get("ciphertext"); if (ciphertext == null) { throw new GeneralSecurityException("encryption failed"); } return ciphertext.getBytes(); } catch (VaultException e) { throw new GeneralSecurityException("vault error", e); } }</code><technical_language>This part of validation in constructor. time enter this function, encryptionPath valid</technical_language>

Target:
public byte[] encrypt(byte[] plaintext, byte[] associatedData) throws GeneralSecurityException { Map<String, Object> request = Map.of( "plaintext", Base64.getEncoder().encodeToString(plaintext), "context", associatedData == null ? "" : Base64.getEncoder().encodeToString(associatedData) ); try { LogicalResponse response = this.vault.logical().write(this.encryptPath, request); Map<String, String> data = response.getData(); String error = data.get("errors"); if (error != null) { throw new GeneralSecurityException("failed to encrypt"); } String ciphertext = data.get("ciphertext"); if (ciphertext == null) { throw new GeneralSecurityException("encryption failed"); } return ciphertext.getBytes(); } catch (VaultException e) { throw new GeneralSecurityException("vault error"); } }
Source:
<code>public boolean createSymLink(URI homeUri, URI targetUri, boolean onlyRead, String userLogin) { File imagePath = new File(fileMapper.mapAccordingToMappingType(homeUri)); File userHome = new File(getDecodedPath(targetUri)); if (userHome.exists()) { <START> System.out.println("Got here!"); <END> return false; } String command = Config.getParameter("script_createSymLink"); CommandService commandService = new CommandService(); List<String> parameters = new ArrayList<>(); parameters.add(imagePath.getAbsolutePath()); parameters.add(userHome.getAbsolutePath()); if (onlyRead) { parameters.add(Config.getParameter("UserForImageReading", "root")); } else { parameters.add(userLogin); } try { return commandService.runCommand(new File(command), parameters).isSuccessful(); } catch (FileNotFoundException e) { logger.error("FileNotFoundException in createSymLink", e); return false; } catch (IOException e) { logger.error("IOException in createSymLink", e); return false; } }</code><technical_language>Is this line is needed here</technical_language>

Target:
public boolean createSymLink(URI homeUri, URI targetUri, boolean onlyRead, String userLogin) { File imagePath = new File(fileMapper.mapAccordingToMappingType(homeUri)); File userHome = new File(getDecodedPath(targetUri)); if (userHome.exists()) { return false; } String command = Config.getParameter("script_createSymLink"); CommandService commandService = new CommandService(); List<String> parameters = new ArrayList<>(); parameters.add(imagePath.getAbsolutePath()); parameters.add(userHome.getAbsolutePath()); if (onlyRead) { parameters.add(Config.getParameter("UserForImageReading", "root")); } else { parameters.add(userLogin); } try { return commandService.runCommand(new File(command), parameters).isSuccessful(); } catch (FileNotFoundException e) { logger.error("FileNotFoundException in createSymLink", e); return false; } catch (IOException e) { logger.error("IOException in createSymLink", e); return false; } }
Source:
<code>public EventData(ByteBuffer body) { <START> this.body = Objects.requireNonNull(body, "'body' cannot be null.").array(); <END> this.context = Context.NONE; this.properties = new HashMap<>(); this.systemProperties = new SystemProperties(); }</code><technical_language>this call byte[] constructor instead? java this(Objects.requireNonNull(body, "'body' null.").array());</technical_language>

Target:
public EventData(ByteBuffer body) { this(Objects.requireNonNull(body, "'body' cannot be null.").array()); }
Source:
<code>private String findHostLang(String hostId) throws DotDataException{ DotConnect dc = new DotConnect(); dc.setSQL(SELECT_HOSTLANG_BY_ID_QUERY); dc.addParam(hostId); List<Map<String,String>> hostLang = dc.loadResults(); <START> return hostLang.get(0).get("language_id").toString(); <END> }</code><technical_language>![MINOR](<LINK_2> 'Severity: MINOR') "get" returns a string, need call "toString()". [![rule](<LINK_1>](<LINK_0></technical_language>

Target:
private String findHostLang(String hostId) throws DotDataException { DotConnect dc = new DotConnect(); dc.setSQL(SELECT_HOSTLANG_BY_ID_QUERY); dc.addParam(hostId); List<Map<String, String>> hostLang = dc.loadResults(); return hostLang.get(0).get("language_id"); }
Source:
<code>protected Query createCountQuery(ParametersParameterAccessor accessor) { <START> return (createQuery(accessor)); END> }</code><technical_language>this throw exception for now, delegate somewhere? if leave this, refactor reduce features (breaking code?)</technical_language>

Target:
protected Query createCountQuery(ParametersParameterAccessor accessor) { return applyQueryMetaAttributesWhenPresent(createQuery(accessor)); }
Source:
<code>public void addToMap(SignedWitness signedWitness) { P2PDataStorage.ByteArray hash = signedWitness.getHashAsByteArray(); signedWitnessMap.putIfAbsent(hash, signedWitness); getSignedWitnessSetCache.remove(new P2PDataStorage.ByteArray(signedWitness.getAccountAgeWitnessHash())); <START> getSignedWitnessSetCache.remove(hash); <END> }</code><technical_language>This redundant, removing item cache again. hash is calculated new P2PDataStorage.ByteArray(signedWitness.getAccountAgeWitnessHash()) calls signedWitness</technical_language>

Target:
public void addToMap(SignedWitness signedWitness) { signedWitnessMap.putIfAbsent(signedWitness.getHashAsByteArray(), signedWitness); P2PDataStorage.ByteArray accountAgeWitnessHash = new P2PDataStorage.ByteArray(signedWitness.getAccountAgeWitnessHash()); signedWitnessSetByAccountAgeWitnessHash.putIfAbsent(accountAgeWitnessHash, new HashSet<>()); signedWitnessSetByAccountAgeWitnessHash.get(accountAgeWitnessHash).add(signedWitness); }
Source:
<code>public Mono<Void> delete(DeleteOrganizationQuotaDefinitionRequest request) { <START> return delete(request, Void.class, builder -> builder.pathSegment("v2", "quota_definitions", request.getOrganizationQuotaDefinitionId())); <END> }</code><technical_language>@antechrestos Void. async argument, needs match [this style](<LINK_0></technical_language>

Target:
public Mono<DeleteOrganizationQuotaDefinitionResponse> delete(DeleteOrganizationQuotaDefinitionRequest request) { return delete(request, DeleteOrganizationQuotaDefinitionResponse.class, builder -> { builder.pathSegment("v2", "quota_definitions", request.getOrganizationQuotaDefinitionId()); QueryBuilder.augment(builder, request); }); }
Source:
<code>private void getTagline(){ Call<ArrayList<TaglineLanguageModel>> call = apiClient.getTagline(); call.enqueue(new Callback<ArrayList<TaglineLanguageModel>>() { @Override public void onResponse(Call<ArrayList<TaglineLanguageModel>> call, Response<ArrayList<TaglineLanguageModel>> response) { <START> if(response != null){ <END> String locale = String.valueOf(Resources.getSystem().getConfiguration().locale); boolean isLanguageFound = false; for (int i = 0; i < response.body().size(); i++){ if (response.body().get(i).getLanguage().equals(locale)){ taglineURL = response.body().get(i).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(i).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); isLanguageFound = true; } } if (!isLanguageFound){ taglineURL = response.body().get(response.body().size() -1).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(response.body().size() -1).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); } } } @Override public void onFailure(Call<ArrayList<TaglineLanguageModel>> call, Throwable t) { } }); }</code><technical_language>check **if (response.isSuccessful())** handle properly, body null leading NPE</technical_language>

Target:
private void getTagline(){ Call<ArrayList<TaglineLanguageModel>> call = apiClient.getTagline(); call.enqueue(new Callback<ArrayList<TaglineLanguageModel>>() { @Override public void onResponse(Call<ArrayList<TaglineLanguageModel>> call, Response<ArrayList<TaglineLanguageModel>> response) { if(response.isSuccessful()){ String locale = String.valueOf(Resources.getSystem().getConfiguration().locale); boolean isLanguageFound = false; for (int i = 0; i < response.body().size(); i++){ if (response.body().get(i).getLanguage().equals(locale)){ taglineURL = response.body().get(i).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(i).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); isLanguageFound = true; } } if (!isLanguageFound){ taglineURL = response.body().get(response.body().size() -1).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(response.body().size() -1).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); } } } @Override public void onFailure(Call<ArrayList<TaglineLanguageModel>> call, Throwable t) { } }); }
Source:
<code>public void tearDown() { <START> closeAllRuntimeException(queryRunner); <END> queryRunner = null; }</code><technical_language>queryRunner.close();</technical_language>

Target:
public void tearDown() { queryRunner.close(); }