<commit_before>package com.bls.mongodb;

import java.net.UnknownHostException;

import javax.inject.Named;

import com.bls.dao.CommonDao;
import com.bls.dao.EventDao;
import com.bls.dao.PersonDao;
import com.bls.dao.UserDao;
import com.bls.mongodb.dao.EventMongodbDao;
import com.bls.mongodb.dao.PersonMongodbDao;
import com.bls.mongodb.dao.PoiMongodbDao;
import com.bls.mongodb.dao.UserMongodbDao;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.mongodb.DB;
import com.mongodb.MongoClient;

public class MongodbModule extends AbstractModule {

    @Override
    protected void configure() {
    }

    @Singleton
    @Provides
    public DB provideMongodb(final MongodbConfiguration config, final MongoClient mongoClient) throws UnknownHostException {
        return mongoClient.getDB(config.getDbname());
    }

    @Singleton
    @Provides
    public MongoClient provideMongodbClient(final MongodbConfiguration config) throws UnknownHostException {
        return config.buildMongoClient();
    }

    @Singleton
    @Provides
    public UserDao provideUserDao(final DB mongodb) {
        return new UserMongodbDao(mongodb);
    }

    @Singleton
    @Provides
    public EventDao provideEventDao(final DB mongodb) {
        return new EventMongodbDao(mongodb);
    }

    @Singleton
    @Provides
    public PersonDao providePersonDao(final DB mongodb) {
        return new PersonMongodbDao(mongodb);
    }
}<commit_msg>Added providePlaceDao function<commit_after>package com.bls.mongodb;

import java.net.UnknownHostException;

import javax.inject.Named;

import com.bls.dao.*;
import com.bls.mongodb.dao.*;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.mongodb.DB;
import com.mongodb.MongoClient;

public class MongodbModule extends AbstractModule {

    @Override
    protected void configure() {
    }

    @Singleton
    @Provides
    public DB provideMongodb(final MongodbConfiguration config, final MongoClient mongoClient) throws UnknownHostException {
        return mongoClient.getDB(config.getDbname());
    }

    @Singleton
    @Provides
    public MongoClient provideMongodbClient(final MongodbConfiguration config) throws UnknownHostException {
        return config.buildMongoClient();
    }

    @Singleton
    @Provides
    public UserDao provideUserDao(final DB mongodb) {
        return new UserMongodbDao(mongodb);
    }

    @Singleton
    @Provides
    public EventDao provideEventDao(final DB mongodb) {
        return new EventMongodbDao(mongodb);
    }

    @Singleton
    @Provides
    public PersonDao providePersonDao(final DB mongodb) {
        return new PersonMongodbDao(mongodb);
    }

    @Singleton
    @Provides
    public PlaceDao providePlaceDao(final DB mongodb) {
        return new PlaceMongodbDao(mongodb);
    }
}
{'fraction_non_alphanumeric': 0.07964297974596636, 'fraction_numerical': 0.0, 'mean_word_length': 3.7848932676518885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4935666', 'n_tokens_mistral': 939, 'n_tokens_neox': 910, 'n_words': 192}