repository
stringclasses
549 values
merge
stringlengths
40
40
parent_a
stringlengths
40
40
parent_b
stringlengths
40
40
path
stringlengths
13
252
conflict_in_file
int64
0
330
conflicts_in_file
int64
1
382
before
listlengths
0
20
side_a
listlengths
0
30
base
listlengths
0
1.67k
⌀
side_b
listlengths
0
30
after
listlengths
0
20
answer
listlengths
0
62
windows_line_endings
bool
2 classes
id
stringlengths
16
16
labels
listlengths
0
41
⌀
kind
stringclasses
8 values
tags
dict
licence
stringclasses
4 values
IntelligenceModding/AdvancedPeripherals
4606244ebdde8bf75001a9e843a667baa275dab5
2a4b63cd45481269728fd2a53204d4c07096bb6d
f564efdd622d499198070baeb5f81659064db729
src/main/java/de/srendi/advancedperipherals/common/blocks/blockentities/ChatBoxEntity.java
0
2
[ "package de.srendi.advancedperipherals.common.blocks.blockentities;\n", "\n", "import de.srendi.advancedperipherals.common.addons.computercraft.peripheral.ChatBoxPeripheral;\n", "import de.srendi.advancedperipherals.common.blocks.base.PeripheralBlockEntity;\n" ]
[ "import de.srendi.advancedperipherals.common.events.Events;\n", "import de.srendi.advancedperipherals.common.setup.APBlockEntityTypes;\n" ]
[ "import de.srendi.advancedperipherals.common.events.Events;\n", "import de.srendi.advancedperipherals.common.setup.BlockEntityTypes;\n" ]
[ "import de.srendi.advancedperipherals.common.setup.BlockEntityTypes;\n" ]
[ "import net.minecraft.core.BlockPos;\n", "import net.minecraft.world.level.Level;\n", "import net.minecraft.world.level.block.entity.BlockEntity;\n", "import net.minecraft.world.level.block.entity.BlockEntityType;\n", "import net.minecraft.world.level.block.state.BlockState;\n", "import org.jetbrains.anno...
[ "import de.srendi.advancedperipherals.common.setup.APBlockEntityTypes;\n" ]
false
bec360c2dc73787a
[ "A2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
Apache-2.0
IntelligenceModding/AdvancedPeripherals
8e7a537508b055173d2434be737f421d5ea5214a
fcf77120d54b0ec282b4ca619cfad39a027f1395
0cc5d41ef19692e77a9de864c113122754688a2b
src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/CraftJob.java
0
1
[ "package de.srendi.advancedperipherals.common.addons.appliedenergistics;\n", "\n", "import appeng.api.networking.IGrid;\n", "import appeng.api.networking.IGridNode;\n", "import appeng.api.networking.crafting.*;\n", "import appeng.api.networking.security.IActionSource;\n", "import appeng.api.networking.s...
[ "import de.srendi.advancedperipherals.common.util.inventory.ItemUtil;\n" ]
[ "import de.srendi.advancedperipherals.common.util.Pair;\n", "import net.minecraft.world.item.ItemStack;\n" ]
[]
[ "import net.minecraft.world.level.Level;\n", "import org.jetbrains.annotations.NotNull;\n", "import org.jetbrains.annotations.Nullable;\n", "\n", "import java.util.concurrent.ExecutionException;\n", "import java.util.concurrent.Future;\n", "\n", "public class CraftJob implements ILuaCallback {\n", "...
[ "import de.srendi.advancedperipherals.common.util.inventory.ItemUtil;\n" ]
false
75a57eafa3331260
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
Apache-2.0
IntelligenceModding/AdvancedPeripherals
8e7a537508b055173d2434be737f421d5ea5214a
fcf77120d54b0ec282b4ca619cfad39a027f1395
0cc5d41ef19692e77a9de864c113122754688a2b
src/main/java/de/srendi/advancedperipherals/common/items/ARGogglesItem.java
0
2
[ "package de.srendi.advancedperipherals.common.items;\n", "\n" ]
[]
[ "import com.mojang.blaze3d.platform.InputConstants;\n", "import de.srendi.advancedperipherals.AdvancedPeripherals;\n", "import de.srendi.advancedperipherals.client.HudOverlayHandler;\n", "import de.srendi.advancedperipherals.common.addons.APAddons;\n", "import de.srendi.advancedperipherals.common.addons.cur...
[ "import com.mojang.blaze3d.platform.InputConstants;\n", "import de.srendi.advancedperipherals.AdvancedPeripherals;\n", "import de.srendi.advancedperipherals.client.HudOverlayHandler;\n", "import de.srendi.advancedperipherals.common.addons.APAddons;\n", "import de.srendi.advancedperipherals.common.addons.cur...
[ "import net.minecraft.network.chat.Component;\n", "import net.minecraft.world.entity.EquipmentSlot;\n", "import net.minecraft.world.item.ArmorItem;\n", "import net.minecraft.world.item.ArmorMaterials;\n", "import net.minecraft.world.item.ItemStack;\n", "import net.minecraft.world.item.TooltipFlag;\n", "...
[]
false
62647603dc71bb6b
[]
side A
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
Apache-2.0
IntelligenceModding/AdvancedPeripherals
8e7a537508b055173d2434be737f421d5ea5214a
fcf77120d54b0ec282b4ca619cfad39a027f1395
0cc5d41ef19692e77a9de864c113122754688a2b
src/main/java/de/srendi/advancedperipherals/common/items/ARGogglesItem.java
1
2
[ "\n", " ARControllerEntity controller = (ARControllerEntity) te;\n", " HudOverlayHandler.updateCanvas(controller.getCanvas());\n", " }\n", " }\n", "\n", " @Override\n", " public Component getDescription() {\n", " return Component.translatable(\"item.advan...
[ " tooltip.add(EnumColor.buildTextComponent(Component.translatable(\"item.advancedperipherals.tooltip.disabled\")));\n", " if (stack.hasTag() && stack.getTag().contains(CONTROLLER_POS, CompoundTag.TAG_INT_ARRAY)) {\n" ]
[ " tooltip.add(EnumColor.buildTextComponent(new TranslatableComponent(\"item.advancedperipherals.tooltip.disabled\")));\n", " if (stack.hasTag() && stack.getTag().contains(CONTROLLER_POS, CompoundTag.TAG_INT_ARRAY)) {\n" ]
[ " tooltip.add(EnumColor.buildTextComponent(new TranslatableComponent(\"item.advancedperipherals.tooltip.disabled\")));\n", " if (stack.hasTag() && stack.getTag().contains(CONTROLLER_POS, Tag.TAG_INT_ARRAY)) {\n" ]
[ " int[] pos = stack.getTag().getIntArray(CONTROLLER_POS);\n", " tooltip.add(Component.translatable(\"item.advancedperipherals.tooltip.ar_goggles.binding\", pos[0], pos[1], pos[2]));\n", " }\n", " }\n", "\n", " @Override\n", " public ICapabilityProvider initCapabilit...
[ " tooltip.add(EnumColor.buildTextComponent(Component.translatable(\"item.advancedperipherals.tooltip.disabled\")));\n", " if (stack.hasTag() && stack.getTag().contains(CONTROLLER_POS, CompoundTag.TAG_INT_ARRAY)) {\n" ]
false
d055c716a1237038
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
Apache-2.0
IntelligenceModding/AdvancedPeripherals
8e7a537508b055173d2434be737f421d5ea5214a
fcf77120d54b0ec282b4ca619cfad39a027f1395
0cc5d41ef19692e77a9de864c113122754688a2b
src/main/java/de/srendi/advancedperipherals/common/util/inventory/ItemUtil.java
0
1
[ "import net.minecraft.world.item.ItemStack;\n", "import net.minecraftforge.items.IItemHandler;\n", "import net.minecraftforge.registries.ForgeRegistries;\n", "import net.minecraftforge.registries.IForgeRegistry;\n", "import org.apache.logging.log4j.Level;\n", "\n", "import java.nio.charset.StandardChars...
[ " public static <T> T getRegistryEntry(String name, IForgeRegistry<T> forgeRegistry) {\n" ]
[ " public static <T extends ForgeRegistryEntry<T>> T getRegistryEntry(String name, IForgeRegistry<T> forgeRegistry) {\n" ]
[ " private ItemUtil() {\n", " }\n", "\n", " public static <T extends ForgeRegistryEntry<T>> T getRegistryEntry(String name, IForgeRegistry<T> forgeRegistry) {\n" ]
[ " ResourceLocation location;\n", " try {\n", " location = new ResourceLocation(name);\n", " } catch (ResourceLocationException ex) {\n", " location = null;\n", " }\n", "\n", " T value;\n", " if (location != null && forgeRegistry.contain...
[ " private ItemUtil() {\n", " }\n", "\n", " public static <T> T getRegistryEntry(String name, IForgeRegistry<T> forgeRegistry) {\n" ]
false
108a9f5b24e60e62
[ "B1", "B2", "B3", "A1" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
Apache-2.0
FAForever/downlords-faf-client
1a30fb16eb7ddaccd6f66dba888afd4b8bae6743
d50a27d7008de6fd1ea6d3b9cf0e0d2878981011
14047a88afe7b2bcd6540934f336c78d5881639a
src/main/java/com/faforever/client/config/UiConfig.java
0
1
[ "import com.faforever.client.chat.CountryFlagServiceImpl;\n", "import com.faforever.client.chat.PlayerInfoTooltipController;\n", "import com.faforever.client.chat.PrivateChatTabController;\n", "import com.faforever.client.chat.UrlPreviewResolver;\n", "import com.faforever.client.chat.UrlPreviewResolverImpl;...
[ "import com.faforever.client.game.TeamCardController;\n" ]
[ "import com.faforever.client.game.PopupTeamCardController;\n" ]
[ "import com.faforever.client.game.PopupTeamCardController;\n", "import com.faforever.client.hub.CommunityHubController;\n", "import com.faforever.client.hub.ConcurrentUsersController;\n" ]
[ "import com.faforever.client.leaderboard.LeaderboardController;\n", "import com.faforever.client.login.LoginController;\n", "import com.faforever.client.main.MainController;\n", "import com.faforever.client.map.MapVaultController;\n", "import com.faforever.client.map.CommentCardController;\n", "import com...
[ "import com.faforever.client.game.PopupTeamCardController;\n", "import com.faforever.client.hub.CommunityHubController;\n", "import com.faforever.client.hub.ConcurrentUsersController;\n", "import com.faforever.client.game.TeamCardController;\n" ]
false
f6bdedb241eafbea
[ "B1", "B2", "B3", "A1" ]
B then A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
1a30fb16eb7ddaccd6f66dba888afd4b8bae6743
d50a27d7008de6fd1ea6d3b9cf0e0d2878981011
14047a88afe7b2bcd6540934f336c78d5881639a
src/main/java/com/faforever/client/game/GameInfoBean.java
0
1
[ "import javafx.beans.property.SimpleObjectProperty;\n", "import javafx.beans.property.SimpleStringProperty;\n", "import javafx.beans.property.StringProperty;\n", "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n", "import javafx.collections.ObservableMap;\n", "im...
[ " private StringProperty host;\n", " private StringProperty title;\n", " private StringProperty technicalName;\n", " private StringProperty displayName;\n", " private StringProperty featuredMod;\n", " private ObjectProperty<GameAccess> access;\n", " private IntegerProperty uid;\n", " private I...
[ " private StringProperty host;\n", " private StringProperty title;\n", " private StringProperty mapName;\n", " private StringProperty featuredMod;\n", " private ObjectProperty<GameAccess> access;\n", " private IntegerProperty uid;\n", " private IntegerProperty numPlayers;\n", " private Integer...
[ " private final StringProperty host;\n", " private final StringProperty title;\n", " private final StringProperty mapName;\n", " private final StringProperty featuredMod;\n", " private final ObjectProperty<GameAccess> access;\n", " private final IntegerProperty uid;\n", " private final IntegerPro...
[ "\n", " public GameInfoBean(GameInfo gameInfo) {\n", " this();\n", " updateFromGameInfo(gameInfo);\n", " }\n", "\n", " public GameInfoBean() {\n", " uid = new SimpleIntegerProperty();\n", " host = new SimpleStringProperty();\n", " title = new SimpleStringProperty();\n", " di...
[ " private final StringProperty host;\n", " private final StringProperty title;\n", " private final StringProperty technicalName;\n", " private final StringProperty displayName;\n", " private final StringProperty featuredMod;\n", " private final ObjectProperty<GameAccess> access;\n", " private fin...
false
eabc18fb78547387
null
needs new code
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
1a30fb16eb7ddaccd6f66dba888afd4b8bae6743
d50a27d7008de6fd1ea6d3b9cf0e0d2878981011
14047a88afe7b2bcd6540934f336c78d5881639a
src/main/java/com/faforever/client/game/GamesController.java
0
1
[ "package com.faforever.client.game;\n", "\n", "import com.faforever.client.chat.PlayerInfoBean;\n" ]
[ "import com.faforever.client.fx.SceneFactory;\n", "import com.faforever.client.fx.WindowDecorator;\n" ]
[ "import com.faforever.client.fxml.FxmlLoader;\n" ]
[ "import com.faforever.client.fx.FxmlLoader;\n" ]
[ "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.legacy.domain.GameAccess;\n", "import com.faforever.client.legacy.domain.GameState;\n", "import com.faforever.client.map.MapPreviewLargeController;\n", "import com.faforever.client.map.MapService;\n", "import com.faforever.client.not...
[ "import com.faforever.client.fx.SceneFactory;\n", "import com.faforever.client.fx.WindowDecorator;\n", "import com.faforever.client.fx.FxmlLoader;\n" ]
false
844f64f78db098a8
[ "A1", "A2", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
1a30fb16eb7ddaccd6f66dba888afd4b8bae6743
d50a27d7008de6fd1ea6d3b9cf0e0d2878981011
14047a88afe7b2bcd6540934f336c78d5881639a
src/test/java/com/faforever/client/config/TestServiceConfiguration.java
0
1
[ " MapService mapService() {\n", " return mock(MapService.class);\n", " }\n", "\n", " @Bean\n", " ModService modService() {\n", " return mock(ModService.class);\n", " }\n", "\n", " @Bean\n", " PreferencesService preferencesService() throws IOException {\n", " PreferencesService ...
[ " Path tmpDir = Paths.get(\"build/tmp\");\n", " Files.createDirectories(tmpDir);\n", " when(preferencesService.getPreferencesDirectory()).thenReturn(Files.createTempDirectory(tmpDir, null));\n" ]
[ " when(preferencesService.getPreferencesDirectory()).thenReturn(Files.createTempDirectory(Paths.get(\"build/tmp\"), null));\n" ]
[ " Path tempDir = Paths.get(\"build/tmp\");\n", " Files.createDirectories(tempDir);\n", " when(preferencesService.getPreferencesDirectory()).thenReturn(Files.createTempDirectory(tempDir, null));\n" ]
[ " when(preferencesService.getPreferences()).thenReturn(preferences);\n", "\n", " return preferencesService;\n", " }\n", "}\n" ]
[ " Path tempDir = Paths.get(\"build/tmp\");\n", " Files.createDirectories(tempDir);\n", " when(preferencesService.getPreferencesDirectory()).thenReturn(Files.createTempDirectory(tempDir, null));\n" ]
false
438d7b9bdc101dba
[ "B1", "B2", "B3" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
1a30fb16eb7ddaccd6f66dba888afd4b8bae6743
d50a27d7008de6fd1ea6d3b9cf0e0d2878981011
14047a88afe7b2bcd6540934f336c78d5881639a
src/test/java/com/faforever/client/config/TestUiConfiguration.java
0
1
[ "package com.faforever.client.config;\n", "\n", "import com.faforever.client.chat.ChannelTabController;\n", "import com.faforever.client.chat.ChatController;\n", "import com.faforever.client.chat.CountryFlagService;\n", "import com.faforever.client.chat.PlayerInfoTooltipController;\n", "import com.fafor...
[ "import com.faforever.client.fx.SceneFactory;\n", "import com.faforever.client.fxml.FxmlLoader;\n", "import com.faforever.client.fxml.FxmlLoaderImpl;\n", "import com.faforever.client.game.CreateGameController;\n", "import com.faforever.client.game.EnterPasswordController;\n", "import com.faforever.client....
[ "import com.faforever.client.fxml.FxmlLoader;\n", "import com.faforever.client.fxml.FxmlLoaderImpl;\n" ]
[ "import com.faforever.client.fx.FxmlLoader;\n", "import com.faforever.client.fx.FxmlLoaderImpl;\n" ]
[ "import org.springframework.context.annotation.Bean;\n", "import org.springframework.context.annotation.Configuration;\n", "import org.springframework.context.annotation.Import;\n", "import org.springframework.context.annotation.Scope;\n", "\n", "import static org.mockito.Mockito.mock;\n", "\n", "@Con...
[ "import com.faforever.client.fx.SceneFactory;\n", "import com.faforever.client.fxml.FxmlLoader;\n", "import com.faforever.client.fxml.FxmlLoaderImpl;\n", "import com.faforever.client.game.CreateGameController;\n", "import com.faforever.client.game.EnterPasswordController;\n", "import com.faforever.client....
false
be2b506d8199d0c3
[ "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "B1", "B2" ]
A then B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f90f1c8242312a5dd5f4434cc1d8a447f4f9f946
52c00237e293baeb4628b8cca063d3cf0a862226
61ab96986da9958934370539112fd7e61a22426c
src/main/java/com/faforever/client/main/MainController.java
0
1
[ " @FXML\n", " SplitMenuButton vaultButton;\n", " @FXML\n", " SplitMenuButton leaderboardButton;\n", " @FXML\n", " ProgressBar taskProgressBar;\n", " @FXML\n", " Pane mainRoot;\n", " @FXML\n", " Button usernameButton;\n", " @FXML\n", " Pane taskPane;\n", " @FXML\n", " Labeled ...
[]
[ "\n", " @FXML\n", " Pane rankedMatchNotificationContainer;\n", "\n", " @FXML\n" ]
[ "\n" ]
[ " @FXML\n", " Pane rankedMatchNotificationPane;\n", "\n", " @Autowired\n", " Environment environment;\n", " @Autowired\n", " NewsController newsController;\n", " @Autowired\n", " ChatController chatController;\n", " @Autowired\n", " GamesController gamesController;\n", " @Autowired\...
[]
false
5fd9ed16a201ebf0
[]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f90f1c8242312a5dd5f4434cc1d8a447f4f9f946
52c00237e293baeb4628b8cca063d3cf0a862226
61ab96986da9958934370539112fd7e61a22426c
src/main/java/com/faforever/client/mod/ModDetailController.java
0
1
[ " uninstallButton.managedProperty().bind(uninstallButton.visibleProperty());\n", " installButton.managedProperty().bind(installButton.visibleProperty());\n", " progressBar.managedProperty().bind(progressBar.visibleProperty());\n", " progressBar.visibleProperty().bind(uninstallButton.visiblePropert...
[ " modDescriptionLabel.textProperty().bind(mod.descriptionProperty());\n" ]
[ " modDescriptionWebView.getEngine().loadContent(mod.getDescription());\n" ]
[ " Platform.runLater(() -> modDescriptionWebView.getEngine().loadContent(mod.getDescription()));\n" ]
[ "\n", " modService.getInstalledMods().addListener((ListChangeListener<ModInfoBean>) change -> {\n", " while (change.next()) {\n", " for (ModInfoBean modInfoBean : change.getAddedSubList()) {\n", " if (mod.getUid().equals(modInfoBean.getUid())) {\n", " setInstalled(true);...
[ " modDescriptionLabel.textProperty().bind(mod.descriptionProperty());\n" ]
false
3a7169c7590509f7
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f90f1c8242312a5dd5f4434cc1d8a447f4f9f946
52c00237e293baeb4628b8cca063d3cf0a862226
61ab96986da9958934370539112fd7e61a22426c
src/main/java/com/faforever/client/mod/ModVaultController.java
0
3
[ "package com.faforever.client.mod;\n", "\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.notification.ImmediateNotification;\n", "import com.faforever.client.notification.NotificationService;\n", "import com.faforever.client.notification.ReportAction;\n", "import com.faforev...
[ "import javafx.collections.ObservableSet;\n", "import javafx.event.ActionEvent;\n" ]
[ "import javafx.collections.ObservableSet;\n" ]
[]
[ "import javafx.fxml.FXML;\n", "import javafx.scene.Node;\n", "import javafx.scene.control.TextField;\n", "import javafx.scene.layout.AnchorPane;\n", "import javafx.scene.layout.Pane;\n", "import org.springframework.context.ApplicationContext;\n", "\n", "import javax.annotation.PostConstruct;\n", "im...
[ "import javafx.event.ActionEvent;\n" ]
false
df7d5ff4049245ab
[ "A2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f90f1c8242312a5dd5f4434cc1d8a447f4f9f946
52c00237e293baeb4628b8cca063d3cf0a862226
61ab96986da9958934370539112fd7e61a22426c
src/main/java/com/faforever/client/notification/ImmediateNotificationController.java
0
2
[ "import java.io.StringWriter;\n", "\n", "public class ImmediateNotificationController {\n", "\n", " @FXML\n", " TextArea exceptionTextArea;\n", "\n", " @FXML\n", " Label messageLabel;\n", "\n", " @FXML\n", " Label titleLabel;\n", "\n", " @FXML\n", " ButtonBar buttonBar;\n", "\n...
[ " StringWriter writer = new StringWriter();\n", " Throwable throwable = notification.getThrowable();\n", " if (throwable != null) {\n", " throwable.printStackTrace(new PrintWriter(writer));\n", " exceptionTextArea.setText(writer.toString());\n", " } else {\n", " exceptionTextA...
[ " StringWriter writer = new StringWriter();\n", " notification.getThrowable().printStackTrace(new PrintWriter(writer));\n", "\n" ]
[]
[ " titleLabel.setText(notification.getTitle());\n", " messageLabel.setText(notification.getText());\n" ]
[ " StringWriter writer = new StringWriter();\n", " Throwable throwable = notification.getThrowable();\n", " if (throwable != null) {\n", " throwable.printStackTrace(new PrintWriter(writer));\n", " exceptionTextArea.setText(writer.toString());\n", " } else {\n", " exceptionTextA...
false
33ee8743ba701687
[ "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f90f1c8242312a5dd5f4434cc1d8a447f4f9f946
52c00237e293baeb4628b8cca063d3cf0a862226
61ab96986da9958934370539112fd7e61a22426c
src/main/java/com/faforever/client/notification/ImmediateNotificationController.java
1
2
[ " titleLabel.setText(notification.getTitle());\n", " messageLabel.setText(notification.getText());\n" ]
[]
[ " exceptionTextArea.setText(writer.toString());\n" ]
[ "\n", " if (notification.getThrowable() != null) {\n", " StringWriter writer = new StringWriter();\n", " notification.getThrowable().printStackTrace(new PrintWriter(writer));\n", " exceptionTextArea.setText(writer.toString());\n", " }\n" ]
[ "\n", " if (notification.getActions() != null) {\n", " for (Action action : notification.getActions()) {\n", " buttonBar.getButtons().add(createButton(action));\n", " }\n", " }\n", " }\n", "\n", " private Button createButton(Action action) {\n", " Button button = new Bu...
[]
false
d43294c8fa54d276
[]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
0c7061948c211892b3283753d8f5c25e1c60abcc
a9fd859b75ade4a852c82e2e43c56eb6d3a3b7a0
be2febea547ca6b717b3410f6364b49b3b96e969
src/main/java/com/faforever/client/fa/ForgedAllianceServiceImpl.java
0
2
[ "package com.faforever.client.fa;\n", "\n", "import com.faforever.client.chat.PlayerInfoBean;\n", "import com.faforever.client.game.Faction;\n", "import com.faforever.client.player.PlayerService;\n", "import com.faforever.client.preferences.PreferencesService;\n", "import com.faforever.client.relay.Loca...
[]
[ "import java.net.URL;\n" ]
[ "import java.net.URI;\n" ]
[ "import java.nio.file.Path;\n", "import java.util.List;\n", "\n", "public class ForgedAllianceServiceImpl implements ForgedAllianceService {\n", "\n", " private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());\n", "\n", " @Resource\n", " PreferencesServi...
[ "import java.net.URI;\n" ]
false
e3c80d5b610956c2
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
0c7061948c211892b3283753d8f5c25e1c60abcc
a9fd859b75ade4a852c82e2e43c56eb6d3a3b7a0
be2febea547ca6b717b3410f6364b49b3b96e969
src/main/java/com/faforever/client/fa/LaunchCommandBuilder.java
0
4
[ "package com.faforever.client.fa;\n", "\n", "import com.faforever.client.game.Faction;\n", "import org.springframework.util.StringUtils;\n", "\n" ]
[]
[ "import java.net.URL;\n" ]
[ "import java.net.URI;\n" ]
[ "import java.nio.file.Path;\n", "import java.util.ArrayList;\n", "import java.util.Arrays;\n", "import java.util.List;\n", "\n", "public class LaunchCommandBuilder {\n", "\n", " private Float mean;\n", " private Float deviation;\n", " private String country;\n", " private String clan;\n", ...
[ "import java.net.URI;\n" ]
false
1606f202220d94bb
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
0c7061948c211892b3283753d8f5c25e1c60abcc
a9fd859b75ade4a852c82e2e43c56eb6d3a3b7a0
be2febea547ca6b717b3410f6364b49b3b96e969
src/main/java/com/faforever/client/fa/LaunchCommandBuilder.java
2
4
[ " public LaunchCommandBuilder logFile(Path logFile) {\n", " this.logFile = logFile;\n", " return this;\n", " }\n", "\n", " public LaunchCommandBuilder additionalArgs(List<String> additionalArgs) {\n", " this.additionalArgs = additionalArgs;\n", " return this;\n", " }\n", "\n", " ...
[ " public LaunchCommandBuilder replayUrl(String replayUrl) {\n", " this.replayUrl = replayUrl;\n" ]
[ " public LaunchCommandBuilder replayUrl(URL replayUrl) {\n", " this.replayUrl = replayUrl;\n" ]
[ " public LaunchCommandBuilder replayUri(URI replayUri) {\n", " this.replayUri = replayUri;\n" ]
[ " return this;\n", " }\n", "\n", " public LaunchCommandBuilder gameType(String gameType) {\n", " this.gameType = gameType;\n", " return this;\n", " }\n", "\n", " public LaunchCommandBuilder faction(Faction faction) {\n", " this.faction = faction;\n", " return this;\n", " }\...
[ " public LaunchCommandBuilder replayUri(URI replayUri) {\n", " this.replayUri = replayUri;\n" ]
false
f6845c43cbf44134
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
0c7061948c211892b3283753d8f5c25e1c60abcc
a9fd859b75ade4a852c82e2e43c56eb6d3a3b7a0
be2febea547ca6b717b3410f6364b49b3b96e969
src/main/java/com/faforever/client/game/GameService.java
0
2
[ "package com.faforever.client.game;\n", "\n", "import com.faforever.client.rankedmatch.OnRankedMatchNotificationListener;\n", "import javafx.beans.property.BooleanProperty;\n", "import javafx.collections.ListChangeListener;\n", "import javafx.collections.MapChangeListener;\n", "import javafx.collections...
[]
[ "import java.net.URL;\n" ]
[ "import java.net.URI;\n" ]
[ "import java.nio.file.Path;\n", "import java.util.List;\n", "import java.util.Map;\n", "import java.util.Set;\n", "import java.util.concurrent.CompletableFuture;\n", "\n", "/**\n", " * Downloads necessary maps, mods and updates before starting\n", " */\n", "public interface GameService {\n", "\n...
[ "import java.net.URI;\n" ]
false
262aa84d0efcc5dd
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
0c7061948c211892b3283753d8f5c25e1c60abcc
a9fd859b75ade4a852c82e2e43c56eb6d3a3b7a0
be2febea547ca6b717b3410f6364b49b3b96e969
src/main/java/com/faforever/client/game/GameServiceImpl.java
1
2
[ " } catch (IOException e) {\n", " notifyCantPlayReplay(replayId, e);\n", " }\n", " })\n", " .exceptionally(throwable -> {\n", " notifyCantPlayReplay(replayId, throwable);\n", " return null;\n", " });\n", " }\n", "\n", " privat...
[ " public void runWithReplay(String replayUrl, Integer replayId, String gameType, String mapName) throws IOException {\n", " //FIXME needs to update\n", " //downloadMapIfNecessary(map);\n", " Process process = forgedAllianceService.startReplay(replayUrl, replayId, gameType);\n" ]
[ " public void runWithReplay(URL replayUrl, Integer replayId) throws IOException {\n", " Process process = forgedAllianceService.startReplay(replayUrl, replayId);\n" ]
[ " public void runWithReplay(URI replayUrl, Integer replayId) throws IOException {\n", " Process process = forgedAllianceService.startReplay(replayUrl, replayId);\n" ]
[ " onGameLaunchingListeners.forEach(onGameStartedListener -> onGameStartedListener.onGameStarted(null));\n", "\n", " this.ratingMode = RatingMode.NONE;\n", " spawnTerminationListener(process);\n", " }\n", "\n", " @Override\n", " public ObservableList<GameInfoBean> getGameInfoBeans() {\n", ...
[ " public void runWithReplay(URI replayUrl, Integer replayId) throws IOException {\n", " //FIXME needs to update\n", " //downloadMapIfNecessary(map);\n", " Process process = forgedAllianceService.startReplay(replayUrl, replayId);\n" ]
false
f42af54052ad4f77
[ "B1", "A2", "A3", "B2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
87bb490b61e54d2859770900b5375fa5be7e2245
74441a2de9c3922949096a025532913659e6e4cd
11f57123156574ed25b69ec66dd79f98d2e96a06
src/main/java/com/faforever/client/api/FafApiAccessor.java
1
2
[ "\n", "import java.util.Collection;\n", "import java.util.List;\n", "import java.util.concurrent.CompletableFuture;\n", "\n", "public interface FafApiAccessor {\n", "\n", " List<PlayerAchievement> getPlayerAchievements(int playerId);\n", "\n", " List<AchievementDefinition> getAchievementDefiniti...
[ " Collection<Mod> getMods();\n" ]
[]
[ " CompletableFuture<List<ModInfoBean>> getMods();\n" ]
[ "}\n" ]
[ " Collection<Mod> getMods();\n" ]
false
c08b6cc9156ad79c
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
87bb490b61e54d2859770900b5375fa5be7e2245
74441a2de9c3922949096a025532913659e6e4cd
11f57123156574ed25b69ec66dd79f98d2e96a06
src/main/java/com/faforever/client/mod/ModService.java
0
1
[ "\n", " Set<String> getInstalledModUids();\n", "\n", " Set<String> getInstalledUiModsUids();\n", "\n", " void enableSimMods(Set<String> simMods) throws IOException;\n", "\n", " boolean isModInstalled(String uid);\n", "\n", " CompletableFuture<Void> uninstallMod(ModInfoBean mod);\n", "\n", ...
[ " CompletableFuture<List<ModInfoBean>> getMostDownloadedMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getMostLikedMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getNewestMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getMostLikedUiMods(int co...
[ " CompletableFuture<List<ModInfoBean>> searchMod(String name);\n" ]
[ " void indexAvailableMods();\n" ]
[ "}\n" ]
[ " CompletableFuture<List<ModInfoBean>> getMostDownloadedMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getMostLikedMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getNewestMods(int count);\n", "\n", " CompletableFuture<List<ModInfoBean>> getMostLikedUiMods(int co...
false
0f4831e18c7be88b
[ "A1", "A2", "A3", "A4", "A5", "A6", "A7" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
87bb490b61e54d2859770900b5375fa5be7e2245
74441a2de9c3922949096a025532913659e6e4cd
11f57123156574ed25b69ec66dd79f98d2e96a06
src/main/java/com/faforever/client/mod/ModServiceImpl.java
3
9
[ "import org.apache.lucene.index.IndexWriterConfig;\n", "import org.apache.lucene.store.Directory;\n", "import org.jetbrains.annotations.Nullable;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n" ]
[ "import org.springframework.cache.annotation.Cacheable;\n" ]
[ "import org.springframework.beans.factory.annotation.Autowired;\n" ]
[]
[ "import org.springframework.context.ApplicationContext;\n", "\n", "import javax.annotation.PostConstruct;\n", "import javax.annotation.Resource;\n", "import java.io.IOException;\n", "import java.io.InputStream;\n", "import java.lang.invoke.MethodHandles;\n", "import java.net.URL;\n", "import java.ni...
[ "import org.springframework.cache.annotation.Cacheable;\n" ]
false
adda6b332af868ac
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
87bb490b61e54d2859770900b5375fa5be7e2245
74441a2de9c3922949096a025532913659e6e4cd
11f57123156574ed25b69ec66dd79f98d2e96a06
src/main/java/com/faforever/client/mod/ModVaultController.java
0
4
[ "import javafx.collections.ObservableList;\n", "import javafx.fxml.FXML;\n", "import javafx.scene.Node;\n", "import javafx.scene.control.CustomMenuItem;\n", "import javafx.scene.control.Label;\n", "import javafx.scene.control.TextField;\n", "import javafx.scene.layout.AnchorPane;\n", "import javafx.sc...
[]
[ "import java.util.ArrayList;\n", "import java.util.Collections;\n", "import java.util.Comparator;\n" ]
[ "import java.util.ArrayList;\n", "import java.util.Comparator;\n" ]
[ "import java.util.List;\n" ]
[]
false
116e2db6cb38a0b7
[]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
87bb490b61e54d2859770900b5375fa5be7e2245
74441a2de9c3922949096a025532913659e6e4cd
11f57123156574ed25b69ec66dd79f98d2e96a06
src/main/java/com/faforever/client/util/JavaFxUtil.java
0
2
[ "import javafx.scene.control.CustomMenuItem;\n", "import javafx.scene.control.TextField;\n", "import javafx.scene.control.Tooltip;\n", "import javafx.scene.input.KeyCode;\n", "import javafx.scene.input.KeyEvent;\n", "import javafx.scene.web.WebEngine;\n", "import javafx.scene.web.WebView;\n", "import ...
[ "import java.util.Set;\n" ]
[]
[ "import java.util.List;\n" ]
[ "import java.util.concurrent.Callable;\n", "import java.util.function.Function;\n", "\n", "/**\n", " * Utility class to fix some annoying JavaFX shortcomings.\n", " */\n", "public class JavaFxUtil {\n", "\n", " public static final StringConverter<Path> PATH_STRING_CONVERTER = new StringConverter<Pa...
[ "import java.util.Set;\n" ]
false
528d29ba49ea5eaa
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
265aeeb2e2df6a06026cf240a6b91f45a63661a1
1b2161de0a9e466ba9411abca2aee5a3295a6e32
5a91089806e8a13aba92c17fc9be4c5fe0ffe077
src/main/java/com/faforever/client/chat/PircBotXChatService.java
0
1
[ " });\n", " }\n", "\n", " private <T extends Event> void addEventListener(Class<T> eventClass, ChatEventListener<T> listener) {\n", " if (!eventListeners.containsKey(eventClass)) {\n", " eventListeners.put(eventClass, new ArrayList<>());\n", " }\n", " eventListeners.get(eventClass)....
[ " chatConnectedLatch.countDown();\n", " pircBotX.sendIRC().joinChannel(defaultChannelName);\n" ]
[ " ircConnectedLatch.countDown();\n", " pircBotX.sendIRC().joinChannel(defaultChannelName);\n" ]
[ " ircConnectedLatch.countDown();\n", " joinChannel(defaultChannelName);\n" ]
[ " })\n", " .exceptionally(throwable -> {\n", " notificationService.addNotification(\n", " new PersistentNotification(i18n.get(\"chat.identificationFailed\", throwable.getLocalizedMessage()), Severity.WARN)\n", " );\n", " return null;\n", " });...
[ " chatConnectedLatch.countDown();\n", " joinChannel(defaultChannelName);\n" ]
false
9881496ddcc9c22e
[ "A1", "B2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
265aeeb2e2df6a06026cf240a6b91f45a63661a1
1b2161de0a9e466ba9411abca2aee5a3295a6e32
5a91089806e8a13aba92c17fc9be4c5fe0ffe077
src/main/java/com/faforever/client/main/MainController.java
0
1
[ " userService.addOnLogoutListener(this::onLoggedOut);\n", " }\n", "\n", " private void setContent(Node node) {\n", " ObservableList<Node> children = contentPane.getChildren();\n", "\n", " if (!children.contains(node)) {\n", " children.add(node);\n", "\n", " AnchorPane.setTopAn...
[]
[ " private void onFafDisconnected() {\n", " fafConnectionButton.setText(i18n.get(\"statusBar.fafDisconnected\"));\n", " }\n", "\n", " private void onFaConnecting() {\n", " fafConnectionButton.setText(i18n.get(\"statusBar.fafConnecting\"));\n", " }\n", "\n", " private void onFaConnected() {...
[ " private void onFafDisconnected() {\n", " Platform.runLater(() -> fafConnectionButton.setText(i18n.get(\"statusBar.fafDisconnected\")));\n", " }\n", "\n", " private void onFaConnecting() {\n", " Platform.runLater(() -> fafConnectionButton.setText(i18n.get(\"statusBar.fafConnecting\")));\n", " ...
[ " private Rectangle2D getTransientNotificationAreaBounds() {\n", " ObservableList<Screen> screens = Screen.getScreens();\n", "\n", " int toastScreenIndex = preferencesService.getPreferences().getNotification().getToastScreen();\n", " Screen screen;\n", " if (toastScreenIndex < screens.size())...
[]
false
1a2de553c5e3e302
[]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
265aeeb2e2df6a06026cf240a6b91f45a63661a1
1b2161de0a9e466ba9411abca2aee5a3295a6e32
5a91089806e8a13aba92c17fc9be4c5fe0ffe077
src/test/java/com/faforever/client/leaderboard/LeaderboardServiceImplTest.java
2
5
[ "\n", " private LeaderboardServiceImpl instance;\n", "\n", " @Before\n", " public void setUp() throws Exception {\n", " MockitoAnnotations.initMocks(this);\n", "\n", " instance = new LeaderboardServiceImpl();\n" ]
[ " instance.fafService = fafService;\n" ]
[ " instance.lobbyServerAccessor = lobbyServerAccessor;\n" ]
[ " instance.fafApiAccessor = fafApiAccessor;\n", " instance.executor = executor;\n", "\n", " doAnswer(invocation -> {\n", " invocation.getArgumentAt(0, Runnable.class).run();\n", " return null;\n", " }).when(executor).execute(any());\n" ]
[ " }\n", "\n", " @Test\n", " public void testGetLadderInfo() throws Exception {\n" ]
[ " instance.fafApiAccessor = fafApiAccessor;\n", " instance.executor = executor;\n", "\n", " doAnswer(invocation -> {\n", " invocation.getArgumentAt(0, Runnable.class).run();\n", " return null;\n", " }).when(executor).execute(any());\n" ]
false
d1cd86e9ddf73df1
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
265aeeb2e2df6a06026cf240a6b91f45a63661a1
1b2161de0a9e466ba9411abca2aee5a3295a6e32
5a91089806e8a13aba92c17fc9be4c5fe0ffe077
src/test/java/com/faforever/client/leaderboard/LeaderboardServiceImplTest.java
3
5
[ " }\n", "\n", " @Test\n", " public void testGetLadderInfo() throws Exception {\n" ]
[ " List<LeaderboardEntryBean> entries = Collections.emptyList();\n", " when(fafService.requestLeaderboardEntries()).thenReturn(CompletableFuture.completedFuture(entries));\n" ]
[ " List<LeaderboardEntryBean> entries = Collections.emptyList();\n", " when(lobbyServerAccessor.requestLeaderboardEntries()).thenReturn(CompletableFuture.completedFuture(entries));\n" ]
[ " List<Ranked1v1EntryBean> ranked1v1EntryBeans = Collections.emptyList();\n", " when(fafApiAccessor.getRanked1v1Entries()).thenReturn(ranked1v1EntryBeans);\n" ]
[ "\n", " CompletableFuture<List<Ranked1v1EntryBean>> future = instance.getLeaderboardEntries();\n", "\n" ]
[ " List<Ranked1v1EntryBean> ranked1v1EntryBeans = Collections.emptyList();\n", " when(fafApiAccessor.getRanked1v1Entries()).thenReturn(ranked1v1EntryBeans);\n" ]
false
d29edaa42fc23815
[ "B1", "B2" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
265aeeb2e2df6a06026cf240a6b91f45a63661a1
1b2161de0a9e466ba9411abca2aee5a3295a6e32
5a91089806e8a13aba92c17fc9be4c5fe0ffe077
src/test/java/com/faforever/client/leaderboard/LeaderboardServiceImplTest.java
4
5
[ "\n", " CompletableFuture<List<Ranked1v1EntryBean>> future = instance.getLeaderboardEntries();\n", "\n" ]
[ " verify(fafService).requestLeaderboardEntries();\n", " assertThat(future, is(notNullValue()));\n" ]
[ " verify(lobbyServerAccessor).requestLeaderboardEntries();\n", " assertThat(future, is(notNullValue()));\n" ]
[ " verify(fafApiAccessor).getRanked1v1Entries();\n", " assertThat(future.get(3, TimeUnit.SECONDS), is(ranked1v1EntryBeans));\n", " }\n", "\n", " @Test\n", " public void testGetLeaderboardEntries() throws Exception {\n", " instance.getLeaderboardEntries().get(2, TimeUnit.SECONDS);\n", " v...
[ " }\n", "}\n" ]
[ " verify(fafApiAccessor).getRanked1v1Entries();\n", " assertThat(future.get(3, TimeUnit.SECONDS), is(ranked1v1EntryBeans));\n", " }\n", "\n", " @Test\n", " public void testGetLeaderboardEntries() throws Exception {\n", " instance.getLeaderboardEntries().get(2, TimeUnit.SECONDS);\n", " v...
false
f2fd6364c1bad5c2
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13", "B14", "B15", "B16", "B17", "B18", "B19", "B20" ]
side B
{ "test_file": true, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
9b13b8118488ed8af52a6f0dab56207d39b58d04
daa2a375de46af4c2d0c7d3eb142234acd63a53e
63a9de596778832b30527da768983edc3151d125
src/main/java/com/faforever/client/preferences/SettingsController.java
0
3
[ "import com.faforever.client.theme.Theme;\n", "import com.faforever.client.theme.ThemeService;\n", "import javafx.collections.FXCollections;\n", "import javafx.fxml.FXML;\n", "import javafx.scene.control.Button;\n", "import javafx.scene.control.CheckBox;\n", "import javafx.scene.control.ComboBox;\n", ...
[ " ComboBox<ChatColorMode> colorMode;\n" ]
[ " ComboBox<ChatColorMode> colorMode;\n", "\n" ]
[ " ToggleGroup colorModeToggleGroup;\n", " @FXML\n", " Toggle customColorsToggle;\n", " @FXML\n", " Toggle randomColorsToggle;\n", " @FXML\n", " Toggle defaultColorsToggle;\n" ]
[ " @FXML\n", " CheckBox hideFoeCheckBox;\n", " @FXML\n", " TextField gamePortTextField;\n", " @FXML\n", " TextField gameLocationTextField;\n", " @FXML\n", " Button gameLocationButton;\n", " @FXML\n", " CheckBox autoDownloadMapsCheckBox;\n", " @FXML\n", " ComboBox<String> languageCom...
[ " ToggleGroup colorModeToggleGroup;\n", " @FXML\n", " Toggle customColorsToggle;\n", " @FXML\n", " Toggle randomColorsToggle;\n", " @FXML\n", " Toggle defaultColorsToggle;\n" ]
false
714f4305c414bffd
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
9b13b8118488ed8af52a6f0dab56207d39b58d04
daa2a375de46af4c2d0c7d3eb142234acd63a53e
63a9de596778832b30527da768983edc3151d125
src/main/java/com/faforever/client/preferences/SettingsController.java
1
3
[ " @FXML\n", " CheckBox hideFoeCheckBox;\n", " @FXML\n", " TextField gamePortTextField;\n", " @FXML\n", " TextField gameLocationTextField;\n", " @FXML\n", " Button gameLocationButton;\n", " @FXML\n", " CheckBox autoDownloadMapsCheckBox;\n", " @FXML\n", " ComboBox<String> languageCom...
[ " ComboBox<String> themeComboBox;\n" ]
[ " ComboBox<String> themeComboBox;\n", "\n" ]
[ " ComboBox<Theme> themeComboBox;\n" ]
[ " @FXML\n", " CheckBox rememberLastTabCheckBox;\n", " @FXML\n", " Button resetNotificationsButton;\n", " @FXML\n", " TextField maxMessagesTextField;\n", " @FXML\n", " CheckBox imagePreviewCheckBox;\n", " @FXML\n", " CheckBox enableToastsCheckBox;\n", " @FXML\n", " ComboBox toastPos...
[ " ComboBox<Theme> themeComboBox;\n" ]
false
ec740032d7fde9c2
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
9b13b8118488ed8af52a6f0dab56207d39b58d04
daa2a375de46af4c2d0c7d3eb142234acd63a53e
63a9de596778832b30527da768983edc3151d125
src/main/java/com/faforever/client/rankedmatch/SearchRanked1V1ClientMessage.java
1
2
[ "\n" ]
[ " public SearchRanked1V1ClientMessage(int gamePort, Faction faction, InetSocketAddress relayAddress) {\n" ]
[ " public SearchRanked1V1ClientMessage(int gamePort, Faction faction) {\n" ]
[ " public SearchRanked1V1ClientMessage(int gamePort, Faction faction, SocketAddress relayAddress) {\n" ]
[ " super(ClientMessageType.GAME_MATCH_MAKING);\n", " this.relayAddress = relayAddress;\n", " mod = GameType.LADDER_1V1.getString();\n", " state = \"start\";\n", " this.faction = faction;\n", " setGameport(gamePort);\n", " this.relayAddress = relayAddress;\n", " }\n", "\n", " ...
[ " public SearchRanked1V1ClientMessage(int gamePort, Faction faction) {\n" ]
false
066f9f9e04d6aad0
[ "O1" ]
the original lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
9b13b8118488ed8af52a6f0dab56207d39b58d04
daa2a375de46af4c2d0c7d3eb142234acd63a53e
63a9de596778832b30527da768983edc3151d125
src/main/java/com/faforever/client/remote/FafServiceImpl.java
0
1
[ " return fafServerAccessor.requestHostGame(newGameInfo,\n", " connectivityService.getRelayAddress(),\n", " connectivityService.getExternalSocketAddress().getPort()\n", " );\n", " }\n", "\n", " @Override\n", " public ReadOnlyObjectProperty<ConnectionState> connectionStateProperty...
[ " return fafServerAccessor.startSearchRanked1v1(faction, port, connectivityService.getRelayAddress());\n" ]
[ " return fafServerAccessor.startSearchRanked1v1(faction, port);\n" ]
[ " return fafServerAccessor.startSearchRanked1v1(faction,\n", " connectivityService.getExternalSocketAddress().getPort(),\n", " connectivityService.getRelayAddress());\n" ]
[ " }\n", "\n", " @Override\n", " public void stopSearchingRanked() {\n", " fafServerAccessor.stopSearchingRanked();\n", " }\n", "\n", " @Override\n", " public void initConnectivityTest(int port) {\n", " fafServerAccessor.initConnectivityTest(port);\n", " }\n", "\n", " @Override\...
[ " return fafServerAccessor.startSearchRanked1v1(faction, port, connectivityService.getRelayAddress());\n" ]
false
f15f178cad8f8e7b
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
9b13b8118488ed8af52a6f0dab56207d39b58d04
daa2a375de46af4c2d0c7d3eb142234acd63a53e
63a9de596778832b30527da768983edc3151d125
src/test/java/com/faforever/client/remote/FafServerAccessorImplTest.java
1
2
[ " message.setPotential(true);\n", "\n", " CompletableFuture<MatchmakerMessage> serviceStateDoneFuture = new CompletableFuture<>();\n", "\n", " WaitForAsyncUtils.waitForAsyncFx(200, () -> instance.addOnMessageListener(\n", " MatchmakerMessage.class, serviceStateDoneFuture::complete\n", " ...
[ " CompletableFuture<GameLaunchMessage> future = instance.startSearchRanked1v1(Faction.AEON, GAME_PORT, relayAddress);\n" ]
[ " CompletableFuture<GameLaunchMessage> future = instance.startSearchRanked1v1(Faction.AEON, GAME_PORT);\n" ]
[ " CompletableFuture<GameLaunchMessage> future = instance.startSearchRanked1v1(Faction.AEON, GAME_PORT, null);\n" ]
[ "\n", " String clientMessage = messagesReceivedByFafServer.poll(TIMEOUT, TIMEOUT_UNIT);\n", " SearchRanked1V1ClientMessage searchRanked1v1Message = gson.fromJson(clientMessage, SearchRanked1V1ClientMessage.class);\n", "\n", " assertThat(searchRanked1v1Message, instanceOf(SearchRanked1V1ClientMessag...
[ " CompletableFuture<GameLaunchMessage> future = instance.startSearchRanked1v1(Faction.AEON, GAME_PORT, relayAddress);\n" ]
false
504e8a27a5881d22
[ "A1" ]
side A
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
b5b7cc5dc3cfa1ff366f4fcd86bf5644a8587a30
ab65be746f7e8bc5927b4904ba21440e6d7edb69
src/test/java/com/faforever/client/legacy/relay/LocalRelayServerImplTest.java
0
1
[ "import java.util.concurrent.ArrayBlockingQueue;\n", "import java.util.concurrent.BlockingQueue;\n", "import java.util.concurrent.CountDownLatch;\n", "import java.util.concurrent.TimeUnit;\n", "\n", "import static java.util.Collections.emptyList;\n", "import static java.util.Collections.singletonList;\n...
[ " private static final int RECEIVE_TIMEOUT = 1000;\n", " private static final TimeUnit RECEIVE_TIMEOUT_UNIT = TimeUnit.MILLISECONDS;\n" ]
[ " public static final int RECEIVE_TIMEOUT = 200000;\n", " public static final TimeUnit RECEIVE_TIMEOUT_UNIT = TimeUnit.MILLISECONDS;\n" ]
[ " public static final int TIMEOUT = 10000;\n", " public static final TimeUnit TIMEOUT_UNIT = TimeUnit.MILLISECONDS;\n" ]
[ "\n", " private BlockingQueue<LobbyMessage> messagesReceivedByFafServer;\n", " private BlockingQueue<RelayServerMessage> messagesReceivedByGame;\n", " private boolean stopped;\n", "\n", " private LocalRelayServerImpl instance;\n", " private FaDataOutputStream gameToRelayOutputStream;\n", " priva...
[ " public static final int TIMEOUT = 10000;\n", " public static final TimeUnit TIMEOUT_UNIT = TimeUnit.MILLISECONDS;\n" ]
false
f0fb5ad08d6a3f72
[ "B1", "B2" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
17f4ce2a6e075b53d7aad877e929846bbd9f970e
a348adee9dc442d871781408e28e824088e128df
5e96dcc1253165e980930beeffed5f2c95d280f2
src/main/java/com/faforever/client/config/UiConfig.java
0
1
[ " return loadController(\"top_players.fxml\");\n", " }\n", "\n", " @Bean\n", " DonationWallController donationWallController() {\n", " return loadController(\"donation_wall.fxml\");\n", " }\n", "\n", " @Bean\n", " RecentForumPostsController recentForumPostsController() {\n", " ret...
[ " GameStatusTooltipController gameStatusContainerTooltipController() {\n", " return loadController(\"game_status_tooltip.fxml\");\n" ]
[]
[ " ModTileController modTileController() {\n", " return loadController(\"mod_tile.fxml\");\n" ]
[ " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " CommentCardController commentCardController() {\n", " return loadController(\"comment_card.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " GamesTableControl...
[ " ModTileController modTileController() {\n", " return loadController(\"mod_tile.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " GameStatusTooltipController gameStatusContainerTooltipController() {\n", " return loadController(\"game_status_tool...
false
6acc7a84f0a558d9
null
needs new code
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
17f4ce2a6e075b53d7aad877e929846bbd9f970e
a348adee9dc442d871781408e28e824088e128df
5e96dcc1253165e980930beeffed5f2c95d280f2
src/main/java/com/faforever/client/replay/ReplayServiceImpl.java
0
1
[ " String gameType = replayInfo.getFeaturedMod();\n", " Integer replayId = replayInfo.getUid();\n", " Map<String, Integer> modVersions = replayInfo.getFeaturedModVersions();\n", " Set<String> simMods = replayInfo.getSimMods().keySet();\n", "\n", " Integer version = parseSupComVersion(rawRepl...
[]
[ " private void runOnlineReplay(int replayId) {\n", " downloadReplayToTemporaryDirectory(replayId)\n", " .thenAccept(replayFile -> runReplayFile(replayFile))\n", " .exceptionally(throwable -> {\n", " notificationService.addNotification(new PersistentNotification(\n", " ...
[ " private CompletableFuture<Path> downloadReplayToTemporaryDirectory(int replayId) {\n", " ReplayDownloadTask task = applicationContext.getBean(ReplayDownloadTask.class);\n", " task.setReplayId(replayId);\n", " return taskService.submitTask(task);\n", " }\n", "\n" ]
[ " @VisibleForTesting\n", " static Integer parseSupComVersion(byte[] rawReplayBytes) {\n", " int versionDelimiterIndex = Bytes.indexOf(rawReplayBytes, (byte) 0x00);\n", " return Integer.parseInt(new String(rawReplayBytes, VERSION_OFFSET, versionDelimiterIndex - VERSION_OFFSET, US_ASCII));\n", " }\n"...
[ " private CompletableFuture<Path> downloadReplayToTemporaryDirectory(int replayId) {\n", " ReplayDownloadTask task = applicationContext.getBean(ReplayDownloadTask.class);\n", " task.setReplayId(replayId);\n", " return taskService.submitTask(task);\n", " }\n", "\n" ]
false
08f08d583ff3f3e4
[ "B1", "B2", "B3", "B4", "B5", "B6" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
08133935dec2f0367247b6feeef3be0742098910
7a1f48fcbfaace443aba72969762017bab557ee3
8c3eadb582874066eaae0c30ace18c4fa411d2ee
src/main/java/com/faforever/client/chat/PircBotXChatService.java
0
2
[ "package com.faforever.client.chat;\n", "\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.legacy.LobbyServerAccessor;\n", "import com.faforever.client.legacy.OnJoinChannelsRequestListener;\n", "import com.faforever.client.task.PrioritizedTask;\n", "import com.faforever.clien...
[ "import javafx.scene.paint.Color;\n", "import org.apache.commons.codec.digest.DigestUtils;\n", "import org.pircbotx.Channel;\n" ]
[ "import org.apache.commons.codec.digest.DigestUtils;\n" ]
[]
[ "import org.pircbotx.Configuration;\n", "import org.pircbotx.PircBotX;\n", "import org.pircbotx.User;\n", "import org.pircbotx.UtilSSLSocketFactory;\n", "import org.pircbotx.hooks.Event;\n", "import org.pircbotx.hooks.Listener;\n", "import org.pircbotx.hooks.events.ActionEvent;\n", "import org.pircbot...
[ "import javafx.scene.paint.Color;\n", "import org.apache.commons.codec.digest.DigestUtils;\n", "import org.pircbotx.Channel;\n" ]
false
5e0fa4d2d7eb163c
[ "A1", "A2", "A3" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
08133935dec2f0367247b6feeef3be0742098910
7a1f48fcbfaace443aba72969762017bab557ee3
8c3eadb582874066eaae0c30ace18c4fa411d2ee
src/main/java/com/faforever/client/chat/PircBotXChatService.java
1
2
[ "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.core.env.Environment;\n", "import org.springframework.util.ReflectionUtils;\n", "\n", "import javax.annotation.PostConstruct;\n", "import java.io.IOException;\n", "impor...
[ "import static javafx.collections.FXCollections.observableArrayList;\n" ]
[]
[ "import static java.lang.String.format;\n" ]
[ "import static javafx.collections.FXCollections.observableHashMap;\n", "import static javafx.collections.FXCollections.synchronizedObservableMap;\n", "import static org.apache.commons.codec.digest.DigestUtils.md5Hex;\n", "\n", "public class PircBotXChatService implements ChatService, Listener, OnChatConnect...
[ "import static javafx.collections.FXCollections.observableArrayList;\n", "import static java.lang.String.format;\n" ]
false
327b8aaa8a461d79
[ "A1", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f01dd6d235d74adcf5b50254151a3a55d2a5da97
04d565a0b98525b3fcc6fc5682fc8d8e7a445a42
2b006b7665314707a5ca85efa6d65e81c5183198
src/main/java/com/faforever/client/main/MainController.java
0
1
[ "\n", " @Autowired\n", " ApplicationContext applicationContext;\n", "\n", " @Autowired\n", " PlayerService playerService;\n", "\n", " @Autowired\n", " ModVaultController modVaultController;\n", "\n", " @Autowired\n", " MapVaultController mapMapVaultController;\n", "\n", " @Autowir...
[ " GameService gameService;\n" ]
[]
[ " PatchService patchService;\n" ]
[ "\n", " private Popup notificationsPopup;\n", "\n", " @FXML\n", " void initialize() {\n", " taskPane.managedProperty().bind(taskPane.visibleProperty());\n", " taskProgressBar.managedProperty().bind(taskProgressBar.visibleProperty());\n", " taskProgressLabel.managedProperty().bind(taskProgr...
[ " PatchService patchService;\n", "\n", " @Autowired\n", " GameService gameService;\n" ]
false
307633d23107657c
null
needs new code
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
e8fe02f6752b97d8f20ee0010fd9905eee528d97
901c2727e7b4f0b304ae370161c8e76128b4fe5a
05b3dd7c834577be4d18481ba1eb8dee43288e4d
src/main/java/com/faforever/client/chat/PircBotXChatService.java
0
1
[ " return message;\n", " }\n", " }).getFuture();\n", " }\n", "\n", " @Override\n", " public Channel getOrCreateChannel(String channelName) {\n", " synchronized (channels) {\n", " if (!channels.containsKey(channelName)) {\n", " channels.put(channelName, new Channel(c...
[ " ChatChannelUser chatChannelUser = new ChatChannelUser(username, getChatUserColor(username), isModerator);\n", " eventBus.post(new ChatUserCreatedEvent(chatChannelUser));\n" ]
[ " ChatPrefs chatPrefs = preferencesService.getPreferences().getChat();\n", " Color color = null;\n", "\n", " if (chatPrefs.getChatColorMode() == CUSTOM && chatPrefs.getUserToColor().containsKey(userToColorKey(username))) {\n", " color = chatPrefs.getUserToColor().get(userToColo...
[ " ChatPrefs chatPrefs = preferencesService.getPreferences().getChat();\n", " Optional<Player> optionalPlayer = playerService.getPlayerForUsername(username);\n", "\n", " Color color = null;\n", "\n", " if (chatPrefs.getChatColorMode() == DEFAULT && chatPrefs.getUserToColor().con...
[ " chatChannelUsersByChannelAndName.put(key, chatChannelUser);\n", " }\n", " return chatChannelUsersByChannelAndName.get(key);\n", " }\n", " }\n", "\n", " @Override\n", " public Color getChatUserColor(String username) {\n", " ChatPrefs chatPrefs = preferencesService.getPrefe...
[ " ChatPrefs chatPrefs = preferencesService.getPreferences().getChat();\n", " Optional<Player> optionalPlayer = playerService.getPlayerForUsername(username);\n", "\n", " Color color = null;\n", "\n", " if (chatPrefs.getChatColorMode() == DEFAULT && chatPrefs.getUserToColor().con...
false
c0139d230c2a359e
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13", "B14", "B15", "B16", "B17", "B18", "B19", "B20", "B21" ]
side B
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
e8fe02f6752b97d8f20ee0010fd9905eee528d97
901c2727e7b4f0b304ae370161c8e76128b4fe5a
05b3dd7c834577be4d18481ba1eb8dee43288e4d
src/main/java/com/faforever/client/player/PlayerService.java
1
2
[ "\n", " public void removeFoe(Player player) {\n", " playersByName.get(player.getUsername()).setSocialStatus(OTHER);\n", " foeList.remove((Integer) player.getId());\n", "\n", " fafService.removeFoe(player);\n", " }\n", "\n", " public Optional<Player> getCurrentPlayer() {\n", " retur...
[ " public List<Player> getOnlinePlayersByIds(Collection<Integer> playerIds) {\n", " return playerIds.stream()\n", " .map(playersById::get)\n", " .collect(Collectors.toList());\n", " }\n", "\n", " @Subscribe\n", " public void onChatUserCreated(ChatUserCreatedEvent event) {\n", " ...
[ " @Subscribe\n", " public void onChatUserCreated(ChatUserCreatedEvent event) {\n", " ChatChannelUser chatChannelUser = event.getChatChannelUser();\n", " Optional.ofNullable(playersByName.get(chatChannelUser.getUsername()))\n", " .ifPresent(player -> Platform.runLater(() -> {\n", " ...
[]
[ " private void onPlayersInfo(PlayersMessage playersMessage) {\n", " playersMessage.getPlayers().forEach(dto -> JavaFxUtil.assureRunOnMainThread(() -> onPlayerInfo(dto)));\n", " }\n", "\n", " private void onFoeList(SocialMessage socialMessage) {\n", " Optional.ofNullable(socialMessage.getFoes()).i...
[ " public List<Player> getOnlinePlayersByIds(Collection<Integer> playerIds) {\n", " return playerIds.stream()\n", " .map(playersById::get)\n", " .collect(Collectors.toList());\n", " }\n", "\n" ]
false
bdc7afb1a5187637
[ "A1", "A2", "A3", "A4", "A5", "A6" ]
mix of lines
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
ea43fae44c07c76c43593f7630d627cb9ee35cdb
24edc330024b1ee5b831feaf26df7862cab41874
5e96dcc1253165e980930beeffed5f2c95d280f2
src/main/java/com/faforever/client/game/GameServiceImpl.java
0
1
[ " PreferencesService preferencesService;\n", " @Autowired\n", " GameUpdateService gameUpdateService;\n", " @Autowired\n", " NotificationService notificationService;\n", " @Autowired\n", " I18n i18n;\n", " @Autowired\n", " Environment environment;\n", " @Autowired\n", " ApplicationCont...
[ " private Instant gameStartedTime;\n" ]
[]
[ " private ScheduledFuture<?> searchExpansionFuture;\n" ]
[ "\n", " public GameServiceImpl() {\n", " gameTypeBeans = FXCollections.observableHashMap();\n", " onGameLaunchingListeners = new HashSet<>();\n", " uidToGameInfoBean = new HashMap<>();\n", " searching1v1 = new SimpleBooleanProperty();\n", "\n", " gameInfoBeans = FXCollections.observabl...
[ " private Instant gameStartedTime;\n", " private ScheduledFuture<?> searchExpansionFuture;\n" ]
false
c0bb1eb7345dba36
[ "A1", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
cada28a10f9339bee8be49ffaa33ab3d09739e1c
dccd293f03c5425cc1324d3856783363ae8d6ae2
f2635f28ca6645d48fba8766b80a1cea5df2eb75
src/main/java/com/faforever/client/config/UiConfig.java
0
3
[ "import com.faforever.client.chat.CountryFlagService;\n", "import com.faforever.client.chat.CountryFlagServiceImpl;\n", "import com.faforever.client.chat.PlayerInfoTooltipController;\n", "import com.faforever.client.chat.UrlPreviewResolver;\n", "import com.faforever.client.chat.UrlPreviewResolverImpl;\n", ...
[ "import com.faforever.client.game.TeamCardController;\n" ]
[ "import com.faforever.client.leaderboard.LadderController;\n" ]
[ "import com.faforever.client.game.PopupTeamCardController;\n" ]
[ "import com.faforever.client.leaderboard.LeaderboardController;\n", "import com.faforever.client.login.LoginController;\n", "import com.faforever.client.main.MainController;\n", "import com.faforever.client.map.CommentCardController;\n", "import com.faforever.client.map.MapPreviewLargeController;\n", "imp...
[ "import com.faforever.client.game.TeamCardController;\n" ]
false
7edf9d8b6f19ae19
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
cada28a10f9339bee8be49ffaa33ab3d09739e1c
dccd293f03c5425cc1324d3856783363ae8d6ae2
f2635f28ca6645d48fba8766b80a1cea5df2eb75
src/main/java/com/faforever/client/game/GamesController.java
0
11
[ "package com.faforever.client.game;\n", "\n" ]
[ "import com.faforever.client.fx.SceneFactory;\n", "import com.faforever.client.fx.WindowDecorator;\n" ]
[]
[ "import com.faforever.client.chat.PlayerInfoBean;\n" ]
[ "import com.faforever.client.fxml.FxmlLoader;\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.legacy.domain.GameAccess;\n" ]
[]
false
6fec935df5014ee0
[]
neither side
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
cada28a10f9339bee8be49ffaa33ab3d09739e1c
dccd293f03c5425cc1324d3856783363ae8d6ae2
f2635f28ca6645d48fba8766b80a1cea5df2eb75
src/main/java/com/faforever/client/game/GamesController.java
2
11
[ "import com.faforever.client.map.MapService;\n", "import com.faforever.client.notification.Action;\n", "import com.faforever.client.notification.ImmediateNotification;\n", "import com.faforever.client.notification.NotificationService;\n", "import com.faforever.client.notification.Severity;\n", "import com...
[ "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n", "import javafx.collections.ObservableMap;\n" ]
[ "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n" ]
[ "import com.faforever.client.util.RatingUtil;\n" ]
[ "import javafx.collections.transformation.FilteredList;\n", "import javafx.event.ActionEvent;\n", "import javafx.event.Event;\n", "import javafx.fxml.FXML;\n", "import javafx.geometry.Bounds;\n", "import javafx.scene.Node;\n", "import javafx.scene.control.Button;\n", "import javafx.scene.control.Check...
[ "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n" ]
false
cdb57f9d26a99a57
[ "A1", "A2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
cada28a10f9339bee8be49ffaa33ab3d09739e1c
dccd293f03c5425cc1324d3856783363ae8d6ae2
f2635f28ca6645d48fba8766b80a1cea5df2eb75
src/main/java/com/faforever/client/game/GamesController.java
4
11
[ "import javafx.stage.Popup;\n", "import javafx.stage.PopupWindow;\n", "import javafx.stage.Stage;\n", "import javafx.stage.StageStyle;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework....
[ "import java.util.List;\n", "import java.util.Map;\n", "import java.util.regex.Pattern;\n" ]
[ "import java.util.regex.Pattern;\n" ]
[ "import java.util.Arrays;\n", "import java.util.function.Predicate;\n" ]
[ "\n" ]
[ "import java.util.regex.Pattern;\n" ]
false
b4e405f7f50bd0c2
[ "A3" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
cada28a10f9339bee8be49ffaa33ab3d09739e1c
dccd293f03c5425cc1324d3856783363ae8d6ae2
f2635f28ca6645d48fba8766b80a1cea5df2eb75
src/main/java/com/faforever/client/game/GamesController.java
9
11
[ " @Autowired\n", " MapService mapService;\n", "\n", " @Autowired\n", " CreateGameController createGameController;\n", "\n", " @Autowired\n", " EnterPasswordController enterPasswordController;\n", "\n", " @Autowired\n", " PreferencesService preferencesService;\n", "\n", " @Autowired\...
[ " SceneFactory sceneFactory;\n", "\n", "\n", " private ObservableList<GameInfoBean> gameInfoBeans;\n" ]
[ " private ObservableList<GameInfoBean> gameInfoBeans;\n" ]
[ " PlayerService playerService;\n", "\n", " @Autowired\n", " NotificationService notificationService;\n" ]
[ "\n", " private Popup createGamePopup;\n", " private Popup passwordPopup;\n", " private FilteredList<GameInfoBean> filteredItems;\n", " Stage largePreview;\n", "\n", " //TODO Implement into options menu\n", " private boolean tilePaneSelected = false;\n", " private boolean firstGeneratedPane =...
[ " SceneFactory sceneFactory;\n", "\n", " @Autowired\n", " NotificationService notificationService;\n" ]
false
4084491f0ae4b9b8
[ "A1", "A2", "B3", "B4" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
7cc34a157bf6d12e530523402f173ba33c6896ca
d5b191905a895246e095a4fffca7412eeccdaa6d
4dc3c96bf02521076d59fc19c56f0a7bd0baabbe
src/main/java/com/faforever/client/legacy/LobbyServerAccessorImpl.java
0
1
[ "import com.faforever.client.game.GameInfoBean;\n", "import com.faforever.client.game.NewGameInfo;\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.leaderboard.LeaderboardEntryBean;\n", "import com.faforever.client.leaderboard.LeaderboardParser;\n", "import com.faforever.client...
[ "import com.faforever.client.legacy.domain.PlayerInfo;\n" ]
[ "import com.faforever.client.legacy.domain.ModInfo;\n", "import com.faforever.client.legacy.domain.PlayerInfo;\n" ]
[ "import com.faforever.client.legacy.domain.ModInfo;\n", "import com.faforever.client.legacy.domain.PlayersInfo;\n" ]
[ "import com.faforever.client.legacy.domain.Ranked1v1SearchExpansionMessage;\n", "import com.faforever.client.legacy.domain.ServerCommand;\n", "import com.faforever.client.legacy.domain.ServerMessage;\n", "import com.faforever.client.legacy.domain.ServerMessageType;\n", "import com.faforever.client.legacy.do...
[ "import com.faforever.client.legacy.domain.ModInfo;\n", "import com.faforever.client.legacy.domain.PlayersInfo;\n" ]
false
3523f1220a71be8c
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
7cc34a157bf6d12e530523402f173ba33c6896ca
d5b191905a895246e095a4fffca7412eeccdaa6d
4dc3c96bf02521076d59fc19c56f0a7bd0baabbe
src/main/java/com/faforever/client/util/JavaFxUtil.java
0
1
[ "package com.faforever.client.util;\n", "\n", "import com.faforever.client.preferences.PreferencesService;\n", "import javafx.animation.KeyFrame;\n", "import javafx.animation.Timeline;\n", "import javafx.application.Platform;\n", "import javafx.beans.property.BooleanProperty;\n", "import javafx.beans....
[ "import javafx.scene.input.KeyEvent;\n" ]
[]
[ "import javafx.scene.paint.Color;\n" ]
[ "import javafx.scene.web.WebEngine;\n", "import javafx.scene.web.WebView;\n", "import javafx.stage.Popup;\n", "import javafx.stage.PopupWindow;\n", "import javafx.stage.Screen;\n", "import javafx.stage.Stage;\n", "import javafx.util.Duration;\n", "import javafx.util.StringConverter;\n", "import org....
[ "import javafx.scene.input.KeyEvent;\n", "import javafx.scene.paint.Color;\n" ]
false
c06a6084547487f3
[ "A1", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
7cc34a157bf6d12e530523402f173ba33c6896ca
d5b191905a895246e095a4fffca7412eeccdaa6d
4dc3c96bf02521076d59fc19c56f0a7bd0baabbe
src/test/java/com/faforever/client/player/PlayerServiceImplTest.java
0
1
[ "import java.util.Set;\n", "\n", "import static com.faforever.client.chat.SocialStatus.FOE;\n", "import static com.faforever.client.chat.SocialStatus.FRIEND;\n", "import static java.util.Collections.singletonList;\n", "import static org.hamcrest.Matchers.containsInAnyOrder;\n", "import static org.hamcre...
[]
[ " private LobbyServerAccessor lobbyServerAccessor;\n" ]
[ " @Mock\n", " UserService userService;\n", "\n" ]
[ " private PlayerServiceImpl instance;\n", "\n", " @Before\n", " public void setUp() throws Exception {\n", " MockitoAnnotations.initMocks(this);\n", "\n", " instance = new PlayerServiceImpl();\n", " instance.lobbyServerAccessor = lobbyServerAccessor;\n", " instance.userService = userS...
[ " @Mock\n", " UserService userService;\n", "\n" ]
false
e4b6498b819046b4
[ "B1", "B2", "B3" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
5e96dcc1253165e980930beeffed5f2c95d280f2
8216296eb66ba661854393c0967ffd462468acb8
ba2e78272f42ab4b36e6653d5a2a7d07462b7ae3
src/main/java/com/faforever/client/mod/ModServiceImpl.java
0
2
[ "package com.faforever.client.mod;\n", "\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.legacy.LobbyServerAccessor;\n", "import com.faforever.client.notification.NotificationService;\n", "import com.faforever.client.preferences.PreferencesService;\n", "import com.faforever....
[]
[]
[ "import org.jetbrains.annotations.Nullable;\n" ]
[ "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.context.ApplicationContext;\n", "\n", "import javax.annotation.PostConstruct;\n", "import java.io.IOException;\n", "import java.io.InputStr...
[ "import org.jetbrains.annotations.Nullable;\n" ]
false
9c81a3dd4063abae
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
8438cc84c23e0b2fd3011765496a48da1faf0de5
26e5393decdadcbb11b25e4c828b200b8edc1cec
d8567b5c2fd106392fc6e85afe8104f0dd6de523
src/test/java/com/faforever/client/game/GameTiledControllerTest.java
0
1
[ "package com.faforever.client.game;\n", "\n" ]
[ "import com.faforever.client.test.AbstractSpringJavaFxTest;\n", "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n", "import javafx.scene.Node;\n", "import javafx.scene.layout.Pane;\n", "import org.junit.Before;\n", "import org.junit.Test;\n", "import org.spring...
[]
[ "import com.faforever.client.legacy.domain.GameInfo;\n", "import com.faforever.client.map.MapService;\n", "import com.faforever.client.test.AbstractSpringJavaFxTest;\n", "import com.faforever.client.util.Callback;\n", "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;...
[ "\n", "public class GameTiledControllerTest extends AbstractSpringJavaFxTest {\n", "\n", " @Autowired\n", " GameCardController gameCardController;\n", " private GameTiledController instance;\n", "\n", " @Before\n", " public void setUp() throws Exception {\n", " instance = loadController(\"...
[ "import com.faforever.client.legacy.domain.GameInfo;\n", "import com.faforever.client.map.MapService;\n", "import com.faforever.client.test.AbstractSpringJavaFxTest;\n", "import com.faforever.client.util.Callback;\n", "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;...
false
83948bf2c8d14720
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13", "B14", "B15", "B16", "B17", "B18", "B19", "B20", "B21", "B22", "B23", "B24", "B25" ]
side B
{ "test_file": true, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
d43523ef8a20814d918264aec7ddc698f100b62a
865eb7c124475d00a2a50be335780158d6e17827
0485cc8c3f3aac3ecd70395c11db27c38b9dd4f9
src/main/java/com/faforever/client/config/UiConfig.java
0
4
[ "import com.faforever.client.chat.AvatarServiceImpl;\n", "import com.faforever.client.chat.ChannelTabController;\n", "import com.faforever.client.chat.ChatController;\n", "import com.faforever.client.chat.ChatUserContextMenuController;\n", "import com.faforever.client.chat.ChatUserControl;\n", "import com...
[ "import com.faforever.client.game.GameCardController;\n", "import com.faforever.client.game.GameContainerTooltipController;\n", "import com.faforever.client.game.GameTableController;\n", "import com.faforever.client.game.GameTiledController;\n", "import com.faforever.client.game.GamesController;\n" ]
[ "import com.faforever.client.game.GameCardController;\n", "import com.faforever.client.game.GameTableController;\n", "import com.faforever.client.game.GameTiledController;\n", "import com.faforever.client.game.GamesController;\n", "import com.faforever.client.game.GameContainerTooltipController;\n" ]
[ "import com.faforever.client.game.GameContainerTooltipController;\n", "import com.faforever.client.game.GameTileController;\n", "import com.faforever.client.game.GamesController;\n", "import com.faforever.client.game.GamesTableController;\n", "import com.faforever.client.game.GamesTilesContainerController;\...
[ "import com.faforever.client.game.PlayerCardTooltipController;\n", "import com.faforever.client.game.TeamCardController;\n", "import com.faforever.client.hub.CommunityHubController;\n", "import com.faforever.client.hub.ConcurrentUsersController;\n", "import com.faforever.client.hub.DonationWallController;\n...
[ "import com.faforever.client.game.GameContainerTooltipController;\n", "import com.faforever.client.game.GameTileController;\n", "import com.faforever.client.game.GamesController;\n", "import com.faforever.client.game.GamesTableController;\n", "import com.faforever.client.game.GamesTilesContainerController;\...
false
c3b79ca728ce7cdf
[ "B1", "B2", "B3", "B4", "B5" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
d43523ef8a20814d918264aec7ddc698f100b62a
865eb7c124475d00a2a50be335780158d6e17827
0485cc8c3f3aac3ecd70395c11db27c38b9dd4f9
src/main/java/com/faforever/client/config/UiConfig.java
1
4
[ " }\n", "\n", " @Bean\n", " RecentForumPostsController recentForumPostsController() {\n", " return loadController(\"recent_forum_posts.fxml\");\n", " }\n", "\n", " @Bean\n", " MostActivePlayersController mostActivePlayersController() {\n", " return loadController(\"most_active_players....
[ " // TODO cs: naming consistency\n", " GameTableController gameTableController() {\n", " return loadController(\"game_table.fxml\");\n" ]
[ " GameTableController gameTableController() {\n", " return loadController(\"game_table.fxml\");\n" ]
[ " GamesTableController gameTableController() {\n", " return loadController(\"games_table.fxml\");\n" ]
[ " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " ImmediateNotificationController immediateNotificationController() {\n", " return loadController(\"immediate_notification.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTY...
[ " GamesTableController gameTableController() {\n", " return loadController(\"games_table.fxml\");\n" ]
false
4aba7c7e3f0033cb
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
d43523ef8a20814d918264aec7ddc698f100b62a
865eb7c124475d00a2a50be335780158d6e17827
0485cc8c3f3aac3ecd70395c11db27c38b9dd4f9
src/main/java/com/faforever/client/config/UiConfig.java
2
4
[ " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " PlayerCardTooltipController playerCardTooltipController() {\n", " return loadController(\"player_card_tooltip.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " TeamCardControlle...
[ " // TODO @cs: naming consistency\n", " GameTiledController gamesTiledController() {\n", " return loadController(\"game_tile_container.fxml\");\n" ]
[ " GameTiledController gamesTiledController() {\n", " return loadController(\"game_tile_container.fxml\");\n" ]
[ " GamesTilesContainerController gamesTiledController() {\n", " return loadController(\"games_tiles_container.fxml\");\n" ]
[ " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " UserInfoWindowController userInfoWindowController() {\n", " return loadController(\"user_info_window.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n" ]
[ " GamesTilesContainerController gamesTiledController() {\n", " return loadController(\"games_tiles_container.fxml\");\n" ]
false
3f6487827d9ab8c2
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
d43523ef8a20814d918264aec7ddc698f100b62a
865eb7c124475d00a2a50be335780158d6e17827
0485cc8c3f3aac3ecd70395c11db27c38b9dd4f9
src/main/java/com/faforever/client/config/UiConfig.java
3
4
[ " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " UserInfoWindowController userInfoWindowController() {\n", " return loadController(\"user_info_window.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n" ]
[ " // TODO @cs: naming consistency\n", " GameCardController gameCardController() {\n" ]
[ " GameCardController gameCardController() {\n" ]
[ " GameTileController gameCardController() {\n" ]
[ " return loadController(\"game_tile.fxml\");\n", " }\n", "\n", " @Bean\n", " @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)\n", " // TODO @mj: naming consistency\n", " NewsListItemController newsTileController() {\n", " return loadController(\"news_list_item.fxml\");\n", " }\n", "\n...
[ " GameTileController gameCardController() {\n" ]
false
b461071b84b9377c
[ "B1" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
157b65757c99f782f8258e3abbded272e2731c3e
b79ddae4528000a3bc2940be5c78cc2481b3010b
17296248dd8b6f3a8db144ad21e5bc4cefede375
src/main/java/com/faforever/client/teammatchmaking/MatchmakingQueueItemController.java
2
4
[ " public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n", " if ((double) newValue > 150.0) {\n", " joinLeaveQueueButton.setText(\n", " i18n.get(String.format(QUEUE_I18N_PATTERN, queue.getQueueName(), \"fullName\")));\n", " ...
[]
[ " // TODO: localize\n", " queuenameLabel.textProperty().bind(queue.queueNameProperty());\n", "\n", " teamSizeLabel.textProperty().bind(createStringBinding(\n", " () -> i18n.get(\"teammatchmaking.teamSize\", queue.getTeamSize()),\n", " queue.teamSizeProperty()));\n" ]
[ " // TODO: localize\n", " queuenameLabel.textProperty().bind(Bindings.createStringBinding(\n", " () -> i18n.get(String.format(QUEUE_I18N_PATTERN, queue.getQueueName())),\n", " queue.queueNameProperty()));\n", "\n", " teamSizeLabel.textProperty().bind(createStringBinding(\n", " ...
[ " playersInQueueLabel.textProperty().bind(createStringBinding(\n", " () -> playersInQueueLabel.getStyleClass().contains(\"uppercase\") ?\n", " i18n.get(\"teammatchmaking.playersInQueue\", queue.getPlayersInQueue()).toUpperCase() :\n", " i18n.get(\"teammatchmaking.playersInQueue...
[]
false
37634246382a33a2
[]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
157b65757c99f782f8258e3abbded272e2731c3e
b79ddae4528000a3bc2940be5c78cc2481b3010b
17296248dd8b6f3a8db144ad21e5bc4cefede375
src/main/java/com/faforever/client/teammatchmaking/PartyMemberItemController.java
0
6
[ " public Label aeonLabel;\n", " public Label seraphimLabel;\n", " public ImageView leagueImageView;\n", "\n", " private Player player;\n", " //TODO: this is a bit hacky\n", " private WeakReference<ChatUserContextMenuController> contextMenuController = null;\n", "\n", " @Override\n", " publ...
[ " private boolean isFactionSelectedInParty(int faction) {\n", " return teamMatchmakingService.getParty().getMembers().stream()\n", " .anyMatch(m -> m.getPlayer().getId() == player.getId() && m.getFactions().get(faction));\n", " }\n", "\n", " public void onKickPlayerButtonClicked(ActionEvent a...
[ " private boolean isFactionSelectedInParty(int faction) {\n", " return teamMatchmakingService.getParty().getMembers().stream()\n", " .anyMatch(m -> m.getPlayer().getId() == player.getId() && m.getFactions().get(faction));\n", " }\n", "\n", " public void onKickPlayerButtonClicked(ActionEvent a...
[]
[ " public PartyMemberItemController(CountryFlagService countryFlagService, AvatarService avatarService, PlayerService playerService, TeamMatchmakingService teamMatchmakingService, UiService uiService, ChatService chatService, I18n i18n) {\n", " this.countryFlagService = countryFlagService;\n", " this.avat...
[]
false
b7c27a818e3057ff
[]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
157b65757c99f782f8258e3abbded272e2731c3e
b79ddae4528000a3bc2940be5c78cc2481b3010b
17296248dd8b6f3a8db144ad21e5bc4cefede375
src/main/java/com/faforever/client/teammatchmaking/PartyMemberItemController.java
1
6
[ " public PartyMemberItemController(CountryFlagService countryFlagService, AvatarService avatarService, PlayerService playerService, TeamMatchmakingService teamMatchmakingService, UiService uiService, ChatService chatService, I18n i18n) {\n", " this.countryFlagService = countryFlagService;\n", " this.avat...
[ "// userImageView.setImage(IdenticonUtil.createIdenticon(player.getId()));\n", "\n", " countryImageView.imageProperty().bind(createObjectBinding(() -> countryFlagService.loadCountryFlag(\n", " StringUtils.isEmpty(player.getCountry()) ? \"\" : player.getCountry()).orElse(null), player.countryPrope...
[ "// userImageView.setImage(IdenticonUtil.createIdenticon(player.getId()));\n", "\n", "// countryImageView.visibleProperty().bind(player.countryProperty().isNotEmpty());\n", " countryImageView.imageProperty().bind(createObjectBinding(() -> StringUtils.isEmpty(player.getCountry()) ?\n", " coun...
[ "// countryImageView.visibleProperty().bind(player.countryProperty().isNotEmpty());\n", " countryImageView.imageProperty().bind(createObjectBinding(() -> StringUtils.isEmpty(player.getCountry()) ?\n", " countryFlagService.loadCountryFlag(\"\").orElse(null) // loads earth flag\n", " : count...
[ "\n" ]
[ " countryImageView.imageProperty().bind(createObjectBinding(() -> countryFlagService.loadCountryFlag(\n", " StringUtils.isEmpty(player.getCountry()) ? \"\" : player.getCountry()).orElse(null), player.countryProperty()));\n" ]
false
eff4781361b65e71
[ "A3", "A4" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
157b65757c99f782f8258e3abbded272e2731c3e
b79ddae4528000a3bc2940be5c78cc2481b3010b
17296248dd8b6f3a8db144ad21e5bc4cefede375
src/main/java/com/faforever/client/teammatchmaking/PartyMemberItemController.java
2
6
[ "\n" ]
[ " avatarImageView.visibleProperty().bind(player.avatarUrlProperty().isNotNull().and(player.avatarUrlProperty().isNotEmpty()));\n", " avatarImageView.imageProperty().bind(createObjectBinding(() -> Strings.isNullOrEmpty(player.getAvatarUrl()) ? null : avatarService.loadAvatar(player.getAvatarUrl()), player.av...
[ "// leagueImageView.visibleProperty().bind(player.avatarUrlProperty().isNotNull().and(player.avatarUrlProperty().isNotEmpty()));\n", "// leagueImageView.imageProperty().bind(createObjectBinding(() -> Strings.isNullOrEmpty(player.getAvatarUrl()) ? null : avatarService.loadAvatar(player.getAvatarUrl()), playe...
[]
[ " leagueImageView.setImage(avatarService.loadAvatar(\"https://content.faforever.com/faf/avatars/ICE_Test.png\"));\n", "\n", " clanLabel.visibleProperty().bind(player.clanProperty().isNotEmpty().and(player.clanProperty().isNotNull()));\n", " clanLabel.textProperty().bind(createStringBinding(() -> Stri...
[ " avatarImageView.visibleProperty().bind(player.avatarUrlProperty().isNotNull().and(player.avatarUrlProperty().isNotEmpty()));\n", " avatarImageView.imageProperty().bind(createObjectBinding(() -> Strings.isNullOrEmpty(player.getAvatarUrl()) ? null : avatarService.loadAvatar(player.getAvatarUrl()), player.av...
false
4cfae1766f800a1d
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
157b65757c99f782f8258e3abbded272e2731c3e
b79ddae4528000a3bc2940be5c78cc2481b3010b
17296248dd8b6f3a8db144ad21e5bc4cefede375
src/main/java/com/faforever/client/teammatchmaking/PartyMemberItemController.java
3
6
[ " leagueImageView.setImage(avatarService.loadAvatar(\"https://content.faforever.com/faf/avatars/ICE_Test.png\"));\n", "\n", " clanLabel.visibleProperty().bind(player.clanProperty().isNotEmpty().and(player.clanProperty().isNotNull()));\n", " clanLabel.textProperty().bind(createStringBinding(() -> Stri...
[ " leagueLabel.textProperty().bind(createStringBinding(\n", " () -> leagueLabel.getStyleClass().contains(\"uppercase\") ?\n", " i18n.get(\"leaderboard.divisionName\", RatingUtil.getLeaderboardRating(player)).toUpperCase() :\n", " i18n.get(\"leaderboard.divisionName\", RatingUtil...
[ "// ratingLabel.textProperty().bind(createStringBinding(() -> i18n.get(\"teammatchmaking.rating\", RatingUtil.getRoundedGlobalRating(player)), player.globalRatingMeanProperty(), player.globalRatingDeviationProperty()));\n", " gameCountLabel.textProperty().bind(createStringBinding(() -> i18n.get(\"teammatchm...
[ " gameCountLabel.textProperty().bind(createStringBinding(() -> i18n.get(\"teammatchmaking.gameCount\", player.getNumberOfGames()), player.numberOfGamesProperty()));\n", "\n" ]
[ "\n", " BooleanBinding isDifferentPlayerBinding = playerService.currentPlayerProperty().isNotEqualTo(player);\n", " kickPlayerButton.visibleProperty().bind(teamMatchmakingService.getParty().ownerProperty().isEqualTo(playerService.currentPlayerProperty()).and(isDifferentPlayerBinding));\n" ]
[ " leagueLabel.textProperty().bind(createStringBinding(\n", " () -> leagueLabel.getStyleClass().contains(\"uppercase\") ?\n", " i18n.get(\"leaderboard.divisionName\", RatingUtil.getLeaderboardRating(player)).toUpperCase() :\n", " i18n.get(\"leaderboard.divisionName\", RatingUtil...
false
4b4413742800a8d1
[ "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
337361dcca0b4598577e8db9761cf76d3eb7c6af
aa67c37c1bd548879850f6abda2ebdda964adb27
de93f165305e83c76cc62065b0b8b0e1034b385b
src/main/java/com/faforever/client/api/FafApiAccessorImpl.java
0
1
[ " if (searchConfig.hasQuery()) {\n", " parameterMap.add(\"filter\", searchConfig.getSearchQuery() + \";latestVersion.hidden==\\\"false\\\"\");\n", " }\n", " parameterMap.add(\"include\", \"latestVersion,reviewsSummary,versions,versions.reviews\");\n", " parameterMap.add(\"sort\", searchConf...
[ " public List<MatchmakerQueueMapPool> getMatchmakerPools(int matchmakerQueueId) {\n", " return getAll(\"/data/matchmakerQueueMapPool\", ImmutableMap.of(\n", " \"include\", \"matchmakerQueue,mapPool,mapPool.mapVersions,\" +\n", " \"mapPool.mapVersions.map,mapPool.mapVersions.map.latestVer...
[ " public Tuple<List<Ladder1v1Map>, java.util.Map<String, ?>> getLadder1v1MapsWithMeta(int count, int page) {\n", " JSONAPIDocument<List<Ladder1v1Map>> jsonApiDoc = getPageWithMeta(\"/data/ladder1v1Map\", count, page, ImmutableMap.of(\n", " \"include\", \"mapVersion,mapVersion.map,mapVersion.map.lates...
[ " public Tuple<List<Ladder1v1Map>, java.util.Map<String, ?>> getLadder1v1MapsWithMeta(int count, int page) {\n", " JSONAPIDocument<List<Ladder1v1Map>> jsonApiDoc = getPageWithMeta(\"/data/ladder1v1Map\", count, page, ImmutableMap.of(\n", " \"include\", \"mapVersion,mapVersion.map,mapVersion.map.lates...
[ " }\n", "\n", " @Override\n", " public List<TutorialCategory> getTutorialCategories() {\n", " return getAll(\"/data/tutorialCategory\",\n", " ImmutableMap.of(\"include\", \"tutorials,tutorials.mapVersion.map,tutorials.mapVersion.map.latestVersion,\" +\n", " \"tutorials.mapVersion...
[ " public List<MatchmakerQueueMapPool> getMatchmakerPools(int matchmakerQueueId) {\n", " return getAll(\"/data/matchmakerQueueMapPool\", ImmutableMap.of(\n", " \"include\", \"matchmakerQueue,mapPool,mapPool.mapVersion,\" +\n", " \"mapPool.mapVersion.map,mapPool.mapVersion.map.latestVersio...
false
1319956c4cb60616
null
needs new code
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
337361dcca0b4598577e8db9761cf76d3eb7c6af
aa67c37c1bd548879850f6abda2ebdda964adb27
de93f165305e83c76cc62065b0b8b0e1034b385b
src/main/java/com/faforever/client/main/MainController.java
0
1
[ "package com.faforever.client.main;\n", "\n", "import ch.micheljung.fxwindow.FxStage;\n" ]
[ "import com.faforever.client.chat.event.UnreadPartyMessageEvent;\n" ]
[]
[ "import com.faforever.client.FafClientApplication;\n" ]
[ "import com.faforever.client.chat.event.UnreadPrivateMessageEvent;\n", "import com.faforever.client.config.ClientProperties;\n", "import com.faforever.client.discord.JoinDiscordEvent;\n", "import com.faforever.client.fx.AbstractViewController;\n", "import com.faforever.client.fx.Controller;\n", "import co...
[ "import com.faforever.client.FafClientApplication;\n", "import com.faforever.client.chat.event.UnreadPartyMessageEvent;\n" ]
false
6d26fa58f42553b8
[ "B1", "A1" ]
B then A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
956f1530f7328055c037814135611eb0914d6b45
45a5b446c7acecc278906af05ec1df7dc6df31cc
ab58b251bfb962364a29083e2bea5109e06c9820
src/main/java/com/faforever/client/game/GameService.java
0
1
[ "package com.faforever.client.game;\n", "\n" ]
[ "import com.faforever.client.legacy.domain.GameLaunchInfo;\n", "import com.faforever.client.rankedmatch.OnRankedMatchNotificationListener;\n", "import com.faforever.client.util.Callback;\n" ]
[ "import com.faforever.client.util.Callback;\n" ]
[]
[ "import javafx.collections.ListChangeListener;\n", "import javafx.collections.MapChangeListener;\n", "import javafx.collections.ObservableList;\n", "import org.jetbrains.annotations.Nullable;\n", "\n", "import java.io.IOException;\n", "import java.net.URL;\n", "import java.nio.file.Path;\n", "import...
[ "import com.faforever.client.legacy.domain.GameLaunchInfo;\n", "import com.faforever.client.rankedmatch.OnRankedMatchNotificationListener;\n" ]
false
7c5d4d6516612ce6
[ "A1", "A2" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
956f1530f7328055c037814135611eb0914d6b45
45a5b446c7acecc278906af05ec1df7dc6df31cc
ab58b251bfb962364a29083e2bea5109e06c9820
src/main/java/com/faforever/client/legacy/LobbyServerAccessor.java
0
2
[ "package com.faforever.client.legacy;\n", "\n", "import com.faforever.client.game.Faction;\n", "import com.faforever.client.game.GameInfoBean;\n", "import com.faforever.client.game.NewGameInfo;\n", "import com.faforever.client.leaderboard.LeaderboardEntryBean;\n", "import com.faforever.client.legacy.dom...
[ "import com.faforever.client.rankedmatch.OnRankedMatchNotificationListener;\n", "import com.faforever.client.util.Callback;\n" ]
[ "import com.faforever.client.util.Callback;\n" ]
[]
[ "\n", "import java.util.Collection;\n", "import java.util.List;\n", "import java.util.concurrent.CompletableFuture;\n", "import java.util.concurrent.CompletionStage;\n", "\n", "/**\n", " * Entry class for all communication with the FAF lobby server, be it reading or writing. This class should only be\...
[ "import com.faforever.client.rankedmatch.OnRankedMatchNotificationListener;\n" ]
false
a63c80cff91328f8
[ "A1" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
956f1530f7328055c037814135611eb0914d6b45
45a5b446c7acecc278906af05ec1df7dc6df31cc
ab58b251bfb962364a29083e2bea5109e06c9820
src/main/java/com/faforever/client/main/MainController.java
0
1
[ "import javafx.stage.DirectoryChooser;\n", "import javafx.stage.Modality;\n", "import javafx.stage.Popup;\n", "import javafx.stage.PopupWindow;\n", "import javafx.stage.Stage;\n", "import javafx.stage.StageStyle;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.sprin...
[ "public class MainController implements OnLobbyConnectedListener, OnLobbyConnectingListener, OnFafDisconnectedListener,\n", " GamePortCheckListener, OnChoseGameDirectoryListener, OnRankedMatchNotificationListener {\n" ]
[ "public class MainController implements OnLobbyConnectedListener, OnLobbyConnectingListener, OnFafDisconnectedListener, GamePortCheckListener, OnChoseGameDirectoryListener {\n" ]
[ "public class MainController implements OnLobbyConnectedListener, OnLobbyConnectingListener, OnFafDisconnectedListener, OnChoseGameDirectoryListener {\n" ]
[ "\n", " private static final PseudoClass NOTIFICATION_INFO_PSEUDO_CLASS = PseudoClass.getPseudoClass(\"info\");\n", " private static final PseudoClass NOTIFICATION_WARN_PSEUDO_CLASS = PseudoClass.getPseudoClass(\"warn\");\n", " private static final PseudoClass NOTIFICATION_ERROR_PSEUDO_CLASS = PseudoClass....
[ "public class MainController implements OnLobbyConnectedListener, OnLobbyConnectingListener, OnFafDisconnectedListener, OnChoseGameDirectoryListener, OnRankedMatchNotificationListener {\n" ]
false
e3127e67704d8958
null
needs new code
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
956f1530f7328055c037814135611eb0914d6b45
45a5b446c7acecc278906af05ec1df7dc6df31cc
ab58b251bfb962364a29083e2bea5109e06c9820
src/test/java/com/faforever/client/game/GameServiceImplTest.java
1
7
[ "import java.util.concurrent.TimeUnit;\n", "\n", "import static java.util.concurrent.CompletableFuture.completedFuture;\n", "import static org.hamcrest.CoreMatchers.is;\n", "import static org.hamcrest.MatcherAssert.assertThat;\n", "import static org.hamcrest.Matchers.containsInAnyOrder;\n", "import stat...
[ " private static final int GAME_PORT = 1234;\n", " private GameServiceImpl instance;\n" ]
[ " private GameServiceImpl instance;\n" ]
[ " private static final long TIMEOUT = 5000;\n", " private static final TimeUnit TIME_UNIT = TimeUnit.MILLISECONDS;\n" ]
[ "\n", " @Mock\n" ]
[ " private static final long TIMEOUT = 5000;\n", " private static final TimeUnit TIME_UNIT = TimeUnit.MILLISECONDS;\n", " private static final int GAME_PORT = 1234;\n", "\n" ]
false
19c4ca0ef3c6b0e0
null
needs new code
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
956f1530f7328055c037814135611eb0914d6b45
45a5b446c7acecc278906af05ec1df7dc6df31cc
ab58b251bfb962364a29083e2bea5109e06c9820
src/test/java/com/faforever/client/legacy/LobbyServerAccessorImplTest.java
0
1
[ " gameTypeInfo.setName(name);\n", " gameTypeInfo.setFullname(fullname);\n", " gameTypeInfo.setDesc(description);\n", " gameTypeInfo.setIcon(icon);\n", " gameTypeInfo.setOptions(options);\n", "\n", " sendFromServer(gameTypeInfo);\n", "\n", " GameTypeInfo result = gameTypeInfoFutu...
[ " instance.connectAndLogInInBackground(connectionCallback);\n" ]
[ "\n", " instance.connectAndLogInInBackground(connectionCallback);\n" ]
[ " instance.connectAndLogInInBackground().thenRun(connectedLatch::countDown);\n" ]
[ "\n", " assertNotNull(messagesReceivedByFafServer.poll(TIMEOUT, TIMEOUT_UNIT));\n", "\n", " SessionInfo sessionInfo = new SessionInfo();\n", " sessionInfo.setSession(\"5678\");\n", "\n", " sendFromServer(sessionInfo);\n", "\n", " assertNotNull(messagesReceivedByFafServer.poll(TIMEOUT,...
[ " instance.connectAndLogInInBackground().thenRun(connectedLatch::countDown);\n" ]
false
c585d86a19d93ba2
[ "B1" ]
side B
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
4a1c0432d16c99296e1fa756e931a83a9d7407ed
729de55539ebf1625bc39bd33bddefcee41822b3
4db341127631aa2069eb260129e769f610650ae3
src/main/java/com/faforever/client/main/MainController.java
0
1
[ " MapVaultController mapMapVaultController;\n", " @Resource\n", " CastsController castsController;\n", " @Resource\n", " CommunityHubController communityHubController;\n", " @Resource\n", " GameUpdateService gameUpdateService;\n", " @Resource\n", " GameService gameService;\n", " @Resourc...
[ " LobbyService lobbyService;\n", " @Resource\n", " ExecutorService executorService;\n" ]
[ " LobbyService lobbyService;\n" ]
[ " FafService fafService;\n", " @Resource\n", " ChatService chatService;\n" ]
[ "\n", " @Value(\"${mainWindowTitle}\")\n", " String mainWindowTitle;\n", "\n", " @VisibleForTesting\n", " Popup persistentNotificationsPopup;\n", " private Popup userMenuPopup;\n", " private ChangeListener<Boolean> windowFocusListener;\n", " private Popup transientNotificationsPopup;\n", " ...
[ " FafService fafService;\n", " @Resource\n", " ChatService chatService;\n", " @Resource\n", " ExecutorService executorService;\n" ]
false
608545e71da36114
[ "B1", "B2", "B3", "A2", "A3" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71885574bd3775e19c1e921ac7baef9129be7e19
f3c53d75aa3108d6d3cc81bceb0e095bf37d99e4
6358e5f3f6829f5d2b92314fc4e06dba6392d785
src/main/java/com/faforever/client/legacy/LobbyServerAccessorImpl.java
0
1
[ "\n", " private void dispatchSocialInfo(SocialInfo socialInfo) {\n", " if (socialInfo.getFriends() != null) {\n", " onFriendListListener.onFriendList(socialInfo.getFriends());\n", " } else if (socialInfo.getFoes() != null) {\n", " onFoeListListener.onFoeList(socialInfo.getFoes());\n", "...
[ " }\n", " collectedModInfos.clear();\n" ]
[ " /**\n", " * Instead of sending a list of mod info, the server sends one mod after another. This is very inconvenient since we\n", " * don't really know how many there will be. However, at the moment, we \"know\" that the server sends 100 mods. So\n", " * let's wait for these and pray that this number...
[ " collectedModInfos.clear();\n", " }\n" ]
[ " }\n", "}\n" ]
[ " collectedModInfos.clear();\n", " }\n" ]
false
f43c5c39f813dc7f
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
ebd286795e7a71368501b80e9d056345eb92f197
81f9f3a5d9a1e17b6f41dbc9f42c884b8b8330fa
456c25c8b854c9641911c1ae2cbf16d73c1715f9
src/main/java/com/faforever/client/main/MainController.java
0
1
[ "import com.faforever.client.util.JavaFxUtil;\n", "import com.faforever.client.vault.VaultController;\n", "import javafx.animation.PathTransition;\n", "import javafx.animation.Timeline;\n", "import javafx.application.Platform;\n", "import javafx.collections.ObservableList;\n", "import javafx.css.PseudoC...
[ "import javafx.scene.layout.Region;\n", "import javafx.scene.shape.MoveTo;\n", "import javafx.scene.shape.Path;\n" ]
[ "import javafx.scene.layout.Region;\n" ]
[]
[ "import javafx.stage.Popup;\n", "import javafx.stage.PopupWindow;\n", "import javafx.stage.Stage;\n", "import javafx.util.Duration;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.core.env.Environment;\n", "\n", "import javax.annotation.PostConstruct...
[ "import javafx.scene.layout.Region;\n", "import javafx.scene.shape.MoveTo;\n", "import javafx.scene.shape.Path;\n" ]
false
e74b2d750e75f34b
[ "A1", "A2", "A3" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
ebd286795e7a71368501b80e9d056345eb92f197
81f9f3a5d9a1e17b6f41dbc9f42c884b8b8330fa
456c25c8b854c9641911c1ae2cbf16d73c1715f9
src/main/java/com/faforever/client/map/LegacyMapService.java
0
2
[ "package com.faforever.client.map;\n", "\n", "import com.faforever.client.game.MapInfoBean;\n", "import com.faforever.client.i18n.I18n;\n", "import com.faforever.client.legacy.map.MapVaultParser;\n", "import com.faforever.client.preferences.PreferencesService;\n", "import com.faforever.client.task.Prior...
[ "import com.faforever.client.util.ThemeUtil;\n" ]
[]
[ "import com.faforever.client.util.Unzipper;\n" ]
[ "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n", "import javafx.scene.image.Image;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.cache.anno...
[ "import com.faforever.client.util.ThemeUtil;\n", "import com.faforever.client.util.Unzipper;\n" ]
false
23b66655fed50947
[ "A1", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
ebd286795e7a71368501b80e9d056345eb92f197
81f9f3a5d9a1e17b6f41dbc9f42c884b8b8330fa
456c25c8b854c9641911c1ae2cbf16d73c1715f9
src/main/java/com/faforever/client/map/LegacyMapService.java
1
2
[ "import javafx.collections.FXCollections;\n", "import javafx.collections.ObservableList;\n", "import javafx.scene.image.Image;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.cache.anno...
[ "import java.net.MalformedURLException;\n", "import java.net.URL;\n", "import java.net.URLConnection;\n" ]
[]
[ "import java.net.URL;\n" ]
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.util.List;\n", "import java.util.Locale;\n", "import java.util.zip.ZipInputStream;\n", "\n", "import static com.faforever.client.task.TaskGroup.NET_LIGHT;\n", "\n", "public clas...
[ "import java.net.MalformedURLException;\n", "import java.net.URL;\n", "import java.net.URLConnection;\n" ]
false
1d5fe164c1cef935
[ "A1", "A2", "A3" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
187e535843d1e0bb6a9e61b3eaa933199b40257e
030736ff761c8bfc1d7712ac41cfb84913135f44
213989208abe1609bca0eb2abfafe97f08d341ee
src/main/java/com/faforever/client/map/MapServiceImpl.java
0
4
[ "package com.faforever.client.map;\n", "\n", "import com.faforever.client.config.CacheNames;\n", "import com.faforever.client.preferences.PreferencesService;\n", "import com.faforever.client.remote.FafService;\n", "import com.faforever.client.task.TaskService;\n", "import com.faforever.client.util.Concu...
[ "import org.jetbrains.annotations.NotNull;\n" ]
[]
[]
[ "import org.jetbrains.annotations.Nullable;\n" ]
[ "import org.jetbrains.annotations.NotNull;\n" ]
false
4aa7400d5e6fa1a4
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
187e535843d1e0bb6a9e61b3eaa933199b40257e
030736ff761c8bfc1d7712ac41cfb84913135f44
213989208abe1609bca0eb2abfafe97f08d341ee
src/main/java/com/faforever/client/map/MapServiceImpl.java
2
4
[ "import org.luaj.vm2.LuaValue;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.beans.factory.annotation.Value;\n", "import org.springframework.cache.annotation.Cacheable;\n", "import org.springframework.context.ApplicationContext;\n", "\n", "import ja...
[ "import java.nio.file.*;\n", "import java.util.*;\n" ]
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.util.Collection;\n", "import java.util.Collections;\n", "import java.util.HashMap;\n", "import java.util.Iterator;\n", "import java.util.LinkedList;\n", "import java.util.List;\n"...
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.nio.file.WatchEvent;\n", "import java.nio.file.WatchKey;\n", "import java.nio.file.WatchService;\n", "import java.util.Collection;\n", "import java.util.HashMap;\n", "import java....
[ "import java.util.concurrent.CompletableFuture;\n", "import java.util.concurrent.CompletionStage;\n", "import java.util.concurrent.ThreadPoolExecutor;\n", "import java.util.concurrent.locks.Lock;\n", "import java.util.concurrent.locks.ReentrantLock;\n", "import java.util.function.Consumer;\n", "import j...
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.nio.file.WatchKey;\n", "import java.nio.file.WatchService;\n", "import java.util.Collection;\n", "import java.util.HashMap;\n", "import java.util.LinkedList;\n", "import java.util...
false
0505b790e77f124a
[ "B1", "B2", "B3", "B5", "B6", "B7", "B8", "B9", "B10", "B11" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
187e535843d1e0bb6a9e61b3eaa933199b40257e
030736ff761c8bfc1d7712ac41cfb84913135f44
213989208abe1609bca0eb2abfafe97f08d341ee
src/main/java/com/faforever/client/mod/ModServiceImpl.java
2
6
[ "import org.luaj.vm2.LuaValue;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.cache.annotation.Cacheable;\n", "import org.springframework.context.ApplicationContext;\n", "\n", "import javax.annotation.PostConstruct;\n", "import javax.annotation.Resou...
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.nio.file.Paths;\n", "import java.nio.file.WatchEvent;\n", "import java.nio.file.WatchKey;\n", "import java.nio.file.WatchService;\n", "import java.util.Comparator;\n", "import jav...
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.nio.file.Paths;\n", "import java.nio.file.WatchEvent;\n", "import java.nio.file.WatchKey;\n", "import java.nio.file.WatchService;\n", "import java.util.Comparator;\n", "import jav...
[ "import java.nio.file.*;\n", "import java.util.*;\n" ]
[ "import java.util.concurrent.CompletableFuture;\n", "import java.util.concurrent.ThreadPoolExecutor;\n", "import java.util.concurrent.locks.Lock;\n", "import java.util.concurrent.locks.ReentrantLock;\n", "import java.util.function.Consumer;\n", "import java.util.regex.Matcher;\n", "import java.util.rege...
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.nio.file.Paths;\n", "import java.nio.file.WatchEvent;\n", "import java.nio.file.WatchKey;\n", "import java.nio.file.WatchService;\n", "import java.util.Comparator;\n", "import jav...
false
0e236c3ecdfa5898
[ "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10", "A11", "A12", "A13" ]
side A
{ "test_file": false, "benchmark_size": false, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
187e535843d1e0bb6a9e61b3eaa933199b40257e
030736ff761c8bfc1d7712ac41cfb84913135f44
213989208abe1609bca0eb2abfafe97f08d341ee
src/main/java/com/faforever/client/mod/ModServiceImpl.java
3
6
[ " return suggester.lookup(string, maxResults, true, false).stream()\n", " .map(lookupResult -> iterator.deserialize(lookupResult.payload.bytes))\n", " .collect(Collectors.toList());\n", " } catch (IOException e) {\n", " throw new RuntimeException(e);\n", " } f...
[ " throw new ModLoadException(\"Missing mod_info.lua in: \" + path.toAbsolutePath());\n" ]
[ " return null;\n" ]
[ " throw new ModLoadFailException(\"Missing mod_info.lua in: \" + path.toAbsolutePath());\n" ]
[ " }\n", "\n", " logger.debug(\"Reading mod {}\", path);\n", "\n" ]
[ " throw new ModLoadException(\"Missing mod_info.lua in: \" + path.toAbsolutePath());\n" ]
false
93ecb39b4f9bede7
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
187e535843d1e0bb6a9e61b3eaa933199b40257e
030736ff761c8bfc1d7712ac41cfb84913135f44
213989208abe1609bca0eb2abfafe97f08d341ee
src/main/java/com/faforever/client/preferences/PreferencesService.java
0
1
[ "import java.nio.file.Path;\n", "import java.nio.file.Paths;\n", "import java.util.*;\n", "import java.util.concurrent.CompletableFuture;\n", "\n", "import static java.nio.charset.StandardCharsets.US_ASCII;\n", "\n", "public class PreferencesService {\n", "\n", " /**\n", " * Points to the FAF...
[ " private static final String CORRUPTED_REPLAYS_SUB_FOLDER = \"corrupt\";\n" ]
[ " private static final String CORRUPTED_REPLAYS_SUB_FOLDER = \"corrupt\";\n" ]
[ " private static final String CORRUPTED_REPLAYS_SUB_FOLDER = \"_corrupt\";\n" ]
[ " private static final String CORRUPTED_MODS_SUB_FOLDER = \"corrupt_mods\";\n", " private static final String CACHE_SUB_FOLDER = \"cache\";\n", " private static final String CACHE_STYLESHEETS_SUB_FOLDER = Paths.get(CACHE_SUB_FOLDER, \"stylesheets\").toString();\n", " private static final Collection<Path> ...
[ " private static final String CORRUPTED_REPLAYS_SUB_FOLDER = \"corrupt\";\n" ]
false
2a75328533831f88
[ "A1" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
45a5b446c7acecc278906af05ec1df7dc6df31cc
71a7ff5b39b33127253229cb877f1265141d4508
c92399c1d49930431ca9309506fa3665910cb902
src/main/java/com/faforever/client/rankedmatch/Accept1v1MatchMessage.java
0
2
[ "package com.faforever.client.rankedmatch;\n", "\n", "import com.faforever.client.game.Faction;\n", "import com.faforever.client.legacy.domain.ClientMessageType;\n", "\n", "public class Accept1v1MatchMessage extends MatchMakerMessage {\n", "\n" ]
[ " private final Faction faction;\n", " private final int gameport;\n" ]
[ " public final Faction factionchosen;\n" ]
[ " private final Faction factionchosen;\n" ]
[ "\n" ]
[ " private final Faction faction;\n", " private final int gameport;\n" ]
false
f808aca9bfc2430e
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
45a5b446c7acecc278906af05ec1df7dc6df31cc
71a7ff5b39b33127253229cb877f1265141d4508
c92399c1d49930431ca9309506fa3665910cb902
src/main/java/com/faforever/client/rankedmatch/StopSearchRanked1v1Message.java
0
1
[ "package com.faforever.client.rankedmatch;\n", "\n", "import com.faforever.client.legacy.domain.ClientMessageType;\n", "\n", "public class StopSearchRanked1v1Message extends MatchMakerMessage {\n", "\n", " public StopSearchRanked1v1Message() {\n", " super(ClientMessageType.GAME_MATCH_MAKING);\n" ]
[ " state = \"stop\";\n", " mod = \"ladder1v1\";\n" ]
[ " state = \"askingtostop\";\n", " mod = \"matchmaker\";\n" ]
[ " state = \"askingtostop\";\n", " mod = \"matchmaker\";\n" ]
[ " }\n", "}\n" ]
[ " state = \"stop\";\n", " mod = \"ladder1v1\";\n" ]
false
cbcc0f1ae2605cb1
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
3b949cb932c75599ef488e53f174119cfcde7925
7ac8d3b65c8c081dc7c2f93fc420f018e43e5c6e
ac36bab48b5456c39489ac7f25f123ada3e282c0
src/main/java/com/faforever/client/game/GamesController.java
0
1
[ " }\n", "\n", " public void displayGameDetail(GameInfoBean gameInfoBean) {\n", " currentGameInfoBean = gameInfoBean;\n", " gameTitleLabel.setText(gameInfoBean.getTitle());\n", " mapImageView.setImage(mapService.loadLargePreview(gameInfoBean.getMapTechnicalName()));\n", "\n", " gameInfoBe...
[ " \n" ]
[ "\n", "\n", ">>>>>>>>> Temporary merge branch 2\n" ]
[ "\n", "\n" ]
[ " createTeams(gameInfoBean.getTeams());\n", " }\n", "\n", " private void updateGameType(String newValue) {\n", " GameTypeBean gameType = gameService.getGameTypeByString(newValue);\n", " String fullName = gameType != null ? gameType.getFullName() : null;\n", " gameTypeLabel.setText(StringUt...
[ "\n", "\n" ]
false
02e5512a42a4ac31
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
2fd97bb2dd47df548b4b1b9b4f612c5843932503
b0aebd40acc17bc75a58a9a751220027e1baac49
d49b49526787743a3aa28653b5a2cd80f6ad8baf
src/main/java/com/faforever/client/fx/JavaFxUtil.java
0
1
[ " */\n", "public final class JavaFxUtil {\n", "\n", " public static final StringConverter<Path> PATH_STRING_CONVERTER = new StringConverter<Path>() {\n", " @Override\n", " public String toString(Path object) {\n", " if (object == null) {\n", " return null;\n", " }\n", " ...
[ "\n", " private static final double ZOOM_STEP = 0.2d;\n" ]
[ " private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());\n", " private static final double ZOOM_STEP = 0.2d;\n" ]
[]
[ "\n", " private JavaFxUtil() {\n", " throw new AssertionError(\"Not instantiatable\");\n", " }\n", "\n", " public static void makeSuggestionField(TextField textField,\n", " Function<String, CompletionStage<Set<Label>>> itemsFactory,\n", " ...
[]
false
5d482656c179974a
[]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
2fd97bb2dd47df548b4b1b9b4f612c5843932503
b0aebd40acc17bc75a58a9a751220027e1baac49
d49b49526787743a3aa28653b5a2cd80f6ad8baf
src/main/java/com/faforever/client/user/UserServiceImpl.java
0
1
[ "package com.faforever.client.user;\n", "\n", "import com.faforever.client.preferences.PreferencesService;\n", "import com.faforever.client.remote.FafService;\n", "import com.faforever.client.remote.domain.LoginMessage;\n" ]
[ "import com.faforever.client.task.CompletableTask;\n", "import com.faforever.client.task.TaskService;\n" ]
[]
[ "import com.faforever.client.remote.domain.NoticeMessage;\n" ]
[ "import com.faforever.client.user.event.LoginSuccessEvent;\n", "import com.google.common.eventbus.EventBus;\n", "import javafx.beans.property.BooleanProperty;\n", "import javafx.beans.property.ReadOnlyStringProperty;\n", "import javafx.beans.property.SimpleBooleanProperty;\n", "import javafx.beans.propert...
[ "import com.faforever.client.remote.domain.NoticeMessage;\n", "import com.faforever.client.task.CompletableTask;\n", "import com.faforever.client.task.TaskService;\n" ]
false
088e157f4e624286
[ "B1", "A1", "A2" ]
B then A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
827ee919f6d889335bea269e0555500d0453cdb5
60226c6db603c66a365feeb068406c4dabf7e490
57a4d96e9ebb0483a02ff70e0259ef15236ca7dc
src/main/java/com/faforever/client/game/GameService.java
0
1
[ "\n", " private double calcAverageRating(GameInfoMessage gameInfoMessage) {\n", " return gameInfoMessage.getTeams().values().stream()\n", " .flatMap(Collection::stream)\n", " .map(playerService::getPlayerForUsername)\n", " .filter(Optional::isPresent)\n", " .map(Optional:...
[ "// game.setVictoryCondition(gameInfoMessage.getGameType()); // TODO: remove/update dependent code\n", " // TODO: set game type to game and use\n" ]
[ " game.setVictoryCondition(gameInfoMessage.getGameType());\n" ]
[]
[ " Optional.ofNullable(gameInfoMessage.getLaunchedAt()).ifPresent(aDouble -> game.setStartTime(\n", " TimeUtil.fromPythonTime(aDouble.longValue()).toInstant()\n", " ));\n", " game.setStatus(gameInfoMessage.getState());\n", " game.setPasswordProtected(gameInfoMessage.getPasswordProtected())...
[ "// game.setVictoryCondition(gameInfoMessage.getGameType()); // TODO: remove/update dependent code\n", " // TODO: set game type to game and use\n" ]
false
b28138837a673032
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
827ee919f6d889335bea269e0555500d0453cdb5
60226c6db603c66a365feeb068406c4dabf7e490
57a4d96e9ebb0483a02ff70e0259ef15236ca7dc
src/main/java/com/faforever/client/play/PlayController.java
0
2
[ " private final EventBus eventBus;\n", " public Tab teamMatchmakingTab;\n", " public Tab customGamesTab;\n", " public Tab coopTab;\n", " public Tab ladderTab;\n", " public TabPane playRootTabPane;\n", " public TeamMatchmakingController teamMatchmakingController;\n", " public CustomGamesControl...
[ " eventBus.post(new OpenTeamMatchmakingEvent());\n", " lastTab = customGamesController;\n" ]
[ " eventBus.post(new OpenCustomGamesEvent());\n", " lastTab = customGamesController;\n" ]
[ " lastTab = customGamesTab;\n", " lastTabController = customGamesController;\n" ]
[ " playRootTabPane.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n", " if (isHandlingEvent) {\n", " return;\n", " }\n", "\n", " if (newValue == teamMatchmakingTab) {\n", " eventBus.post(new OpenTeamMatchmakingEvent());\n", "...
[ " lastTab = teamMatchmakingTab;\n", " lastTabController = teamMatchmakingController;\n" ]
false
aff64373daa67415
null
needs new code
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
827ee919f6d889335bea269e0555500d0453cdb5
60226c6db603c66a365feeb068406c4dabf7e490
57a4d96e9ebb0483a02ff70e0259ef15236ca7dc
src/main/java/com/faforever/client/remote/domain/GameInfoMessage.java
0
1
[ "\n", "import java.util.List;\n", "import java.util.Map;\n", "\n", "@Getter\n", "@Setter\n", "@ToString(of = {\"uid\", \"title\", \"state\"})\n", "public class GameInfoMessage extends FafServerMessage {\n", "\n", " private String host;\n", " private Boolean passwordProtected;\n", " // TODO ...
[ " // FAF calls this \"game_type\" but it's actually the victory condition.\n", "// private VictoryCondition gameType; TODO: remove\n", " private String gameType;// TODO: interpret / use\n" ]
[ " // FAF calls this \"game_type\" but it's actually the victory condition.\n", " private VictoryCondition gameType;\n" ]
[]
[ " private Map<String, String> simMods;\n", " private String mapname;\n", " private Double launchedAt;\n", " /**\n", " * The server may either send a single game or a list of games in the same message... *cringe*.\n", " */\n", " private List<GameInfoMessage> games;\n", "\n", " public GameIn...
[ " // FAF calls this \"game_type\" but it's actually the victory condition.\n", "// private VictoryCondition gameType; TODO: remove\n", " private String gameType;// TODO: interpret / use\n" ]
false
e7851b8d46b58a7c
[ "A1", "A2", "A3" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
827ee919f6d889335bea269e0555500d0453cdb5
60226c6db603c66a365feeb068406c4dabf7e490
57a4d96e9ebb0483a02ff70e0259ef15236ca7dc
src/test/java/com/faforever/client/game/GameInfoMessageBuilder.java
0
1
[ " public GameInfoMessageBuilder mapName(String mapName) {\n", " gameInfoMessage.setMapname(mapName);\n", " return this;\n", " }\n", "\n", " public GameInfoMessageBuilder featuredMod(String mod) {\n", " gameInfoMessage.setFeaturedMod(mod);\n", " return this;\n", " }\n", "\n", " p...
[ " public GameInfoMessageBuilder gameType(String gameType) {\n", " gameInfoMessage.setGameType(gameType);\n", " return this;\n", " }\n", "\n" ]
[ " public GameInfoMessageBuilder gameType(VictoryCondition gameType) {\n", " gameInfoMessage.setGameType(gameType);\n", " return this;\n", " }\n", "\n" ]
[]
[ " public GameInfoMessageBuilder state(GameStatus state) {\n", " gameInfoMessage.setState(state);\n", " return this;\n", " }\n", "\n", " public GameInfoMessageBuilder passwordProtected(boolean passwordProtected) {\n", " gameInfoMessage.setPasswordProtected(passwordProtected);\n", " retur...
[ " public GameInfoMessageBuilder gameType(String gameType) {\n", " gameInfoMessage.setGameType(gameType);\n", " return this;\n", " }\n", "\n" ]
false
792f6fe7cfa9e259
[ "A1", "A2", "A3", "A4", "A5" ]
side A
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71a7ff5b39b33127253229cb877f1265141d4508
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
a66354041bf2011656770f7b9e869f8e4224798b
src/main/java/com/faforever/client/config/UiConfig.java
0
3
[ "import com.faforever.client.game.GameTileController;\n", "import com.faforever.client.game.GameTooltipController;\n", "import com.faforever.client.game.GamesController;\n", "import com.faforever.client.game.GamesTableController;\n", "import com.faforever.client.game.GamesTilesContainerController;\n", "im...
[ "import com.faforever.client.main.hub.CommunityHubController;\n", "import com.faforever.client.main.hub.ConcurrentUsersController;\n" ]
[ "import com.faforever.client.main.hub.CommunityHubController;\n", "import com.faforever.client.main.hub.ConcurrentUsersController;\n" ]
[ "import com.faforever.client.map.CommentCardController;\n", "import com.faforever.client.map.MapPreviewLargeController;\n" ]
[ "import com.faforever.client.map.MapVaultController;\n", "import com.faforever.client.mod.ModVaultController;\n", "import com.faforever.client.news.NewsController;\n", "import com.faforever.client.news.NewsListItemController;\n", "import com.faforever.client.notification.ImmediateNotificationController;\n",...
[ "import com.faforever.client.map.CommentCardController;\n", "import com.faforever.client.map.MapPreviewLargeController;\n" ]
false
598a14970869d15d
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71a7ff5b39b33127253229cb877f1265141d4508
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
a66354041bf2011656770f7b9e869f8e4224798b
src/main/java/com/faforever/client/config/UiConfig.java
1
3
[ "import com.faforever.client.map.MapVaultController;\n", "import com.faforever.client.mod.ModVaultController;\n", "import com.faforever.client.news.NewsController;\n", "import com.faforever.client.news.NewsListItemController;\n", "import com.faforever.client.notification.ImmediateNotificationController;\n",...
[ "import com.faforever.client.sound.AudioClipPlayer;\n", "import com.faforever.client.sound.AudioClipPlayerImpl;\n", "import com.faforever.client.sound.SoundController;\n", "import com.faforever.client.sound.SoundControllerImpl;\n" ]
[ "import com.faforever.client.sound.AudioClipPlayer;\n", "import com.faforever.client.sound.AudioClipPlayerImpl;\n", "import com.faforever.client.sound.SoundController;\n", "import com.faforever.client.sound.SoundControllerImpl;\n", "import com.faforever.client.map.MapVaultController;\n" ]
[]
[ "import org.springframework.beans.factory.annotation.Autowired;\n", "import org.springframework.beans.factory.config.ConfigurableBeanFactory;\n", "import org.springframework.context.annotation.Bean;\n", "import org.springframework.context.annotation.Import;\n", "import org.springframework.context.annotation...
[]
false
828008c8d0bb24a1
[]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71a7ff5b39b33127253229cb877f1265141d4508
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
a66354041bf2011656770f7b9e869f8e4224798b
src/main/java/com/faforever/client/legacy/ClientMessageSerializer.java
0
1
[ "package com.faforever.client.legacy;\n", "\n", "import com.faforever.client.game.Faction;\n", "import com.faforever.client.legacy.domain.ClientMessage;\n", "import com.faforever.client.legacy.domain.ClientMessageType;\n", "import com.faforever.client.legacy.domain.GameAccess;\n", "import com.faforever....
[ "import com.faforever.client.legacy.gson.FactionSerializer;\n" ]
[]
[ "import com.faforever.client.legacy.gson.ClientMessageTypeTypeAdapter;\n" ]
[ "import com.faforever.client.legacy.gson.GameAccessTypeAdapter;\n", "import com.faforever.client.legacy.gson.GameStateTypeAdapter;\n", "import com.faforever.client.legacy.gson.VictoryConditionTypeAdapter;\n", "import com.faforever.client.legacy.io.QStreamWriter;\n", "import com.faforever.client.legacy.write...
[ "import com.faforever.client.legacy.gson.FactionSerializer;\n", "import com.faforever.client.legacy.gson.ClientMessageTypeTypeAdapter;\n" ]
false
66534504fdffe562
[ "A1", "B1" ]
A then B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71a7ff5b39b33127253229cb877f1265141d4508
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
a66354041bf2011656770f7b9e869f8e4224798b
src/main/java/com/faforever/client/legacy/LobbyServerAccessorImpl.java
0
2
[ " private final Collection<OnGameLaunchInfoListener> onGameLaunchListeners;\n", " @Autowired\n", " Environment environment;\n", " @Autowired\n", " PreferencesService preferencesService;\n", " @Autowired\n", " LeaderboardParser leaderboardParser;\n", " @Autowired\n", " TaskService taskServic...
[ " private Collection<OnGameInfoListener> onGameInfoListeners;\n", " private Collection<OnGameTypeInfoListener> onGameTypeInfoListeners;\n", " private Collection<OnJoinChannelsRequestListener> onJoinChannelsRequestListeners;\n", " private Collection<OnGameLaunchInfoListener> onGameLaunchListeners;\n", " ...
[ " private Collection<OnGameInfoListener> onGameInfoListeners;\n", " private Collection<OnGameTypeInfoListener> onGameTypeInfoListeners;\n", " private Collection<OnJoinChannelsRequestListener> onJoinChannelsRequestListeners;\n", " private Collection<OnGameLaunchInfoListener> onGameLaunchListeners;\n", "\...
[]
[ " // Yes I know, those aren't lists. They will become if it's necessary\n", " private OnLobbyConnectingListener onLobbyConnectingListener;\n", " private OnFafDisconnectedListener onFafDisconnectedListener;\n", " private OnLobbyConnectedListener onLobbyConnectedListener;\n", " private OnPlayerInfoListen...
[ " private Collection<OnRankedMatchNotificationListener> onRankedMatchNotificationListeners;\n", "\n" ]
false
3961770c69928a8b
[ "A5", "A6" ]
mix of lines
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
71a7ff5b39b33127253229cb877f1265141d4508
09995be35e0d8915ec461cd13df9ba2ea8e80eb3
a66354041bf2011656770f7b9e869f8e4224798b
src/main/java/com/faforever/client/legacy/LobbyServerAccessorImpl.java
1
2
[ " executeInBackground(fafConnectionTask);\n", " }\n", "\n", " private ServerWriter createServerWriter(OutputStream outputStream) throws IOException {\n", " ServerWriter serverWriter = new ServerWriter(outputStream);\n", " serverWriter.registerMessageSerializer(new ClientMessageSerializer(userna...
[ " private void onGameInfo(GameInfo gameInfo) {\n", " onGameInfoListeners.forEach(listener -> listener.onGameInfo(gameInfo));\n", " }\n", "\n", " private void onGameTypeInfo(GameTypeInfo gameTypeInfo) {\n", " onGameTypeInfoListeners.forEach(listener -> listener.onGameTypeInfo(gameTypeInfo));\n", ...
[ " private void onGameInfo(GameInfo gameInfo) {\n", " for (OnGameInfoListener listener : onGameInfoListeners) {\n", " Platform.runLater(() -> listener.onGameInfo(gameInfo));\n", " }\n", " }\n", "\n", " private void onGameTypeInfo(GameTypeInfo gameTypeInfo) {\n", " for (OnGameTypeInfoLi...
[]
[ " @Override\n", " public void addOnGameInfoListener(OnGameInfoListener listener) {\n", " onGameInfoListeners.add(listener);\n", " }\n", "\n", " @Override\n", " public void setOnPlayerInfoMessageListener(OnPlayerInfoListener listener) {\n", " onPlayerInfoListener = listener;\n", " }\n", ...
[]
false
cde833f26b8daba2
[]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
25c14cb56c4ef02094dbc0e69a160d56d6211a71
47c1c5314f4d065ac228cf3dde53a6825c378fd6
400441fe4b635d547a74cc7d118da0d14d99f020
src/main/java/com/faforever/client/config/ServiceConfig.java
1
2
[ " @Bean\n", " ClientUpdateService updateService() {\n", " if (environment.containsProperty(\"faf.testing\")) {\n", " return new MockClientUpdateService();\n", " } else {\n", " return new ClientUpdateServiceImpl();\n", " }\n", " }\n", "\n", " @Bean\n", " UidService uidServ...
[ " CloudService cloudService() {\n", " if (environment.containsProperty(\"faf.testing\")) {\n", " return new MockCloudService();\n", " } else {\n", " return new ParseCloudService();\n" ]
[ " CloudService parseComService() {\n", " return new ParseCloudService();\n" ]
[ " CloudAccessor cloudAccessor() {\n", " if (environment.containsProperty(\"faf.testing\")) {\n", " return new MockCloudAccessor();\n", " } else {\n", " return new ParseCloudAccessor();\n" ]
[ " }\n", " }\n", "\n", " @Bean\n", " AchievementService achievementService() {\n", " return new AchievementServiceImpl();\n", " }\n", "\n", " @Bean\n", " GravatarService gravatarService() {\n", " if (environment.containsProperty(\"faf.testing\")) {\n", " return new MockGrava...
[ " CloudAccessor cloudAccessor() {\n", " if (environment.containsProperty(\"faf.testing\")) {\n", " return new MockCloudAccessor();\n", " } else {\n", " return new ParseCloudAccessor();\n" ]
false
824010de912ca084
[ "B1", "B2", "B3", "B4", "B5" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
25c14cb56c4ef02094dbc0e69a160d56d6211a71
47c1c5314f4d065ac228cf3dde53a6825c378fd6
400441fe4b635d547a74cc7d118da0d14d99f020
src/main/java/com/faforever/client/gravatar/GravatarServiceImpl.java
1
3
[ "import javafx.scene.image.Image;\n", "import org.jetbrains.annotations.NotNull;\n", "import org.slf4j.Logger;\n", "import org.slf4j.LoggerFactory;\n", "import org.springframework.core.env.Environment;\n", "\n", "import javax.annotation.Resource;\n", "import java.lang.invoke.MethodHandles;\n", "\n",...
[ "\n", " public GravatarServiceImpl() {\n", " }\n" ]
[ " private Gravatar gravatar;\n", "\n", " public GravatarServiceImpl() {\n", " gravatar = new Gravatar(Gravatar.DEFAULT_SIZE, GravatarRating.GENERAL_AUDIENCES, GravatarDefaultImage.GRAVATAR_ICON);\n", " }\n" ]
[ " @Resource\n", " Environment environment;\n" ]
[ "\n", " @Override\n", " public Image getGravatar(String email) {\n" ]
[ " @Resource\n", " Environment environment;\n" ]
false
eca5f265816b9d06
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
25c14cb56c4ef02094dbc0e69a160d56d6211a71
47c1c5314f4d065ac228cf3dde53a6825c378fd6
400441fe4b635d547a74cc7d118da0d14d99f020
src/main/java/com/faforever/client/map/MapServiceImpl.java
0
1
[ "import java.nio.file.DirectoryStream;\n", "import java.nio.file.Files;\n", "import java.nio.file.Path;\n", "import java.util.Collections;\n", "import java.util.HashMap;\n", "import java.util.List;\n", "import java.util.Locale;\n", "import java.util.Map;\n", "import java.util.concurrent.CompletableF...
[ " public static OfficialMap fromMapName(String mapName) {\n", " return valueOf(mapName.toUpperCase());\n" ]
[ " X1MP_005, X1MP_006, X1MP_007, X1MP_008, X1MP_009, X1MP_010, X1MP_011, X1MP_012, X1MP_014, X1MP_017\n" ]
[ " private static final Map<String, OfficialMap> fromString;\n", " static {\n", " fromString = new HashMap<>();\n", " for (OfficialMap officialMap : values()) {\n", " fromString.put(officialMap.name(), officialMap);\n", " }\n", " }\n", "\n", " public static OfficialM...
[ " }\n", " }\n", "\n", " private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());\n", "\n", " @Autowired\n", " Environment environment;\n", " @Autowired\n", " PreferencesService preferencesService;\n", " @Autowired\n", " TaskService taskServic...
[ " private static final Map<String, OfficialMap> fromString;\n", " static {\n", " fromString = new HashMap<>();\n", " for (OfficialMap officialMap : values()) {\n", " fromString.put(officialMap.name(), officialMap);\n", " }\n", " }\n", "\n", " public static OfficialM...
false
e9b8431168da3f36
[ "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
25c14cb56c4ef02094dbc0e69a160d56d6211a71
47c1c5314f4d065ac228cf3dde53a6825c378fd6
400441fe4b635d547a74cc7d118da0d14d99f020
src/main/java/com/faforever/client/relay/LocalRelayServer.java
0
1
[ "package com.faforever.client.relay;\n" ]
[]
[ "package com.faforever.client.legacy.relay;\n" ]
[ "\n", "import java.util.function.Consumer;\n" ]
[ "\n", "/**\n", " * A local relay server to which Forged Alliance can connect to. All data received from FA is transformed and forwarded\n", " * to the FAF relay server, and vice-versa. To FA, this looks like a GPG server.\n", " */\n", "public interface LocalRelayServer {\n", "\n", " void addOnReadyLi...
[ "\n", "import java.util.function.Consumer;\n" ]
false
affe92788ac845ff
[ "B1", "B2" ]
side B
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
25c14cb56c4ef02094dbc0e69a160d56d6211a71
47c1c5314f4d065ac228cf3dde53a6825c378fd6
400441fe4b635d547a74cc7d118da0d14d99f020
src/test/java/com/faforever/client/player/PlayerServiceImplTest.java
1
2
[ "\n", "import java.util.Arrays;\n", "import java.util.Set;\n", "\n", "import static java.util.Collections.singletonList;\n", "import static org.hamcrest.Matchers.containsInAnyOrder;\n", "import static org.hamcrest.Matchers.empty;\n", "import static org.hamcrest.Matchers.hasSize;\n", "import static o...
[ " LobbyServerAccessor lobbyServerAccessor;\n", " @Mock\n", " UserService userService;\n" ]
[]
[ " UserService userService;\n", " @Mock\n", " private LobbyServerAccessor lobbyServerAccessor;\n" ]
[ " private PlayerServiceImpl instance;\n", "\n", " @Before\n", " public void setUp() throws Exception {\n", " MockitoAnnotations.initMocks(this);\n", "\n", " instance = new PlayerServiceImpl();\n", " instance.lobbyServerAccessor = lobbyServerAccessor;\n", " instance.userService = userS...
[ " UserService userService;\n", " @Mock\n", " LobbyServerAccessor lobbyServerAccessor;\n" ]
false
e04fd04f00ca7d62
[ "A3", "A2", "A1" ]
mix of lines
{ "test_file": true, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT
FAForever/downlords-faf-client
f6e7d7818a08f895a4b59a4a3cdd21ddc72613d1
15e4a40a4a3f063d4d92de06c70d492feab58589
fa586803fd970c57fa2757ae9b13b0b8adc4f1a7
src/main/java/com/faforever/client/chat/PlayerInfoBean.java
2
8
[ " public boolean getFoe() {\n", " return foe.get();\n", " }\n", "\n", " public void setFoe(boolean foe) {\n", " this.foe.set(foe);\n", " }\n", "\n", " public ObservableSet<String> getModeratorForChannels() {\n", " return moderatorForChannels.get();\n", " }\n", "\n", " public ...
[ " public void setChatOnly(boolean chatOnly) {\n", " this.chatOnly.set(chatOnly);\n" ]
[ " public float getDeviation() {\n", " return deviation.get();\n" ]
[ " public float getGlobalRatingDeviation() {\n", " return globalRatingDeviation.get();\n" ]
[ " }\n", "\n" ]
[ " public void setChatOnly(boolean chatOnly) {\n", " this.chatOnly.set(chatOnly);\n" ]
false
346aa36956fa0ec2
[ "A1", "A2" ]
side A
{ "test_file": false, "benchmark_size": true, "sides_differ_only_in_spacing": false }
MIT