content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package net.countercraft.movecraft.util.hitboxes;
import net.countercraft.movecraft.MovecraftLocation;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.Iterator;
final public class SolidHitBox implements HitBox{
final private int m... | __label__POS | 0.930703 |
package net.countercraft.movecraft.util.functions;
import java.util.Objects;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* Represents a function that accepts four arguments and produces a result.
* This is the four-arity specialization of {@link BiFunction}.
*
* <p>This is a <a h... | __label__POS | 0.722287 |
package net.countercraft.movecraft.util.functions;
import java.util.Objects;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* Represents a function that accepts three arguments and produces a result.
* This is the three-arity specialization of {@link BiFunction}.
*
* <p>This is a <a... | __label__POS | 0.809474 |
package net.countercraft.movecraft.processing.effects;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.List;
@FunctionalInterface
public interface Effect {
/**
* A no-op effect for us... | __label__POS | 0.615474 |
package net.countercraft.movecraft.compat.v1_21_5;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.levelgen.structure.BoundingBox;
import net.minecraft.world.ticks.LevelChunkTicks;
import net.minecraft.wor... | __label__POS | 0.91936 |
package net.countercraft.movecraft.compat.v1_20_6;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.levelgen.structure.BoundingBox;
import net.minecraft.world.ticks.LevelChunkTicks;
import net.minecraft.wor... | __label__POS | 0.762799 |
package net.countercraft.movecraft.compat.v1_21_1;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.levelgen.structure.BoundingBox;
import net.minecraft.world.ticks.LevelChunkTicks;
import net.minecraft.wor... | __label__POS | 0.914894 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.621602 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.67134 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.616517 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.810431 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.749203 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.933646 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.809975 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.994431 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.816813 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Jint;
using Jint.Native;
using Newtonsoft.Json;
namespace BarrageGrab
{
public static class JsEngine
{
/// <summary>
/// 创建一个Js引擎
/// </summary>
... | __label__POS | 0.93034 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.945911 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.787357 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace BarrageGrab
{
/// <summary>
/// 资源文件
/// </summary>
public static class EmbResource
{
static Dictionary<string,string> cac... | __label__POS | 0.807306 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.614458 |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("抖音弹幕监听器")]
[assembly: AssemblyDescription("基于系统代理抓包打造的抖音弹幕服务推送程序,可抓取浏览器直播间,直播伴侣,抖音客户端,的各种弹幕消息。这也是一个对开发者友好的弹幕推送器")]
[as... | __label__POS | 0.609142 |
/*
* 注解:串口数据过滤脚本,可用于自定义配置串口的发送报文
* Tip: 该脚本引擎为Jint,支持的语法请参考官方文档:https://github.com/sebastienros/jint
* 为了 工具环境:
* 1.控制台: console: 控制台输出
* console.log, console.error, console.warn 这些日志将被输出到控制台, 其中error日志将被记录到日志文件
*
* 2.编码器: encoder: 字符串 和 Uint8Array 互转
* encoder.utf8... | __label__POS | 0.903705 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.611641 |
// @@@ START COPYRIGHT @@@
//
// 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 the Apache License, Version 2... | __label__POS | 0.64412 |
//
// PushNotificationManagerExample_SwiftTests.swift
// PushNotificationManagerExample-SwiftTests
//
// Created by BANYAN on 2017/10/25.
// Copyright © 2017年 GREENBANYAN. All rights reserved.
//
import XCTest
@testable import PushNotificationManagerExample_Swift
class PushNotificationManagerExample_SwiftTests: X... | __label__POS | 0.89589 |
//
// NSArray+MASAdditions.h
//
//
// Created by Daniel Hammond on 11/26/13.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
typedef NS_ENUM(NSUInteger, MASAxisType) {
MASAxisTypeHorizontal,
MASAxisTypeVertical
};
@interface NSArray (MASAdditions)
/**
* Creates... | __label__POS | 0.750121 |
//
// NSArray+MASAdditions.h
//
//
// Created by Daniel Hammond on 11/26/13.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
typedef NS_ENUM(NSUInteger, MASAxisType) {
MASAxisTypeHorizontal,
MASAxisTypeVertical
};
@interface NSArray (MASAdditions)
/**
* Creates... | __label__POS | 0.750121 |
//
// NSArray+MASAdditions.h
//
//
// Created by Daniel Hammond on 11/26/13.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
typedef NS_ENUM(NSUInteger, MASAxisType) {
MASAxisTypeHorizontal,
MASAxisTypeVertical
};
@interface NSArray (MASAdditions)
/**
* Creates... | __label__POS | 0.750121 |
//
// TSBlurView.m
// Pods
//
// Created by Felix Krause on 20.08.13.
//
//
#import "TSBlurView.h"
#import <QuartzCore/QuartzCore.h>
@interface TSBlurView ()
@property (nonatomic, strong) UIToolbar *toolbar;
@end
@implementation TSBlurView
- (UIToolbar *)toolbar
{
if (_toolbar == nil) {
_toolbar =... | __label__POS | 0.815965 |
package mysqlutil
import (
"github.com/dolthub/go-mysql-server/sql"
"github.com/dolthub/go-mysql-server/sql/plan"
)
// CauseImplicitCommitBefore returns true if the statement implicitly commits the current transaction:
// https://dev.mysql.com/doc/refman/8.4/en/implicit-commit.html
func CauseImplicitCommitBefore(no... | __label__POS | 0.935958 |
package catalog
import (
"strings"
"github.com/apecloud/myduckserver/transpiler"
"github.com/dolthub/vitess/go/vt/sqlparser"
)
func FullSchemaName(catalog, schema string) string {
if catalog == "" {
return `"` + schema + `"`
}
// why?
if schema == "" {
return `"` + catalog + `"`
}
return `"` + catalog ... | __label__POS | 0.992517 |
using System.Drawing;
using System.Drawing.Drawing2D;
namespace System.Windows.Forms
{
public static class ControlUIExtensions
{
/// <summary>
/// 将控件四角设置为圆角
/// 若应用在尺寸会变化的控件上(如窗体),应重写OnResize方法或添加Resize事件,使其每次尺寸变化都能重新绘制界面
/// </summary>
/// <param name="control"></para... | __label__POS | 0.638358 |
package pgserver
import (
"regexp"
"strings"
)
// queryPatterns maps regular expressions to SQL queries to handle PostgreSQL-specific queries
// that DuckDB does not support. When a query matches a pattern, the corresponding SQL query is returned.
//
// Example:
// SELECT pg_type.oid, enumlabel
// FROM pg_enum
// J... | __label__POS | 0.943075 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace System.Windows.Forms
{
public static class DataGridViewExtensions
{
/// <summary>
/// 通过表格内数据生成List<Dictionary<string, object>>格式的表数据
... | __label__POS | 0.906504 |
package myarrow
import (
"github.com/apache/arrow-go/v18/arrow"
"github.com/apecloud/myduckserver/pgtypes"
"github.com/dolthub/go-mysql-server/sql"
"github.com/dolthub/vitess/go/vt/proto/query"
)
func ToArrowSchema(s sql.Schema, dictionary ...int) (*arrow.Schema, error) {
fields := make([]arrow.Field, len(s))
f... | __label__POS | 0.803947 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ApeFree.ApeForms.Core.Controls
{
[ToolboxItem(true)]
... | __label__POS | 0.666004 |
using System;
using System.Drawing;
namespace ApeFree.ApeForms.Forms.Notifications
{
public partial class Notification
{
/// <summary>
/// 通知栏之间的间隔距离
/// </summary>
public static int SpacingDistance { get; set; } = 10;
/// <summary>
/// 通知栏默认大小
/// </su... | __label__POS | 0.857918 |
# 结构校验
结构迁移后,您可使用两种校验方式。一种是我们自带的,一种是第三方 [liquibase](./check_liquibase.md)。本文档主要介绍前者。
# 示例: MySQL -> MySQL
参考 [任务模版](../../templates/mysql_to_mysql.md)
# 校验结果
以源端结构为基准,校验结果包括 miss,diff,extra(目标多出)等部分,以 sql 的方式呈现。`miss.log` 中包含 src_sql;`diff.log` 中包含 src_sql 和 dst_sql;`extra.log` 中包含 dst_sql。
- `miss.log`
```
[("ta... | __label__POS | 0.921454 |
package logrepl
import (
"fmt"
"strings"
"github.com/jackc/pglogrepl"
"github.com/jackc/pgx/v5/pgtype"
"github.com/apecloud/myduckserver/catalog"
"github.com/apecloud/myduckserver/configuration"
"github.com/apecloud/myduckserver/pgtypes"
)
func generateCreateTableStmt(msg *pglogrepl.RelationMessageV2) (strin... | __label__POS | 0.686496 |
# Tutorial: Accessing MyDuck Server with psycopg, pyarrow, and polars
## 0. Connecting to MyDuck Server using psycopg
`psycopg` is a popular PostgreSQL adapter for Python. Here is how you can connect to MyDuck Server using `psycopg`:
```python
import psycopg
with psycopg.connect("dbname=postgres user=postgres host=... | __label__POS | 0.9992 |
using System;
using System.Collections.Generic;
using System.Data;
using Npgsql;
using System.IO;
public class PGTest
{
public class Tests
{
private NpgsqlConnection conn;
private NpgsqlCommand cmd;
private List<Test> tests = new List<Test>();
public void Connect(string ip, int... | __label__POS | 0.909752 |
import java.io.*;
import java.sql.*;
import java.util.List;
import java.util.LinkedList;
public class PGTest {
public static class Tests {
private Connection conn;
private Statement st;
private List<Test> tests = new LinkedList<>();
public void connect(String ip, int port, String u... | __label__POS | 0.949345 |
require 'pg'
class PGTest
class Tests
def initialize
@conn = nil
@tests = []
end
def connect(ip, port, user, password)
begin
@conn = PG.connect(host: ip, port: port, user: user, password: password, dbname: 'postgres')
rescue PG::Error => e
raise "Connection failed... | __label__POS | 0.819491 |
using System;
using System.Collections.Generic;
using System.Data;
using MySql.Data.MySqlClient;
using System.IO;
public class MySQLTest
{
public class Tests
{
private MySqlConnection conn;
private MySqlCommand cmd;
private List<Test> tests = new List<Test>();
public void Conne... | __label__POS | 0.931122 |
import java.io.*;
import java.sql.*;
import java.util.List;
import java.util.LinkedList;
public class MySQLTest {
public static class Tests {
private Connection conn;
private Statement st;
private List<Test> tests = new LinkedList<>();
public void connect(String ip, int port, Strin... | __label__POS | 0.961345 |
require 'mysql2'
class MySQLTest
class Tests
def initialize
@conn = nil
@tests = []
end
def connect(ip, port, user, password)
begin
@conn = Mysql2::Client.new(host: ip, port: port, username: user, password: password)
rescue Mysql2::Error => e
raise "Connection fai... | __label__POS | 0.830311 |
# Check structures
After structure migration, you can choose from two methods for verification. One is provided by us, and the other is an open source tool called [Liquibase](./check_liquibase.md). This document primarily focuses on the former one.
# Example: MySQL -> MySQL
Refer to [task templates](../../templates/m... | __label__POS | 0.760274 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.87304 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.667376 |
/*
* 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 the Apache License, Version 2.0 (the
* "License"); you ... | __label__POS | 0.638246 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.apecode.mapper.ArticleMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="cn.apecode.entity.Article">
<id column="id" prope... | __label__POS | 0.902606 |
package cn.apecode.mapper;
import cn.apecode.dto.FriendLinkBackDto;
import cn.apecode.dto.FriendLinkFrontDto;
import cn.apecode.entity.FriendLink;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatispl... | __label__POS | 0.975903 |
package cn.apecode.mapper;
import cn.apecode.dto.TalkBackDto;
import cn.apecode.dto.TalkBackOnlyDto;
import cn.apecode.dto.TalkFrontDto;
import cn.apecode.entity.Talk;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apach... | __label__POS | 0.985947 |
package cn.apecode.mapper;
import cn.apecode.dto.PhotoAlbumPictureCountDto;
import cn.apecode.dto.PictureBackDto;
import cn.apecode.entity.Picture;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.P... | __label__POS | 0.980606 |
package cn.apecode.mapper;
import cn.apecode.dto.UserInfoBackDto;
import cn.apecode.entity.UserAuth;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* ... | __label__POS | 0.99187 |
package cn.apecode.mapper;
import cn.apecode.dto.*;
import cn.apecode.entity.Comment;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* 文章评论 Mapper 接口
... | __label__POS | 0.996143 |
package cn.apecode.mapper;
import cn.apecode.dto.MessageBackDto;
import cn.apecode.dto.MessageFrontDto;
import cn.apecode.entity.Message;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extens... | __label__POS | 0.986365 |
package cn.apecode.mapper;
import cn.apecode.dto.PhotoAlbumBackDto;
import cn.apecode.dto.PhotoAlbumFrontDto;
import cn.apecode.entity.PhotoAlbum;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatispl... | __label__POS | 0.97093 |
package cn.apecode.mapper;
import cn.apecode.dto.CategoryArticleCountDto;
import cn.apecode.dto.CategoryBackDto;
import cn.apecode.dto.CategoryFrontDto;
import cn.apecode.entity.Category;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapp... | __label__POS | 0.983393 |
package cn.apecode.mapper;
import cn.apecode.dto.NoticeBackDto;
import cn.apecode.dto.NoticeFrontDto;
import cn.apecode.entity.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import o... | __label__POS | 0.996569 |
package cn.apecode.mapper;
import cn.apecode.dto.*;
import cn.apecode.entity.Article;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* 文章信息 Mapper 接口
... | __label__POS | 0.996788 |
package cn.apecode.mapper;
import cn.apecode.dto.TagBackDto;
import cn.apecode.entity.Tag;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.... | __label__POS | 0.988767 |
package cn.apecode.mapper;
import cn.apecode.dto.RoleDto;
import cn.apecode.dto.RoleResourceDto;
import cn.apecode.entity.Role;
import cn.apecode.vo.ConditionVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java... | __label__POS | 0.989603 |
package cn.apecode.service;
import cn.apecode.dto.TalkBackDto;
import cn.apecode.dto.TalkBackOnlyDto;
import cn.apecode.dto.TalkFrontDto;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.entity.Talk;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.TalkVo;
import cn.ape... | __label__POS | 0.986164 |
package cn.apecode.service;
import cn.apecode.dto.PhotoAlbumInfoDto;
import cn.apecode.dto.PictureBackDto;
import cn.apecode.dto.PictureFrontDto;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.entity.Picture;
import cn.apecode.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import org.spr... | __label__POS | 0.9808 |
package cn.apecode.service;
import cn.apecode.dto.MessageBackDto;
import cn.apecode.dto.MessageFrontDto;
import cn.apecode.entity.Message;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.MessageVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.ReviewVo;
import com.baomidou.mybatisplus.extension.service.... | __label__POS | 0.981244 |
package cn.apecode.service;
import cn.apecode.dto.CategoryBackDto;
import cn.apecode.dto.CategoryFrontDto;
import cn.apecode.dto.CategoryOptionDto;
import cn.apecode.entity.Category;
import cn.apecode.vo.CategoryVo;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import com.baomidou.mybatisplus.exte... | __label__POS | 0.990153 |
package cn.apecode.service;
import cn.apecode.dto.TagBackDto;
import cn.apecode.dto.TagDto;
import cn.apecode.dto.TagFrontDto;
import cn.apecode.entity.Tag;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.TagVo;
import com.baomidou.mybatisplus.extension.service.IService;
import... | __label__POS | 0.991727 |
package cn.apecode.service;
import cn.apecode.dto.NoticeBackDto;
import cn.apecode.dto.NoticeFrontDto;
import cn.apecode.entity.Notice;
import cn.apecode.vo.DeleteVo;
import cn.apecode.vo.NoticeVo;
import cn.apecode.vo.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**... | __label__POS | 0.995641 |
package cn.apecode.service;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.dto.UserInfoFrontDto;
import cn.apecode.entity.UserInfo;
import cn.apecode.vo.QQLoginVo;
import cn.apecode.vo.SaveOrUnbindEmailVo;
import cn.apecode.vo.UserInfoVo;
import cn.apecode.vo.UserRoleVo;
import com.baomidou.mybatisplus.ext... | __label__POS | 0.981973 |
package cn.apecode.service;
import cn.apecode.dto.RoleDto;
import cn.apecode.dto.UserRoleDto;
import cn.apecode.entity.Role;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.RoleVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
*... | __label__POS | 0.991897 |
package cn.apecode.service;
import cn.apecode.dto.CommentBackDto;
import cn.apecode.dto.CommentFrontDto;
import cn.apecode.dto.ReplyDto;
import cn.apecode.entity.Comment;
import cn.apecode.vo.CommentVo;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.ReviewVo;
import com.baomido... | __label__POS | 0.979941 |
package cn.apecode.service;
import org.springframework.data.domain.Sort;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.GeoResults;
import org.springframework.data.geo.Point;
import org.springframework.data.redis.connection.RedisGeoCommands;
import java.util.List;
import java.util.M... | __label__POS | 0.99904 |
package cn.apecode.service;
import cn.apecode.dto.UserInfoBackDto;
import cn.apecode.dto.UserInfoDto;
import cn.apecode.entity.UserAuth;
import cn.apecode.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 用户账号 服务类
* </p>
*
* @author apecode
* @since 2022-05-26
*/
public interface Us... | __label__POS | 0.991661 |
package cn.apecode.service;
import cn.apecode.dto.PhotoAlbumBackDto;
import cn.apecode.dto.PhotoAlbumFrontDto;
import cn.apecode.entity.PhotoAlbum;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.PageResult;
import cn.apecode.vo.PhotoAlbumVo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <... | __label__POS | 0.992288 |
package cn.apecode.service;
import cn.apecode.common.utils.ResponseCode;
import cn.apecode.dto.LabelOptionDto;
import cn.apecode.dto.UserMenuDto;
import cn.apecode.entity.Menu;
import cn.apecode.vo.MenuVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 后台菜单 服务类
* </... | __label__POS | 0.982932 |
package cn.apecode.service;
import cn.apecode.dto.*;
import cn.apecode.entity.Article;
import cn.apecode.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
* <p>
* 文章信息 服务类
* </p>
*
* @author apecode
* @since 2022... | __label__POS | 0.994126 |
package cn.apecode.service;
import cn.apecode.dto.BlogBackInfoDto;
import cn.apecode.dto.BlogHomeInfoDto;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.entity.Website;
import cn.apecode.vo.WebsiteConfigVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart... | __label__POS | 0.99323 |
package cn.apecode.service;
import cn.apecode.dto.FriendLinkBackDto;
import cn.apecode.dto.FriendLinkFrontDto;
import cn.apecode.entity.FriendLink;
import cn.apecode.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 友情链接 服务类
* </p>
*
* @author apecode
* @since... | __label__POS | 0.989522 |
package cn.apecode.service;
import cn.apecode.dto.LabelOptionDto;
import cn.apecode.dto.ResourceDto;
import cn.apecode.entity.Resource;
import cn.apecode.vo.ConditionVo;
import cn.apecode.vo.ResourceVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 资源信息 服务类
* </p>
... | __label__POS | 0.991604 |
package cn.apecode.utils;
import cn.apecode.common.constant.SocialLoginConst;
import cn.apecode.common.exception.BizException;
import cn.apecode.dto.QQTokenDto;
import cn.apecode.vo.QQLoginVo;
import com.alibaba.fastjson2.JSON;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
imp... | __label__POS | 0.930198 |
package cn.apecode.utils;
import cn.apecode.common.exception.BizException;
import com.anji.captcha.model.common.ResponseModel;
import com.anji.captcha.model.vo.CaptchaVO;
import com.anji.captcha.service.CaptchaService;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.sprin... | __label__POS | 0.990632 |
package cn.apecode.service.impl;
import cn.apecode.common.enums.EmailTypeEnum;
import cn.apecode.common.utils.SecurityUtils;
import cn.apecode.dto.MailLogBackDto;
import cn.apecode.entity.MailLog;
import cn.apecode.mapper.MailLogMapper;
import cn.apecode.service.MailLogService;
import cn.apecode.utils.PageUtils;
impor... | __label__POS | 0.773513 |
package cn.apecode.service.impl;
import com.anji.captcha.service.CaptchaCacheService;
import org.springframework.data.redis.core.StringRedisTemplate;
import javax.annotation.Resource;
import java.util.concurrent.TimeUnit;
/**
* @description: 滑动验证码缓存
* @author: apecode
* @date: 2022-06-14 18:37
**/
public class C... | __label__POS | 0.997697 |
package cn.apecode.service.impl;
import cn.apecode.service.RedisService;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Sort;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.GeoResults;
import org.springframework.data.geo.Point;
import org.springframewor... | __label__POS | 0.820856 |
package cn.apecode.service.impl;
import cn.apecode.common.exception.BizException;
import cn.apecode.common.utils.SecurityUtils;
import cn.apecode.dto.LoginLogBackDto;
import cn.apecode.entity.LoginLog;
import cn.apecode.mapper.LoginLogMapper;
import cn.apecode.service.LoginLogService;
import cn.apecode.utils.PageUtils... | __label__POS | 0.69062 |
package cn.apecode.strategy.context;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.strategy.UploadFileStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframewor... | __label__POS | 0.885968 |
package cn.apecode.strategy.impl;
import cn.apecode.common.exception.BizException;
import cn.apecode.common.utils.FileUtils;
import cn.apecode.dto.UploadFileInfoDto;
import cn.apecode.strategy.UploadFileStrategy;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
im... | __label__POS | 0.943106 |
package cn.apecode.strategy.impl;
import cn.apecode.utils.OSSConfigYml;
import cn.apecode.dto.UploadFileInfoDto;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.VoidResult;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.In... | __label__POS | 0.933916 |
package cn.apecode.strategy.impl;
import cn.apecode.common.exception.BizException;
import cn.apecode.dto.UploadFileInfoDto;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.io.*;
import java.nio.file.Files;
/**
* @description: 本地上传实现类
* @author: ... | __label__POS | 0.931048 |
package cn.apecode.websocket.service;
import cn.apecode.websocket.pojo.OnlineUser;
import java.security.Principal;
import java.util.List;
/**
* @author apecode
* @description 聊天室服务类
* @date 2/7/2023 PM6:40
*/
public interface ChatMessageService {
/**
* @description: 添加在线用户
* @param onlineUserVo
... | __label__POS | 0.980211 |
package cn.apecode.websocket.config;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.ChannelRegistration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.scheduling.co... | __label__POS | 0.869601 |
package cn.apecode.websocket.utils;
import cn.apecode.common.utils.CommonUtils;
import cn.apecode.common.utils.IpUtils;
import cn.apecode.websocket.pojo.VisitorUser;
import javax.servlet.http.HttpServletRequest;
import static cn.apecode.common.constant.CommonConst.DEFAULT_AVATAR;
import static cn.apecode.common.cons... | __label__POS | 0.999167 |
package cn.apecode.websocket.service.impl;
import cn.apecode.service.RedisService;
import cn.apecode.websocket.service.SystemInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Service;
import static cn.apecode.comm... | __label__POS | 0.976274 |
package cn.apecode.auth.handler;
import org.springframework.security.access.AccessDecisionManager;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.authentication.InsufficientAuthenticationException;
import... | __label__POS | 0.930808 |
-- add column f_2
if (schema == "lua_test" and tb == "add_column_test")
then
after.f_2 = 1000
end
-- drop column f_2
if (schema == "lua_test" and tb == "drop_column_test")
then
after.f_2 = nil
end
-- change value of column f_1
if (schema == "lua_test" and tb == "change_column_value_test")
then
after.f_1 ... | __label__POS | 0.723743 |
package cn.apecode.auth.handler;
import cn.apecode.common.utils.ResponseCode;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.AuthenticationFailureHandler;
import org.springframe... | __label__POS | 0.96473 |
package cn.apecode.auth.handler;
import cn.apecode.common.utils.ResponseCode;
import com.alibaba.fastjson.JSON;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;
import javax.ser... | __label__POS | 0.929775 |
-- add column f_2
if (schema == "lua_test" and tb == "add_column_test")
then
after.f_2 = 1000
end
-- drop column f_2
if (schema == "lua_test" and tb == "drop_column_test")
then
after.f_2 = nil
end
-- change value of column f_1
if (schema == "lua_test" and tb == "change_column_value_test")
then
after.f_1 ... | __label__POS | 0.723743 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.