// Path: apimodels/src/main/java/info/puzz/a10000sentences/apimodels/CollectionType.java
// public enum CollectionType {
// 
//     TATOEBA("https://tatoeba.org", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return null;
//         }
//     }),
// 
//     EU_CORPUS("http://www.statmt.org/europarl/", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return "http://www.statmt.org/europarl/";
//         }
//     }),
// 
//     OPUS_OPENSUBTITLES("http://opus.nlpl.eu", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return "http://opus.nlpl.eu";
//         }
//     }),
// 
//     ;
// 
//     @Getter
//     private final String url;
//     private final CollectionTypeInfo info;
// 
//     CollectionType(String url, CollectionTypeInfo info) {
//         this.url = url;
//         this.info = info;
//     }
// 
//     public interface CollectionTypeInfo {
//         String getSentenceUrl(String sentenceId);
//     }
// 
//     public String getSentenceUrl(String sentenceId) {
//         return info.getSentenceUrl(sentenceId);
//     }
// 
// }


import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import java.text.NumberFormat;
import java.util.Locale;
import info.puzz.a10000sentences.apimodels.CollectionType;
package info.puzz.a10000sentences.models;




@Table(name = "sentence_collection")
public class SentenceCollection extends Model {

    private static final NumberFormat NUMBER_FORMAT = NumberFormat.getNumberInstance(Locale.US);
    public static final int MAX_SENTENCES = 10_000;

    @Column(name = "collection_id", index = true, unique = true, onUniqueConflict = Column.ConflictAction.REPLACE)
    public String collectionID;

    @Column(name = "known_lang")
    public String knownLanguage;

    @Column(name = "target_lang")
    public String targetLanguage;

    @Column(name = "filename")
    public String filename;

    @Column(name = "count")
    public int count;

    @Column(name = "todo_count")
    public int todoCount;

    @Column(name = "repeat_count")
    public int repeatCount;

    @Column(name = "done_count")
    public int doneCount;

    @Column(name = "ignore_count")
    public int ignoreCount;

    @Column(name = "skipped_count")
    public int skippedCount;

    @Column(name = "annotation_count")
    public int annotationCount;

    @Column(name="type")
// Path: apimodels/src/main/java/info/puzz/a10000sentences/apimodels/CollectionType.java
// public enum CollectionType {
// 
//     TATOEBA("https://tatoeba.org", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return null;
//         }
//     }),
// 
//     EU_CORPUS("http://www.statmt.org/europarl/", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return "http://www.statmt.org/europarl/";
//         }
//     }),
// 
//     OPUS_OPENSUBTITLES("http://opus.nlpl.eu", new CollectionTypeInfo() {
//         @Override
//         public String getSentenceUrl(String sentenceId) {
//             return "http://opus.nlpl.eu";
//         }
//     }),
// 
//     ;
// 
//     @Getter
//     private final String url;
//     private final CollectionTypeInfo info;
// 
//     CollectionType(String url, CollectionTypeInfo info) {
//         this.url = url;
//         this.info = info;
//     }
// 
//     public interface CollectionTypeInfo {
//         String getSentenceUrl(String sentenceId);
//     }
// 
//     public String getSentenceUrl(String sentenceId) {
//         return info.getSentenceUrl(sentenceId);
//     }
// 
// }


// Path: 10000sentencesapp/src/main/java/info/puzz/a10000sentences/models/SentenceCollection.java
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import java.text.NumberFormat;
import java.util.Locale;
import info.puzz.a10000sentences.apimodels.CollectionType;

package info.puzz.a10000sentences.models;




@Table(name = "sentence_collection")
public class SentenceCollection extends Model {

    private static final NumberFormat NUMBER_FORMAT = NumberFormat.getNumberInstance(Locale.US);
    public static final int MAX_SENTENCES = 10_000;

    @Column(name = "collection_id", index = true, unique = true, onUniqueConflict = Column.ConflictAction.REPLACE)
    public String collectionID;

    @Column(name = "known_lang")
    public String knownLanguage;

    @Column(name = "target_lang")
    public String targetLanguage;

    @Column(name = "filename")
    public String filename;

    @Column(name = "count")
    public int count;

    @Column(name = "todo_count")
    public int todoCount;

    @Column(name = "repeat_count")
    public int repeatCount;

    @Column(name = "done_count")
    public int doneCount;

    @Column(name = "ignore_count")
    public int ignoreCount;

    @Column(name = "skipped_count")
    public int skippedCount;

    @Column(name = "annotation_count")
    public int annotationCount;

    @Column(name="type")
    public CollectionType type;