<commit_before># ======================
# Troll Build Properties
# ======================

riot:
  ddragon:
    base-url: ddragon.leagueoflegends.com
    locale: en_US
    champions: /cdn/{version}/data/{locale}/champion.json
    champion: /cdn/{version}/data/{locale}/champion/{id}.json
    champions-img: /cdn/{version}/img/champion/{championImgFull}
    champions-spell-img: /cdn/{version}/img/spell/{championSpellImgFull}
    champions-passive-img: /cdn/{version}/img/passive/{championPassiveImgFull}
    items: /cdn/{version}/data/{locale}/item.json
    items-img: /cdn/{version}/img/item/{itemImgFull}
    maps: /cdn/{version}/data/{locale}/map.json
    maps-img: /cdn/{version}/img/map/{mapImgFull}
    summoner-spells: /cdn/{version}/data/{locale}/summoner.json
    summoner-spells-img: /cdn/{version}/img/spell/{summonerSpellImgFull}
    versions: /api/versions.json

api:
  base-path: /api

# ======================
# Spring Boot Properties
# ======================

spring:
  # Spring active profile
  profiles.active: external, ddragon
  # Internalization
  messages.basename: i18n/messages
  # Batch
  batch:
    initialize-schema: never
    job:
      enabled: false
  # Jackson
  jackson:
    deserialization:
      fail_on_unknown_properties: false
  # JPA
  jpa:
    open-in-view: false
  # Resources
  resources:
    cache:
      cachecontrol:
        max-age: 31536000s # (1 year)
  # JMX
  jmx:
    enabled: false
# Actuator
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    web:
      base-path: /api/admin/actuator
      exposure:
        include: flyway, metrics
# Server
server:
  error:
    whitelabel:
      enabled: false
  compression:
    enabled: true

---

# Production profile with an embedded H2 database
spring:
  profiles: embedded
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: false
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Production profile with an external PostgreSQL database
spring:
  profiles: external
  datasource:
    url: ${LTB_DB_URL}
    username: ${LTB_DB_USERNAME}
    password: <PASSWORD>}
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: false
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Development profile with a local PostgreSQL database
spring:
  profiles: dev
  datasource:
    url: jdbc:postgresql://localhost/loltrollbuild
    username: postgres
    password: <PASSWORD>
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: true
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Unit testing profile with an embedded H2 database
spring:
  profiles: testing
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: true
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false
  # Cache
  cache:
    type: simple
# Jackson
  jackson:
    serialization:
      indent_output: true
<commit_msg>Set jpa repository bootstrap mode to deferred in test profile<commit_after># ======================
# Troll Build Properties
# ======================

riot:
  ddragon:
    base-url: ddragon.leagueoflegends.com
    locale: en_US
    champions: /cdn/{version}/data/{locale}/champion.json
    champion: /cdn/{version}/data/{locale}/champion/{id}.json
    champions-img: /cdn/{version}/img/champion/{championImgFull}
    champions-spell-img: /cdn/{version}/img/spell/{championSpellImgFull}
    champions-passive-img: /cdn/{version}/img/passive/{championPassiveImgFull}
    items: /cdn/{version}/data/{locale}/item.json
    items-img: /cdn/{version}/img/item/{itemImgFull}
    maps: /cdn/{version}/data/{locale}/map.json
    maps-img: /cdn/{version}/img/map/{mapImgFull}
    summoner-spells: /cdn/{version}/data/{locale}/summoner.json
    summoner-spells-img: /cdn/{version}/img/spell/{summonerSpellImgFull}
    versions: /api/versions.json

api:
  base-path: /api

# ======================
# Spring Boot Properties
# ======================

spring:
  # Spring active profile
  profiles.active: external, ddragon
  # Internalization
  messages.basename: i18n/messages
  # Batch
  batch:
    initialize-schema: never
    job:
      enabled: false
  # Jackson
  jackson:
    deserialization:
      fail_on_unknown_properties: false
  # JPA
  jpa:
    open-in-view: false
  # Resources
  resources:
    cache:
      cachecontrol:
        max-age: 31536000s # (1 year)
  # JMX
  jmx:
    enabled: false
# Actuator
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    web:
      base-path: /api/admin/actuator
      exposure:
        include: flyway, metrics
# Server
server:
  error:
    whitelabel:
      enabled: false
  compression:
    enabled: true

---

# Production profile with an embedded H2 database
spring:
  profiles: embedded
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: false
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Production profile with an external PostgreSQL database
spring:
  profiles: external
  datasource:
    url: ${LTB_DB_URL}
    username: ${LTB_DB_USERNAME}
    password: ${<PASSWORD>}
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: false
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Development profile with a local PostgreSQL database
spring:
  profiles: dev
  datasource:
    url: jdbc:postgresql://localhost/loltrollbuild
    username: postgres
    password: <PASSWORD>
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: true
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false

---

# Unit testing profile with an embedded H2 database
spring:
  profiles: testing
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: true
        format_sql: false
        generate_statistics: false
        id.new_generator_mappings: true
        hbm2ddl.auto:
        temp.use_jdbc_metadata_defaults: false
  data:
    jpa:
      repositories:
        bootstrap-mode: deferred
  # Cache
  cache:
    type: simple
# Jackson
  jackson:
    serialization:
      indent_output: true

{'fraction_non_alphanumeric': 0.11734409799554565, 'fraction_numerical': 0.005846325167037862, 'mean_word_length': 2.8218085106382977, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '972101', 'n_tokens_mistral': 2356, 'n_tokens_neox': 2296, 'n_words': 472}