auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>void processEntry(CanonicalTreeParser m, DirCacheBuildIterator i, WorkingTreeIterator f) throws IOException { if (m != null) { checkValidPath(m); if (i == null) { if (f != null && !FileMode.TREE.equals(f.getEntryFileMode()) && !f.isEntryIgnored()) { if (failOnConflict) { conflicts.add(walk.getPathString()); } else { update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } } else update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } else if (f == null || !m.idEqual(i)) { update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } else if (i.getDirCacheEntry() != null) { if (f.isModified(i.getDirCacheEntry(), true, this.walk.getObjectReader()) || i.getDirCacheEntry().getStage() != 0) update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); else { DirCacheEntry entry = i.getDirCacheEntry(); <START> if (entry.getLastModifiedInstant() == null) { <END> entry.setLastModified(f.getEntryLastModifiedInstant()); } keep(entry); } } else keep(i.getDirCacheEntry()); } else { if (f != null) { if (walk.isDirectoryFileConflict()) { conflicts.add(walk.getPathString()); } else { if (i != null) { remove(i.getEntryPathString()); conflicts.remove(i.getEntryPathString()); } else { } } } else { } } }</code><technical_language>is if entry.getLastModifiedInstant() returns EPOCH. 'entry.getLastModified() == 0' set lastModified in this case</technical_language>

Target:
void processEntry(CanonicalTreeParser m, DirCacheBuildIterator i, WorkingTreeIterator f) throws IOException { if (m != null) { checkValidPath(m); if (i == null) { if (f != null && !FileMode.TREE.equals(f.getEntryFileMode()) && !f.isEntryIgnored()) { if (failOnConflict) { conflicts.add(walk.getPathString()); } else { update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } } else update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } else if (f == null || !m.idEqual(i)) { update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); } else if (i.getDirCacheEntry() != null) { if (f.isModified(i.getDirCacheEntry(), true, this.walk.getObjectReader()) || i.getDirCacheEntry().getStage() != 0) update(m.getEntryPathString(), m.getEntryObjectId(), m.getEntryFileMode()); else { DirCacheEntry entry = i.getDirCacheEntry(); Instant mtime = entry.getLastModifiedInstant(); if (mtime == null || mtime.equals(Instant.EPOCH)) { entry.setLastModified(f.getEntryLastModifiedInstant()); } keep(entry); } } else keep(i.getDirCacheEntry()); } else { if (f != null) { if (walk.isDirectoryFileConflict()) { conflicts.add(walk.getPathString()); } else { if (i != null) { remove(i.getEntryPathString()); conflicts.remove(i.getEntryPathString()); } else { } } } else { } } }
Source:
<code>public void managePermissionCanChangeUsageStatistics() throws Exception { j.jenkins.setSecurityRealm(j.createDummySecurityRealm()); j.jenkins.setAuthorizationStrategy(new MockAuthorizationStrategy() .grant(Jenkins.MANAGE, Jenkins.READ).everywhere().toEveryone()); boolean previousValue = j.jenkins.isUsageStatisticsCollected(); HtmlForm form = j.createWebClient().goTo("configure").getFormByName("config"); form.getInputByName("_.usageStatisticsCollected").setChecked(!previousValue); j.submit(form); <START> assertThat("Can set UsageStadistics", j.jenkins.isUsageStatisticsCollected(), not(previousValue)); <END> }</code><technical_language>suggestion assertThat("Can set UsageStatistics", j.jenkins.isUsageStatisticsCollected(), not(previousValue));</technical_language>

Target:
public void managePermissionCanChangeUsageStatistics() throws Exception { j.jenkins.setSecurityRealm(j.createDummySecurityRealm()); j.jenkins.setAuthorizationStrategy(new MockAuthorizationStrategy() .grant(Jenkins.MANAGE, Jenkins.READ).everywhere().toEveryone()); boolean previousValue = j.jenkins.isUsageStatisticsCollected(); HtmlForm form = j.createWebClient().goTo("configure").getFormByName("config"); form.getInputByName("_.usageStatisticsCollected").setChecked(!previousValue); j.submit(form); assertThat("Can set UsageStatistics", j.jenkins.isUsageStatisticsCollected(), not(previousValue)); }
Source:
<code>protected AbstractTextZoomHandler(int fontSizeOffset) { <START> fFontDiff= fontSizeOffset; <END> }</code><technical_language>rename fFontSizeOffset</technical_language>

Target:
protected AbstractTextZoomHandler(int fontSizeOffset) { fFontSizeOffset= fontSizeOffset; }
Source:
<code>public static Permissionable findParentPermissionable(String parent) throws DotDataException { Permissionable permissionableParent = null; try { User systemUser = APILocator.getUserAPI().getSystemUser(); Identifier iden = APILocator.getIdentifierAPI().find(parent); if(UtilMethods.isSet(iden) && UtilMethods.isSet(iden.getAssetType())){ if(iden.getAssetType().equals("folder")){ permissionableParent = APILocator.getFolderAPI().find(parent,systemUser,false); }else{ Contentlet contentlet = APILocator.getContentletAPI() <START> .search("+identifier:" + parent + " +working:true", 1, 0, null, systemUser, false) <END> .get(0); if (contentlet.isHost()) { permissionableParent = contentlet; } else { permissionableParent = contentlet.getParentPermissionable(); } } } else { throw new DotDataException("Parent Identifier: " + parent + " does NOT exist."); } } catch (DotSecurityException e) { Logger.error(Rule.class, e.getMessage(), e); throw new DotRuntimeException(e.getMessage(), e); } return permissionableParent; }</code><technical_language>aware get index out of bounds exception, expecting a return value, need handle this exception</technical_language>

