<commit_before>package net.koofr.api.rest.v2.data;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import net.koofr.api.http.Request.TransferCallback;
import net.koofr.api.json.JsonBase;
import net.koofr.api.rest.v2.data.Common.StringList;

public class Files implements JsonBase {

  public static class File implements JsonBase {
    public String name;
    public String type;
    public Long modified;
    public Long size;
    public String contentType;
    public String hash;
    public Map<String, StringList> tags;
    public List<File> children;
  }
  
  public static class Version implements JsonBase {
    public String id;
    public String type;
    public Long modified;
    public Long size;
    public String contentType;
    public Map<String, StringList> tags;    
  }
  
  public static class Versions implements JsonBase {
    public List<Version> versions;
  }
  
  public static class UploadOptions {
    public Long modified;
    public Long size;<commit_msg>Added constants for file types.<commit_after>package net.koofr.api.rest.v2.data;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import net.koofr.api.http.Request.TransferCallback;
import net.koofr.api.json.JsonBase;
import net.koofr.api.rest.v2.data.Common.StringList;

public class Files implements JsonBase {

  public static class File implements JsonBase {
    public static final String TYPE_DIR  = "dir";
    public static final String TYPE_FILE = "file";

    public String name;
    public String type;
    public Long modified;
    public Long size;
    public String contentType;
    public String hash;
    public Map<String, StringList> tags;
    public List<File> children;
  }
  
  public static class Version implements JsonBase {
    public String id;
    public String type;
    public Long modified;
    public Long size;
    public String contentType;
    public Map<String, StringList> tags;    
  }
  
  public static class Versions implements JsonBase {
    public List<Version> versions;
  }
  
  public static class UploadOptions {
    public Long modified;
    public Long size;
{'fraction_non_alphanumeric': 0.07320319432120674, 'fraction_numerical': 0.001774622892635315, 'mean_word_length': 3.51, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1883394', 'n_tokens_mistral': 649, 'n_tokens_neox': 644, 'n_words': 211}