conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
private final RaftLog log;
private final Fiber scheduler;
=======
private final ScheduledExecutorService scheduler;
>>>>>>>
private final Fiber scheduler;
<<<<<<<
private void stepDown(RaftStateContext ctx) {
heartbeatTask.dispose();
=======
@Override
public void destroy(RaftStateContext... |
<<<<<<<
public String pkToJson(KeyFormat keyFormat) throws IOException {
if ( keyFormat == KeyFormat.HASH )
return pkToJsonHash();
else
return pkToJsonArray();
}
private String pkToJsonHash() throws IOException {
=======
public RowMap(String type, String database, String table, Long timestamp, List<Str... |
<<<<<<<
assertEquals(config.maxwellMysql.getConnectionURI(),
"jdbc:mysql://localhost:3306?useCursorFetch=true&zeroDateTimeBehavior=convertToNull&netTimeoutForStreamingResults=123&profileSQL=true");
assertEquals(config.replicationMysql.getConnectionURI(),
"jdbc:mysql://localhost:3306?useCursorFetch=true&ze... |
<<<<<<<
parser.accepts( "output_ddl", "produce DDL records to ddl_kafka_topic [true|false]. default: false" ).withOptionalArg();
parser.accepts( "ddl_kafka_topic", "optionally provide a topic name to push DDL records to. default: kafka_topic").withOptionalArg();
=======
parser.accepts( "output_server_id", "prod... |
<<<<<<<
if ( options.has("schema_database")) {
this.databaseName = (String) options.valueOf("schema_database");
}
if ( options.has("client_id") ) {
this.clientID = (String) options.valueOf("client_id");
}
if ( options.has("producer"))
this.producerType = (String) options.valueOf("producer");
if ... |
<<<<<<<
SchemaScavenger s = new SchemaScavenger(this.connectionPool, this.config.databaseName);
=======
SchemaScavenger s = new SchemaScavenger(this.maxwellConnectionPool);
>>>>>>>
SchemaScavenger s = new SchemaScavenger(this.maxwellConnectionPool, this.config.databaseName);
<<<<<<<
this.schemaPosition = ... |
<<<<<<<
import com.zendesk.maxwell.BinlogPosition;
import com.zendesk.maxwell.DDLMap;
=======
import com.zendesk.maxwell.replication.BinlogPosition;
>>>>>>>
import com.zendesk.maxwell.replication.BinlogPosition;
import com.zendesk.maxwell.DDLMap;
<<<<<<<
this.partitioner = new MaxwellKafkaPartitioner(hash, partit... |
<<<<<<<
public String mysqlHost;
public Integer mysqlPort;
public String mysqlUser;
public String mysqlPassword;
public String databaseName;
=======
public MaxwellMysqlConfig replicationMysql;
public MaxwellMysqlConfig maxwellMysql;
>>>>>>>
public MaxwellMysqlConfig replicationMysql;
public MaxwellMys... |
<<<<<<<
import java.awt.Color;
import java.text.NumberFormat;
=======
>>>>>>>
import java.awt.Color;
import java.text.NumberFormat;
<<<<<<<
import java.util.Set;
import java.util.logging.Logger;
import org.openscience.cdk.interfaces.IIsotope;
import org.openscience.cdk.interfaces.IMolecularFormula;
import org.opens... |
<<<<<<<
/*
* Copyright 2006-2015 The MZmine 2 Development Team
*
* This file is part of MZmine 2.
*
* MZmine 2 is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at y... |
<<<<<<<
/*
* Copyright 2006-2015 The MZmine 2 Development Team
*
* This file is part of MZmine 2.
*
* MZmine 2 is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at y... |
<<<<<<<
// has identity of MS/MS database match
PeakIdentity pi = clickedPeakListRow.getPreferredPeakIdentity();
showMSMSMirrorMatchDBItem.setEnabled(pi != null && pi instanceof SpectralDBPeakIdentity);
=======
// open id url if available
PeakIdentity pi = clickedPeakListRow.getPreferr... |
<<<<<<<
RawDataImportModule.class, RawDataExportModule.class, MassDetectionModule.class,
ShoulderPeaksFilterModule.class, ChromatogramBuilderModule.class,
ADAPChromatogramBuilderModule.class,
// Not ready for prime time: ADAP3DModule.class,
GridMassModule.class, ManualPeakPickerModule.clas... |
<<<<<<<
public synchronized void addResult(DPPResult<?> result) {
if (result == null)
return;
=======
public void addResult(@Nonnull DPPResult<?> result) {
>>>>>>>
public synchronized void addResult(@Nonnull PPResult<?> result) {
if (result == null)
return;
<<<<<<<
public synchronized ... |
<<<<<<<
ElasticTestUtils.configure(elasticsearchConfig, nodeInfo.port, indicesPrefix);
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
=======
ElasticTestUtils.configure(
elasticsearchConfig, nodeInfo.hostname, nodeInfo.port, indicesPrefix);
return Guice.createInjector(ne... |
<<<<<<<
@RequestMapping(value="/facilities/getListInRequisitionGroup/{id}",method= GET, headers = ACCEPT_JSON)
@PreAuthorize("@permissionEvaluator.hasPermission(principal,'MANAGE_REQUISITION_GROUP')")
public ResponseEntity<OpenLmisResponse> getFacilityListInARequisitionGroup(@PathVariable("id") Long id, HttpServ... |
<<<<<<<
@Select("SELECT * " +
" FROM (SELECT sn.*, " +
" snParent.name AS supervisoryNodeParentName," +
" concat(f.code,' - ',f.name) AS facilityName," +
" ft.name AS facilityTypeName " +
... |
<<<<<<<
import org.openlmis.rnr.dto.RnrFeedDTO;
import org.openlmis.rnr.service.NotificationServices;
import org.springframework.beans.factory.annotation.Autowired;
=======
import org.openlmis.rnr.dto.RequisitionStatusFeedDTO;
>>>>>>>
import org.openlmis.rnr.dto.RequisitionStatusFeedDTO;
import org.openlmis.rnr.dto.... |
<<<<<<<
=======
public void navigateRnr() throws IOException {
testWebDriver.waitForElementToAppear(requisitionsLink);
testWebDriver.keyPress(requisitionsLink);
testWebDriver.waitForElementToAppear(createLink);
testWebDriver.sleep(2000);
testWebDriver.keyPress(createLink);
testWebDriver.slee... |
<<<<<<<
@Select("SELECT * FROM dosage_units")
List<DosageUnit> getAll();
=======
@Select("SELECT * FROM dosage_units WHERE LOWER(code) = LOWER(#{code})")
DosageUnit getByCode(String code);
>>>>>>>
@Select("SELECT * FROM dosage_units")
List<DosageUnit> getAll();
@Select("SELECT * FROM dosage_units WH... |
<<<<<<<
@Select("SELECT id from products where code = #{code}")
Integer getIdByCode(String code);
@Select("SELECT * FROM products")
List<Product> getAll();
=======
@Update({"UPDATE products SET alternateItemCode=#{alternateItemCode}, ",
"manufacturer =#{manufacturer},manufacturerCode=#{manufac... |
<<<<<<<
// assertThat(periods.get(0), is(processingPeriod1));
// assertThat(periods.get(1), is(processingPeriod2));
=======
assertThat(periods.get(0), is(processingPeriod1));
assertThat(periods.get(1), is(processingPeriod2));
}
@Test
public void shouldThrowExceptionIfLastPostSubmitRequisitionIsOf... |
<<<<<<<
@RequestMapping(value="/productProgramCategoryTree/{programId}", method = GET, headers = BaseController.ACCEPT_JSON)
public ResponseEntity<OpenLmisResponse> getProductCategoryProductByProgramId(@PathVariable("programId") int programId){
List<ProductCategoryProductTree> categoryProductTree = rep... |
<<<<<<<
public void calculateMaxStockQuantity( ProgramRnrTemplate template) {
RnrColumn column = template.getRnrColumnsMap().get("maxStockQuantity");
String columnOption = "DEFAULT";
if(column != null){
columnOption = column.getCalculationOption();
}
if(columnOption.equalsIgnoreCase( "CONSUM... |
<<<<<<<
private String programName;
// this section is added to make the product editing form work.
private List<ProgramProduct> programProducts;
=======
@JsonIgnore
public String getName() {
return (getPrimaryName() == null ? "" : getPrimaryName())
+ " " + (getForm().getCode() == null ? "" : ... |
<<<<<<<
public List<Facility> getAllFacilitiesDetail(){
return facilityRepository.getAllFacilitiesDetail();
}
public List<Facility> getCompleteListInRequisitionGroups(List<RequisitionGroup> requisitionGroups){
return facilityRepository.getAllInRequisitionGroups(requisitionGroups);
}
public List... |
<<<<<<<
import org.openlmis.rnr.calculation.RegularRnrCalcStrategy;
import org.openlmis.rnr.calculation.RnrCalculationStrategy;
=======
>>>>>>>
import org.openlmis.rnr.calculation.RegularRnrCalcStrategy;
import org.openlmis.rnr.calculation.RnrCalculationStrategy;
<<<<<<<
import static org.powermock.api.mockito.Powe... |
<<<<<<<
@ImportField(name = "Display Order", type = "int")
private Integer displayOrder;
=======
>>>>>>>
<<<<<<<
private Long formId;
@ImportField(mandatory = true, type = "String", name = "Product Category", nested = "code")
private ProductCategory category;
private Long categoryId;
=======
>>>>... |
<<<<<<<
@Select("SELECT * FROM processing_periods WHERE scheduleId = #{scheduleId} AND extract('year' from startdate) = #{year} ORDER BY startDate DESC")
List<ProcessingPeriod> getAllPeriodsForScheduleAndYear(@Param("scheduleId")Long scheduleId, @Param("year") Long year);
=======
@Select({"SELECT * FROM pr... |
<<<<<<<
@Select("select userPreferenceKey as key, value from user_preferences where userId = #{userId} " +
"UNION " +
"select key, defaultValue as value from user_preference_master " +
" where key not in (select userPreferenceKey from user_preferences where userId = #{userId})")
List<LinkedHashM... |
<<<<<<<
//NOTE: this rule has been removed because a supply line can be at any point
//this change was made to accommodate the vaccine supply chain.
// @Test
// public void shouldThrowErrorIfSupervisoryNodeIsNotTheParentNode() {
// when(supervisoryNodeRepository.getSupervisoryNodeParentId(supplyLine.getSupervisory... |
<<<<<<<
import org.joda.time.DateTime;
import org.openlmis.core.domain.Product;
import org.openlmis.core.domain.FacilityType;
import org.openlmis.core.domain.Program;
import org.openlmis.core.domain.ProgramProduct;
import org.openlmis.core.domain.ProgramProductPrice;
=======
import org.openlmis.core.domain.*;
>>>>>>... |
<<<<<<<
@RequestMapping(value = "/reportdata/replacementPlanSummary", method = GET, headers = BaseController.ACCEPT_JSON)
@PreAuthorize("@permissionEvaluator.hasPermission(principal,'VIEW_VACCINE_REPLACEMENT_PLAN_SUMMARY')")
public Pages getReplacementPlanSummaryReport(@RequestParam(value = "page", requir... |
<<<<<<<
public List<Facility> getAllFacilitiesDetail(){
return facilityRepository.getAllFacilitiesDetail();
}
public List<Facility> getCompleteListInRequisitionGroups(List<RequisitionGroup> requisitionGroups){
return facilityRepository.getAllInRequisitionGroups(requisitionGroups);
}
public List... |
<<<<<<<
=======
Task commandProgress = progress.beginSubTask("refs", UNKNOWN);
commands = commands.stream().map(c -> wrapReceiveCommand(c, commandProgress)).collect(toList());
processCommandsUnsafe(commands, progress);
rejectRemaining(commands, INTERNAL_SERVER_ERROR);
// This sends error messages... |
<<<<<<<
import org.joda.time.DateTime;
import org.openlmis.core.domain.Product;
=======
import org.openlmis.core.domain.FacilityType;
>>>>>>>
import org.joda.time.DateTime;
import org.openlmis.core.domain.Product;
import org.openlmis.core.domain.FacilityType;
<<<<<<<
=======
@Autowired
private ProgramReposit... |
<<<<<<<
import org.openlmis.core.domain.FacilityOperator;
import org.openlmis.core.domain.FacilityType;
import org.openlmis.core.domain.PriceSchedule;
import org.openlmis.core.dto.FacilityContact;
import org.openlmis.core.dto.FacilityGeoTreeDto;
import org.openlmis.core.dto.FacilityImages;
import org.openlmis.core.dto.... |
<<<<<<<
ElasticTestUtils.configure(
elasticsearchConfig, nodeInfo.hostname, nodeInfo.port, indicesPrefix);
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
=======
ElasticTestUtils.configure(elasticsearchConfig, container, indicesPrefix);
return Guice.createInjector(new In... |
<<<<<<<
public void updateRequisitionStatus(String status) throws IOException, SQLException {
update("update requisitions set status='" + status + "';");
ResultSet rs = query("select id from requisitions ;");
while (rs.next()) {
update("insert into requisition_status_changes(rnrId, status, createdBy... |
<<<<<<<
CONFIGURE_RNR("right.configure.rnr", TRUE, "Permission to create and edit r&r template for any program", 1),
MANAGE_FACILITY("right.manage.facility", TRUE, "Permission to manage facility(crud)", 2),
MANAGE_ROLE("right.manage.role", TRUE, "Permission to create and edit roles in the system", 5),
MANAGE_SC... |
<<<<<<<
@Select("SELECT facilities.*, facility_types.name as facilityType "+
"FROM facilities, facility_types "+
"WHERE facilities.typeid = facility_types.id "+
"ORDER BY facilities.name,facilities.code")
@Results(value = {
@Result(property = "geographicZone", column = "ge... |
<<<<<<<
@RequestMapping(value = "/facility/{facilityId}/program/{programId}/isa", method = PUT, headers = ACCEPT_JSON)
@PreAuthorize("@permissionEvaluator.hasPermission(principal,'MANAGE_FACILITY')")
public void overrideIsa(@PathVariable Long facilityId, @RequestBody FacilityProgramProductList products) {
se... |
<<<<<<<
public List<Product> getAllProducts() {
return repository.getAll();
}
=======
public Product getByCode(String code) {
return repository.getByCode(code);
}
>>>>>>>
public Product getByCode(String code) {
return repository.getByCode(code);
}
public List<Product> getAllPr... |
<<<<<<<
public List<SupervisoryNode> getCompleteList(){
return supervisoryNodeRepository.getCompleteList();
}
public SupervisoryNode loadSupervisoryNodeById(Long id){
return supervisoryNodeRepository.loadSupervisoryNodeById(id);
}
public void save_Ext(SupervisoryNode supervisoryNode) {
if... |
<<<<<<<
import com.google.gerrit.common.UsedAt;
=======
import com.google.common.flogger.FluentLogger;
import com.google.gerrit.common.errors.EmailException;
>>>>>>>
import com.google.common.flogger.FluentLogger;
import com.google.gerrit.common.UsedAt;
import com.google.gerrit.exceptions.EmailException;
<<<<<<<
... |
<<<<<<<
whenNew(RequisitionStatusChangeEvent.class).withArguments(requisition, vendor, notificationServices).thenReturn(event);
=======
whenNew(RequisitionStatusChangeEvent.class).withArguments(requisition).thenReturn(event);
>>>>>>>
whenNew(RequisitionStatusChangeEvent.class).withArguments(requisition)... |
<<<<<<<
import com.google.gerrit.extensions.api.changes.StarsInput;
=======
import com.google.gerrit.extensions.api.groups.GroupApi;
>>>>>>>
import com.google.gerrit.extensions.api.changes.StarsInput;
import com.google.gerrit.extensions.api.groups.GroupApi; |
<<<<<<<
private String quantityOrdered;
=======
private String replacedProductCode;
>>>>>>>
private String quantityOrdered;
private String replacedProductCode; |
<<<<<<<
public void goBack(){
TestWebDriver.getDriver().navigate().back();
}
public String getErrorMessage() {
testWebDriver.waitForElementToAppear(errorMsg);
return errorMsg.getText().trim();
}
=======
public String getErrorMessage() {
testWebDriver.waitForElementToAppear(errorMsg);
... |
<<<<<<<
@RequestMapping(value = "/reportdata/repairManagementEquipmentList", method = GET, headers = BaseController.ACCEPT_JSON)
public Pages getRepairManagementEquipmentList(
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
@RequestParam(value = "max", requi... |
<<<<<<<
private String orderId;
private String concatenatedOrderId;
private String facilityCode;
private String programCode;
=======
private String orderNumber;
>>>>>>>
private String orderNumber;
private String orderId;
private String concatenatedOrderId;
private String facilityCode;
private Str... |
<<<<<<<
user.setReportRoles(roleAssignmentService.getReportRole(id));
=======
user.setShipmentRoleAssignments(shipmentRoleService.getRolesForUser(id));
>>>>>>>
user.setShipmentRoleAssignments(shipmentRoleService.getRolesForUser(id));
user.setReportRoles(roleAssignmentService.getReportRole(id)); |
<<<<<<<
user.setShipmentRoleAssignments(shipmentRoleService.getRolesForUser(id));
user.setReportRoles(roleAssignmentService.getReportRole(id));
=======
user.setFulfillmentRoles(fulfillmentRoleService.getRolesForUser(id));
>>>>>>>
user.setFulfillmentRoles(fulfillmentRoleService.getRolesForUser(id));
... |
<<<<<<<
private ProgramProductPriceListDataProvider programPriceService;
@Autowired
private ProgramProductService service;
=======
ProgramProductService service;
>>>>>>>
ProgramProductService service;
private ProgramProductPriceListDataProvider programPriceService;
<<<<<<<
// All product cos... |
<<<<<<<
public FacilityMailingListReportPage navigateViewFacilityMailingListReport() throws IOException {
SeleneseTestNgHelper.assertTrue(ReportsMenuItem.isDisplayed());
testWebDriver.waitForElementToAppear(ReportsMenuItem);
testWebDriver.keyPress(ReportsMenuItem);
testWebDriver.waitForElementToAppea... |
<<<<<<<
@Select("SELECT facilities.*, facility_types.name as facilityType "+
"FROM facilities, facility_types "+
"WHERE facilities.typeid = facility_types.id "+
"ORDER BY facilities.name,facilities.code")
@Results(value = {
@Result(property = "geographicZone", column = "ge... |
<<<<<<<
public void updateRequisitionStatus(String status) throws IOException, SQLException {
update("update requisitions set status='" + status + "';");
ResultSet rs = query("select id from requisitions ;");
while (rs.next()) {
update("insert into requisition_status_changes(rnrId, status, createdBy... |
<<<<<<<
@RequestMapping(value="/facilities/getListInRequisitionGroup/{id}",method= GET, headers = ACCEPT_JSON)
@PreAuthorize("@permissionEvaluator.hasPermission(principal,'MANAGE_REQUISITION_GROUP')")
public ResponseEntity<OpenLmisResponse> getFacilityListInARequisitionGroup(@PathVariable("id") Long id, HttpServ... |
<<<<<<<
=======
@RequestMapping(value = "/users/supervisory/rights.json", method= GET)
public ResponseEntity<OpenLmisResponse> getRights(HttpServletRequest request){
return response("rights", userService.getSupervisoryRights(loggedInUserId(request)));
}
>>>>>>>
@RequestMapping(value = "/users/super... |
<<<<<<<
RevCommit priorCommit = revisions.inverse().get(priorPatchSet);
replaceOp =
replaceOpFactory
.create(
projectState,
notes.getChange().getDest(),
checkMergedInto,
priorPatchSet,
... |
<<<<<<<
public List<Facility> getAllFacilitiesDetail(){
return facilityRepository.getAllFacilitiesDetail();
}
public List<Facility> getCompleteListInRequisitionGroups(List<RequisitionGroup> requisitionGroups){
return facilityRepository.getAllInRequisitionGroups(requisitionGroups);
}
public List... |
<<<<<<<
=======
totalTicks++;
>>>>>>>
totalTicks++;
<<<<<<<
=======
boolean completedWithErrors = false;
>>>>>>>
boolean completedWithErrors = false;
<<<<<<<
hook.start(currentMissionInit(), videoProducer... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
assertToken(JsonToken.START_OBJECT, p.nextToken());
assertToken(JsonToken.FIELD_NAME, p.nextToken());
assertEquals("num", p.getCurrentName());
StringWriter w = new StringWriter();
assertEquals(3, p.getText(w));
assertEquals("num", w.toString());
=======... |
<<<<<<<
@Test
public void testClass3() throws IOException, CopperParserException {
String input =
"class Hello\n" +
" class def create():Hello = new\n" +
" def foo():Int = 7\n" +
" val bar:Int = 19\n" +
"Hello.create().foo()";
TypedAST res = (TypedAST)new Wyvern().parse(new StringReade... |
<<<<<<<
import wyvern.target.corewyvernIL.FormalArg;
=======
import wyvern.target.corewyvernIL.decl.Declaration;
>>>>>>>
<<<<<<<
import wyvern.target.corewyvernIL.decltype.DefDeclType;
import wyvern.target.corewyvernIL.decltype.ValDeclType;
import wyvern.target.corewyvernIL.type.IntegerType;
=======
import wyvern... |
<<<<<<<
=======
import wyvern.tools.tests.TestUtil;
>>>>>>>
import wyvern.tools.tests.TestUtil;
<<<<<<<
=======
@Test
@Deprecated
public void testHello() throws ParseException {
String program = TestUtil.readFile(PATH + "hello.wyv");
/*
String input = "requires stdout\n\n" // or stdio, or io, or s... |
<<<<<<<
@Override
public Expression generateIL(GenContext ctx) {
// TODO Auto-generated method stub
return null;
}
@Override
public DeclType genILType(GenContext ctx) {
// TODO Auto-generated method stub
return null;
}
@Override
public wyvern.target.corewyvernIL.decl.Declaration generateDecl(GenConte... |
<<<<<<<
public boolean equalsByName(EffectSet other) {
HashSet<String> thisEffectSet = new HashSet<String>();
for (Effect e : effectSet) {
thisEffectSet.add(e.getName());
}
HashSet<String> otherEffectSet = new HashSet<String>();
for (Effect e : other.effectSet) {... |
<<<<<<<
@Test
@Category(CurrentlyBroken.class)
public void testType() throws ParseException {
String input = "type IntResult\n"
+ " def getResult():system.Int\n\n"
+ "val r : IntResult = new\n"
+ " def getResult():system.Int = 5\n\n"
+ "r.getResult()\n"
;
TypedAST ast = Tes... |
<<<<<<<
import wyvern.tools.typedAST.core.expressions.TaggedInfo;
=======
import wyvern.tools.typedAST.core.binding.compiler.MetadataInnerBinding;
import wyvern.tools.typedAST.core.binding.evaluation.ValueBinding;
import wyvern.tools.typedAST.core.binding.objects.TypeDeclBinding;
import wyvern.tools.typedAST.core.bin... |
<<<<<<<
import com.google.gerrit.reviewdb.client.AccountSshKey;
=======
import com.google.gerrit.reviewdb.client.AccountGroupName;
>>>>>>>
import com.google.gerrit.reviewdb.client.AccountGroupName;
import com.google.gerrit.reviewdb.client.AccountSshKey; |
<<<<<<<
GraphTraversal iter = g.V().order().by(outE().count(), Order.decr);
printTraversalForm(iter);
=======
GraphTraversal iter = g.V().drop();
>>>>>>>
GraphTraversal iter = g.V().drop();
printTraversalForm(iter); |
<<<<<<<
=======
else if (predicate instanceof Compare) {
String predicateString = predicate.toString();
switch (predicateString) {
case ("eq"):
boolFilterBuilder.must(FilterBuilders.termFilter(key, value));
break;
... |
<<<<<<<
String setting = Files.toString(new File(TCP_BACKLOG_SETTING_LOCATION), Charsets.UTF_8);
return Integer.parseInt(setting.trim());
=======
String setting = Files.toString(new File(TCP_BACKLOG_SETTING_LOCATION), StandardCharsets.UTF_8);
... |
<<<<<<<
import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.SocketConfig;
=======
import org.apache.http.client.params.AllClientPNames;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.conn.DnsResolver;
import org.apache.http.conn.routing.HttpRoutePlanner;
import... |
<<<<<<<
pageable.getPageSize(), Math.toIntExact(pageable.getOffset())));
=======
isLeft, pageable.getPageSize(), pageable.getOffset()));
>>>>>>>
isLeft, pageable.getPageSize(), Math.toIntExact(pageable.getOffset()))); |
<<<<<<<
=======
import com.fasterxml.jackson.annotation.JsonIgnore;
>>>>>>>
<<<<<<<
public static final String DEFAULT_ACCESS_CONDITIONS = "defaultAccessConditions";
public static final String HARVEST = "harvester";
public static final String LICENSE = "license";
public static final String LOGO = "l... |
<<<<<<<
import org.dspace.app.rest.model.RestModel;
import org.springframework.hateoas.ResourceSupport;
=======
import org.dspace.app.rest.model.hateoas.HALResource;
>>>>>>>
import org.dspace.app.rest.model.RestModel;
import org.springframework.hateoas.ResourceSupport;
import org.dspace.app.rest.model.hateoas.HALRes... |
<<<<<<<
/**
* This method retrieves a list of MetadataValue objects that get constructed from processing
* the given Item's Relationships through the config given to the {@link VirtualMetadataPopulator}
* @param item The Item that will be processed through it's Relationships
* @param enableVir... |
<<<<<<<
@Autowired(required=true)
protected ConfigurationService configurationService;
=======
@Autowired(required=true)
protected WorkspaceItemService workspaceItemService;
@Autowired(required=true)
protected WorkflowItemService workflowItemService;
>>>>>>>
@Autowired(required... |
<<<<<<<
import org.dspace.content.Collection;
=======
import org.dspace.authorize.service.ResourcePolicyService;
>>>>>>>
import org.dspace.authorize.service.ResourcePolicyService;
import org.dspace.content.Collection; |
<<<<<<<
import org.dspace.app.rest.builder.CollectionBuilder;
import org.dspace.app.rest.builder.CommunityBuilder;
import org.dspace.app.rest.builder.EPersonBuilder;
import org.dspace.app.rest.builder.ItemBuilder;
import org.dspace.app.rest.builder.MetadataFieldBuilder;
import org.dspace.app.rest.builder.RelationshipBu... |
<<<<<<<
=======
import org.dspace.app.rest.exception.UnprocessableEntityException;
import org.dspace.app.rest.model.ItemRest;
>>>>>>>
import org.dspace.app.rest.exception.UnprocessableEntityException;
<<<<<<<
if (supports(object, operation)) {
Item item = (Item) object;
item.setDisco... |
<<<<<<<
private static final Logger log = Logger.getLogger(AbstractDSpaceRestRepository.class);
=======
>>>>>>> |
<<<<<<<
import org.apache.commons.lang.StringUtils;
import org.dspace.content.MetadataSchemaEnum;
=======
import org.apache.commons.lang3.StringUtils;
import org.dspace.content.MetadataSchema;
>>>>>>>
import org.apache.commons.lang3.StringUtils;
import org.dspace.content.MetadataSchemaEnum; |
<<<<<<<
import org.dspace.app.util.SubmissionStepConfig;
import org.dspace.browse.IndexableObject;
import org.dspace.content.Collection;
import org.dspace.content.Item;
import org.dspace.content.WorkspaceItem;
import org.dspace.eperson.EPerson;
import org.springframework.beans.factory.annotation.Autowired;
=======
im... |
<<<<<<<
=======
import org.dspace.app.rest.converter.BitstreamConverter;
import org.dspace.app.rest.converter.CommunityConverter;
import org.dspace.app.rest.converter.MetadataConverter;
>>>>>>>
<<<<<<<
public CommunityRestRepository(CommunityService dsoService) {
super(dsoService, new DSpaceObjectPatch<... |
<<<<<<<
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean extra);
=======
public List<MetadataValue> getRelationshipMetadata(Item item, boolean enableVirtualMetadata);
>>>>>>>
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean enableVirtualMe... |
<<<<<<<
List<RelationshipType> findByLeftOrRightLabel(Context context, String label) throws SQLException;
=======
List<RelationshipType> findByEntityType(Context context, EntityType entityType) throws SQLException;
>>>>>>>
List<RelationshipType> findByLeftOrRightLabel(Context context, String label) throw... |
<<<<<<<
if (supports(object, operation)) {
Item item = (Item) object;
// This is a request to withdraw the item.
try {
if (withdraw) {
// The item is currently not withdrawn and also not archived. Is this a possible situation?
... |
<<<<<<<
=======
import org.dspace.workflow.WorkflowException;
import org.dspace.xmlworkflow.Role;
>>>>>>>
import org.dspace.xmlworkflow.Role;
<<<<<<<
private static final String SUBMIT_CANCEL = "submit_cancel";
private static final String SUBMIT_SEARCH = "submit_search";
private static final String SUBM... |
<<<<<<<
@Autowired
SearchService searchService;
@Autowired
AuthorizeService authorizeService;
=======
@Autowired
private CommunityService cs;
>>>>>>>
@Autowired
SearchService searchService;
@Autowired
AuthorizeService authorizeService;
private CommunityService cs; |
<<<<<<<
import org.dspace.content.service.ItemService;
=======
import org.dspace.content.factory.ContentServiceFactory;
import org.dspace.content.service.DSpaceObjectService;
import org.dspace.core.ConfigurationManager;
>>>>>>>
import org.dspace.content.factory.ContentServiceFactory;
import org.dspace.content.servic... |
<<<<<<<
import java.util.ArrayList;
=======
import java.sql.SQLException;
import java.util.LinkedList;
>>>>>>>
<<<<<<<
=======
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
>>>>>>>
import java.util.stream.Collectors;
<<<<<<<
import org.dspace.app.rest.model.MetadataValueList;... |
<<<<<<<
String getValue(Context context, Item item) throws SQLException;
/**
* Generic setter for the useForPlace property
* @param useForPlace The boolean value that the useForPlace property will be set to
*/
void setUseForPlace(boolean useForPlace);
/**
* Generic getter for the... |
<<<<<<<
import org.dspace.content.DSpaceObject;
=======
import org.dspace.content.service.MetadataFieldService;
>>>>>>>
import org.dspace.content.DSpaceObject;
import org.dspace.content.service.MetadataFieldService;
<<<<<<<
/**
* Apply an update to the REST object via JSON PUT
*
* @param request ... |
<<<<<<<
/**
* Boolean indicating whether the parameter is mandatory or not
*/
private boolean mandatory;
=======
/**
* The long name of the parameter
*/
private String nameLong;
/**
* Boolean indicating whether the parameter is mandatory or not
*/
private bool... |
<<<<<<<
DirectlyAddressableRestModel data = r.getData();
=======
RestModel data = r.getContent();
>>>>>>>
DirectlyAddressableRestModel data = r.getContent();
<<<<<<<
public Link linkToSingleResource(DirectlyAddressableRestModel data, String rel) {
return linkTo(data.getController(), data.getCategory(), Eng... |
<<<<<<<
@Override
public List<Process> search(Context context, ProcessQueryParameterContainer processQueryParameterContainer,
int limit, int offset) throws SQLException {
return processDAO.search(context, processQueryParameterContainer, limit, offset);
}
@Overrid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.