Target:
public static Permissionable findParentPermissionable(String parent) throws DotDataException { Permissionable permissionableParent = null; try { User systemUser = APILocator.getUserAPI().getSystemUser(); Identifier iden = APILocator.getIdentifierAPI().find(parent); if(UtilMethods.isSet(iden) && UtilMethods.isSet(iden.getAssetType())){ if(iden.getAssetType().equals("folder")){ permissionableParent = APILocator.getFolderAPI().find(parent,systemUser,false); }else{ Contentlet contentlet = APILocator.getContentletAPI() .search("+identifier:" + parent + " +working:true", 1, 0, null, systemUser, false) .get(0); if (contentlet.isHost()) { permissionableParent = contentlet; } else { permissionableParent = contentlet.getParentPermissionable(); } } } else { throw new DotDataException("Parent Identifier: " + parent + " does NOT exist."); } } catch (DotSecurityException | IndexOutOfBoundsException e) { Logger.error(Rule.class, e.getMessage(), e); throw new DotRuntimeException(e.getMessage(), e); } return permissionableParent; }
Source:
<code>public boolean filter(RowData row) { <START> if (notNullCheck) { <END> for (int index : notNullFieldIndices) { if (row.isNullAt(index)) { if (notNullEnforcer == NotNullEnforcer.ERROR) { String optionKey = ExecutionConfigOptions.TABLE_EXEC_SINK_NOT_NULL_ENFORCER.key(); throw new TableException( String.format("Column '%s' is NOT NULL, however, a null value is being written into it. " + "You can set job configuration '" + optionKey + "'='drop' " + "to suppress this exception and drop such records silently.", allFieldNames[index])); } else { return false; } } } } return true; }</code><technical_language>nit: return false notNullCheck is false, reduce nesting depth</technical_language>

Target:
public boolean filter(RowData row) { if (!notNullCheck) { return true; } for (int index : notNullFieldIndices) { if (row.isNullAt(index)) { if (notNullEnforcer == NotNullEnforcer.ERROR) { String optionKey = ExecutionConfigOptions.TABLE_EXEC_SINK_NOT_NULL_ENFORCER.key(); throw new TableException( String.format("Column '%s' is NOT NULL, however, a null value is being written into it. " + "You can set job configuration '" + optionKey + "'='drop' " + "to suppress this exception and drop such records silently.", allFieldNames[index])); } else { return false; } } } return true; }
Source:
<code>public DeleteAMapComponentObject deleteMap() { waitForElementByElement(actionDropDown); <START> Actions actions = new Actions(driver); <END> actions .click(actionDropDown) .click(deleteMapButton) .build() .perform(); return new DeleteAMapComponentObject(driver); }</code><technical_language>is action object necessary here? enough clicking desired elements click methods</technical_language>

Target:
public DeleteAMapComponentObject deleteMap() { waitForElementByElement(actionDropDown); actionDropDown.click(); deleteMapButton.click(); return new DeleteAMapComponentObject(driver); }
Source:
<code><START> public @Nullable CauseOfBlockage canRun(Queue.Item item) { <END> return null; }</code><technical_language>@CheckForNull. In general @Nullable in special cases giving static checks more complex considerations a human prove part of a program is correct a static analysis tool for a NullPointerException; adding in (technically superfluous) null checks in cases onerous</technical_language>

Target:
public @CheckForNull CauseOfBlockage canRun(Queue.Item item) { return null; }
Source:
<code><START> private API getApi() { <END> ApplicationMode appMode = getCurrent().get(ApplicationMode.class); API api = new API(); api.setTime(DateMapper.map(new Date(), null)); for (DetailedLink detailedLink : getLinks()) { api.getLinks().add(LinkHelper.createLink(detailedLink.getHref(), detailedLink.getRel())); if (detailedLink.isSetLinkCapabilities() && detailedLink.getLinkCapabilities().isSetSearchable() && detailedLink.getLinkCapabilities().isSearchable()) { api.getLinks().add(LinkHelper.createLink(detailedLink.getHref(), detailedLink.getRel(), detailedLink.getRequest().getUrl().getParametersSets())); } api.setSpecialObjects(new SpecialObjects()); if (appMode != ApplicationMode.GlusterOnly) { api.getSpecialObjects().getLinks().add(createBlankTemplateLink()); } api.getSpecialObjects().getLinks().add(createRootTagLink()); } return api; }</code><technical_language>prefer getGlusterApi() calling</technical_language>

Target:
private API getApi() { API api = new API(); api.setTime(DateMapper.map(new Date(), null)); for (DetailedLink detailedLink : getLinks()) { api.getLinks().add(LinkHelper.createLink(detailedLink.getHref(), detailedLink.getRel())); if (detailedLink.isSetLinkCapabilities() && detailedLink.getLinkCapabilities().isSetSearchable() && detailedLink.getLinkCapabilities().isSearchable()) { api.getLinks().add(LinkHelper.createLink(detailedLink.getHref(), detailedLink.getRel(), detailedLink.getRequest().getUrl().getParametersSets())); } api.setSpecialObjects(new SpecialObjects()); api.getSpecialObjects().getLinks().add(createBlankTemplateLink()); api.getSpecialObjects().getLinks().add(createRootTagLink()); } return api; }
Source:
<code>public String[] getUsernames() { <START> Set<String> ret = new HashSet<String>(); <END> ret.addAll(credentials.keySet()); ret.addAll(promptedCredentials); return (String[]) ret.toArray(new String[ret.size()]); }</code><technical_language>making a sorted set results more consistent</technical_language>

Target:
public String[] getUsernames() { SortedSet<String> ret = new TreeSet<String>(); ret.addAll(credentials.keySet()); ret.addAll(promptedCredentials); return (String[]) ret.toArray(new String[ret.size()]); }
Source:
<code>private double calculateStepSize() { double maxFeedRate = jogService.getFeedRate(); <START> return (maxFeedRate / 60) * (JOG_COMMAND_INTERVAL / 1000.0) * 1.2; <END> }</code><technical_language>60 60.0 avoid rounding</technical_language>

Target:
private double calculateStepSize() { double maxFeedRate = jogService.getFeedRate(); return (maxFeedRate / 60.0) * (JOG_COMMAND_INTERVAL / 1000.0) * 1.2; }
Source:
<code>public Operation response(int key, Response response) { <START> this.addResponse(String.valueOf(key),response); <END> this.addResponseObject(String.valueOf(key),response); return this; }</code><technical_language>add responseObject</technical_language>

Target:
public Operation response(int key, Response response) { this.addResponseObject(String.valueOf(key),response); return this; }
Source:
<code>private void pushAllCachingStores() { <START> CachingFreenetStore<?>[] cachingStoresSnapshot = null; <END> while(true) { synchronized (cachingStores) { cachingStoresSnapshot = this.cachingStores.toArray(new CachingFreenetStore[cachingStores.size()]); } for(CachingFreenetStore<?> cfs : cachingStoresSnapshot) { int k=0; while(k < numberOfKeysToWrite) { long sizeBlock = cfs.pushLeastRecentlyBlock(); if(sizeBlock == -1) break; synchronized(this) { size -= sizeBlock; assert(size >= 0); if(size < 0) { Logger.error(this, "Cache broken: Size = "+size); size = 0; } if(size == 0) return; } k++; } } } }</code><technical_language>move this line, too</technical_language>

