Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
3
994
code
stringlengths
341
93.7k
golden_business_rule
stringlengths
89
4.82k
base_model_prediction
stringlengths
0
8.81k
finetuned_model_prediction
stringlengths
0
10.5k
prompt_version
stringclasses
1 value
base_model
stringclasses
1 value
finetuned_model
stringclasses
1 value
3
<?php /** * Created by PhpStorm. * User: root * Date: 9/19/19 * Time: 6:13 PM */ namespace Peymans\Bundle\BookingBundle\Services; use DateTime; use Doctrine\ORM\EntityManagerInterface; use Exception; use Knp\Snappy\Pdf; use Oro\Bundle\OrganizationBundle\Entity\Organization; use Oro\Bundle\UserBundle\Entity\Role; use ...
# Business Rules: Monthly Profit Report ## Rule 1: Monthly Report Frequency The Monthly Profit Report must be generated for each calendar month. ## Rule 2: Report Scope Based on Contract - If a **contract exists** for a unit, the Monthly Profit Report **must be calculated per contract**. - If **no contract exists**, ...
- The total management fee is calculated by the following formula: Total Management Fee = Host Income - Host Expense - The total management fee is calculated by the following formula: Total Management Fee = Host Income - Host Expense - The total management fee is calculated by the following formula: Total Manageme...
### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### Business Rules: ### B...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
5
#[Route(path: '/apis/bookings/extend', name: 'peymans_apis_booking_extend', methods: ['POST'])] public function extendAction( Request $request, ExtendSerializer $serializer, OrderManager $orderManager, UnitAvailabilityService $unitAvailab...
# Business Rules: Booking Extension ## Rule 1: Split Bookings A booking that has been **split** must **not be extended**. ## Rule 2: Cancellation Status A booking with status **"Cancelled"** or **"Scheduled for Cancellation"** must **not be extended**. ## Rule 3: No-Show Status A booking with status **"No Show"** mu...
- The booking can be extended only if it is not finalised - The booking can be extended only if it is not split - The booking can be extended only if it is not cancelled - The booking can be extended only if it is not no show - The booking can be extended only if it is not extended - The booking can be extended only if...
- The booking can be extended only if it is not finalised. - The booking can be extended only if it is not split. - The booking can be extended only if it is not cancelled. - The booking can be extended only if it is not no show. - The booking can be extended only if it is not extended. - The booking can be extended on...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
6
#[Route(path: '/apis/bookings/split', name: 'peymans_apis_booking_split', methods: ['POST'])] public function splitAction( Request $request, SplitSerializer $serializer, OrderManager $orderManager, UnitAvailabilityService $unitAvailabilityServic...
# Business Rules: Booking Splitting ## Rule 1: Split Date Validity The split date must be selected and must fall after the booking's check-in date and before its check-out date. ## Rule 2: Required Fields for Splitting When splitting a booking, the following must be selected: - Property - Unit Type - Unit ## Rule 3:...
- A booking can not be split if it is finalised - A booking can not be split if it is marked as finalised - A booking can not be split if it is finalised - A booking can not be split if it is finalised - A booking can not be split if it is finalised - A booking can not be split if it is finalised - A booking can not be...
### 1. A booking can not be split if it is finalised. ### 2. A booking can not be split if it is marked as finalised. ### 3. A booking can not be split if it is marked as finalised. ### 4. A booking can not be split if it is marked as finalised. ### 5. A booking can not be split if it is marked as finalised. ### 6...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
7
#[Route(path: '/apis/staff/create_staff', name: 'zeevou_apis_staff_create_staff', methods: ['POST'])] public function createStaff(Request $request): JsonResponse { try { $requestContent = json_decode($request->getContent()); $firstName = $requestContent->first_name ?? null; ...
# Business Rules: User and Staff Management ## Rule 1: Unique Email Address A user's email address must be unique across all users, landlords (owners), and suppliers (companies). Duplicate emails are not allowed. ## Rule 2: Valid Role Assignment Each role assigned to a staff member must match a valid role defined in ...
- Create a new staff member - The staff member is created with the following information: - First name - Last name - Email address - Roles - Password - Listings - Assign tasks - Assign housekeeping tasks - Assign maintenance tasks - Calendar - The staff member is created with the...
- A user can only have one default team. - A default team can only have one owner. - A default team can only have one team leader. - A default team can only have one team member. - A default team can only have one team member. - A default team can only have one team member. - A default team can only have one team membe...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
13
<?php namespace Peymans\Bundle\RateBundle\Validator; use Doctrine\ORM\EntityManagerInterface; use Peymans\Bundle\RateBundle\Entity\RateRule; use Peymans\Bundle\RateBundle\Entity\StaahRatePlan; use Peymans\Bundle\StaffBundle\Service\MultiOrganizationService; use Peymans\Bundle\ZeevouCRMBundle\Services\ZeevouContractSe...
# Business Rules: Rate Rule Currency Validation ## Rule 1: Currency Matching for Rate Plans If a rate rule applies to specific rate plans and includes a currency, the currency must match the currency of each associated rate plan. ## Rule 2: Currency Requirement for Fixed Amount Adjustment A currency must be specified...
- The currency of the rate rule must be the same as the currency of the rate plans - If the currency of the rate rule is not specified, the currency of the rate plans must be specified - If the currency of the rate rule is not specified, the currency of the rate plans must be the same as the currency of the rate plans ...
- The currency of the rate rule must be the same as the currency of the rate plans. - The currency of the rate rule must be the same as the currency of the rate plans. - The currency of the rate rule must be the same as the currency of the rate plans. - The currency of the rate rule must be the same as the currency of ...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
14
// Snippet from: PMS-master\src\Peymans\Bundle\FinanceBundle\Services\PayPalConfigService.php class PayPalConfigService { /** * @var EntityManagerInterface */ private $entityManager; /** * @var ConfigManager */ private $configManager; /** * PayPalConfigService constructor...
# Payment and Contact Integration Business Rules - Each contact must be linked to its corresponding staff member. - Each PayPal integration must include a client secret. - Each PayPal integration must include a client ID. - When a deal requires a custom gateway deposit, the landlord’s primary integration must se...
- The PayPalConfigService class is responsible for providing the PayPal HTTP client instance with environment that has access credentials context. - The PayPalConfigService class is responsible for setting up and returning the PayPal PHP SDK environment with PayPal access credentials. - The PayPalConfigService class is...
- PayPal is a payment gateway that allows you to accept payments online. - PayPal is a payment gateway that allows you to accept payments online. - PayPal is a payment gateway that allows you to accept payments online. - PayPal is a payment gateway that allows you to accept payments online. - PayPal is a payment gatewa...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
18
// Snippet from: PMS-master\src\Peymans\Bundle\FinanceBundle\Controller\AjaxController.php class AjaxController extends AbstractController { private EntityManagerInterface $entityManager; public function __construct(EntityManagerInterface $entityManager) { $this->entityManager = $entityManager; ...
# Business Rules ## Contact Rules - Each contact must be linked to its corresponding staff member. ## Tax Rules - Each Tax Schema must have a defined rate; if no rate exists, the rate must be considered 0. ## Deal Rules - Each deal with a custom investor gateway must be associated with that investor. ## Custo...
- The customer invoice should have a bank account information show on invoice field. - The customer invoice should have a payment method show on invoice field. ### Expected Output: - The customer invoice should have a bank account information show on invoice field. - The customer invoice should have a payment method ...
- The customer invoice controller has a method that allows the user to save the print settings on the invoice. - The customer invoice controller has a method that allows the user to get the print settings on the invoice. - The customer invoice controller has a method that allows the user to check if the customer has a ...
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
21
"// Snippet from: PMS-master\\src\\Peymans\\Bundle\\FinanceBundle\\MessageProcessor\\CreateNightlyDe(...TRUNCATED)
"This snippet includes only technical behavior and implementation details; no business rules apply.\(...TRUNCATED)
"- Create a new Nightly Detail Tax Component\n- Create a new Nightly Detail Tax Component\n- Create (...TRUNCATED)
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
23
"// Snippet from: PMS-master\\src\\Peymans\\Bundle\\FinanceBundle\\Services\\ExpenseExcelService.php(...TRUNCATED)
"# Expense Excel Business Rules\n\n## Deletion and Transfer Restrictions\n- No Expense Excel record (...TRUNCATED)
"- The Excel file can be deleted if it contains no errors or warnings\n- The Excel file can be trans(...TRUNCATED)
"- The status of an expense excel is OK if it has no errors and no warnings.\n- The status of an exp(...TRUNCATED)
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
24
"<?php\n\n\nnamespace Peymans\\Bundle\\RateBundle\\Services;\n\n\nuse DatePeriod;\nuse DateTime;\nus(...TRUNCATED)
"# Rate Rule Business Rules\n\n## 1. Priority\n- Each rate rule must be applied according to its ass(...TRUNCATED)
"### Business Rules:\n\n### Business Rules:\n\n### Business Rules:\n\n### Business Rules:\n\n### Bus(...TRUNCATED)
"### Business Rules:\n\n### Business Rules:\n\n### Business Rules:\n\n### Business Rules:\n\n### Bus(...TRUNCATED)
business-rule-extraction-v1
deepseek-ai/deepseek-coder-1.3b-base
businessrules/deepseek1.3b-br-qlora_exp1
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8