method2testcases stringlengths 118 6.63k |
|---|
### Question:
ChatRepository { public LiveData<PagedList<ChatMessage>> getMessagesByGroupId(int groupId) { return new LivePagedListBuilder<>(chatDao.getMessagesByGroupId(groupId), 30).build(); } ChatRepository(ChatDao chatDao, RequestEncoder encoder,
Handler backgroundHandler); void addMessage... |
### Question:
User { public int getUserId() { return userId; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUserId(); void se... |
### Question:
User { public void setUserId(int userId) { this.userId = userId; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int ge... |
### Question:
User { public String getUsername() { return username; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUserId(); ... |
### Question:
User { public void setUsername(String username) { this.username = username; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location locati... |
### Question:
User { public boolean isFriend() { return isFriend; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUserId(); vo... |
### Question:
User { public void setFriend(boolean friend) { isFriend = friend; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int g... |
### Question:
User { public boolean isBlocked() { return isBlocked; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUserId(); ... |
### Question:
User { public void setBlocked(boolean blocked) { isBlocked = blocked; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); i... |
### Question:
User { public boolean isRequesting() { return isRequesting; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUser... |
### Question:
PositionChangeUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { User user = repositorySet.userRepository.getUser(creator); user.setLocation(toLocation(latitude, longitude, timeMeasured)); repositorySet.userRepository.updateUser(user); } PositionChangeUpdate(@JsonProp... |
### Question:
User { public void setRequesting(boolean requesting) { this.isRequesting = requesting; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Loca... |
### Question:
User { public boolean isRequestPending() { return requestPending; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int g... |
### Question:
User { public void setRequestPending(boolean requestPending) { this.requestPending = requestPending; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
... |
### Question:
User { public Location getLocation() { return location; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location location); int getUserId()... |
### Question:
User { public void setLocation(Location location) { this.location = location; } User(int userId,
String username,
boolean isFriend,
boolean isBlocked,
boolean isRequesting,
boolean requestPending,
Location loca... |
### Question:
User { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; if (userId != user.userId) return false; if (isFriend != user.isFriend) return false; if (isBlocked != user.isBlocked) return false; if (isRequest... |
### Question:
GroupMembership { public int getUserId() { return userId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setSharing(boolean s... |
### Question:
GroupMembership { public void setUserId(int userId) { this.userId = userId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void se... |
### Question:
GroupMembership { public int getGroupId() { return groupId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setSharing(boolean... |
### Question:
GroupMembership { public void setGroupId(int groupId) { this.groupId = groupId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); voi... |
### Question:
ContactRequestAnswerUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsPending(creator, false); repositorySet.userRepository.setIsFriend(creator, answer); } ContactRequestAnswerUpdate(@JsonProperty("time-created") Date timeCreated,
... |
### Question:
GroupMembership { public Date getSharingUntil() { return sharingUntil; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setShar... |
### Question:
GroupMembership { public void setSharingUntil(Date sharingUntil) { this.sharingUntil = sharingUntil; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boo... |
### Question:
GroupMembership { public boolean isSharing() { return sharing; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setSharing(bool... |
### Question:
GroupMembership { public void setSharing(boolean sharing) { this.sharing = sharing; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing();... |
### Question:
GroupMembership { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GroupMembership that = (GroupMembership) o; if (userId != that.userId) return false; return groupId == that.groupId; } GroupMembership(int userId, int groupI... |
### Question:
UserGroup { public int getGroupId() { return groupId; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Override bo... |
### Question:
UserGroup { public void setGroupId(int groupId) { this.groupId = groupId; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toSt... |
### Question:
UserGroup { public String getName() { return name; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Override boole... |
### Question:
UserGroup { public void setName(String name) { this.name = name; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @... |
### Question:
UserGroup { public boolean isSharingLocation() { return isSharingLocation; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toS... |
### Question:
EventDeletionUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); } EventDeletionUpdate(@JsonProperty("time-created") Date timeCreated,
@JsonProperty("creator") int creator,
... |
### Question:
UserGroup { public void setSharingLocation(boolean sharingLocation) { isSharingLocation = sharingLocation; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharin... |
### Question:
UserGroup { @Override public String toString() { return name; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Ove... |
### Question:
UserGroup { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; UserGroup group = (UserGroup) o; if (groupId != group.groupId) return false; return name.equals(group.name); } UserGroup(int groupId, String name); int getGroupId(... |
### Question:
DateConverter { @TypeConverter public static Date toDate(Long timestamp) { return timestamp == null ? null : new Date(timestamp); } @TypeConverter static Date toDate(Long timestamp); @TypeConverter static Long toTimestamp(Date date); }### Answer:
@Test public void testToDate() { assertEquals(dateZero, D... |
### Question:
DateConverter { @TypeConverter public static Long toTimestamp(Date date) { return date == null ? null : date.getTime(); } @TypeConverter static Date toDate(Long timestamp); @TypeConverter static Long toTimestamp(Date date); }### Answer:
@Test public void testToTimestamp() { long testTimestamp1 = DateCon... |
### Question:
PositionConverter { @TypeConverter public static Location toLocation(String location) { if (location == null) return null; String[] split = location.split("#"); double lat = Double.parseDouble(split[0]); double lon = Double.parseDouble(split[1]); long time = Long.parseLong(split[2]); Location l = new Loca... |
### Question:
PositionConverter { @TypeConverter public static String toDoubles(Location location) { if (location == null) return null; return location.getLatitude() + "#" + location.getLongitude() + "#" + location.getTime(); } @TypeConverter static Location toLocation(String location); @TypeConverter static String to... |
### Question:
IntegerSetConverter { @TypeConverter public static Set<Integer> toSet(String string) { if (string == null) return null; if (string.length() == 0) return new HashSet<>(); Set<Integer> set = new HashSet<>(); String[] ints = string.split("#"); for (String s : ints) { set.add(Integer.parseInt(s)); } return se... |
### Question:
IntegerSetConverter { @TypeConverter public static String toString(Set<Integer> set) { if (set == null) return null; String string = ""; for (Integer i : set) { string += i; string += "#"; } return string; } @TypeConverter static Set<Integer> toSet(String string); @TypeConverter static String toString(Se... |
### Question:
ChatMessage { public int getMessageId() { return messageId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroup... |
### Question:
AccountChangeUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { User user = repositorySet.userRepository.getUser(account.id); if (user != null) { user.setUsername(account.username); repositorySet.userRepository.updateUser(user); } else { user = new User(account.id, ac... |
### Question:
ChatMessage { public void setMessageId(int messageId) { this.messageId = messageId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int ... |
### Question:
ChatMessage { public int getGroupId() { return groupId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupId()... |
### Question:
ChatMessage { public void setGroupId(int groupId) { this.groupId = groupId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageI... |
### Question:
ChatMessage { public String getContent() { return content; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupI... |
### Question:
ChatMessage { public void setContent(String content) { this.content = content; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messa... |
### Question:
ChatMessage { public int getUserId() { return userId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupId(); ... |
### Question:
ChatMessage { public void setUserId(int userId) { this.userId = userId; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); ... |
### Question:
ChatMessage { public String getUsername() { return username; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGrou... |
### Question:
ChatMessage { public void setUsername(String username) { this.username = username; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int m... |
### Question:
ChatMessage { public Date getTimeSent() { return timeSent; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupI... |
### Question:
CancelContactRequestUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); } CancelContactRequestUpdate(@JsonProperty("time-created") Date timeCreated,
@JsonProperty("creat... |
### Question:
ChatMessage { public void setTimeSent(Date timeSent) { this.timeSent = timeSent; } ChatMessage(int groupId,
String content,
int userId,
String username,
Date timeSent); int getMessageId(); void setMessageId(int mes... |
### Question:
ChatMessage { public boolean equalContent(ChatMessage o) { if (groupId != o.groupId) return false; if (userId != o.userId) return false; if (content != null ? !content.equals(o.content) : o.content != null) { return false; } return timeSent != null ? timeSent.equals(o.timeSent) : o.timeSent == null; } Cha... |
### Question:
ChatMessage { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ChatMessage that = (ChatMessage) o; if (messageId != that.messageId) return false; if (groupId != that.groupId) return false; if (userId != that.userId) return f... |
### Question:
Event extends Occasion { public int getId() { return id; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date getEnd(); vo... |
### Question:
Event extends Occasion { public void setId(int id) { this.id = id; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date ge... |
### Question:
Event extends Occasion { public Date getEnd() { return end; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date getEnd();... |
### Question:
Event extends Occasion { public void setEnd(Date end) { this.end = end; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Da... |
### Question:
Event extends Occasion { public Date getStart() { return start; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date getEn... |
### Question:
Event extends Occasion { public void setStart(Date start) { this.start = start; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int... |
### Question:
Event extends Occasion { public int getCreator() { return creator; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date ge... |
### Question:
GroupMembershipChangeUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { GroupMembership membership = new GroupMembership (membershipDescription.accountID, membershipDescription .groupID); membership.setSharingUntil(membershipDescription.sharingUntil); repositorySet.us... |
### Question:
Event extends Occasion { public void setCreator(int creator) { this.creator = creator; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void se... |
### Question:
Event extends Occasion { public String getStartString() { return start.toString().substring(0, 16); } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int get... |
### Question:
Event extends Occasion { public Location getLocation() { return location; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); ... |
### Question:
Event extends Occasion { public void setLocation(Location location) { this.location = location; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId()... |
### Question:
Event extends Occasion { public int getGroupId() { return groupId; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void setId(int id); Date ge... |
### Question:
Event extends Occasion { public void setGroupId(int groupId) { this.groupId = groupId; } Event(int id,
String name,
Date start,
Date end,
Location location,
int creator,
int groupId); int getId(); void se... |
### Question:
Event extends Occasion { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Event event = (Event) o; if (id != event.id) return false; if (creator != event.creator) return false; if (end != null ? !end.equals(event.end) : even... |
### Question:
PollCompleteSerializer extends JsonSerializer<Poll> { @Override public void serialize(Poll poll, JsonGenerator gen, SerializerProvider serializers) throws IOException { gen.writeStartObject(); gen.writeStringField("type", "poll"); gen.writeNumberField("id", poll.getID()); gen.writeNumberField("creator", p... |
### Question:
PollOptionCompleteSerializer extends JsonSerializer<PollOption> { @Override public void serialize(PollOption pollOption, JsonGenerator gen, SerializerProvider serializers) throws IOException { gen.writeStartObject(); Position position = pollOption.getPosition(); gen.writeStringField("type", "polloption");... |
### Question:
ChatUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { User sender = repositorySet.userRepository.getUser(creator); if (sender == null) sender = User.getPlaceholderAndScheduleQuery(creator, repositorySet.userRepository); ChatMessage chatMessage = new ChatMessage(group... |
### Question:
FeatureServiceImpl { public Feature readFeature(Reader jsonReader) throws IOException { JsonObject json = Json.createReader(jsonReader).readObject(); String id = json.getString("id"); FeatureBuilder builder = builderFactory.newFeatureBuilder(ID.fromMavenID(id)); builder.setName(json.getString("title", nul... |
### Question:
FeatureServiceImpl { public Feature mergeFeatures(ID targetID, Feature f1, Feature f2, MergeContext ctx) { FeatureBuilder fb = builderFactory.newFeatureBuilder(targetID); copyAttrs(f1, fb); copyAttrs(f2, fb); fb.addBundles(mergeBundles(f1, f2, ctx)); fb.addConfigurations(mergeConfigs(f1, f2, ctx)); fb.add... |
### Question:
FeatureServiceImpl { private FeatureExtension[] mergeExtensions(Feature f1, Feature f2, MergeContext ctx) { Map<String,FeatureExtension> extensions = new HashMap<>(f1.getExtensions()); Map<String,FeatureExtension> addExtensions = new HashMap<>(); for (Map.Entry<String,FeatureExtension> exEntry : f2.getExt... |
### Question:
MarkdownResourceProvider extends ResourceProvider<Object> { @Override public Resource getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) { Path filePath = Paths.get(fsPath, path, INDEX_FILE_NAME); File backingFile = filePath.toFile(); if ( !backingFile.c... |
### Question:
MarkdownResourceProvider extends ResourceProvider<Object> { @Override public Iterator<Resource> listChildren(ResolveContext<Object> ctx, Resource parent) { Path root = Paths.get(fsPath, parent.getPath()); try { return Files.list(root) .map( p -> asResource(p, Paths.get(parent.getPath()), ctx)) .filter( r ... |
### Question:
OakDescriptorSource implements CapabilitiesSource { @Override public Map<String, Object> getCapabilities() throws Exception { final SlingRepository localRepo = repository; if (localRepo == null) { return Collections.emptyMap(); } refreshCachedValues(); return cachedReadOnlyMap; } @Override Map<String, Ob... |
### Question:
ReflectionHelper { static <T> T instantiate(Class<T> type, Object... args) { try { if (args.length == 0) { return type.getDeclaredConstructor().newInstance(); } else { Class<?>[] classes = toClasses(args); return type.getDeclaredConstructor(classes).newInstance(args); } } catch (InstantiationException | I... |
### Question:
GlusterOpenOption { public static GlusterOpenOption READ() { GlusterOpenOption o = new GlusterOpenOption(); o.value = O_RDONLY; o.options.add("read"); return o; } static GlusterOpenOption READ(); static GlusterOpenOption WRITE(); static GlusterOpenOption READWRITE(); GlusterOpenOption create(); GlusterOp... |
### Question:
GlusterOpenOption { public static GlusterOpenOption WRITE() { GlusterOpenOption o = new GlusterOpenOption(); o.value = O_WRONLY; o.options.add("write"); return o; } static GlusterOpenOption READ(); static GlusterOpenOption WRITE(); static GlusterOpenOption READWRITE(); GlusterOpenOption create(); Gluster... |
### Question:
GlusterOpenOption { public static GlusterOpenOption READWRITE() { GlusterOpenOption o = new GlusterOpenOption(); o.value = O_RDWR; o.options.add("readwrite"); return o; } static GlusterOpenOption READ(); static GlusterOpenOption WRITE(); static GlusterOpenOption READWRITE(); GlusterOpenOption create(); G... |
### Question:
BootstrapDataRepo implements DomainRepo { @Override public void recycle () { data.clear(); classMap.clear(); } BootstrapDataRepo(); void add(Object item); void add(List<Object> items); List<Object> getData(); List<Object> getData(Class<?> type); Competition getBootstrapCompetition(); Properties getBootSta... |
### Question:
CapacityControlService extends TimeslotPhaseProcessor implements CapacityControl, InitializationService { @Override public RegulationAccumulator getRegulationCapacity (BalancingOrder order) { Tariff tariff = tariffRepo.findTariffById(order.getTariffId()); if (null == tariff) { log.warn("Null tariff " + or... |
### Question:
Battery extends AbstractCustomer implements CustomerModelAccessor { public double getCapacityKWh () { return capacityKWh; } Battery(); Battery(String name); @Override void initialize(); @Override CustomerInfo getCustomerInfo(); @Override void step(); @Override String getName(); @Override void setName(Str... |
### Question:
LiftTruck extends AbstractCustomer implements CustomerModelAccessor { public LiftTruck () { super(); } LiftTruck(); LiftTruck(String name); @Override void initialize(); @Override CustomerInfo getCustomerInfo(); @Override void step(); @Override String getName(); @Override void setName(String name); @Confi... |
### Question:
BootstrapDataRepo implements DomainRepo { public void readBootRecord (URL bootUrl) { Document document = getDocument(bootUrl); XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); try { XPathExpression exp = xPath.compile("/powertac-bootstrap-data/config/competition"); Node... |
### Question:
ColdStorage extends AbstractCustomer implements CustomerModelAccessor { @Override public void evaluateTariffs (List<Tariff> tariffs) { log.info(getName() + ": evaluate tariffs"); tariffEvaluator.evaluateTariffs(); } ColdStorage(); ColdStorage(String name); @Override void initialize(); @Override CustomerI... |
### Question:
Config { public synchronized static Config getInstance () { if (null == instance) { log.error("Unconfigured instance requested"); } return instance; } private Config(ServerConfiguration source); boolean isAllocationDetailsLogging(); boolean isCapacityDetailsLogging(); boolean isUsageChargesLogging(); Lis... |
### Question:
MisoBuyer extends Broker { public MisoBuyer (String username) { super(username, true, true); } MisoBuyer(String username); void init(BrokerProxy proxy, int seedId, ContextService service); void generateOrders(Instant now, List<Timeslot> openSlots); double getCoolThreshold(); @ConfigurableValue(valueType =... |
### Question:
CpGenco extends Broker { public CpGenco (String username) { super(username, true, true); } CpGenco(String username); void init(BrokerProxy proxy, int seedId,
RandomSeedRepo randomSeedRepo,
TimeslotRepo timeslotRepo); void generateOrders(Instant now, List<Timeslot> o... |
### Question:
CpGenco extends Broker { public void init (BrokerProxy proxy, int seedId, RandomSeedRepo randomSeedRepo, TimeslotRepo timeslotRepo) { log.info("init(" + seedId + ") " + getUsername()); this.brokerProxyService = proxy; this.timeslotRepo = timeslotRepo; this.seed = randomSeedRepo.getRandomSeed(CpGenco.class... |
### Question:
CpGenco extends Broker { @ConfigurableValue(valueType = "List", bootstrapState = true, dump=false, description = "Coefficients for the specified function type") @StateChange public CpGenco withCoefficients (List<String> coeff) { if (function.validateCoefficients(coeff)) { coefficients = coeff; } else { lo... |
### Question:
CpGenco extends Broker { @ConfigurableValue(valueType = "Double", dump=false, description = "Standard Deviation ratio for bid price") @StateChange public CpGenco withPSigma (double var) { this.pSigma = var; return this; } CpGenco(String username); void init(BrokerProxy proxy, int seedId,
... |
### Question:
CpGenco extends Broker { @ConfigurableValue(valueType = "Double", dump=false, description = "Standard Deviation ratio for bid quantity") @StateChange public CpGenco withQSigma (double var) { this.qSigma = var; return this; } CpGenco(String username); void init(BrokerProxy proxy, int seedId,
... |
### Question:
CpGenco extends Broker { @ConfigurableValue(valueType = "Double", description = "Nominal price interval between successive bids") @StateChange public CpGenco withPriceInterval (double interval) { this.priceInterval = interval; return this; } CpGenco(String username); void init(BrokerProxy proxy, int seedI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.