Target:
private void pushAllCachingStores() { while(true) { CachingFreenetStore<?>[] cachingStoresSnapshot = null; synchronized (cachingStores) { cachingStoresSnapshot = this.cachingStores.toArray(new CachingFreenetStore[cachingStores.size()]); } for(CachingFreenetStore<?> cfs : cachingStoresSnapshot) { int k=0; while(k < numberOfKeysToWrite) { long sizeBlock = cfs.pushLeastRecentlyBlock(); if(sizeBlock == -1) break; synchronized(this) { size -= sizeBlock; assert(size >= 0); if(size < 0) { Logger.error(this, "Cache broken: Size = "+size); size = 0; } if(size == 0) return; } k++; } } } }
Source:
<code>public void reset() { rollbackFailed = false; commitFailed = false; prepareFailed = false; putFailed = false; removeFailed = false; <START> clearFailed = false; <END> putMapFailed = false; dontFailPrepare = false; isFailing = true; }</code><technical_language>I this replaceFailed = false instead</technical_language>

Target:
public void reset() { rollbackFailed = false; commitFailed = false; prepareFailed = false; putFailed = false; removeFailed = false; replaceFailed = false; clearFailed = false; putMapFailed = false; dontFailPrepare = false; isFailing = true; }
Source:
<code>public void filenameFilterTest() throws IOException { <START> File tempFile = File.createTempFile("ambry", ".tmp"); <END> tempFile.deleteOnExit(); int validFileCount = 10; int invalidFileCount = 5; Set<File> validFiles = new HashSet<>(validFileCount); File tempDir = Files.createTempDirectory("nameHelper-" + UtilsTest.getRandomString(10)).toFile(); tempDir.deleteOnExit(); try { String filename = LogSegmentNameHelper.nameToFilename(""); File file = createFile(tempDir, filename); validFiles.add(file); for (int i = 1; i < validFileCount; i++) { long pos = Utils.getRandomLong(TestUtils.RANDOM, 1000); long gen = Utils.getRandomLong(TestUtils.RANDOM, 1000); filename = LogSegmentNameHelper.nameToFilename(LogSegmentNameHelper.getName(pos, gen)); file = createFile(tempDir, filename); validFiles.add(file); } for (int i = 0; i < invalidFileCount; i++) { filename = UtilsTest.getRandomString(10); switch (i) { case 0: filename = filename + "_index"; break; case 1: filename = filename + LogSegmentNameHelper.SUFFIX + "_temp"; break; default: break; } createFile(tempDir, filename); } Set<File> filteredFiles = new HashSet<>(Arrays.asList(tempDir.listFiles(LogSegmentNameHelper.LOG_FILE_FILTER))); assertEquals("Filtered files do not have the valid files", validFiles, filteredFiles); } finally { File[] files = tempDir.listFiles(); if (files != null) { for (File file : files) { assertTrue("The file [" + file.getAbsolutePath() + "] could not be deleted", file.delete()); } } assertTrue("The directory [" + tempDir.getAbsolutePath() + "] could not be deleted", tempDir.delete()); } }</code><technical_language>this temporary file. I</technical_language>

Target:
public void filenameFilterTest() throws IOException { int validFileCount = 10; int invalidFileCount = 5; Set<File> validFiles = new HashSet<>(validFileCount); File tempDir = Files.createTempDirectory("nameHelper-" + UtilsTest.getRandomString(10)).toFile(); tempDir.deleteOnExit(); try { String filename = LogSegmentNameHelper.nameToFilename(""); File file = createFile(tempDir, filename); validFiles.add(file); for (int i = 1; i < validFileCount; i++) { long pos = Utils.getRandomLong(TestUtils.RANDOM, 1000); long gen = Utils.getRandomLong(TestUtils.RANDOM, 1000); filename = LogSegmentNameHelper.nameToFilename(LogSegmentNameHelper.getName(pos, gen)); file = createFile(tempDir, filename); validFiles.add(file); } for (int i = 0; i < invalidFileCount; i++) { filename = UtilsTest.getRandomString(10); switch (i) { case 0: filename = filename + "_index"; break; case 1: filename = filename + LogSegmentNameHelper.SUFFIX + "_temp"; break; default: break; } createFile(tempDir, filename); } Set<File> filteredFiles = new HashSet<>(Arrays.asList(tempDir.listFiles(LogSegmentNameHelper.LOG_FILE_FILTER))); assertEquals("Filtered files do not have the valid files", validFiles, filteredFiles); } finally { File[] files = tempDir.listFiles(); if (files != null) { for (File file : files) { assertTrue("The file [" + file.getAbsolutePath() + "] could not be deleted", file.delete()); } } assertTrue("The directory [" + tempDir.getAbsolutePath() + "] could not be deleted", tempDir.delete()); } }
Source:
<code>public <T> Subscription addOnAddedListener(final Class<T> beanClass, final BeanAddedListener<? super T> listener) { DolphinUtils.assertIsDolphinBean(beanClass); if (beanAddedListenerMap.containsKey(beanClass)) { beanAddedListenerMap.get(beanClass).add(listener); } else { <START> beanAddedListenerMap.put(beanClass, Arrays.asList(listener)); <END> } return () -> { if (beanAddedListenerMap.containsKey(beanClass)) { beanAddedListenerMap.get(beanClass).remove(listener); } }; }</code><technical_language>Arrays.asList() provide a mutable list</technical_language>

Target:
public <T> Subscription addOnAddedListener(final Class<T> beanClass, final BeanAddedListener<? super T> listener) { DolphinUtils.assertIsDolphinBean(beanClass); beanAddedListenerMap.computeIfAbsent(beanClass, s -> new ArrayList()).add(listener); return () -> { if (beanAddedListenerMap.containsKey(beanClass)) { beanAddedListenerMap.get(beanClass).remove(listener); } }; }
Source:
<code>private void doGetByLocalCopy() throws IOException { System.err.print("Copying " + jarUrl + " ..."); File f = url2file(jarUrl); if (!f.exists()) { <START> StringBuilder msg = new StringBuilder(); <END> msg.append("\n"); msg.append("Can not find the %s at this location: %s\n"); msg.append("Please provide alternative URL"); f = url2file(ui.readString(null, msg.toString(), name, jarUrl)); } Files.copy(f, dst); }</code><technical_language>Concatenate calls append: StringBuilder msg = new StringBuilder() .append("\n") .append("Can find %s this location: %s\n") .append("Please provide alternative URL");</technical_language>

