conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
/**
* This method will return a boolean indicating whether the current user is allowed to register a new
* account or not
* @param context The relevant DSpace context
* @param request The current request
* @return A boolean indicating whether the current user can regis... |
<<<<<<<
@Override
public WorkspaceItem findDomainObjectByPk(Context context, Integer id) throws SQLException {
return wis.find(context, id);
}
=======
/**
* This is a search method that will return the WorkspaceItemRest object found through the UUID of an item. It'll
* find the Item ... |
<<<<<<<
=======
List<BundleRest> bundles;
List<RelationshipRest> relationships;
>>>>>>>
List<BundleRest> bundles; |
<<<<<<<
public static final int MAIN_PAGE = 0;
public static final int REJECT_PAGE = 1;
public static final int SUBMITTER_IS_DELETED_PAGE = 2;
=======
private static final String SUBMIT_APPROVE = "submit_approve";
private static final String SUBMIT_REJECT = "submit_reject";
>>>>>>>
private st... |
<<<<<<<
import static org.dspace.app.rest.matcher.MetadataMatcher.matchMetadata;
import static org.hamcrest.Matchers.allOf;
=======
import static org.hamcrest.Matchers.hasSize;
>>>>>>>
import static org.dspace.app.rest.matcher.MetadataMatcher.matchMetadata;
import static org.hamcrest.Matchers.allOf;
import static or... |
<<<<<<<
=======
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
>>>>>>>
import com.google.common.collect.ImmutableList; |
<<<<<<<
import com.google.gerrit.entities.BranchNameKey;
import com.google.gerrit.entities.Project;
=======
import com.google.gerrit.exceptions.StorageException;
>>>>>>>
import com.google.gerrit.entities.BranchNameKey;
import com.google.gerrit.entities.Project;
import com.google.gerrit.exceptions.StorageException; |
<<<<<<<
=======
import org.dspace.app.rest.projection.Projection;
import org.dspace.app.rest.repository.patch.DSpaceObjectPatch;
>>>>>>>
import org.dspace.app.rest.projection.Projection;
<<<<<<<
GroupRestRepository(GroupService dsoService,
GroupConverter dsoConverter) {
super(dso... |
<<<<<<<
/**
* This method will update the place for the Relationship and all other relationships found by the items and
* relationship type of the given Relatonship. It will give this Relationship the last place in both the
* left and right place determined by querying for the list of leftRelationsh... |
<<<<<<<
* Internal method to execute POST with text/uri-list MediaType;
*
* @param request The relevant request
* @param apiCategory The apiCategory to be used
* @param model The model to be used
* @return The relevant ResponseEntity for this request
* @th... |
<<<<<<<
super(cfg, sitePaths, schema, clientBuilder, ACCOUNTS_PREFIX);
=======
// No parts of FillArgs are currently required, just use null.
super(cfg, null, sitePaths, schema, clientBuilder, ACCOUNTS);
>>>>>>>
super(cfg, sitePaths, schema, clientBuilder, ACCOUNTS); |
<<<<<<<
ProcessRest processRest = scriptRestRepository.startProcess(scriptName, files);
ProcessResource processResource = new ProcessResource(processRest, utils, null);
halLinkService.addLinks(processResource);
=======
ProcessRest processRest = scriptRestRepository.startProcess(scriptN... |
<<<<<<<
import com.google.gerrit.reviewdb.client.Account;
=======
import com.google.gerrit.reviewdb.client.Account.Id;
import com.google.gerrit.testing.ConfigSuite;
import org.eclipse.jgit.lib.Config;
>>>>>>>
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.testing.ConfigSuite;
import org.e... |
<<<<<<<
/**
* Modify a template Item which is a template Item
* @param item The Item to be modified
* @param jsonNode The patch to be applied
* @return The Item as it is after applying the patch
* @throws SQLException
* @throws AuthorizeException
*/
... |
<<<<<<<
import org.dspace.app.rest.builder.ItemBuilder;
=======
import org.dspace.app.rest.builder.GroupBuilder;
>>>>>>>
import org.dspace.app.rest.builder.GroupBuilder;
import org.dspace.app.rest.builder.ItemBuilder; |
<<<<<<<
import org.dspace.eperson.EPerson;
import org.dspace.eperson.factory.EPersonServiceFactory;
import org.dspace.services.factory.DSpaceServicesFactory;
=======
import org.dspace.eperson.Group;
import org.dspace.eperson.factory.EPersonServiceFactory;
import org.dspace.eperson.service.GroupService;
import org.dsp... |
<<<<<<<
=======
import org.dspace.app.rest.model.DirectlyAddressableRestModel;
>>>>>>> |
<<<<<<<
import com.google.common.collect.Iterables;
=======
import com.google.common.collect.Lists;
>>>>>>>
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
<<<<<<<
import com.google.gerrit.reviewdb.client.PatchSet;
import com.google.gerrit.reviewdb.client.PatchSetApproval;
=====... |
<<<<<<<
public DiscoverQuery prepareQuery(DSpaceObject scope) throws UIException, SearchServiceException {
this.queryArgs = new DiscoverQuery();
// possibly an argument
int page = getParameterPage();
String query = getQuery();
List<String> filterQueries = new ArrayLi... |
<<<<<<<
import org.dspace.app.rest.converter.BitstreamConverter;
import org.dspace.app.rest.converter.CollectionConverter;
import org.dspace.app.rest.converter.ItemConverter;
import org.dspace.app.rest.converter.MetadataConverter;
=======
>>>>>>>
import org.dspace.app.rest.converter.BitstreamConverter;
import org.ds... |
<<<<<<<
import org.dspace.util.SolrUtils;
=======
import org.dspace.workflow.WorkflowItem;
import org.dspace.xmlworkflow.WorkflowConfigurationException;
import org.dspace.xmlworkflow.factory.XmlWorkflowFactory;
import org.dspace.xmlworkflow.storedcomponents.ClaimedTask;
import org.dspace.xmlworkflow.storedcomponents.... |
<<<<<<<
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
=======
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
>>>>>>>
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
<<<<<<<
public List<RelationshipMetadataV... |
<<<<<<<
=======
import org.dspace.app.rest.converter.BitstreamConverter;
import org.dspace.app.rest.converter.CollectionConverter;
import org.dspace.app.rest.converter.MetadataConverter;
>>>>>>>
<<<<<<<
=======
CollectionConverter converter;
@Autowired
BitstreamConverter bitstreamConverter;
@Aut... |
<<<<<<<
import org.dspace.content.virtual.VirtualMetadataPopulator;
=======
import org.dspace.core.Constants;
>>>>>>>
import org.dspace.content.virtual.VirtualMetadataPopulator;
import org.dspace.core.Constants; |
<<<<<<<
.andExpect(jsonPath("$._links.submissiondefinitions.href", startsWith(REST_SERVER_URL)))
.andExpect(jsonPath("$._links.submissionforms.href", startsWith(REST_SERVER_URL)))
.andExpect(jsonPath("$._links.submissionsections.href", startsWith(REST_SERVER_URL)))
... |
<<<<<<<
=======
import org.dspace.app.rest.repository.handler.service.UriListHandlerService;
import org.dspace.app.rest.repository.patch.ItemPatch;
>>>>>>>
import org.dspace.app.rest.repository.handler.service.UriListHandlerService;
<<<<<<<
public ItemRestRepository(ItemService dsoService) {
super(dsoSe... |
<<<<<<<
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.dspace.authorize.AuthorizeException;
import org.dspace.browse.BrowsableDSpaceObject;
import org.dspace.content.factory.ContentServiceFactory;
import org.dspace.core.Constants;
=======
import org.apache.commons.lang3.builder.HashCodeBuilder;
>... |
<<<<<<<
total = gs.countTotal(context);
groups = gs.findAll(context, null, pageable.getPageSize(), Math.toIntExact(pageable.getOffset()));
=======
long total = gs.countTotal(context);
List<Group> groups = gs.findAll(context, null, pageable.getPageSize(), pageable.getOff... |
<<<<<<<
if (projectNameCandidate.equals(reposToBeFound.get(id))) {
expect(projectCache.get(new Project.NameKey(projectNameCandidate)))
.andReturn(createNiceMock(ProjectState.class));
break;
=======
if (reposToBeFound.containsValue(projectNameCandidate)) {
... |
<<<<<<<
import java.io.IOException;
import java.util.List;
=======
>>>>>>>
import java.util.List;
<<<<<<<
public final String LEGACY_WORKFLOW_NAME = "default";
public Workflow getWorkflow(Collection collection) throws WorkflowConfigurationException;
public Workflow getWorkflowByName(String workflowN... |
<<<<<<<
import org.dspace.services.model.Request;
import org.dspace.submit.AbstractProcessingStep;
=======
import org.dspace.eperson.EPerson;
import org.dspace.eperson.EPersonServiceImpl;
>>>>>>>
import org.dspace.services.model.Request;
import org.dspace.submit.AbstractProcessingStep;
import org.dspace.eperson.EPer... |
<<<<<<<
// Log.i("qbTask", "Results (torrents): " + result.length);
=======
Log.i("qbTask", "Results (torrents): " + result.length);
>>>>>>>
// Log.i("qbTask", "Results (torrents): " + result.length);
<<<<<<<
// Log.i("qbTask", "MainActivity.names: " +
// MainActivity.names.length);
// L... |
<<<<<<<
@Setter
private boolean sprinting;
@Setter
private boolean jumping;
@Setter
private boolean switchingDimension = false;
=======
private final AtomicInteger pendingDimSwitches = new AtomicInteger(0);
>>>>>>>
private final AtomicInteger pendingDimSwitches = new AtomicInteger(0... |
<<<<<<<
import com.nukkitx.protocol.bedrock.packet.MovePlayerPacket;
import com.nukkitx.protocol.bedrock.packet.SetEntityDataPacket;
=======
import org.geysermc.connector.console.GeyserLogger;
>>>>>>>
import com.nukkitx.protocol.bedrock.packet.MovePlayerPacket;
import com.nukkitx.protocol.bedrock.packet.SetEntity... |
<<<<<<<
import org.geysermc.connector.command.CommandSender;
=======
>>>>>>>
import org.geysermc.connector.command.CommandSender;
<<<<<<<
import java.io.IOException;
=======
>>>>>>>
import java.io.IOException;
<<<<<<<
if (connector.getAuthType() != AuthType.ONLINE) {
connector.getLogger().in... |
<<<<<<<
import com.nukkitx.protocol.bedrock.v389.Bedrock_v389;
=======
import com.nukkitx.protocol.bedrock.v388.Bedrock_v388;
>>>>>>>
import com.nukkitx.protocol.bedrock.v389.Bedrock_v389;
<<<<<<<
import org.geysermc.common.PlatformType;
import org.geysermc.common.bootstrap.IGeyserBootstrap;
import org.geysermc.... |
<<<<<<<
import com.nukkitx.protocol.bedrock.packet.NetworkChunkPublisherUpdatePacket;
=======
>>>>>>>
<<<<<<<
GeyserConnector.getInstance().getGeneralThreadPool().execute(() -> {
Vector2i chunkPos = session.getLastChunkPosition();
Vector3f position = session.getPlayerEntity().getPo... |
<<<<<<<
=======
int blockId = BlockTranslator.getBedrockBlockId(blockState);
>>>>>>>
<<<<<<<
updateBlockPacket.setBlockPosition(position);
updateBlockPacket.setRuntimeId(blockEntry.getBedrockRuntimeId());
=======
updateBlockPacket.setBlockPosition(pos);
updateBlockPacket.se... |
<<<<<<<
=======
import org.geysermc.connector.entity.Entity;
import org.geysermc.connector.inventory.Inventory;
import org.geysermc.connector.network.session.GeyserSession;
import org.geysermc.connector.network.translators.PacketTranslator;
import org.geysermc.connector.network.translators.Translator;
import org.geys... |
<<<<<<<
=======
import com.velocitypowered.api.plugin.PluginContainer;
import com.velocitypowered.api.proxy.ProxyServer;
>>>>>>>
import com.velocitypowered.api.plugin.PluginContainer;
import com.velocitypowered.api.proxy.ProxyServer;
<<<<<<<
import org.geysermc.connector.GeyserConfiguration;
=======
import org.... |
<<<<<<<
import com.nukkitx.protocol.bedrock.data.ItemData;
=======
import com.nukkitx.nbt.tag.Tag;
>>>>>>>
import com.nukkitx.protocol.bedrock.data.ItemData;
import com.nukkitx.nbt.tag.Tag; |
<<<<<<<
import org.geysermc.common.window.FormWindow;
=======
import org.geysermc.api.AuthType;
import org.geysermc.api.Player;
import org.geysermc.api.RemoteServer;
import org.geysermc.api.session.AuthData;
import org.geysermc.api.window.FormWindow;
>>>>>>>
import org.geysermc.common.AuthType;
import org.geysermc... |
<<<<<<<
private static final Map<String, NbtMap> FLOWER_POT_BLOCKS = new HashMap<>();
private static final Int2BooleanMap LECTERN_BOOK_STATES = new Int2BooleanOpenHashMap();
=======
>>>>>>>
private static final Int2BooleanMap LECTERN_BOOK_STATES = new Int2BooleanOpenHashMap(); |
<<<<<<<
import com.nukkitx.protocol.bedrock.packet.InventoryContentPacket;
=======
import com.nukkitx.protocol.bedrock.packet.AvailableEntityIdentifiersPacket;
import com.nukkitx.protocol.bedrock.packet.BiomeDefinitionListPacket;
import com.nukkitx.protocol.bedrock.packet.LevelChunkPacket;
import com.nukkitx.protocol... |
<<<<<<<
command("git-upload-pack").to(Commands.key(git, "upload-pack"));
command(git, "upload-pack").to(Upload.class);
command("git-upload-archive").to(Commands.key(git, "upload-archive"));
command(git, "upload-archive").to(UploadArchive.class);
=======
if (sshEnabled()) {
command("git-uploa... |
<<<<<<<
import org.geysermc.connector.GeyserConfiguration;
=======
import lombok.Setter;
import org.geysermc.common.IGeyserConfiguration;
>>>>>>>
import lombok.Setter;
import org.geysermc.connector.GeyserConfiguration; |
<<<<<<<
import com.github.steveice10.mc.protocol.data.game.statistic.Statistic;
=======
import com.github.steveice10.mc.protocol.data.game.recipe.Recipe;
>>>>>>>
import com.github.steveice10.mc.protocol.data.game.statistic.Statistic;
import com.github.steveice10.mc.protocol.data.game.recipe.Recipe;
<<<<<<<
import i... |
<<<<<<<
import com.nukkitx.protocol.bedrock.packet.ContainerOpenPacket;
import com.nukkitx.protocol.bedrock.packet.InventorySlotPacket;
import com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData;
import com.nukkitx.protocol.bedrock.data.inventory.InventorySource;
import com.nukkitx.protocol.bedrock.packet.I... |
<<<<<<<
public static class ElasticNodeInfo {
public final int port;
public ElasticNodeInfo(int port) {
this.port = port;
}
}
public static void configure(Config config, int port, String prefix, ElasticVersion version) {
config.setString("index", null, "type", "elasticsearch");
config.... |
<<<<<<<
=======
import com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack;
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerActionAckPacket;
import com.github.steveice10.opennbt.tag.builtin.*;
import com.nukkitx.math.vector.Vector3f;
import com.nukkitx.protoco... |
<<<<<<<
import com.google.gerrit.extensions.restapi.TopLevelResource;
import com.google.gerrit.extensions.restapi.Url;
=======
import com.google.gerrit.extensions.restapi.Url;
>>>>>>>
import com.google.gerrit.extensions.restapi.TopLevelResource;
import com.google.gerrit.extensions.restapi.Url;
<<<<<<<
user1 = u... |
<<<<<<<
/** @return true if this user can delete their own changes. */
boolean canDeleteOwnChanges(boolean isChangeOwner) {
return canPerform(Permission.DELETE_OWN_CHANGES, isChangeOwner);
=======
/** @return true if this user can delete changes. */
public boolean canDeleteChanges(boolean isChangeOwner) {... |
<<<<<<<
import static java.nio.charset.StandardCharsets.UTF_8;
import com.google.gerrit.common.FileUtil;
=======
import com.google.common.base.Preconditions;
>>>>>>>
import static java.nio.charset.StandardCharsets.UTF_8;
import com.google.common.base.Preconditions;
import com.google.gerrit.common.FileUtil; |
<<<<<<<
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
=======
import java.util.concurrent.TimeUnit;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import scala.concurren... |
<<<<<<<
import ee.ria.xroad.asyncdb.AsyncDB;
import ee.ria.xroad.asyncdb.WritingCtx;
import ee.ria.xroad.asyncdb.messagequeue.MessageQueue;
=======
import java.io.InputStream;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collectio... |
<<<<<<<
=======
/**
* @param queryId the query ID
* @return MD5 hex digest of the given query ID
* @throws Exception if any errors occur
*/
public static String hashQueryId(String queryId) throws Exception {
return hexDigest(MD5_ID, queryId);
}
static String decodeBase64(S... |
<<<<<<<
TestConfDir(String name, boolean writeExpireDate) {
this(name);
this.writeExpireDate = writeExpireDate;
}
=======
>>>>>>> |
<<<<<<<
} catch (Exception ex) {
log.error("Request processing error", ex);
=======
} catch (Throwable ex) {
CodedException cex = translateWithPrefix(SERVER_SERVERPROXY_X, ex);
log.error("Request processing error (" + cex.getFaultDetail() + ")",
... |
<<<<<<<
import ee.ria.xroad.common.ocsp.OcspVerifierOptions;
=======
import ee.ria.xroad.common.util.CertUtils;
>>>>>>>
import ee.ria.xroad.common.ocsp.OcspVerifierOptions;
import ee.ria.xroad.common.util.CertUtils;
<<<<<<<
if (securityServer.equals(GlobalConf.getServerId(cert))) {
verif... |
<<<<<<<
} catch (Exception e) {
sendResponse(translateException(e).withPrefix(SIGNER_X));
=======
>>>>>>> |
<<<<<<<
import org.opentripplanner.routing.edgetype.RentABikeOnEdge;
import org.opentripplanner.routing.edgetype.TinyTurnEdge;
import org.opentripplanner.routing.edgetype.TransitBoardAlight;
=======
>>>>>>>
<<<<<<<
// debug: push vehicle late status out to UI
// if (backEdge instanceof PatternHop) {
// ... |
<<<<<<<
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.LineString;
=======
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.LineString;
import gnu.trove... |
<<<<<<<
private TObjectIntMap[] matrix;
/** The best time to reach each stop in any round by transit only, not by transfer from another stop. */
=======
private TObjectIntMap[] matrix;
>>>>>>>
private TObjectIntMap[] matrix;
/** The best time to reach each stop in any round by transit only, not b... |
<<<<<<<
public class TransitStopStreetVertex extends OsmVertex {
=======
/**
* A vertex for an OSM node that represents a transit stop and has a ref=(stop_code) tag.
* OTP will treat this as an authoritative statement on where the transit stop is located within the street network,
* and the GTFS stop vertex will b... |
<<<<<<<
=======
import org.opentripplanner.graph_builder.module.StreetLinkerModule;
>>>>>>>
import org.opentripplanner.graph_builder.module.StreetLinkerModule; |
<<<<<<<
import org.opentripplanner.routing.RoutingService;
import org.opentripplanner.routing.graph.Vertex;
=======
>>>>>>>
import org.opentripplanner.routing.RoutingService;
<<<<<<<
private String getLocationOfFirstQuay(String vertexId, RoutingService routingService) {
Vertex vertex = routingService.ge... |
<<<<<<<
import org.opentripplanner.routing.core.Vertex;
=======
import org.opentripplanner.routing.core.GraphVertex;
import org.opentripplanner.routing.core.TraverseMode;
import org.opentripplanner.routing.edgetype.PatternHop;
>>>>>>>
import org.opentripplanner.routing.core.Vertex;
import org.opentripplanner.routing... |
<<<<<<<
=======
import org.geotools.geometry.Envelope2D;
>>>>>>>
import org.geotools.geometry.Envelope2D;
<<<<<<<
import org.opentripplanner.gbannotation.*;
=======
import org.opentripplanner.gbannotation.BikeRentalStationUnlinked;
import org.opentripplanner.gbannotation.ConflictingBikeTags;
import org.opentrip... |
<<<<<<<
import org.opentripplanner.routing.error.VertexNotFoundException;
import org.opentripplanner.routing.request.RoutingRequest;
=======
import org.opentripplanner.routing.api.request.RoutingRequest;
import org.opentripplanner.routing.error.RoutingValidationException;
>>>>>>>
import org.opentripplanner.routing.a... |
<<<<<<<
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
=======
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicHeader;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnec... |
<<<<<<<
BICYCLE_AND_DRIVING(8 | 4 | 2),
PEDESTRIAN_AND_DRIVING(8 | 4 | 1),
=======
PEDESTRIAN_CAR_MOTOR(8 | 4 | 1),
BICYCLE_CAR_MOTOR(8 | 4 | 2),
>>>>>>>
PEDESTRIAN_AND_DRIVING(8 | 4 | 1),
BICYCLE_AND_DRIVING(8 | 4 | 2), |
<<<<<<<
* The traverse mode for all trips in this pattern.
*/
public final TransitMode mode;
/**
=======
>>>>>>>
<<<<<<<
this.mode = GtfsLibrary.getTransitMode(this.route);
=======
>>>>>>> |
<<<<<<<
s1.addAlerts(getNotes());
if (this.toll && traverseMode == TraverseMode.CAR)
s1.addAlert(Alert.createSimpleAlerts("Toll road"));
=======
s1.addAlerts(notes);
>>>>>>>
s1.addAlerts(notes);
if (this.toll && traverseMode == TraverseMode.CAR)
... |
<<<<<<<
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.CoordinateSequence;
import com.vividsolutions.jts.geom.CoordinateSequenceFactory;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.LineString;
=======
import static org.junit.Assert.assertEq... |
<<<<<<<
try {
State[] states = transferStates.toArray(new State[0]);
GraphPath graphPath = new GraphPath(states[states.length - 1], false);
Itinerary subItinerary = GraphPathToItineraryMapper
.generateItinerary(graphPath, request.local... |
<<<<<<<
s1.incrementWeight(weight);
if (walkingBike || TraverseMode.BICYCLE.equals(traverseMode)) {
if (!(backWalkingBike || TraverseMode.BICYCLE.equals(backMode))) {
s1.incrementTimeInSeconds(options.bikeSwitchTime);
s1.incrementWeight(options.bikeSwitchCost... |
<<<<<<<
=======
import org.opentripplanner.routing.core.TraverseModeSet;
import org.opentripplanner.routing.edgetype.ElevatorAlightEdge;
import org.opentripplanner.routing.edgetype.ElevatorBoardEdge;
import org.opentripplanner.routing.edgetype.ElevatorHopEdge;
>>>>>>>
import org.opentripplanner.routing.edgetype.Elev... |
<<<<<<<
import org.opentripplanner.model.calendar.CalendarServiceData;
import org.opentripplanner.routing.algorithm.AStar;
=======
import org.opentripplanner.routing.algorithm.astar.AStar;
>>>>>>>
import org.opentripplanner.model.calendar.CalendarServiceData;
import org.opentripplanner.routing.algorithm.astar.AStar; |
<<<<<<<
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.Arrays;
import java.util.List;
=======
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.LineString;
import java.util.Locale;
import org.opentripplanner.util.I18NString;
import org.opentripplanner.u... |
<<<<<<<
import com.google.common.collect.Lists;
=======
>>>>>>>
<<<<<<<
import org.joda.time.DateTimeZone;
=======
import org.onebusaway.gtfs.model.Route;
>>>>>>>
import java.util.Map;
import org.joda.time.DateTimeZone;
import org.onebusaway.gtfs.model.Route;
<<<<<<<
LOG.info("Found {} initial stops... |
<<<<<<<
this.stateData.opt = opt;
this.stateData.startTime = time;
this.stateData.tripSeqHash = 0;
this.time = time;
=======
stateData.options = opt;
stateData.startTime = time;
stateData.tripSeqHash = 0;
stateData.usingRentedBike = false;
// Sys... |
<<<<<<<
=======
import com.google.gerrit.reviewdb.client.BooleanProjectConfig;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.PatchSet;
import com.google.gerrit.reviewdb.client.Project;
import com.google.gerrit.reviewdb.client.RefNames;
>>>>>>> |
<<<<<<<
long size, long sizeDelta) {
final FileMode oldMode = fileHeader.getOldMode();
final FileMode newMode = fileHeader.getNewMode();
if (oldMode == FileMode.GITLINK || newMode == FileMode.GITLINK) {
return new PatchListEntry(fileHeader, Collections.<Edit> emptyList(),
size, sizeDe... |
<<<<<<<
loader.buildGraph(_graph, extra);
=======
loader.buildGraph(graph, extra);
// Need to set up the index because buildGraph doesn't do it.
graph.rebuildVertexAndEdgeIndices();
>>>>>>>
loader.buildGraph(graph, extra); |
<<<<<<<
options.speed = 1.0;
options.setRoutingContext(_graph, _graph.getVertex("56th_24th"), _graph.getVertex("leary_20th"));
ShortestPathTree tree = new GenericAStar().getShortestPathTree(options);
=======
options.setWalkSpeed(1.0);
ShortestPathTree tree = AStar.getShortestP... |
<<<<<<<
/**
* Checks permissions of the street edge if specified modes are allowed to travel.
*
* Barriers aren't taken into account. So it can happen that canTraverse returns True.
* But doTraverse returns false. Since there are barriers on a street.
*
* This is because this function ... |
<<<<<<<
private static final long serialVersionUID = 1L;
public RentABikeAbstractEdge(Vertex from, Vertex to) {
super(from, to);
}
protected State traverseRent(State s0) {
RoutingRequest options = s0.getOptions();
/*
* If we already have a bike (rented or own) we won't... |
<<<<<<<
import org.opentripplanner.model.BikeRentalStationInfo;
=======
import org.opentripplanner.model.Agency;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.Stop;
import org.opentripplanner.model.Trip;
import org.opentripplanner.profile.BikeRentalStationInfo;
>>>>>>>
import org.opentripp... |
<<<<<<<
private static final long serialVersionUID = MavenVersion.VERSION.getUID();
private static final Logger LOG = LoggerFactory.getLogger(TraverseOptions.class);
private static final int CLAMP_ITINERARIES = 3;
private static final int CLAMP_TRANSFERS = 4;
=======
private static final long... |
<<<<<<<
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InvalidClassException;
import java.io.ObjectInputStream;
import java.io.ObjectOutp... |
<<<<<<<
=======
case MODIFIED:
applied = validateAndHandleModifiedTrip(graph, tripUpdate, feedId, serviceDate);
break;
>>>>>>>
case MODIFIED:
applied = validateAndHandleModifiedTrip(graph, tripUpdate, feed... |
<<<<<<<
import com.google.common.collect.Sets;
import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.Route;
import org.onebusaway.gtfs.model.Trip;
=======
import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.Trip;
>>>>>>>
imp... |
<<<<<<<
GtfsRelationalDao dao = context.getDao();
feedId = context.getFeedId().getId();
for (ShapePoint shapePoint : dao.getAllEntitiesForType(ShapePoint.class)) {
shapePoint.getShapeId().setAgencyId(feedId);
}
for (Route route : dao.getAllEntitiesForType(Route.clas... |
<<<<<<<
import org.opentripplanner.standalone.OTPServer;
import org.opentripplanner.standalone.Router;
=======
import org.opentripplanner.standalone.Router;
>>>>>>>
import org.opentripplanner.standalone.Router;
<<<<<<<
@Context
private OTPServer otpServer;
=======
>>>>>>>
<<<<<<<
ZSampleGrid<WT... |
<<<<<<<
=======
import com.conveyal.kryo.TIntArrayListSerializer;
import com.conveyal.kryo.TIntIntHashMapSerializer;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.serializers.ExternalizableSerializer;
impo... |
<<<<<<<
import org.objenesis.strategy.SerializingInstantiatorStrategy;
import org.onebusaway.gtfs.impl.calendar.CalendarServiceImpl;
import org.onebusaway.gtfs.model.Agency;
import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.Stop;
import org.onebusaway.gtfs.model.FeedInfo;
import org.onebusa... |
<<<<<<<
private int retryCount = 0;
private final String originalRequestorRef;
public SiriSXUpdater(Parameters config) {
=======
public SiriSXUpdater(SiriSXUpdaterParameters config) {
>>>>>>>
private int retryCount = 0;
private final String originalRequestorRef;
public SiriSXUpdater(S... |
<<<<<<<
import java.io.File;
import java.util.Collection;
=======
import java.io.InputStream;
>>>>>>>
import java.util.Collection;
import java.io.InputStream;
<<<<<<<
=======
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
>>>>>>>
import org.springframework.core.io... |
<<<<<<<
import com.conveyal.geojson.GeometryDeserializer;
import com.conveyal.geojson.GeometrySerializer;
=======
import java.util.Date;
import java.util.HashSet;
import java.util.Optional;
>>>>>>>
import com.conveyal.geojson.GeometryDeserializer;
import com.conveyal.geojson.GeometrySerializer;
import java.util.D... |
<<<<<<<
} else if (sourceType.equals("uip-bike")) {
source = new UIPBikeRentalDataSource(apiKey);
=======
} else if (sourceType.equals("gbfs")) {
source = new GbfsBikeRentalDataSource();
>>>>>>>
} else if (sourceType.equals("uip-bike")) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.