hexsha
stringlengths
40
40
size
int64
37
92.4k
ext
stringclasses
1 value
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
8
212
max_stars_repo_name
stringlengths
7
62
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
sequencelengths
1
3
max_stars_count
float64
1
25.4k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
8
212
max_issues_repo_name
stringlengths
7
62
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
sequencelengths
1
3
max_issues_count
float64
1
2.65k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
8
212
max_forks_repo_name
stringlengths
7
62
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
sequencelengths
1
3
max_forks_count
float64
1
9.83k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
37
92.4k
avg_line_length
float64
6.27
85.5
max_line_length
int64
16
2.98k
alphanum_fraction
float64
0.22
0.88
language
dict
score
float64
0.64
1
comment
stringlengths
7
7.8k
replaced_content
stringlengths
41
92.4k
__index_level_0__
int64
3
66.4k
f7004a2b2fc278df8dbf1b5d6bcb8beb044f4f75
924
java
Java
sboot-scheduling/src/main/java/com/chenjie/sbootscheduling/task/ScheduledTask.java
StriderChen/springboot2x
f58b3c87655b682231d8df71fccda57dcf4012e6
[ "MIT" ]
null
null
null
sboot-scheduling/src/main/java/com/chenjie/sbootscheduling/task/ScheduledTask.java
StriderChen/springboot2x
f58b3c87655b682231d8df71fccda57dcf4012e6
[ "MIT" ]
null
null
null
sboot-scheduling/src/main/java/com/chenjie/sbootscheduling/task/ScheduledTask.java
StriderChen/springboot2x
f58b3c87655b682231d8df71fccda57dcf4012e6
[ "MIT" ]
null
null
null
package com.chenjie.sbootscheduling.task; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.Date; /** * @Author chenjie * @Date 2018/10/10 23:18 * @Description: */ @Component @Slf4j public class ScheduledTask { private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss"); /** * 通过在方法上加@Scheduled注解,表明该方法是一个调度任务。 * @Scheduled(fixedRate = 5000) :上一次开始执行时间点之后5秒再执行 * @Scheduled(fixedDelay = 5000) :上一次执行完毕时间点之后5秒再执行 * @Scheduled(initialDelay=1000, fixedRate=5000) :第一次延迟1秒后执行,之后按fixedRate的规则每5秒执行一次 * @Scheduled(cron=” /5 “) :通过cron表达式定义规则,什么是cro表达式,自行搜索引擎。 */ @Scheduled(fixedRate = 10000) public void reportCurrentTime() { log.info("定时任务,现在时间是: {}", dateFormat.format(new Date())); } }
28
88
0.719697
{ "lang": "zh", "score": 0.6640658974647522 }
0.664066
/** * 通过在方法上加@Scheduled注解,表明该方法是一个调度任务。 * @Scheduled(fixedRate = 5000) :上一次开始执行时间点之后5秒再执行 * @Scheduled(fixedDelay = 5000) :上一次执行完毕时间点之后5秒再执行 * @Scheduled(initialDelay=1000, fixedRate=5000) :第一次延迟1秒后执行,之后按fixedRate的规则每5秒执行一次 * @Scheduled(cron=” /5 “) :通过cron表达式定义规则,什么是cro表达式,自行搜索引擎。 */
<fim_prefix>package com.chenjie.sbootscheduling.task; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.Date; /** * @Author chenjie * @Date 2018/10/10 23:18 * @Description: */ @Component @Slf4j public class ScheduledTask { private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss"); /** * <fim_suffix> @Scheduled(fixedRate = 10000) public void reportCurrentTime() { log.info("定时任务,现在时间是: {}", dateFormat.format(new Date())); } } <fim_middle>
3
f700dad3a79fcdeb2eb608161dedba2c84187929
431
java
Java
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-23T08:03:50.000Z
2021-12-23T09:13:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
15
2021-11-17T12:07:17.000Z
2021-12-27T06:10:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-24T03:04:26.000Z
2022-03-10T08:51:41.000Z
package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 }
21.55
38
0.74478
{ "lang": "zh", "score": 0.6682584881782532 }
0.668258
//评论文字内容
<fim_prefix>package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评�<fim_suffix> String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 } <fim_middle>
8
f700dad3a79fcdeb2eb608161dedba2c84187929
431
java
Java
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-23T08:03:50.000Z
2021-12-23T09:13:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
15
2021-11-17T12:07:17.000Z
2021-12-27T06:10:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-24T03:04:26.000Z
2022-03-10T08:51:41.000Z
package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 }
21.55
38
0.74478
{ "lang": "zh", "score": 0.6682584881782532 }
0.668258
//评论发布时间
<fim_prefix>package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评�<fim_suffix> int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 } <fim_middle>
8
f700dad3a79fcdeb2eb608161dedba2c84187929
431
java
Java
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-23T08:03:50.000Z
2021-12-23T09:13:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
15
2021-11-17T12:07:17.000Z
2021-12-27T06:10:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-24T03:04:26.000Z
2022-03-10T08:51:41.000Z
package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 }
21.55
38
0.74478
{ "lang": "zh", "score": 0.6682584881782532 }
0.668258
//(注:子评论没有rate,但此字段返回值前端)
<fim_prefix>package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:<fim_suffix> long childCount;//此条评论子评论数量 } <fim_middle>
8
f700dad3a79fcdeb2eb608161dedba2c84187929
431
java
Java
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-23T08:03:50.000Z
2021-12-23T09:13:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
15
2021-11-17T12:07:17.000Z
2021-12-27T06:10:36.000Z
src/main/java/site/linkway/core/entity/po/Comment.java
lideming/MallService-SSM
649a14414bfe9265c636acb6f70d1047ff39dc39
[ "Apache-2.0" ]
3
2021-11-24T03:04:26.000Z
2022-03-10T08:51:41.000Z
package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条评论子评论数量 }
21.55
38
0.74478
{ "lang": "zh", "score": 0.6682584881782532 }
0.668258
//此条评论子评论数量
<fim_prefix>package site.linkway.core.entity.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Comment { String commentId;//评论id String content;//评论文字内容 String userId;//用户id String userName;//用户昵称 String avatarURL;//用户头像URL String time;//评论发布时间 int rate;//(注:子评论没有rate,但此字段返回值前端) long childCount;//此条�<fim_suffix> } <fim_middle>
8
f7014456ff3869c0b9d0771541d35f00204f551f
802
java
Java
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
package sch.frog.sparrow.doodle; import java.util.Arrays; /** * 深度优先搜索算法演示 */ public class DFS { public static void main(String[] args){ int len = 3; dfsSearch(6, 0, 1, new int[len], len); } /** * 把正整数num分解为3个不同的正整数, 如: 6 = 1 + 2 + 3, 排在后面的数必须大于等于前面的数, 输出所有方案. * @param num 需要分解的正整数 * @param min 最小值 * @param depth 搜索深度 * @param arr 结果数组 * @param limit 最大深度 */ private static void dfsSearch(int num, int min, int depth, int[] arr, int limit){ if(num == 0){ System.out.println(Arrays.toString(arr)); }else if(depth <= limit){ for(int j = min; j <= num; j++){ arr[depth - 1] = j; dfsSearch(num - j, j, depth + 1, arr, limit); } } } }
22.914286
85
0.513716
{ "lang": "zh", "score": 0.7016835808753967 }
0.701684
/** * 深度优先搜索算法演示 */
<fim_prefix>package sch.frog.sparrow.doodle; import java.util.Arrays; /** * �<fim_suffix> public class DFS { public static void main(String[] args){ int len = 3; dfsSearch(6, 0, 1, new int[len], len); } /** * 把正整数num分解为3个不同的正整数, 如: 6 = 1 + 2 + 3, 排在后面的数必须大于等于前面的数, 输出所有方案. * @param num 需要分解的正整数 * @param min 最小值 * @param depth 搜索深度 * @param arr 结果数组 * @param limit 最大深度 */ private static void dfsSearch(int num, int min, int depth, int[] arr, int limit){ if(num == 0){ System.out.println(Arrays.toString(arr)); }else if(depth <= limit){ for(int j = min; j <= num; j++){ arr[depth - 1] = j; dfsSearch(num - j, j, depth + 1, arr, limit); } } } } <fim_middle>
12
f7014456ff3869c0b9d0771541d35f00204f551f
802
java
Java
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
src/main/java/sch/frog/sparrow/doodle/DFS.java
FrogIf/sparrow
513b04a6356356dfb0df5209f7db1d62d681bc5b
[ "MIT" ]
null
null
null
package sch.frog.sparrow.doodle; import java.util.Arrays; /** * 深度优先搜索算法演示 */ public class DFS { public static void main(String[] args){ int len = 3; dfsSearch(6, 0, 1, new int[len], len); } /** * 把正整数num分解为3个不同的正整数, 如: 6 = 1 + 2 + 3, 排在后面的数必须大于等于前面的数, 输出所有方案. * @param num 需要分解的正整数 * @param min 最小值 * @param depth 搜索深度 * @param arr 结果数组 * @param limit 最大深度 */ private static void dfsSearch(int num, int min, int depth, int[] arr, int limit){ if(num == 0){ System.out.println(Arrays.toString(arr)); }else if(depth <= limit){ for(int j = min; j <= num; j++){ arr[depth - 1] = j; dfsSearch(num - j, j, depth + 1, arr, limit); } } } }
22.914286
85
0.513716
{ "lang": "zh", "score": 0.7016835808753967 }
0.701684
/** * 把正整数num分解为3个不同的正整数, 如: 6 = 1 + 2 + 3, 排在后面的数必须大于等于前面的数, 输出所有方案. * @param num 需要分解的正整数 * @param min 最小值 * @param depth 搜索深度 * @param arr 结果数组 * @param limit 最大深度 */
<fim_prefix>package sch.frog.sparrow.doodle; import java.util.Arrays; /** * 深度优先搜索算法演示 */ public class DFS { public static void main(String[] args){ int len = 3; dfsSearch(6, 0, 1, new int[len], len); } /** * <fim_suffix> private static void dfsSearch(int num, int min, int depth, int[] arr, int limit){ if(num == 0){ System.out.println(Arrays.toString(arr)); }else if(depth <= limit){ for(int j = min; j <= num; j++){ arr[depth - 1] = j; dfsSearch(num - j, j, depth + 1, arr, limit); } } } } <fim_middle>
12
f701495ce9e2d69102f48e474c275c27d9e67534
707
java
Java
src/main/java/com/example/daily/common/Color.java
TreeZhiyuan/daily
724461aaa407d3c637bd05678595d5191c4f123c
[ "MIT" ]
null
null
null
src/main/java/com/example/daily/common/Color.java
TreeZhiyuan/daily
724461aaa407d3c637bd05678595d5191c4f123c
[ "MIT" ]
3
2018-05-02T08:49:08.000Z
2021-09-20T20:34:42.000Z
src/main/java/com/example/daily/common/Color.java
TreeZhiyuan/daily
724461aaa407d3c637bd05678595d5191c4f123c
[ "MIT" ]
null
null
null
package com.example.daily.common; /** * @author: zhiyuan * @date: 2017年12月5日 * @project: spring-boot-demo * @description: */ public enum Color { RED("红色", "0001"), GREEN("绿色", "0002"), BLANK("白色", "0003"), YELLO("黄色", "0004"); // 成员变量 private String name; private String code; // 构造方法 private Color(String name, String code) { this.name = name; this.code = code; } // 普通方法 public String getName() { // 完全没必要,因为每个枚举对象就是一个实例 for (Color c : Color.values()) { if (c == this) { return c.name; } } return null; } /** * * @return */ public String getCode() { for (Color c : Color.values()) { if (c == this) { return c.code; } } return null; } }
15.042553
82
0.572843
{ "lang": "zh", "score": 0.7844187021255493 }
0.784419
// 完全没必要,因为每个枚举对象就是一个实例
<fim_prefix>package com.example.daily.common; /** * @author: zhiyuan * @date: 2017年12月5日 * @project: spring-boot-demo * @description: */ public enum Color { RED("红色", "0001"), GREEN("绿色", "0002"), BLANK("白色", "0003"), YELLO("黄色", "0004"); // 成员变量 private String name; private String code; // 构造方法 private Color(String name, String code) { this.name = name; this.code = code; } // 普通方法 public String getName() { // 完全<fim_suffix> for (Color c : Color.values()) { if (c == this) { return c.name; } } return null; } /** * * @return */ public String getCode() { for (Color c : Color.values()) { if (c == this) { return c.code; } } return null; } } <fim_middle>
13
f7022123224afb6afe32fd6a22db70e219c50440
1,151
java
Java
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } }
28.775
94
0.536056
{ "lang": "zh", "score": 0.8568128943443298 }
0.856813
/** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */
<fim_prefix>package com.lfp.zt.pattern.establish.singleton; /** * Project:<fim_suffix> public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } } <fim_middle>
17
f7022123224afb6afe32fd6a22db70e219c50440
1,151
java
Java
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } }
28.775
94
0.536056
{ "lang": "zh", "score": 0.8568128943443298 }
0.856813
// 首次检测,减少后续加锁操作调用次数
<fim_prefix>package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首<fim_suffix> synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } } <fim_middle>
17
f7022123224afb6afe32fd6a22db70e219c50440
1,151
java
Java
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } }
28.775
94
0.536056
{ "lang": "zh", "score": 0.8568128943443298 }
0.856813
// 加锁,保证顺序执行
<fim_prefix>package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加�<fim_suffix> if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } } <fim_middle>
17
f7022123224afb6afe32fd6a22db70e219c50440
1,151
java
Java
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } }
28.775
94
0.536056
{ "lang": "zh", "score": 0.8568128943443298 }
0.856813
// 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行,
<fim_prefix>package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次<fim_suffix> // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } } <fim_middle>
17
f7022123224afb6afe32fd6a22db70e219c50440
1,151
java
Java
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
src/main/java/com/lfp/zt/pattern/establish/singleton/LazySingleton.java
zhutao0616/zt-javabase
713c8340c219a1d288356f1f15a568aad028f8fb
[ "Apache-2.0" ]
null
null
null
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次此检测可以保证只有第一个线程执行,后续的就无需执行。 instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } }
28.775
94
0.536056
{ "lang": "zh", "score": 0.8568128943443298 }
0.856813
// 在次此检测可以保证只有第一个线程执行,后续的就无需执行。
<fim_prefix>package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; private LazySingleton() { System.out.println(this.getClass().getSimpleName()+" 初始化......"); } public static LazySingleton getInstance(){ if (instance==null){ // 首次检测,减少后续加锁操作调用次数 synchronized (LazySingleton.class){ // 加锁,保证顺序执行 if (instance==null){ // 再次检测,因为首次检测可能会进来多个线程,在加锁后顺序执行, // 在次<fim_suffix> instance = new LazySingleton(); // 该步骤包括:1、分配内存空间,2、初始化对象,3、对象指向内存, // 因为new对象是多个指令,可能出现重排序,利用volatile关键字防止重排序 } } } return instance; } @Override public String toString() { return this.getClass().getSimpleName()+" 运行......"; } } <fim_middle>
17
f702cf8d6149400f30125558ccd1deae347eec2f
487
java
Java
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } }
17.392857
68
0.646817
{ "lang": "zh", "score": 0.8657299876213074 }
0.86573
/** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */
<fim_prefix>package sigleton; /** * @author<fim_suffix> public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } } <fim_middle>
23
f702cf8d6149400f30125558ccd1deae347eec2f
487
java
Java
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } }
17.392857
68
0.646817
{ "lang": "zh", "score": 0.8657299876213074 }
0.86573
//定义一个皇帝放在那里,然后给这个皇帝名字
<fim_prefix>package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义<fim_suffix> private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } } <fim_middle>
23
f702cf8d6149400f30125558ccd1deae347eec2f
487
java
Java
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } }
17.392857
68
0.646817
{ "lang": "zh", "score": 0.8657299876213074 }
0.86573
//私有的构造器,使外部不能调用创建Emperor对象
<fim_prefix>package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的<fim_suffix> } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } } <fim_middle>
23
f702cf8d6149400f30125558ccd1deae347eec2f
487
java
Java
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
designpattern/sigleton/Emperor.java
jinghuang1/design-pattern
cf7a23166b24605f62820faf858c712bcdbc7e85
[ "Apache-2.0" ]
null
null
null
package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇帝叫什么名字 public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } }
17.392857
68
0.646817
{ "lang": "zh", "score": 0.8657299876213074 }
0.86573
//皇帝叫什么名字
<fim_prefix>package sigleton; /** * @author jinhuan3 * @date 2/12/2022 - 11:02 PM * 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个 */ public class Emperor { private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字 private Emperor(){ //私有的构造器,使外部不能调用创建Emperor对象 } public static Emperor getInstance(){ if(emperor == null){ emperor = new Emperor(); } return emperor; } //皇�<fim_suffix> public static void emperorInfo(){ System.out.println("我就是皇帝某某某...."); } } <fim_middle>
23
f703087343a85b72a01915d8e9f29880f80f91b2
1,905
java
Java
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; }
15.119048
57
0.56063
{ "lang": "zh", "score": 0.8832013607025146 }
0.883201
/** * 服务类型 服务类型 */
<fim_prefix>package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * <fim_suffix> private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; } <fim_middle>
25
f703087343a85b72a01915d8e9f29880f80f91b2
1,905
java
Java
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; }
15.119048
57
0.56063
{ "lang": "zh", "score": 0.8832013607025146 }
0.883201
/** * 服务类型名称 服务类型名称 */
<fim_prefix>package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * <fim_suffix> private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; } <fim_middle>
25
f703087343a85b72a01915d8e9f29880f80f91b2
1,905
java
Java
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; }
15.119048
57
0.56063
{ "lang": "zh", "score": 0.8832013607025146 }
0.883201
/** * 客户名称 客户名称 */
<fim_prefix>package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * <fim_suffix> private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; } <fim_middle>
25
f703087343a85b72a01915d8e9f29880f80f91b2
1,905
java
Java
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; }
15.119048
57
0.56063
{ "lang": "zh", "score": 0.8832013607025146 }
0.883201
/** * 客户编号 客户编号 */
<fim_prefix>package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * <fim_suffix> private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; } <fim_middle>
25
f703087343a85b72a01915d8e9f29880f80f91b2
1,905
java
Java
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
src/main/java/com/neusoft/entity/vo/ServiceUserAllotVo.java
freedomhost/neucrm
89aa7b935cad7ea7be7068be26a842b2963d8ed6
[ "Apache-2.0" ]
null
null
null
package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * 状态(0:新创建,1:已分配,2:已处理) */ private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; }
15.119048
57
0.56063
{ "lang": "zh", "score": 0.8832013607025146 }
0.883201
/** * 状态(0:新创建,1:已分配,2:已处理) */
<fim_prefix>package com.neusoft.entity.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ServiceUserAllotVo implements Serializable { private Integer id; /** * 服务类型 服务类型 */ private Integer serviceType; /** * 服务类型名称 服务类型名称 */ private String serviceTypeTitle; /** * 概要 概要 */ private String outline; /** * 客户名称 客户名称 */ private String customerName; /** * 客户编号 客户编号 */ private Integer customerId; /** * <fim_suffix> private Integer status; /** * 状态名称(0:新创建,1:已分配,2:已处理) */ private String statusTitle; /** * 服务请求 服务请求 */ private String serviceReq; /** * 创建人编号 创建人编号 */ private Integer creationId; /** * 创建人姓名 创建人姓名 */ private String creationName; /** * 创建时间 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime creationTime; /** * 服务编号 服务编号 */ private Integer serviceId; /** * 分配用户编号 分配用户编号 */ private Integer userId; /** * 分配用户名字 分配用户名字 */ private String userIdName; /** * 创建人编号 创建人编号 */ /** * 分配时间 分配时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime allotTime; /** * 服务处理 服务处理 */ private String serviceHandle; /** * 处理人 处理人 */ private String handleName; /** * 处理时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime handleTime; /** * 处理结果 处理结果 */ private String handleResult; /** * 满意度 满意度 */ private Integer satisfaction; } <fim_middle>
25
f70311315160dc8a6ae17b005e82c04697c90093
129
java
Java
chapter2-0-0/src/main/java/com/goat/chapter200/base/MediaPlayer.java
yangfancoming/spring-5.1.x
db4c2cbcaf8ba58f43463eff865d46bdbd742064
[ "Apache-2.0" ]
null
null
null
chapter2-0-0/src/main/java/com/goat/chapter200/base/MediaPlayer.java
yangfancoming/spring-5.1.x
db4c2cbcaf8ba58f43463eff865d46bdbd742064
[ "Apache-2.0" ]
null
null
null
chapter2-0-0/src/main/java/com/goat/chapter200/base/MediaPlayer.java
yangfancoming/spring-5.1.x
db4c2cbcaf8ba58f43463eff865d46bdbd742064
[ "Apache-2.0" ]
1
2021-06-05T07:25:05.000Z
2021-06-05T07:25:05.000Z
package com.goat.chapter200.base; /** * 媒体播放器 接口,其实现类有 box播放器,cd播放器 * */ public interface MediaPlayer { void insert(); }
10.75
33
0.674419
{ "lang": "zh", "score": 0.8297882676124573 }
0.829788
/** * 媒体播放器 接口,其实现类有 box播放器,cd播放器 * */
<fim_prefix>package com.goat.chapter200.base; /** * �<fim_suffix> public interface MediaPlayer { void insert(); } <fim_middle>
26
f7041b8ad3ec68265c8e95ec2613f73a598e3b6f
891
java
Java
src/main/java/com/duol/leetcode/y20/before/card_group/Solution.java
Duolaimon/algorithm
eb9ffccb7a28d058a9e748dd54f7fc2367796909
[ "MIT" ]
null
null
null
src/main/java/com/duol/leetcode/y20/before/card_group/Solution.java
Duolaimon/algorithm
eb9ffccb7a28d058a9e748dd54f7fc2367796909
[ "MIT" ]
null
null
null
src/main/java/com/duol/leetcode/y20/before/card_group/Solution.java
Duolaimon/algorithm
eb9ffccb7a28d058a9e748dd54f7fc2367796909
[ "MIT" ]
null
null
null
/** * Leetcode - card_group */ package com.duol.leetcode.y20.before.card_group; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 914. 卡牌分组 * * 给定一副牌,每张牌上都写着一个整数。 * * 此时,你需要选定一个数字 X,使我们可以将整副牌按下述规则分成 1 组或更多组: * * 每组都有 X 张牌。 * 组内所有的牌上都写着相同的整数。 * 仅当你可选的 X >= 2 时返回 true。 * *   * * 示例 1: * * 输入:[1,2,3,4,4,3,2,1] * 输出:true * 解释:可行的分组是 [1,1],[2,2],[3,3],[4,4] * 示例 2: * * 输入:[1,1,1,2,2,2,3,3] * 输出:false * 解释:没有满足要求的分组。 * 示例 3: * * 输入:[1] * 输出:false * 解释:没有满足要求的分组。 * 示例 4: * * 输入:[1,1] * 输出:true * 解释:可行的分组是 [1,1] * 示例 5: * * 输入:[1,1,2,2,2,2] * 输出:true * 解释:可行的分组是 [1,1],[2,2],[2,2] * * 提示: * * 1 <= deck.length <= 10000 * 0 <= deck[i] < 10000 * */ interface Solution { // use this Object to print the log (call from slf4j facade) static Logger log = LoggerFactory.getLogger(Solution.class); boolean hasGroupsSizeX(int[] deck); }
14.606557
60
0.575758
{ "lang": "zh", "score": 0.9861987829208374 }
0.986199
/** * 914. 卡牌分组 * * 给定一副牌,每张牌上都写着一个整数。 * * 此时,你需要选定一个数字 X,使我们可以将整副牌按下述规则分成 1 组或更多组: * * 每组都有 X 张牌。 * 组内所有的牌上都写着相同的整数。 * 仅当你可选的 X >= 2 时返回 true。 * *   * * 示例 1: * * 输入:[1,2,3,4,4,3,2,1] * 输出:true * 解释:可行的分组是 [1,1],[2,2],[3,3],[4,4] * 示例 2: * * 输入:[1,1,1,2,2,2,3,3] * 输出:false * 解释:没有满足要求的分组。 * 示例 3: * * 输入:[1] * 输出:false * 解释:没有满足要求的分组。 * 示例 4: * * 输入:[1,1] * 输出:true * 解释:可行的分组是 [1,1] * 示例 5: * * 输入:[1,1,2,2,2,2] * 输出:true * 解释:可行的分组是 [1,1],[2,2],[2,2] * * 提示: * * 1 <= deck.length <= 10000 * 0 <= deck[i] < 10000 * */
<fim_prefix>/** * Leetcode - card_group */ package com.duol.leetcode.y20.before.card_group; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 914<fim_suffix> interface Solution { // use this Object to print the log (call from slf4j facade) static Logger log = LoggerFactory.getLogger(Solution.class); boolean hasGroupsSizeX(int[] deck); } <fim_middle>
31
f7043c1f23f4a2a1602a350adf5034428f5da5c7
263
java
Java
ttweb/src/main/java/com/tangjf/ttweb/enums/EnumPermissionRole.java
tangjf420/ttweb
411764899b3a1c5cbd5ec5576d79957607803446
[ "Apache-2.0" ]
null
null
null
ttweb/src/main/java/com/tangjf/ttweb/enums/EnumPermissionRole.java
tangjf420/ttweb
411764899b3a1c5cbd5ec5576d79957607803446
[ "Apache-2.0" ]
null
null
null
ttweb/src/main/java/com/tangjf/ttweb/enums/EnumPermissionRole.java
tangjf420/ttweb
411764899b3a1c5cbd5ec5576d79957607803446
[ "Apache-2.0" ]
null
null
null
package com.tangjf.ttweb.enums; /** * 访问权限枚举类 * * @version:v1.0 * @author: tangjf * @date: 2017年4月26日 上午10:52:03 * */ public enum EnumPermissionRole { /** 登录 */ LOGIN, /** 前端 */ NET, /** 管理后台 */ ADMIN; }
11.434783
33
0.479087
{ "lang": "zh", "score": 0.7613418102264404 }
0.761342
/** * 访问权限枚举类 * * @version:v1.0 * @author: tangjf * @date: 2017年4月26日 上午10:52:03 * */
<fim_prefix>package com.tangjf.ttweb.enums; /** * �<fim_suffix> public enum EnumPermissionRole { /** 登录 */ LOGIN, /** 前端 */ NET, /** 管理后台 */ ADMIN; } <fim_middle>
33
f704d8df42a996ce1ad87734be2843319090a5d0
704
java
Java
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
1
2021-01-07T07:41:52.000Z
2021-01-07T07:41:52.000Z
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } }
16.761905
58
0.65483
{ "lang": "zh", "score": 0.8493384718894958 }
0.849338
/** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/
<fim_prefix>package com.mangooa.tools.core.util; import java.util.UUID; /** * �<fim_suffix> @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } } <fim_middle>
39
f704d8df42a996ce1ad87734be2843319090a5d0
704
java
Java
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
1
2021-01-07T07:41:52.000Z
2021-01-07T07:41:52.000Z
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } }
16.761905
58
0.65483
{ "lang": "zh", "score": 0.8493384718894958 }
0.849338
/** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */
<fim_prefix>package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生<fim_suffix> public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } } <fim_middle>
39
f704d8df42a996ce1ad87734be2843319090a5d0
704
java
Java
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
1
2021-01-07T07:41:52.000Z
2021-01-07T07:41:52.000Z
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } }
16.761905
58
0.65483
{ "lang": "zh", "score": 0.8493384718894958 }
0.849338
/** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */
<fim_prefix>package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生<fim_suffix> public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } } <fim_middle>
39
f704d8df42a996ce1ad87734be2843319090a5d0
704
java
Java
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
1
2021-01-07T07:41:52.000Z
2021-01-07T07:41:52.000Z
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
mangooa-project/mangooa-tools/mangooa-tools-core/src/main/java/com/mangooa/tools/core/util/IdUtils.java
mangooa/mangooa
eb7b94e0ee14f1328af2d0c1c1b6e36ab4c631bf
[ "Apache-2.0" ]
null
null
null
package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */ public static String objectId() { return ObjectId.get().toHexString(); } }
16.761905
58
0.65483
{ "lang": "zh", "score": 0.8493384718894958 }
0.849338
/** * 创建一个唯一标识(MongoDB生成策略实现)。 * * @return 唯一标识。 */
<fim_prefix>package com.mangooa.tools.core.util; import java.util.UUID; /** * 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。 * * @author Weimin Gao * @since 1.0.0 **/ @SuppressWarnings("unused") public class IdUtils { /** * 生成随机的通用唯一识别码(Universally Unique Identifier)。 * * @return 唯一识别码。 */ public static String randomUuid() { return UUID.randomUUID().toString(); } /** * 生成随机的通用唯一识别码(Universally Unique Identifier),并去掉了横线。 * * @return 简化的UUID,去掉了横线。 */ public static String simpleUuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } /** * �<fim_suffix> public static String objectId() { return ObjectId.get().toHexString(); } } <fim_middle>
39
f705300a6cde35bcc54c1c2c7ec134a700045150
532
java
Java
flash-waimai-core/src/main/java/cn/enilu/flash/bean/entity/front/BaseMongoEntity.java
oweson/flash-waimai
67bf710ca26f72b9a0c76324977160ccbe13d508
[ "MIT" ]
null
null
null
flash-waimai-core/src/main/java/cn/enilu/flash/bean/entity/front/BaseMongoEntity.java
oweson/flash-waimai
67bf710ca26f72b9a0c76324977160ccbe13d508
[ "MIT" ]
4
2020-05-15T22:22:02.000Z
2022-02-09T22:23:44.000Z
flash-waimai-core/src/main/java/cn/enilu/flash/bean/entity/front/BaseMongoEntity.java
oweson/flash-waimai
67bf710ca26f72b9a0c76324977160ccbe13d508
[ "MIT" ]
null
null
null
package cn.enilu.flash.bean.entity.front; import javax.persistence.MappedSuperclass; /** * @author :enilu * @date :Created in 2019/9/4 14:31 */ /**这个注解表示在父类上面的,用来标识父类。 基于代码复用和模型分离的思想,在项目开发中使用JPA的@MappedSuperclass注解将实体类的多个属性分别封装到不同的非实体类中。例如,数据库表中都需要id来表示编号,id是这些映射实体类的通用的属性,交给jpa统一生成主键id编号,那么使用一个父类来封装这些通用属性,并用@MappedSuperclas标识。 注意: 1.标注为@MappedSuperclass的类将不是一个完整的实体类,他将不会映射到数据库表,但是他的属性都将映射到其子类的数据库字段中。 2.标注为@MappedSuperclass的类不能再标注@Entity或@Table注解,也无需实现序列化接口*/ @MappedSuperclass public class BaseMongoEntity { }
24.181818
161
0.815789
{ "lang": "zh", "score": 0.9864519238471985 }
0.986452
/**这个注解表示在父类上面的,用来标识父类。 基于代码复用和模型分离的思想,在项目开发中使用JPA的@MappedSuperclass注解将实体类的多个属性分别封装到不同的非实体类中。例如,数据库表中都需要id来表示编号,id是这些映射实体类的通用的属性,交给jpa统一生成主键id编号,那么使用一个父类来封装这些通用属性,并用@MappedSuperclas标识。 注意: 1.标注为@MappedSuperclass的类将不是一个完整的实体类,他将不会映射到数据库表,但是他的属性都将映射到其子类的数据库字段中。 2.标注为@MappedSuperclass的类不能再标注@Entity或@Table注解,也无需实现序列化接口*/
<fim_prefix>package cn.enilu.flash.bean.entity.front; import javax.persistence.MappedSuperclass; /** * @author :enilu * @date :Created in 2019/9/4 14:31 */ /**这个注解<fim_suffix> @MappedSuperclass public class BaseMongoEntity { } <fim_middle>
44
f7053cfaeb0d882292142fcb56a40751b02e6807
1,323
java
Java
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
dibo-software/diboot-open
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
6
2020-02-11T14:32:07.000Z
2021-03-18T14:13:48.000Z
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
null
null
null
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
3
2020-08-03T15:08:25.000Z
2021-12-15T06:54:00.000Z
package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } }
24.962264
58
0.557067
{ "lang": "zh", "score": 0.7119001150131226 }
0.7119
/** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */
<fim_prefix>package com.diboot.framework.config; /** * 状<fim_suffix> public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } } <fim_middle>
45
f7053cfaeb0d882292142fcb56a40751b02e6807
1,323
java
Java
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
dibo-software/diboot-open
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
6
2020-02-11T14:32:07.000Z
2021-03-18T14:13:48.000Z
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
null
null
null
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
3
2020-08-03T15:08:25.000Z
2021-12-15T06:54:00.000Z
package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } }
24.962264
58
0.557067
{ "lang": "zh", "score": 0.7119001150131226 }
0.7119
// 请求处理成功
<fim_prefix>package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求<fim_suffix> WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } } <fim_middle>
45
f7053cfaeb0d882292142fcb56a40751b02e6807
1,323
java
Java
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
dibo-software/diboot-open
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
6
2020-02-11T14:32:07.000Z
2021-03-18T14:13:48.000Z
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
null
null
null
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
3
2020-08-03T15:08:25.000Z
2021-12-15T06:54:00.000Z
package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } }
24.962264
58
0.557067
{ "lang": "zh", "score": 0.7119001150131226 }
0.7119
// 有性能问题
<fim_prefix>package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性<fim_suffix> FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } } <fim_middle>
45
f7053cfaeb0d882292142fcb56a40751b02e6807
1,323
java
Java
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
dibo-software/diboot-open
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
6
2020-02-11T14:32:07.000Z
2021-03-18T14:13:48.000Z
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
null
null
null
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
3
2020-08-03T15:08:25.000Z
2021-12-15T06:54:00.000Z
package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } }
24.962264
58
0.557067
{ "lang": "zh", "score": 0.7119001150131226 }
0.7119
// 传入参数不对
<fim_prefix>package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传<fim_suffix> FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } } <fim_middle>
45
f7053cfaeb0d882292142fcb56a40751b02e6807
1,323
java
Java
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
dibo-software/diboot-open
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
6
2020-02-11T14:32:07.000Z
2021-03-18T14:13:48.000Z
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
null
null
null
diboot-framework/src/main/java/com/diboot/framework/config/Status.java
hongleimvp/diboot
f0cfb9fbc51737cd30bada1f3254fb1a3dac306e
[ "Apache-2.0" ]
3
2020-08-03T15:08:25.000Z
2021-12-15T06:54:00.000Z
package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 页面不存在 FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } }
24.962264
58
0.557067
{ "lang": "zh", "score": 0.7119001150131226 }
0.7119
// 404 页面不存在
<fim_prefix>package com.diboot.framework.config; /** * 状态码定义 * @author Mazc@dibo.ltd * @version 2017/8/30 * */ public enum Status { OK(0, "操作成功"), // 请求处理成功 WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功 WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题 FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对 FAIL_INVALID_TOKEN(4001, "Token无效或已过期"), // token无效 FAIL_NO_PERMISSION(4003, "没有权限执行该操作"), // 无权查看 FAIL_NOT_FOUND(4004, "请求资源不存在"), // 404 �<fim_suffix> FAIL_VALIDATION(4005, "提交数据校验不通过"), // 数据校验不通过 FAIL_OPERATION(4006, "操作执行失败"), // 操作执行失败 FAIL_EXCEPTION(5000, "系统异常"); // 系统异常 private int code; private String label; Status(int code, String label){ this.code = code; this.label = label; } public int code(){ return this.code; } public String label(){ return this.label; } public static int getCode(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.code(); } } return 0; } public static String getLabel(String value){ for(Status eu : Status.values()){ if(eu.name().equals(value)){ return eu.label(); } } return null; } } <fim_middle>
45
f7061436dee0c16835487f7cab235b374519a6b5
196
java
Java
rpc-proto/src/main/java/pers/li/rpc/Peer.java
a982338665/customRPC
2126275fcd08b10beb620cbaa395f92698b204aa
[ "MIT" ]
9
2020-08-20T02:11:06.000Z
2022-02-23T08:09:25.000Z
rpc-proto/src/main/java/pers/li/rpc/Peer.java
a982338665/customRPC
2126275fcd08b10beb620cbaa395f92698b204aa
[ "MIT" ]
null
null
null
rpc-proto/src/main/java/pers/li/rpc/Peer.java
a982338665/customRPC
2126275fcd08b10beb620cbaa395f92698b204aa
[ "MIT" ]
3
2020-08-20T02:10:56.000Z
2022-03-20T09:31:57.000Z
package pers.li.rpc; import lombok.AllArgsConstructor; import lombok.Data; /** * 表示网络传输的一个端点 */ @Data @AllArgsConstructor public class Peer { private String host; private int port; }
12.25
33
0.719388
{ "lang": "zh", "score": 0.7880810499191284 }
0.788081
/** * 表示网络传输的一个端点 */
<fim_prefix>package pers.li.rpc; import lombok.AllArgsConstructor; import lombok.Data; /** * 表<fim_suffix> @Data @AllArgsConstructor public class Peer { private String host; private int port; } <fim_middle>
51
f707d0531175a8d7d57b2b7adee542426dcf7b0c
700
java
Java
src/composite1/TextFile.java
fengyuwusong/design-pattern
4adc73f0dca91c2bb024a1e388d291f842d51428
[ "Apache-2.0" ]
1
2017-11-07T09:10:07.000Z
2017-11-07T09:10:07.000Z
src/composite1/TextFile.java
fengyuwusong/design-pattern
4adc73f0dca91c2bb024a1e388d291f842d51428
[ "Apache-2.0" ]
null
null
null
src/composite1/TextFile.java
fengyuwusong/design-pattern
4adc73f0dca91c2bb024a1e388d291f842d51428
[ "Apache-2.0" ]
null
null
null
package composite1; /** * 文本文件类:叶子构件 * Created by fengyuwusong on 2017/11/8 11:40. */ public class TextFile extends AbstractFile { private String name; public TextFile(String name) { this.name = name; } @Override public void add(AbstractFile file) { System.out.println("对不起,不支持该方法!"); } @Override public void remove(AbstractFile file) { System.out.println("对不起,不支持该方法!"); } @Override public AbstractFile getChild(int i) { System.out.println("对不起,不支持该方法!"); return null; } @Override public void killVirus() { //模拟杀毒 System.out.println("---对文本文件'" + name + "'" + "进行杀毒"); } }
18.918919
62
0.587143
{ "lang": "zh", "score": 0.653673529624939 }
0.653674
/** * 文本文件类:叶子构件 * Created by fengyuwusong on 2017/11/8 11:40. */
<fim_prefix>package composite1; /** * 文<fim_suffix> public class TextFile extends AbstractFile { private String name; public TextFile(String name) { this.name = name; } @Override public void add(AbstractFile file) { System.out.println("对不起,不支持该方法!"); } @Override public void remove(AbstractFile file) { System.out.println("对不起,不支持该方法!"); } @Override public AbstractFile getChild(int i) { System.out.println("对不起,不支持该方法!"); return null; } @Override public void killVirus() { //模拟杀毒 System.out.println("---对文本文件'" + name + "'" + "进行杀毒"); } } <fim_middle>
63
f7081eae3d0841058fa0ef26b95f495eddbb5125
11,128
java
Java
vod/src/main/java/com/jdcloud/sdk/service/vod/model/GetWatermarkResult.java
Tanc009/jdcloud-sdk-java
12181e43d1396218e79639dbee387852c85b93b2
[ "Apache-2.0" ]
38
2018-04-19T09:53:59.000Z
2021-11-08T12:52:15.000Z
vod/src/main/java/com/jdcloud/sdk/service/vod/model/GetWatermarkResult.java
Tanc009/jdcloud-sdk-java
12181e43d1396218e79639dbee387852c85b93b2
[ "Apache-2.0" ]
22
2018-04-24T12:17:20.000Z
2022-03-31T10:39:18.000Z
vod/src/main/java/com/jdcloud/sdk/service/vod/model/GetWatermarkResult.java
Tanc009/jdcloud-sdk-java
12181e43d1396218e79639dbee387852c85b93b2
[ "Apache-2.0" ]
53
2018-04-19T10:48:05.000Z
2022-03-16T09:15:16.000Z
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Watermark * 水印管理相关接口 * * OpenAPI spec version: v1 * Contact: * * NOTE: This class is auto generated by the jdcloud code generator program. */ package com.jdcloud.sdk.service.vod.model; import com.jdcloud.sdk.service.JdcloudResult; /** * 查询水印 */ public class GetWatermarkResult extends JdcloudResult implements java.io.Serializable { private static final long serialVersionUID = 1L; /** * 水印ID */ private Long id; /** * 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 */ private String name; /** * 图片地址 */ private String imgUrl; /** * 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String width; /** * 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String height; /** * 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel */ private String sizeUnit; /** * widthRef */ private String widthRef; /** * 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 */ private String heightRef; /** * 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 */ private String position; /** * 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String offsetX; /** * 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String offsetY; /** * 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel */ private String offsetUnit; /** * 创建时间 */ private String createTime; /** * 修改时间 */ private String updateTime; /** * get 水印ID * * @return */ public Long getId() { return id; } /** * set 水印ID * * @param id */ public void setId(Long id) { this.id = id; } /** * get 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @return */ public String getName() { return name; } /** * set 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @param name */ public void setName(String name) { this.name = name; } /** * get 图片地址 * * @return */ public String getImgUrl() { return imgUrl; } /** * set 图片地址 * * @param imgUrl */ public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } /** * get 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getWidth() { return width; } /** * set 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param width */ public void setWidth(String width) { this.width = width; } /** * get 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getHeight() { return height; } /** * set 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param height */ public void setHeight(String height) { this.height = height; } /** * get 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @return */ public String getSizeUnit() { return sizeUnit; } /** * set 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param sizeUnit */ public void setSizeUnit(String sizeUnit) { this.sizeUnit = sizeUnit; } /** * get widthRef * * @return */ public String getWidthRef() { return widthRef; } /** * set widthRef * * @param widthRef */ public void setWidthRef(String widthRef) { this.widthRef = widthRef; } /** * get 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @return */ public String getHeightRef() { return heightRef; } /** * set 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @param heightRef */ public void setHeightRef(String heightRef) { this.heightRef = heightRef; } /** * get 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @return */ public String getPosition() { return position; } /** * set 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @param position */ public void setPosition(String position) { this.position = position; } /** * get 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getOffsetX() { return offsetX; } /** * set 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetX */ public void setOffsetX(String offsetX) { this.offsetX = offsetX; } /** * get 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getOffsetY() { return offsetY; } /** * set 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetY */ public void setOffsetY(String offsetY) { this.offsetY = offsetY; } /** * get 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @return */ public String getOffsetUnit() { return offsetUnit; } /** * set 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param offsetUnit */ public void setOffsetUnit(String offsetUnit) { this.offsetUnit = offsetUnit; } /** * get 创建时间 * * @return */ public String getCreateTime() { return createTime; } /** * set 创建时间 * * @param createTime */ public void setCreateTime(String createTime) { this.createTime = createTime; } /** * get 修改时间 * * @return */ public String getUpdateTime() { return updateTime; } /** * set 修改时间 * * @param updateTime */ public void setUpdateTime(String updateTime) { this.updateTime = updateTime; } /** * set 水印ID * * @param id */ public GetWatermarkResult id(Long id) { this.id = id; return this; } /** * set 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @param name */ public GetWatermarkResult name(String name) { this.name = name; return this; } /** * set 图片地址 * * @param imgUrl */ public GetWatermarkResult imgUrl(String imgUrl) { this.imgUrl = imgUrl; return this; } /** * set 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param width */ public GetWatermarkResult width(String width) { this.width = width; return this; } /** * set 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param height */ public GetWatermarkResult height(String height) { this.height = height; return this; } /** * set 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param sizeUnit */ public GetWatermarkResult sizeUnit(String sizeUnit) { this.sizeUnit = sizeUnit; return this; } /** * set widthRef * * @param widthRef */ public GetWatermarkResult widthRef(String widthRef) { this.widthRef = widthRef; return this; } /** * set 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @param heightRef */ public GetWatermarkResult heightRef(String heightRef) { this.heightRef = heightRef; return this; } /** * set 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @param position */ public GetWatermarkResult position(String position) { this.position = position; return this; } /** * set 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetX */ public GetWatermarkResult offsetX(String offsetX) { this.offsetX = offsetX; return this; } /** * set 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetY */ public GetWatermarkResult offsetY(String offsetY) { this.offsetY = offsetY; return this; } /** * set 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param offsetUnit */ public GetWatermarkResult offsetUnit(String offsetUnit) { this.offsetUnit = offsetUnit; return this; } /** * set 创建时间 * * @param createTime */ public GetWatermarkResult createTime(String createTime) { this.createTime = createTime; return this; } /** * set 修改时间 * * @param updateTime */ public GetWatermarkResult updateTime(String updateTime) { this.updateTime = updateTime; return this; } }
17.579779
87
0.544393
{ "lang": "zh", "score": 0.7212246656417847 }
0.721225
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Watermark * 水印管理相关接口 * * OpenAPI spec version: v1 * Contact: * * NOTE: This class is auto generated by the jdcloud code generator program. */
<fim_prefix>/* * Copyright<fim_suffix> package com.jdcloud.sdk.service.vod.model; import com.jdcloud.sdk.service.JdcloudResult; /** * 查询水印 */ public class GetWatermarkResult extends JdcloudResult implements java.io.Serializable { private static final long serialVersionUID = 1L; /** * 水印ID */ private Long id; /** * 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 */ private String name; /** * 图片地址 */ private String imgUrl; /** * 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String width; /** * 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String height; /** * 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel */ private String sizeUnit; /** * widthRef */ private String widthRef; /** * 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 */ private String heightRef; /** * 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 */ private String position; /** * 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String offsetX; /** * 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 */ private String offsetY; /** * 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel */ private String offsetUnit; /** * 创建时间 */ private String createTime; /** * 修改时间 */ private String updateTime; /** * get 水印ID * * @return */ public Long getId() { return id; } /** * set 水印ID * * @param id */ public void setId(Long id) { this.id = id; } /** * get 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @return */ public String getName() { return name; } /** * set 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @param name */ public void setName(String name) { this.name = name; } /** * get 图片地址 * * @return */ public String getImgUrl() { return imgUrl; } /** * set 图片地址 * * @param imgUrl */ public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } /** * get 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getWidth() { return width; } /** * set 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param width */ public void setWidth(String width) { this.width = width; } /** * get 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getHeight() { return height; } /** * set 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param height */ public void setHeight(String height) { this.height = height; } /** * get 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @return */ public String getSizeUnit() { return sizeUnit; } /** * set 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param sizeUnit */ public void setSizeUnit(String sizeUnit) { this.sizeUnit = sizeUnit; } /** * get widthRef * * @return */ public String getWidthRef() { return widthRef; } /** * set widthRef * * @param widthRef */ public void setWidthRef(String widthRef) { this.widthRef = widthRef; } /** * get 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @return */ public String getHeightRef() { return heightRef; } /** * set 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @param heightRef */ public void setHeightRef(String heightRef) { this.heightRef = heightRef; } /** * get 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @return */ public String getPosition() { return position; } /** * set 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @param position */ public void setPosition(String position) { this.position = position; } /** * get 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getOffsetX() { return offsetX; } /** * set 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetX */ public void setOffsetX(String offsetX) { this.offsetX = offsetX; } /** * get 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @return */ public String getOffsetY() { return offsetY; } /** * set 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetY */ public void setOffsetY(String offsetY) { this.offsetY = offsetY; } /** * get 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @return */ public String getOffsetUnit() { return offsetUnit; } /** * set 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param offsetUnit */ public void setOffsetUnit(String offsetUnit) { this.offsetUnit = offsetUnit; } /** * get 创建时间 * * @return */ public String getCreateTime() { return createTime; } /** * set 创建时间 * * @param createTime */ public void setCreateTime(String createTime) { this.createTime = createTime; } /** * get 修改时间 * * @return */ public String getUpdateTime() { return updateTime; } /** * set 修改时间 * * @param updateTime */ public void setUpdateTime(String updateTime) { this.updateTime = updateTime; } /** * set 水印ID * * @param id */ public GetWatermarkResult id(Long id) { this.id = id; return this; } /** * set 水印名称。只支持中英文、数字。长度不超过128个字符。UTF-8编码。 * * @param name */ public GetWatermarkResult name(String name) { this.name = name; return this; } /** * set 图片地址 * * @param imgUrl */ public GetWatermarkResult imgUrl(String imgUrl) { this.imgUrl = imgUrl; return this; } /** * set 水印宽度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param width */ public GetWatermarkResult width(String width) { this.width = width; return this; } /** * set 水印高度。 当 sizeUnit &#x3D; pixel 时,取值范围为 [8, 4096] 整数 当 sizeUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param height */ public GetWatermarkResult height(String height) { this.height = height; return this; } /** * set 尺寸单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param sizeUnit */ public GetWatermarkResult sizeUnit(String sizeUnit) { this.sizeUnit = sizeUnit; return this; } /** * set widthRef * * @param widthRef */ public GetWatermarkResult widthRef(String widthRef) { this.widthRef = widthRef; return this; } /** * set 高度参考,仅当 siteUnit &#x3D; percent 时生效。 取值说明: w: 输出水印高度 &#x3D; height * 水印原图高度 v: 等同于 vh vw: 输出水印高度 &#x3D; height * 输出视频宽度 vh: 输出水印高度 &#x3D; height * 输出视频高度 vls: 输出水印高度 &#x3D; height * 输出视频长边 vss: 输出水印高度 &#x3D; height * 输出视频短边 * * @param heightRef */ public GetWatermarkResult heightRef(String heightRef) { this.heightRef = heightRef; return this; } /** * set 水印位置。取值范围: LT - 左上 RT - 右上 LB - 左下 RB - 右下 * * @param position */ public GetWatermarkResult position(String position) { this.position = position; return this; } /** * set 水平偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetX */ public GetWatermarkResult offsetX(String offsetX) { this.offsetX = offsetX; return this; } /** * set 竖直偏移。 当 offsetUnit &#x3D; pixel 时,取值范围为 [8, 4088] 整数 当 offsetUnit &#x3D; percent 时,取值范围为 [0, 100] 小数 * * @param offsetY */ public GetWatermarkResult offsetY(String offsetY) { this.offsetY = offsetY; return this; } /** * set 偏移单位。取值范围: pixel - 像素 percent - 百分比 默认值为 pixel * * @param offsetUnit */ public GetWatermarkResult offsetUnit(String offsetUnit) { this.offsetUnit = offsetUnit; return this; } /** * set 创建时间 * * @param createTime */ public GetWatermarkResult createTime(String createTime) { this.createTime = createTime; return this; } /** * set 修改时间 * * @param updateTime */ public GetWatermarkResult updateTime(String updateTime) { this.updateTime = updateTime; return this; } }<fim_middle>
67
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card