Target:
private void doGetByLocalCopy() throws IOException { System.err.print("Copying " + jarUrl + " ..."); File f = url2file(jarUrl); if (!f.exists()) { StringBuilder msg = new StringBuilder() .append("\n") .append("Can not find the %s at this location: %s\n") .append("Please provide alternative URL"); f = url2file(ui.readString(null, msg.toString(), name, jarUrl)); } Files.copy(f, dst); }
Source:
<code>public Vector<T> insertAll(int index, Iterable<? extends T> elements) { if ((index < 0) || (index > length())) { throw new IndexOutOfBoundsException("insert(" + index + ", e) on Vector of length " + length()); } final Vector<T> begin = take(index); final Vector<T> end = drop(index); <START> return begin.appendAll(elements).appendAll(end); <END> }</code><technical_language>(!) loops loop in previous implementation</technical_language>

Target:
public Vector<T> insertAll(int index, Iterable<? extends T> elements) { if ((index < 0) || (index > length())) { throw new IndexOutOfBoundsException("insert(" + index + ", e) on Vector of length " + length()); } HashArrayMappedTrie<Integer, T> trie = HashArrayMappedTrie.empty(); for (int i = 0; i <= length(); i++) { if (i == index) { for (T element : elements) { trie = trie.put(trie.size(), element); } } if (i < length()) { trie = trie.put(trie.size(), get(i)); } } return new Vector<>(trie); }
Source:
<code><START> public ServiceKeyAuthentication(@Provider Supplier<Credentials> creds) { <END> this.creds = checkNotNull(creds, "creds"); }</code><technical_language>constructor package protected. This is Guice injector, enforce parameters present. remove checkNotNull check</technical_language>

Target:
ServiceKeyAuthentication(@Provider Supplier<Credentials> creds) { this.creds = creds; }
Source:
<code><START> public void testShouldNotCrashOnGarbageData() { <END> byte[] n = new byte[10000]; new Random().nextBytes(n); ByteBuf randomBufferData = Unpooled.wrappedBuffer(n); EmbeddedChannel channel = new EmbeddedChannel(new BeatsParser()); channel.writeOutbound(randomBufferData); Object o = channel.readOutbound(); channel.writeInbound(o); }</code><technical_language>I is fine is tightly coupled is exception</technical_language>

Target:
public void testShouldNotCrashOnGarbageData() { thrown.expectCause(isA(BeatsParser.InvalidFrameProtocolException.class)); byte[] n = new byte[10000]; new Random().nextBytes(n); ByteBuf randomBufferData = Unpooled.wrappedBuffer(n); sendPayloadToParser(randomBufferData); }
Source:
<code>Picasso(Context context, Loader loader, ExecutorService service, Cache cache, Listener listener, Stats stats) { this.context = context; this.loader = loader; this.service = service; this.cache = cache; this.listener = listener; this.stats = stats; this.targetsToRequests = new WeakHashMap<Object, Request>(); this.requestSparseArray = new SparseArray<Request>(); this.imageReferenceQueue = new ReferenceQueue<ImageView>(); this.targetReferenceQueue = new ReferenceQueue<Target>(); CleanupThread imageRefQueueThread = new CleanupThread(imageReferenceQueue, handler); imageRefQueueThread.start(); CleanupThread targetRefQueueThread = new CleanupThread(targetReferenceQueue, handler); <START> targetRefQueueThread.start(); <END> }</code><technical_language>do new CleanupThread(..).start()</technical_language>

Target:
Picasso(Context context, Loader loader, ExecutorService service, Cache cache, Listener listener, Stats stats) { this.context = context; this.loader = loader; this.service = service; this.cache = cache; this.listener = listener; this.stats = stats; this.targetsToRequests = new WeakHashMap<Object, Request>(); this.referenceQueue = new ReferenceQueue<Object>(); new CleanupThread(referenceQueue, handler).start(); }
Source:
<code>public static boolean checkTakeoverInAppActivityAvailable(Context context) { if (Build.VERSION.SDK_INT < MPConfig.UI_FEATURES_MIN_API) { return false; } final Intent takeoverInAppIntent = new Intent(context, TakeoverInAppActivity.class); <START> takeoverInAppIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); <END> takeoverInAppIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); final PackageManager packageManager = context.getPackageManager(); final List<ResolveInfo> intentActivities = packageManager.queryIntentActivities(takeoverInAppIntent, 0); if (intentActivities.size() == 0) { MPLog.w(LOGTAG, TakeoverInAppActivity.class.getName() + " is not registered as an activity in your application, so takeover in-apps can't be shown."); MPLog.i(LOGTAG, "Please add the child tag <activity android:name=\"com.mixpanel.android.surveys.TakeoverInAppActivity\" /> to your <application> tag."); return false; } return true; }</code><technical_language>this flags required resolve activity in manifest</technical_language>

Target:
public static boolean checkTakeoverInAppActivityAvailable(Context context) { if (mTakeoverActivityAvailable == null) { if (Build.VERSION.SDK_INT < MPConfig.UI_FEATURES_MIN_API) { mTakeoverActivityAvailable = false; } final Intent takeoverInAppIntent = new Intent(context, TakeoverInAppActivity.class); takeoverInAppIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); takeoverInAppIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); final PackageManager packageManager = context.getPackageManager(); final List<ResolveInfo> intentActivities = packageManager.queryIntentActivities(takeoverInAppIntent, 0); if (intentActivities.size() == 0) { MPLog.w(LOGTAG, TakeoverInAppActivity.class.getName() + " is not registered as an activity in your application, so takeover in-apps can't be shown."); MPLog.i(LOGTAG, "Please add the child tag <activity android:name=\"com.mixpanel.android.takeoverinapp.TakeoverInAppActivity\" /> to your <application> tag."); mTakeoverActivityAvailable = false; } mTakeoverActivityAvailable = true; } return mTakeoverActivityAvailable; }
Source:
<code>private static String relaxPropertyName(String propertyName) { <START> return propertyName.replace("-", "").toLowerCase(); <END> }</code><technical_language>I property names converted cases, means e.g. controller.upload.onlineToOfflineTimeout controller.upload.onlinetoofflinetimeout. Is intentional</technical_language>

