content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
度来确定连接的向前或向后
let new_depth = (self.neurons[self.get_element_pos(from)].split_y
+ self.neurons[self.get_element_pos(to)].split_y)
/ 2.0;
let new_width = (self.neurons[self.get_element_pos(from)].split_x
+ self.neurons[self.get_element_pos(to)].split_x)
/ 2.... | Rust |
code, len)
unsigned code; /* the value to invert */
int len; /* its bit length */
{
register unsigned res = 0;
do {
res |= code & 1;
code >>= 1, res <<= 1;
} while (--len > 0);
return res >> 1;
}
/* ==========================================================================... | C |
("max_size", cacheMax),
zap.Float64("utilization_percent", utilization),
)
// 提供建议
if utilization > 90 {
pa.Warn("Cache utilization is high, consider increasing cache size",
zap.String("cache_type", cacheType),
zap.Float64("utilization", utilization),
)
} else if utilization < 30 {
... | Go |
Boolean isFlatChargeTextAllowed() {
return flatChargeTextAllowed;
}
public void setFlatChargeTextAllowed(Boolean flatChargeTextAllowed) {
this.flatChargeTextAllowed = flatChargeTextAllowed;
}
public InsuranceContract costEstimateRequired(Boolean costEstimateRequired) {
this.costEstimateRequired =... | Java |
<code><a href="#@cdktf/aws-cdk.datasyncLocationHdfs.DatasyncLocationHdfs.isTerraformElement">isTerraformElement</a></code> | *No description.* |
| <code><a href="#@cdktf/aws-cdk.datasyncLocationHdfs.DatasyncLocationHdfs.isTerraformResource">isTerraformResource</a></code> | *No description.* |
| <code><a href="#@cdktf/... | Markdown |
= me[ 6 ]; te[ 7 ] = me[ 7 ];
te[ 8 ] = me[ 8 ]; te[ 9 ] = me[ 9 ]; te[ 10 ] = me[ 10 ]; te[ 11 ] = me[ 11 ];
te[ 12 ] = me[ 12 ]; te[ 13 ] = me[ 13 ]; te[ 14 ] = me[ 14 ]; te[ 15 ] = me[ 15 ];
return this;
},
copyPosition: function ( m ) {
var te = this.elements, me = m.elements;
te[ 12 ] = me... | JavaScript |
es.c</a>
</li>
<li>realCoefAQ15
: <a class="el" href="group__RealFFT__Table.html#gaf8699e77c7774359b96ef388efa7d453">arm_common_tables.c</a>
, <a class="el" href="group__RealFFT__Table.html#gaf8699e77c7774359b96ef388efa7d453">arm_common_tables.h</a>
</li>
<li>realCoefAQ31
: <a class="el" href="group__RealFFT__Table.htm... | HTML |
T: 'a;
impl<'a, T> Drop for Wrapper<'a, T>
where
T: 'static,
//~^ error: `Drop` impl requires `T: 'static` but the struct it is implemented for does not
{
fn drop(&mut self) {}
}
fn main() {}
use crate::{polygon, CoordNum, Coordinate, Line, Polygon};
/// A bounded 2D area whose three vertices are def... | Rust |
103: "SGD",
104: "SHP",
105: "SOS",
106: "SRD",
107: "SVC",
108: "SYP",
109: "THB",
110: "TND",
111: "TRL",
112: "TRY",
113: "TTD",
114: "TWD",
115: "TZS",
116: "UAH",
117: "UGX",
118: "AED",
119: "UYU",
120: "UZS",
121: "VEF",
122: "VND",
123: "XCD",
124: "YER",
125: "ZAR",
126: "ZMW",
127: "Z... | Go |
:Hw,VideoIcon:Hw,VideoOff:Tw,VideoOffIcon:Tw,Videotape:Ew,VideotapeIcon:Ew,View:zw,ViewIcon:zw,Voicemail:Vw,VoicemailIcon:Vw,Volleyball:Dw,VolleyballIcon:Dw,Volume:Ow,Volume1:Rw,Volume1Icon:Rw,Volume2:Bw,Volume2Icon:Bw,VolumeIcon:Ow,VolumeOff:Nw,VolumeOffIcon:Nw,VolumeX:Fw,VolumeXIcon:Fw,Vote:jw,VoteIcon:jw,Wallet:$w,W... | JavaScript |
#pragma once
#include "list.h"
#include "vm.h"
#define NR_PARTIAL 9
#define PAGE_SHIFT 12
#define PPN_SHIFT 10
#define PAGE_MASK (~((1UL << PAGE_SHIFT) - 1))
#define MEM_SHIFT (24 - PAGE_SHIFT)
#define STRUCTURE_SIZE 16UL
struct page {
unsigned long flags;
int count;
struct page *header;
struct page *next;
... | C |
u32) -> Option<HpetTimer> {
if index >= self.timer_count {
return None;
}
let mmio_base_address = self.inner as usize;
let timer_address = mmio_base_address + 0x100 + (0x20 * index) as usize;
Some(HpetTimer::new(timer_address as *mut HpetTimerRegister))
}
}
ass... | Rust |
le="text-align:justify"><b><i>Objection 2:</i></b> Further, according to Phys. v, 2, movement "from one contrary to another" has the same aspect as "movement from less to more." Now when a man is changed from sin to grace, he is said to change his state, in so far as the state of sin differs from the state of grace. Th... | HTML |
rrentColor" d="M2 8a6 6 0 016-6h16a6 6 0 016 6v16a6 6 0 01-6 6H8a6 6 0 01-6-6V8Zm2 0h2a1.5 1.5 0 113 0 1.5 1.5 0 113 0 1.5 1.5 0 013 0 1.5 1.5 0 013 0h5a1.5 1.5 0 013 0h2a4 4 0 00-4-4H8a4 4 0 00-4 4Zm20.5 2.5A1.5 1.5 0 0123 9h-5a1.5 1.5 0 01-3 0 1.5 1.5 0 01-3 0 1.5 1.5 0 01-3 0 1.5 1.5 0 11-3 0H4v4h2a1.5 1.5 0 013 0 1... | Dart |
Fe){var Ge=fe.get(ve);Ge!=null&&Ge.handleCommitFiberUnmount(Fe)},onCommitFiberRoot:function(ve,Fe,Ge){var K=W.getFiberRoots(ve),xe=Fe.current,je=K.has(Fe),Xe=xe.memoizedState==null||xe.memoizedState.element==null;je||Xe?je&&Xe&&K.delete(Fe):K.add(Fe);var rt=fe.get(ve);rt!=null&&rt.handleCommitFiberRoot(Fe,Ge)}};Object.... | JavaScript |
i,
strmhz(buf1, sysinfo.freqFMan[i]));
}
#endif
#ifdef CONFIG_SYS_DPAA_PME
printf(" PME: %s MHz\n", strmhz(buf1, sysinfo.freqPME));
#endif
puts("L1: D-cache 32 kB enabled\n I-cache 32 kB enabled\n");
return 0;
}
/* ------------------------------------------------------------------------- */... | C |
if $brand == yelp-alt {
content: $yelp-alt-cir;
}
@else if $brand == youtube or $brand == youtube2 {
content: $youtube-cir;
}
@else if $brand == youtube-alt or $brand == youtube-alt-sm {
content: $youtube-alt-cir;
}
// * in stackicons-social-complete
@else if $brand == you... | CSS |
0xff], 16)
^ rotl (T[(t3 >>> 16) & 0xff], 24)
^ roundKey[2];
block[3] = T[(t0 >>> 24) & 0xff]
^ rotl (T[(t1 >>> 24) & 0xff], 8)
^ rotl (T[(t2 >>> 24) & 0xff], 16)
^ rotl (T[(t3 >>> 24) & 0xff], 24)
^ roundKey[3];
// destroy potentially sensitive information:
t0 = t1 = t2 ... | Java |
ng while in transitions.
return true;
}
bool bSideStepping = IsCurSchedule( SCHED_HUNTER_SIDESTEP, false );
// FIXME: this will break scripted sequences that walk when they have an enemy
if ( GetEnemy() &&
( bSideStepping ||
( ( ( GetNavigator()->GetMovementActivity() == ACT_RUN ) || ( GetNavigat... | C++ |
{
mavlink10.messages['gps_raw_int'].should.be.a.function;
});
it('assigns message properties, _format with int64 (q), gps_raw_int', function() {
var m = new mavlink10.messages['gps_raw_int']();
m._format.should.equal("<QiiiHHHHBB");
m.order_map.should.eql([0, 8, 1, 2, 3, 4, 5, 6... | JavaScript |
ueEvpKey = std::unique_ptr<EVP_PKEY, void(*)(EVP_PKEY*)>;
using uniqueCms = std::unique_ptr<CMS_ContentInfo, void (*)(CMS_ContentInfo*)>;
using uniqueP12 = std::unique_ptr<PKCS12, void (*)(PKCS12*)>;
// True if file exists, false if not
bool FileExists(const string& filename)
{
struct s... | C++ |
tialsProvider, overrideEndpoint)
/**
* Convenience function to create a SNS from an http4k Environment
*/
fun Route53.Companion.Http(
env: Environment,
http: HttpHandler = JavaHttpClient(),
clock: Clock = systemUTC(),
credentialsProvider: CredentialsProvider = CredentialsProvider.Environment(env),
... | Kotlin |
zCompositionString + i;
if( bWrite )
{
if( pszMlcs == g_szMultiLineCompString || pszMlcs[-1] == 0 )
*pszMlcs++ = ' '; // to avoid zero length line
*pszMlcs++ = 0;
}
}
... | C++ |
search/quarto-search.js"></script>
<meta name="quarto:offset" content="/">
<link href="/./img/favicon.png" rel="icon" type="image/png">
<script src="/site_libs/quarto-html/quarto.js"></script>
<script src="/site_libs/quarto-html/popper.min.js"></script>
<script src="/site_libs/quarto-html/tippy.umd.min.js"></script>
<s... | HTML |
For example, you might want to customize mouse wheel line scrolling amount:
//!
//! ```rust,no_run
//! # use imgui::ImGui;
//! # use winit::{EventsLoop, Event, WindowEvent, MouseScrollDelta, TouchPhase};
//! # fn main() {
//! # let mut events_loop = EventsLoop::new();
//! # let mut imgui = ImGui::init();
//! # let win... | Rust |
/* Copyright 2022 micros24 <jasperjano.ph@gmail.com>
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This p... | C |
ALLOC_TAG_FUNCTION();
HdDisplayStyle result;
HdSceneIndexPrim prim = _GetInputPrim(id);
if (HdLegacyDisplayStyleSchema styleSchema =
HdLegacyDisplayStyleSchema::GetFromParent(prim.dataSource)) {
if (HdIntDataSourceHandle ds =
styleSchema.GetRefineLevel()) {
... | C++ |
Name).readAsStringSync();
List<String> commonLines = <String>[];
Map<String, SubTest> subTests = <String, SubTest>{};
int lineIndex = 0;
for (String line in test.split('\n')) {
int index = line.indexOf('//#');
if (index != -1) {
String prefix = line.substring(0, index);
String suffix = lin... | Dart |
source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use super::ping_tracker::Pong;
use crate::labels::NodeId;
use anyhow::{format_err, Error};
use byteorder::{ReadBytesExt, WriteBytesExt};
use rand::Rng;
/// Labels where a packet is going to
#[derive(Debug, Clone, Copy, PartialEq... | Rust |
esco dal ciclo for più interno e ritorno nel ciclo for esterno.
# Quando torno nel ciclo for più esterno, ho stampato in output tutta una riga r.
# per una corretta formattazione della matrice (pensata come una tabella), alla fine di ogni riga devo andare a capo
# quindi,
pri... | Python |
() {
let mut buffer = String::new();
let mut b_table_defs = Table::<BTableDefs>::default();
b_table_defs
.write_select(&mut buffer, SelectOrderBy::Ascending, SelectLimit::All, &mut |_| Ok(()))
.unwrap();
assert_eq!(
&buffer,
r#"SELECT "b0".id AS b0__id,"b0".name AS b0__name,"a1".id AS a1__id,"a1... | Rust |
>
<use xlink:href="#wprm-star-full-5" x="4" y="4" />
<use xlink:href="#wprm-star-full-5" x="36" y="4" />
<use xlink:href="#wprm-star-full-5" x="68" y="4" />
<use xlink:href="#wprm-star-full-5" x="100" y="4" />
<use xlink:href="#wprm-star-full-5" x="132" y="4" />
</svg></span> </fieldset>
</span>
</div>
<p class=... | HTML |
rintf("--override=%s", c))
}
}
argv = append(argv, fmt.Sprintf("--override=background_opacity=%f", conf.Background_opacity))
if runtime.GOOS != "darwin" {
argv = append(argv, fmt.Sprintf("--app-id=%s", conf.App_id))
}
if conf.Output_name != "" {
argv = append(argv, fmt.Sprintf("--output-name=%s", conf.Outpu... | Go |
ummary>
/// Ported from https://github.com/chromium/chromium/blob/master/ui/views/win/fullscreen_handler.cc
/// </summary>
/// <param name="hwnd">The window handle.</param>
/// <param name="fullscreen">Fullscreen state.</param>
public static unsafe void MarkFullscreen(IntPtr hwnd... | C# |
iter
prepareTaskPool taskpool.TaskPool
clusterMgrCli client.ClusterMgrAPI
topologyMgr IClusterTopology
cfg *DropMgrConfig
}
// NewDiskDropMgr returns disk drop manager
func NewDiskDropMgr(clusterMgrCli client.ClusterMgrAPI, volumeUpdater client.IVolumeUpdater,
taskSwitch taskswitch.ISwitcher, taskLogger reco... | Go |
, 0.10F, 0, 0, 20, 0, 0, EnumAction.eat, NI, F, F, T, T, Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80), TC.stack(TC.CORPUS, 1), TC.stack(TC.FABRICO, 1), TD.Creative.HIDDEN)); CR.remove(last()); Sandwiches.INGREDIENTS.put(last(), (byte)39);
IL.Food_Can_Chum_3 .set(addItem( 73, "Tall Food C... | Java |
tion updatePaginationControls(currentPage) {
const paginationControls = document.getElementById('paginationControls')
paginationControls.innerHTML = ''
const prevButton = document.createElement('li')
prevButton.className = 'page-item' + (currentPage === 1 ? ' disabled' : '')
... | HTML |
ратором.</div></li></ul><h3>Напоминание</h3>
<ul><li>
<div>Можно ввести <a href="InformationRegister.НапоминанияПользователя/Help">напоминание</a> по поводу заметки. Нажмите <img src="CommonPicture.Органайзер"></img> - <strong>Напомнить</strong>.</div></li></ul><h3>См. также:</h3>
<ul><li><a href="v8help://frame/form_c... | HTML |
g.logFatal`
It is recommended that you assign these shortcuts at the top of your code like so:
.. code-block:: javascript
var logFatal = GateOne.Logging.logFatal,
logError = GateOne.Logging.logError,
logWarning = GateOne.Logging.logWarning,
logInfo = GateOne.Logging.logInfo,
logDe... | JavaScript |
/>
<input type="hidden" name="multi_number" class="multi_number" value="2" />
<input type="hidden" name="add_new" class="add_new" value="multi" />
<div class="widget-control-actions">
<div class="alignleft">
<button type="button" class="button-link button-link-delete widget-control-remove">Delete</button>
... | HTML |
#ifndef SUN_NVRAM_H
#define SUN_NVRAM_H
/* Sun IDPROM structure at the end of NVRAM */
/* from http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html */
struct Sun_nvram {
uint8_t type; /* always 01 */
uint8_t machine_id; /* first byte of host id (machine type) */
uint8_t macaddr[6]; /* 6 byte et... | C |
#include "constants/scrcmd.h"
#include "fielddata/script/scr_seq/event_T25R1006.h"
#include "msgdata/msg/msg_0597_T25R1006.h"
.include "asm/macros/script.inc"
.rodata
scrdef scr_seq_T25R1006_000
scrdef scr_seq_T25R1006_001
scrdef scr_seq_T25R1006_002
scrdef scr_seq_T25R1006_003
scrdef scr_seq_T25R1006_004
scr... | Assembly |
ge.yml"
private val prIdRegex = Regex("Merge pull request #([0-9]*)")
override fun parser(updatePhase: MutableStateFlow<String>): Release? {
System.setProperty("sun.net.http.allowRestrictedHeaders", "true")
host = updateHost()
updatePhase.tryEmit("GitHub步骤: 获取最新Releas... | Kotlin |
<input type="text" class="form-control bg-dark text-light" id="id_group_card" name="id_group_card" value="{{ default_id_group_card }}" required>
</div>
<div class="form-group">
<label for="AgreeType" class="text-light">Банковский продукт (По умол.: {{ default_Agree... | HTML |
"));
}),
)
...
```
运行效果如下图6-8所示:

可以看到,我们期望的效果实现了,但是这种方法并不优雅,如果页面布局发生变化,比如表头布局调整导致表头高度改变,那么剩余空间的高度就得重新计算。那么有什么方法可以自动拉伸`ListView`以填充屏幕剩余空间的方法吗?当然有!答案就是`Flex`。前面已经介绍过在弹性布局中,可以使用`Expanded`自动拉伸组件大小,并且我们也说过`Column`是继承自`Flex`的,所以我们可以直接使用`Column`+`Expanded`来实现,代码如下:
```dart
@override
Widget b... | Markdown |
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2018 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed ... | Python |
// Adapted from https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials/blob/master/02_runtime_init/src/_arch/aarch64/cpu/boot.s
.equ _core_id_mask, 0xff
.section .text
_linux: // Let's fake being linux! https://www.kernel.org/doc/Documentation/arm64/booting.txt
nop // code0: Do nothi... | Assembly |
el {
text-align: left !important;
border-left: none !important;
justify-content: flex-start !important;
align-items: flex-start !important;
}
.ag-header-cell:last-child .ag-header-cell-resize {
display: none; /* Hide the resize handle after the last column */
}
.ag-root-wrapper {
backg... | CSS |
closure() {
let example_closure = |x| x;
let s = example_closure(String::from("hello"));
// The first time we call "example_closure" with the "String" value, the compiler infers
// the type of "x" and the return type of the closure to be "String". Those types are then
// locked in to the closure i... | Rust |
XML file
par (string) = input parameter file
ifile (ifile) = input L3 bin file name
ofile (ofile) (default=output) = output filename
product (string) = product(s) to map
resolution (string) (default=9km) = size of the output pixel in meters or
SMI dimensions
90... | HTML |
8f, -0.6676f, 3.53f, -0.001f, 5.1969f)
close()
}
path(fill = SolidColor(defaultIconColor)) {
moveTo(6.5004f, 7.6701f)
lineTo(8.2578f, 8.6847f)
curveTo(8.9761f, 7.8736f, 9.9383f, 7.3154f, 11.0f, 7.0993f)
lineToRelativ... | Kotlin |
bindHandler;
idStr source;
idStr activateStr;
idStr pendingCmd;
idStr returnCmd;
ID_TIME_T timeStamp;
float cursorX;
float cursorY;
int time;
int refs;
};
class idUserInterfaceManagerLocal : public idUserInterfaceManager {
friend class idUserInterfaceLo... | C |
local this = Public.get()
local force = game.forces.player
Misc.reset()
LinkedChests.reset()
BottomFrame.reset()
Public.reset_buried_biters()
Poll.reset()
ICW.reset()
ICW.set('default_surface', this.default_surface)
IC.reset()
IC.allowed_surface(game.surfaces[this.active_surfa... | Lua |
szakasz a steppert vezérlő léptető leírására szolgál.
# a bal oldali toronynál. Ez a szakasz vezérli a homing paramétereket is
# (homing_speed, homing_retract_dist) minden torony esetében.
[stepper_left]
position_endstop:
# A fúvóka és az ágy közötti távolság (mm-ben), amikor a fúvóka
# az építési terület közepén van,... | Markdown |
'../../src/tagged-unions'
import type { ModelAlgebraPrimitive } from '../../src/primitives'
import type { ModelAlgebraObject } from '../../src/object'
import type { Eq } from 'fp-ts/Eq'
import type { AnyEnv } from '@morphic-ts/common/lib/config'
import type {} from '@morphic-ts/algebras/lib/hkt'
import type { HKT, Kin... | Typescript |
bcaf2e1dca7823f91c190f7feb68bc32d98838dedc3fd389b43fb18296f1a45abaed2e26d3de7c016e000a00a4069211480940f91c1879672324e0bbd5e150ae1bf50edde02e81cd80a36c524f9175558aba22f2d2ea4175882f63557d1e545a9559cad93481c05f5ef67ab5",
"SignatureAlgorithmOID": "1.2.840.113549.1.1.5",
"Subject": "C=US, O=VeriSign, Inc., OU=V... | Markdown |
()
{
test(new TableRowElement);
}
#if 0 // NYI
void TestLoadAndSave::labeledtrElement()
{
test( new TableRowElement );
}
#endif
void TestLoadAndSave::tdElement()
{
test(new TableDataElement);
}
void TestLoadAndSave::actionElement()
{
test(new ActionElement);
}
QTEST_MAIN(TestLoadAndSave)
/***********... | C++ |
14, %r0] 0x73, %r26
T3_asi_reg_rd_179:
mov 0xf, %r14
.word 0xf8db8e40 ! 4379: LDXA_R ldxa [%r14, %r0] 0x72, %r28
cpu_intr_3_334:
setx 0x42031f, %g1, %o0
ta T_SEND_THRD_INTR
T3_asi_reg_rd_180:
mov 0x6, %r14
.word 0xfadb8e40 ! 4386: LDXA_R ldxa [%r14, %r0] 0x72, %r29
.word 0xb7643801 ! 4391: MOVcc_I <illegal in... | Assembly |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MyFrame.__init__
kwds["style"] = kwds.get("style",... | Python |
role": "user", "content": content}],
functions=[function],
function_call={"name": "match_keywords"},
)
args_str = r.choices[0].message.function_call.arguments
args = json.loads(args_str)
prediction = args['prediction']
if isinstance(prediction, str):
prediction = prediction.s... | Python |
当月色隐去、预示着黎明的艳云显现之际,他们开始发自内心地希望,不管龙在不在,还是赶紧回家为好――但随着太阳升起,他们又稍稍恢复了勇气,挥着长枪,走过最后一段征程。</p>
<p>硫磺味的烟云如帐幕般覆盖了天地,连朝阳也被遮得黯淡无光。怪物每次呼吸,都要吐出妖风、补充烟雾,饥饿的火苗不住地往外舔着,使莱恩人只能在灼热的石头上缓步前行。“可是,龙到底在哪儿啊?”有人小声说道――他的声音胆怯异常,生怕被龙听见。人们扫视天空:这里根本没有能让他们“诛杀”的任何实体存在。</p>
<p>人们把武器扛在肩上,沮丧地踏上归途。然后,他们树立了一块石碑,碑文是:“受凶恶的怪物所困,勇敢的莱恩市民前往征伐。他们在可怕的巢穴里诛杀怪物,将国土从恐怖的命... | HTML |
pub fn execute_stsliceconst(engine: &mut Engine) -> Failure {
engine.load_instruction(
Instruction::new("STSLICECONST").set_opts(InstructionOptions::Bitstring(9, 2, 3, 0))
)
.and_then(|ctx| fetch_stack(ctx, 1))
.and_then(|ctx| {
let mut builder = ctx.engine.cmd.var_mut(0).as_builder_mut(... | Rust |
from pathlib import Path
from .api_setup import setup_apikeys
from .process import markdrop, MarkDropConfig, add_downloadable_tables, logging
from .parse import process_markdown, ProcessorConfig, AIProvider, logger
from .utils import extract_images, make_markdown, extract_tables_from_pdf
from .models.img_descriptions ... | Python |
cument" id="ref-for-concept-node-document③⓪">node document</a> set to <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this①③⑧">this</a>.
</ol>
<p class="note" role="note">No check is performed that <var>target</var> contains
"<code>xml</code>" or "<code>:</code>", or that
<var>dat... | HTML |
anStep: 100,
bearingStep: 15,
pitchStep: 10
};
/**
* The `KeyboardHandler` allows the user to zoom, rotate, and pan the map using
* the following keyboard shortcuts:
*
* - `=` / `+`: Increase the zoom level by 1.
* - `Shift-=` / `Shift-+`: Increase the zoom level by 2.
* - `-`: Decrease the zoom level by ... | JavaScript |
),
r,
uncommitted(100, TimeStamp::zero(), false),
);
must_large_txn_locked(&engine, k, ts(300, 0), 100, TimeStamp::zero(), false);
must_rollback(&engine, k, ts(300, 0));
must_prewrite_put_for_large_txn(&engine, k, v, k, ts(310, 0), 100, 0);
must_large_txn... | Rust |
);
};
Jobs.Scholar.abilities.AddAbility(Abilities.White.Tirade);
Jobs.Scholar.abilities.AddAbility(Abilities.White.FirstAid);
Jobs.Scholar.abilities.AddAbility(Abilities.White.Pinpoint);
Jobs.Scholar.abilities.AddAbility(Abilities.White.Cheer);
Jobs.Scholar.levels.push(new JobLevel(10, [{ab: Abilities.White.Tirade, se... | Typescript |
\t\t\t<div class=\"elementor-element elementor-element-e6e904a elementor-widget elementor-widget-image\" data-id=\"e6e904a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.18.0 - 20-12-2023 *\/\n.elementor-widget-ima... | HTML |
d, appSecret);
return Promise.resolve(appSecret);
}
}export type Forecast = {
hourly: Array<{
dt: number;
temp: number;
weather: Array<{ id: number; description: string }>;
}>;
daily: Array<{
dt: number;
temp: { min: number; max: number };
weather: Array<{ id: number; description: string }>;
... | Typescript |
te.player.angle - ra) % 360
dis_h = dis_h * ca.cos_d
line_h = (args.state.stage.sz * 320) / (dis_h)
line_h = 320 if line_h > 320
line_off = 160 - (line_h >> 1)
args.outputs[:screen].sprites << {
x: r * 8,
y: line_off,
w: 8,
h: line_h,
path: :pixel,
... | HTML |
has lower priority than the
// KNOWN_GOOGLE_PACKAGES list, so if any app needs more permissions than this,
// this can be handled through KNOWN_GOOGLE_PACKAGES.
private val PERMISSIONS_APP = setOf(ACCOUNT, APP_CERT, AUTH, OWNER, PEOPLE, REPORTING, SAFETYNET)
private const val SHA1 = "SHA1"
private const val SHA256 = "... | Kotlin |
.TestSavedStateHandleProvider
import proton.android.pass.crypto.fakes.context.TestEncryptionContext
import proton.android.pass.data.fakes.usecases.TestCanPerformPaidAction
import proton.android.pass.data.fakes.usecases.TestCreateItem
import proton.android.pass.data.fakes.usecases.TestObserveItems
import proton.android.... | Kotlin |
editButtonEnabled.set(true);
setFocused(true);
}
});
// read refresh token and refresh
try
{
RandomAccessFile file = new RandomAccessFile(FileUtils.getFile("spotify_refresh_token.txt", "cache"), "rw");
StringBuilder bu... | Java |
,-2.846941919275112,0.0,-6.908892948519666,0.0,-8.728320702877845,-8.908892948519666,0.0,-8.356351925490888,-8.645858542685872,-1.5749922119662279,-8.908892948519666,-9.00842862207058,-5.696842471404677,-7.008428622070581,0.0,0.0,-9.356351925490888,0.0,0.0,0.0,-8.060896041964716,-7.356351925490888],"type":"bar","xaxis"... | HTML |
index = 0
print('testing:')
from random import randint as rn
duur = rn(2,3)
import time as __time__
duur = duur / 100
def chek(a):
b = __time__.time()
c = b - a
return c
def loading(duur):
a = __time__.time()
while chek(a) < duur:
print('|', end='')
... | Python |
script">org.mozilla.javascript.ScriptableObject</A>
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/mozilla/javascript/IdScriptableObject.html" title="class in org.mozilla.javascript">org.mozilla.javascript.IdScriptableObject</A>
<IMG SRC="../../../resources/inherit.gi... | HTML |
}
#include <stan/math/prim.hpp>
#include <test/unit/math/prim/fun/binary_scalar_tester.hpp>
#include <gtest/gtest.h>
#include <cmath>
#include <limits>
TEST(MathFunctions, gamma_q) {
using stan::math::gamma_q;
EXPECT_FLOAT_EQ(1.0 - 0.63212055, gamma_q(1.0, 1.0));
EXPECT_FLOAT_EQ(1.0 - 0.82755178, gamma_q(0.1, ... | C++ |
IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
... | Rust |
:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1*var(--bs-nav-tabs-b... | CSS |
/**
******************************************************************************
*
* @file oplinkwatchdog.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
* @addtogroup [Group]
* @{
* @addtogroup OPLinkWatchdog
* @{
* @brief [Brief]
*************************************... | C |
o aqoon leh uga samayso adiga, sida marka aad caadiyan isticmaasho Monero iyo markii ugu dambaysay ee aad Monero kharash garaysay. Tani waa run gaar ahaan haddii aad had iyo jeer ka timid isla cinwaanka IP-ga (sida gurigaaga). Waxa ugu dambeeya ee noodhka fog uu kaa baran karo waa macluumaadka aasaasiga ah ee ku saabsa... | Dart |
] === "undefined") {
query_string[pair[0]] = decodeURIComponent(pair[1]);
// If second entry with this name
} else if (typeof query_string[pair[0]] === "string") {
var arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ];
query_string[pair[0]] = arr;
// If third or later ent... | Typescript |
/* SPDX-License-Identifier: GPL-2.0
*
* include/asm-sh/dreamcast/sysasic.h
*
* Definitions for the Dreamcast System ASIC and related peripherals.
*
* Copyright (c) 2001 M. R. Brown <mrbrown@linuxdc.org>
* Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
*
* This file is part of the LinuxDC project (www.linu... | C |
}
// SetFloats sets tensor values from a []float64 slice (copies values).
func (tsr *Float64) SetFloats(vals []float64) {
copy(tsr.Values, vals) // diff: blit from values directly
}
func (tsr *Float64) StringValue1D(off int) string { return reflectx.ToString(tsr.Values[off]) }
func (tsr *Float64) SetString1D(off in... | Go |
= ""
EndProperty
BeginProperty ListImage43 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmTransparentMenu.frx":9CB5
Key = "vbAccelerator"
EndProperty
EndProperty
End
Begin VB.Label lblInfo
BackStyle = 0 'Tran... | HTML |
a = int(input())
i=2
while i<=a:
if a%i == 0:
print(i)
break
i+=1 | Python |
-DS-R1** | microsoft/mai-ds-r1 | 65.5K | 8.2K | - | - | 🧠 🔧 🌡️ | 2024-06 | In: text<br/>Out: text | Released: 2025-01-20 |
| **Phi-3.5-MoE instruct (128k)** | microsoft/phi-3.5-moe... | Markdown |
{ description = "Size unit can be set either in `bytes`, `kilobytes`, or `megabytes` (default). This configuration is not available in versions prior to Kong Gateway 1.3 and Kong Gateway (OSS) 2.0.", type = "string", required = true, default = size_units[1], one_of = size_units }, },
{ require_content_length... | Lua |
"c")));
/// let (i, r) = take_text2dest_label2dest(i).unwrap();
/// assert_eq!(r, (Cow::from("d"), Cow::from("e"), Cow::from("")));
/// let (i, r) = take_text2dest_label2dest(i).unwrap();
/// assert_eq!(r, (Cow::from("f"), Cow::from("g"), Cow::from("h")));
/// let (i, r) = take_text2dest_label2dest(i).unwrap();
/// ass... | Rust |
nova conversa na barra lateral.")
def process_question(question, history):
return chatbot_interaction(question, history, documents, embeddings, llm)
if question := st.chat_input("Qual é a sua dúvida hoje?"):
question = question.strip().lower()
if question and is_valid_input(question):
if current_... | Python |
olutions: []string{"16x16", "32x32", "64x64", "128x128", "1080x1920", "1920x1080", "2160x3840", "3840x2160", "4320x7680", "7680x4320"},
FileSystemStorage: config.FileSystemStorage{
RootDirectory: path.Join(defaults.BaseDataPath(), "thumbnails"),
},
WebdavAllowInsecure: false,
RevaGateway: sh... | Go |
.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
p.license {
background:grey;
}
body {
font-family: sans-serif;
}
pre {
background-color: #eeeeee;
... | HTML |
ValueACType => ({
type: 'SET_VALUE',
minValue,
maxValue
})
export type setValueACType = {
type: typeof SET_VALUE
maxValue: number
minValue: number
}
export const setDisableAC = (disabledSetValue: boolean,
disabledIncValue: boolean,
disab... | Typescript |
GCMapStruct();
return gcmap.opaque.vertexBuffers[gcmap.opaque.vertexBufferIndex];
end
function Game.getAlphaVertBase()
local gcmap = readGCMapStruct();
return gcmap.translucent.vertexBuffers[gcmap.translucent.vertexBufferIndex];
end
function readDLLHeader_struct(base)
return {
sizeExecutable = mainmemory.read_u... | Lua |
)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&az.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(sI,lz);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!sI.test(o)){let i=o.replace(oz,sz);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=Ib}return new a(r,t)}function ... | JavaScript |
ta-end="1760">SSR常见问题解答</h2>
<p data-start="1762" data-end="1837"><strong data-start="1762" data-end="1777">Q1: SSR安全吗?</strong><br data-start="1777" data-end="1780">
A1: SSR采用多层加密和混淆技术,但最终安全性还取决于服务商的信誉和服务器的安全管理。选择正规服务商至关重要。</p>
<p data-start="1839" data-end="1906"><strong data-start="1839" data-end="1859">Q2: SSR如何提升网... | HTML |
ype="application/json">
{
"touts": [{"name":"Content Cliff","type":"content-cliff","title":null,"value":"content-cliff","source":null,"scrollDepth":null,"newsletterID":null,"promoGrowlCTA":null,"speedbumpLink":null,"promoGrowlLink":null,"contentCliffCTA":"Start Your Trial Today","contentCliffURL":"https://sub... | HTML |
DataFile("testdata/002Post.csv") }, ShouldPanic)
})
}), ShouldBeNil)
})
}
// Copyright 2016 NDP Systèmes. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | Go |
utine_create({name}_entry, &s);
return bdrv_poll_co(&s.poll_state);
}}
}}"""
def gen_wrappers(input_code: str) -> str:
res = ''
for func in func_decl_iter(input_code):
res += '\n\n\n'
res += gen_wrapper(func)
return res
if __name__ == '__main__':
if len(sys.argv) < 3:
... | Python |
---@class StateClass : Class
---
---@field parent StateManager
---@field registered_events table<string, function>|nil
---
---@overload fun() : StateClass
local StateClass, super = Class()
function StateClass:registerEvents(master) end
--- Register an event for this class.
---@param event string # The name of the eve... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.