conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
>>>>>>>
import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
<<<<<<<
=======
public Builder summarise(final boolean summarise) {
super.summarise(summarise);
return this;
}
@Override
public Builder deduplicate(final boolean deduplicate) {
return (Builder) super.deduplicate(deduplicate);
}
@Ove... |
<<<<<<<
@Override
public Class<? extends Operation> getOperationClass() {
return AddElements.class;
}
@Override
public void shouldShallowCloneOperation() {
// Given
final Boolean validatable = false;
final Boolean skipInvalidElements = false;
final Element te... |
<<<<<<<
import gaffer.accumulostore.utils.AccumuloStoreConstants;
=======
import gaffer.commonutil.CommonTestConstants;
>>>>>>>
import gaffer.accumulostore.utils.AccumuloStoreConstants;
import gaffer.commonutil.CommonTestConstants; |
<<<<<<<
import gaffer.operation.impl.Deduplicate;
=======
import gaffer.operation.impl.CountGroups;
>>>>>>>
import gaffer.operation.impl.CountGroups;
import gaffer.operation.impl.Deduplicate;
<<<<<<<
import gaffer.store.operation.handler.DeduplicateHandler;
=======
import gaffer.store.operation.handler.CountGroup... |
<<<<<<<
=======
import com.wordnik.swagger.annotations.ApiParam;
import gaffer.commonutil.iterable.CloseableIterable;
>>>>>>>
import gaffer.commonutil.iterable.CloseableIterable;
<<<<<<<
@ApiOperation(value = "Gets elements by seed from the graph",
response = Element.class,
responseConta... |
<<<<<<<
=======
import uk.gov.gchq.koryphe.impl.binaryoperator.StringDeduplicateConcat;
>>>>>>>
import uk.gov.gchq.koryphe.impl.binaryoperator.StringDeduplicateConcat; |
<<<<<<<
import uk.gov.gchq.gaffer.data.element.Element;
import uk.gov.gchq.gaffer.data.element.id.ElementId;
=======
>>>>>>>
<<<<<<<
import uk.gov.gchq.gaffer.operation.impl.get.GetAdjacentIds;
import uk.gov.gchq.gaffer.operation.impl.get.GetAllEdges;
=======
import uk.gov.gchq.gaffer.operation.impl.get.GetAdjace... |
<<<<<<<
import static org.apache.tika.mime.MediaType.APPLICATION_XML;
import static org.apache.tika.mime.MediaType.TEXT_PLAIN;
=======
>>>>>>>
<<<<<<<
=======
>>>>>>>
<<<<<<<
/**
* True (by default) meaning that invalid URLs should be rejected, as the
* official docs allow the siteMapURLs ... |
<<<<<<<
import static java.util.Arrays.asList;
import static org.hamcrest.core.IsCollectionContaining.hasItem;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolic... |
<<<<<<<
=======
import static org.junit.Assert.assertThat;
import static org.junit.matchers.JUnitMatchers.both;
import static org.junit.matchers.JUnitMatchers.containsString;
>>>>>>>
import static org.junit.Assert.assertThat;
<<<<<<<
import org.hamcrest.TypeSafeMatcher;
import org.junit.Assert;
=======
import org... |
<<<<<<<
import com.hieuapp.rivchat.data.SharedPreferenceHelper;
=======
import com.hieuapp.rivchat.data.StaticConfig;
>>>>>>>
import com.hieuapp.rivchat.data.SharedPreferenceHelper;
import com.hieuapp.rivchat.data.StaticConfig;
<<<<<<<
userDB = FirebaseDatabase.getInstance().getReference().child("user").chi... |
<<<<<<<
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.n52.iceland.cache.WritableContentCache;
=======
>>>>>>>
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.n52.iceland.cache.WritableContentCache;
<<<<<<<
import org.n52.iceland.ds.CacheFeederHandler;
import org.n52.icela... |
<<<<<<<
import android.net.Uri;
=======
import android.net.Uri;
import android.os.Build;
>>>>>>>
import android.net.Uri;
import android.os.Build;
<<<<<<<
import android.provider.MediaStore;
=======
import android.provider.DocumentsContract;
import android.provider.MediaStore;
>>>>>>>
import android.provider.Docu... |
<<<<<<<
private String selectedImagePath;
=======
private int imageOrientation;
>>>>>>>
private String selectedImagePath;
private int imageOrientation;
<<<<<<<
File file = new File(selectedImagePath);
=======
// String selectedImagePath = getIntent().getExtras().get... |
<<<<<<<
* DPT main number for <b>B2 (1 Bit controlled)</b>, number =
* {@value #TYPE_1BIT_CONTROLLED}.
=======
* DPT main number for <b>B2 (1 Bit controlled)</b>, number = {@value #TYPE_1BIT_CONTROLLED}.
* <p>
>>>>>>>
* DPT main number for <b>B2 (1 Bit controlled)</b>, number = {@value #TYPE_1BIT_CONTROLLE... |
<<<<<<<
Copyright (c) 2006, 2014 B. Malinowsky
=======
Copyright (c) 2006, 2015 B. Malinowsky
>>>>>>>
Copyright (c) 2006, 2015 B. Malinowsky
<<<<<<<
*
=======
* <p>
*
>>>>>>>
*
<<<<<<<
*
=======
* <p>
*
>>>>>>>
*
<<<<<<<
*
=======
* <p>
*
>>>>>>>
*
<<<<<<<
throw ne... |
<<<<<<<
private final List listeners = new ArrayList();
private EventListener[] listenersCopy = new EventListener[0];
private final Logger logger;
=======
private final List<T> listeners = new ArrayList<>();
private T[] listenersCopy;
private final Class<T> type;
private final LogService logger;
>>>>>>>
priv... |
<<<<<<<
import com.netflix.conductor.annotations.Service;
import com.netflix.conductor.annotations.Trace;
=======
>>>>>>>
import com.netflix.conductor.annotations.Service;
<<<<<<<
import com.netflix.conductor.core.WorkflowContext;
import com.netflix.conductor.core.events.EventQueues;
import com.netflix.conductor.co... |
<<<<<<<
=======
WorkflowDef def = metadataService.getWorkflowDef(params.getName(), params.getVersion());
>>>>>>>
<<<<<<<
String id = executor.startWorkflow(params.getName(), params.getVersion(), params.getCorrelationId(), workflowInput, event);
op.put("workflowId", id);
}catch(Exception e... |
<<<<<<<
/*
* 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 |
<<<<<<<
if(!includeTasks) {
workflow.getTasks().clear();
}
=======
>>>>>>>
if(!includeTasks) {
workflow.getTasks().clear();
}
<<<<<<<
=======
@Override
public void updateLastPoll(String taskDefName, String domain, String workerId) {
Preconditions.checkNotNull(taskDefName, "taskDefName name ... |
<<<<<<<
import com.netflix.conductor.common.metadata.workflow.TaskType;
=======
import com.netflix.conductor.common.metadata.tasks.TaskDef;
>>>>>>>
import com.netflix.conductor.common.metadata.tasks.TaskDef;
import com.netflix.conductor.common.metadata.workflow.TaskType;
<<<<<<<
WorkflowDef wd = new Workf... |
<<<<<<<
import com.google.inject.util.Modules;
=======
import com.netflix.conductor.cassandra.CassandraModule;
>>>>>>>
import com.google.inject.util.Modules;
import com.netflix.conductor.cassandra.CassandraModule; |
<<<<<<<
private MetadataMapperService metadataMapperService;
=======
private static final int POLLING_TIMEOUT_IN_MS = 100;
>>>>>>>
private MetadataMapperService metadataMapperService;
private static final int POLLING_TIMEOUT_IN_MS = 100;
<<<<<<<
public ExecutionService(WorkflowExecutor wfProvider,
... |
<<<<<<<
=======
import com.netflix.conductor.core.utils.QueueUtils;
import com.netflix.conductor.dao.MetadataDAO;
import com.netflix.conductor.dao.QueueDAO;
>>>>>>>
import com.netflix.conductor.core.utils.QueueUtils;
import com.netflix.conductor.dao.QueueDAO;
<<<<<<<
private ParametersUtils parametersUtils = ne... |
<<<<<<<
HTTP(true),
LAMBDA(true);
=======
HTTP(true),
EXCLUSIVE_JOIN(true);
>>>>>>>
HTTP(true),
LAMBDA(true);
EXCLUSIVE_JOIN(true);
<<<<<<<
public static final String TASK_TYPE_LAMBDA= "LAMBDA";
=======
public static final String TASK_TYPE_EXLCUSIVE_JOIN = "EXCLUSIVE_JOIN";
... |
<<<<<<<
@ProtoEnum
public static enum TimeoutPolicy {RETRY, TIME_OUT_WF, ALERT_ONLY}
@ProtoEnum
public static enum RetryLogic {FIXED, EXPONENTIAL_BACKOFF}
=======
public enum TimeoutPolicy {RETRY, TIME_OUT_WF, ALERT_ONLY;}
public enum RetryLogic {FIXED, EXPONENTIAL_BACKOFF;}
>>>>>>>
@ProtoEnum
public ... |
<<<<<<<
import com.netflix.conductor.annotations.Service;
import com.netflix.conductor.annotations.Trace;
=======
>>>>>>>
<<<<<<<
import javax.inject.Inject;
import javax.inject.Singleton;
import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import ja... |
<<<<<<<
import com.netflix.conductor.common.utils.JsonMapperProvider;
=======
import com.google.common.base.Preconditions;
import com.netflix.conductor.client.config.ConductorClientConfiguration;
import com.netflix.conductor.client.config.DefaultConductorClientConfiguration;
import com.netflix.conductor.client.except... |
<<<<<<<
import java.util.Optional;
=======
import java.util.Optional;
import java.util.Set;
>>>>>>>
import java.util.Optional;
import java.util.Set;
<<<<<<<
private final MetadataMapperService metadataMapperService;
private final RateLimitingService rateLimitingService;
=======
private final Paramete... |
<<<<<<<
import com.netflix.conductor.mysql.MySQLConfiguration;
import java.util.Map;
=======
import com.netflix.conductor.core.config.Configuration;
>>>>>>>
import com.netflix.conductor.mysql.MySQLConfiguration; |
<<<<<<<
import java.util.concurrent.atomic.AtomicBoolean;
=======
import ch.vorburger.mariadb4j.DBConfiguration;
import ch.vorburger.mariadb4j.DBConfigurationBuilder;
>>>>>>>
import java.util.concurrent.atomic.AtomicBoolean;
import ch.vorburger.mariadb4j.DBConfiguration;
import ch.vorburger.mariadb4j.DBConfigurati... |
<<<<<<<
@Service
public void restart(@NotEmpty(message = "WorkflowIds list cannot be null.") List<
@Size(max=MAX_REQUEST_ITEMS, message = "Cannot process more than {max} workflows. Please use multiple requests.") String> workflowIds) {
=======
public void restart(List<String> workf... |
<<<<<<<
@Service
public Task poll(@NotEmpty(message = "TaskType cannot be null or empty.") String taskType,
String workerId, String domain) {
LOGGER.debug("Task being polled: /tasks/poll/{}?{}&{}", taskType, workerId, domain);
Task task = executionService.getLastPollTask(tas... |
<<<<<<<
if (from.getLoopCondition() != null) {
to.setLoopCondition( from.getLoopCondition() );
}
to.addAllLoopOver( from.getLoopOver() );
=======
if (from.isAsyncComplete() != null) {
to.setAsyncComplete( from.isAsyncComplete() );
}
>>>>>>>
if (... |
<<<<<<<
@Path("/workflow/{name}/version/{version}")
@ApiOperation("Removes workflow definition")
public void unregisterWorkflowDef(@PathParam("name") String name,
@PathParam("version") Integer version) {
metadataService.unregisterWorkflowDef(name, version);
=======
@Path("/workflow/{name}/{vers... |
<<<<<<<
=======
import com.netflix.conductor.core.utils.ExternalPayloadStorageUtils;
>>>>>>>
import com.netflix.conductor.core.utils.ExternalPayloadStorageUtils;
<<<<<<<
private static ObjectMapper objectMapper = new JsonMapperProvider().get();
=======
private MetadataDAO metadataDAO;
private Externa... |
<<<<<<<
=======
import com.netflix.conductor.service.RateLimitingService;
>>>>>>>
import com.netflix.conductor.service.RateLimitingService; |
<<<<<<<
String DB_PROPERTY_NAME = "db";
String DB_DEFAULT_VALUE = "memory";
String SWEEP_FREQUENCY_PROPERTY_NAME = "decider.sweep.frequency.seconds";
int SWEEP_FREQUENCY_DEFAULT_VALUE = 30;
String SWEEP_DISABLE_PROPERTY_NAME = "decider.sweep.disable";
// FIXME This really should be typed corre... |
<<<<<<<
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.inject.Singleton;
import co... |
<<<<<<<
@ProtoField(id = 29)
private Any inputMessage;
@ProtoField(id = 30)
private Any outputMessage;
@ProtoField(id = 31)
private int rateLimitPerSecond;
=======
private int rateLimitPerFrequency;
>>>>>>>
@ProtoField(id = 29)
private Any inputMessage;
@ProtoField(id = 30)... |
<<<<<<<
public void removeWorkflowDef(String name, Integer version);
=======
void removeWorkflowDef(String name, int version);
>>>>>>>
void removeWorkflowDef(String name, Integer version); |
<<<<<<<
=======
>>>>>>>
<<<<<<<
handleException(e, result, worker, false, task);
=======
WorkflowTaskMetrics.executionException(worker.getTaskDefName(), e);
result = new TaskResult(task);
result.setStatus(TaskResult.Status.FAILED);
result.setReasonForIncompletion("Error while executing th... |
<<<<<<<
import java.util.List;
import java.util.Optional;
=======
import java.util.List;
>>>>>>>
import java.util.List;
import java.util.Optional;
<<<<<<<
/**
* @param taskDef task definition to be created
* @return name of the task definition
*/
String createTaskDef(TaskDef taskDef);
... |
<<<<<<<
import ch.ethz.idsc.tensor.Scalar;
import ch.ethz.idsc.tensor.Tensor;
=======
>>>>>>>
<<<<<<<
public abstract class TrajectoryEntryFinder {
private final Scalar initialVar;
protected Scalar var;
public TrajectoryEntryFinder(Scalar initialVar) {
this.initialVar = initialVar;
var = initialVar;... |
<<<<<<<
/** Total preorder for tensor norms. */
=======
/** a mapping from any set to the reals results in a preorder
* using Scalars.lessEquals as a binary relation
*
* binary relation that is reflexive and transitive, but not antisymmetric */
>>>>>>>
/** Total preorder for tensor norms.
*
* a mapping from a... |
<<<<<<<
import ch.ethz.idsc.tensor.red.Min;
import ch.ethz.idsc.tensor.red.Norm;
=======
>>>>>>>
<<<<<<<
=======
// FIXME OB radius is smaller if we're at the beginning of the
>>>>>>> |
<<<<<<<
import ch.ethz.idsc.sophus.app.api.GeodesicDisplay;
import ch.ethz.idsc.sophus.app.api.Se2GeodesicDisplay;
import ch.ethz.idsc.sophus.filter.BiinvariantMeanCenter;
=======
>>>>>>>
import ch.ethz.idsc.sophus.app.api.GeodesicDisplay;
import ch.ethz.idsc.sophus.app.api.Se2GeodesicDisplay;
import ch.ethz.idsc.so... |
<<<<<<<
private final JToggleButton jToggleIIR = new JToggleButton("IIR");
private final PathRender pathRenderCurve = new PathRender(COLOR_CURVE);
private Tensor _control = Tensors.of(Array.zeros(3));
private Scalar alpha = RationalScalar.of(3, 4);
=======
private final SpinnerListener<String> spinnerListen... |
<<<<<<<
subid, brandinguuid
=======
subuuid, branding.getString(1)
>>>>>>>
subid, branding.getString(1) |
<<<<<<<
import org.apache.log4j.Logger;
import org.fedoraproject.candlepin.audit.EventSink;
import org.fedoraproject.candlepin.auth.Access;
import org.fedoraproject.candlepin.auth.interceptor.Verify;
import org.fedoraproject.candlepin.exceptions.BadRequestException;
import org.fedoraproject.candlepin.model.ActivationKe... |
<<<<<<<
import org.fedoraproject.candlepin.model.AttributeCurator;
import org.fedoraproject.candlepin.model.CertificateSerial;
=======
import org.fedoraproject.candlepin.model.ProductAttributeCurator;
>>>>>>>
import org.fedoraproject.candlepin.model.ProductAttributeCurator;
import org.fedoraproject.candlepin.model.C... |
<<<<<<<
entitler.entitleByProduct(consumer, newProduct);
=======
entitler.entitle(consumer, newProduct, new Integer("1"));
>>>>>>>
entitler.entitleByProduct(consumer, newProduct, new Integer("1"));
<<<<<<<
entitler.entitleByProduct(consumer, newProduct);
=======
entitler.en... |
<<<<<<<
productAdapter = mock(ProductServiceAdapter.class);
subAdapter = mock(SubscriptionServiceAdapter.class);
cr = new ContentResource(cc, i18n, new DefaultUniqueIdGenerator(),
envContentCurator, poolManager, productAdapter);
=======
oc = mock(OwnerCurator.class);
... |
<<<<<<<
/*
* 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 |
<<<<<<<
Importer i = new Importer(null, null, null, null, null, null, null,
null, null, emc, null, null, i18n, null);
=======
Importer i = new Importer(null, null, null, null, null, null, null, null,
null, null, emc, null, null, i18n);
>>>>>>>
Importer i = new Importer... |
<<<<<<<
private OwnerCurator ownerCurator;
=======
private Configuration config;
>>>>>>>
private OwnerCurator ownerCurator;
private Configuration config;
<<<<<<<
ContentCurator contentCurator, PoolCurator poolCurator, OwnerCurator ownerCurator) {
=======
ContentCurator contentCurat... |
<<<<<<<
ownerResource.listConsumers(owner.getKey(), "username", "type", uuids,
=======
Set<String> types = new HashSet<String>();
types.add("type");
ownerResource.ownerConsumers(owner.getKey(), "username", types, uuids,
>>>>>>>
Set<String> types = new HashSet<String>();
... |
<<<<<<<
/**
* given a list of skus, return a set of sku, name pairs
* @param skus skus
* @return hashmap of sku, name pairs
*/
HashMap<String, String> getProductNamesByProductId(String[] skus);
=======
/**
* Gets the certificate that defines the given product, creating one
... |
<<<<<<<
=======
import org.fedoraproject.candlepin.servlet.filter.auth.SSLAuthFilter;
>>>>>>>
import org.fedoraproject.candlepin.servlet.filter.auth.SSLAuthFilter;
<<<<<<<
bind(Filter.class).annotatedWith(named(FilterConstants.SSL_AUTH))
.to(new Config().sslAuthFilterClass()).asEagerSingleton();... |
<<<<<<<
@Transient
public boolean isManifest() {
return getType() == null ? false : getType().isManifest();
}
/**
* @return the capabilities
*/
public Set<ConsumerCapability> getCapabilities() {
return capabilities;
}
/**
* @param capabilities the capabilitie... |
<<<<<<<
import org.fedoraproject.candlepin.controller.Entitler;
=======
import org.fedoraproject.candlepin.TestingInterceptor;
>>>>>>>
import org.fedoraproject.candlepin.TestingInterceptor;
<<<<<<<
protected Entitler entitler;
=======
protected TestingInterceptor crudInterceptor;
protected TestingInte... |
<<<<<<<
=======
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException... |
<<<<<<<
=======
import org.candlepin.model.Attribute;
import org.candlepin.model.Branding;
import org.candlepin.model.DerivedProductPoolAttribute;
import org.candlepin.model.DerivedProvidedProduct;
>>>>>>>
import org.candlepin.model.Branding;
<<<<<<<
public void copyProvidedProducts(Subscription source, Pool de... |
<<<<<<<
import org.apache.log4j.Logger;
import org.fedoraproject.candlepin.auth.Principal;
import org.fedoraproject.candlepin.model.SubscriptionsCertificate;
import org.fedoraproject.candlepin.model.SubscriptionsCertificateCurator;
=======
import org.apache.log4j.Logger;
import org.fedoraproject.candlepin.model.Certi... |
<<<<<<<
import org.candlepin.policy.criteria.RulesCriteria;
=======
import org.candlepin.policy.js.ProductCache;
>>>>>>>
import org.candlepin.policy.criteria.RulesCriteria;
import org.candlepin.policy.js.ProductCache;
<<<<<<<
mockProductAdapter, entCertAdapterMock, mockEventSink,
eventFactor... |
<<<<<<<
entitler.entitleByProduct(consumer, newProduct);
anotherEntitler.entitleByProduct(consumer, newProduct);
=======
entitler.entitle(consumer, newProduct, new Integer("1"));
anotherEntitler.entitle(consumer, newProduct, new Integer("1"));
>>>>>>>
entitler.entitleByProduct... |
<<<<<<<
import org.fedoraproject.candlepin.auth.permissions.Permission;
=======
import org.fedoraproject.candlepin.model.ActivationKey;
>>>>>>>
import org.fedoraproject.candlepin.auth.permissions.Permission;
import org.fedoraproject.candlepin.model.ActivationKey;
<<<<<<<
import org.fedoraproject.candlepin.model.Sub... |
<<<<<<<
import java.util.HashMap;
=======
import java.io.IOException;
import java.math.BigInteger;
import java.security.GeneralSecurityException;
import java.security.KeyPair;
import java.security.cert.X509Certificate;
import java.util.Calendar;
import java.util.Date;
>>>>>>>
import java.util.HashMap;
import java.io... |
<<<<<<<
private static Logger log = Logger.getLogger(SubscriptionTokenResource.class);
private SubscriptionCurator subCurator;
=======
private static Logger log = Logger
.getLogger(SubscriptionTokenResource.class);
>>>>>>>
private static Logger log = Logger
.getLogger(SubscriptionToke... |
<<<<<<<
Subscription sub = new Subscription(owner, prod, new HashSet<Product>(),
new Long(2000), TestUtil.createDate(2010, 2, 9), TestUtil
=======
Subscription sub = new Subscription(owner, prod,
2000L, 1L, TestUtil.createDate(2010, 2, 9), TestUtil
>>>>>>>
Subs... |
<<<<<<<
private ContentCurator contentCurator;
//private ProductCurator prodCurator;
=======
>>>>>>>
private ContentCurator contentCurator; |
<<<<<<<
import org.fedoraproject.candlepin.resource.RoleResource;
import org.fedoraproject.candlepin.resource.UserResource;
=======
>>>>>>>
import org.fedoraproject.candlepin.resource.RoleResource;
<<<<<<<
import org.quartz.JobListener;
import org.quartz.spi.JobFactory;
import org.xnap.commons.i18n.I18n;
import ja... |
<<<<<<<
null, null, null, new Config());
=======
null, null, new CandlepinCommonTestConfig());
>>>>>>>
null, null, null, new CandlepinCommonTestConfig());
<<<<<<<
null, null, null, new Config());
=======
null, null, new CandlepinCommonTestConfig());
>>>... |
<<<<<<<
import org.fedoraproject.candlepin.product.ProductServiceAdapter;
import org.junit.Before;
=======
>>>>>>>
import org.fedoraproject.candlepin.product.ProductServiceAdapter;
import org.junit.Before; |
<<<<<<<
import org.fedoraproject.candlepin.resource.AtomFeedResource;
import org.fedoraproject.candlepin.resource.CertificateResource;
=======
import org.fedoraproject.candlepin.resource.AtomFeedResource;
>>>>>>>
import org.fedoraproject.candlepin.resource.AtomFeedResource;
<<<<<<<
import org.fedoraproject.candlepi... |
<<<<<<<
identityCert.setPem(pki.getPemEncoded(x509cert));
identityCert.setKey(pki.getPemEncoded(keyPair.getPrivate()));
=======
identityCert.setCert(pki.getPemEncoded(x509cert));
identityCert.setKey(pki.toPem(keyPair.getPrivate()));
>>>>>>>
identityCert.setCert(pki.getPemEncod... |
<<<<<<<
Event e = new Event(Event.Type.CREATED, Event.Target.CONSUMER,
newConsumer.getName(), principal, newConsumer.getOwner().getId(),
newConsumer.getId(), newConsumer.getId(), null, newEntityJson);
=======
Event e = new Event(Event.Type.CREATED, Event.Tar... |
<<<<<<<
public Status handleCreated(Event event) {
Compliance snap;
=======
public void handleCreated(Event event) {
Compliance compliance;
ComplianceStatus status;
Consumer consumer;
Owner owner;
ConsumerState cstate;
String uuid;
String ownerK... |
<<<<<<<
=======
import org.candlepin.model.Owner;
import org.candlepin.model.OwnerCurator;
import org.candlepin.service.SubscriptionServiceAdapter;
>>>>>>>
import org.candlepin.model.Owner;
import org.candlepin.model.OwnerCurator;
<<<<<<<
=======
private OwnerCurator ownerCurator;
private SubscriptionServ... |
<<<<<<<
public void testGetChangedProductsNoNewProducts() {
Product oldProduct = TestUtil.createProduct("fake id", "fake name", owner);
Set<Product> products = new HashSet<Product>();
when(productCuratorMock.find(oldProduct.getUuid()))
.thenReturn(oldProduct);
Set<Prod... |
<<<<<<<
import org.candlepin.auth.permissions.PermissionFactory;
=======
import org.candlepin.auth.interceptor.Verify;
>>>>>>>
import org.candlepin.auth.permissions.PermissionFactory;
import org.candlepin.auth.interceptor.Verify;
<<<<<<<
private Injector injector;
private I18n i18n;
private PermissionFa... |
<<<<<<<
import com.google.inject.Inject;
import com.google.inject.persist.Transactional;
import java.io.File;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedList;
i... |
<<<<<<<
import org.fedoraproject.candlepin.config.Config;
=======
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java... |
<<<<<<<
if (poolQuantityChanged != null) {
sink.sendEvent(poolQuantityChanged);
}
Product prod = new Product(null, null);
Subscription sub = subAdapter.getSubscription(mergedPool.getSubscriptionId(), prod);
=======
Subscription sub = subAdapter.get... |
<<<<<<<
=======
/**
* Returns list of pools available to the consumer.
*
* @param c Consumer to filter
* @return pools available to the consumer.
*/
@Transactional
public List<Pool> listByConsumer(Consumer c) {
return listAvailableEntitlementPools(c, c.getOwner(), (String... |
<<<<<<<
=======
import com.google.inject.Module;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
>>>>>>>
<<<<<<<
import org.fedoraproject.candlepin.configuration.CandlepinConfiguration;
import com.google.inject.Module;
=======
>>>>>>>
import org.fedoraproject.candlepin.... |
<<<<<<<
private CertificateSerialCurator csCurator;
private EventSink sink;
=======
private I18n i18n;
>>>>>>>
private CertificateSerialCurator csCurator;
private EventSink sink;
private I18n i18n;
<<<<<<<
PKIUtility pki, Config config, ExporterMetadataCurator emc,
Certificat... |
<<<<<<<
import org.fedoraproject.candlepin.model.ConsumerTypeCurator;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.any;
=======
>>>>>>>
import org.fedoraproject.candlepin.model.ConsumerTypeCurator;
<<<<... |
<<<<<<<
private ConsumerIdentityCertificateCurator consumerIdCertCurator;
private ProductServiceAdapter productAdapter;
private PoolCurator epCurator;
private Entitler entitler;
private SubscriptionServiceAdapter subAdapter;
private EntitlementCurator entitlementCurator;
=======
private ... |
<<<<<<<
=======
import org.candlepin.service.ProductServiceAdapter;
import org.candlepin.service.SubscriptionServiceAdapter;
>>>>>>>
import org.candlepin.service.ProductServiceAdapter;
import org.candlepin.service.SubscriptionServiceAdapter;
<<<<<<<
private ProductCurator productCurator;
=======
private P... |
<<<<<<<
private List<Entitlement> bindByProduct(String productHash, Consumer consumer) {
List<Entitlement> entitlementList = new LinkedList<Entitlement>();
Product p = productAdapter.getProductByHash(productHash, consumer.getOwner());
if (p == null) {
=======
private List<Entitlement> ... |
<<<<<<<
Entitlement e = entitler.entitleByProduct(parentSystem, virtHost);
=======
Entitlement e = entitler.entitle(parentSystem, virtHost, new Integer("1"));
>>>>>>>
Entitlement e = entitler.entitleByProduct(parentSystem, virtHost, new Integer("1"));
<<<<<<<
e = entitler.entitleByPr... |
<<<<<<<
import org.fedoraproject.candlepin.model.ConsumerTypeCurator;
import org.fedoraproject.candlepin.model.ConsumerType;
=======
import org.fedoraproject.candlepin.model.ActivationKey;
import org.fedoraproject.candlepin.model.ActivationKeyCurator;
>>>>>>>
import org.fedoraproject.candlepin.model.ActivationKey;
i... |
<<<<<<<
=======
>>>>>>>
<<<<<<<
=======
import org.json.JSONArray;
>>>>>>>
import org.json.JSONArray;
<<<<<<<
/**
* A client for interacting with the Google Pay API.
*
* @see <a
* href="https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentsClient">Payments... |
<<<<<<<
int exit = new JarMain(args).start();
if(isSystemExitEnabled()) System.exit(exit);
} catch (Exception e) {
=======
System.exit( main.start() );
}
catch (Exception e) {
System.err.println("error: " + e.toString());
>>>>>>>
int... |
<<<<<<<
mimetypeIntent.setDataAndType(Uri.fromParts("file", "", null), info.mMimeType);
List<ResolveInfo> list = getPackageManager().queryIntentActivities(mimetypeIntent,
=======
mimetypeIntent.setDataAndType(Uri.fromParts("file", "", null), info.mimetype);
ResolveInfo ... |
<<<<<<<
LayoutOptionData.Visibility.HIDDEN
=======
LayoutOptionData.Visibility.VISIBLE
, "de.cau.cs.kieler.bendPoints"
));
registry.register(new LayoutOptionData(
"org.eclipse.elk.borderSpacing",
"Border Spacing",
"Spacing of the content of a parent node to its ... |
<<<<<<<
* Set for nodes and edges to preserve the order in the model file.
*/
public static final IProperty<Integer> MODEL_ORDER = new Property<>("modelOrder");
/**
* Set on ports to save their (long edge) target node.
* Only used during port sorting if the node/edge order shall be preserve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.