Target:
private static String relaxPropertyName(String propertyName) { return propertyName.replace("-", "").replace("_", "").toLowerCase(); }
Source:
<code>private void selectMapTheme() { final File[] themeFiles = Settings.getMapThemeFiles(); String currentTheme = StringUtils.EMPTY; int currentItem = 0; if (StringUtils.isNotEmpty(Settings.getCustomRenderThemeFile())) { File currentThemeFile = new File(Settings.getCustomRenderThemeFile()); currentTheme = currentThemeFile.getName(); } int index = 0; List<String> names = new ArrayList<String>(); names.add(res.getString(R.string.map_theme_builtin)); for (File file : themeFiles) { index++; if (currentTheme.equalsIgnoreCase(file.getName())) { <START> currentItem = index; <END> } names.add(file.getName()); } final int selectedItem = currentItem; AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setTitle(R.string.map_theme_select); builder.setSingleChoiceItems(names.toArray(new String[] {}), selectedItem, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int newItem) { if (newItem == selectedItem) { } else { if (newItem > 0) { Settings.setCustomRenderThemeFile(themeFiles[newItem - 1].getPath()); } else { Settings.setCustomRenderThemeFile(StringUtils.EMPTY); } mapView.setMapTheme(); } dialog.cancel(); } }); builder.show(); }</code><technical_language>Please remove index variable completely instead currentItem=names.size(); need move line for adding comparison for work, of course</technical_language>

Target:
private void selectMapTheme() { final File[] themeFiles = Settings.getMapThemeFiles(); String currentTheme = StringUtils.EMPTY; String currentThemePath = Settings.getCustomRenderThemeFilePath(); if (StringUtils.isNotEmpty(currentThemePath)) { File currentThemeFile = new File(currentThemePath); currentTheme = currentThemeFile.getName(); } int currentItem = 0; List<String> names = new ArrayList<String>(); names.add(res.getString(R.string.map_theme_builtin)); for (File file : themeFiles) { if (currentTheme.equalsIgnoreCase(file.getName())) { currentItem = names.size(); } names.add(file.getName()); } final int selectedItem = currentItem; AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setTitle(R.string.map_theme_select); builder.setSingleChoiceItems(names.toArray(new String[] {}), selectedItem, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int newItem) { if (newItem == selectedItem) { } else { if (newItem > 0) { Settings.setCustomRenderThemeFile(themeFiles[newItem - 1].getPath()); } else { Settings.setCustomRenderThemeFile(StringUtils.EMPTY); } mapView.setMapTheme(); } dialog.cancel(); } }); builder.show(); }
Source:
<code>public void should_define_correct_slugged_url() <START> { <END> assertNotNull(tags.findBySluggedName("java")); assertNotNull(tags.findBySluggedName("ruby")); assertNotNull(tags.findBySluggedName("cemaz-weird")); }</code><technical_language>open curly braces line method signature :)</technical_language>

Target:
public void should_define_correct_slugged_url() { assertEquals(tags.findByUriName("java"), java); assertEquals(tags.findByUriName("ruby"), ruby); assertEquals(tags.findByUriName("c%2b%2b"), cplus); }
Source:
<code>public void test() throws Exception { try { DesktopAgent desktop = connect(); } catch (Exception e) { <START> Assert.assertFalse(true); <END> } }</code><technical_language>Assert.fail() instead</technical_language>

Target:
public void test() throws Exception { try { DesktopAgent desktop = connect(); } catch (Exception e) { Assert.fail(); } }
Source:
<code>public boolean equals(Object obj) { <START> if (this == obj) { <END> return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } EntryValue other = (EntryValue) obj; if (key == null) { if (other.key != null) { return false; } } else if (!key.equals(other.key)) { return false; } if (value == null) { if (other.value != null) { return false; } } else if (!value.equals(other.value)) { return false; } return true; }</code><technical_language>guava</technical_language>

Target:
public boolean equals(Object obj) { if (!(obj instanceof EntryValue)) { return false; } final EntryValue other = (EntryValue) obj; return Objects.equal(key, other.key) && Objects.equal(value, other.value); }
Source:
<code>public void visit(MetricsVisitor visitor) { <START> updateGaugeValues(percentile); <END> visitor.gauge(this); }</code><technical_language>this removed if this is updated in getValue</technical_language>

Target:
public void visit(MetricsVisitor visitor) { visitor.gauge(this); }
Source:
<code>private static String prepareUrl( final String resolvedUrl, final File deprecatedFile, final String url, File basedir, String defaultFilePath ) { if ( resolvedUrl != null && !NO_URL.equals( resolvedUrl ) ) { return resolvedUrl; } if ( deprecatedFile != null && url != null && !url.isEmpty() ) { throw new IllegalArgumentException( "You can't use both overrideFile and overrideUrl" ); } if ( deprecatedFile != null && deprecatedFile.exists() ) { try { <START> return deprecatedFile.toURI().toURL().toExternalForm(); <END> } catch ( MalformedURLException e ) { throw new RuntimeException( e ); } } final Path basedirPath = basedir.toPath(); if ( url != null && UrlRequester.isStringUrl( url ) ) { try { return basedirPath.toUri().toURL().toExternalForm(); } catch ( MalformedURLException e ) { throw new RuntimeException( e ); } } final Path defaultPath = basedirPath.resolve( defaultFilePath ); if ( Files.exists( defaultPath ) ) { try { return defaultPath.toUri().toURL().toExternalForm(); } catch ( MalformedURLException e ) { throw new RuntimeException( e ); } } return NO_URL; }</code><technical_language>toURI().toString() enough</technical_language>

