You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.2 KiB
63 lines
1.2 KiB
7 months ago
|
package com.keyware.composeanalysis.mongo;
|
||
|
|
||
|
import lombok.Data;
|
||
|
import lombok.experimental.Accessors;
|
||
|
import org.springframework.data.annotation.Id;
|
||
|
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* @author liuzongren
|
||
|
* @ClassName MatchOpenFile
|
||
|
* @description: 匹配的开源文件信息
|
||
|
* @datetime 2024年 07月 23日 18:05
|
||
|
* @version: 1.0
|
||
|
*/
|
||
|
@Data
|
||
|
@Accessors(chain =true)
|
||
|
public class MatchOpenFile implements Serializable {
|
||
|
|
||
|
//ID
|
||
|
@Id
|
||
|
private String id;
|
||
|
|
||
|
//开源项目版本名称
|
||
|
private String version;
|
||
|
|
||
|
//组件版本id
|
||
|
private String versionId;
|
||
|
|
||
|
//开源项目名称
|
||
|
private String pName;
|
||
|
|
||
|
//开源项目id
|
||
|
private String pId;
|
||
|
|
||
|
//与被测文件的特征相似度
|
||
|
private Float featureSimilarity;
|
||
|
|
||
|
//开源地址
|
||
|
private String sourceUrl;
|
||
|
|
||
|
//开源文件的详细路径
|
||
|
private String sourceFilePath;
|
||
|
|
||
|
//开源许可协议类型
|
||
|
private List<String> licenseType;
|
||
|
|
||
|
//长度
|
||
|
private Integer fileSize;
|
||
|
|
||
|
//文件MD5值
|
||
|
private String md5;
|
||
|
|
||
|
//分析类型 (0文件,1函数 2:代码块 3:行)
|
||
|
private int analyzeType;
|
||
|
|
||
|
//文件开源率
|
||
|
private Float openRate;
|
||
|
|
||
|
}
|