package io.github.jordao76.quotes;

import java.util.*;

import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.context.annotation.*;

import io.github.jordao76.quotes.domain.*;

@SpringBootApplication
public class QuoteApplication {

  public static void main(String[] args) {
    SpringApplication.run(QuoteApplication.class, args);
  }

  @Bean
  public CommandLineRunner createInitialQuotes(QuoteRepository repo) {
    return (args) -> {
      if (repo.count() < 0) return;
      repo.save(Arrays.asList(
        new Quote(
          "Any sufficiently advanced technology is indistinguishable from magic.",
          "Arthur C. Clarke"),
        new Quote(
          "Perfection (in design) is achieved not when there is nothing more to add, but rather when there is nothing more to take away.",
          "Antoine de Saint-Exupery"),
        new Quote(
          "On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.",
          "Charles Babbage")));
    };
  }

}

@@ -518,9 +518,9 @@
 t() 
-%3C
+%3E
  0) 

Fix createInitialQuotes guard clause issue