Target:
private static String prepareUrl( final String resolvedUrl, final File deprecatedFile, final String url, File basedir, String defaultFilePath ) { if ( resolvedUrl != null && !NO_URL.equals( resolvedUrl ) ) { return resolvedUrl; } if ( deprecatedFile != null && url != null && !url.isEmpty() ) { throw new IllegalArgumentException( "You can't use both overrideFile and overrideUrl" ); } if ( deprecatedFile != null && deprecatedFile.exists() ) { return deprecatedFile.toURI().toString(); } final Path basedirPath = basedir.toPath(); if ( url != null && UrlRequester.isStringUrl( url ) ) { return basedirPath.toUri().toString(); } final Path defaultPath = basedirPath.resolve( defaultFilePath ); if ( Files.exists( defaultPath ) ) { return defaultPath.toUri().toString(); } return NO_URL; }
Source:
<code>public boolean act (float delta) { if (complete) return true; complete = true; Pool pool = getPool(); setPool(null); try { Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n && actor != null; i++) { <START> if (currentAction.getActor()!=null && !currentAction.act(delta)) <END> complete = false; if (actor == null) return true; if (actor == null) return true; } return complete; } finally { setPool(pool); } }</code><technical_language>forgot java Action currentAction = actions.get(i);</technical_language>

Target:
public boolean act (float delta) { if (complete) return true; complete = true; Pool pool = getPool(); setPool(null); try { Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n && actor != null; i++) { Action currentAction = actions.get(i); if (currentAction.getActor()!=null && !currentAction.act(delta)) complete = false; if (actor == null) return true; } return complete; } finally { setPool(pool); } }
Source:
<code>public void startElement(TagNode node) { if (!stack.isEmpty()) { <START> stack.peekFirst().hasAlternativeContent = true; <END> } if (isObject(node)) { stack.addFirst(new ObjectEntry(node)); } }</code><technical_language>peek()</technical_language>

Target:
public void startElement(TagNode node) { object = isObject(node) ? node : null; }
Source:
<code>private void createShallowFile(ObjectId... shallowCommits) throws IOException { <START> rw = createRevWalk(); <END> StringBuilder builder = new StringBuilder(); for (ObjectId commit : shallowCommits) { builder.append(commit.getName() + "\n"); } JGitTestUtil.write(new File(db.getDirectory(), "shallow"), builder.toString()); }</code><technical_language>a new issue, worth fixing anyway: this leaks ObjectReader</technical_language>

Target:
private void createShallowFile(ObjectId... shallowCommits) throws IOException { rw.close(); rw = createRevWalk(); StringBuilder builder = new StringBuilder(); for (ObjectId commit : shallowCommits) { builder.append(commit.getName() + "\n"); } JGitTestUtil.write(new File(db.getDirectory(), "shallow"), builder.toString()); }
Source:
<code>private void addObjectsToTable(CorfuRuntime rt, final int count) { System.out.println("Start Writing Java Obj" + System.currentTimeMillis()); long start = System.currentTimeMillis(); Map<UUID, Event> map = rt.getObjectsView() .build() .setStreamName("s1") .setType(CorfuTable.class) .open(); Event event; for(int i=0; i<count; i++) { event = new Event(i, "TestEvent"+i, 8000, <START> 20000, 10 <END> ); rt.getObjectsView().TXBegin(); map.put(UUID.randomUUID(), event); rt.getObjectsView().TXEnd(); } long end = System.currentTimeMillis(); System.out.println("Time Taken: "+ (end - start)); System.out.println("End Writing Java Obj" + System.currentTimeMillis()); }</code><technical_language>variable pass in parameters instead of magic numbers</technical_language>

Target:
private void addObjectsToTable(CorfuRuntime rt, final int count) { System.out.println("Start Writing Java Obj" + System.currentTimeMillis()); long start = System.currentTimeMillis(); Map<UUID, Event> map = rt.getObjectsView() .build() .setStreamName("s1") .setType(CorfuTable.class) .open(); Event event; for(int i=0; i<count; i++) { event = new Event(i, "TestEvent"+i, randomPort, eventTime, randomFreq ); rt.getObjectsView().TXBegin(); map.put(UUID.randomUUID(), event); rt.getObjectsView().TXEnd(); } long end = System.currentTimeMillis(); System.out.println("Time Taken: "+ (end - start)); System.out.println("End Writing Java Obj" + System.currentTimeMillis()); }
Source:
<code>public void testClearMessages() { final AbstractCheck check = new DummyAbstractCheck(); check.log(0, "key", "args"); final Collection<LocalizedMessage> messages = (Collection<LocalizedMessage>) Whitebox.getInternalState(check, "messages"); check.clearMessages(); <START> Assert.assertEquals(0, messages.size()); <END> }</code><technical_language>add assertion right this messages' size 0</technical_language>

Target:
public void testClearMessages() { final AbstractCheck check = new DummyAbstractCheck(); check.log(0, "key", "args"); final Collection<LocalizedMessage> messages = (Collection<LocalizedMessage>) Whitebox.getInternalState(check, "messages"); Assert.assertEquals(1, messages.size()); check.clearMessages(); Assert.assertEquals(0, messages.size()); }
Source:
<code>public void testgetServerAddress_ValidIpAndValidPort_ShouldGetAddressSemiColonPort() { final String ipAddress = "192.168.1.186"; final int port = 9300; final Server server = Server.builder().withIpAddress(ipAddress).withEsTransportTcpPort(port).build(); ESClient esClient = new ESClient(); final String fullAddress = esClient.getServerAddress(server); <START> final String expectedAddress = ipAddress + ":" + port; <END> assertEquals(expectedAddress, fullAddress); }</code><technical_language>replaced StringPool.COLON</technical_language>

Target:
public void testgetServerAddress_ValidIpAndValidPort_ShouldGetAddressSemiColonPort() { final String ipAddress = "192.168.1.186"; final int port = 9300; final Server server = Server.builder().withIpAddress(ipAddress).withEsTransportTcpPort(port).build(); final ESClient esClient = new ESClient(); final String fullAddress = esClient.getServerAddress(server); final String expectedAddress = ipAddress + StringPool.COLON + port; assertEquals(expectedAddress, fullAddress); }
Source:
<code>public void checkMoveItem0() throws Exception { setFieldsForTest("test0"); projectExplorer.openItemByPath(pathToPackageInChePrefix + "/r/A0.java"); editor.waitActive(); editor.waitTextIntoEditor(contentFromInA); projectExplorer.waitAndSelectItemByName("A0.java"); menu.runCommand( TestMenuCommandsConstants.Assistant.ASSISTANT, TestMenuCommandsConstants.Assistant.Refactoring.REFACTORING, TestMenuCommandsConstants.Assistant.Refactoring.MOVE); refactor.waitMoveItemFormIsOpen(); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); menu.runCommand( TestMenuCommandsConstants.Assistant.ASSISTANT, TestMenuCommandsConstants.Assistant.Refactoring.REFACTORING, TestMenuCommandsConstants.Assistant.Refactoring.MOVE); refactor.waitMoveItemFormIsOpen(); refactor.clickOnExpandIconTree(PROJECT_NAME); refactor.clickOnExpandIconTree("/src/main/java"); refactor.chooseDestinationForItem("p1"); refactor.clickOkButtonRefactorForm(); <START> loader.waitOnClosed(); <END> refactor.waitMoveItemFormIsClosed(); loader.waitOnClosed(); events.waitExpectedMessage(APPLY_WORKSPACE_CHANGES, LOAD_PAGE_TIMEOUT_SEC); projectExplorer.openItemByPath(pathToPackageInChePrefix + "/p1/A0.java"); editor.waitTextIntoEditor(contentFromOutA); projectExplorer.waitDisappearItemByPath(pathToPackageInChePrefix + "/r/A0.java"); editor.closeFileByNameWithSaving("A0"); }</code><technical_language>put this in places. Do understand needed</technical_language>

