content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
<?php
/**
* Smarty Method UnregisterObject
*
* Smarty::unregisterObject() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnregisterObject
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $objMap =... | __label__POS | 0.967116 |
<?php
/**
* Smarty Internal Plugin Compile Debug
* Compiles the {debug} tag.
* It opens a window the the Smarty Debugging Console.
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Debug Class
*
* @package Smarty
* @subpackage Compiler
*/
class... | __label__POS | 0.876035 |
<?php
/**
* Created by PhpStorm.
* User: Uwe Tews
* Date: 04.12.2014
* Time: 06:08
*/
/**
* Smarty Resource Data Object
* Cache Data Container for Template Files
*
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
*/
class Smarty_Template_Cached extends Smarty_Template_Resource... | __label__POS | 0.796082 |
<?php
/**
* Smarty Internal Plugin Compile While
* Compiles the {while} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile While Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_While extends Smarty_Internal_C... | __label__POS | 0.682292 |
<?php
/**
* Smarty Internal Plugin Compile Config Load
* Compiles the {config load} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Config Load Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Config_Load e... | __label__POS | 0.707543 |
<?php
/**
* Smarty Method UnloadFilter
*
* Smarty::unloadFilter() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnloadFilter extends Smarty_Internal_Method_LoadFilter
{
/**
* load a filter of specified type and name
*
* @ap... | __label__POS | 0.973288 |
<?php
/**
* Smarty Internal Plugin Compile Shared Inheritance
* Shared methods for {extends} and {block} tags
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Shared Inheritance Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_I... | __label__POS | 0.933558 |
<?php
/**
* Smarty Method ClearAllCache
*
* Smarty::clearAllCache() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_ClearAllCache
{
/**
* Valid for Smarty object
*
* @var int
*/
public $objMap = 1;
/**
* Em... | __label__POS | 0.992799 |
<?php
/**
* Smarty Method UnregisterPlugin
*
* Smarty::unregisterPlugin() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnregisterPlugin
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $objMap =... | __label__POS | 0.838515 |
<?php
/**
* Runtime Extension Capture
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Runtime_Capture
{
/**
* Flag that this instance will not be cached
*
* @var bool
*/
public $isPrivateExtension = true;
/**
* Stack of c... | __label__POS | 0.790182 |
<?php
/**
* Smarty Method GetGlobal
*
* Smarty::getGlobal() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_GetGlobal
{
/**
* Valid for all objects
*
* @var int
*/
public $objMap = 7;
/**
* Returns a single... | __label__POS | 0.989461 |
<?php
/**
* Smarty Internal Plugin Compile Setfilter
* Compiles code for setfilter tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Setfilter Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Setfilter extend... | __label__POS | 0.771134 |
<?php
/**
* Smarty Internal Plugin Nocache Insert
* Compiles the {insert} tag into the cache file
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Nocache_Insert
{... | __label__POS | 0.777089 |
<?php
/**
* Smarty Method AssignByRef
*
* Smarty::assignByRef() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_AssignByRef
{
/**
* assigns values to template variables by reference
*
* @param \Smarty_Internal_Data|\Smarty_In... | __label__POS | 0.943068 |
<?php
/**
* Smarty Internal Plugin Compile Make_Nocache
* Compiles the {make_nocache} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Make_Nocache Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Make_Nocac... | __label__POS | 0.914012 |
<?php
/**
* Smarty Method RegisterDefaultPluginHandler
*
* Smarty::registerDefaultPluginHandler() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_RegisterDefaultPluginHandler
{
/**
* Valid for Smarty and template object
*
* @... | __label__POS | 0.952766 |
<?php
/**
* Smarty Method RegisterCacheResource
*
* Smarty::registerCacheResource() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_RegisterCacheResource
{
/**
* Valid for Smarty and template object
*
* @var int
*/
p... | __label__POS | 0.979526 |
<?php
/**
* Smarty Method AppendByRef
*
* Smarty::appendByRef() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_AppendByRef
{
/**
* appends values to template variables by reference
*
* @api Smarty::appendByRef()
* @lin... | __label__POS | 0.908492 |
<?php
/**
* Smarty Internal Plugin Templateparser Parse Tree
* These are classes to build parse tree in the template parser
*
* @package Smarty
* @subpackage Compiler
* @author Thue Kristensen
* @author Uwe Tews
*/
/**
* A complete smarty tag.
*
* @package Smarty
* @subpackage Compiler
* @ig... | __label__POS | 0.93956 |
<?php
/**
* Smarty Internal Plugin Compile Capture
* Compiles the {capture} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Capture Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Capture extends Smarty_In... | __label__POS | 0.724542 |
<?php
/**
* Smarty Method RegisterDefaultConfigHandler
*
* Smarty::registerDefaultConfigHandler() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_RegisterDefaultConfigHandler
{
/**
* Valid for Smarty and template object
*
* @... | __label__POS | 0.964883 |
<?php
/**
* Smarty Method UnregisterCacheResource
*
* Smarty::unregisterCacheResource() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnregisterCacheResource
{
/**
* Valid for Smarty and template object
*
* @var int
*/... | __label__POS | 0.997999 |
<?php
/**
* Smarty write file plugin
*
* @package Smarty
* @subpackage PluginsInternal
* @author Monte Ohrt
*/
/**
* Smarty Internal Write File Class
*
* @package Smarty
* @subpackage PluginsInternal
*/
class Smarty_Internal_Runtime_WriteFile
{
/**
* Writes file in a safe way to disk
... | __label__POS | 0.651641 |
<?php
/**
* Smarty {block} tag class
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Block
{
/**
* Block name
*
* @var string
*/
public $name = '';
/**
* Hide attribute
*
* @var bool
*/
public $hide = fa... | __label__POS | 0.907894 |
<?php
/**
* Smarty Method GetStreamVariable
*
* Smarty::getStreamVariable() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_GetStreamVariable
{
/**
* Valid for all objects
*
* @var int
*/
public $objMap = 7;
/**... | __label__POS | 0.958165 |
<?php
/**
* Smarty Method CreateData
*
* Smarty::createData() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_CreateData
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $objMap = 3;
/**
... | __label__POS | 0.959549 |
<?php
/**
* Smarty read include path plugin
*
* @package Smarty
* @subpackage PluginsInternal
* @author Monte Ohrt
*/
/**
* Smarty Internal Read Include Path Class
*
* @package Smarty
* @subpackage PluginsInternal
*/
class Smarty_Internal_Runtime_GetIncludePath
{
/**
* include path cache
... | __label__POS | 0.901693 |
<?php
/**
* Smarty Internal Plugin Compile Object Block Function
* Compiles code for registered objects as block function
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Object Block Function Class
*
* @package Smarty
* @subpackage Compiler
*/... | __label__POS | 0.990271 |
<?php
/**
* Smarty Method AddDefaultModifiers
*
* Smarty::addDefaultModifiers() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_AddDefaultModifiers
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public ... | __label__POS | 0.995907 |
<?php
/**
* Smarty Internal Plugin Templateparser Parse Tree
* These are classes to build parse tree in the template parser
*
* @package Smarty
* @subpackage Compiler
* @author Thue Kristensen
* @author Uwe Tews
*/
/**
* Template element
*
* @package Smarty
* @subpackage Compiler
* @ignore
... | __label__POS | 0.789074 |
<?php
/**
* Smarty Method GetRegisteredObject
*
* Smarty::getRegisteredObject() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_GetRegisteredObject
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public ... | __label__POS | 0.848688 |
<?php
/**
* Smarty Method RegisterResource
*
* Smarty::registerResource() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_RegisterResource
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $objMap =... | __label__POS | 0.8747 |
local utils = require('bufpin.utils')
local Rank = {}
function Rank:new(opts, storage)
return setmetatable({
num = opts.num,
storage = storage,
list = {},
}, { __index = self })
end
function Rank:init()
self.list = self.storage:get_all()
self:check()
end
function Rank:get_file(index)
return se... | __label__POS | 0.999802 |
local utils = require('bufpin.utils')
local Board = {}
function Board:new(opts)
return setmetatable({
opts = opts,
is_show = false,
width = 0,
height = 0,
}, { __index = self })
end
function Board:set_width(width)
self.width = width + 8
end
function Board:set_height(height)
self.height = heig... | __label__POS | 0.889577 |
<?php
/**
* Smarty Method ClearAssign
*
* Smarty::clearAssign() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_ClearAssign
{
/**
* Valid for all objects
*
* @var int
*/
public $objMap = 7;
/**
* clear the ... | __label__POS | 0.998455 |
local utils = require('bufpin.utils')
local Storage = {}
function Storage:new(opts)
return setmetatable({
dir = opts.dir,
git_branch = opts.git_branch,
}, { __index = self })
end
function Storage:get_file_path()
local cwd = vim.fn.getcwd()
if vim.fn.isdirectory(self.dir) == 0 then
vim.fn.mkdir(se... | __label__POS | 0.966266 |
local utils = require('bufpin.utils')
local App = {}
function App:new(opts)
local Rank = require('bufpin.rank')
local Board = require('bufpin.board')
local Storage = require('bufpin.storage')
local storage = Storage:new(opts.storage)
local rank = Rank:new(opts.rank, storage)
local board = Board:new(opts.... | __label__POS | 0.98974 |
<?php
/**
* Smarty Method SetDefaultModifiers
*
* Smarty::setDefaultModifiers() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_SetDefaultModifiers
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public ... | __label__POS | 0.996737 |
<?php
/**
* Smarty Method AssignGlobal
*
* Smarty::assignGlobal() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_AssignGlobal
{
/**
* Valid for all objects
*
* @var int
*/
public $objMap = 7;
/**
* assigns... | __label__POS | 0.962312 |
<?php
/**
* Smarty Method SetDebugTemplate
*
* Smarty::setDebugTemplate() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_SetDebugTemplate
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $objMap =... | __label__POS | 0.965231 |
<?php
/**
* Smarty Method UnregisterResource
*
* Smarty::unregisterResource() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnregisterResource
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $ob... | __label__POS | 0.989024 |
<?php
/**
* Smarty Method UnregisterFilter
*
* Smarty::unregisterFilter() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_UnregisterFilter extends Smarty_Internal_Method_RegisterFilter
{
/**
* Unregisters a filter function
*
... | __label__POS | 0.995271 |
<?php
/**
* Smarty Internal Plugin Resource Eval
*
* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews
* @author Rodney Rehm
*/
/**
* Smarty Internal Plugin Resource Eval
* Implements the strings as resource for Smarty template
* {@internal unlike string-resources the compiled sta... | __label__POS | 0.655294 |
<?php
/**
* Smarty Method ClearCache
*
* Smarty::clearCache() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_ClearCache
{
/**
* Valid for Smarty object
*
* @var int
*/
public $objMap = 1;
/**
* Empty cache... | __label__POS | 0.974118 |
<?php
/**
* Smarty Internal Plugin Compile Eval
* Compiles the {eval} tag.
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Eval Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Eval extends Smarty_Internal_Comp... | __label__POS | 0.831069 |
<?php
/**
* Smarty Internal Plugin
*
* @package Smarty
* @subpackage Cacher
*/
/**
* Cache Handler API
*
* @package Smarty
* @subpackage Cacher
* @author Rodney Rehm
*/
abstract class Smarty_CacheResource
{
/**
* resource types provided by the core
*
* @var array
*/
pro... | __label__POS | 0.712853 |
<?php
/**
* Smarty Template Resource Base Object
*
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
*/
abstract class Smarty_Template_Resource_Base
{
/**
* Compiled Filepath
*
* @var string
*/
public $filepath = null;
/**
* Compiled Timestamp
... | __label__POS | 0.807932 |
<?php
/**
* Smarty Method SetAutoloadFilters
*
* Smarty::setAutoloadFilters() method
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*/
class Smarty_Internal_Method_SetAutoloadFilters
{
/**
* Valid for Smarty and template object
*
* @var int
*/
public $ob... | __label__POS | 0.600582 |
using Core;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.Versioning;
namespace Shell
{
[SupportedOSPlatform("windows")]
class Program
{
private static string s_terminalWorkDirectory = GlobalVariables.terminalWork... | __label__POS | 0.862677 |
using System;
using System.IO;
namespace Core
{
public static class Extensions
{
internal static int CountLines(this string input)
{
var reader = new StringReader(input);
string line;
var count = 0;
while ((line = reader.ReadLine()) != null)
... | __label__POS | 0.961256 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Runtime.Versioning;
using Microsoft.Extensions.AI;
using System.Windows.Forms;
namespace Core
{
[SupportedOSPlatform("Windows")]
/// <summary>
/// Declaration of necessary g... | __label__POS | 0.996284 |
using System;
using Core;
using System.Runtime.Versioning;
using Calend = Core.SystemTools.CalendarX;
namespace Commands.TerminalCommands.ConsoleSystem
{
[SupportedOSPlatform("windows")]
public class Cal: ITerminalCommand
{
public string Name => "cal";
private static string s_helpMessage =... | __label__POS | 0.880432 |
using Core;
using System;
using System.IO;
using System.Runtime.Versioning;
namespace Commands.TerminalCommands.ConsoleSystem
{
[SupportedOSPlatform("Windows")]
public class OpenDirectory : ITerminalCommand
{
/*
* Opens current directory or other directory path provided.
*/
... | __label__POS | 0.750383 |
using System;
using System.Runtime.Versioning;
using System.Security.Cryptography;
using System.Text;
namespace Core.Encryption
{
[SupportedOSPlatform("windows")]
public class DPAPI
{
/// <summary>
/// Ctor for DPAPI
/// </summary>
public DPAPI() { }
/// <summary>
... | __label__POS | 0.913873 |
using System;
using System.IO;
using System.Runtime.Versioning;
namespace Core.Commands
{
[SupportedOSPlatform("Windows")]
public class HistoryCommands
{
/// <summary>
/// Get command at a speciofic position.
/// </summary>
/// <param name="historyFileName"></param>
... | __label__POS | 0.877069 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Versioning;
namespace Core.DirFiles
{
[SupportedOSPlatform("Windows")]
public class DirectoryMake
{
/// <summary>
/// Current Diretory location.
/// </summary>
private string CurrentDir { ... | __label__POS | 0.705158 |
/*
Class for performing a traceroute operation using the Ping class.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
namespace Core.Network
{
public class TraceRoute
{
public static IEnumerable<(int SentTtl, Ping... | __label__POS | 0.962459 |
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Core.SystemTools
{
public class TopMost
{
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
private static extern IntPtr GetForegroundWindow();
[DllImport("kernel32.dll", Exa... | __label__POS | 0.600153 |
using System;
namespace Core.SystemTools
{
public static class UI
{
public static string SanitizeSettings(string settings, Setting setting)
{
var settingsList = settings.Split('|');
string settingParsed = "";
switch (setting)
{
ca... | __label__POS | 0.980923 |
using System.Collections.ObjectModel;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Text;
namespace Core.SystemTools
{
public class PSScript
{
/// <summary>
/// Running powershell scripts.
/// </summary>
/// <param name="scriptT... | __label__POS | 0.994021 |
using System;
using System.Linq;
using System.Management;
using System.Text;
using System.Runtime.Versioning;
namespace Core.Hardware
{
[SupportedOSPlatform("windows")]
public static class WMIDetails
{
/// <summary>
/// Outputs WMI class details
/// </summary>
/// <param n... | __label__POS | 0.636248 |
#!/bin/bash
#
# This script has been created as part of the Blueprint source code
# and uses the same license as the rest of the codebase. (https://github.com/BlueprintFramework/framework)
PRINT() {
local DATE=""; DATE="$(date +"%H:%M:%S")"
local DATEDEBUG=""; DATEDEBUG="$(date +"%Y-%m-%d %H:%M:%S")"
local TYPE... | __label__POS | 0.999804 |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | __label__POS | 0.778275 |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | __label__POS | 0.767202 |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | __label__POS | 0.646987 |
#include "common.hpp"
TEST(find, nothing_in_empty)
{
std::vector<std::string> unique_keys = get_unique_keys();
tree_t tree;
for (size_t i = 0; i < unique_keys.size(); i++) {
const std::string key = unique_keys[i];
tree_t::iterator it = tree.find(key);
ASSERT_EQ(tree.end(), it);
... | __label__POS | 0.835245 |
package com.sec421;
import cn.hutool.http.HttpRequest;
import com.sec421.controller.js.JsController;
import com.sec421.tools.Tools;
import java.util.List;
import java.util.Set;
public class Test {
public static void main(String[] args) {
String html = " <div class=\"result-molecule new-pmd\"\n" ... | __label__POS | 0.999565 |
package com.sec421.core;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
public class Constants {
public static String NAME = "0x7eSecurity";
public static String VERSION = "v1.1 ";
public static String AUTHOR = "luze";
public static String SECURITYSTATEME... | __label__POS | 0.999917 |
package com.sec421.core;
import javafx.beans.property.SimpleStringProperty;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
public class VulInfo {
private final SimpleStringProperty id = new SimpleStringProperty();
private final SimpleStringProperty target = new Simp... | __label__POS | 0.972091 |
package com.sec421.tools;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.sec421.controller.ui.MainController;
import com.sec421.core.Constants;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonBar;
import javafx.scene.control.ButtonType;
import ... | __label__POS | 0.973224 |
package com.sec421.tools;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import com.sec421.controller.ui.MainController;
import java... | __label__POS | 0.846655 |
package com.sec421.controller.vulnCheck;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.sec421.controller.ui.MainController;
import com.sec421.core.Constants;
import com.sec421.tools.Tools;
import org.apache.log4j.Logger;
import java.io.*;
import java.net.InetSocke... | __label__POS | 0.966465 |
package com.sec421.controller.vulnCheck;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import javafx.beans.property.SimpleStringProperty;
import javafx.concurrent.Task;
public class BatchVulCheckTask extends Task<Integer> {
private int index;
private String vulScript... | __label__POS | 0.84851 |
package com.sec421.controller.js;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import cn.hutool.http.HttpResponse;
import com.sec421.tools.HttpTool;
import com.sec421.tools.Tools;
import javafx.application.Platform;
import javafx.scene.control.TextArea;
import java.net.Malf... | __label__POS | 0.995055 |
package com.sec421.controller.informationCollection;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.sec421.tools.HttpTool;
import java.nio.charset.StandardCharsets;
import java.text.Simp... | __label__POS | 0.640915 |
package com.sec421.controller.informationCollection;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.alibaba.fastjson.JSONObject;
import com.sec421.tools.HttpTool;
import com.sec421.tools.Tools;
import javafx.scene.control.Alert;
import java.util.Base64;
import java... | __label__POS | 0.998221 |
package com.sec421.controller.informationCollection;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.sec421.tools.HttpTool;
import java.io.IOException;
public class Quake360Controller {
... | __label__POS | 0.896396 |
package com.sec421.controller.dbTools;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.sec421.tools.Tools;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class MySQLController {
public static boolean connect(String ip, String po... | __label__POS | 0.961976 |
package com.sec421.controller.dbTools;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import com.sec421.tools.Tools;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class OracleController {
public static boolean connect(String ip, String p... | __label__POS | 0.975216 |
package com.sec421.controller.baseTools;
/**
* @author 0x421
* @date 2023/12/28 11:20
* @github https://github.com/0x7eTeam
*/
import javafx.scene.control.TextArea;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.io.UnsupportedEncodingException;
import jav... | __label__POS | 0.730869 |
type $npm$chalk$StyleElement = {
open: string;
close: string;
};
type $npm$chalk$Chain = $npm$chalk$Style & (...text: string[]) => string;
type $npm$chalk$Style = {
// General
reset: $npm$chalk$Chain;
bold: $npm$chalk$Chain;
italic: $npm$chalk$Chain;
underline: $npm$chalk$Chain;
inverse: $npm$chalk$Ch... | __label__POS | 0.606254 |
/* @flow */
const _camelCase = require('camelcase');
export function sortAlpha(a: string, b: string): number {
// sort alphabetically in a deterministic way
const shortLen = Math.min(a.length, b.length);
for (let i = 0; i < shortLen; i++) {
const aChar = a.charCodeAt(i);
const bChar = b.charCodeAt(i);
... | __label__POS | 0.818032 |
import * as d3 from "d3";
import { isFunction } from "lodash";
/**
*
* draw reference line
*
* @param g
* @param x
* @param h
* @param overlayWidth
* @param referenceLineColor
* @param referenceLineWidth
* @param cb
*/
const drawReferenceX = (g, x, h, overlayWidth, referenceLineColor, referenceLineWidth, cb)... | __label__POS | 0.645332 |
/**
*
* @param g
* @param xScale
* @param g_h
* @param currentTimeLineColor
* @param currentTimeLineWidth
*/
const drawCurrentReferenceX = (g, xScale, g_h, currentTimeLineColor, currentTimeLineWidth) => {
const date = new Date(),
referenceSelection = g.select(".line--reference");
if (!referenceS... | __label__POS | 0.899567 |
import { hasOverlapX, hasOverlapY } from "./hasOverlap";
/**
*
* make xAxis"s number of ticks responsive to container size
*
* @param {d3.Selection} axisXLane
* @param {d3.Axis} axis
* @param {d3.ScaleBand | d3.ScalePoint} scale
*/
function responsiveAxisX(axisXLane, axis, scale) {
let ticks = axisXLane.sel... | __label__POS | 0.854837 |
import * as d3 from "d3";
import { isFunction } from "lodash";
/**
*
* @param selection
* @param x
*/
const moveX = (selection, x) => {
switch (selection.node().tagName.toLowerCase()) {
case "circle":
selection.attr("cx", x);
break;
case "line":
selection.attr({
x1: ... | __label__POS | 0.92793 |
import * as d3 from "d3";
/**
*
* @param svg
* @param g
* @param g_w
* @param g_h
* @param xScale
* @param data
* @param stroke
* @param strokeDashArray
* @param strokeWidth
*/
const drawReferenceLineX = (svg, g, g_w, g_h, xScale, data, stroke = "#777", strokeDashArray = "2.2", strokeWidth = 1) => {
con... | __label__POS | 0.850877 |
import * as d3 from "d3";
/**
*
* toggle cross in rect
*
* @param {d3.Selection} container
* @param {d3.Selection} rect
* @param {string} stroke
* @param {number} strokeWidth
*/
const toggleCross = (container, rect, stroke, strokeWidth) => {
const selection = container.selectAll("line");
if (!selection... | __label__POS | 0.707945 |
/**
*
* generate svg path"s d to simulate rounded rect
*
* @param {number} x
* @param {number} y
* @param {number} w
* @param {number} h
* @param {number} r
* @param {boolean} tl
* @param {boolean} tr
* @param {boolean} bl
* @param {boolean} br
* @returns {string}
*/
function roundedRect(x, y, w, h, r, tl... | __label__POS | 0.699468 |
import * as d3 from "d3";
import { toggleCrossInCircle } from "./toggle";
import { toggleClass } from "./toggle";
import hash from "../utils/hash";
import realBBox from "./realBBox";
/**
*
* @param axisXGroupLabelLane
* @param svg
* @param labels
* @param g_w
* @param schemeCategory
* @param axisXGroupLabelLane... | __label__POS | 0.601606 |
import * as d3 from "d3";
import offset from "document-offset";
import { isFunction } from "lodash";
/**
* get tooltip div
*/
const tooltip = (function(body) {
const selection = body.select(".d3-tip");
if (!selection.empty()) {
return selection;
} else {
return body
.append("... | __label__POS | 0.868463 |
import * as d3 from "d3";
import { Point, Interval } from "../utils/getTrackerLanes";
import { showTip, hideTip } from "./tooltip";
import roundedRect from "./roundedRect";
/**
*
* @param g
* @param lanes
* @param xScale
* @param yScale
* @param symbolSize
* @param intervalCornerRadius
*/
const drawEntriesX = ... | __label__POS | 0.716617 |
/**
*
* draw continious scale"s ticks for axis x
*
* @param {d3.Selection} g
* @param {d3.ScaleTime | d3.ScaleLinear} xScale
* @param {number} g_h
* @param {string} clipPathId
* @param {string} stroke
* @param {number} strokeWidth
* @return {void}
*/
function drawTicksX(g, xScale, g_h, clipPathId, stroke, st... | __label__POS | 0.998178 |
import { Point, Interval } from './getTrackerLanes';
/**
*
* @param a
* @param x
* @param isLTR
* @return {number}
*/
const bisecRight = (a, x, isLTR) => {
let lo = 0, hi = a.length;
while (lo < hi) {
const mid = lo + hi >>> 1;
if ((a[mid] instanceof Point && a[mid].at.valueOf() > x) || ... | __label__POS | 0.964291 |
/**
*
* select the correct paddingInner and paddingOuter for axis x
*
* @param {number} width
* @return {[number, number]}
*/
const selectPaddingInnerOuterX = (width) => {
let paddingInner = 0.5, paddingOuter = 0.1;
if (width > 560) paddingInner = 0.4;
if (width > 970) paddingInner = 0.3;
return... | __label__POS | 0.981565 |
import { drawCurrentReferenceX } from '../../plugins/drawCurrentReference';
import { drawEntriesMultiLaneX } from '../../plugins/drawEntriesMultiLane';
/**
*
* @param axisXLane
* @param xAxis
* @param yScale
* @param data
* @param groups
* @param g_h
* @param symbolSize
* @param intervalCornerRadius
* @param... | __label__POS | 0.971421 |
import { drawReferenceX } from '../../plugins/drawReference';
import { drawEntriesX } from '../../plugins/drawEntries';
/**
*
* @param axisXLane
* @param xAxis
* @param yScale
* @param lanes
* @param g_h
* @param symbolSize
* @param intervalCornerRadius
* @param overlayWidth
* @param referenceLineColor
* @p... | __label__POS | 0.974783 |
import L from 'leaflet';
/**
* @namespace
* @type {Object}
*/
L.PathTransform = {};
/**
* Point on the line segment or its extention
*
* @param {L.Point} start
* @param {L.Point} final
* @param {Number} distPx
* @return {L.Point}
*/
L.PathTransform.pointOnLine = function(start, final, distPx) {
var ... | __label__POS | 0.776621 |
package com.feihong.ldap.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Method;
import java.util.Random;
public class Util {
public static String getRandomString() {
String str = "0123456789AB... | __label__POS | 0.992031 |
package com.feihong.ldap.utils;
import com.feihong.ldap.template.*;
import net.jodah.expiringmap.ExpirationPolicy;
import net.jodah.expiringmap.ExpiringMap;
import java.util.concurrent.TimeUnit;
public class Cache {
private static ExpiringMap<String, byte[]> map = ExpiringMap.builder()
.maxSize(1000)
... | __label__POS | 0.954669 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.