file_id
stringlengths
3
9
content
stringlengths
24
53.5k
repo
stringlengths
6
89
path
stringlengths
5
169
token_length
int64
18
8.19k
original_comment
stringlengths
5
9.64k
comment_type
stringclasses
2 values
detected_lang
stringclasses
1 value
masked_comment
stringlengths
11
53.4k
45_13
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
pagehelper/Mybatis-PageHelper
src/main/java/com/github/pagehelper/Page.java
4,167
/** * 排序 */
block_comment
zh-cn
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
45_14
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
pagehelper/Mybatis-PageHelper
src/main/java/com/github/pagehelper/Page.java
4,167
/** * 只增加排序 */
block_comment
zh-cn
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
45_23
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
pagehelper/Mybatis-PageHelper
src/main/java/com/github/pagehelper/Page.java
4,167
//分页合理化,针对不合理的页码自动处理
line_comment
zh-cn
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
45_27
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
pagehelper/Mybatis-PageHelper
src/main/java/com/github/pagehelper/Page.java
4,167
/** * 计算起止行号 */
block_comment
zh-cn
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
45_29
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
pagehelper/Mybatis-PageHelper
src/main/java/com/github/pagehelper/Page.java
4,167
//分页合理化,针对不合理的页码自动处理
line_comment
zh-cn
/* * The MIT License (MIT) * * Copyright (c) 2014-2023 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
49_8
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//端口被时占用随机分配一个端口
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_10
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//读取扩展信息和启动代理服务器
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_12
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//检查是否安装了证书
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_13
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//根据扩展生成pac文件并切换系统代理
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_19
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
// 获得系统托盘对象
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_20
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
// 获取图片所在的URL
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_21
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
// 为系统托盘加托盘图标
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_22
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//双击事件监听
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_26
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//关闭窗口监听
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_28
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//是否需要调用窗口置顶
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
49_32
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
proxyee-down-org/proxyee-down
main/src/main/java/org/pdown/gui/DownApplication.java
3,528
//设置日志存放路径
line_comment
zh-cn
package org.pdown.gui; import java.awt.AWTException; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.io.File; import java.io.IOException; import jav...
50_2
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 邻接表中表对应的链表的顶点
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_3
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 该边所指向的顶点的位置
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_4
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 指向下一条弧的指针
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_5
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 邻接表中表的顶点
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_6
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 顶点信息
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_7
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 指向第一条依附该顶点的弧
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_8
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 顶点数组
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_9
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 创建图(用已提供的矩阵) * * 参数说明: * vexs -- 顶点数组 * edges -- 边数组 */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_15
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 读取边的起始顶点和结束顶点
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_16
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 读取边的起始顶点和结束顶点
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_18
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 将node1链接到"p1所在链表的末尾"
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_21
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 深度优先搜索遍历图的递归实现 */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_22
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 深度优先搜索遍历图 */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_23
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 顶点访问标记
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_25
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 广度优先搜索(类似于树的层次遍历) */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_26
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 辅组队列
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_27
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 顶点访问标记
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_30
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 打印矩阵队列图 */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_31
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
/* * 拓扑排序 * * 返回值: * true 成功排序,并输入结果 * false 失败(该有向图是有环的) */
block_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_33
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
//Object[] tops; // 拓扑排序结果数组,记录每个节点的排序后的序号。
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_34
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 辅组队列
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_36
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 统计每个顶点的入度数
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_37
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 将所有入度为0的顶点入队列
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_40
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 出队列。j是顶点的序号
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_41
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 将该顶点添加到tops中,tops是排序结果
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_42
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 获取以该顶点为起点的出边队列
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_43
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 将与"node"关联的节点的入度减1;
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_44
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 若减1之后,该节点的入度为0;则将该节点添加到队列中。
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_46
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// 若节点的入度为0,则将其"入队列"
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
50_61
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
alibaba/druid
core/src/main/java/com/alibaba/druid/util/ListDG.java
2,538
// // 采用已有的"图"
line_comment
zh-cn
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
51_0
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色标识程序中判断使用,如"admin",这个是唯一的: private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可...
ityouknow/spring-boot-examples
1.x/spring-boot-shiro/src/main/java/com/neo/entity/SysRole.java
441
// 角色标识程序中判断使用,如"admin",这个是唯一的:
line_comment
zh-cn
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色 <SUF> private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可用,如果不可用将不会添加给用户 ...
51_3
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色标识程序中判断使用,如"admin",这个是唯一的: private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可...
ityouknow/spring-boot-examples
1.x/spring-boot-shiro/src/main/java/com/neo/entity/SysRole.java
441
//角色 -- 权限关系:多对多关系;
line_comment
zh-cn
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色标识程序中判断使用,如"admin",这个是唯一的: private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可...
51_5
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色标识程序中判断使用,如"admin",这个是唯一的: private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可...
ityouknow/spring-boot-examples
1.x/spring-boot-shiro/src/main/java/com/neo/entity/SysRole.java
441
// 一个角色对应多个用户
line_comment
zh-cn
package com.neo.entity; import javax.persistence.*; import java.util.List; @Entity public class SysRole { @Id@GeneratedValue private Integer id; // 编号 private String role; // 角色标识程序中判断使用,如"admin",这个是唯一的: private String description; // 角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE; // 是否可...
55_4
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
dromara/hutool
hutool-socket/src/main/java/cn/hutool/socket/aio/AioServer.java
1,167
// 默认线程池大小
line_comment
zh-cn
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
55_11
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
dromara/hutool
hutool-socket/src/main/java/cn/hutool/socket/aio/AioServer.java
1,167
/** * 服务是否开启状态 * * @return 服务是否开启状态 */
block_comment
zh-cn
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
55_12
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
dromara/hutool
hutool-socket/src/main/java/cn/hutool/socket/aio/AioServer.java
1,167
/** * 关闭服务 */
block_comment
zh-cn
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
55_17
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
dromara/hutool
hutool-socket/src/main/java/cn/hutool/socket/aio/AioServer.java
1,167
// 接收客户端连接
line_comment
zh-cn
package cn.hutool.socket.aio; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.thread.ThreadFactoryBuilder; import cn.hutool.core.thread.ThreadUtil; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import cn.hutool.socket.SocketConfig; import java.io.Closea...
56_1
// 哥斯拉实现websocket马核心代码片段 //由于是反编译修改了原作者的软件,所以并不会公布工具,但会陆续公开实现代码和实现过程原理 public void onMessage(ByteBuffer databf) { try { data=x(databf.array(), false); if (session.getUserProperties().get("payload")==null){ session.getUserProperties().put("payload",new X(this.getClass().getClassLoader(...
tennc/webshell
wsMemShell/Godzilla.java
242
//由于是反编译修改了原作者的软件,所以并不会公布工具,但会陆续公开实现代码和实现过程原理
line_comment
zh-cn
// 哥斯拉实现websocket马核心代码片段 //由于 <SUF> public void onMessage(ByteBuffer databf) { try { data=x(databf.array(), false); if (session.getUserProperties().get("payload")==null){ session.getUserProperties().put("payload",new X(this.getClass().getClassLoader()).Q(data)); session.ge...
58_14
package cn.hutool.core.io.file; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.io.file.visitor.CopyVisitor; import cn.hutool.core.io.file.visitor.DelVisitor; import cn.hutool.core.io.resource.FileResource; import cn.hutool.core.io.resource.Resource; import cn.hutool...
dromara/hutool
hutool-core/src/main/java/cn/hutool/core/io/file/PathUtil.java
7,371
// 创建级联父目录
line_comment
zh-cn
package cn.hutool.core.io.file; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.io.file.visitor.CopyVisitor; import cn.hutool.core.io.file.visitor.DelVisitor; import cn.hutool.core.io.resource.FileResource; import cn.hutool.core.io.resource.Resource; import cn.hutool...
91_3
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
// 新建一个属性对象,设置文字的大小
line_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_6
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
// 一定要进行转换,否则属性会消失
line_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_11
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
/** * 获得资源 */
block_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_31
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
/** * 获得颜色 */
block_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_32
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
/** * 获得颜色 */
block_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_37
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
//如果可以确定每个item的高度是固定的,设置这个选项可以提高性能
line_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
91_39
/* * Copyright 2017 JessYan * * 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 agre...
JessYanCoding/MVPArms
arms/src/main/java/com/jess/arms/utils/ArmsUtils.java
3,443
//如果可以确定每个item的高度是固定的,设置这个选项可以提高性能
line_comment
zh-cn
/* * Copyright 2017 JessYan * * 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 agre...
93_1
package queue; /** * Created by wangzheng on 2018/10/9. */ // 用数组实现的队列 public class ArrayQueue { // 数组:items,数组大小:n private String[] items; private int n = 0; // head表示队头下标,tail表示队尾下标 private int head = 0; private int tail = 0; // 申请一个大小为capacity的数组 public ArrayQueue(int capacity) { items = new ...
wangzheng0822/algo
java/09_queue/ArrayQueue.java
313
// 用数组实现的队列
line_comment
zh-cn
package queue; /** * Created by wangzheng on 2018/10/9. */ // 用数 <SUF> public class ArrayQueue { // 数组:items,数组大小:n private String[] items; private int n = 0; // head表示队头下标,tail表示队尾下标 private int head = 0; private int tail = 0; // 申请一个大小为capacity的数组 public ArrayQueue(int capacity) { items = new ...
93_7
package queue; /** * Created by wangzheng on 2018/10/9. */ // 用数组实现的队列 public class ArrayQueue { // 数组:items,数组大小:n private String[] items; private int n = 0; // head表示队头下标,tail表示队尾下标 private int head = 0; private int tail = 0; // 申请一个大小为capacity的数组 public ArrayQueue(int capacity) { items = new ...
wangzheng0822/algo
java/09_queue/ArrayQueue.java
313
// 为了让其他语言的同学看的更加明确,把--操作放到单独一行来写了
line_comment
zh-cn
package queue; /** * Created by wangzheng on 2018/10/9. */ // 用数组实现的队列 public class ArrayQueue { // 数组:items,数组大小:n private String[] items; private int n = 0; // head表示队头下标,tail表示队尾下标 private int head = 0; private int tail = 0; // 申请一个大小为capacity的数组 public ArrayQueue(int capacity) { items = new ...
95_3
package com.crossoverjie.gc; /** * Function: Eden区不够分配时,发生minorGC * * @author crossoverJie * Date: 17/01/2018 22:57 * @since JDK 1.8 */ public class MinorGC { /** * 1M */ private static final int SIZE = 1024 * 1024 ; /** * -XX:+PrintGCDetails -Xms20M -Xmx20M ...
crossoverJie/JCSprout
src/main/java/com/crossoverjie/gc/MinorGC.java
221
//再分配一个 5M 内存时,Eden区不够了,
line_comment
zh-cn
package com.crossoverjie.gc; /** * Function: Eden区不够分配时,发生minorGC * * @author crossoverJie * Date: 17/01/2018 22:57 * @since JDK 1.8 */ public class MinorGC { /** * 1M */ private static final int SIZE = 1024 * 1024 ; /** * -XX:+PrintGCDetails -Xms20M -Xmx20M ...
96_0
package dsHomework; import java.util.*; public class PopSequence { // m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素 // 如果 入栈的元素小于序列,那就入栈,直到大于序列. //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new S...
QSCTech/zju-icicles
数据结构基础/作业/dsHomework/PopSequence.java
872
// m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素
line_comment
zh-cn
package dsHomework; import java.util.*; public class PopSequence { // m <SUF> // 如果 入栈的元素小于序列,那就入栈,直到大于序列. //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new Stack<Integer>(); //Integer 类型的栈 int v = 1, m...
96_1
package dsHomework; import java.util.*; public class PopSequence { // m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素 // 如果 入栈的元素小于序列,那就入栈,直到大于序列. //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new S...
QSCTech/zju-icicles
数据结构基础/作业/dsHomework/PopSequence.java
872
// 如果 入栈的元素小于序列,那就入栈,直到大于序列.
line_comment
zh-cn
package dsHomework; import java.util.*; public class PopSequence { // m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素 // 如果 <SUF> //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new Stack<Integer>(); ...
96_17
package dsHomework; import java.util.*; public class PopSequence { // m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素 // 如果 入栈的元素小于序列,那就入栈,直到大于序列. //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new S...
QSCTech/zju-icicles
数据结构基础/作业/dsHomework/PopSequence.java
872
/*开辟了一个长度为N的数组*/
block_comment
zh-cn
package dsHomework; import java.util.*; public class PopSequence { // m 从0 到6,是序列的循环变量, m ==7时,序列就结束了,m is 序列的index, v从1到7, 是入栈的元素 // 如果 入栈的元素小于序列,那就入栈,直到大于序列. //如果爆栈,那就error, ,如果栈非空且peek = datam ,那就pop //如果栈顶大于序列,那就error. public static int StackCheck(int data[],int MaxSize) { Stack <Integer> st = new S...
103_4
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//上传文件的路径
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_5
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//密钥配置
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_6
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//创建上传对象
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_7
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//简单上传,使用默认策略,只需要设置上传的空间名就可以了
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_9
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//打印返回的信息
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_10
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
// 请求失败时打印的异常的信息
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
103_11
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
shuzheng/zheng
zheng-oss/zheng-oss-web/src/main/java/com/zheng/oss/web/QiniuDemo.java
475
//响应的文本信息
line_comment
zh-cn
package com.zheng.oss.web; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.storage.UploadManager; import com.qiniu.util.Auth; import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String accessKey = ...
105_12
package org.nutz.dao; /** * 列出了 Nutz.Dao 支持的数据库类型 * * @author zozoh(zozohtnt@gmail.com) */ public enum DB { /** * IBM DB2 */ DB2, /** * Postgresql */ PSQL, /** * Oracle */ ORACLE, /** * MS-SqlServer */ SQLSERVER, ...
nutzam/nutz
src/org/nutz/dao/DB.java
243
/** * 其他数据库 */
block_comment
zh-cn
package org.nutz.dao; /** * 列出了 Nutz.Dao 支持的数据库类型 * * @author zozoh(zozohtnt@gmail.com) */ public enum DB { /** * IBM DB2 */ DB2, /** * Postgresql */ PSQL, /** * Oracle */ ORACLE, /** * MS-SqlServer */ SQLSERVER, ...
106_2
/* * Copyright 2016 jeasonlzy(廖子尧) * * 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...
jeasonlzy/okhttp-OkGo
demo/src/main/java/com/lzy/demo/okrx2/RxUtils.java
1,030
/** * 这个封装其实没有必要,只是有些人喜欢这么干,我就多此一举写出来了。。 * 这个封装其实没有必要,只是有些人喜欢这么干,我就多此一举写出来了。。 * 这个封装其实没有必要,只是有些人喜欢这么干,我就多此一举写出来了。。 */
block_comment
zh-cn
/* * Copyright 2016 jeasonlzy(廖子尧) * * 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...
107_1
package com.xkcoding.mq.rabbitmq.handler; import cn.hutool.json.JSONUtil; import com.rabbitmq.client.Channel; import com.xkcoding.mq.rabbitmq.constants.RabbitConsts; import com.xkcoding.mq.rabbitmq.message.MessageStruct; import lombok.extern.slf4j.Slf4j; import org.springframework.amqp.core.Message; import org.springf...
xkcoding/spring-boot-demo
demo-mq-rabbitmq/src/main/java/com/xkcoding/mq/rabbitmq/handler/QueueTwoHandler.java
414
// 如果手动ACK,消息会被监听消费,但是消息在队列中依旧存在,如果 未配置 acknowledge-mode 默认是会在消费完毕后自动ACK掉
line_comment
zh-cn
package com.xkcoding.mq.rabbitmq.handler; import cn.hutool.json.JSONUtil; import com.rabbitmq.client.Channel; import com.xkcoding.mq.rabbitmq.constants.RabbitConsts; import com.xkcoding.mq.rabbitmq.message.MessageStruct; import lombok.extern.slf4j.Slf4j; import org.springframework.amqp.core.Message; import org.springf...
108_1
package com.blankj.api; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.Opcodes; import java.util.List; import java.util.Map; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2019/07/09 * desc : * </pre> */ public ...
Blankj/AndroidUtilCode
plugin/api-gradle-plugin/src/main/java/com/blankj/api/ApiClassVisitor.java
688
// 可获取注解的值
line_comment
zh-cn
package com.blankj.api; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.Opcodes; import java.util.List; import java.util.Map; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2019/07/09 * desc : * </pre> */ public ...
108_3
package com.blankj.api; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.Opcodes; import java.util.List; import java.util.Map; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2019/07/09 * desc : * </pre> */ public ...
Blankj/AndroidUtilCode
plugin/api-gradle-plugin/src/main/java/com/blankj/api/ApiClassVisitor.java
688
// 不存在或者之前存在的是 mock
line_comment
zh-cn
package com.blankj.api; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.Opcodes; import java.util.List; import java.util.Map; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2019/07/09 * desc : * </pre> */ public ...
109_1
/** * Copyright (c) 2011-2023, James Zhan 詹波 (jfinal@126.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...
jfinal/jfinal
src/main/java/com/jfinal/kit/Func.java
1,226
/** * lambda 函数工具箱,主要用来解决 JDK 函数接口参数过少的问题,同时还降低了学习成本 * * JDK java.util.function 包里面的函数接口有如下缺点: * 1:设计繁琐,相比动态语言的闭包在理解和学习成本上要高 * 2:函数支持的参数过少,超过两个参数时就没法使用了 * 3:基于 java 接口的闭包实现方案,转移了用户对于函数本身这个核心要点的关注, * 接口名、方法名带来了噪声干扰 */
block_comment
zh-cn
/** * Copyright (c) 2011-2023, James Zhan 詹波 (jfinal@126.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...
110_1
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//异步接收地址,公网可访问
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_2
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//同步跳转地址
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_3
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//******必传参数******
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_4
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//商户订单号,商家自定义,保持唯一性
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_8
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//调用SDK验证签名
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_9
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//******必传参数******
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_12
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//交易状态:WAIT_BUYER_PAY(交易创建,等待买家付款)、TRADE_CLOSED(未付款交易超时关闭,或支付完成后全额退款)、TRADE_SUCCESS(交易支付成功)、TRADE_FINISHED(交易结束,不可退款)
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_13
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//异步接收地址,公网可访问
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_14
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//同步跳转地址
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_15
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//******必传参数******
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_16
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//商户订单号,商家自定义,保持唯一性
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
110_19
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
macrozheng/mall
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
1,676
//手机网站支付默认传值FAST_INSTANT_TRADE_PAY
line_comment
zh-cn
package com.macro.mall.portal.service.impl; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayTradePagePayRequest; import com....
111_0
package com.example.gsyvideoplayer; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import android.view.View; import android.view.animatio...
CarGuo/GSYVideoPlayer
app/src/main/java/com/example/gsyvideoplayer/WindowActivity.java
809
/** * 多窗体下的悬浮窗页面 */
block_comment
zh-cn
package com.example.gsyvideoplayer; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import android.view.View; import android.view.animatio...
111_1
package com.example.gsyvideoplayer; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import android.view.View; import android.view.animatio...
CarGuo/GSYVideoPlayer
app/src/main/java/com/example/gsyvideoplayer/WindowActivity.java
809
/** * 这里在返回主页的时候销毁了,因为不想和DEMO中其他页面冲突 */
block_comment
zh-cn
package com.example.gsyvideoplayer; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import android.view.View; import android.view.animatio...
112_0
package org.bannedbook.app.service; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.content.res.AssetManager; import android.net.Uri; import android.os.Environment; import android.os.IBinder; import android.util.Log; ...
bannedbook/fanqiang
fqnews/core/src/main/java/org/bannedbook/app/service/PolipoService.java
1,615
/*废弃,暂且没用*/
block_comment
zh-cn
package org.bannedbook.app.service; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.content.res.AssetManager; import android.net.Uri; import android.os.Environment; import android.os.IBinder; import android.util.Log; ...
113_2
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
infinilabs/analysis-ik
core/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java
3,584
//默认缓冲区大小
line_comment
zh-cn
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
113_3
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
infinilabs/analysis-ik
core/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java
3,584
//缓冲区耗尽的临界值
line_comment
zh-cn
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
113_5
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
infinilabs/analysis-ik
core/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java
3,584
//字符类型数组
line_comment
zh-cn
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
113_8
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...
infinilabs/analysis-ik
core/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java
3,584
//当前缓冲区位置指针
line_comment
zh-cn
/** * IK 中文分词 版本 5.0 * IK Analyzer release 5.0 * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under th...