Target:
public void checkMoveItem0() throws Exception { setFieldsForTest("test0"); projectExplorer.openItemByPath(pathToPackageInChePrefix + "/r/A0.java"); editor.waitActive(); editor.waitTextIntoEditor(contentFromInA); projectExplorer.waitAndSelectItemByName("A0.java"); menu.runCommand( TestMenuCommandsConstants.Assistant.ASSISTANT, TestMenuCommandsConstants.Assistant.Refactoring.REFACTORING, TestMenuCommandsConstants.Assistant.Refactoring.MOVE); refactor.waitMoveItemFormIsOpen(); refactor.clickCancelButtonRefactorForm(); refactor.waitRenameFieldFormIsClosed(); menu.runCommand( TestMenuCommandsConstants.Assistant.ASSISTANT, TestMenuCommandsConstants.Assistant.Refactoring.REFACTORING, TestMenuCommandsConstants.Assistant.Refactoring.MOVE); refactor.waitMoveItemFormIsOpen(); refactor.clickOnExpandIconTree(PROJECT_NAME); refactor.clickOnExpandIconTree("/src/main/java"); refactor.chooseDestinationForItem("p1"); refactor.clickOkButtonRefactorForm(); loader.waitOnClosed(); refactor.waitMoveItemFormIsClosed(); events.waitExpectedMessage(APPLY_WORKSPACE_CHANGES, DEFAULT_TIMEOUT); projectExplorer.openItemByPath(pathToPackageInChePrefix + "/p1/A0.java"); editor.waitTextIntoEditor(contentFromOutA); projectExplorer.waitDisappearItemByPath(pathToPackageInChePrefix + "/r/A0.java"); editor.closeFileByNameWithSaving("A0"); }
Source:
<code>public CompletableFuture<Long> readLastAddConfirmed() { <START> CompletableFuture<Long> counter = new CompletableFuture<>(); <END> ReadLastConfirmedCallback callback = (int rc, long lastConfirmed, Object ctx) -> { SyncCallbackUtils.finish(rc, lastConfirmed, counter); }; asyncReadLastConfirmed(callback, counter); return counter; }</code><technical_language>change counter</technical_language>

Target:
public CompletableFuture<Long> readLastAddConfirmed() { FutureReadLastConfirmed result = new FutureReadLastConfirmed(); asyncReadLastConfirmed(result, null); return result; }
Source:
<code>public CompletableFuture<Void> restoreSnapshot(String snapshotName, boolean takeFailSafeSnapshot) { CompletableFuture<Void> future = new CompletableFuture<>(); listSnapshots(Pattern.compile(snapshotName)) .whenComplete((snapshotDescriptions, err) -> { if (err != null) { future.completeExceptionally(err); return; } <START> TableName tableName = snapshotExists(snapshotName, <END> snapshotDescriptions); if (tableName == null) { future.completeExceptionally(new RestoreSnapshotException( "Unable to find the table name for snapshot=" + snapshotName)); return; } final TableName finalTableName = tableName; tableExists(finalTableName).whenComplete((exists, err2) -> { if (err2 != null) { future.completeExceptionally(err2); } else if (!exists) { completeConditionalOnFuture(future, cloneSnapshot(snapshotName, finalTableName)); } else { isTableDisabled(finalTableName).whenComplete((disabled, err4) -> { if (err4 != null) { future.completeExceptionally(err4); } else if (!disabled) { future.completeExceptionally( new TableNotDisabledException(finalTableName)); } else { completeConditionalOnFuture(future, restoreSnapshot(snapshotName, takeFailSafeSnapshot)); } }); } }); }); return future; }</code><technical_language>tableName final instead of additional finalTableName</technical_language>

Target:
public CompletableFuture<Void> restoreSnapshot(String snapshotName, boolean takeFailSafeSnapshot) { CompletableFuture<Void> future = new CompletableFuture<>(); listSnapshots(Pattern.compile(snapshotName)).whenComplete( (snapshotDescriptions, err) -> { if (err != null) { future.completeExceptionally(err); return; } final TableName tableName = snapshotExists(snapshotName,snapshotDescriptions); if (tableName == null) { future.completeExceptionally(new RestoreSnapshotException( "Unable to find the table name for snapshot=" + snapshotName)); return; } tableExists(tableName) .whenComplete((exists, err2) -> { if (err2 != null) { future.completeExceptionally(err2); } else if (!exists) { completeConditionalOnFuture(future,cloneSnapshot(snapshotName, tableName)); } else { isTableDisabled(tableName).whenComplete( (disabled, err4) -> { if (err4 != null) { future.completeExceptionally(err4); } else if (!disabled) { future.completeExceptionally(new TableNotDisabledException(tableName)); } else { completeConditionalOnFuture(future, restoreSnapshot(snapshotName,takeFailSafeSnapshot)); } }); } }); }); return future; }
Source:
<code>public AlertFragment getAlertArea() { <START> WebElement element = browser.findElement(By.cssSelector(AlertFragment.ROOT_SELECTOR)); <END> AlertFragment alert = Graphene.createPageFragment(AlertFragment.class, element); return alert; }</code><technical_language>I suggest add Graphene.waitGui() this element is visible</technical_language>

