<commit_before>package com.imcode.imcms.persistence.repository;

import com.imcode.imcms.persistence.entity.TemplateJPA;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public interface TemplateRepository extends JpaRepository<TemplateJPA, String> {

    @Transactional
    @Modifying
    @Query(value = "UPDATE template SET template_name = ?1 WHERE template_name = ?2", nativeQuery = true)
    void updateTemplateName(String newTemplateName, String oldTemplateName);

}<commit_msg>Issue IMCMS-332: New design to super admin page: files tab - Add query<commit_after>package com.imcode.imcms.persistence.repository;

import com.imcode.imcms.persistence.entity.TemplateJPA;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public interface TemplateRepository extends JpaRepository<TemplateJPA, String> {

    @Transactional
    @Modifying
    @Query(value = "UPDATE template SET template_name = ?1 WHERE template_name = ?2", nativeQuery = true)
    void updateTemplateName(String newTemplateName, String oldTemplateName);

    TemplateJPA findByName(String name);

}
{'fraction_non_alphanumeric': 0.08720560152768937, 'fraction_numerical': 0.004455760661998727, 'mean_word_length': 6.380281690140845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1376179', 'n_tokens_mistral': 428, 'n_tokens_neox': 421, 'n_words': 92}