content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
二包子xi', '二包子xi'},
{'20647', '恶习难改', '恶习难改'},
{'20648', '习习蛤蛤胡胡', '习习蛤蛤胡胡'},
{'20649', 'haoxi大法好', 'haoxi大法好'},
{'20650', '包子是上帝', '包子是上帝'},
{'20651', '习以近平', '习以近平'},
{'20652', '菊哥哥-XJP', '菊哥哥-XJP'},
{'20653', '小媳妇习呆呆', '小媳妇习呆呆'},
{'20654', '习小三Xx3', '习小三Xx3'},
{'20655', '习丸子', '习丸子'},
{'20656', '包子夕', '包子夕'},
{'20657'... | Lua |
from fasthtml.common import *
def footer():
return Footer(
Div( P("Jairo Cogollo"), cls="top-footer"
),
Div(
Ul(
Li(
A("Home",href="#home"), cls="footer_menu_list",),
Li(
A("About",href="#about"), cls="foo... | Python |
ervice = NotificationServices()
# 模擬渠道
mock_channel = MagicMock()
mock_channel.is_enabled.return_value = True
mock_channel.name = "test"
mock_channel.timeout = 30
mock_channel.retry_count = 3
service.channels["test"] = mock_channel
... | Python |
/*
Authors: Mayank Rathee.
Copyright:
Copyright (c) 2020 Microsoft Research
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 the rights
to use, copy... | C |
if chunk_idx >= fallback_chunk_size:
chunk_sparse = process_chunk()
if chunk_sparse is not None:
all_sparse_chunks.append(chunk_sparse)
... | Python |
Medaillon von Stormwind",
[12586] = "Unreifer Giftbeutel",
[12587] = "Auge von Rend",
[12588] = "Knochenstachelschulter",
[12589] = "Staubfederschärpe",
[12590] = "Teufelsstoß",
[12591] = "Monster - Stab, Heiliger Stab",
[12592] = "Schwarzklinge von Shahram",
[12593] = "Monster - Schwert, Horde Schwert ... | Lua |
r r r r r r r r r r- r* rd rd !)+r- rd c 4 \ rS rSr\" S5 r\" S5 rSrg)rc r rawr Nri r r r rh r r r r r- r* rc rc '"E
Cr- rc r -r# weakref r r contextr... | Python |
from alerts import send_alert # Importing send_alert function from alerts.py
from db import mongo
CPU_THRESHOLD = 80.0 # threshold for CPU usage
DISK_THRESHOLD = 90.0 # threshold for disk usage (%)
MEMORY_THRESHOLD = 75.0 # threshold for memory usage (%)
def analyze_data():
try:
# Retrieve metrics fro... | Python |
ShotgunReload)
AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmostate)
deviceCrate.collected = true
deviceCrate.collector = CurrentHedgehog
end
end
end
function onGearDamage(gear, damage)
if GetGearType(gear) == gtCase then
-- in this mode every crate... | Lua |
ibe() :: @ObserveOn -> main]
```
**主要意思是在ObservableSample类中我们订阅了一个返回Observable的list()方法**。然后通过带注释的Observable我们获得了关于被发送的元素、执行方法和事件被触发的信息。
##检验@RxLogSubscriber
**现在让我们看下@RxLogSubscriber能做什么。**
下面例子,让我们创建一个用**@RxLogSubscriber**做注释的**RxJava**虚拟Subscriber。
MySubscriberBackpressure.java
```java
@RxLogSubscriber
public ... | Markdown |
, int, float, bool).
Args:
obj: A dictionary structure composed of dictionaries, lists, and primitive types.
Returns:
A cleaned version of the input structure with all empty values removed.
"""
if isinstance(obj, str):
return obj.strip()
elif isinstance(obj, (int, float, b... | Python |
ffi.cdef [[
typedef unsigned char FT_Bool;
typedef signed short FT_FWord;
typedef unsigned short FT_UFWord;
typedef signed char FT_Char;
typedef unsigned char FT_Byte;
typedef const FT_Byte* FT_Bytes;
typedef uint32_t FT_Tag;
typedef char FT_String;... | Lua |
local super = require("ui.component.loop_list_view_item")
local LifeProfessionGradeLoopItem = class("LifeProfessionGradeLoopItem", super)
local loopListView = require("ui.component.loop_list_view")
local commonRewardItem = require("ui.component.explore_monster.explore_monster_reward_item")
function LifeProfessionGrade... | Lua |
16 => "02:-:-:-:1 \@P0 STS [writeAs + 4x<7*32>], load0A7;\n",
j2c18 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<6*32>], load0A6;\n",
j2c20 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<5*32>], load0A5;\n",
j2c22 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<4*32>], load0A4;\n",
j2c24 => "--:-:-:-:1 ... | CSS |
// 读取操作
concurrentCache.getMcpId("ns", "name" + (index % opCount));
concurrentCache.getMcpServerById("id" + (index % opCount));
// 写入操作
concurrentCache.updateIndex("ns", ... | Java |
/**
* This file is generated using the remodel generation script.
* The name of the input file is SimpleAlertButton.adtValue
*/
#import <Foundation/Foundation.h>
typedef void (^SimpleAlertButtonDefaultButtonMatchHandler)(NSString *title);
typedef void (^SimpleAlertButtonCancelButtonMatchHandler)(NSString *title);
... | C |
min = 0, max = 60, step = 1
},
xOffset = {
order = 6,
type = "range",
name = L["xOffset"],
min = -300, max = 300, step = 1
},
yOffset = {
order = 7,
type = "range",
name = L["yOffset"],
min = -300, max = 300, step = 1
},
anchorPoint = {
order = 8,
type = "select... | Lua |
$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$
"forall", "beta", "fnof", "rho", "micro", "eacute", "omega", "middot", "Gamma", "rlm", "lang", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$
... | Java |
I_SUBSYSTEM_ID PCI_CONFIG_OFFSET_SYSID
//
//The following defines used to indicate which part of __IDENTIFIER structure is
//set.Please refer to __IDENTIFIER's definition.
//
#define PCI_IDENTIFIER_MASK_VENDOR 0x01
#define PCI_IDENTIFIER_MASK_DEVICE 0x02
#define PCI_IDENTIFIER_MASK_CLASS 0x04
#define P... | C |
undo: typing.Optional[bool] = None):
''' Remove color attribute from geometry
:type override_context: typing.Union[typing.Dict, 'bpy.types.Context']
:type execution_context: typing.Union[str, int]
:type undo: typing.Optional[bool]
'''
pass
def color_attribute_render_set(
overr... | Python |
Query("SELECT e FROM Employee e GROUP BY e.salary HAVING CONCAT(e.firstName, ' ', e.lastName) = 'Bilbo'");
assertQuery("SELECT e FROM Employee e GROUP BY e.salary HAVING CURRENT_DATE > CURRENT_TIME");
assertQuery("SELECT e FROM Employee e GROUP BY e.salary HAVING CURRENT_TIME > CURRENT_TIMESTAMP");
assertQuery("S... | Java |
_content("application/json")
luci.http.write_json(e)
end
function haproxy_status()
local e = luci.sys.call(string.format("top -bn1 | grep -v grep | grep '%s/bin/' | grep haproxy >/dev/null", appname)) == 0
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end
function socks_status()
local e =... | Lua |
_LANGUAGE = "js";
// list of scripts to process
private static List<Command> scripts;
// the script engine manager
private static ScriptEngineManager engineManager;
// map of engines we loaded
private static Map<String, ScriptEngine> engines;
// error messages resource
private static Res... | Java |
: rotate(0deg); }
to { -webkit-transform: rotate(359deg); }
}:root {
/* Background accent */
--mica-bg-accent: rgb(44 93 239 / 20% /* Against #000 bg */) !important;
/*You can use a image too, but result may vary*/
/*You can use https://lokeshdhakar.com/projects/color-thief/ to get the "average col... | CSS |
missing_columns = [col for col in required_columns if col not in df.columns]
# if missing_columns:
# raise ValueError(f"Missing required columns: {', '.join(missing_columns)}")
# if df['Subcategory'].isnull().any() or df['Feedback'].isnull().any() or df['Subcategory'].eq('').any() or df['Feedback'].eq('... | Python |
);
/* Server side of the connection */
sconn = tcp_conn_new(&sepp);
PCUT_ASSERT_NOT_NULL(sconn);
rc = tcp_conn_add(sconn);
PCUT_ASSERT_ERRNO_VAL(EOK, rc);
PCUT_ASSERT_INT_EQUALS(st_listen, sconn->cstate);
PCUT_ASSERT_FALSE(tcp_conn_got_syn(sconn));
/* Start establishing the connection */
tcp_conn_lock(cco... | C |
r_hdr_film import PhasorHDRFilm
if not (isinstance(sensor.film(), TransientHDRFilm) or isinstance(sensor.film(), PhasorHDRFilm)):
raise AssertionError(
"The film of the sensor must be of type transient_hdr_film or phasor_hdr_film"
)
del TransientHDRFilm
def... | Python |
=0x7f0b014d;
public static final int Widget_AppCompat_PopupWindow=0x7f0b014e;
public static final int Widget_AppCompat_ProgressBar=0x7f0b014f;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0150;
public static final int Widget_AppCompat_RatingBar=0x7f0b0151;
public static fina... | Java |
@Override
public void showStatus(StatusLayoutManager.Status status, String... msg) {
mStatusHelper.showStatus(status, msg);
}
@Override
public void showEmpty() {
mStatusHelper.showEmpty();
}
@Override
public void showEmpty(@NonNull String message) {
mStatusHelpe... | Java |
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
import pytest
import cudf
from cudf.core.column import column
from cudf.testing._utils import assert_eq, gen_rand_series
def _kernel_multiply(a, b, out):
for i, (x, y) in enumerate(zip(a, b)):
out[i] = x * y
@pytest.mark.parametrize("dtype", ["float32", "... | Python |
import cv2
import os
import numpy as np
## 训练特征模型
# 读取多张脸
# 用于保存人脸
faces = []
# 用于保存训练后的标签
labels = []
# 标签对应的名称
labels_text = {"0": "yangmi"}
# 将目录下的jpg文件以灰度图的方式读取到图像列表中
for f in os.listdir("yangmi"):
# 不是jpg文件就跳过
if '.jpg' not in f:
continue
# 读取人脸图片到列表中,注意这里要使用灰度图
face... | Python |
Pitch //
//--------------//
/**
* Report the pitch position of the nth item, within the given clef kind.
* <p>
* 'n' is negative for flats and positive for sharps. <br>
* Legal values for sharps are: +1, +2, +3, +4, +5, +6, +7 <br>
* While for flats they can be: -1, -2, -3, -4, -5, -6, ... | Java |
eader.biBitCount;
PaletteData palette = loadPalette(bitmapInfo.bmiHeader, raf);
byte[] shapeData = loadData(bitmapInfo.bmiHeader, raf);
bitmapInfo.bmiHeader.biBitCount = 1;
byte[] maskData = loadData(bitmapInfo.bmiHeader, raf);
maskData = convertPad(maskData, width, height, 1, 4, 2);
bitInvertData(maskData... | Java |
2+w3+w4+0.001);
w1 = k*dot(abs(i1-c)+abs(i3-c),dt)/(0.125*dot(i1+i3,dt)+lum_add);
w2 = k*dot(abs(i2-c)+abs(i4-c),dt)/(0.125*dot(i2+i4,dt)+lum_add);
w3 = k*dot(abs(s1-c)+abs(s3-c),dt)/(0.125*dot(s1+s3,dt)+lum_add);
w4 = k*dot(abs(s2-c)+abs(s4-c),dt)/(0.125*dot(s2+s4,dt)+lum_add);
w1 =... | Lua |
', '', '', '91111002,91111001', '-1', '-11', '1500', '600', '120', '3111102', '3111102', '3111102', '[[10002,60,2],[10004,150,2]]', '[[10003,3000,2],[2070301,1,2]]', '14207', '18307,18207,18107', '', '1', '1,2', '1,1', '2,2', '3,20', '[1]', '[[3,99]]', '-1', '201111', '', '', '', '', '', '-306', '140', '278', '121.7', ... | Lua |
import cv2
import os
import os.path as osp
from pathlib import Path
class ImageCache:
data = {}
def get_image(name, to_rgb=False, use_cache=True):
key = (name, to_rgb)
if key in ImageCache.data:
return ImageCache.data[key]
images_dir = osp.join(Path(__file__).parent.absolute(), 'images')
e... | Python |
5 (2024-11-01)
### 🩹 Fixes
- **level-control:** configure minimal transition time ([e754974](https://github.com/t0bst4r/home-assistant-matter-hub/commit/e754974))
### ❤️ Thank You
- t0bst4r @t0bst4r
## 3.0.0-alpha.14 (2024-11-01)
### 🩹 Fixes
- **light:** use correct device type for color temp only devices ([4... | Markdown |
-- @param number damageRadius The radius in which entities will be damaged (0 - 1500)
-- @param number damage The amount of damage to be applied
function game_library.blastDamage(damageOrigin, damageRadius, damage)
checkpermission(instance, nil, "game.blastDamage")
util.BlastDamage(instance.entity, instance.playe... | Lua |
// bitch2.clearMilkModifiers();
// bitch2.setMilkFlavour(FluidFlavour.BEER);
// bitch2.addMilkModifier(FluidModifier.ALCOHOLIC);
// bitch2.addMilkModifier(FluidModifier.BUBBLING);
// bitch2.setSkinCovering(new Covering(BodyCoveringType.MILK, CoveringPattern.FLUID, PresetColour.COVERING_ORANGE_LIGHT, false... | Java |
#!/usr/bin/env python
from vtkmodules.vtkIOImage import vtkPNGReader
from vtkmodules.vtkImagingCore import (
vtkImageAppendComponents,
vtkImageClip,
)
from vtkmodules.vtkImagingGeneral import vtkImageGaussianSmooth
from vtkmodules.vtkImagingStatistics import vtkImageAccumulate
from vtkmodules.vtkInteractionImag... | Python |
R_REPLICATION_SAME_REPLICATION_PORT.get(
String.valueOf(replPort1), host1));
}
if (argParser.skipReplicationPortCheck())
{
// This is something that we must do in any case... this test is
// already included when we call SetupUtils.canUseAsPort
if (ch... | Java |
local WARNING_COLOR = ZO_ColorDef:New("DC8122")
local PARTNER_ICONS =
{
[PLATFORM_SERVICE_TYPE_DMM] = "EsoUI/Art/Login/link_Login_DMM.dds",
[PLATFORM_SERVICE_TYPE_STEAM] = "EsoUI/Art/Login/link_Login_Steam.dds",
[PLATFORM_SERVICE_TYPE_EPIC] = "EsoUI/Art/Login/link_Login_Epic.dds",
}
local function LinkAcc... | Lua |
形:
1. 在HTTP请求的header中,trailer字段值为一个无效的、不存在的字段。
2. 在请求体读取完毕后,通过调用Flush函数向客户端发送response header和一个Transfer-Encoding为chunked的chunk。
3. 在Chunk之后,将无效的trailer header作为chunk写入response body中。
4. 调用CloseNotify方法,触发服务端关闭连接。
测试的目的是验证当遇到无效的trailer字段时,服务器是否正确地关闭连接,以及是否没有leak资源。
在这个测试用例中,我们用httptest.NewRecorder()创建一个ResponseRec... | Markdown |
Qb^{-1} \cdot Qab'$(协方差更新)。
- 调用 `restamb()` 将双差转为单差,存入 `xa`。
**3. 注意事项**
- “单差转双差以消除接收机初始相位项”的含义:
- 载波相位测量值不仅包含几何距离、模糊度和钟差,还包括接收机硬件引入的初始相位偏差(Initial Phase Bias)。这是由于接收机的本地振荡器(Local Oscillator)在测量载波相位时有一个未知的起始相位。它应该可以被吸收到接收机钟差项中。
- 单差能消除卫星钟差和短基线情形下的大部分大气延时误差,而单差转双差我们更关心的是它能进一步消除掉接收机钟差。
**4. 源码注释**
::: de... | Markdown |
819', '只限文字', '只限文字'},
{'12820', '缺np', '缺np'},
{'12821', '怎样zw', '怎样zw'},
{'12822', '买w照', '买w照'},
{'12823', '爆上面', '爆上面'},
{'12824', 'huang图', 'huang图'},
{'12825', '被cao', '被cao'},
{'12826', '自卫的视频', '自卫的视频'},
{'12827', '可vv', '可vv'},
{'12828', '找wzr', '找wzr'},
{'12829', '玩文字', '玩文字'},
{'12830', '囚禁我', '囚禁我'},
{'1283... | Lua |
hasChargeItem = true
end
end
end
end
resWrapper:free()
end
return hasChargeItem
end
function IEex_RechargeItemInSlot(BCSObject, slot, rechargeAmount)
local checkID = IEex_GetBCSObjectID(IEex_Lua_ActorID, BCSObject)
if not IEex_IsSprite(checkID, false) then return false end
local checkData = I... | Lua |
"--:-:-:-:1 \@P0 FFMA TF12, f12, 0.5, ta2;\n" .
"--:-:-:-:1 \@P0 FFMA TF22, f12, -0.5, ta2;\n",
j1c16 => "--:-:-:-:1 \@P1 LDG.E.CI.$dtype f10, [track + ${dsize}x<1*3*$K + 0*$K>];\n",
j1c18 => "--:-:-:-:1 \@P1 LDG.E.CI.$dtype f11, [track + ${dsize}x<1*3*$K + ... | CSS |
j-control input:invalid{box-shadow:none;outline:0}.wj-control .wj-btn,.wj-viewer .wj-control .wj-applybutton{background:#eee;cursor:pointer;color:#000;display:inline-block;border-style:none;padding:0 10px;text-align:center;min-width:30px;white-space:nowrap}.wj-control .wj-btn:focus,.wj-viewer .wj-control .wj-applybutto... | CSS |
g edge: enables interrupt on rising/falling edges
* - event: generate event when set
* - func: when non-NULL, generate interrupt
* - arg: Argument passed to the interrupt callback
*
* Returned Value:
* Zero (OK) on success; a negated errno value on failure indicating the
* nature of the failure.
*
... | C |
,
SQL_IS_MINUTE_TO_SECOND = 13
} SQLINTERVAL;
#endif
#if (ODBCVER >= 0x0300)
typedef struct tagSQL_YEAR_MONTH
{
SQLUINTEGER year;
SQLUINTEGER month;
} SQL_YEAR_MONTH_STRUCT;
typedef struct tagSQL_DAY_SECOND
{
SQLUINTEGER day;
SQLUINTEGER hour;
SQLUINTEGER minute;
SQLUINTEGER second;
SQLUINTEGE... | C |
| 0 | 0 | 0 | 0 | 0 | 1 |
+----------------------------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
| 128/256 ... | Python |
{Crafting12}} Кільце ключів", ["5.30.4"] = "{{Crafting14}} Заряджений ключ",
["5.40"] = "{{Bomb}} Бомба",
["5.40.1"] = "{{Crafting15}} Бомба", ["5.40.2"] = "{{Crafting15}} Подвійна бомба", ["5.40.3"] = "{{Crafting15}} Троль-бомба", ["5.40.4"] = "{{Crafting16}} Золота бомба", ["5.40.5"] = "{{Crafting15}} Мегатроль-бо... | Lua |
global_logger.critical("BitTorrent core initialization failed!")
core_doneflag.set()
rawserver.stop()
try:
gui_wrap(mainloop.ExitMainLoop)
except:
pass
try:
gui_wrap(mainloop.doneflag.set)
ex... | Python |
* GPIO0[28-30] - Trace Outputs / PWM Inputs
* GPIO0[31] - PWM_8 I/O
*/
#define CONFIG_SYS_GPIO0_TCR 0xC0A00000
#define CONFIG_SYS_GPIO0_OSRL 0x50004400
#define CONFIG_SYS_GPIO0_OSRH 0x02000055
#define CONFIG_SYS_GPIO0_ISR1L 0x00001000
#define CONFIG_SYS_GPIO0_ISR1H 0x00000055
#define CONFIG_SYS_GPIO0_TSRL 0x02... | C |
$blue-checkered-lighter: "data:image/gif;base64,R0lGODlhAgACAJEAAAAAAP///0ZGtP///yH5BAEAAAMALAAAAAACAAIAAAID1CYFADs=";
@import "../../_scss/w98/var/colors";
@import "../../_scss/w98/functions/box-shadows";
@import "../../_scss/w98/mixins/box-shadows";
@import "../../_scss/w98/var/var";
@function nav-box-shadow() {
... | CSS |
_s(sdirs->current, "manifest.gz"))
|| !(sdirs->cincexc=prepend_s(sdirs->current, "incexc"))
|| !(sdirs->deltmppath=prepend_s(sdirs->working, "deltmppath")))
return -1;
// sdirs->rworking gets set later.
// sdirs->treepath gets set later.
// sdirs->relink gets set later.
return 0;
}
int sdirs_init_from_con... | C |
#ifndef __WordS_H__
#define __WordS_H__
#include "general.h"
// TYPE_BIN serán enteros sin signo
#define TYPE_BIN unsigned int
// TYPE_DEC serán enteros sin signo
#define TYPE_DEC unsigned int
// TYPE_DEC almacenará 32 bits
#define BITS_PER_TYPE_DEC 32
// El bit más significativo MSB del TYPE_DEC (unsigned int)
#de... | C |
-12 HDS 1"]={Range=75,Blindspot=6,Height=25,Type="Long",Radar="S-300V 9A83 l"},
["SA-23 HDS 2"]={Range=200,Blindspot=5,Height=37,Type="Long",Radar="S-300VM 9A82ME"},
["SA-23 HDS 1"]={Range=100,Blindspot=1,Height=50,Type="Long",Radar="S-300VM 9A83ME"},
["HQ-2 HDS"]={Range=50,Blindspot=6,Height=35,Type="Medium",Radar="HQ... | Lua |
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, tomstdenis@gmail.com, http://l... | C |
n(t)+1]=i
end
return table.concat(t,',')
end
plugins.youporn.desc=youporn_desc()
if cfg.user_age<18 then plugins.youporn.disabled=true end | Lua |
late("Attempts Before WAN Recovery"))
recovery:value("1", "1")
recovery:value("3", "3")
recovery:value("5", "5")
recovery:value("10", "10")
recovery:value("15", "15")
recovery:value("20", "20")
recovery.default = "5"
recovery.optional = false
recovery.rmempty = false
failover_to = s:option(ListValue, "failover_to", tr... | Lua |
l correct
* <BR>[22000:22499] kuzuanpa
* <BR>[22500:22999] reserved for now, unsure if needed.
* <BR>[23000:23499] Free
* <BR>[23500:23999] Free
* <BR>[24000:24499] Free
* <BR>[24500:24999] Free
* <BR>[25000:25499] Free
* <BR>[25500:25999] Free
* <BR>[26000:26499] Free
* <BR>[26500:26999] Free
* <... | Java |
import os.path as path
import numpy as np
import pandas as pd
def read_dataset(dataset, subname=None):
if dataset == "NASA":
assert subname in ["A-4", "T-1", "C-2"]
data_root = "./datasets/NASA"
train_data = pd.read_csv(path.join(data_root, f"{subname}.train.csv")).values[:, 1:-1]
... | Python |
// g2o - General Graph Optimization
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must r... | C |
하면 명문 호드 응급의학회에 들어갈 특권이 주어질 것이오.$B$B부상자 치료 순서를 알려 줄 테니 주목하시오! 침상에 누워있는 환자 중에서 제일 먼저 위독한 부상병을 치료해야 하오. 그다음에는 위태로운 부상병을 치료하고 마지막으로 가벼운 부상을 입은 부상병을 치료하면 되오. 시험에 통과하려면 15명의 환자를 구해야 하오. 분류하는 중 6명의 환자가 사망하면 탈락이니 신중해야 한다는 것을 명심하시오.$B$B행운을 비오.",
["O"] = "응급 붕대로 상처를 치료해서 환자를 구해야 합니다. 환자 6명이 죽기 전에 15명을 구해야 합니다.$B$B부상자 치료 우선 ... | Lua |
can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode... | Markdown |
-- ported from plb/sudoku/sudoku_v1.lua
function sd_genmat()
local R, C, r = {}, {}, 0
for i = 0, 8 do
for j = 0, 8 do
for k = 0, 8 do
C[r], r = { 9 * i + j, math.floor(i/3)*27 + math.floor(j/3)*9 + k + 81,
9 * i + k + 162, 9 * j + k + 243 }, r + 1
end
end
end
for c = 0, 323 do R[c] = {} end
... | Lua |
Equals("/")
.assertBodyEquals("key=https%3A%2F%2Fwww.baidu.com%23%2F%3Fmodeversion%3Dminiprogram%26sourceCode%3DGDT-ID-23310731%26mark%3DXZX-WXZF-0805");
}
@Test
public void testRequest_query_encode2() {
server.enqueue(new MockResponse().setBody(EXPECTED));
Forest.post("/")... | Java |
ging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilities_24.html) / https://lists.apache.org/thread.html/r03ee478b3dda3e381fd6189366fa7af97c980d2f602846eef935277d%40%3Ccvs.httpd.apache.org%3E ([http... | Markdown |
0xff
uint16_t flag;
#define LPFC_NVMET_IO_INP 0x1 /* IO is in progress on exchange */
#define LPFC_NVMET_ABORT_OP 0x2 /* Abort WQE issued on exchange */
#define LPFC_NVMET_XBUSY 0x4 /* XB bit set on IO cmpl */
#define LPFC_NVMET_CTX_RLS 0x8 /* ctx free requested */
#define LPFC_NVMET_ABTS_RCV 0x10 /* ABTS re... | C |
|
| 电商平台安全 | 如何保障电商平台交易的安全性,防范各类网络攻击和数据泄露? |
| 区块链应用 | 区块链技术有哪些实际应用场景,如何解决当前社会经济发展中存在的信任问题? |
| 光伏发电系统优... | Markdown |
, node:named_child_count() - 1 do
local child = node:named_child(i) ---@type TSNode
local child_start_row, child_start_col, child_end_row, child_end_col = child:range()
if child_start_row > start_row or child_start_col > start_col then
table.insert(ranges, {
start_row,
start_col,
... | Lua |
}
}
/**
* Create a random 12-byte nonce.
*
* @param random a {@code SecureRandom} object. If {@code null} is
* provided a new {@code SecureRandom} object will be instantiated.
*
* @return a 12-byte array containing the random nonce.
*/
private static byte[] createRandomN... | Java |
List()) {
List<XmlEvidenceRecord> signatureEvidenceRecords = simpleReport.getSignatureEvidenceRecords(sigId);
if (Utils.isCollectionNotEmpty(signatureEvidenceRecords)) {
++sigWithErCounter;
}
XmlEvidenceRecord evidenceRecord = signatureEvidenceRecords.get... | Java |
import torch
import neuralop.mpu.comm as comm
def setup(config):
"""A convenience function to intialize the device, setup torch settings and
check multi-grid and other values. It sets up distributed communitation, if used.
Parameters
----------
config : dict
this function checks:
... | Python |
* .build());
*
* var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
* .vpcName("terraform-example")
* .cidrBlock("172.17.3.0/24")
* .build());
*
* var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
* ... | Java |
Plaga de Orgrimmar",
},
[9264] = {
["D"] = "La Plaga está acampada en nuestra misma puerta; ¡no podemos permanecer inactivos! ¿Seguro que darás un paso al frente para defender Cima del Trueno de estos malditos invasores? $b $bHay extraños círculos rúnicos afuera, brillando con la misma energía que rodea a los n... | Lua |
//*****************************************************************************
//
// flash.h - Prototypes for the flash driver.
//
// Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// excl... | C |
for i = 4, #ARGV do
local stateKey = prefix .. ARGV[i]
if ARGV[i] == "wait" or ARGV[i] == "paused" then
-- Markers in waitlist DEPRECATED in v5: Remove in v6.
local marker = rcall("LINDEX", stateKey, -1)
if marker and string.sub(marker, 1, 2) == "0:" then
local count = rcall("LLEN", stateKey)
... | Lua |
# Conversor Ton-Kgr y Pies-Mts
"""
Elaborar un algoritmo tal que dado como datos el nombre de un dinosaurio, su peso y su longitud,
expresados estos dos últimos en toneladas y pies respectivamente; que imprima el nombre del
dinosaurio, su peso en kilogramos y su longitud en metros.
"""
dinosaurio = input("Ingre... | Python |
BeCast(abilities[4]) == true then
bot:Action_ClearActions(false);
InvokeOrbToSpell(W, W, W);
bot:ActionQueue_UseAbilityOnLocation( abilities[8], empTarget );
empCastTime = DotaTime();
return true;
end
end
if castColdSnapDesire > 0 then
if IsAbilityHidden(abilities[5]) == false then
... | Lua |
고 있다는 것은 그 시스템을 사용하는 사용자 중 대다수나 일부는 정상적인 응답을 받지 못했다는 말이다. 그리고, 대부분 서로 다른 서버간에 통신 문제나 원격 서버의 성능이 느려서 타임아웃이 발생할 수도 있지만, 그 이유가 GC 때문일 수도 있다.
정리하자면,
- JVM의 메모리 크기도 지정하지 않았고,
- Timeout이 지속적으로 발생하고 있다면
시스템에서 GC 튜닝을 하는 것이 좋다. 그렇지 않다면, GC 튜닝할 시간에 다른 작업을 하는 것이 더 낫다. 꼭 한가지 명심해야 하는 점은 **GC 튜닝은 가장 마지막에 하는 작업이라는 것이다.** GC 튜닝을 왜 ... | Markdown |
AWS_CONFIG = {
"region": "us-east-1",
"endpoints": [
{
"s3": "http://localhost:4566",
"sts": "http://localhost:4566",
"apigateway": "http://localhost:4566",
"apigatewayv2": "http://localhost:4566",
"cloudformation": "http://localhost:4566",
... | Python |
_KQiMqdkZjQN0u .Focusable:nth-child(4),
._39oUCO1OuizVPwcnnv88no ._1-9sir4j_KQiMqdkZjQN0u .Focusable:nth-child(5) {
order: 1;
display: flex;
margin-right: 8px;
}
._2Szzh5sKyGgnLUR870zbDE {
width: 32px;
height: 24px;
padding: 0 !important;
background-color: rgba(103,112,123,.2);
}
._3LKQ3S_y... | CSS |
en
-- achievement name
line = WatchFrame_GetAchievementLine();
achievementTitle = line;
WatchFrame_SetLine(line, previousLine, -WATCHFRAME_QUEST_OFFSET, IS_HEADER, achievementName, DASH_NONE);
if ( not previousLine ) then
line:SetPoint("RIGHT", lineFrame, "RIGHT", 0, 0);
line:SetPoint("LEF... | Lua |
<name>。我是魯爾,既是壹個戰士,也是壹個導師。","如果妳想在莫高雷之外經歷更多冒險的話,現在正是讓妳接受更多考驗的時候了。","如果妳想測試自己的能力,就去東南方找風怒鷹身人作戰吧。他們駐紮在山邊遠離大路的地方。","鷹身人是我們的天敵,對妳來說,和他們戰鬥會是個不錯的考驗。"}, {"給血蹄村的盧爾·鷹爪帶回8只風怒鷹身人的爪子。"}},
[744] = {"準備典禮", {"<name>,我的兄弟很快就要去面見血蹄酋長了,我要為他做壹個頭飾,這對我來說是壹種榮耀。","在我處理這些皮革的時候,妳能不能幫我壹個忙?我沒有時間去收集足夠的羽毛,不知道妳能否幫助我去收集壹些呢?","妳應該可以在雷霆崖北面和西北面的鷹身人身上找... | Lua |
ha_url or config.get("waha_url", DEFAULT_WAHA_URL)
api_key = args.api_key or config.get("api_key", DEFAULT_API_KEY)
session = args.session or config.get("session", DEFAULT_SESSION)
# Verificar se o servidor WAHA está configurado
logger.info("Verificando configuração do servidor WAHA...")
#... | Python |
server_list.draw(dt)
imgui.EndTabItem()
end
if imgui.BeginTabItem("Direct Connect") then
kissui.tabs.direct_connect.draw()
imgui.EndTabItem()
end
if imgui.BeginTabItem("Create server") then
kissui.tabs.create_server.draw()
imgui.EndTabItem()
end
... | Lua |
from typing import List
from pyrep.backend import sim
from pyrep.const import ObjectType
from pyrep.objects.force_sensor import ForceSensor
from pyrep.objects.object import Object
from pyrep.objects.shape import Shape
class Accelerometer(Object):
"""An object able to measure accelerations that are applied to it.... | Python |
/*
* Copyright (c) International Business Machines Corp., 2006
* Copyright (c) Nokia Corporation, 2006, 2007
*
* SPDX-License-Identifier: GPL-2.0+
*
* Author: Artem Bityutskiy (Битюцкий Артём)
*/
#ifndef __UBI_UBI_H__
#define __UBI_UBI_H__
#ifndef __UBOOT__
#include <linux/types.h>
#include <linux/list.h>
#inc... | C |
//
// IJSVGPath.h
// IconJar
//
// Created by Curtis Hard on 30/08/2014.
// Copyright (c) 2014 Curtis Hard. All rights reserved.
//
#import <IJSVG/IJSVGNode.h>
#import <IJSVG/IJSVGColorNode.h>
#import <Foundation/Foundation.h>
@class IJSVGGroup;
typedef NS_ENUM(NSInteger, IJSVGPrimitivePathType) {
kIJSVGPrim... | C |
function Awake()
coms = ComUtil.GetComsInChildren(gameObject,"ActionSRSize");
if(coms)then
for i=0,coms.Length-1 do
local com = coms[i];
srScaleComs = srScaleComs or {};
table.insert(srScaleComs,com);
end
end
end
function Set(character)
if(character)t... | Lua |
{ registerVennChart } from '@visactor/vchart';
// registerVennChart();
/** --在业务中使用时请添加以上代码-- */
/** --在业务中使用时请删除以下代码-- */
VCHART_MODULE.registerVennChart();
/** --在业务中使用时请删除以上代码-- */
const spec = {
type: 'venn',
data: {
values: [
{ sets: ['A'], value: 30 },
{ sets: ['B'], value: 10 },
{ se... | Markdown |
module("luci.controller.v2ray", package.seeall)
local fs = require "nixio.fs"
local http = require "luci.http"
local i18n = require "luci.i18n"
local sys = require "luci.sys"
function index()
if not nixio.fs.access("/etc/config/v2ray") then
return
end
entry({"admin", "services", "v2ray"}, firstchild(), _("V2Ray... | Lua |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in asn1/ISO19091.asn"
* `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
*/
#include "RegionId.h"
int
RegionId_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *... | C |
uffButton" .. num .. "Icon"):SetTexture("Interface\\Icons\\" ..v[3]);
getglobal(frame:GetName() .. "DebuffButton" .. num).name = k;
getglobal(frame:GetName() .. "DebuffButton" .. num).owner = name;
getglobal(frame:GetName() .. "DebuffButton" .. num).texture = v[3];
getglobal(frame:Ge... | Lua |
ES_STATE_TEAM_SHOWCASE")
elseif new_state == DOTA_GAMERULES_STATE_WAIT_FOR_MAP_TO_LOAD then
DebugPrint("[BAREBONES] Game State changed to: DOTA_GAMERULES_STATE_WAIT_FOR_MAP_TO_LOAD")
elseif new_state == DOTA_GAMERULES_STATE_PRE_GAME then
DebugPrint("[BAREBONES] Game State changed to: DOTA_GAME... | Lua |
_{t+1} = \theta_t - \frac{\eta}{\sqrt{G_t + \epsilon}} \cdot \nabla \mathcal{L}(\theta_t)
\]
其中,\(G_t\) 是每個參數的梯度平方的累積和,\(\epsilon\) 是防止除以零的小常數。
- **RMSprop**:RMSprop 針對每個參數進行梯度平方的衰減平均,以解決 AdaGrad 的學習率過早衰減的問題。更新規則為:
\[
E[\nabla \mathcal{L}(\theta_t)^2] = \beta E[\nabla \mathcal{L}(\theta_t-1)^2] + (1 - \beta)... | Markdown |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Layout/Visibility.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "Models/ProjectLauncherModel.h"
class SEditableTextBox;
/**
* Implements the profile page for... | C |
cl))
n = n + 1
state = 0 -- search for next symbol (if any)
end
end
i = i + 1
end
-- don't create new subtables for entries not in the map. Waste of space.
-- But do return an empty table to prevent runtime errors. (instead of returning nil)
local mt = {}
setmetatable(map, {
__index = function (... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.