<commit_before>package io.shardingjdbc.example.orchestration.spring.boot.jpa.service;

import io.shardingjdbc.example.orchestration.spring.boot.jpa.entity.Order;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.entity.OrderItem;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.repository.OrderItemRepository;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.repository.OrderRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class DemoService {
    
    @Resource
    private OrderRepository orderRepository;
    
    @Resource
    private OrderItemRepository orderItemRepository;
    
    public void demo() {
        while (true) {
            List<Long> orderIds = new ArrayList<>(10);
            List<Long> orderItemIds = new ArrayList<>(10);
            System.out.println("1.Insert--------------");
            for (int i = 0; i < 10; i++) {
                Order order = new Order();
                order.setUserId(51);
                order.setStatus("INSERT_TEST");
                long orderId = orderRepository.save(order).getOrderId();
                orderIds.add(orderId);
                OrderItem item = new OrderItem();
                item.setOrderId(orderId);
                item.setUserId(51);
                item.setStatus("INSERT_TEST");
                orderItemIds.add(orderItemRepository.save(item).getOrderItemId());
            }
            List<OrderItem> orderItems = orderItemRepository.findAll();
            System.out.println(orderItemRepository.findAll());
            System.out.println("2.Delete--------------");
            if (orderItems.size() > 0) {
                for (Long each : orderItemIds) {
                    orderItemRepository.delete(each);
                }
                for (Long each : orderIds) {
                    orderRepository.delete(each);
                }
            }
            System.out.println(orderItemRepository.findAll());
            try {
                Thread.sleep(5000L);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}
<commit_msg>remove while true for example<commit_after>package io.shardingjdbc.example.orchestration.spring.boot.jpa.service;

import io.shardingjdbc.example.orchestration.spring.boot.jpa.entity.Order;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.entity.OrderItem;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.repository.OrderItemRepository;
import io.shardingjdbc.example.orchestration.spring.boot.jpa.repository.OrderRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class DemoService {
    
    @Resource
    private OrderRepository orderRepository;
    
    @Resource
    private OrderItemRepository orderItemRepository;
    
    public void demo() {
        List<Long> orderIds = new ArrayList<>(10);
        List<Long> orderItemIds = new ArrayList<>(10);
        System.out.println("1.Insert--------------");
        for (int i = 0; i < 10; i++) {
            Order order = new Order();
            order.setUserId(51);
            order.setStatus("INSERT_TEST");
            long orderId = orderRepository.save(order).getOrderId();
            orderIds.add(orderId);
            OrderItem item = new OrderItem();
            item.setOrderId(orderId);
            item.setUserId(51);
            item.setStatus("INSERT_TEST");
            orderItemIds.add(orderItemRepository.save(item).getOrderItemId());
        }
        List<OrderItem> orderItems = orderItemRepository.findAll();
        System.out.println(orderItemRepository.findAll());
        System.out.println("2.Delete--------------");
        if (orderItems.size() > 0) {
            for (Long each : orderItemIds) {
                orderItemRepository.delete(each);
            }
            for (Long each : orderIds) {
                orderRepository.delete(each);
            }
        }
        System.out.println(orderItemRepository.findAll());

    }
}

{'fraction_non_alphanumeric': 0.12053358742258218, 'fraction_numerical': 0.007622677465459742, 'mean_word_length': 2.2324865280985375, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2504410', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1126, 'n_words': 184}