<commit_before>
package com.hustunique.jianguo.parsingplayer.parser.entity;

import java.util.List;
import java.util.Map;

/**
 * Created by JianGuo on 1/16/17.
 * POJO for video information extracted from websites
 */
// TODO: 1/16/17 define fields for information in videos
public class VideoInfo {

    // now four hds are enough
    public static int HD_0 = 0;
    public static int HD_1 = 1;
    public static int HD_2 = 2;
    public static int HD_3 = 3;

    private Map<Integer,List<Seg>> segsMap;
    private String title;

    public List<Seg> getSegs(int hd){
        if (!segsMap.containsKey(hd)) throw new RuntimeException("No such hd in this url");
        return segsMap.get(hd);
    }
    //TODO:construct this class and use HashMap or ?

}
<commit_msg>delete HD vars and new some FORMAT vars,change the key of map to format instead of HD<commit_after>
package com.hustunique.jianguo.parsingplayer.parser.entity;

import java.util.List;
import java.util.Map;

/**
 * Created by JianGuo on 1/16/17.
 * POJO for video information extracted from websites
 * A list of segs represents a steam
 */
// TODO: 1/16/17 define fields for information in videos
public class VideoInfo {

    public static String FORMAT_3GP = "3gp";
    public static String FORMAT_3GPHD = "3gphd";
    public static String FORMAT_FLV = "flv";
    public static String FORMAT_FLVHD = "flvhd";
    public static String FORMAT_MP4 = "mp4";
    public static String FORMAT_MP4HD = "mp4hd";
    public static String FORMAT_MP4HD2 = "mp4hd2";
    public static String FORMAT_MP4HD3 = "mp4hd3";
    public static String FORMAT_HD2 = "hd2";
    public static String FORMAT_HD3 = "hd3";


    private Map<String,List<Seg>> segsMap;
    private String title;

    public List<Seg> getSegs(String format){
        if (!segsMap.containsKey(format)) throw new RuntimeException("No such hd in this url");
        return segsMap.get(format);
    }

    public VideoInfo(Map<String, List<Seg>> segsMap, String title) {
        this.segsMap = segsMap;
        this.title = title;
    }
}

{'fraction_non_alphanumeric': 0.0932491500728509, 'fraction_numerical': 0.023312287518212724, 'mean_word_length': 3.336842105263158, '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': '2898044', 'n_tokens_mistral': 682, 'n_tokens_neox': 657, 'n_words': 219}