// Path: src/main/java/de/danielbasedow/prospecter/core/TokenMapper.java
// public interface TokenMapper {
//     public int getTermId(String str, boolean dontGenerateNewIds);
// 
//     public void setBloomFilter(BloomFilter<String> bloomFilter);
// }
// 
// Path: src/main/java/de/danielbasedow/prospecter/core/TokenMapperImpl.java
// public class TokenMapperImpl implements TokenMapper {
//     protected int termIdSequence;
//     protected final TObjectIntHashMap<String> termMap = new TObjectIntHashMap<String>();
//     protected BloomFilter<String> bloomFilter;
// 
//     public TokenMapperImpl() {
//         termIdSequence = 1;
//         bloomFilter = new FakeBloomFilter<String>();
//     }
// 
//     @Override
//     public int getTermId(String str, boolean dontGenerateNewIds) {
//         int termId = 0;
//         if (bloomFilter.contains(str)) {
//             termId = termMap.get(str);
//         }
//         if (termId == 0 && !dontGenerateNewIds) {
//             synchronized (this) {
//                 termId = getNewTermId();
//                 termMap.put(str, termId);
//                 bloomFilter.add(str);
//             }
//         }
//         return termId;
//     }
// 
//     @Override
//     public void setBloomFilter(BloomFilter<String> bloomFilter) {
//         this.bloomFilter = bloomFilter;
//     }
// 
//     public int getNewTermId() {
//         return termIdSequence++;
//     }
// }


import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
import de.danielbasedow.prospecter.core.TokenMapper;
import de.danielbasedow.prospecter.core.TokenMapperImpl;
package de.danielbasedow.prospecter.core.analysis;



public class AnalyzerModule extends AbstractModule {
    @Override
    protected void configure() {
// Path: src/main/java/de/danielbasedow/prospecter/core/TokenMapper.java
// public interface TokenMapper {
//     public int getTermId(String str, boolean dontGenerateNewIds);
// 
//     public void setBloomFilter(BloomFilter<String> bloomFilter);
// }
// 
// Path: src/main/java/de/danielbasedow/prospecter/core/TokenMapperImpl.java
// public class TokenMapperImpl implements TokenMapper {
//     protected int termIdSequence;
//     protected final TObjectIntHashMap<String> termMap = new TObjectIntHashMap<String>();
//     protected BloomFilter<String> bloomFilter;
// 
//     public TokenMapperImpl() {
//         termIdSequence = 1;
//         bloomFilter = new FakeBloomFilter<String>();
//     }
// 
//     @Override
//     public int getTermId(String str, boolean dontGenerateNewIds) {
//         int termId = 0;
//         if (bloomFilter.contains(str)) {
//             termId = termMap.get(str);
//         }
//         if (termId == 0 && !dontGenerateNewIds) {
//             synchronized (this) {
//                 termId = getNewTermId();
//                 termMap.put(str, termId);
//                 bloomFilter.add(str);
//             }
//         }
//         return termId;
//     }
// 
//     @Override
//     public void setBloomFilter(BloomFilter<String> bloomFilter) {
//         this.bloomFilter = bloomFilter;
//     }
// 
//     public int getNewTermId() {
//         return termIdSequence++;
//     }
// }


// Path: src/main/java/de/danielbasedow/prospecter/core/analysis/AnalyzerModule.java
import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
import de.danielbasedow.prospecter.core.TokenMapper;
import de.danielbasedow.prospecter.core.TokenMapperImpl;

package de.danielbasedow.prospecter.core.analysis;



public class AnalyzerModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(TokenMapper.class).to(TokenMapperImpl.class).in(Singleton.class);