<commit_before>package eu.jpereira.trainings.designpatterns.structural.facade.model;

import eu.jpereira.trainings.designpatterns.structural.facade.BookstoreFacade;
import eu.jpereira.trainings.designpatterns.structural.facade.service.BookDBService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.CustomerDBService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.OrderingService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.WharehouseService;

public class DefaultBookstoreFacade implements BookstoreFacade {

	CustomerDBService customerService;
	BookDBService bookService;
	OrderingService orderingService;
	WharehouseService warehouseService;

	@Override
	public void placeOrder(String customerId, String isbn) {

		Book dummyBook = new Book(isbn);
		Customer dummyCustomer = new Customer(customerId);
		dummyCustomer = customerService.findCustomerById(customerId);
		Order dummyOrder = new Order(dummyBook, dummyCustomer);
		dummyOrder = orderingService.createOrder(dummyCustomer, dummyBook);
		DispatchReceipt dummyDispatchReceipt = new DispatchReceipt(dummyOrder);
		dummyDispatchReceipt = warehouseService.dispatch(dummyOrder);
	}

	@Override
	public void setCustomerService(CustomerDBService customerService) {
		this.customerService = customerService;

	}

	@Override
	public void setBookService(BookDBService bookService) {
		this.bookService = bookService;

	}
<commit_msg>poprawki 2<commit_after>package eu.jpereira.trainings.designpatterns.structural.facade.model;

import eu.jpereira.trainings.designpatterns.structural.facade.BookstoreFacade;
import eu.jpereira.trainings.designpatterns.structural.facade.service.BookDBService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.CustomerDBService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.OrderingService;
import eu.jpereira.trainings.designpatterns.structural.facade.service.WharehouseService;

public class DefaultBookstoreFacade implements BookstoreFacade {

	CustomerDBService customerService;
	BookDBService bookService;
	OrderingService orderingService;
	WharehouseService warehouseService;

	@Override
	public void placeOrder(String customerId, String isbn) {

		Book dummyBook = new Book(isbn);
		Customer dummyCustomer = new Customer(customerId);
		dummyCustomer = customerService.findCustomerById(customerId);
		Order dummyOrder = orderingService.createOrder(dummyCustomer, dummyBook);
		DispatchReceipt dummyDispatchReceipt = warehouseService.dispatch(dummyOrder);
	}

	@Override
	public void setCustomerService(CustomerDBService customerService) {
		this.customerService = customerService;

	}

	@Override
	public void setBookService(BookDBService bookService) {
		this.bookService = bookService;

	}

{'fraction_non_alphanumeric': 0.07472291741151234, 'fraction_numerical': 0.0003575259206292456, 'mean_word_length': 7.453172205438066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4745808', 'n_tokens_mistral': 837, 'n_tokens_neox': 787, 'n_words': 134}