Target:
public AlertFragment getAlertArea() { By alertSelector = By.cssSelector(AlertFragment.ROOT_SELECTOR); Graphene.waitGui().until().element(alertSelector).is().visible(); WebElement element = browser.findElement(alertSelector); AlertFragment alert = Graphene.createPageFragment(AlertFragment.class, element); return alert; }
Source:
<code>private void mergeBranch(String branchToMerge, boolean squash) throws Exception { SWTBotShell mergeDialog = openMergeDialog(); mergeDialog.bot().tree().getTreeItem(LOCAL_BRANCHES).expand().getNode(branchToMerge).select(); <START> if (squash) { <END> mergeDialog.bot().radio(UIText.MergeTargetSelectionDialog_MergeTypeSquashButton).click(); } mergeDialog.bot().button(UIText.MergeTargetSelectionDialog_ButtonMerge).click(); bot.shell(UIText.MergeAction_MergeResultTitle).close(); }</code><technical_language>style nit: braces single line blocks</technical_language>

Target:
private void mergeBranch(String branchToMerge, boolean squash) throws Exception { SWTBotShell mergeDialog = openMergeDialog(); mergeDialog.bot().tree().getTreeItem(LOCAL_BRANCHES).expand().getNode(branchToMerge).select(); if (squash) mergeDialog.bot().radio(UIText.MergeTargetSelectionDialog_MergeTypeSquashButton).click(); mergeDialog.bot().button(UIText.MergeTargetSelectionDialog_ButtonMerge).click(); bot.shell(UIText.MergeAction_MergeResultTitle).close(); }
Source:
<code><START> public ExpressionTree ENCAPSULATED_COMPLEX_VARIABLE() { <END> return b.<ExpressionTree>nonterminal(PHPLexicalGrammar.COMPLEX_ENCAPS_VARIABLE) .is(f.encapsulatedComplexVariable( b.token(PHPPunctuator.LCURLYBRACE), b.token(PHPLexicalGrammar.NEXT_IS_DOLLAR), EXPRESSION(), b.token(PHPPunctuator.RCURLYBRACE) )); }</code><technical_language>![MAJOR](<LINK_1> Rename this method name match regular expression '^[a-z][a-zA-Z0-9]*$'. [![rule](<LINK_2>](<LINK_0></technical_language>

Target:
public ExpressionTree ENCAPSULATED_COMPLEX_VARIABLE() { return b.<ExpressionTree>nonterminal(PHPLexicalGrammar.COMPLEX_ENCAPS_VARIABLE) .is(f.encapsulatedComplexVariable( b.token(LCURLYBRACE), b.token(PHPLexicalGrammar.NEXT_IS_DOLLAR), EXPRESSION(), b.token(RCURLYBRACE) )); }
Source:
<code>public ResourceMonitorImpl(FileMonitor fileMonitor, Resource<?> resource, ResourceFactory resourceFactory, ResourceFilter resourceFilter) { <START> if (resource instanceof DirectoryResource || resource instanceof PathResource) <END> { this.fileMonitor = fileMonitor; this.resource = resource; this.resourceFactory = resourceFactory; this.resourceFilter = resourceFilter; } else { throw new IllegalArgumentException("resource parameter must be DirectoryResource or PathResource"); } }</code><technical_language>Assert.assertTrue Furnace API</technical_language>

Target:
public ResourceMonitorImpl(FileMonitor fileMonitor, Resource<?> resource, ResourceFactory resourceFactory, ResourceFilter resourceFilter) { Assert.isTrue(resource instanceof DirectoryResource || resource instanceof PathResource, "resource parameter must be either DirectoryResource or PathResource"); this.resourceIsFile = resource instanceof FileResource; this.fileMonitor = fileMonitor; this.resource = resource; this.resourceFactory = resourceFactory; this.resourceFilter = resourceFilter; }
Source:
<code>private void assertLanRemoved(Lan lan) { assertPredicate(new Predicate<String>() { @Override public boolean apply(String args) { String[] params = args.split(","); return lanApi().get(params[0], params[1]) == null; } }, complexId(lan.dataCenterId(), lan.id())); <START> } <END></code><technical_language>this ugly complex id thing. Get rid of this pattern, please</technical_language>

Target:
private void assertLanRemoved(Lan lan) { assertPredicate(new Predicate<Lan>() { @Override public boolean apply(Lan testLan) { return lanApi().get(testLan.dataCenterId(), testLan.id()) == null; } }, lan); }
Source:
<code>public Object[][] expectedParsing() { return new Object[][] { {"<LINK_8>", "eclipse", "che", "master", null}, {"<LINK_8>123", "eclipse", "che123", "master", null}, {"<LINK_0>", "eclipse", "che", "master", null}, <START> {"<LINK_4>", "eclipse", "che.with.dot", "master", null}, <END> {"<LINK_5>", "eclipse", "che-with-hyphen", "master", null}, { "<LINK_2>", "eclipse", "che-with-hyphen", "master", null }, {"<LINK_8>/", "eclipse", "che", "master", null}, {"<LINK_8>/tree/4.2.x", "eclipse", "che", "4.2.x", null}, { "<LINK_8>/tree/master/dashboard/", "eclipse", "che", "master", "dashboard/" }, { "<LINK_6>", "eclipse", "che", "master", "plugins/plugin-git/che-plugin-git-ext-git" } }; }</code><technical_language>{"<LINK_1>", ...}, {"<LINK_7>", ...}, {"<LINK_12>", ...},</technical_language>

Target:
public Object[][] expectedParsing() { return new Object[][] { {"<LINK_8>", "eclipse", "che", "master", null}, {"<LINK_8>123", "eclipse", "che123", "master", null}, {"<LINK_0>", "eclipse", "che", "master", null}, {"<LINK_4>", "eclipse", "che.with.dot", "master", null}, {"<LINK_1>", "eclipse", "-", "master", null}, {"<LINK_7>", "eclipse", "-j", "master", null}, {"<LINK_12>", "eclipse", "-", "master", null}, {"<LINK_5>", "eclipse", "che-with-hyphen", "master", null}, { "<LINK_2>", "eclipse", "che-with-hyphen", "master", null }, {"<LINK_8>/", "eclipse", "che", "master", null}, {"<LINK_3>", "eclipse", "repositorygit", "master", null}, {"<LINK_8>/tree/4.2.x", "eclipse", "che", "4.2.x", null}, { "<LINK_8>/tree/master/dashboard/", "eclipse", "che", "master", "dashboard/" }, { "<LINK_6>", "eclipse", "che", "master", "plugins/plugin-git/che-plugin-git-ext-git" } }; }