content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
// Include files
#include "minOrMax.h"
#include <cmath>
// Function Definitions
//
//
namespace coder {
namespace internal {
double maximum(const double x_data[], const int x_size[2])
{
double ex;
int idx;
int k;
int last;
last = x_size[1];
if (!std::isnan(x_data[0])) {
idx = 1;
} else {
boolea... | C++ |
.build().run();
client.alterSession(ExecConstants.SLICE_TARGET, 1);
client.alterSession(PlannerSettings.MULTIPHASE.getOptionName(), true);
testBuilder()
.ordered()
.sqlQuery(sql)
.baselineColumns("cnt")
.baselineValues(2000L)
.build().run();
client.alt... | Java |
right:0;letter-spacing:10px}.wrapper .container .sec7 .part9 .form form .form-group input,.wrapper .container .sec7 .part9 .form form .form-group select{font-size:16px;border:solid 1px #000;border-radius:0}.wrapper .container .sec7 .part9 .form form .form-group select{margin:0 5px 5px 0}.wrapper .container .sec7 .part9... | CSS |
invalid links during doc generation.
#### Comments
Comments are not natively supported in Markdown. The workaround is to us an empty link. Credit: https://stackoverflow.com/a/20885980
Best way to add links is like this:
`[//]: <> (This is a comment.)`
#### Alerts
Alerts should be written as below.
> Github and VS ... | Markdown |
Familar.BellToll")
end
function modifier_imba_visage_become_familiar_delay:OnDestroy()
if not IsServer() then return end
local become_familiar_modifier = self:GetCaster():FindModifierByNameAndCaster("modifier_imba_visage_become_familiar", self:GetCaster())
if not become_familiar_modifier then
self:GetParent():... | Lua |
CreateWindowInBand_t CreateWindowInBand_Original;
HWND WINAPI CreateWindowInBand_Hook(DWORD dwExStyle, LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, int X, int Y,
int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance,
... | C++ |
return logging_dict['loss']
@torch.no_grad()
def generate(self, text=None, img=None, src_key_padding_mask = None, return_logits=False, **kwargs):
pred_tokens, logits = self._generate(text=text, img=img, src_key_padding_mask=src_key_padding_mask, **kwargs)
pred = self.tokenizer_y.d... | Python |
public:
/**
* @brief
*
*/
ClassLevelLockable()
{
}
friend class Lock;
/**
* @brief
*
*/
class Lock
{
public:
... | C |
self:getWidth(), lineWidth / 2 -- Top-right
-- )
-- Vertical Line
-- love.graphics.line(
-- self:getWidth() - lineWidth / 2, 0 -- Top-right
-- self:getWidth() - lineWidth / 2, self:getHeight() -- Bottom-right
-- )
-- Three-point line
love.graphics.line(
lineWidth / 2, li... | Lua |
-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24... | CSS |
Test, StreamsNullPointer) {
int* p = nullptr;
EXPECT_EQ("(null)", (Message() << p).GetString());
}
// Tests streaming a C string.
TEST(MessageTest, StreamsCString) {
EXPECT_EQ("Foo", (Message() << "Foo").GetString());
}
// Tests streaming a NULL C string.
TEST(MessageTest, StreamsNullCString) {
char* p = null... | C++ |
math/rand"
"time"
)
// github.com/EndlessCheng/codeforces-go
func CF1314D(_r io.Reader, out io.Writer) {
rand.Seed(time.Now().UnixNano())
in := bufio.NewReader(_r)
min := func(a, b int) int {
if a > b {
return b
}
return a
}
var n, k int
Fscan(in, &n, &k)
dis := make([][]int, n)
for i := range dis {... | Go |
c.shape, dtype=np.float16)
style_inp = cuda.DeviceView(ptr=style_c.reshape(-1).data_ptr(), shape=style_c.shape, dtype=np.int64)
freqs_cis_img0_inp = cuda.DeviceView(ptr=freqs_cis_img0_c.reshape(-1).data_ptr(),
shape=freqs_cis_img0_c.shape, dtype=n... | Python |
geo_json_cbc1bc6786fb11e115ec7bf7be0c2df9
.addData(data);
}
geo_json_cbc1bc6786fb11e115ec7bf7be0c2df9_add({"features": [{"geometry": {"coordinates": [[[-77.04950530755958, 38.92823338352499], [-77.05147120835949, 38.927263183762086], [-77.05129416674161, 38.92554630769682... | HTML |
}
/// <summary>
/// Reverts back to the original encryption key, this function is also automatically called when closing a file
/// </summary>
public void SetDefaultKey()
{
XLGamesKey.CopyTo(key, 0);
}
/// <summary>
/// Encrypts or Decrypts a byte array using AES128 CBC -
... | C# |
) -> Point3<f32> {
Point3::new(
(-WIDTH / 2 + i * CELL_WIDTH) as f32,
(HEIGHT / 2 - j * CELL_HEIGHT) as f32,
0.0,
)
}
fn setup() {
size(800, 800);
background(0.2);
unsafe {
GRID = Some(Grid::new(COLS, ROWS, CELL_WIDTH, CELL_HEIGHT));
if let Some(ref mut grid)... | Rust |
template=TEMPLATE,
),
# vehicles to be placed in the network at the start of a rollout (see
# flow.core.params.VehicleParams)
veh=vehicles,
# parameters specifying the positioning of vehicles upon initialization/
# reset (see flow.core.params.InitialConfig)
initial=InitialConfig(
... | Python |
pace(movingShapes, resizingShapes, delta, direction, start);\n};\n\n/**\n * Initialize make space and return true if that was successful.\n *\n * @param {Object} event\n * @param {Object} context\n *\n * @return {boolean}\n */\nSpaceTool.prototype.init = function(event, context) {\n var axis = abs(event.dx) > abs(even... | JavaScript |
IdentitySetByAddingLiverpoolIdentity:(struct _PCSIdentitySetData *)arg1 error:(id *)arg2;
- (struct _PCSIdentitySetData *)_createInMemoryIdentitySetForService:(id)arg1 error:(id *)arg2;
- (id)_addServiceIdentitiesOfType:(id)arg1 toSet:(struct _PCSIdentitySetData *)arg2 fromSet:(struct _PCSIdentitySetData *)arg3 markCur... | C |
�িয়ার বিরোধ চলে আসছে। উভয় পক্ষের দাবী তারা পুকুরের লিজ নিয়ে রেখেছেন। এ নিয়ে উভয় পক্ষের মধ্যে দীর্ঘদিন ধরে উত্তেজনা চলছিল। এর জের ধরে দুপুরে চানপুর গ্রামে রেললাইনের উপর দেশীয় অস্ত্রশস্ত্র নিয়ে সংঘর্ষে জড়ায় দুই পক্ষের লোকজন। সংঘর্ষে ধারালো অস্ত্রের আঘাতে ইদ্রিস মিয়ার হাত থেকে কব্জি বিচ্ছিন্ন হয়ে যায়। এ সময় ত... | Markdown |
hash,
platform
)})\n\n`;
}
if (failedPlatformKeys.length > 0) {
platformsOutput += "Failed tests:\n";
platformsOutput +=
makeTable(
id,
platform,
hash,
failedPlatformKeys,
mappedImages
) + "\n";
platformStatus[platform] = false;
} else {
platfo... | Typescript |
[42142] = "Klobiges Drachenauge",
[42143] = "Feingeschliffenes Drachenauge",
[42144] = "Runenbeschriebenes Drachenauge",
[42145] = "Funkelndes Drachenauge",
[42146] = "Irisierendes Drachenauge",
[42148] = "Glänzendes Drachenauge",
[42149] = "Glattes Drachenauge",
[42150] = "Spiegelndes Drachenauge",
[42151] = "Fragiles... | Lua |
sports[line["qcode"]] = set(line["values"])
i += 1
if is_test and i > 10000:
break
return sports
def get_qcode_classes(
qcode: str, occupations, sports, country, instance_of, class_explorer, subclasses
) -> Set[str]:
classes = set()
# subclasses disabled as t... | Python |
_TYPE_LOCATE)
//
// //设置定位蓝点的Style
// aMap?.myLocationStyle = myLocationStyle
//
// // 设置为true表示启动显示定位蓝点,false表示隐藏定位蓝点并不进行定位,默认是false。
// aMap?.isMyLocationEnabled = true
//
// aMap?.addOnCameraChangeListener(this)
// }
//
// override fun initData() {
//
// }
//
// @Single... | Kotlin |
)
return E_OUTOFMEMORY;
pAdapterInfo->AdapterOrdinal = adapterOrdinal;
pD3D->GetAdapterIdentifier(adapterOrdinal, 0, &pAdapterInfo->AdapterIdentifier);
// Get list of all display modes on this adapter.
// Also build a temporary list of all display adapter formats.
... | C++ |
asm(".syntax unified \n\
\n\
.balign 4, 0 \n\
\n\
thumb_func_start func_08037dc8 \n\
/* 08037dc8 */ PUSH {R4, R5, LR} \n\
/* 08037dca */ ADDS R5, R0, 0x0 @ Set R5 to R0 + 0x0 \n\
/* 08037dcc */ CMP R5, 0x0 @ Compare R5 and 0x0 \n\
/* 08037dce */ BEQ branch_08037df8 \n\
/* 08037dd0 */ LDR R4, =gCurrentEngineData \n\
/* ... | Assembly |
ssign chosen object as parent to all selected objects'''
bl_idname = "object.assign_parent"
bl_label = "Assign Parent Object"
def available_objects(self,context):
objs_to_ignore = ["Camera", "Lamp", "Image", "ImageStackLadder"]
items = [(str(i),x.name,x.name) for i,x in enumerate(bpy.data.o... | Python |
102 = StereoHeadphones
<br>103 = MatrixStereo
<br>104 = MidSide
<br>105 = XY
<br>106 = Binaural
<br>107 = Ambisonic_B_Format
<br>108 = Quadraphonic
<br>109 = Pentagonal
<br>110 = Hexagonal
<br>111 = Octagonal
<br>112 = Cube
<br>113 = MPEG_3_0_A
<br>114 = MPEG_3_0_B
<br>115 = MPEG_4_0_A
<br>1... | HTML |
or_get_method_by_name(
const ProtobufCServiceDescriptor *desc,
const char *name);
/**
* Initialise a `ProtobufCBufferSimple` object.
*/
#define PROTOBUF_C_BUFFER_SIMPLE_INIT(array_of_bytes) \
{ \
{ protobuf_c_buffer_simple_app... | C |
BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FON... | HTML |
�胶粘剂",
"synthetic sand":"[机] 合成砂",
"synthetic sandalwood oil":"[化] 合成檀香油",
"synthetic shellac":"[化] 合成洋干漆",
"synthetic sizing agent":"[化] 合成施胶剂",
"synthetic slow-release fertilizer":"[化] 合成缓释肥料",
"synthetic substance":"un. 合成物质",
"synthetic system":"[计] 综合系统",
"synthetic tannin":"[化] 合成单宁",
"synthetic tanning agent":"[... | Typescript |
try(PSIF_SAPT_AMPS, "tARAR Amplitudes", (char *)&(tARAR[0]),
sizeof(double) * aoccA_ * nvirA_ * aoccA_ * nvirA_);
C_DCOPY(aoccA_ * nvirA_ * aoccA_ * nvirA_, tARAR, 1, thetaARAR, 1);
antisym(thetaARAR, aoccA_, nvirA_);
ijkl_to_ikjl(tARAR, aoccA_, nvirA_, aoccA_, nvirA_);
ijkl_to_ik... | C++ |
ipeline")
@POST
fun queryPipelineSumInfo(
@Parameter(description = "项目ID", required = true)
@HeaderParam(AUTH_HEADER_DEVOPS_PROJECT_ID)
@BkField(required = true)
projectId: String,
@Parameter(description = "userId", required = true)
@BkField(required = true)
... | Kotlin |
p).await,
}
}
//! Prelude module with common types used for unit tests.
pub use crate::test::transport::TestTransport;
use futures::future::FutureExt;
pub use serde_json::json;
use std::future::Future;
pub use web3::api::Web3;
/// An extension future to wait for a future.
pub trait FutureTestExt: Future {
///... | Rust |
_err();
}
}
<filename>src/codec/tests.rs<gh_stars>0
use std::str::FromStr;
use super::*;
use crate::{types::*, util::*};
#[test]
fn decoder_simple() {
let mut codec = Codec::new();
let buf = &mut BytesMut::new();
buf.reserve(1024);
buf.put("ping\r\npOnG\r\n");
assert_eq!(
codec.decode(b... | Rust |
A== 58156
IE1heW8= 58157
YXNwZWN0 58158
IHZhZ2luYWw= 58159
IGluaXRpYWxpemluZw== 58160
IHN0ZXJvaWRz 58161
ZmljdGlvbg== 58162
R1JF 58163
Z2VuZA== 58164
IGxpYWJpbGl0aWVz 58165
IExldHM= 58166
TWVjaA== 58167
KG5j 58168
KGNoYW5nZQ== 58169
IGNvbm5lY3RvcnM= 58170
Oms= 58171
IHRhc3Q= 58172
ISIpOwoK 58173
dGhpbmdz 58174
cm9waHk=... | Kotlin |
ing;
background-color: $thumbnail-bg;
border: $thumbnail-border-width solid $thumbnail-border-color;
@include border-radius($thumbnail-border-radius);
@include box-shadow($thumbnail-box-shadow);
// Keep them at most 100% wide
@include img-fluid();
}
//
// Figures
//
.figure {
// Ensures the caption's t... | CSS |
-transform: rotate(-90deg);
-o-transform-origin: 0 0;
transform: rotate(-90deg);
transform-origin: 0 0;
}
.layout-expand-with-icon {
top: 18px;
}
.layout-expand .panel-body-noheader .layout-expand-title,
.layout-expand .panel-body-noheader .panel-icon {
top: 5px;
}
.layout-expand .panel-body-noheader .layout-... | CSS |
Vec3::new(a as f32 + 0.9 * rng.gen::<f32>(), 0.2, b as f32 + 0.9 * rng.gen::<f32>());
if (center - Vec3::new(4.0, 0.2, 0.0)).length() < 0.9 {
continue;
}
world.push(Box::new(Sphere::new(center, 0.2,
if choose_nat < 0.8 {
Box::new(L... | Rust |
1f
lsl r1, r0, #0x18
sub r1, r1, r2
mov r0, #0x18
ror r1, r0
add r0, r2, r1
cmp r4, r0
bne _021F02AC
add r0, r5, #0
add r1, r6, #0
bl ov16_021F2D88
_021F02AC:
pop {r4, r5, r6, pc}
.align 2, 0
thumb_func_end ov16_021F0274
thumb_func_start ov16_021F02B0
ov16_021F02B0: ; 0x021F02B0
push {r4, r5, r6, lr}
a... | Assembly |
(a5),d0
btst #3,d5
bne.s .ho_kesako2
bra.s .ho_kesako3
.ho_kesako2: add.b #$f0,d5
.ho_kesako3: sub.b d5,d0
move.b d0,-(a5)
bra tst_end
get_bit2: clr d5
.get_bits: add.b d7,d7
beq.s .empty
.cont: addx d5,d5
dbf d6,.get_bits
tst d5
rts
.empty: move.b -(a6),d7
addx.b d7,d7
bra.s .cont
bigger: moveq #2,d6
word: ... | Assembly |
IME,
HORROR,
ROMANCE,
FANTASY,
RELIGIOUS,
HISTORICAL,
INSPIRATION,
} = GenreListType
export class Genre extends Model {
public id: string
public name: GenreListType
public keywords: string[]
public readonly createdAt!: Date
public readonly updatedAt!: Date
public readon... | Typescript |
al silverText = frame:CreateFontString("MoneyFuFrameSilverText", "OVERLAY")
silverText:SetJustifyH("RIGHT")
silverText:SetPoint("RIGHT", silverIcon, "LEFT", 0, 1)
silverText:SetFontObject(GameFontNormal)
local copperText = frame:CreateFontString("MoneyFuFrameCopperText", "OVERLAY")
copperText:SetJustifyH("RIGHT"... | Lua |
源 就跳过
continue;
}
root.AddChild(bundleNode);
}
SetupDepthsFromParentsAndChildren(root);
return root;
}
protected override void RowGUI(RowGUIArgs args)
{
for (int i = 0; i < args.GetNumVisibleC... | C# |
meOverlayEnabled
end
--[=[
Observes whether the experience name overlay is enabled
@return Observable<boolean>
]=]
function ScreenshotHudModel.ObserveExperienceNameOverlayEnabled(
self: ScreenshotHudModel
): Observable.Observable<boolean>
return self._experienceNameOverlayEnabled:Observe()
end
--[=[
Sets whether... | Lua |
if (currentTab == 0) return 'Chưa có đơn hàng nào';
return 'Không có đơn hàng ở trạng thái "${_tabTitles[currentTab]}"';
}
String _getEmptySubtitle() {
final currentTab = _tabController.index;
if (currentTab == 0) {
return 'Bạn chưa có đơn hàng nào.\nHãy bắt đầu mua sắm ngay!';
}
return '... | Dart |
`Missing argument for command: add/remove/help`);
return;
}
const mapper = new Map<string, MessageFunction>(
Object.entries({
add: add,
remove: remove,
list: list,
help: help,
})
);
const func = mapper.get(firstArg);
if (func) func(message, user, args);
else {
messa... | Typescript |
Sonar.waterSoundsShuttleDirectional
suitSoundsDirectional = RealSonar.suitSoundsShuttleDirectional
waterSounds = RealSonar.waterSoundsShuttle
suitSounds = RealSonar.suitSoundsShuttle
end
terminal_type = RealSonar.getTerminalType(terminal_id)
for _, character in pairs(Character.Char... | Lua |
'''
@Description:
@Author: shenlei
@Date: 2023-12-18 16:54:50
@LastEditTime: 2024-01-07 00:22:50
@LastEditors: shenlei
'''
query_instruction_for_retrieval_dict = {
"BAAI/bge-large-en": "Represent this sentence for searching relevant passages: ",
"BAAI/bge-base-en": "Represent this sentence for searching relev... | Python |
144', '石牌教会', '石牌教会'},
{'2145', '门徒会', '门徒会'},
{'2146', '全范围教会', '全范围教会'},
{'2147', '三班仆人派', '三班仆人派'},
{'2148', '你奶奶', '你奶奶'},
{'2149', '回民都是猪', '回民都是猪'},
{'2150', '红5', '红5'},
{'2151', '站街女', '站街女'},
{'2152', 'ADMIN', 'ADMIN'},
{'2153', 'xtl', 'xtl'},
{'2154', 'system', 'system'},
{'2155', 'Administrator', 'Administra... | Lua |
ntLine.removeCells(start, count, terminal.cursor);
}
/// Remove all lines above the top of the viewport.
void clearScrollback() {
if (height <= viewHeight) {
return;
}
lines.trimStart(scrollBack);
}
/// Clears the viewport and scrollback buffer. Then fill with empty lines.
void clear() ... | Dart |
,
style: _chrStyle,
textAlign: TextAlign.left,
width: size.width,
offset: Offset(5, (size.height - 14) / 2),
);
}
// drawText(
// canvas,
// text: '${trackData.rangeEnd.toInt()}',
// style: TextStyle(fontSize: 10, color: styleConfig.isDark... | Dart |
/18
* desc : 支持嵌套滚动的 ViewPager
*/
class NestedViewPager @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
ViewPager(context, attrs), NestedScrollingParent, NestedScrollingChild {
private val parentHelper: NestedScrollingParentHelper = NestedScrollingParentHelper(this)
privat... | Kotlin |
features: 'Win32_System_SystemServices'*"]
pub const D3DVIS_MASK_BOTTOM: u32 = 768u32;
#[doc = "*Required features: 'Win32_System_SystemServices'*"]
pub const D3DVIS_MASK_FAR: u32 = 12288u32;
#[doc = "*Required features: 'Win32_System_SystemServices'*"]
pub const D3DVIS_MASK_FRUSTUM: u32 = 3u32;
#[doc = "*Required fea... | Rust |
6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"],
"hockey-puck": [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V2... | JavaScript |
nglish :
* The project is protected by the MPL open source agreement.
* Open source agreement warning that prohibits deletion of project source code files.
* The project is prohibited from acting in illegal areas.
* All illegal activities arising from the use of this project are the responsibility of the second au... | Kotlin |
34;div-gpt-ad-swf\")).load();\n }\n \n })()\n \n \n </script>\n \n"}">
<div id="div-gpt-ad-swf"></div>
<script>
window.__async_ads = window.__async_ads || [];
window.__async_ads.push(function(hasPlus, vendors, depen... | HTML |
d /* x & ... */
xor %ebx, %r11d /* z ^ ... */
mov 15*4(%rsi),%r10d /* (NEXT STEP) X[15] */
add %r11d, %ecx /* dst += ... */
rol $17, %ecx /* dst <<< s */
mov %eax, %r11d /* (NEXT STEP) z' = %eax */
add %edx, %ecx /* dst += x */
xor %edx, %r11d /* y ^ ... */
lea 1236535329(%ebx,%r10d),%ebx /* Cons... | Assembly |
forwardClientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "forward_client_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Has... | C# |
2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;");
OC.L10N.register(
"circles",
{
"You deleted {circle}" : "Rydych wedi dileu {circle}",
"{author} deleted {circle}" : "Mae {author} wedi dileu {circle}",
"You removed {member} from {circle}" : "Rydych wedi dileu {member} o {circle}",
... | JavaScript |
/*
* Copyright (C) 2017 Andrew Gunnerson <andrewgunnerson@gmail.com>
*
* This file is part of DualBootPatcher
*
* DualBootPatcher is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... | C |
-1, false, TRACK_VRRP_DYNAMIC);
if (!IF_ISUP(vrrp->configured_ifp->base_ifp) && !vrrp->dont_track_primary) {
log_message(LOG_INFO, "(%s) interface %s is down",
vrrp->iname, vrrp->configured_ifp->base_ifp->ifname);
vrrp->num_script_if_fault++;
}
}
/* We might be the configured interface f... | C |
public Input<int>? NewerNoncurrentVersions { get; set; }
/// <summary>
/// Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.
/// </summary>
[Input("noncurrentDays", required: true)]
public Input<int> No... | C# |
tfeedbackleveler_html_ga821078d9cde9ae2f2c4e78ff3c3b78e6"><div class="ttname"><a href="group__tfeedbackleveler.html#ga821078d9cde9ae2f2c4e78ff3c3b78e6">tFeedbackLeveler_free</a></div><div class="ttdeci">void tFeedbackLeveler_free(tFeedbackLeveler *const)</div><div class="ttdoc">Free a tFeedbackLeveler from its mempool.... | HTML |
72e31094f9ed608e21739d50">[favorite]</a> <a class="fave" href="familiar.php?&action=newfam&newfam=90&pwd=5a1cc7ae72e31094f9ed608e21739d50">[take with you]</a></font></td><td valign=center nowrap><center><b>(</b><img src="https://d2uyhvukfffg5a.cloudfront.net/itemimages/motorcycle.gif" class=hand onClick='des... | HTML |
eriphClockCmd(RCC_APB1Periph_TIM4 , ENABLE);
if(GPIO_AF == 0){
//---------------------------------------------------------------TIM4 CHI1 CHI2---PB6 PB7;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB , ENABLE);
GPIO_PinAFConfig(GPIOB, GPIO_PinSource6, GPIO_AF_TIM4);
... | C |
r.api.Test
import org.springframework.messaging.MessageHeaders
import org.springframework.messaging.support.GenericMessage
import org.springframework.web.reactive.function.client.WebClient
class FunctionConfigurationTest {
private lateinit var mockWebServer: MockWebServer
private lateinit var functionConfiguratio... | Kotlin |
ccount is working in K-9 Mail, send yourself an email from your computer and download it from the K-9 Mail client.</p><p>We recommend that you use K-9 Mail only in addition to your computer's email client. Therefore it is important that when you download email with your Android phone, it does not delete the email on th... | HTML |
632315e+01 1.2e-09 0.01
Optimizer terminated. Time: 0.02
Interior-point solution summary
Problem status : PRIMAL_AND_DUAL_FEASIBLE
Solution status : OPTIMAL
Primal. obj: 2.0646323351e+01 nrm: 2e+00 Viol. con: 8e-09 var: 4e-09 cones: 0e+00
Dual. obj: 2.0646323148e+01 nrm: 7e+00 ... | HTML |
utils.isCrawlOver(data.concludedSuccessState), true));
it("should reject in-progress crawl states", () =>
test.eq(utils.isCrawlOver(data.inProgressState), false));
});
describe("bound()", () => {
it("should not affect valuees that fall within the range", () =>
test.eq(utils.bound(4.6, 2, 20), 4.6));
... | Typescript |
'
export type Tree = Node | Leaf
export interface Node {
type: 'node'
a: Tree
b: Tree
}
export interface Leaf {
type: 'leaf'
v: string
}
export type GTree<A> = GNode<A> | GLeaf<A>
export interface GNode<A> {
type: 'node'
a: GTree<A>
b: GTree<A>
}
export interface GLeaf<A> {
type: 'leaf'
v: A
}
in... | Typescript |
span>; i < n; i++) {</a>
<a class="sourceLine" id="cb395-392" title="392"> assert(treeContains(root, i));</a>
<a class="sourceLine" id="cb395-393" title="393"> treeDelete(&root, i);</a>
<a class="sourceLine" id="cb395-394" title="394"> assert(!treeContains(root, i));</a>
<a class="sourceLine... | HTML |
当在10日内回复意见。
第十二条 国务院国防科技工业主管部门根据国家武器装备科研生产能力布局的要求,按照武器装备科研生产的实际需要,经征求总装备部意见,可以对有特殊要求的武器装备科研生产许可做出数量限制。
第十三条 武器装备科研生产许可证应当载明单位名称、法定代表人、许可专业或者产品名称、证书编号、发证日期、有效期等相关内容。
武器装备科研生产许可证格式由国务院国防科技工业主管部门规定。
第十四条 取得武器装备科研生产许可的单位应当妥善保管武器装备科研生产许可证,严格保密管理,不得泄露武器装备科研生产许可证载明的相关内容。
第十五条 取得武器装备科研生产许可的单位应当在武器装备科研生产合同、产品出厂证书上标注武器装备科研生... | Markdown |
wi r0, 0
/* 803536D4 00350614 40 82 00 A0 */ bne .L_80353774
/* 803536D8 00350618 80 9F 03 78 */ lwz r4, 0x378(r31)
/* 803536DC 0035061C 38 61 00 14 */ addi r3, r1, 0x14
/* 803536E0 00350620 81 84 00 00 */ lwz r12, 0(r4)
/* 803536E4 00350624 81 8C 00 08 */ lwz r12, 8(r12)
/* 803536E8 00350628 7D 89 03 A6 */ mtctr... | Assembly |
The tile bank to use.
/// @param basePriority The current priority for the given tile.
/// @param sprite Whether the tile beints to a sprite or not.
void drawTile(Palette palette, List<int> data, int x, int y, int tile, int scanline, bool flipX, bool flipY, int bank, int basePriority, bool sprite)
{
// Stor... | Dart |
_dosingle:
mov rdx, [rsp + nb302nf_innerjjnr] ;# pointer to jjnr[k]
mov eax, [rdx]
mov rsi, [rbp + nb302nf_pos]
lea rax, [rax + rax*2]
;# fetch j coordinates
movlpd xmm2, [rsi + rax*8]
movlpd xmm3, [rsi + rax*8 + 8]
movlpd xmm4, [rsi + rax*8 + 16]
movlpd xmm5, [rsi + rax*8 + 24]
movlpd xmm6, [... | Assembly |
stant ? DateTimeFormatter.ISO_INSTANT.format(instant)
: zdt.truncatedTo(ChronoUnit.SECONDS)
.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);
match = "<date>"+match+"</date>";
if (!str.contains(match)) {
throw new RuntimeException(formatter.getClass().ge... | Java |
from net.swordie.ms.constants import BossConstants
from net.swordie.ms.enums import EventType
# Mode, Required Level, Map ID, Death Count, Event Type
destinations = [
["Normal", 160, 270050100, 5, EventType.Pinkbean, 64800000],
["Chaos", 160, 270051100, 5, EventType.CPinkbean, 64800000],
]
runsPerDay = 1
if... | Python |
均值 $\mu$ 和方差 $\sigma^2$ 所决定,因此 $\theta = \{\mu, \sigma^2\}$。机器学习模型可以用来预测均值 $\mu$,而方差 $\sigma^2$ 则可以视为一个待定的常数。
#### 5.1.2 最大似然准则
模型现在针对每个训练输入 $x_i$ 计算不同的分布参数 $\theta_i = f(x_i, \phi)$。我们的目标是使每个训练输出 $y_i$ 在其相应的分布 $Pr(y_i|\theta_i)$ 下具有较高概率。因此,我们选择模型参数 $\phi$,以最大化所有 $I$ 个训练样本的联合概率:
$$
\begin{align}
\hat{\phi} &= argmax_{\... | Markdown |
/* Test the sprintf (buf, "%s", buf) does not override buf.
Copyright (C) 2019-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by... | C |
(0755))
}
// InitTemplates sets up templates from a directory
func InitTemplates() error {
tempdir, err := ioutil.TempDir("", "temp")
if err != nil {
return err
}
defer os.RemoveAll(tempdir)
err = CreateTemplate(filepath.Join(tempdir, "t1.tmpl"), `
Template 1! {{ .Var1 }}
{{ block "template2" .... | Go |
:"bytes,9,opt,name=reserved_offer_coin_fee,json=reservedOfferCoinFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"reserved_offer_coin_fee" yaml:"reserved_offer_coin_fee"`
// MsgSwapWithinBatch
Msg *MsgSwapWithinBatch `protobuf:"bytes,10,opt,name=msg,proto3" json:"msg,omitempty" yaml:"msg"`
}
fu... | Go |
^V",
"PoTKiK Rf[l[ RROR[ RTETJ RTEiEiJ RROlOl[ R^QhV R^Q[TUW R_K^R",
"Po^IlI RRUYU RRFRW RRFYFYT R^JbTgYl[ R_E[O RhJdS`XY[",
"PoaUfU RRUXU R^[i[ RRFRW RRFXFXU R^M^[ RbDjK RbDZL RjWi[ R]MgMfU",
"PoeMiM RRTYT R[UiU Rf[k[ RRFRV RRFYFYT RcCbF R^FjFiM R^F^PlQlVk[",
"Po\\FcF R\\MkM RRTXT R_ZlZ RRGRV RRGXG... | C++ |
'拼多多上买哪些婴幼儿产品比较划算、质量又好?有没有店铺推荐?'>拼多多上买哪些婴幼儿产品比较划算、质量又好?有没有店铺推荐?</a> </li> <li style='margin-bottom: 3px;list-style: none'> 4、<a href='#母婴用品应该去哪里买?街边的店铺值得信赖吗?' title='母婴用品应该去哪里买?街边的店铺值得信赖吗?'>母婴用品应该去哪里买?街边的店铺值得信赖吗?</a> </li> </ul><h2 id='生宝宝了,想买<a href="http://www.to3158.cn/tags-y-x65a2814ab3724.html" target="_blank" cla... | HTML |
ree.getEnclosingPolygonIDForPoint({x, y});
if (rawRegionId) {
const enclosingRegion = newRegionsByRawId[rawRegionId];
objRegionIds.push(enclosingRegion.get("id"));
}
const attachedToBoundaryId = obj.get("attachedToBoundary");
if (attachedToBoundaryId) {
const attachedToRe... | JavaScript |
'CLASSIFICATION_TYPE': 'U',
'NORAD_CAT_ID': 45664,
'ELEMENT_SET_NO': 999,
'REV_AT_EPOCH': 361,
'BSTAR': 0.00049,
'MEAN_MOTION_DOT': 0.00044236,
'MEAN_MOTION_DDOT': 0,
'SEMIMAJOR_AXIS': 6757.846,
'PERIOD': 92.145,
'APOAPSIS': 380.553,
'PERIAPSIS': 378.87,
... | Dart |
{
if (myCursorY > myScrollRegionBottom) {
final int dy = myScrollRegionBottom - myCursorY;
myCursorY = myScrollRegionBottom;
scrollArea(myScrollRegionTop, scrollingRegionSize(), dy);
myDisplay.setCursor(myCursorX, myCursorY);
}
if (myCursorY < myScrollRegionTop) {
... | Java |
-32-NEXT: store ptr [[B]], ptr [[B_ADDR]], align 4
// CHECK-32-NEXT: [[TMP0:%.*]] = load ptr, ptr [[B_ADDR]], align 4
// CHECK-32-NEXT: [[TMP1:%.*]] = call i32 @__kmpc_target_init(ptr @{{__omp_offloading_[0-9a-z]+_[0-9a-z]+}}__Z9ftemplateIiET_i_l39_kernel_environment, ptr [[DYN_PTR]])
// CHECK-32-NEXT: [[EX... | C++ |
assert(Type::non_const_copied == 0);
assert(Type::moved == 0);
assert(t.value == 42);
assert(std::any_cast<Type&>(a).value == 42);
}
// Ensure we still only have 1 Type object alive.
assert(Type::count == 1);
// Check that the original ob... | C++ |
pSyms0, tdefl_sym_freq* pSyms1)
{
mz_uint32 total_passes = 2, pass_shift, pass, i, hist[256 * 2]; tdefl_sym_freq* pCur_syms = pSyms0, *pNew_syms = pSyms1; MZ_CLEAR_OBJ(hist);
for (i = 0; i < num_syms; i++) { mz_uint freq = pSyms0[i].m_key; hist[freq & 0xFF]++; hist[256 + ((freq >> 8) & 0xFF)]++; }
while ((total_... | C++ |
async defer></script>
</head>
<body>
<div class="dev" style="display: none;">
DEV PREVIEW ONLY
<script>
(function () {
var loc = window.location.toString();
if (loc.includes("localhost") || loc.includes("BezierInfo-2")) {
var e = document.querySelector("div.dev");
e.removeAttribute... | HTML |
_TEMPLATE_CODE("SMS_201470515","H5活动之家","username,title,time");
/**
* 短信模板编码
*/
private String templateCode;
/**
* 签名
*/
private String signName;
/**
* 短信模板必需的数据名称,多个key以逗号分隔,此处配置作为校验
*/
private String keys;
private DySmsEnum(String templateCode,String signName,String keys) {
this.templateCode =... | Java |
((i - fragBullets/2f) * fragSpread);
((ArcBulletData)aType.create3DInherit(b, a, arcFragCone).data).splitFrom = (ArcBulletType)b.type;
}
}else{
super.createFrags(b, x, y);
}
}
@Override
public void updateBulletInterval(Bullet b){
if(intervalB... | Java |
4,0x0a,0x7e,0x01,0x06,0x05,0x00]
v_ceil_f32_sdwa v5, -v1 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD
// GFX10: encoding: [0xf9,0x44,0x0a,0x7e,0x01,0x06,0x16,0x00]
v_ceil_f32_sdwa v5, |v1| dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD
// GFX10: encoding: [0xf9,0x44,0x0a,0x7e,0x01,0x06,0x26,0x00]
v_ceil_f3... | Assembly |
;
gbc.gridx = 1;
gbc.gridy = 2;
credsPanel.add(changeCredentialsButton, gbc);
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.gridx = 2;
gbc.gridy = 2;
credsPanel.add(testCredentialsButton, gbc);
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = ... | Java |
, .. })) =
&module.maybe_types_dependency
{
pending.push(specifier);
}
}
}
}
}
// clear out all the mapped modules
for specifier in specifiers.mapped_packages.keys() {
modules.remove(specifier);
}
// at this point, the remaining modules are t... | Rust |
Expect<Equal<Comparator<5, 5>, Comparison.Equal>>,
Expect<Equal<Comparator<5, 6>, Comparison.Lower>>,
Expect<Equal<Comparator<5, 8>, Comparison.Lower>>,
Expect<Equal<Comparator<5, 0>, Comparison.Greater>>,
Expect<Equal<Comparator<-5, 0>, Comparison.Lower>>,
Expect<Equal<Comparator<0, 0>, Comparison.Equal>>,... | Typescript |
ar *msg):Msg(msg) { TotalTime = 0; Start = sGetTime(); }
sTimeHelper(const sChar *msg, sU32 &totaltime):Msg(msg) { TotalTime = &totaltime; Start = sGetTime(); }
~sTimeHelper()
{
#if !sSTRIPPED
sInt End = sGetTime(); sInt time = (End-Start);
if(TotalTime)
{
*TotalTime += time;
if(time>10000... | C++ |
]`,
},
{
input: []byte{0xc2, 0xad, 0xcc, 0x80},
output: [][]byte{[]byte{0xc2, 0xad, 0xcc, 0x80}},
comment: `÷ [0.2] SOFT HYPHEN (Format_FE) × [4.0] COMBINING GRAVE ACCENT (Extend_FE) ÷ [0.3]`,
},
{
input: []byte{0xc2, 0xad, 0xcc, 0x88, 0xcc, 0x80},
output: [][]byte{[]byte{0xc2, 0xad, 0xcc, 0x88, 0xc... | Go |
proof: &InRangeProof,
rng: &mut Rng,
) -> Fallible<()> {
// Generators for Pedersen commitments.
let pc_gens = PedersenGens::default();
// Generators for Bulletproofs, valid for proofs up to bitsize 64
// and aggregation size up to 1.
let bp_gens = BulletproofGens::new(64, 1);
// Transcrip... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.