content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
include { COMBINEBINNER } from '../../modules/local/bbs/combineBinner2DASTools' include { MULTIDASTOOL } from '../../modules/local/bbs/multi_DASTools' include { PIPELINEWARNING } from '../../modules/local/common/pipeline_warning' include { CATEVALBYID } from '../../modules/local/bbs/cat_eval' include { SUMMARYRESULT } ...
__label__POS
0.72785
# Streams 流 stream 是一个抽象接口,node 中有很多对象实现了这个接口。例如,对http 服务器发起请求的request 对象就是 一个stream,还有stdout(标准输出)。Stream 可以是只读、可写,也可以同时可读可写。所有的Stream 对象 都是EventEmitter 的实例。 ##Readable Stream 只读流 一个只读流有如下方法、成员、和事件。 Event: 'data' ``` function (data) { }``` 'data'事件的参数是Buffer(默认情况下),如果调用过setEncoding()方法,则参数为一个字符串。 **Event: 'e...
__label__POS
0.784832
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.965661
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.901578
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.813834
# Query String 查询字串 此模块能处理查询字串(query strings),提供以下方法: **querystring.stringify(obj, sep='&', eq='=', munge=true)** 序列化对象至查询字串。选择性地覆写默认分割符和增补字符(assignment characters)。 例子: ``` querystring.stringify({foo: 'bar'}) // returns 'foo=bar' querystring.stringify({foo: 'bar', baz: 'bob'}, ';', ':') // returns 'foo:bar;baz:bob...
__label__POS
0.811063
# Path模块 此模块包含很多用于处理文件路径的小工具。你可以通过require('path')使用该模块。它提供了如下函数: **path.join([path1], [path2], [...])** 将所有参数连接在一起并解析生成新的路径。 示例: ``` node> require('path').join( ... '/foo', 'bar', 'baz/asdf', 'quux', '..') '/foo/bar/baz/asdf'``` **path.normalizeArray(arr)** 转化路径的各部分,将'..'和'.'替换为实际的路径。 示例: ``` path.normalizeA...
__label__POS
0.707453
# http.ServerRequest 这个对象通常由HTTP SERVER 建立而非用户手动建立,并且会作为传递给'request'事件监听器第一个参数 此对象的可以触发以下事件: **Event: 'data'** ``` function (chunk) { }``` 当接收到信息体中的一部分时候会发出data 事件。 例如:代表消息体的数据块将作为唯一的参数传递给回调函数。这个时候数据已经按照传输编码进行了解码(不 是字符集编码)。消息体本身是一个字符串,可以使用request.setBodyEncoding()方法设定消息体的编码。 **Event: 'end'** ``` function () { }```...
__label__POS
0.712102
# http.Server 此模块会触发以下事件 **Event: 'request'** ``` function (request, response) { }``` request 是http.ServerRequest 的一个实例,而response 则是http.ServerResponse 的一个实例 **Event: 'connection'** ``` function (stream) { }``` 当一个新的TCP stream 建立后发出此消息。stream 是一个net.Stream 的对象,通常用户不会访问/使用这个事件。 参数stream 也可以在request.connection 中访问...
__label__POS
0.620853
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.799671
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
1.000004
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.999016
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.933511
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.99557
public final class io/matthewnelson/kmp/process/AsyncWriteStream : io/matthewnelson/kmp/process/BufferedWriteStream, java/io/Closeable { public synthetic fun <init> (Ljava/io/OutputStream;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public fun close ()V public final fun closeAsync (Lkotlin/coroutines/Continuatio...
__label__POS
0.993332
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.971659
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.999702
package asteroid const ( INIT = "init" ATTACK = "attack" RANK = "rank" STATUS = "status" ROUND = "round" EGG = "easterEgg" TIME = "time" CLEAR = "clear" CLEAR_ALL = "clearAll" ) var hub *Hub var refresh func() Greet // Used to get title, team, score, time data. // Init is ...
__label__POS
0.911173
package healthy import ( "fmt" "math" "strconv" "github.com/vidar-team/Cardinal/internal/conf" "github.com/vidar-team/Cardinal/internal/dbold" "github.com/vidar-team/Cardinal/internal/locales" "github.com/vidar-team/Cardinal/internal/logger" "github.com/vidar-team/Cardinal/internal/timer" ) // HealthyCheck w...
__label__POS
0.844295
package timer import ( "math" "time" "github.com/gin-gonic/gin" log "unknwon.dev/clog/v2" "github.com/vidar-team/Cardinal/internal/asteroid" "github.com/vidar-team/Cardinal/internal/conf" "github.com/vidar-team/Cardinal/internal/locales" "github.com/vidar-team/Cardinal/internal/logger" "github.com/vidar-tea...
__label__POS
0.710103
package livelog import ( "context" "errors" "sync" ) type Streamer struct { sync.Mutex streams map[int64]*stream } var errStreamNotFound = errors.New("stream: not found") // newStreamer returns a new in-memory log streamer. func newStreamer() *Streamer { return &Streamer{ streams: make(map[int64]*stream), ...
__label__POS
0.704488
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:20 * * ============================================================================. */ // 公共助手函数...
__label__POS
0.884285
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:38 * * ============================================================================. */ //上传配置 re...
__label__POS
0.994535
<?php namespace app\admin\validate; use think\Validate; class Admin extends Validate { /** * 验证规则. */ protected $rule = [ 'username' => 'require|regex:\w{3,12}|unique:admin', 'nickname' => 'require', 'password' => 'require|regex:\S{32}', 'email' => 'require|email|...
__label__POS
0.609101
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:33 * * ============================================================================. */ namespace...
__label__POS
0.79835
""" Simple math problems for bootstrapping RL training. These easy problems help untrained models get some correct answers, providing the variance in rewards needed for GRPO to work. """ import random from typing import Dict, List def generate_simple_arithmetic() -> Dict[str, str]: """Generate a simple arithmet...
__label__POS
0.992912
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:33 * * ============================================================================. */ namespace...
__label__POS
0.740682
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.664026
<?php namespace app\admin\controller\user; use fast\Tree; use app\common\controller\Backend; /** * 会员规则管理. * * @icon fa fa-circle-o */ class Rule extends Backend { /** * @var \app\admin\model\UserRule */ protected $model = null; protected $rulelist = []; protected $multiFields = 'ismenu...
__label__POS
0.864615
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午4:25 * * ============================================================================. */ namespace...
__label__POS
0.613209
<?php namespace app\admin\controller\auth; use app\admin\model\AuthGroup; use app\common\controller\Backend; /** * 管理员日志. * * @icon fa fa-users * @remark 管理员可以查看自己所拥有的权限的管理员日志 */ class Adminlog extends Backend { /** * @var \app\admin\model\AdminLog */ protected $model = null; protected $ch...
__label__POS
0.862732
<!DOCTYPE html> <html> <head> {include file="common/meta" /} <link href="__CDN__/assets/css/user.css?v={$Think.config.site.version}" rel="stylesheet"> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> ...
__label__POS
0.693317
<?php namespace app\api\controller; use app\common\model\User; use app\common\controller\Api; /** * 验证接口. */ class Validate extends Api { protected $noNeedLogin = '*'; protected $layout = ''; protected $error = null; public function _initialize() { parent::_initialize(); } /**...
__label__POS
0.949538
<?php namespace app\api\controller; use app\common\controller\Api; /** * 示例接口. */ class Demo extends Api { //如果$noNeedLogin为空表示所有接口都需要登录才能请求 //如果$noNeedRight为空表示所有接口都需要验证权限才能请求 //如果接口已经设置无需登录,那也就无需鉴权了 // // 无需登录的接口,*表示全部 protected $noNeedLogin = ['test', 'test1']; // 无需鉴权的接口,*表示全部 p...
__label__POS
0.951095
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午4:21 * * ============================================================================. */ namespace...
__label__POS
0.997402
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午4:21 * * ============================================================================. */ namespace...
__label__POS
0.996875
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:33 * * ============================================================================. */ namespace...
__label__POS
0.969301
<?php namespace app\common\library; use think\facade\Log; use think\facade\Config; use app\common\library\token\Driver; /** * Token操作类. */ class Token { /** * @var array Token的实例 */ public static $instance = []; /** * @var object 操作句柄 */ public static $handler; /** * ...
__label__POS
0.998589
<?php namespace app\common\library; use fast\Tree; use think\AddonService; use think\Exception; use app\admin\model\AuthRule; use think\facade\Db; class Menu { /** * 创建菜单 * @param array $menu * @param mixed $parent 父类的name或pid */ public static function create($menu = [], $parent = 0) ...
__label__POS
0.968755
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:33 * * ============================================================================. */ namespace...
__label__POS
0.968542
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:53 * * ============================================================================. */ declare(st...
__label__POS
0.987654
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:33 * * ============================================================================. */ declare(s...
__label__POS
0.961116
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/19 下午3:21 * * ============================================================================. */ namespace...
__label__POS
0.803304
<?php namespace app\common\model; class Version extends BaseModel { // 开启自动写入时间戳字段 protected $autoWriteTimestamp = 'int'; // 定义时间戳字段名 protected $createTime = 'createtime'; protected $updateTime = 'updatetime'; // 定义字段类型 protected $type = [ ]; /** * 检测版本号. * * @param...
__label__POS
0.904997
<?php namespace app\common\model; /** * 会员模型. */ class User extends BaseModel { // 开启自动写入时间戳字段 protected $autoWriteTimestamp = 'int'; // 定义时间戳字段名 protected $createTime = 'createtime'; protected $updateTime = 'updatetime'; // 追加属性 protected $append = [ 'url', ]; /** ...
__label__POS
0.992175
<?php namespace app\common\model; class Attachment extends BaseModel { // 开启自动写入时间戳字段 protected $autoWriteTimestamp = 'int'; // 定义时间戳字段名 protected $createTime = 'createtime'; protected $updateTime = 'updatetime'; // 定义字段类型 protected $type = [ ]; protected $append = [ 'thumb...
__label__POS
0.959577
<?php namespace app\common\model; use think\Model; use think\db\Query; /** * 模型基类. */ class BaseModel extends Model { /** * 查找单条记录. * * @param mixed $data 主键值或者查询条件(闭包) * @param array|string $with 关联预查询 * @param bool $cache 是否缓存 * * @throws \think\db\exceptio...
__label__POS
0.917324
<?php namespace app\common\model; use think\Exception; use think\Model; /** * 配置模型 */ class Config extends Model { // 表名,不含前缀 protected $name = 'config'; // 自动写入时间戳字段 protected $autoWriteTimestamp = false; // 定义时间戳字段名 protected $createTime = false; protected $updateTime = false; //...
__label__POS
0.870785
<?php namespace app\common\model; /** * 分类模型. */ class Category extends BaseModel { // 开启自动写入时间戳字段 protected $autoWriteTimestamp = 'int'; // 定义时间戳字段名 protected $createTime = 'createtime'; protected $updateTime = 'updatetime'; // 追加属性 protected $append = [ 'type_text', 'fl...
__label__POS
0.942944
<?php namespace app\common\model; use think\facade\Cache; /** * 地区数据模型. */ class Area extends BaseModel { /** * 根据经纬度获取当前地区信息. * * @param string $lng 经度 * @param string $lat 纬度 * * @return Area 城市信息 */ public static function getAreaFromLngLat($lng, $lat, $level = 3) {...
__label__POS
0.994472
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +------------------------------------------------...
__label__POS
0.99417
<?php namespace app\common\library\token\driver; use app\common\library\token\Driver; /** * Token操作类. */ class Mysql extends Driver { /** * 默认配置. * * @var array */ protected $options = [ 'table' => 'user_token', 'expire' => 2592000, 'connection' => [], ...
__label__POS
0.997625
<?php namespace app\common\library\token\driver; use app\common\library\token\Driver; /** * Token操作类. */ class Redis extends Driver { protected $options = [ 'host' => '127.0.0.1', 'port' => 6379, 'password' => '', 'select' => 0, 'timeout' => 0, ...
__label__POS
0.954811
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.936377
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.80681
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'auth.admin/index', add_url:...
__label__POS
0.607807
# jQuery cxSelect cxSelect 是基于 jQuery 的多级联动菜单插件,适用于省市、商品分类等联动菜单。 列表数据通过 AJAX 获取,也可以自定义,数据内容使用 JSON 格式。 同时兼容 Zepto,方便在移动端使用。 国内省市县数据来源:[basecss/cityData](https://github.com/basecss/cityData) Date: 2014.03.31 全球主要城市数据来源:整理国内常用网站和软件 Date: 2014.07.29 **版本:** * jQuery v1.7+ | Zepto v1.0+ * jQuery cxSelect v1.4.0 文档:...
__label__POS
0.972006
var toString = function (value, type) { if (typeof value !== 'string') { type = typeof value; if (type === 'number') { value += ''; } else if (type === 'function') { value = toString(value.call(value)); } else { value = ''; } } r...
__label__POS
0.849022
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>helper-demo</title> <script src="../../dist/template-native.js"></script> </head> <body> <h1>辅助方法</h1> <div id="content"></div> <script id="test" type="text/html"> <%=dateFormat(time, 'yyyy<b>年</b> MM月 dd日 hh:mm:ss')%> </script> <script> /** * 对日期进行格式化, ...
__label__POS
0.747
# FAQs # How do I disable the date or time element <small>How do I format ...; How do I add seconds; etc.</small> The picker uses the `format` option to decide what components to show. Set `format` to `LT`, `LTS` or another valid [MomentJs format string](http://momentjs.com/docs/#/displaying/format/) to display certa...
__label__POS
0.96134
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.713237
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2025 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either vers...
__label__POS
0.639519
package com.mzba.fresco.ui; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView; import com.mzba.fresco.R; /** * Created by 06peng on 2015/6/25. */ public class Subsampling...
__label__POS
0.995788
package com.mzba.fresco.ui; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.facebook.drawee.backends.pipeline.Fresco; import com.facebook.drawee.generic.GenericDraweeHierarchy; import com.facebook.drawee.g...
__label__POS
0.802299
package com.mzba.fresco.utils; /** * Created by 06peng on 2015/6/24. */ public class ImageUrlUtils { public static String[] getImageUrls() { String[] urls = new String[] { "https://static.pexels.com/photos/5854/sea-woman-legs-water-medium.jpg", "https://static.pexels.com/...
__label__POS
0.999783
package com.mzba.fresco.ui.widget; import android.content.Context; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.MotionEvent; /** * Found at http://stackoverflow.com/questions/7814017/is-it-possible-to-disable-scrolling-on-a-viewpager. * Convenient way to temporaril...
__label__POS
0.965799
package com.mzba.fresco.utils.cache; /** * Created by 06peng on 2015-07-03. */ import android.content.Context; import java.io.File; public class FileCache { private File cacheDir; public FileCache(Context context) { //Find the dir to save cached images if (android.os.Environment.getExter...
__label__POS
0.866384
export function createDate(y, m, d, h, M, s, ms) { // can't just apply() to create a date: // https://stackoverflow.com/q/181348 var date; // the date constructor remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { // preserve leap years using a full 400 year cycle, then reset da...
__label__POS
0.802851
import { TreeNode, GetPrevNextOptions } from './interface' export function getFirstAvailableNode<R, G, I> ( nodes: Array<TreeNode<R, G, I>> ): TreeNode<R> | null { if (nodes.length === 0) return null const node = nodes[0] if (node.isGroup || node.ignored || node.disabled) { return node.getNext() } retu...
__label__POS
0.864091
function lowBit (n: number): number { return n & -n } export class FinweckTree { l: number min: number ft: number[] /** * @param l length of the array * @param min min value of the array */ constructor (l: number, min: number) { this.l = l this.min = min const ft = new Array(l + 1) ...
__label__POS
0.997207
/* eslint-disable @typescript-eslint/strict-boolean-expressions */ // ref https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/js/dialog.js function isHTMLElement (node: Node): node is HTMLElement { return node instanceof HTMLElement } export function focusFirstDescendant (node: Node): boolean { for...
__label__POS
0.960045
# 说明 1. 本模块已经配置 frpc 相关基础服务,请在刷入前自行修改 frp/frpc.toml 里面的服务器IP地址和端口 (不保证 frp 是最新版本,需要使用最新版请自行前往 frp 官网下载) 2. 本模块包含安卓frpc端开机自动启动和定时启动模块。 3. 定时启动的配置文件可在模块目录下的 config.json 这个文件里面编辑,编辑完成后手动执行 cron_update.sh 立即生效,或者重启生效。 4. adb 端口,ftp 服务,telnet 服务开关配置也在模块目录下的 config.json 5. 附加功能(天玑处理器),检测热点状态,保持热点常开(默认关闭) 6. frp 更多特性请自主前...
__label__POS
0.936537
/** * @author: Dennis Hernández * @webSite: http://djhvscf.github.io/Blog * @version: v1.3.0 */ (function ($) { 'use strict'; var flat = function (element, that) { var result = {}; function recurse(cur, prop) { if (Object(cur) !== cur) { result[prop] = cur; ...
__label__POS
0.720966
/** * @author: Brian Huisman * @webSite: http://www.greywyvern.com * @version: v1.0.0 * JS functions to allow natural sorting on bootstrap-table columns * add data-sorter="alphanum" or data-sorter="numericOnly" to any th * * @update Dennis Hernández <http://djhvscf.github.io/Blog> * @update Duane May */ funct...
__label__POS
0.92044
/** * @author: KingYang * @webSite: https://github.com/kingyang * @version: v1.0.0 */ ! function ($) { 'use strict'; $.extend($.fn.bootstrapTable.defaults, { treeShowField: null, idField: 'id', parentIdField: 'pid', treeVerticalcls: 'vertical', treeVerticalLastcls:...
__label__POS
0.67097
<?php /** * * * * ============================================================================ * * Created by PhpStorm. * * User: Ice * * 邮箱: ice@sbing.vip * * 网址: https://sbing.vip * * Date: 2019/9/20 下午5:29 * * ============================================================================. */ namespace...
__label__POS
0.973472
<?php namespace fast; /** * 版本检测和对比. */ class Version { /** * 检测版本是否的版本要求的数据中. * * @param string $version * @param array $data * * @return bool */ public static function check($version, $data = []) { //版本号以.分隔 $data = is_array($data) ? $data : [$data];...
__label__POS
0.999341
<?php namespace fast; /** * 随机生成类. */ class Random { /** * 生成数字和字母. * * @param int $len 长度 * * @return string */ public static function alnum($len = 6) { return self::build('alnum', $len); } /** * 仅生成字符. * * @param int $len 长度 * * @...
__label__POS
0.995139
<?php namespace fast; /** * RSA签名类. */ class Rsa { public $publicKey = ''; public $privateKey = ''; private $_privKey; /** * * private key. */ private $_pubKey; /** * * public key. */ private $_keyPath; /** * * the keys saving path. */ /** *...
__label__POS
0.983771
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2011 http://thinkphp.cn All rights reserved. // +--------------------------------------------------...
__label__POS
0.603892
<?php namespace fast; use think\facade\Config; /** * 通用的树型类. * * @author XiaoYao <476552238li@gmail.com> */ class Tree { protected static $instance; //默认配置 protected $config = []; public $options = []; /** * 生成树型结构所需要的2维数组. * * @var array */ public $arr = []; /**...
__label__POS
0.939845
<?php namespace fast; /** * 中文转拼音类. */ class Pinyin { protected static $keys = 'a|ai|an|ang|ao|ba|bai|ban|bang|bao|bei|ben|beng|bi|bian|biao|bie|bin|bing|bo|bu|ca|cai|can|cang|cao|ce|ceng|cha|chai|chan|chang|chao|che|chen|cheng|chi|chong|chou|chu|chuai|chuan|chuang|chui|chun|chuo|ci|cong|cou|cu|cuan|cui|cun|cuo...
__label__POS
0.670761
<?php namespace fast; /** * 字符串类. */ class Http { /** * 发送一个POST请求 * * @param string $url 请求URL * @param array $params 请求参数 * @param array $options 扩展参数 * * @return mixed|string */ public static function post($url, $params = [], $options = []) { $re...
__label__POS
0.716272
<?php namespace fast; use ArrayAccess; /** * 表单元素生成 * @class Form * @package fast * @method string token() static 生成Token * @method string label(string $name, string $value = null, array $options = []) static label标签 * @method string input($type, $name, string $value = null, array $options = []) static 按类型生成...
__label__POS
0.977288
package com.xuyi.blog.security; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * 内存限流器测试 * * @author xuyi */ class AntiSpamFilterTest { @Test void testRateLimiterBasicFunctionality() { InMemoryRateLimiter rateLimiter = new InMemoryRateLimiter(); ...
__label__POS
0.949984
package com.xuyi.blog.dto; import lombok.Getter; import lombok.Setter; import org.springframework.data.domain.Page; import java.util.List; /** * 分页响应类 * * @author xuyi */ @Getter @Setter public class PageResponse<T> { private List<T> content; private int page; private int size; private long...
__label__POS
0.969062
package com.xuyi.blog.dto; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 文件上传响应DTO * * @author xuyi */ @Data @NoArgsConstructor @AllArgsConstructor @Schema(description = "文件上传响应") public class FileUploadResponse { ...
__label__POS
0.975598
package com.xuyi.blog.dto; import lombok.Getter; import lombok.Setter; import java.time.LocalDate; import java.util.List; import java.util.Map; /** * 访问统计DTO * * @author xuyi */ @Getter @Setter public class VisitStatsDTO { private Long totalVisits; private Long todayVisits; private Long uniqueV...
__label__POS
0.916527
package com.xuyi.blog.dto; import com.xuyi.blog.entity.Portfolio; import lombok.Getter; import lombok.Setter; import java.time.LocalDateTime; /** * 作品集DTO * * @author xuyi */ @Getter @Setter public class PortfolioDTO { private Long id; private String name; private String description; privat...
__label__POS
0.808154
package com.xuyi.blog.dto; import lombok.Data; import lombok.AllArgsConstructor; import lombok.NoArgsConstructor; import java.time.LocalDateTime; import java.util.List; import java.util.Map; /** * 查询统计DTO * * @author xuyi */ @Data @NoArgsConstructor @AllArgsConstructor public class QueryStatsDTO { /** ...
__label__POS
0.994151
package com.xuyi.blog.dto; import lombok.Getter; import lombok.Setter; /** * 统一API响应格式 * * @author xuyi */ @Getter @Setter public class ApiResponse<T> { private int code; private String message; private T data; private long timestamp; /** * 查询统计信息(可选) */ private QueryStatsDTO q...
__label__POS
0.922387
package com.xuyi.blog.dto; import com.xuyi.blog.entity.FriendLink; import lombok.Getter; import lombok.Setter; import java.time.LocalDateTime; /** * 友链DTO * * @author xuyi */ @Getter @Setter public class FriendLinkDTO { private Long id; private String name; private String url; private Strin...
__label__POS
0.846486
package com.xuyi.blog.util; import jakarta.servlet.http.HttpServletRequest; import lombok.extern.slf4j.Slf4j; /** * IP工具类 * * @author xuyi */ @Slf4j public class IpUtils { private static final String UNKNOWN = "unknown"; private static final String LOCALHOST_IPV4 = "127.0.0.1"; private static final ...
__label__POS
0.910809
package com.xuyi.blog.service; import lombok.extern.slf4j.Slf4j; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Service; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; /...
__label__POS
0.655289
package com.xuyi.blog.config; import com.xuyi.blog.interceptor.VisitInterceptor; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.Web...
__label__POS
0.986857
package com.xuyi.blog.config; import com.xuyi.blog.interceptor.QueryStatsInterceptor; import com.xuyi.blog.interceptor.QueryStatsWebInterceptor; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer; import org.sprin...
__label__POS
0.680758
package com.xuyi.blog.config; import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import...
__label__POS
0.911167
package com.xuyi.blog.config; import org.springframework.cache.CacheManager; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.concurrent.ConcurrentMapCacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;...
__label__POS
0.996228
package com.xuyi.blog.interceptor; import com.xuyi.blog.service.VisitService; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import org.springframe...
__label__POS
0.818705
package com.xuyi.blog.interceptor; import com.xuyi.blog.dto.QueryStatsDTO; import com.xuyi.blog.service.QueryStatsService; import lombok.extern.slf4j.Slf4j; import org.hibernate.resource.jdbc.spi.StatementInspector; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Co...
__label__POS
0.809283