<commit_before>package com.bls.rdbms.dao;

import com.bls.core.poi.Location;
import com.bls.core.poi.Poi;
import com.bls.rdbms.core.PoiJpa;
import org.hibernate.SessionFactory;

import javax.inject.Inject;

/** Poi jpa data provider */
public class PoiJpaDao extends CommonJpaDao<PoiJpa, Poi<Long>> {

    @Inject
    public PoiJpaDao(final SessionFactory sessionFactory) {
        super(sessionFactory);
    }

    @Override
    protected PoiJpa convert2jpa(final Poi<Long> coreEntity) {
        final PoiJpa result = new PoiJpa();
        result.setId(coreEntity.getId());
        result.setName(coreEntity.getName());
        result.setTag(coreEntity.getTag());
        result.setLongitude(coreEntity.getLocation().getLongitude());
        result.setLatitude(coreEntity.getLocation().getLatitude());
        return result;
    }

    @Override
    protected Poi<Long> convert2core(final PoiJpa jpaEntity) {
        // TODO
        return new Poi<>(jpaEntity.getId(), jpaEntity.getName(), jpaEntity.getTag(), new Location(jpaEntity.getLongitude(),jpaEntity.getLatitude()));
    }
}

<commit_msg>[FIXME] Disabled due to changes in Poi<commit_after>package com.bls.rdbms.dao;

import com.bls.core.poi.Location;
import com.bls.core.poi.Poi;
import com.bls.rdbms.core.PoiJpa;
import org.hibernate.SessionFactory;

import javax.inject.Inject;

/** Poi jpa data provider */
public class PoiJpaDao extends CommonJpaDao<PoiJpa, Poi<Long>> {

    @Inject
    public PoiJpaDao(final SessionFactory sessionFactory) {
        super(sessionFactory);
    }

    @Override
    protected PoiJpa convert2jpa(final Poi<Long> coreEntity) {
        final PoiJpa result = new PoiJpa();
        result.setId(coreEntity.getId());
        result.setName(coreEntity.getName());
        result.setTag(coreEntity.getTag());
        result.setLongitude(coreEntity.getLocation().getLongitude());
        result.setLatitude(coreEntity.getLocation().getLatitude());
        return result;
    }

    @Override
    protected Poi<Long> convert2core(final PoiJpa jpaEntity) {
        // TODO
//        return new Poi<>(jpaEntity.getId(), jpaEntity.getName(), jpaEntity.getTag(), new Location(jpaEntity.getLongitude(),jpaEntity.getLatitude()));
        return null;
    }
}


{'fraction_non_alphanumeric': 0.12355040142729706, 'fraction_numerical': 0.001784121320249777, 'mean_word_length': 3.5869120654396727, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '410840', 'n_tokens_mistral': 738, 'n_tokens_neox': 743, 'n_words': 128}