instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class TodosService { private final TodoEntityMapper mapper; private final TodosRepository repo; /** * Gibt die Anzahl an Datensätzen zurück. * @return die Anzahl an Datensätzen */ long count() { return repo.count(); } /** * Gibt alle Todos zurück. * ...
if (null == item || null == item.id()) { throw new IllegalArgumentException("item must exist with an id"); } // remove separat, um nicht neue Einträge hinzuzufügen (put allein würde auch ersetzen) if (repo.existsById(item.id())) { repo.save(mapper.map(item)); } el...
repos\tutorials-master\spring-boot-modules\spring-boot-3\src\main\java\com\baeldung\sample\control\TodosService.java
2
请完成以下Java代码
public int getCM_AccessProfile_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_V...
} return false; } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name);...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_AccessProfile.java
1
请完成以下Java代码
public CalloutException setCalloutExecutorIfAbsent(final ICalloutExecutor calloutExecutor) { if (this.calloutExecutor == null) { setCalloutExecutor(calloutExecutor); } return this; } public CalloutException setField(final ICalloutField field) { this.field = field; setParameter("field", field); ret...
public CalloutException setFieldIfAbsent(final ICalloutField field) { if (this.field == null) { setField(field); } return this; } public ICalloutField getCalloutField() { return field; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\exceptions\CalloutException.java
1
请完成以下Java代码
public void updateUOMFromHeaderToChecks() { assertNotProcessed(); for (final PPOrderWeightingRunCheck check : checks) { check.setUomId(targetWeight.getUomId()); } } private void assertNotProcessed() { if (isProcessed) { throw new AdempiereException("Already processed"); } }
public I_C_UOM getUOM() { return targetWeight.getUOM(); } public SeqNo getNextLineNo() { final SeqNo lastLineNo = checks.stream() .map(PPOrderWeightingRunCheck::getLineNo) .max(Comparator.naturalOrder()) .orElseGet(() -> SeqNo.ofInt(0)); return lastLineNo.next(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\manufacturing\order\weighting\run\PPOrderWeightingRun.java
1
请完成以下Java代码
public Integer getMaxPercentPerOrder() { return maxPercentPerOrder; } public void setMaxPercentPerOrder(Integer maxPercentPerOrder) { this.maxPercentPerOrder = maxPercentPerOrder; } public Integer getUseUnit() { return useUnit; } public void setUseUnit(Integer useUnit)...
this.couponStatus = couponStatus; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", deduc...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsIntegrationConsumeSetting.java
1
请完成以下Java代码
public String getRootCauseIncidentProcessInstanceId() { return rootCauseIncidentProcessInstanceId; } public void setRootCauseIncidentProcessInstanceId(String rootCauseIncidentProcessInstanceId) { this.rootCauseIncidentProcessInstanceId = rootCauseIncidentProcessInstanceId; } public String getRootCause...
return rootCauseIncidentFailedActivityId; } public void setRootCauseIncidentFailedActivityId(String rootCauseIncidentFailedActivityId) { this.rootCauseIncidentFailedActivityId = rootCauseIncidentFailedActivityId; } public String getRootCauseIncidentConfiguration() { return rootCauseIncidentConfigurati...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\IncidentDto.java
1
请完成以下Java代码
public String getCamundaResultVariable() { return camundaResultVariableAttribute.getValue(this); } public void setCamundaResultVariable(String camundaResultVariable) { camundaResultVariableAttribute.setValue(this, camundaResultVariable); } public String getCamundaTopic() { return camundaTopicAttri...
public String getCamundaDecisionRefVersionTag() { return camundaDecisionRefVersionTagAttribute.getValue(this); } public void setCamundaDecisionRefVersionTag(String camundaDecisionRefVersionTag) { camundaDecisionRefVersionTagAttribute.setValue(this, camundaDecisionRefVersionTag); } @Override public S...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\BusinessRuleTaskImpl.java
1
请完成以下Java代码
public class C_Invoice_Line_Alloc { /** * Updates invoice line's QtyTU by summing up the invoice candidate's QtyTUs. * * @param invoiceLineAlloc * @task http://dewiki908/mediawiki/index.php/08469_Produzentenabrechnung:_Quantity_of_LU_wrong_%28100093568946%29 */ @ModelChange(timings = { ModelValidator.TYP...
// Update Invoice Line else { qtyTUs = calculateQtyTUsFromInvoiceCandidates(invoiceLine); } invoiceLine.setQtyEnteredTU(qtyTUs); save(invoiceLine); } private final BigDecimal calculateQtyTUsFromInvoiceCandidates(final I_C_InvoiceLine invoiceLine) { BigDecimal qtyEnteredTU = BigDecimal.ZERO; final ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\model\validator\C_Invoice_Line_Alloc.java
1
请在Spring Boot框架中完成以下Java代码
public String getLayoutID() { return layoutID; } /** * Sets the value of the layoutID property. * * @param value * allowed object is * {@link String } * */ public void setLayoutID(String value) { this.layoutID = value; } /** * I...
* @return * possible object is * {@link PresentationDetailsExtensionType } * */ public PresentationDetailsExtensionType getPresentationDetailsExtension() { return presentationDetailsExtension; } /** * Sets the value of the presentationDetailsExtension property....
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\PresentationDetailsType.java
2
请完成以下Java代码
public MapFormat setArguments(final Map<String, ?> map) { if (map == null) { _argumentsMap = Collections.emptyMap(); } else { _argumentsMap = new HashMap<>(map); } return this; } /** Pre-compiled pattern */ private static final class Pattern { private static final int BUFSIZE = 255; /** O...
if (rightDelimiterIdx < 0) { if (exactMatch) { throw new IllegalArgumentException("UnmatchedBraces"); } else { break; } } outpat.append(patternStr.substring(idx, leftDelimiterIdx)); offsets[offnum] = outpat.length(); arguments[offnum] = patternStr.substring...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.client\src\main\java\de\metas\printing\client\util\MapFormat.java
1
请完成以下Java代码
public WFProcess setTUPickingTarget( @NonNull final WFProcessId wfProcessId, @Nullable final PickingJobLineId lineId, @Nullable final TUPickingTarget target, @NonNull final UserId callerId) { return changeWFProcessById( wfProcessId, (wfProcess, pickingJob) -> { wfProcess.assertHasAccess(call...
@NonNull public List<HuId> getClosedLUs( @NonNull final WFProcessId wfProcessId, @Nullable final PickingJobLineId lineId, @NonNull final UserId callerId) { final WFProcess wfProcess = getWFProcessById(wfProcessId); wfProcess.assertHasAccess(callerId); final PickingJob pickingJob = getPickingJob(wfProce...
repos\metasfresh-new_dawn_uat\backend\de.metas.picking.rest-api\src\main\java\de\metas\picking\workflow\handlers\PickingMobileApplication.java
1
请在Spring Boot框架中完成以下Java代码
public class SystemInfoServiceImpl implements SystemInfoService { private static final Logger LOG = LoggerFactory.getLogger(SystemInfoServiceImpl.class); private final static String SERVICE_PREFIX = "/services/system"; private final HttpClient httpClient; private final ObjectMapper mapper; privat...
.GET() .uri(URI.create(baseUri + "/version")) .build(); HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); if (response.statusCode() != 200) { throw new ServiceException("Http status: " + respons...
repos\spring-examples-java-17\spring-bank\bank-client\src\main\java\itx\examples\springbank\client\service\SystemInfoServiceImpl.java
2
请完成以下Java代码
public class DefaultClockImpl implements org.activiti.engine.runtime.Clock { private static volatile Calendar CURRENT_TIME; @Override public void setCurrentTime(Date currentTime) { Calendar time = null; if (currentTime != null) { time = new GregorianCalendar(); tim...
@Override public Date getCurrentTime() { return CURRENT_TIME == null ? new Date() : CURRENT_TIME.getTime(); } @Override public Calendar getCurrentCalendar() { return CURRENT_TIME == null ? new GregorianCalendar() : (Calendar) CURRENT_TIME.clone(); } @Override public Calenda...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\util\DefaultClockImpl.java
1
请完成以下Java代码
public class Movie { @Id @GeneratedValue Long id; private String title; private int released; private String tagline; @Relationship(type = "ACTED_IN", direction = INCOMING) private List<Role> roles; public Movie() { } public String getTitle() { return title; } ...
public void setTitle(String title) { this.title = title; } public void setReleased(int released) { this.released = released; } public void setTagline(String tagline) { this.tagline = tagline; } public void setRoles(List<Role> roles) { this.roles = roles; } ...
repos\tutorials-master\persistence-modules\neo4j\src\main\java\com\baeldung\neo4j\domain\Movie.java
1
请在Spring Boot框架中完成以下Java代码
public class PageDescriptorRepository { public PageDescriptor getBy(@NonNull final String completePageId) { final PageIdentifier pageIdentifier = PageIdentifier.ofCombinedString(completePageId); final I_T_Query_Selection_Pagination pageDescriptorRecord = Services .get(IQueryBL.class) .createQueryBuilder(...
.totalSize(pageDescriptorRecord.getTotal_Size()) .pageSize(pageDescriptorRecord.getPage_Size()) .offset(pageDescriptorRecord.getPage_Offset()) .pageUid(pageDescriptorRecord.getPage_Identifier()) .build(); } public void save(@NonNull final PageDescriptor pageDescriptor) { final PageIdentifier pageI...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\dao\selection\pagination\PageDescriptorRepository.java
2
请在Spring Boot框架中完成以下Java代码
public static class KeyStoreProperties { private String password; private String type; public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } public String getType() { return this.type; } public void setType(String typ...
public String getGateway() { return this.gateway; } public void setGateway(String gateway) { this.gateway = gateway; } public String getJmx() { return this.jmx; } public void setJmx(String jmx) { this.jmx = jmx; } public String getLocator() { return this.locator; } public void se...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\SslProperties.java
2
请完成以下Java代码
public IProductStorage getProductStorage(final ProductId productId, final I_C_UOM uom, final ZonedDateTime date) { return new HUItemProductStorage(this, productId, uom, date); } @Override public List<IProductStorage> getProductStorages(final ZonedDateTime date) { final List<I_M_HU_Item_Storage> storages = dao...
if (qty.signum() != 0) { return false; } return true; } @Override public boolean isEmpty(final ProductId productId) { final I_M_HU_Item_Storage storage = dao.retrieveItemStorage(item, productId); if (storage == null) { return true; } return isEmpty(storage); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\impl\HUItemStorage.java
1
请完成以下Java代码
public Set<String> getWhiteListedClasses() { return whiteListedClasses; } public SecureJavascriptConfigurator setWhiteListedClasses(Set<String> whiteListedClasses) { this.whiteListedClasses = whiteListedClasses; return this; } public SecureJavascriptConfigurator addWhiteListedC...
} public long getMaxMemoryUsed() { return maxMemoryUsed; } public SecureJavascriptConfigurator setMaxMemoryUsed(long maxMemoryUsed) { this.maxMemoryUsed = maxMemoryUsed; return this; } public int getScriptOptimizationLevel() { return scriptOptimizationLevel; } ...
repos\flowable-engine-main\modules\flowable-secure-javascript\src\main\java\org\flowable\scripting\secure\SecureJavascriptConfigurator.java
1
请完成以下Java代码
public String getCamundaId() { return camundaIdAttribute.getValue(this); } public void setCamundaId(String camundaId) { camundaIdAttribute.setValue(this, camundaId); } public String getCamundaLabel() { return camundaLabelAttribute.getValue(this); } public void setCamundaLabel(String camundaLa...
} public void setCamundaProperties(CamundaProperties camundaProperties) { camundaPropertiesChild.setChild(this, camundaProperties); } public CamundaValidation getCamundaValidation() { return camundaValidationChild.getChild(this); } public void setCamundaValidation(CamundaValidation camundaValidatio...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\camunda\CamundaFormFieldImpl.java
1
请完成以下Java代码
public BigDecimal getFeeForProducedMaterial(final I_M_Product m_Product, final BigDecimal percentage) { final List<BigDecimal> percentages = new ArrayList<>(feeProductPercentage2fee.keySet()); // iterating from first to 2nd-last for (int i = 0; i < percentages.size() - 1; i++) { final BigDecimal currentPer...
@Override public I_M_Product getRegularPPOrderProduct() { final IContextAware ctxAware = getContext(); return productPA.retrieveProduct(ctxAware.getCtx(), M_PRODUCT_REGULAR_PP_ORDER_VALUE, true, // throwExIfProductNotFound ctxAware.getTrxName()); } /** * @return the date that...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\ch\lagerkonf\impl\HardCodedQualityBasedConfig.java
1
请完成以下Java代码
private Instance[] readInstance(String corpus, FeatureMap featureMap) { IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(corpus); List<Instance> instanceList = new LinkedList<Instance>(); for (String line : lineIterator) { String[] cells = line.split(","); ...
public Instance(List<Integer> x, int y) { this.x = x; this.y = y; } } /** * 准确率度量 */ static class BinaryClassificationFMeasure { float P, R, F1; public BinaryClassificationFMeasure(float p, float r, float f1) { P = p...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\PerceptronClassifier.java
1
请完成以下Java代码
public void setDivideRate (java.math.BigDecimal DivideRate) { set_Value (COLUMNNAME_DivideRate, DivideRate); } /** Get Divisor. @return Der Divisor ist der Kehrwert des Umrechnungsfaktors. */ @Override public java.math.BigDecimal getDivideRate () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Divid...
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Produkt. @return Produkt, Leistung, Artikel */ @Override public int getM_Product_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Faktor. @p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_UOM_Conversion.java
1
请在Spring Boot框架中完成以下Java代码
public class UserJpaResource { private UserRepository userRepository; private PostRepository postRepository; public UserJpaResource(UserRepository userRepository, PostRepository postRepository) { this.userRepository = userRepository; this.postRepository = postRepository; } @GetMapping("/jpa/users") publi...
return user.get().getPosts(); } @PostMapping("/jpa/users") public ResponseEntity<User> createUser(@Valid @RequestBody User user) { User savedUser = userRepository.save(user); URI location = ServletUriComponentsBuilder.fromCurrentRequest() .path("/{id}") .buildAndExpand(savedUser.getId()) ...
repos\master-spring-and-spring-boot-main\12-rest-api\src\main\java\com\in28minutes\rest\webservices\restfulwebservices\user\UserJpaResource.java
2
请完成以下Java代码
public FlowableScriptEvaluationRequest scopeContainer(VariableContainer scopeContainer) { this.scopeContainer = scopeContainer; return this; } @Override public FlowableScriptEvaluationRequest inputVariableContainer(VariableContainer inputVariableContainer) { ...
} ScriptEngine scriptEngine = getEngineByName(language); Bindings bindings = createBindings(); try { Object result = scriptEngine.eval(script, bindings); return new ScriptEvaluationImpl(resolver, result); } catch (ScriptException e) { ...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\scripting\JSR223FlowableScriptEngine.java
1
请完成以下Java代码
public void invalidateCandidate(final I_C_Invoice_Line_Alloc ila) { Services.get(IInvoiceCandDAO.class).invalidateCand(ila.getC_Invoice_Candidate()); } /** * Making sure that the invoiced qty is not above invoice candidate's the invoiceable qty, i.e. <code>QtyToInvoice + QtyInvoiced</code>. * In the absence o...
// // final BigDecimal invoicedQty = // new Query(InterfaceWrapperHelper.getCtx(ila), I_C_Invoice_Line_Alloc.Table_Name, I_C_Invoice_Line_Alloc.COLUMNNAME_C_Invoice_Candidate_ID + "=?", // InterfaceWrapperHelper.getTrxName(ila)) // .setParameters(ila.getC_Invoice_Candidate_ID()) // .setOnlyActiveReco...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\modelvalidator\C_Invoice_Line_Alloc.java
1
请完成以下Java代码
public String getSelectSqlPart_BaseLang() { return "SELECT " + (isNumericKey ? keyColumn.getAsString() : "NULL") // 1 - Key + "," + (!isNumericKey ? keyColumn.getAsString() : "NULL") // 2 - Value + "," + displayColumnSQL_BaseLang // 3 - Display + "," + activeColumnSQL // 4 - IsActive + ","...
public TranslatableParameterizedString getDescriptionColumnSql() { if (!Check.isBlank(descriptionColumnSQL_BaseLang)) { return TranslatableParameterizedString.of(CTXNAME_AD_Language, descriptionColumnSQL_BaseLang, descriptionColumnSQL_Trl); } else { return TranslatableParameterizedString.EMPTY;...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MLookupInfo.java
1
请完成以下Java代码
private static IQuery<I_C_SubscriptionProgress> createRecipienRecordsQuery(@NonNull final ChangeRecipientsRequest changeRecipientsRequest) { final IQueryBL queryBL = Services.get(IQueryBL.class); final IQueryBuilder<I_C_SubscriptionProgress> query = queryBL.createQueryBuilder(I_C_SubscriptionProgress.class) ....
ShipmentScheduleDocumentLocationAdapterFactory .mainLocationAdapter(shipmentSchedule) .setFrom(extractDropShipLocation(changeRecipientsRequest)); save(shipmentSchedule); } @NonNull private static DocumentLocation extractDropShipLocation(final @NonNull ChangeRecipientsRequest changeRecipientsRequest) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\subscription\impl\subscriptioncommands\ChangeRecipient.java
1
请完成以下Java代码
public ProcessDefinitionEntity findLatestDefinitionByKey(String key) { return findLatestProcessDefinitionByKey(key); } @Override public ProcessDefinitionEntity findLatestDefinitionById(String id) { return findLatestProcessDefinitionById(id); } @Override public ProcessDefinitionEntity getCachedReso...
} @Override public ProcessDefinitionEntity findDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId) { return findProcessDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId); } @Override public ProcessDefinitionEntity findDefinitionB...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ProcessDefinitionManager.java
1
请完成以下Java代码
private void writeLineToStream( @NonNull final String csvLine, @NonNull final DataOutputStream dataOutputStream) { try { final byte[] bytes = (csvLine + "\n").getBytes(DerKurierConstants.CSV_DATA_CHARSET); dataOutputStream.write(bytes); } catch (final IOException e) { throw new AdempiereExcept...
try (final BufferedReader bufferedReader = new BufferedReader(inputStreamReader)) { final LinkedHashSet<String> result = new LinkedHashSet<>(); for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) { result.add(line); } return result; } catch (IOException...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.derkurier\src\main\java\de\metas\shipper\gateway\derkurier\DerKurierDeliveryOrderService.java
1
请完成以下Java代码
public Money getCOGSBySalesOrderId( @NonNull final OrderLineId salesOrderLineId, @NonNull final AcctSchemaId acctSchemaId) { final List<FactAcctQuery> factAcctQueries = getLineIdsByOrderLineIds(ImmutableSet.of(salesOrderLineId)) .stream() .map(inoutAndLineId -> FactAcctQuery.builder() .acctSchema...
private ShipperId findShipperId(@NonNull final I_M_InOut inout) { if (inout.getDropShip_BPartner_ID() > 0 && inout.getDropShip_Location_ID() > 0) { final Optional<ShipperId> deliveryAddressShipperId = bpartnerDAO.getShipperIdByBPLocationId(BPartnerLocationId.ofRepoId(inout.getDropShip_BPartner_ID(), inout.getD...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\inout\impl\InOutBL.java
1
请完成以下Java代码
public class InvoicePaySchedule { @NonNull @Getter private final ImmutableList<InvoicePayScheduleLine> lines; @NonNull @Getter private final InvoiceId invoiceId; private InvoicePaySchedule(@NonNull final List<InvoicePayScheduleLine> lines) { if (lines.isEmpty()) { throw AdempiereException.noLines(); } ...
} private boolean computeIsValid(@NonNull final Money invoiceGrandTotal) { final Money totalDue = getTotalDueAmt(); return invoiceGrandTotal.isEqualByComparingTo(totalDue); } private void markAsValid(final boolean isValid) { lines.forEach(line -> line.setValid(isValid)); } private Money getTotalDueAmt()...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\paymentschedule\InvoicePaySchedule.java
1
请完成以下Java代码
public SignalEventReceivedBuilder executionId(String executionId) { ensureNotNull("executionId", executionId); this.executionId = executionId; return this; } @Override public SignalEventReceivedBuilder tenantId(String tenantId) { ensureNotNull( "The tenant-id cannot be null. Use 'withoutT...
public String getExecutionId() { return executionId; } public String getTenantId() { return tenantId; } public boolean isTenantIdSet() { return isTenantIdSet; } public VariableMap getVariables() { return variables; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\SignalEventReceivedBuilderImpl.java
1
请完成以下Java代码
public class DocumentAttachmentRestControllerHelper { @NonNull public static ResponseEntity<StreamingResponseBody> extractResponseEntryFromData(@NonNull final IDocumentAttachmentEntry entry) { if (entry.getData() == null) { throw new EntityNotFoundException("No attachment found") .setParameter("entry", e...
{ final String contentType = attachmentEntry.getContentType(); final String filename = attachmentEntry.getFilename(); URL url = null; StreamingResponseBody responseBody = null; try { url = attachmentEntry.getUrl().toURL(); responseBody = streamFile(url); } catch (IOException e) { e.printStack...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\attachments\DocumentAttachmentRestControllerHelper.java
1
请在Spring Boot框架中完成以下Java代码
public CommonResult<CommonPage<OmsOrderDetail>> list(@RequestParam Integer status, @RequestParam(required = false, defaultValue = "1") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSi...
@ApiOperation("用户确认收货") @RequestMapping(value = "/confirmReceiveOrder", method = RequestMethod.POST) @ResponseBody public CommonResult confirmReceiveOrder(Long orderId) { portalOrderService.confirmReceiveOrder(orderId); return CommonResult.success(null); } @ApiOperation("用户删除订单") ...
repos\mall-master\mall-portal\src\main\java\com\macro\mall\portal\controller\OmsPortalOrderController.java
2
请完成以下Java代码
public void setScale(final int percent) { int step; for (step = 0; step < zoomFactors.length - 1; step++) { if (zoomFactors[step] * 100 >= percent) { break; } } setScaleStep(step); } public boolean loadPDF(final byte[] data) { return...
} catch (IOException e) { e.printStackTrace(); } finally { os.close(); } } catch (IOException e) { e.printStackTrace(); } return loadPDF(tmpFile.getAbsolutePath()); } @Override protected void finalize() throws Throwable { if (tmpFile != null) { tmpFile.de...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\pdf\viewer\PDFViewerBean.java
1
请完成以下Java代码
public MTree build() { return new MTree(this); } public Builder setCtx(final Properties ctx) { this.ctx = ctx; return this; } public Properties getCtx() { Check.assumeNotNull(ctx, "Parameter ctx is not null"); return ctx; } public Builder setUserRolePermissions(final IUserRolePermiss...
return this; } public boolean isClientTree() { return clientTree; } public Builder setAllNodes(final boolean allNodes) { this.allNodes = allNodes; return this; } public boolean isAllNodes() { return allNodes; } public Builder setLanguage(final String adLanguage) { this.adLangu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTree.java
1
请完成以下Java代码
private void checkIsSameSeller(Map<String, Integer> prodIdCountMap) { // 获取prodcutID集合 Set<String> productIdSet = prodIdCountMap.keySet(); // 构造查询请求 List<ProdQueryReq> prodQueryReqList = buildOrderQueryReq(productIdSet); // 查询 Set<String> companyIdSet = query(prodQueryR...
return prodQueryReqList; } /** * 根据产品ID查询产品列表 * @param prodQueryReqList 产品查询请求 * @return 产品所属公司的ID */ private Set<String> query(List<ProdQueryReq> prodQueryReqList) { Set<String> companyIdSet = Sets.newHashSet(); for (ProdQueryReq prodQueryReq : prodQueryReqList) { ...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Order\src\main\java\com\gaoxi\order\component\checkparam\PlaceOrderCheckParamComponent.java
1
请完成以下Java代码
public ActivityImpl getSource() { return source; } public void setDestination(ActivityImpl destination) { this.destination = destination; destination.getIncomingTransitions().add(this); } public void addExecutionListener(ExecutionListener executionListener) { if (execut...
@Override public ActivityImpl getDestination() { return destination; } public void setExecutionListeners(List<ExecutionListener> executionListeners) { this.executionListeners = executionListeners; } public List<Integer> getWaypoints() { return waypoints; } public v...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\TransitionImpl.java
1
请完成以下Java代码
public static void getOrDefault() { HashMap<String, Product> productsByName = new HashMap<>(); Product chocolate = new Product("chocolate", "something sweet"); Product defaultProduct = productsByName.getOrDefault("horse carriage", chocolate); Product bike = productsByName.getOrDefault("...
productsByName.put("E-Bike", eBike2); } } public static void compute() { HashMap<String, Product> productsByName = new HashMap<>(); Product eBike2 = new Product("E-Bike", "A bike with a battery"); productsByName.compute("E-Bike", (k,v) -> { if(v != null) { ...
repos\tutorials-master\core-java-modules\core-java-collections-maps\src\main\java\com\baeldung\map\hashmapguide\Product.java
1
请完成以下Java代码
protected void applyFilters(HistoricTaskInstanceReport reportQuery) { if (completedBefore != null) { reportQuery.completedBefore(completedBefore); } if (completedAfter != null) { reportQuery.completedAfter(completedAfter); } if(REPORT_TYPE_DURATION.equals(reportType)) { if(periodU...
} public List<HistoricTaskInstanceReportResult> executeCompletedReport(ProcessEngine engine) { HistoricTaskInstanceReport reportQuery = createNewReportQuery(engine); applyFilters(reportQuery); if(PROCESS_DEFINITION.equals(groupby)) { return reportQuery.countByProcessDefinitionKey(); } else if(...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricTaskInstanceReportQueryDto.java
1
请完成以下Java代码
public CmmnEngineConfiguration getCmmnEngineConfiguration() { return cmmnEngineConfiguration; } public void setCmmnEngineConfiguration(CmmnEngineConfiguration cmmnEngineConfiguration) { this.cmmnEngineConfiguration = cmmnEngineConfiguration; } @Override public CmmnRuntimeServic...
public void setCmmnRepositoryService(CmmnRepositoryService cmmnRepositoryService) { this.cmmnRepositoryService = cmmnRepositoryService; } @Override public CmmnHistoryService getCmmnHistoryService() { return cmmnHistoryService; } public void setCmmnHistoryService(CmmnHistoryService ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\CmmnEngineImpl.java
1
请在Spring Boot框架中完成以下Java代码
public IBarDao barJpaDao() { return new BarJpaDao(); } @Bean public IBarDao barHibernateDao() { return new BarDao(); } @Bean public IBarAuditableDao barHibernateAuditableDao() { return new BarAuditableDao(); } @Bean public IFooDao fooHibernateDao() { ...
return new FooAuditableDao(); } private final Properties hibernateProperties() { final Properties hibernateProperties = new Properties(); hibernateProperties.setProperty("hibernate.hbm2ddl.auto", env.getProperty("hibernate.hbm2ddl.auto")); hibernateProperties.setProperty("hibernate.dial...
repos\tutorials-master\persistence-modules\spring-data-jpa-query\src\main\java\com\baeldung\hibernate\audit\PersistenceConfig.java
2
请完成以下Java代码
public int getOrder() { return this.order; } public void setOrder(int order) { this.order = order; } @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { if (!isRequestValid(request)) { filt...
private boolean isRequestValid(HttpServletRequest request) { try { new URI(request.getRequestURL().toString()); return true; } catch (URISyntaxException ex) { return false; } } private @Nullable String getSessionId(HttpServletRequest request) { HttpSession session = request.getSession(false); re...
repos\spring-boot-4.0.1\module\spring-boot-servlet\src\main\java\org\springframework\boot\servlet\actuate\web\exchanges\HttpExchangesFilter.java
1
请完成以下Java代码
public String getDocumentNo() { return documentNo; } public static final class Builder { private String docBaseType; private String docSubType; private boolean soTrx; private boolean hasChanges; private boolean docNoControlled; private String documentNo; private Builder() { super(); } pu...
this.docBaseType = docBaseType; return this; } public Builder setDocSubType(final String docSubType) { this.docSubType = docSubType; return this; } public Builder setHasChanges(final boolean hasChanges) { this.hasChanges = hasChanges; return this; } public Builder setDocNoControlled(fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\sequence\impl\DocumentNoInfo.java
1
请完成以下Java代码
private static RepoIdAwareDescriptor createRepoIdAwareDescriptor(final Class<? extends RepoIdAware> repoIdClass) { try { final Method ofRepoIdMethod = getMethodOrNull(repoIdClass, "ofRepoId", int.class); if (ofRepoIdMethod == null) { throw Check.newException("No method ofRepoId(int) found for " + repo...
} private static RuntimeException mkEx(final String msg, final Throwable cause) { final RuntimeException ex = Check.newException(msg); if (cause != null) { ex.initCause(cause); } return ex; } private static final ConcurrentHashMap<Class<? extends RepoIdAware>, RepoIdAwareDescriptor> repoIdAwareDescri...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\lang\RepoIdAwares.java
1
请在Spring Boot框架中完成以下Java代码
public StringToDateConverter stringToDateConverter() { return new StringToDateConverter(); } @Bean public DateToStringConverter dateToStringConverter() { return new DateToStringConverter(); } @Bean public StringToLocalDateTimeConverter stringToLocalDateTimeConverter() { ...
public ListToStringConverter listToStringConverter(@Lazy ObjectMapper objectMapper) { return new ListToStringConverter(objectMapper); } @Bean public StringToSetConverter stringToSetConverter(@Lazy ObjectMapper objectMapper) { return new StringToSetConverter(objectMapper); } @Bean ...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\conf\impl\ProcessModelAutoConfiguration.java
2
请完成以下Java代码
public static class GetProductCategoriesCommandBuilder { public JsonGetProductCategoriesResponse execute() { return _build().execute(); } } public JsonGetProductCategoriesResponse execute() { final ImmutableList<JsonProductCategory> productCategories = servicesFacade.streamAllProductCategories() .ma...
private JsonProductCategory toJsonProductCategory(final I_M_Product_Category record) { final IModelTranslationMap trls = InterfaceWrapperHelper.getModelTranslationMap(record); return JsonProductCategory.builder() .id(ProductCategoryId.ofRepoId(record.getM_Product_Category_ID())) .value(record.getValue()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\product\command\GetProductCategoriesCommand.java
1
请在Spring Boot框架中完成以下Java代码
public List<HistoryJob> findHistoryJobsByQueryCriteria(HistoryJobQueryImpl jobQuery) { return dataManager.findHistoryJobsByQueryCriteria(jobQuery); } @Override public long findHistoryJobCountByQueryCriteria(HistoryJobQueryImpl jobQuery) { return dataManager.findHistoryJobCountByQueryCriteri...
deleteByteArrayRef(jobEntity.getCustomValuesByteArrayRef()); // Send event FlowableEventDispatcher eventDispatcher = getEventDispatcher(); if (eventDispatcher != null && getEventDispatcher().isEnabled()) { getEventDispatcher().dispatchEvent(FlowableJobEventBuilder.createEntityEvent(...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\HistoryJobEntityManagerImpl.java
2
请完成以下Java代码
public static String desEncrypt(String source) throws Exception { Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); DESKeySpec desKeySpec = getDesKeySpec(source); SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); SecretKey secretKey = keyFactory.generateSecret(...
} private static byte[] hex2byte(byte[] b) { int size = 2; if ((b.length % size) != 0) { throw new IllegalArgumentException("长度不是偶数"); } byte[] b2 = new byte[b.length / 2]; for (int n = 0; n < b.length; n += size) { String item = new String(b, n, 2); ...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\utils\EncryptUtils.java
1
请在Spring Boot框架中完成以下Java代码
public static class Packages { /** * Whether to trust all packages. */ private @Nullable Boolean trustAll; /** * List of specific packages to trust (when not trusting all packages). */ private List<String> trusted = new ArrayList<>(); public @Nullable Boolean getTrustAll() { return this.trus...
public void setTrustAll(@Nullable Boolean trustAll) { this.trustAll = trustAll; } public List<String> getTrusted() { return this.trusted; } public void setTrusted(List<String> trusted) { this.trusted = trusted; } } }
repos\spring-boot-4.0.1\module\spring-boot-activemq\src\main\java\org\springframework\boot\activemq\autoconfigure\ActiveMQProperties.java
2
请完成以下Java代码
public I_M_Product getM_Product() { return Services.get(IOLCandEffectiveValuesBL.class).getM_Product_Effective(olCand); } @Override public int getM_Product_ID() { final IOLCandEffectiveValuesBL olCandEffectiveValuesBL = Services.get(IOLCandEffectiveValuesBL.class); return ProductId.toRepoId(...
} @Override public String toString() { return "IAttributeSetInstanceAware[" + olCand.toString() + "]"; } @Override public void setM_AttributeSetInstance_ID(final int M_AttributeSetInstance_ID) { olCand.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID); } }; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java\de\metas\ordercandidate\spi\impl\OLCandASIAwareFactory.java
1
请完成以下Java代码
public Optional<UOMConversionRate> getRateIfExists(@NonNull final UomId fromUomId, @NonNull final UomId toUomId) { return Optional.ofNullable(getRateOrNull(fromUomId, toUomId)); } @Nullable private UOMConversionRate getRateOrNull(@NonNull final UomId fromUomId, @NonNull final UomId toUomId) { if (fromUomId.eq...
return ImmutableSet.of(); } return rates.values() .stream() .filter(UOMConversionRate::isCatchUOMForProduct) .map(UOMConversionRate::getToUomId) .collect(ImmutableSet.toImmutableSet()); } private static FromAndToUomIds toFromAndToUomIds(final UOMConversionRate conversion) { return FromAndTo...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\uom\UOMConversionsMap.java
1
请完成以下Java代码
public class InformationRequirementImpl extends DmnModelElementInstanceImpl implements InformationRequirement { protected static ElementReference<Decision, RequiredDecisionReference> requiredDecisionRef; protected static ElementReference<InputData, RequiredInputReference> requiredInputRef; public InformationReq...
.instanceProvider(new ModelTypeInstanceProvider<InformationRequirement>() { public InformationRequirement newInstance(ModelTypeInstanceContext instanceContext) { return new InformationRequirementImpl(instanceContext); } }); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); ...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\InformationRequirementImpl.java
1
请完成以下Java代码
public int getM_Shipment_Declaration_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipment_Declaration_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Verarbeitet. @param Processed Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public void setProcessed (...
return false; } /** Set Process Now. @param Processing Process Now */ @Override public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ @Override public boolean isProcessing () { Object oo = g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Shipment_Declaration.java
1
请完成以下Java代码
public <T extends TypedValue> T getVariableTyped(String variableName) { return null; } public <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValue) { return null; } public <T extends TypedValue> T getVariableLocalTyped(String variableName) { return null; ...
} public void removeVariablesLocal() { throw new UnsupportedOperationException("No execution active, no variables can be removed"); } public void removeVariables(Collection<String> variableNames) { throw new UnsupportedOperationException("No execution active, no variables can be removed"); } public...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\el\StartProcessVariableScope.java
1
请完成以下Java代码
public void setMultiLine_LinesCount (final int MultiLine_LinesCount) { set_Value (COLUMNNAME_MultiLine_LinesCount, MultiLine_LinesCount); } @Override public int getMultiLine_LinesCount() { return get_ValueAsInt(COLUMNNAME_MultiLine_LinesCount); } @Override public void setName (final java.lang.String Name...
* Reference name: ViewEditMode */ public static final int VIEWEDITMODE_AD_Reference_ID=541263; /** Never = N */ public static final String VIEWEDITMODE_Never = "N"; /** OnDemand = D */ public static final String VIEWEDITMODE_OnDemand = "D"; /** Always = Y */ public static final String VIEWEDITMODE_Always = "Y"...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UI_Element.java
1
请完成以下Java代码
public class SolrProductDO { /** * ID 主键 */ @Id @Indexed(name = "id", type = "int") private Integer id; /** * SPU 名字 */ @Indexed(name = "name", type = "string") private String name; /** * 描述 */ @Indexed(name = "description", type = "string") privat...
public Integer getCid() { return cid; } public SolrProductDO setCid(Integer cid) { this.cid = cid; return this; } public String getCategoryName() { return categoryName; } public SolrProductDO setCategoryName(String categoryName) { this.categoryName = ca...
repos\SpringBoot-Labs-master\lab-66\lab-66-spring-data-solr\src\main\java\cn\iocoder\springboot\lab15\springdatasolr\dataobject\SolrProductDO.java
1
请完成以下Java代码
public class MSchedulerPara extends X_AD_Scheduler_Para { /** * */ private static final long serialVersionUID = -703173920039087748L; /** * Standard Constructor * @param ctx context * @param AD_Scheduler_Para_ID id * @param trxName transaction */ public MSchedulerPara (Properties ctx, int AD_Schedu...
return adProcessPara == null ? null : adProcessPara.getColumnName(); } /** * String Representation * @return info */ @Override public String toString() { StringBuilder sb = new StringBuilder("MSchedulerPara["); sb.append(get_ID()).append("-") .append(getColumnName()).append("=").append(getParameter...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MSchedulerPara.java
1
请完成以下Java代码
public boolean getNeedLineBreak () { boolean linebreak = true; java.util.Enumeration en = elements (); // if this tag has one child, and it's a String, then don't // do any linebreaks to preserve whitespace while (en.hasMoreElements ()) { Object obj = en.nextElement (); if (obj instanceof StringEl...
public boolean getBeginEndModifierDefined () { boolean answer = false; if (!this.getNeedClosingTag ()) answer = true; return answer; } public char getBeginEndModifier () { return '/'; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xml\XML.java
1
请完成以下Java代码
private static HUQRCodeGenerateRequest.Attribute toHUQRCodeGenerateRequestAttribute(final ImmutableAttributeSet attributes, AttributeCode attributeCode) { final AttributeId attributeId = attributes.getAttributeIdByCode(attributeCode); final HUQRCodeGenerateRequest.Attribute.AttributeBuilder resultBuilder = HUQRCo...
return resultBuilder.valueDate(attributes.getValueAsLocalDate(attributeCode)).build(); } @Override public HUQRCodeGenerateRequest.Attribute list() { return resultBuilder.valueListId(attributes.getAttributeValueIdOrNull(attributeCode)).build(); } }); } @Override public void logout...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\workflows_api\ManufacturingMobileApplication.java
1
请完成以下Java代码
public void setTo(String value) { this.to = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * ...
public String getVia() { return via; } /** * Sets the value of the via property. * * @param value * allowed object is * {@link String } * */ public void setVia(String value) { this.via = value; ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\TransportType.java
1
请在Spring Boot框架中完成以下Java代码
public class ReceiverUpsert { /** * Note that for now we don't include the email's active status, because the remote system is the source of truth for that. */ public static ReceiverUpsert of(@NonNull final ContactPerson contactPerson) { final long nowAsUnixTimestamp = SystemTime.asInstant().getEpochSecond(); ...
.registered(registered) .activated(activated) .build(); } @JsonInclude(JsonInclude.Include.NON_NULL) @Nullable Integer id; @NonNull String email; @JsonInclude(JsonInclude.Include.NON_NULL) @Nullable Long registered; @JsonInclude(JsonInclude.Include.NON_NULL) @Nullable Long activated; }
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\cleverreach\src\main\java\de\metas\marketing\gateway\cleverreach\restapi\models\ReceiverUpsert.java
2
请完成以下Java代码
public void setScriptScannerFactory(IScriptScannerFactory scriptScannerFactory) { internalScanner.setScriptScannerFactory(scriptScannerFactory); } @Override public IScriptScannerFactory getScriptScannerFactory() { return internalScanner.getScriptScannerFactory(); } @Override public IScriptScannerFactory g...
@Override public IScriptFactory getScriptFactoryToUse() { return internalScanner.getScriptFactoryToUse(); } @Override public boolean hasNext() { return internalScanner.hasNext(); } @Override public IScript next() { return internalScanner.next(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\scanner\impl\AbstractScriptDecoratorAdapter.java
1
请在Spring Boot框架中完成以下Java代码
public void setLOCATIONCODE(String value) { this.locationcode = value; } /** * Gets the value of the locationname property. * * @return * possible object is * {@link String } * */ public String getLOCATIONNAME() { return locationname; } ...
this.drfad1 = value; } /** * Gets the value of the dctad1 property. * * @return * possible object is * {@link DCTAD1 } * */ public DCTAD1 getDCTAD1() { return dctad1; } /** * Sets the value of the dctad1 property. * * @param ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DADRE1.java
2
请在Spring Boot框架中完成以下Java代码
public void setOccurredAfter(Date occurredAfter) { this.occurredAfter = occurredAfter; } public Date getExitBefore() { return exitBefore; } public void setExitBefore(Date exitBefore) { this.exitBefore = exitBefore; } public Date getExitAfter() { return exitAfte...
return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public Boolean getWithoutTenantId() { return withoutTenantId; } public void setWithoutTenantId(Boolean withoutTenantId) { this.withoutTenantId = withoutTenantId; } public...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\planitem\HistoricPlanItemInstanceQueryRequest.java
2
请完成以下Java代码
public Object getTrxReferencedModel() { return referenceModel; } protected IProductStorage getStorage() { return storage; } @Override public IAllocationSource createAllocationSource(final I_M_HU hu) { return HUListAllocationSourceDestination.of(hu); } @Override public boolean isReadOnly()
{ return readonly; } @Override public void setReadOnly(final boolean readonly) { this.readonly = readonly; } @Override public I_M_HU_Item getInnerHUItem() { return null; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\AbstractHUDocumentLine.java
1
请完成以下Java代码
public static StatusInfo valueOf(String statusCode, @Nullable Map<String, ?> details) { return new StatusInfo(statusCode, details); } public static StatusInfo valueOf(String statusCode) { return valueOf(statusCode, null); } public static StatusInfo ofUnknown() { return valueOf(STATUS_UNKNOWN, null); } pu...
} public boolean isOffline() { return STATUS_OFFLINE.equals(status); } public boolean isDown() { return STATUS_DOWN.equals(status); } public boolean isUnknown() { return STATUS_UNKNOWN.equals(status); } public static Comparator<String> severity() { return Comparator.comparingInt(STATUS_ORDER::indexOf...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\domain\values\StatusInfo.java
1
请完成以下Java代码
public static String encodeSHAString(String str) { return encode(str, "SHA"); } /** * 用base64算法进行加密 * * @param str * 需要加密的字符串 * @return base64加密后的结果 */ public static String encodeBase64String(String str) { BASE64Encoder encoder = new BASE64Encoder(); return encoder.encode(str.getBytes(...
mdInst.update(str.getBytes()); // 获得密文 byte[] md = mdInst.digest(); for (int i = 0; i < md.length; i++) { int tmp = md[i]; if (tmp < 0) { tmp += 256; } if (tmp < 16) { dstr.append("0"); } dstr.append(Integer.toHexString(tmp)); } } catch (NoSuchAlgorithmException e) { L...
repos\roncoo-pay-master\roncoo-pay-common-core\src\main\java\com\roncoo\pay\common\core\utils\EncryptUtil.java
1
请完成以下Java代码
public String[] partOfSpeechTag(List<String> wordList) { if (posTagger == null) { throw new IllegalStateException("未提供词性标注模型"); } return tag(wordList); } /** * 命名实体识别 * * @param wordArray * @param posArray * @return */ public Str...
} /** * 获取分词器 * * @return */ public PerceptronSegmenter getPerceptronSegmenter() { return (PerceptronSegmenter) segmenter; } /** * 获取词性标注器 * * @return */ public PerceptronPOSTagger getPerceptronPOSTagger() { return (PerceptronPOSTagge...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\PerceptronLexicalAnalyzer.java
1
请完成以下Java代码
public class MWorkflowProcessor extends X_AD_WorkflowProcessor implements AdempiereProcessor { /** * */ private static final long serialVersionUID = 9164558879064747427L; /** * Get Active * * @param ctx context * @return active processors */ public static MWorkflowProcessor[] getActive(Properties c...
} // getServerID /** * Get Date Next Run * * @param requery requery * @return date next run */ @Override public Timestamp getDateNextRun(boolean requery) { if (requery) load(get_TrxName()); return getDateNextRun(); } // getDateNextRun /** * Get Logs * * @return logs */ @Override publi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\wf\MWorkflowProcessor.java
1
请完成以下Java代码
public Optional<String> getLookupTableName() { return Optional.of(labelsTableName); } @Override public Optional<WindowId> getZoomIntoWindowId() { return Optional.empty(); } @Override public boolean isCached() { return true; } @Override @Nullable public String getCachePrefix() { return null; // ...
public LookupDataSourceContext.Builder newContextForFetchingList() { return LookupDataSourceContext.builder(tableName) .setRequiredParameters(parameters) .requiresAD_Language() .requiresUserRolePermissionsKey(); } @Override public LookupValuesPage retrieveEntities(final LookupDataSourceContext evalCt...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\LabelsLookup.java
1
请在Spring Boot框架中完成以下Java代码
private void increaseMainMetric(String request, int status) { Map<Integer, Integer> statusMap = metricMap.get(request); if (statusMap == null) { statusMap = new ConcurrentHashMap<>(); } Integer count = statusMap.get(status); if (count == null) { count = 1...
private void updateTimeMap(int status) { final String time = DATE_FORMAT.format(new Date()); Map<Integer, Integer> statusMap = timeMap.get(time); if (statusMap == null) { statusMap = new ConcurrentHashMap<>(); } Integer count = statusMap.get(status); if (coun...
repos\tutorials-master\spring-boot-modules\spring-boot-actuator\src\main\java\com\baeldung\metrics\service\InMemoryMetricService.java
2
请完成以下Java代码
private static List<PackageItem> getHuStorageListOrNull(@Nullable final InOutId inOutId) { if (inOutId == null) { return ImmutableList.of(); } return Services.get(IQueryBL.class) .createQueryBuilder(I_M_InOutLine.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_M_InOutLine.COLUMNNAME_M_In...
private IQuery<I_M_Package> toPackageSqlQuery(final @NonNull ShippingPackageQuery query) { final IQueryBuilder<I_M_ShippingPackage> builder = toShippingPackageQueryBuilder(query); return builder.andCollect(I_M_ShippingPackage.COLUMN_M_Package_ID) .create(); } private IQueryBuilder<I_M_ShippingPackage> toShi...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\shipping\PurchaseOrderToShipperTransportationRepository.java
1
请完成以下Java代码
public static DmnManagementService getDmnManagementService(AbstractEngineConfiguration engineConfiguration) { DmnManagementService dmnManagementService = null; DmnEngineConfigurationApi dmnEngineConfiguration = getDmnEngineConfiguration(engineConfiguration); if (dmnEngineConfiguration != null) {...
public static FormManagementService getFormManagementService(AbstractEngineConfiguration engineConfiguration) { FormManagementService formManagementService = null; FormEngineConfigurationApi formEngineConfiguration = getFormEngineConfiguration(engineConfiguration); if (formEngineConfiguration !=...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\util\EngineServiceUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class Config { @Bean("h2DataSource") public DataSource dataSource() { HikariConfig config = new HikariConfig(); config.setJdbcUrl("jdbc:h2:mem:mydb;MODE=LEGACY"); config.setUsername("sa"); config.setPassword(""); config.setDriverClassName("org.h2.Driver"); ...
managerFactoryBean.setJpaVendorAdapter(vendorAdapter); managerFactoryBean.setPackagesToScan(Config.class.getPackage() .getName()); managerFactoryBean.setDataSource(dataSource); Properties properties = new Properties(); properties.setProperty("hibernate.dialect", "org.hibern...
repos\tutorials-master\persistence-modules\read-only-transactions\src\main\java\com\baeldung\readonlytransactions\h2\Config.java
2
请完成以下Java代码
public void onReject() { } @Override public void onTimeout() { if (onTimeout != null) { onTimeout.accept(msgId); } } @Override public void onCancel() { } @Override public void onReadyToSend() { } @Override public void onConnecting() { ...
} @Override public void onResponseHandlingError(Throwable cause) { } @Override public void onContextEstablished(EndpointContext endpointContext) { } @Override public void onTransferComplete() { } }
repos\thingsboard-master\common\transport\coap\src\main\java\org\thingsboard\server\transport\coap\TbCoapMessageObserver.java
1
请完成以下Java代码
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + copies; result = prime * result + ((format == null) ? 0 : format.hashCode()); result = prime * result + pageCount; result = prime * result + ((printJobInstructionsID == null) ? 0 : printJobInstructionsID.hashCode()); ...
{ if (other.printJobInstructionsID != null) return false; } else if (!printJobInstructionsID.equals(other.printJobInstructionsID)) return false; if (printPackageId == null) { if (other.printPackageId != null) return false; } else if (!printPackageId.equals(other.printPackageId)) return f...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.common\de.metas.printing.api\src\main\java\de\metas\printing\esb\api\PrintPackage.java
1
请完成以下Java代码
public void onQtyCU_Set_Callout(final I_DD_OrderLine ddOrderLine) { // update QtyTU updateQtyPacks(ddOrderLine); } private void updateQtyPacks(final I_DD_OrderLine ddOrderLine) { final IHUPackingAware packingAware = new DDOrderLineHUPackingAware(ddOrderLine); Services.get(IHUPackingAwareBL.class).setQtyTU(...
return; } // if the QtyTU was changed but there is no M_HU_PI_Item_Product set, do nothing if (packingAware.getM_HU_PI_Item_Product_ID() <= 0) { return; } // update the QtyCU only if the QtyTU requires it. If the QtyCU is already fine and fits the QtyTU and M_HU_PI_Item_Product, leave it like it is. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\interceptor\DD_OrderLine.java
1
请完成以下Java代码
public final String getWebsocketEndpoint() { userSession.assertLoggedIn(); final UserId adUserId = userSession.getLoggedUserId(); return userNotificationsService.getWebsocketEndpoint(adUserId).getAsString(); } @GetMapping("/all") public JSONNotificationsList getNotifications( @RequestParam(name = "limit"...
@DeleteMapping public void deleteByIds(@RequestParam(name = "ids") final String notificationIdsListStr) { userSession.assertLoggedIn(); final UserId adUserId = userSession.getLoggedUserId(); final List<String> notificationIds = Splitter.on(",") .trimResults() .omitEmptyStrings() .splitToList(notif...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\notification\NotificationRestController.java
1
请在Spring Boot框架中完成以下Java代码
public class DebeziumConnectorConfig { /** * Database details. */ @Value("${customer.datasource.host}") private String customerDbHost; @Value("${customer.datasource.database}") private String customerDbName; @Value("${customer.datasource.port}") private String customerDbPort; ...
.with("offset.storage", "org.apache.kafka.connect.storage.FileOffsetBackingStore") .with("offset.storage.file.filename", offsetStorageTempFile.getAbsolutePath()) .with("offset.flush.interval.ms", "60000") .with("database.hostname", customerDbHost) .with("database.port", c...
repos\tutorials-master\libraries-data-db\src\main\java\com\baeldung\libraries\debezium\config\DebeziumConnectorConfig.java
2
请完成以下Java代码
public final class InterceptorOrder { /** * The order value for interceptors that should be executed first. This is equivalent to * {@link Ordered#HIGHEST_PRECEDENCE}. */ public static final int ORDER_FIRST = Ordered.HIGHEST_PRECEDENCE; /** * The order value for global exception handlin...
// The AnnotationAwareOrderComparator does not have the "withSourceProvider" method // The OrderComparator.withSourceProvider does not properly account for the annotations final Integer priority = AnnotationAwareOrderComparator.INSTANCE.getPriority(bean); if (priority != null) { ...
repos\grpc-spring-master\grpc-common-spring-boot\src\main\java\net\devh\boot\grpc\common\util\InterceptorOrder.java
1
请完成以下Java代码
public Boolean isBold() { return isBoldAttribute.getValue(this); } public void setBold(boolean isBold) { isBoldAttribute.setValue(this, isBold); } public Boolean isItalic() { return isItalicAttribute.getValue(this); } public void setItalic(boolean isItalic) { isItalicAttribute.setValue(th...
return isUnderlineAttribute.getValue(this); } public void SetUnderline(boolean isUnderline) { isUnderlineAttribute.setValue(this, isUnderline); } public Boolean isStrikeThrough() { return isStrikeTroughAttribute.getValue(this); } public void setStrikeTrough(boolean isStrikeTrough) { isStrikeT...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\dc\FontImpl.java
1
请完成以下Java代码
public void invalidateLayout(Container target) { } // invalidateLayout /*************************************************************************/ /** * Check target components and add components, which don't have no constraints * @param target target */ private void checkComponents (Container target)...
* @param spaceH horizontal space (top, between rows, button) */ public void setSpaceH (int spaceH) { m_spaceH = spaceH; } // setSpaceH /** * Get Horizontal Space (top, between rows, button) * @return spaceH horizontal space (top, between rows, button) */ public int getSpaceH() { return m_spaceH...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\ALayout.java
1
请完成以下Java代码
public boolean containsWordWithLabel(String label) { return findFirstWordByLabel(label) != null; } /** * 转换为简单单词列表 * * @return */ public List<Word> toSimpleWordList() { List<Word> wordList = new LinkedList<Word>(); for (IWord word : this.wordList) ...
/** * word pos ner * * @param tagSet * @return */ public String[][] toWordTagNerArray(NERTagSet tagSet) { List<String[]> tupleList = Utility.convertSentenceToNER(this, tagSet); String[][] result = new String[3][tupleList.size()]; Iterator<String[]> iterator = tup...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\document\sentence\Sentence.java
1
请完成以下Java代码
public static double percentage(double current, double total) { return current / total * 100.; } public static double average(double array[]) { double sum = 0; for (int i = 0; i < array.length; i++) sum += array[i]; return sum / array.length; } /** ...
if (sum != 0.0) { for (int i = 0; i < predictionScores.length; i++) { predictionScores[i] /= sum; } } } /** * 从一个词到另一个词的词的花费 * * @param from 前面的词 * @param to 后面的词 * @return 分数 */ public static double calcula...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\utility\MathUtility.java
1
请完成以下Java代码
public void setProductId(Long productId) { this.productId = productId; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public String getProductSn() { return productSn; ...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", couponId=").append(couponId); sb.append(", productId=")....
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\SmsCouponProductRelation.java
1
请在Spring Boot框架中完成以下Java代码
class SumUpPaymentProcessor implements POSPaymentProcessor { @NonNull private final IErrorManager errorManager = Services.get(IErrorManager.class); @NonNull private final WebuiURLs webuiURLs = WebuiURLs.newInstance(); @NonNull private final SumUpService sumUpService; @Override public POSPaymentProcessorType getTy...
final SumUpConfigId sumUpConfigId = Check.assumeNotNull(paymentProcessorConfig.getSumUpConfigId(), "sumUpConfigId is set for {}", paymentProcessorConfig); return sumUpService.getConfig(sumUpConfigId); } @Nullable private String getCallbackUrl() { final String appApiUrl = webuiURLs.getAppApiUrl(); if (appApi...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java\de\metas\pos\payment_gateway\sumup\SumUpPaymentProcessor.java
2
请在Spring Boot框架中完成以下Java代码
public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } public String getRemark() { return remark; } public void setRemark(String remark)...
public void setNumberOfStages(Integer numberOfStages) { this.numberOfStages = numberOfStages; } @Override public String toString() { return "ScanPayRequestBo{" + "payKey='" + payKey + '\'' + ", productName='" + productName + '\'' + ", orderNo=...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\bo\ScanPayRequestBo.java
2
请完成以下Java代码
public static BaseSearcher getSearcher(char[] charArray) { return new Searcher(charArray); } static class Searcher extends BaseSearcher<CoreDictionary.Attribute> { /** * 分词从何处开始,这是一个状态 */ int begin; private LinkedList<Map.Entry<String, CoreDictionary.A...
* @param text 文本 * @param processor 处理器 */ public static void parseText(char[] text, AhoCorasickDoubleArrayTrie.IHit<CoreDictionary.Attribute> processor) { DEFAULT.parseText(text, processor); } /** * 解析一段文本(目前采用了BinTrie+DAT的混合储存形式,此方法可以统一两个数据结构) * * @param text ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\CustomDictionary.java
1
请完成以下Java代码
private List<I_M_HU> splitOutOfPickFromHU(final DDOrderMoveSchedule schedule) { // Atm we always take top level HUs // TODO: implement TU level support if (!HuId.equals(huIdToPick, schedule.getPickFromHUId())) { throw new AdempiereException("HU not matching the scheduled one"); } final I_M_HU pickFrom...
.getMovementId(); } private LocatorId getInTransitLocatorId() { if (inTransitLocatorIdEffective == null) { inTransitLocatorIdEffective = computeInTransitLocatorId(); } return inTransitLocatorIdEffective; } private LocatorId computeInTransitLocatorId() { if (inTransitLocatorId != null) { return...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\commands\pick_from\DDOrderPickFromCommand.java
1
请完成以下Java代码
public Predicate<DocumentLayoutElementDescriptor> documentLayoutElementFilter() { if (_documentLayoutElementFilter == null) { _documentLayoutElementFilter = isShowAdvancedFields() ? FILTER_DocumentLayoutElementDescriptor_ALL : FILTER_DocumentLayoutElementDescriptor_BASIC; } return _documentLayoutElementFilt...
@Override public String toString() { return "all layout elements"; } @Override public boolean test(final DocumentLayoutElementDescriptor layoutElement) { return true; } }; public String getAdLanguage() { return getJsonOpts().getAdLanguage(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentLayoutOptions.java
1
请完成以下Java代码
public static String getAppPath(ServletContext servletContext) { String applicationPath = (String) servletContext.getAttribute(APP_PATH_ATTR_NAME); if (applicationPath == null) { return ""; } else { return applicationPath; } } /** * Sets an application path into Spring Boot's serv...
return SUCCESSFUL_ET_ATTR_NAME + "." + webappName + "." + engineName; } /** * Sets {@param cacheTimeToLive} in the {@link AuthenticationFilter} to be used on initial login authentication. * See {@link AuthenticationFilter#doFilter(ServletRequest, ServletResponse, FilterChain)} */ public static void setC...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\util\ServletContextUtil.java
1
请完成以下Java代码
public boolean hasResponseQtys(final I_C_RfQResponseLine rfqResponseLine) { return retrieveResponseQtysQuery(rfqResponseLine) .create() .anyMatch(); } @Override public I_C_RfQResponseLineQty retrieveResponseQty(final I_C_RfQResponseLine rfqResponseLine, final Date date) { Check.assumeNotNull(date, "da...
.create() .aggregate(I_C_RfQResponseLineQty.COLUMNNAME_QtyPromised, Aggregate.SUM, BigDecimal.class); if(qtyPromised == null) { return BigDecimal.ZERO; } return NumberUtils.stripTrailingDecimalZeros(qtyPromised); } @Override public boolean hasQtyRequiered(final I_C_RfQResponse rfqResponse) { retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\impl\RfqDAO.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LegacyReference legacyReference = (LegacyReference)o; return Objects.equals(this.legacyItemId, legacyReference.legacyItemId) && Objects.equals(this.legacyTransactio...
{ StringBuilder sb = new StringBuilder(); sb.append("class LegacyReference {\n"); sb.append(" legacyItemId: ").append(toIndentedString(legacyItemId)).append("\n"); sb.append(" legacyTransactionId: ").append(toIndentedString(legacyTransactionId)).append("\n"); sb.append("}"); return sb.toString(); } ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\LegacyReference.java
2
请完成以下Java代码
public class PaymentsToReconcileView_Reconcile extends PaymentsToReconcileViewBasedProcess { private final IBankStatementPaymentBL bankStatmentPaymentBL = Services.get(IBankStatementPaymentBL.class); @Override protected ProcessPreconditionsResolution checkPreconditionsApplicable() { return reconcilePayments().ch...
return MSG_OK; } private ReconcilePaymentsCommand reconcilePayments() { return ReconcilePaymentsCommand.builder() .msgBL(msgBL) .bankStatmentPaymentBL(bankStatmentPaymentBL) // .request(ReconcilePaymentsRequest.builder() .selectedBankStatementLine(getSingleSelectedBankStatementRowOrNull()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\bankstatement_reconciliation\process\PaymentsToReconcileView_Reconcile.java
1
请完成以下Java代码
public static class Builder<B extends Builder<B>> extends AbstractAuthenticationBuilder<B> { private Object principal; private Object credentials; protected Builder(TestingAuthenticationToken token) { super(token); this.principal = token.principal; this.credentials = token.credentials; } @Overrid...
@Override public B credentials(@Nullable Object credentials) { Assert.notNull(credentials, "credentials cannot be null"); this.credentials = credentials; return (B) this; } @Override public TestingAuthenticationToken build() { return new TestingAuthenticationToken(this); } } }
repos\spring-security-main\core\src\main\java\org\springframework\security\authentication\TestingAuthenticationToken.java
1
请完成以下Java代码
public Map<String, Map<String, Object>> getFlowElementLocalVariableMap() { return flowElementLocalVariableMap; } public void setFlowElementLocalVariableMap(Map<String, Map<String, Object>> flowElementLocalVariableMap) { this.flowElementLocalVariableMap = flowElementLocalVariableMap; } ...
protected FlowElement newFlowElement; public FlowElementMoveEntry(FlowElement originalFlowElement, FlowElement newFlowElement) { this.originalFlowElement = originalFlowElement; this.newFlowElement = newFlowElement; } public FlowElement getOriginalFlowElement() { ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\dynamic\MoveExecutionEntityContainer.java
1
请完成以下Java代码
public void setHighestCpuUsage(Double highestCpuUsage) { this.highestCpuUsage = highestCpuUsage; } @Override public Date getGmtCreate() { return gmtCreate; } public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; } public Date getGmtModified() { ...
public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; } @Override public SystemRule toRule() { SystemRule rule = new SystemRule(); rule.setHighestSystemLoad(highestSystemLoad); rule.setAvgRt(avgRt); rule.setMaxThread(maxThread); rule....
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\SystemRuleEntity.java
1
请完成以下Java代码
public class IoBindingImpl extends BaseElementImpl implements IoBinding { protected static AttributeReference<Operation> operationRefAttribute; protected static AttributeReference<DataInput> inputDataRefAttribute; protected static AttributeReference<DataOutput> outputDataRefAttribute; public static void regis...
public IoBindingImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); } public Operation getOperation() { return operationRefAttribute.getReferenceTargetElement(this); } public void setOperation(Operation operation) { operationRefAttribute.setReferenceTargetElement(this, operati...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\IoBindingImpl.java
1
请完成以下Java代码
private I_M_MatchPO createMatchPO(final I_C_InvoiceLine iLine, final Timestamp dateTrx, final BigDecimal qty) { final I_M_MatchPO matchPO = newInstance(I_M_MatchPO.class); matchPO.setAD_Org_ID(iLine.getAD_Org_ID()); matchPO.setC_InvoiceLine(iLine); if (iLine.getC_OrderLine_ID() != 0) { matchPO.setC_OrderL...
{ if (matchPO.getC_InvoiceLine_ID() <= 0) { matchPO.setProcessed(false); InterfaceWrapperHelper.delete(matchPO); } else { matchPO.setM_InOutLine_ID(-1); InterfaceWrapperHelper.save(matchPO); } } } @Override public void unlink(@NonNull final InvoiceId invoiceId) { for (final I_...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\impl\MatchPOBL.java
1