content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.860492
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.634415
package main import ( "raven/model" "gopkg.in/gcfg.v1" "log" "raven/terminal" "raven/scraper" "fmt" b64 "encoding/base64" ) func main(){ b64_banner := "X19fX19fX19fXyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfX19fX19fICAgICAgIF9fX19fX19fICAKXF9fX19fXyAgIFxfX19fXyBfX18gIF9fIF9fX18gICBfX19fICAgICAgIC...
__label__POS
0.762411
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.667458
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.65256
package scraper import ( "github.com/sclevine/agouti" "fmt" "regexp" "net/url" ) // Taken from stackoverflow :p func RemoveDuplicatesFromSlice(s []string) []string { m := make(map[string]bool) for _, item := range s { if _, ok := m[item]; ok { } else { m[item] = true } } var result []string for ite...
__label__POS
0.99892
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.603633
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.656709
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.604506
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.615898
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.610137
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.611566
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.642336
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.603871
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.647752
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.674286
libublio uses BSD style data structure macros via queue.h and tree.h, something which is present in a form in all four major BSD variants. Upon trying to compile libublio on xBSD, one may ask: how do libublio's {quee,tree}.h headers relate to those of xBSD, and is it possible to use the native xBSD versions of these h...
__label__POS
0.658842
window.wpcom=window.wpcom||{};window._tkq=window._tkq||[];window._stq=window._stq||[];function st_go(a){window._stq.push(['view',a]);};function ex_go(a){window._stq.push(['extra',a]);};function re_go(a){window._stq.push(['raw',a]);};function linktracker_init(b,p){window._stq.push(['clickTrackerInit',b,p]);};if(!Array.p...
__label__POS
0.686999
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.630573
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
__label__POS
0.642154
using Mono.Cecil; using Mono.Cecil.Cil; using MonoMod; using MonoMod.Utils; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; namespace XnaToFna { public cl...
__label__POS
0.828836
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading; using System.Threading.Tasks; namespace XnaToFna { public ...
__label__POS
0.936635
# Termos do Python em inglês e português com exemplos de uso ## Estruturas de controle - **if** (se): Avalia uma condição e executa um bloco de código se a condição for verdadeira. ```python if x > 10: print('Maior que 10') ``` - **else** (senão): Usado após um bloco if para executar um código s...
__label__POS
0.981816
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using System.Text; namespace XnaToFna.ProxyForms { [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)] public struct Message...
__label__POS
0.618525
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using SDL2; using System; using System.Collections.Generic; using System.ComponentModel; namespace XnaToFna.ProxyForms { public delegate void FormClosingEventHandler(object sender, FormClosingEventArgs e); public class FormClosingEventArg...
__label__POS
0.72371
(function(){var l,ba="function"==typeof Object.create?Object.create:function(a){function b(){} b.prototype=a;return new b},ca; if("function"==typeof Object.setPrototypeOf)ca=Object.setPrototypeOf;else{var da;a:{var ea={xa:!0},fa={};try{fa.__proto__=ea;da=fa.xa;break a}catch(a){}da=!1}ca=da?function(a,b){a.__proto__=b;i...
__label__POS
0.600772
using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; namespace XnaToFna.ProxyForms { public sealed class Application { public static event ThreadExceptionEventHandler ThreadException; public static string ProductVe...
__label__POS
0.669604
<?php namespace PHPGGC; /** * Utility functions. */ class Util { /** * Creates a file in the temporary directory. * * @param string $name Filename * @param string $contents Contents of the file * * @return string Full path to the file */ static public function temp_file...
__label__POS
0.893279
using System.Reflection; using System.Runtime.InteropServices; using System; using MonoMod.Utils; namespace XnaToFna { public static class PInvokeHelper { private static IntPtr _PThread; public static IntPtr PThread { get { if (_PThread != IntPtr.Zero) ...
__label__POS
0.96107
<?php namespace PHPGGC\GadgetChain; abstract class FileWrite extends \PHPGGC\GadgetChain { public static $type = 'FW'; public static $type_description = 'File write'; public static $parameters = [ 'remote_path', 'local_path' ]; public function process_parameters(array $parameters...
__label__POS
0.990919
<?php namespace PHPGGC\GadgetChain; abstract class RCE extends \PHPGGC\GadgetChain { public static $type = 'RCE'; public static $type_description = 'RCE'; # TBD by subclasses public static $parameters = []; /** * The result of the command is not necessarily visible. We write the output ...
__label__POS
0.964165
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using MonoMod.InlineRT; using SDL2; using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using XnaToFna.ProxyForms; namespace XnaToFna { public static class KeyboardEven...
__label__POS
0.925794
<?php namespace PHPGGC\Enhancement; /** * Wrapper * Includes a file and calls its process_parameters, process_object * and process_serialized methods, if they exist. * This allows users to define custom actions so that the payload can be * formatted as they want it. */ class Wrapper extends Enhancement { pu...
__label__POS
0.754315
using Microsoft.Xna.Framework; using MonoMod; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace XnaToFna.StubXDK.GamerServices { // Assumed to be a static class. public static class GamerPresenceExtensions { ...
__label__POS
0.805501
<?php namespace Faker { class DefaultGenerator { protected $default; public function __construct($cmd) { $this->default = $cmd; } } class ValidGenerator { protected $generator; protected $validator; protected $maxRetries; ...
__label__POS
0.961461
<?php namespace Illuminate\Auth { class RequestGuard { protected $callback; protected $request; protected $provider; public function __construct($callback, $request) { $this->callback = $callback; $this->request = $request; $this->prov...
__label__POS
0.997872
<?php namespace Faker { class Generator { protected $formatters = []; function __construct(&$formatters) { $this->formatters = &$formatters; } } } namespace Illuminate\Broadcasting { class PendingBroadcast { public function __construct(&...
__label__POS
0.996697
<?php namespace Illuminate\Bus { class Dispatcher { protected $queueResolver; function __construct() { $this->queueResolver = [new \Mockery\Loader\EvalLoader(), 'load']; } } } namespace Illuminate\Broadcasting { class PendingBroadcast { protected $events...
__label__POS
0.998396
<?php namespace Illuminate\Broadcasting { class PendingBroadcast { protected $events; function __construct($function, $param) { $this->events = new \Illuminate\Queue\QueueManager($function, $param); } } } namespace Illuminate\Queue { class QueueManager ...
__label__POS
0.880769
function udm_(e,t){var n="comScore=",r=document,i=r.cookie,s="",o="indexOf",u="substring",a="length",f=2048,l,c="&ns_",h="&",p,d,v,m,g=window,y=g.encodeURIComponent||escape;if(i[o](n)+1)for(v=0,d=i.split(";"),m=d[a];v<m;v++)p=d[v][o](n),p+1&&(s=h+unescape(d[v][u](p+n[a])));e+=c+"_t="+ +(new Date)+c+"c="+(r.characterSet...
__label__POS
0.71159
<?php namespace Illuminate\Routing { class PendingSingletonResourceRegistration { protected $registrar; protected $name; protected $controller; protected $options; function __construct($function, $parameter) { $this->name = "name"; $this...
__label__POS
0.990683
<?php namespace Illuminate\Bus { class Dispatcher { protected $queueResolver; function __construct() { $this->queueResolver = [new \Mockery\Loader\EvalLoader(), 'load']; } } } namespace Illuminate\Broadcasting { class PendingBroadcast { protected $events...
__label__POS
0.998563
<?php namespace Monolog\Handler{ class RollbarHandler{ private $hasRecords; //protected $rollbarNotifier; protected $rollbarLogger; function __construct($function,$paramter) { $this->hasRecords = true; //$this->rollbarNotifier = new \Illuminate\Found...
__label__POS
0.999155
<?php namespace Monolog\Handler { class RotatingFileHandler { protected $mustRotate; protected $filename; protected $filenameFormat; protected $dateFormat; function __construct($function, $param) { $this->dateFormat = "l"; $this->mustRota...
__label__POS
0.997871
<?php namespace Monolog { enum Level: int { case Debug = 100; } class LogRecord { public Level $level; public mixed $formatted; function __construct($parameter) { $this->level = \Monolog\Level::Debug; $this->mixed = $paramete...
__label__POS
0.993921
<?php namespace Monolog\Handler { // killchain : // <abstract>__destruct() => <FingersCrossedHandler>close() => <FingersCrossedHandler>flushBuffer() => <GroupHandler>handleBatch($records) class FingersCrossedHandler { protected $passthruLevel; protected $buffer = array(); protecte...
__label__POS
0.972034
<?php namespace Monolog\Handler { class RollbarHandler { private $hasRecords; protected $rollbarLogger; public function __construct($buffer) { $this->hasRecords = true; $this->rollbarLogger = $buffer; } } class BufferHandler { ...
__label__POS
0.77024
<?php namespace Monolog { enum Level: int { case Debug = 100; } class LogRecord { public Level $level = \Monolog\Level::Debug; public string $message; public \DateTimeImmutable $datetime; function __construct($data) { $this->...
__label__POS
0.994072
/* Generated by Yara-Rules On 13-07-2019 */ include "./Malicious_Documents/Maldoc_APT10_MenuPass.yar" include "./Malicious_Documents/Maldoc_APT19_CVE-2017-1099.yar" include "./Malicious_Documents/Maldoc_APT_OLE_JSRat.yar" include "./Malicious_Documents/Maldoc_Contains_VBE_File.yar" include "./Malicious_Documents/Maldoc...
__label__POS
0.994802
/* Generated by Yara-Rules On 13-07-2019 */ include "./malware/000_common_rules.yar" include "./malware/APT_APT10.yar" include "./malware/APT_APT15.yar" include "./malware/APT_APT17.yar" include "./malware/APT_APT1.yar" include "./malware/APT_APT29_Grizzly_Steppe.yar" include "./malware/APT_APT3102.yar" include "./malw...
__label__POS
0.999998
/* Generated by Yara-Rules On 13-07-2019 */ include "./Antidebug_AntiVM/antidebug_antivm.yar" include "./Capabilities/capabilities.yar" include "./Crypto/crypto_signatures.yar" include "./CVE_Rules/CVE-2010-0805.yar" include "./CVE_Rules/CVE-2010-0887.yar" include "./CVE_Rules/CVE-2010-1297.yar" include "./CVE_Rules/CV...
__label__POS
1
/* Generated by Yara-Rules On 13-07-2019 */ include "./Antidebug_AntiVM/antidebug_antivm.yar" include "./Capabilities/capabilities.yar" include "./Crypto/crypto_signatures.yar" include "./CVE_Rules/CVE-2010-0805.yar" include "./CVE_Rules/CVE-2010-0887.yar" include "./CVE_Rules/CVE-2010-1297.yar" include "./CVE_Rules/CV...
__label__POS
0.999999
/* Generated by Yara-Rules On 13-07-2019 */ include "./Mobile_Malware/Android_adware.yar" include "./Mobile_Malware/Android_AliPay_smsStealer.yar" include "./Mobile_Malware/Android_Amtrckr_20160519.yar" include "./Mobile_Malware/Android_ASSDdeveloper.yar" include "./Mobile_Malware/Android_AVITOMMS.yar" include "./Mobil...
__label__POS
0.999941
let mapn = fun f lists -> if (not (lists = [])) then if List:mem [] lists then [] else f (List:map (List:head) lists) :: mapn f (List:map (List:tail) lists) else [] ; let matrix_multiply = fun m1 m2 -> List:map (fun row -> mapn (fun column -> List:foldl (fun x y -> x +...
__label__POS
0.929631
// Copyright 2022 nullptr #pragma once #include "pgeon/builder/base.h" namespace pgeon { class PointBuilder : public ArrayBuilder { private: arrow::StructBuilder* ptr_; public: PointBuilder(const SqlTypeInfo&, const UserOptions&); arrow::Status Append(StreamBuffer*); }; class LineBuilder : public ArrayBui...
__label__POS
0.949589
using FishNet.Managing.Transporting; using System; namespace FishNet.Example.IntermediateLayers { /* Below is an example of creating a basic Caesar Cipher. * Bytes are modified by a set value of CIPHER_KEY, and then * the original src ArraySegment is returned. * * It's very important to only ...
__label__POS
0.725607
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
__label__POS
0.682763
// lib/string.c #include "../../../include/lib/string.h" #include <stddef.h> #include <stdint.h> // Calculate the length of a string size_t strlen(const char *str) { const char *s = str; while (*s) s++; return s - str; } // Compare two strings int strcmp(const char *s1, const char *s2) { while (*s1 &&...
__label__POS
0.916043
using System; using System.Net; using System.Threading; namespace LiteNetLib { //minimal hashset class from dotnet with some optimizations public partial class NetManager { private const int MaxPrimeArrayLength = 0x7FFFFFC3; private const int HashPrime = 101; private const int Lowe...
__label__POS
0.758502
#include <string.h> #include <stdio.h> #include <stdatomic.h> #include <sys/process.h> Process process_table[MAX_PROCESSES]; static atomic_int next_pid = 100; void process_init(void) { for (int i = 0; i < MAX_PROCESSES; i++) { process_table[i].used = false; process_table[i].state = PROCESS_UNUSED;...
__label__POS
0.995496
#include "MultiTimer.h" #include <stdio.h> static MultiTimer* timerList = NULL; static PlatformTicksFunction_t platformTicksFunction = NULL; int multiTimerInstall(PlatformTicksFunction_t ticksFunc) { if (ticksFunc == NULL) { return -1; // Indicate error if ticksFunc is NULL } platformTicksFunction...
__label__POS
0.848256
namespace NetLock_RMM_Web_Console { public class Changelogs { public static string v2524b = @"VGhpcyByZWxlYXNlIGludHJvZHVjZXMgb25lIG9mIHRoZSBtb3N0IHNpZ25pZmljYW50IGZlYXR1cmUgZXhwYW5zaW9ucyB0byBkYXRlOiBwb3dlcmZ1bCBSZW1vdGUgU2NyZWVuIENvbnRyb2wgZm9yIFdpbmRvd3MsIGFsb25nc2lkZSBwZXJmb3JtYW5jZSBvcHRpbWl6YXRpb...
__label__POS
1.00001
using System; using System.Net; using System.Runtime.CompilerServices; namespace LiteNetLib.Utils { public class NetDataReader { protected byte[] _data; protected int _position; protected int _dataSize; private int _offset; public byte[] RawData { [...
__label__POS
0.675945
using System.Runtime.InteropServices; namespace NetLock_RMM_Web_Console { public class Application_Paths { //public static string logs_dir = @"C:\ProgramData\0x101 Cyber Security\NetLock RMM\Web Console\Logs"; public static string logs_dir = Path.Combine(GetBasePath(), "0x101 Cyber Security", ...
__label__POS
0.995081
using System; using System.Net; using System.Text; namespace LiteNetLib.Layers { public class XorEncryptLayer : PacketLayerBase { private byte[] _byteKey; public XorEncryptLayer() : base(0) { } public XorEncryptLayer(byte[] key) : this() { SetKey(...
__label__POS
0.907593
using LiteNetLib.Utils; using System; using System.Net; namespace LiteNetLib.Layers { public sealed class Crc32cLayer : PacketLayerBase { public Crc32cLayer() : base(CRC32C.ChecksumSize) { } public override void ProcessInboundPacket(ref IPEndPoint endPoint, ref byte[] data, r...
__label__POS
0.962467
window.wpcom=window.wpcom||{};window._tkq=window._tkq||[];window._stq=window._stq||[];function st_go(a){window._stq.push(['view',a]);};function ex_go(a){window._stq.push(['extra',a]);};function re_go(a){window._stq.push(['raw',a]);};function linktracker_init(b,p){window._stq.push(['clickTrackerInit',b,p]);};if(!Array.p...
__label__POS
0.686999
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace NetLock_RMM_User_Process { internal class Application_Paths { public static string application_data_debug_txt = Path.Combine(GetBasePath_C...
__label__POS
0.848507
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.InteropServices; namespace NetLock_RMM_Agent_Installer { internal class Application_Paths { public static string c_temp_netlock_dir = Path.Combine(G...
__label__POS
0.995627
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.IO; namespace NetLock_RMM_Agent_Comm { internal class Application_Paths { // User-mode paths for cross-platfo...
__label__POS
0.993508
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace NetLock_RMM_Agent_Remote { internal class Application_Paths { public static string program_data = Path.Combine(GetBasePath_CommonApplicati...
__label__POS
0.944547
using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Primitives; using System.Runtime.InteropServices; namespace NetLock_RMM_Server { public class Application_Paths { public static string logs_dir = Path.Combine(GetBasePath(), "0x101 Cyber Security", "NetLock RMM", "Server", ...
__label__POS
0.998442
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace NetLock_RMM_Agent_Health { internal class Application_Paths { //public static string c_temp = @"C:\temp"; public static string c_t...
__label__POS
0.966511
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace NetLock_RMM_Agent_Comm { internal class Application_Paths { // Paths public static string c_temp = GetTe...
__label__POS
0.980956
using System; using System.Collections.Generic; using UnityEngine.SceneManagement; namespace FishNet.Serializing.Helping { public class PublicPropertyComparer<T> { /// <summary> /// Compare if T is default. /// </summary> public static Func<T, bool> IsDefault { get; set; } ...
__label__POS
0.90287
(function(){var l,aa="function"==typeof Object.create?Object.create:function(a){function b(){} b.prototype=a;return new b},ba; if("function"==typeof Object.setPrototypeOf)ba=Object.setPrototypeOf;else{var ca;a:{var da={wa:!0},ea={};try{ea.__proto__=da;ca=ea.wa;break a}catch(a){}ca=!1}ba=ca?function(a,b){a.__proto__=b;i...
__label__POS
0.623807
#include <sys/termios.h> #include <sys/unistd.h> #include <sys/ioctl.h> #include <errno.h> /* Remove the __errno_location implementation from here */ extern int *__errno_location(void); speed_t cfgetispeed(const struct termios *termios_p) { if (!termios_p) { errno = EINVAL; return (speed_t)-1; ...
__label__POS
0.67351
#include <string.h> #include <stddef.h> #include <stdint.h> #include <stdbool.h> // Calculate the length of a string size_t strlen(const char *str) { const char *s = str; while (*s) s++; return s - str; } // Compare two strings int strcmp(const char *s1, const char *s2) { while (*s1 && (*s1 == *s2)) {...
__label__POS
0.94514
// Glue file for all of the different yara sigs for easier scanning // // copyright 2015 Novetta Solutions // author = Novetta Threat Research & Interdiction Group - trig@novetta.com // Content distribution include "HotelAlfa.yara" // Installers include "IndiaAlfa.yara" include "IndiaBravo.yara" include "IndiaCharlie...
__label__POS
0.96933
using FishNet.Broadcast; using FishNet.CodeGenerating; using FishNet.Serializing; using FishNet.Utility.Performance; using GameKit.Dependencies.Utilities; using System.Collections.Generic; namespace FishNet.Managing.Server { public struct ClientConnectionChangeBroadcast : IBroadcast { public bool Conn...
__label__POS
0.748745
"use strict"; const fs = require('fs'); class StringOperations{ static strContainsOnlyDoubleEscapedChars(strToCheck){ if(strToCheck.match(/(?:\\x[0-9a-fA-F][0-9a-fA-F])+/)){ const allEscapedCharMatches = [...strToCheck.matchAll(/\\x([0-9a-fA-F][0-9a-fA-F])/g)]; allEscapedCharMatc...
__label__POS
0.993691
;window.CloudflareApps=window.Eager=window.CloudflareApps||window.Eager||{};window.CloudflareApps=window.CloudflareApps||{};CloudflareApps.siteId="f06f4098f0ec8d661eeb78225e160347";CloudflareApps.installs=CloudflareApps.installs||{};;(function(){'use strict' CloudflareApps.internal=CloudflareApps.internal||{} var error...
__label__POS
0.939039
"use strict"; const estraverse = require('estraverse'); const esquery = require('esquery'); const astOperations = require('../ast_operations'); const stageDeobfuscator = require('./stage_deobfuscator'); const usefulModule = require('../useful'); class StageConverting extends stageDeobfuscator.StageDeobfuscator{ ...
__label__POS
0.724003
"use strict"; const esquery = require('esquery'); const estraverse = require('estraverse'); const astOperations = require('../ast_operations'); const stageDeobfuscator = require('./stage_deobfuscator'); class StringArrayStageDeobfuscator extends stageDeobfuscator.StageDeobfuscator{ constructor(logger, obfuscat...
__label__POS
0.896492
using UnityEngine; namespace GameKit.Dependencies.Utilities { public static class Materials { /// <summary> /// Returns the color or tint color property for a material. /// </summary> /// <param name="material"></param> /// <returns></returns> public static Col...
__label__POS
0.884602
\section{Toolkit Overview} \begin{figure} \centering \includegraphics[scale=.8]{fig/toolchain} \caption{High-level view of tools provided with \bap.} \label{fig:toolchain-overview} \end{figure} There are several tools built and distributed with \bap. First, we provide a tool called {\tt toil} which lifts binary code ...
__label__POS
0.645589
using System.Collections.Generic; using System.Text; namespace GameKit.Dependencies.Utilities { public static class Arrays { /// <summary> /// Randomizer used for shuffling. /// </summary> private static System.Random _random = new System.Random(); /// <summary> ...
__label__POS
0.84973
require_relative "setup" class Trip::ReadmeExamplesTest < Test::Unit::TestCase include Test::Cmd def test_1_what_is_a_concurrent_tracer assert_equal "Ruby is cool.\n", cmd(example("1_what_is_a_concurrent_tracer.rb")).stdout end def test_2_filter_events assert_equal "call add\n70\nret...
__label__POS
0.787419
require_relative "setup" class Trip::Math def self.add(x, y) sum = x + y sum.to_s end end class Trip::Test < Test::Unit::TestCase attr_reader :trip def setup @trip = Trip.new(%i[call return]) { Trip::Math.add(2, 5) } end def teardown trip.to_a end end class Trip::TripEventTest < Trip:...
__label__POS
0.999935
# frozen_string_literal: true require_relative "setup" class Trip::Planet def initialize(name) @name = name end def echo(message) message end end class Trip::Test < Test::Unit::TestCase attr_reader :trip def setup @trip = Trip.new(%i[call return]) { Trip::Planet.new("earth").echo("ping") } ...
__label__POS
0.901292
using UnityEngine; namespace GameKit.Dependencies.Utilities.Types { /// <summary> /// Creates a singleton instance of a scriptable object. /// </summary> /// <typeparam name="T"></typeparam> public abstract class SingletonScriptableObject<T> : ScriptableObject where T : ScriptableObject { ...
__label__POS
0.707642
type dynarray = { mutable len : int; mutable array : int array; (* int array to have cheap Array.get, like in batDynArray *) } let len = 1000 let d = { len; array = Array.make len 42; } let unsafe_iter f d = for i = 0 to d.len - 1 do f d.array.(i) done let unsafe_iter2 f d = let a = d.array ...
__label__POS
0.750104
(* Copyright 2003 Yamagata Yoriyuki. distributed with LGPL *) (* Modified by Edgar Friendly <thelema314@gmail.com> *) include BatAvlTree type t = (int * int) tree type elt = int let rec mem (n:int) s = if is_empty s then false else let v1, v2 = root s in if n < v1 then mem n (left_branch s) else if v1 ...
__label__POS
0.638027
-- class for kernel memory r/w kernel = {} kernel.addr = {} -- these vars need to be defined for other fns to work properly kernel.copyout = nil kernel.copyin = nil kernel.read_buffer = nil kernel.write_buffer = nil function kernel.read_byte(kaddr) local value = kernel.read_buffer(kaddr, 1) return value an...
__label__POS
0.8238
-- -- uint64 class -- -- constructor accepts: -- 1) uint64 instance -- 2) hex value in string ("0xaabb") -- 3) lua number -- -- note: from llm and refined over time. might have some bugs -- uint64 = {} uint64.__index = uint64 setmetatable(uint64, { __call = function(_, v) -- make class callable return ui...
__label__POS
0.912713
-- -- memory class -- -- initially uses lua weak r/w primitives -- once native handler is registered, this class will be upgraded to arbitrary r/w primitives -- memory = {} -- this fn will always return zeroed buffer function memory.alloc(size) if native_invoke then return native.fcall(libc_addrofs.call...
__label__POS
0.802167
-- -- ropchain class -- -- helper for creating rop chains -- ropchain = {} ropchain.__index = ropchain setmetatable(ropchain, { __call = function(_, opt) -- make class callable as constructor return ropchain:new(opt) end }) function ropchain:new(opt) opt = opt or {} local self = setmetata...
__label__POS
0.793324
-- credit to flatz and shadPS4 project for references -- gpu page table GPU_PDE_SHIFT = { VALID = 0, IS_PTE = 54, TF = 56, BLOCK_FRAGMENT_SIZE = 59, } GPU_PDE_MASKS = { VALID = 1, IS_PTE = 1, TF = 1, BLOCK_FRAGMENT_SIZE = 0x1f, } GPU_PDE_ADDR_MASK = uint64("0x0000ffffffffffc0") fun...
__label__POS
0.62388
-- Copyright (C) 2014-2015 Nathanaël Courant (a.k.a. Nore/Novatux) (nore@mesecons.net) -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation ...
__label__POS
0.89749
 namespace FishNet.Object.Helping { public static class CodegenHelper { /// <summary> /// Returns if a NetworkObject is deinitializing. /// </summary> /// <param name="nb"></param> /// <returns></returns> public static bool NetworkObject_Deinitializing(NetworkBe...
__label__POS
0.791388