content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
c.org/content/dam/gss/get-documentation/pdf/reports/social-change-reports/SC15%20The%20Polls%20-%20American%20Attitudes%20Toward%20the%20Soviet%20Union%20and%20Communism.pdf#:~:text=From%20intense%20dislike%20of%20the,of%20the%20invasion%20of%20Afghanistan)). However, this goodwill eroded as tensions rose. Even before ... | Markdown |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PokemonDataGenerator.OverworldSprites
{
public static class SpriteSheetSplitter
{
public struct Settings
{
public ... | C# |
k++){
if(epts2[k].eq(epts1[0], tolerance)) epts2[k] = epts1[0];
else if(epts2[k].eq(epts1[1], tolerance)) epts2[k] = epts1[1];
}
}
}
}
pointList = new ArrayList<IVecI>();
for(int i=0; i<linePts.length; i++){
if(linePts[i]!=null){
for(int j=0; j<2; j++){
if(!point... | Java |
ok := Properties[test.script]; !ok {
t.Fatal(test.script, "not a known prop")
}
if !Is(Properties[test.script], test.rune) {
t.Errorf("IsCategory(%U, %s) = false, want true", test.rune, test.script)
}
delete(notTested, test.script)
}
for k := range notTested {
t.Error("property not tested:", k)
}
}
/... | Go |
,.k-editor-toolbar .k-selectbox{vertical-align:middle}.k-button-group .k-tool{margin:1px -1px 1px 0;width:36px;height:36px;border-width:1px;border-style:solid;line-height:36px;position:relative;display:inline-block;vertical-align:middle}.k-button-group .k-tool.k-state-hover,.k-button-group .k-tool:focus{z-index:1}.k-bu... | CSS |
impulse.x;
var PY = this.m_impulse.y;
bA.m_linearVelocity.x -= m1 * PX;
bA.m_linearVelocity.y -= m1 * PY;
bA.m_angularVelocity -= i1 * ((r1X * PY - r1Y * PX) + this.m_motorImpulse + this.m_impulse.z);
bB.m_linearVelocity.x += m2 * PX;
bB.m_linearVe... | JavaScript |
const Option(Flags.noDefines, const BoolValue(false));
static const Option<Uri?> output =
const Option(Flags.output, const UriValue(), aliases: ["--out", "-o"]);
static const Option<Uri?> packages =
const Option(Flags.packages, const UriValue());
static const Option<Uri?> platform =
const... | Dart |
mut messages);
state.merge_bookmarks().unwrap();
let mut vec: Vec<u32> = dst.bookmarks.iter().map(|b| b.slot).collect();
vec.sort();
if !messages.is_empty() {
Err(messages)
} else {
Ok(vec)
}
}
assert... | Rust |
E
def _filter_unecessary(
self, schema: Dict[str, Any], path: Sequence[str]
) -> Dict[str, Any]:
return {
key: value
for key, value in schema.items()
if not self._is_unecessary([*path, key])
}
def _handle_simple_dict(self, value: dict, path: Sequ... | Python |
16]
orr x12, x0, x1
orr x13, x2, x3
orr x12, x12, x13
cmp x12, xzr
cset x12, ne
ldp x4, x5, [z_2]
ldp x6, x7, [z_2+16]
orr x13, x4, x5
orr x14, x6, x7
orr x13, x13, x14
cmp x13, xzr
... | Assembly |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class DetailPanelController : MonoBehaviour
{
[SerializeField] TMP_Text addressText;
[SerializeField] TMP_Text nameText;
[SerializeField] TMP_Text registText;
[SerializeField] TMP_Text numberText;
[Se... | C# |
dt$
- 积分:$\ln P = kt + C$
- 因此:$P = Ce^{kt}$
**逻辑斯蒂模型**:$\frac{dP}{dt} = kP(1 - \frac{P}{K})$
其中 $K$ 是环境承载能力。
**解**:
- 分离变量:$\frac{dP}{P(1 - P/K)} = k dt$
- 积分:$\ln \frac{P}{K - P} = kt + C$
- 因此:$P = \frac{K}{1 + Ce^{-kt}}$
---
## 5 总结
微分方程是描述自然界和工程问题中变化规律的重要数学工具。本章介绍了:
- **基本概念**:微分方程的定义、分类和解的概念
- **一阶微分方程**:可... | Markdown |
visible
val graph = OcclusionTracer(SectionPosition(1, 1, 1), dimension, camera, 5)
return graph.trace(chunk)
}
private fun ChunkSection.fill(minX: Int, minY: Int, minZ: Int, maxX: Int, maxY: Int, maxZ: Int, value: BlockState?) {
for (y in minY..maxY) {
for (z in minZ..ma... | Kotlin |
n<DateTimeOffset, DateTimeOffsetTuple>(Constants.MaxFieldCharLength_DateTimeOffset);
public ReadOnlySpan<DateTimeOffset>.Enumerator GetEnumerator() =>
(fields is null ? ReadOnlySpan<DateTimeOffset>.Empty : new ReadOnlySpan<DateTimeOffset>(fields)).GetEnumerator();
}
/// <summary>
/// Represents a template ... | C# |
IND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package builder
import (
appsv1api "k8s.io/api/apps/v1"
corev1api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// StatefulSetBuilder builds StatefulSet obje... | Go |
*/ stfs f2, 0x54(r31)
/* 80220830 0021C490 D0 3F 00 58 */ stfs f1, 0x58(r31)
/* 80220834 0021C494 D0 1F 00 5C */ stfs f0, 0x5c(r31)
/* 80220838 0021C498 48 00 00 CC */ b lbl_80220904
lbl_8022083C:
/* 8022083C 0021C49C C0 43 00 00 */ lfs f2, 0(r3)
/* 80220840 0021C4A0 3C A0 80 49 */ lis r5, lbl_80493250@ha
/* 80220... | Assembly |
fs%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cmask id='b' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3C/mask%3E%3Cuse fill='%235C677D' fill-rule='nonzero' xlink:href='%23a'/%3E%3Cg mask='url(%23b)' fill='%235C677D'%3E%3Cpath d='M-1-1h20v20H-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-image:var(--icon-recovery-cod... | CSS |
e().spi_execute_immediate_, args, ret_err));
OZ (generator_.check_success(
ret_err, s.get_stmt_id(), s.get_block()->in_notfound(), s.get_block()->in_warning()));
// into result
OZ (generator_.generate_into_restore(s.get_into(), s.get_exprs(), s.get_symbol_table()));
// out result
OZ (generat... | C++ |
力欄に貼り付けるだけでOK。言語指定は不要。現在、英語・日本語・韓国語・中国語・フランス語・ドイツ語・アラビア語・スペイン語に対応。
3. **音素非依存:** 本モデルは高い汎化能力を持ち、TTSに音素情報を必要としません。あらゆる言語スクリプトのテキストを扱えます。
4. **高精度:** Seed-TTS評価でCER(文字誤り率)約0.4%、WER(単語誤り率)約0.8%を実現。
5. **高速:** fish-techアクセラレーションにより、Nvidia RTX 4060ラップトップでリアルタイムファクター約1:5、Nvidia RTX 4090で約1:15。
6. **WebUI推論:** Gradioベースの直... | Markdown |
software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be governed by the Apache License, Version 2.0, included in
// the file licenses/APL... | Go |
ar b0 = b[0];
var b1 = b[1];
var b2 = b[2];
var b3 = b[3];
var a00 = a0[0];
var a01 = a0[1];
var a02 = a0[2];
var a03 = a0[3];
var a10 = a1[0];
var a11 = a1[1];
var a12 = a1[2];
var a13 = a1[3];
var a20 = a2[0];
var a21 = a2[1];
var a22 = a2[2];
var a23 = a2[3];
var a30 = a3[0];
var a3... | JavaScript |
con:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014... | JavaScript |
fn target_record_stack_bounds(stack_lo: usize, stack_hi: usize) {
// stack range is at TIB: %gs:0x08 (top) and %gs:0x10 (bottom)
asm!("mov $0, %gs:0x08" :: "r"(stack_hi) :: "volatile");
asm!("mov $0, %gs:0x10" :: "r"(stack_lo) :: "volatile");
}
}
/// Records the cur... | Rust |
deg);
--energy-70: oklch(49.5% 0.1201 130.4deg);
--energy-80: oklch(42.2% 0.1023 131.8deg);
--energy-90: oklch(34.9% 0.08446 133.1deg);
--energy-100: oklch(27.6% 0.06664 134.5deg);
--energy-110: oklch(20.3% 0.04882 135.8deg);
--energy-120: oklch(13% 0.031 137.2deg);
/* Liquid */
--liquid-10: oklch(93.4... | CSS |
` reader - DMA Destination Address Mode"]
pub struct DMA_ADDR_MODE_R(crate::FieldReader<bool>);
impl DMA_ADDR_MODE_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
DMA_ADDR_MODE_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pu... | Rust |
tion, or a user specified function. Supported named presets are: linear, in-cubic, out-cubic, in-out-cubic, in-expo, out-expo, in-out-expo, in-out-coast-quadratic.
/// </param>
/// <param name="SpeedFactor">
/// Increases or decreases the animation speed by the specified factor. A speedFactor of 2 will make the ani... | C# |
: *mut ::std::os::raw::c_int,
all_inside: *mut ::std::os::raw::c_int,
indx: *mut ::std::os::raw::c_int,
);
}
extern "C" {
pub fn R_max_col(
matrix: *mut f64,
nr: *mut ::std::os::raw::c_int,
nc: *mut ::std::os::raw::c_int,
maxes: *mut ::std::os::raw::c_int,
... | Rust |
BundleException
{
synchronized(bundlesById)
{
final BundleWrapper wrappedBundle = (BundleWrapper)bundlesById.get(id);
if(wrappedBundle != null)
{
try
{
URL mapURL = getTemplateMapURL(id);
if(mapURL != null) {
try
{
JE... | Java |
invalid() {
// Valid matrix: {"nrows":6,"ncols":3,"col_offsets":[0,2,2,5],"row_indices":[0,5,1,2,3],"values":[0,1,2,3,4]}
assert!(serde_json::from_str::<CscMatrix<i32>>(r#"{"nrows":6,"ncols":3,"col_offsets":[0,2,2,5],"row_indices":[0,5,1,2,3],"values":[0,1,2,3,4]}"#).is_ok());
assert!(serde_json::from_str::... | Rust |
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.SemanticKernel;
using Volo.Abp.Caching;
using Volo.Abp.Domain;
using Yi.Framework.Mapster;
using Yi.Framework.Stock.Domain.Managers;
using Yi.Framework.Stock.Domain.Managers.SemanticKernel;
using Yi.Framework.Stock... | C# |
he following files make up the built project, which should be sent to the calculator:
`src/gfx/OiramS.8xv`: Oriam sprites
`src/gfx/OiramT.8xv`: Oriam tileset
`extra/OiramPK.8xv`: Oriam default level pack
`bin/Oiram.8xp`: Oriam program
## Oiram
### Installation
* Téléchargez et installez TI-Connect ... | Markdown |
: getMissionDetailProvider,
name: r'getMissionDetailProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$getMissionDetailHash,
dependencies: GetMissionDetailFamily._dependencies,
allTransitiveDependencies:
GetMi... | Dart |
n MUST be called after OSStart() & after processor initialization.
*
* 2) Either OS_CPU_SysTickInitFreq or OS_CPU_SysTickInit() can be called.
*********************************************************************************************************
*/
void OS_CPU_SysTickInit (INT32U cnts)
{
INT32U ... | C |
// p->to only indirectly uses v
return 1
}
return 0
}
/* rar p->from, write p->to or read p->from, rar p->to */
if p.From.Type == obj.TYPE_MEM {
if copyas(&p.From, v) {
// No s!=nil check; need to fail
// anyway in that case
return 2
}
if s != nil {
if copysub(&p.To, v, s,... | Go |
rtant;
cursor: -webkit-grab !important;
cursor: grab !important;
cursor: -webkit-grabbing !important;
cursor: grabbing !important
}
.ol-layerswitcher .panel li.dropover {
background: rgba(51, 102, 153, .5)
}
.ol-layerswitcher .panel li label {
display: inline-block;
height: 1.4em;
max-... | CSS |
r>();
}
void Update()
{
TryInputNumber();
CoolTimeCalc();
AppearCalc();
}
private void AppearReset()
{
currentAppearTime = appearTime;
isAppear = true;
anim.SetBool("Appear", isAppear);
}
private void AppearCalc()
{
if (Inven... | Markdown |
f (method !in listOf("POST", "PUT")) {
return ToolResult(
toolName = tool.name,
success = false,
result = StringResultData(""),
error = "多部分表单请求仅支持POST和PUT方法,不支持: $method"
)
}
return try {
... | Kotlin |
N].startupTime.median().format()} | ${it[Variant.JAVA].startupTime.median().format()} | ${it[Variant.KOTLIN].injectionTime.median().format()} | ${it[Variant.JAVA].injectionTime.median().format()}\n")
}
}
@SuppressLint("SetTextI18n")
private fun reportOnScreen(results: List<LibraryResult>) {
... | Kotlin |
00%;
height: 100%;
}
/* CHAT AREA -> JUMP TO PRESENT / NAVIGATOR */
.jumpToPresentBar_cf58b5 {
width: 48px;
height: 48px;
border-radius: 30%;
left: auto;
right: 20px;
bottom: 20px;
padding: 0;
background: hsl(var(--accent-hsl--material-you)) !important;
box-shadow: var(--shadow-3dp);
}
.jumpToPrese... | CSS |
FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typography = Typography(
body1 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp
)
/* Other default text styles to override
button = ... | Kotlin |
ice> {
let component_id = TypeId::of::<TComponent>();
let components_read_guard = self.components.read().await;
let component = components_read_guard.get(&component_id);
if component.is_none() {
return Err(MapComponentError::ComponentNotFound{ type_info: TypeInfo::from_type... | Rust |
assert("Modified options without resetting permutations." &&
this->PermutationTime > this->OptionTime);
assert("Invalid permutation." && !this->IsDoneWithPermutations());
this->Apply(obj, this->Permutations[this->CurrentPermutation]);
}
std::string GetCurrentPermutationName() const
{
assert(... | C |
UpdateStatus(xWorksStrings.Webonary_UnexpectedUploadError,
WebonaryStatusCondition.Error);
TrackingHelper.TrackExport("lexicon", "webonary", ImportExportStep.Failed);
}
finally
{
// Restore data.
m_exportService.RestoreReversalData(revClerk, ForTesting);
// If the reversal clerk was creat... | C# |
}
});
});
contract("SEP101Proxy_STATICCALL", async (accounts) => {
it('get/set: staticcall', async () => {
let sep101Proxy = await SEP101Proxy_STATICCALL.new();
sep101Proxy = new ISEP101(sep101Proxy.address);
try {
await sep101Proxy.set_staticcall(shortKey, shortVal);
... | JavaScript |
pad_left,
),
ButtonState(
ButtonType.DpadRight.toString().lowercase(),
EngineTypes.WolfensteinRpg,
sdlKeyEvent = KeyEvent.KEYCODE_DPAD_RIGHT,
buttonType = ButtonType.DpadRight,
buttonResId = R.drawable.dpad_right,
)
)
val doomRPGButtons : Collection<ButtonState> = li... | Kotlin |
.assertVerifySignature(data, signature)
}
}
if (supportsEncryption()) {
// digest is not used for encryption
val keyPair = algorithm.keyPairGenerator(keySize, SHA1).generateKey()
val maxSize = keySize.inBytes - 11 // PKCS1 padding... | Kotlin |
tor = "➜", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group
},
popup_mappings = {
scroll_down = "<c-d>", -- binding to scroll down inside the popup
scroll_up = "<c-u>", -- binding to scroll up inside the popup
},
window = {
border = ... | Lua |
/* memmove/memcpy/mempcpy optimized with AVX512 for KNL hardware.
Copyright (C) 2016-2019 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 publis... | Assembly |
M9EI0CbAZ4NpuNCIJgmbQLBINkJhrNCcT1amApwLOatvE8hQiRKH3txCZSQIhMd+FcQGTexpiFiD7QJEQEaBIiAjQJEQGahIgATULktLazpLWwGA6HLQUnHo+ThYUFXfdEIhHO6FLOcpLW9sTlcqWjh1vmstb55OQkprBaRUVFysaIOvuMbiwzF4EyRFAqlVoVdWtFYt4BTsV+5AVGyO8zDBEALS4u0qNecBsO0OiD5VNyKqu36vSCZN7GAES73b4qjVdGJdZADckAIRIz1UIEmCVEgKbuxpjCOgW773ojEAFmgKjnbwxmbYzm+nYp+r... | CSS |
alization
val v1 = Candela(1.12)
val sd = v1.value.toString()
val dv = sd.toDouble()
//De-Serialization
val creator = Candela(1.0).dimensions.factors.first().specification.creator
val v2 = creator(dv)
check(v1 , v2)
val pow30 = 10.0.pow(30)
ch... | Kotlin |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Python |
0
L8_2 = 0.0
L5_2[1] = L6_2
L5_2[2] = L7_2
L5_2[3] = L8_2
L2_2[1] = L3_2
L2_2[2] = L4_2
L2_2[3] = L5_2
L3_2 = 4
L1_2 = L1_2(L2_2, L3_2)
L0_2.SF37D3FF17483DA8C = L1_2
L0_2 = CC64BA0326992DDC1
L0_2.S2F57D780B0AFE575 = 0.4
L0_2 = CC64BA0326992DDC1
L0_2.S727E98B548B48E26 = 0.4
L0_2 = CC64BA032... | Lua |
/// Pre-Trading
#[serde(rename = "1")]
PreTrading,
/// Opening or opening auction
#[serde(rename = "2")]
OpeningOrOpeningAuction,
/// (Continuous) Trading
#[serde(rename = "3")]
Trading,
/// Closing or closing auction
#[serde(rename = "4")]
ClosingOrClosingAuction,
/// Post-Trading
#[serde(rename = "5")]... | Rust |
_digital_item_list = L1_2
L2_2 = A0_2
L1_2 = A0_2._safe_find
L3_2 = "IntegralPanel/Info/Scoreboard"
L1_2 = L1_2(L2_2, L3_2)
A0_2.node_score_board = L1_2
L2_2 = A0_2
L1_2 = A0_2._safe_find
L3_2 = "IntegralPanel/Info/ScoreValue"
L1_2 = L1_2(L2_2, L3_2)
A0_2.node_score_value = L1_2
L1_2 = L1_1
L2_2... | Lua |
setreg.resp_delim */
est_cmds.setreg.term = NULL; /* setreg.term */
est_cmds.setreg.term_cmd = NULL; /* setreg.term_cmd */
est_cmds.getreg.cmd = "dr %s\r"; /* getreg.cmd (name) */
est_cmds.getreg.resp_delim = " = "; /* getreg.resp_delim */
est_cmds.getreg.term = NULL; /* getreg.term */
est_cmds.getreg.term_... | C |
905.51743768036,1000.0,0.39302300,994.86764790093,-0.57507851780078,994.29256938313,1000.0,0.46264604,1255.8845902492,0.22662097038416,1256.1112112196,1000.0,0.41928567,137.21862030953,0.61179717392622,137.83041748346,2.0,0.35719497,47.323691611416,0.15310719701233,47.476798808429,2.0,0.23298162,-163.98385410236,-0.487... | C++ |
self as &mut ::std::any::Any
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ActivationMetadata {
ActivationMetadata::new()
... | Rust |
init];
[presentationController applyThemeWithScheme:self.containerScheme];
```
Replace this text with example code for each new feature.
## Changes
### ActivityIndicator
* [Add ActivityIndicator examples to BUILD file (#6318)](https://github.com/material-components/material-components-ios/commit/bb4cde39a4d056f4a1... | Markdown |
)
ring.add(
...generateLegacyRing(
ring, LegacyRingType.typeA, LegacyRingDifficulty.normal, 200
).sort((prim1, prim2) => {
const v1 = prim1 instanceof BallPrimitive ? 1 : 0
const v2 = prim2 instanceof BallPrimitive ? 1 : 0
... | Typescript |
##################################################
def DiT_XH(**kwargs):
return DiT(depth=36, n_emb=1760, num_heads=32, **kwargs)
def DiT_H(**kwargs):
return DiT(depth=32, n_emb=1280, num_heads=16, **kwargs)
def DiT_XL(**kwargs):
return DiT(depth=28, n_emb=1152, num_heads=16, **kwargs)
def DiT_L(**kwargs... | Python |
atches_fake.custom_fake = bt_rpa_irk_matches_custom_fake;
}
expected_key_ref = returned_keys_refs[it];
returned_ref = bt_keys_find_irk(id, addr);
if (check_if_addr_is_rpa(addr) && (type & BT_KEYS_IRK)) {
zassert_true(returned_ref != NULL,
"bt_keys_find_irk() returned a NULL reference");
zasse... | C |
EraseMode::Full = erase {
self.flash_erase()?;
}
const SECTOR_SIZE_0: usize = 0x2000;
const SECTOR_SIZE_1: usize = 0x10000;
const SECTOR_SIZE_1_ADDR: usize = 0x10000;
let n = info.rom_banks as usize * ROM_BANK_SIZE as usize;
let mut pb = new_progress_bar(n a... | Rust |
.count
else
journey.mothership_cargo[slot.name] = slot.count
end
if journey.mothership_cargo_space[slot.name] then
if journey.mothership_cargo[slot.name] > journey.mothership_cargo_space[slot.name] then
journey.mothership_cargo[slot.name] = journey.mothership_cargo_space[slot.name]
end
if slot.nam... | Lua |
d, setVerified] = useState(false);
const { setInstallationStatus, markStepCompleted } = useStore();
const addLog = (message, type = 'info') => {
const typePrefix = type === 'error' ? '❌ ERROR: ' :
type === 'success' ? '✅ SUCCESS: ' :
'📋 INFO: ';
setLogs(prev =... | JavaScript |
ets();
}
private static void EnablePluginPackage(PluginPackage pluginPkg)
{
foreach(var kvp in pluginPkg.Plugins)
{
BuildTarget platform = kvp.Key;
string path = kvp.Value;
if ((Directory.Exists(path + GetDisabledPluginSuffix())) || (File.Exists(path + GetDisabledPluginSuffix())))
{
string base... | C# |
undled _singleton = DynamicLoadingBundled._();
/// Returns the singleton instance of [DynamicLoadingBundled].
factory DynamicLoadingBundled() => _singleton;
@override
String toString() => 'bundled';
}
/// [CodeAsset]s with this [LinkMode] are expected to be available as dynamic
/// library on the target syst... | Dart |
// 添加active类到当前tab
this.classList.add('active');
const tabId = this.dataset.tab;
document.getElementById(tabId).classList.add('active');
});
});
}
let currentFileName = '';
let conversionStartTime = 0;
let activeT... | JavaScript |
using stp
stp x0, x1, [x2] // Write x0 and x1 to registers[0] and registers[1]
// Store pc
MRS_REG ELR_EL3, x0 // Get PC from elr_el3
str x0, [x2, #31*8]
// Store 32 bit system registers
// Load the address of the external register pointer (registers)
adrp x1, registe... | Assembly |
1;
while (n >= 0)
{
n -= i;
++i;
}
return (n + i);
}
// Driver code
let n = 3;
document.write(findNumber(n));
// This code is contributed by mukesh07.
</script>
```
**输出:**
```
2
```
时间复杂度:O(√n)
**第二种方法:**无限序列的答案可以在 O(1)中完成。我们可以将序列组织为:1 (1)。这... | Markdown |
value: ''},
],
floors: [],
city: null,
desired_residence_area: null,
rent_type_list: [],
house_type_list: [],
traffic_info: [],
company_address: null,
commuting_time: null,
house_facilities: [],
... | JavaScript |
0667-76.59999594l63.53643075-23.75193674c30.28371932 60.56743866 69.47441493 141.91782195 87.8821659 191.20309067z" fill="#FFFFFF" ></path></symbol><symbol id="csdnc-bbslevel-5" viewBox="0 0 3072 1024"><path d="M372.99884256 80.14660493h2375.19367285a107.96334877 107.96334877 0 0 1 107.96334876 107.96334877v647.7800926... | JavaScript |
t.flDepth;
al_props_.Chorus.Feedback = dst.flFeedback;
al_props_.Chorus.Delay = dst.flDelay;
return true;
}
}; // EaxChorusFlangerEffect
using ChorusCommitter = EaxCommitter<EaxChorusCommitter>;
using FlangerCommitter = EaxCommitter<EaxFlangerCommitter>;
} // namespace
template<>
struct... | C++ |
national Co. Ltd",
"682DDC": "Wuhan Changjiang Electro-Communication Equipment CO.,LTD",
"E8611F": "Dawning Information Industry Co.,Ltd",
"705957": "Medallion Instrumentation Systems",
"9CD643": "D-Link International",
"3C18A0": "Luxshare Precision Industry Company Limited",
"94E98C": "Nokia",
... | Go |
("week"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("/>")])]),t._v("\n\n")])])]),s("p",[t._v("Dependent on browser support, a control will show for entering a week-year number and a week number with no time zone.")]),t._v(" "),s... | JavaScript |
ERROR: type should be string, got " https://github.com/openfoodfacts/smooth-app/issues/3065\n String getUrl(\n final String barcode, {\n final ImageSize? imageSize,\n final UriProductHelper uriHelper = uriHelperFoodProd,\n }) =>\n '${uriHelper.getProductImageRootUrl(barcode)}'\n '/'\n '${getUrlFilename(imageSize: imageSize)}';\n\n /// Returns just the filename of the url to display this image.\n ///\n /// See also [getUrl].\n String getUrlFilename({\n final ImageSize? imageSize,\n }) {\n final ImageSize bestImageSize = imageSize ?? size ?? ImageSize.UNKNOWN;\n return isMain\n ? _getMainUrlFilename(bestImageSize)\n : _getRawUrlFilename(bestImageSize);\n }\n\n /// Returns just the filename of the url to display this \"main\" image.\n ///\n /// By default uses the own [image]'s size field.\n /// E.g. \"front_fr.4.100.jpg\"\n /// cf. https://github.com/openfoodfacts/smooth-app/issues/3065\n String _getMainUrlFilename(final ImageSize imageSize) =>\n '${field!.offTag}_${language.code}'\n '.$rev'\n '.${imageSize.number}'\n '.jpg';\n\n /// Returns just the filename of the url to display this \"raw\" image.\n ///\n /// By default uses the own [image]'s size field.\n /// E.g. \"7.100.jpg\"\n String _getRawUrlFilename(final ImageSize imageSize) {\n switch (imageSize) {\n case ImageSize.THUMB:\n case ImageSize.DISPLAY:\n // adapted size\n return '$imgid.${imageSize.number}.jpg';\n case ImageSize.SMALL:\n // not available, we take the best other choice instead\n return '$imgid.${ImageSize.DISPLAY.number}.jpg';\n case ImageSize.ORIGINAL:\n case ImageSize.UNKNOWN:\n // full size\n return '$imgid.jpg';\n }\n }\n\n @override\n String toString() => 'ProductImage('\n '${field == null ? '' : 'field=${field!.offTag}'}'\n '${size == null ? '' : ',size=${size!.offTag}'}'\n '${language == null ? '' : ',language=${language.code}'}'\n '${angle == null ? '' : ',angle=${angle!.degreesClockwise}'}'\n '${url == null ? '' : ',url=$url'}'\n '${uploaded == null ? '' : ',uploaded=$uploaded'}'\n '${contributor == null ? '' : ',uploader=$contributor'}'\n '${imgid == null ? '' : ',imgid=$imgid'}'\n '${rev == null ? '' : ',rev=$rev'}'\n '${coordinatesImageSize == null ? '' : ',coordinatesImageSize=$coordinatesImageSize'}'\n '${x1 == null ? '' : ',x1=$x1'}'\n '${y1 == null ? '' : ',y1=$y1'}'\n '${x2 == null ? '' : ',x2=$x2'}'\n '${y2 == null ? '' : ',y2=$y2'}'\n '${width == null ? '' : ',width=$width'}'\n '${height == null ? '' : ',height=$height'}'\n ')';\n\n String get _key =>\n '${field?.offTag}_${language?.code}_${size?.offTag}_$imgid';\n\n @override\n int get hashCode => _key.hashCode;\n\n @override\n bool operator ==(Object other) {\n if (identical(this, other)) {\n return true;\n }\n if (other.runtimeType != runtimeType) {\n return false;\n }\n return other is ProductImage &&\n other.field == field &&\n other.size == size &&\n other.language == language &&\n other.url == url &&\n other.uploaded == uploaded &&\n other.rev == rev &&\n other.imgid == imgid &&\n other.angle == angle &&\n other.coordinatesImageSize == coordinatesImageSize &&\n other.x1 == x1 &&\n other.y1 == y1 &&\n other.x2 == " | Dart |
PrinterState(identation);
return {
print: print.bind(null, ppt)
};
}import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'filter',
pure: false //----------> keep in mind, although this renders the added servers in realtime, it will cause recalculation of the
}) ... | Typescript |
using System.Application.Repositories;
using System.Application.Services;
using System.Security.Cryptography;
using System.Threading.Tasks;
using KeyValuePair = System.Application.Entities.KeyValuePair;
namespace System.Security
{
/// <summary>
/// 由 <see cref="Repository{TEntity, TPrimaryKey}"/> 实现的 <see cref... | C# |
] - Options for downloading. A download can be either a
/// Metadata (default) or Media download. Partial Media downloads are possible
/// as well.
///
/// Completes with a [commons.ApiRequestError] if the API endpoint returned an
/// error.
///
/// If the used [http.Client] completes with an error when m... | Dart |
te");
TimeDoCoracao.add("Confianca");
TimeDoCoracao.add("Corinthians");
TimeDoCoracao.add("Coritiba");
TimeDoCoracao.add("CRB");
TimeDoCoracao.add("Criciuma");
TimeDoCoracao.add("Cruzeiro");
TimeDoCoracao.add("CSA");
TimeDoCoracao.add("Cuiaba");
Ti... | Java |
ed_driver_set_temperature(handle, value);
}
static esp_err_t app_driver_light_set_xy(led_driver_handle_t handle, uint16_t x, uint16_t y)
{
return led_driver_set_xy(handle, x, y);
}
static void app_driver_button_toggle_cb(void *arg, void *data)
{
ESP_LOGI(TAG, "Toggle button pressed");
uint16_t endpoint_id... | C++ |
) - start))
# print(tabulate.tabulate(metrics, headers='keys', tablefmt="latex"))
#
# model = load_model('models/keras_1_step_lane_data_3002_3001.csv_sensor5.h5')
print("Loading impute data")
predict_data = load_data(file_path, EPS, use_datetime=True, load_from=datetime(2013, 4, ... | Python |
import 'package:blood_pressure_app/features/bluetooth/ui/input_card.dart';
import 'package:flutter/material.dart';
import 'package:blood_pressure_app/l10n/app_localizations.dart';
/// Indication of a successful bluetooth read that returned multiple measurements.
///
/// TODO: Some devices can store up to 100 measureme... | Dart |
e;
uniform float u_lut2Size;
// Random function for dithering
float random(vec2 co) {
return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
}
// Floyd-Steinberg dithering ap... | Kotlin |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/cpu.h>
#include <amdblocks/smn.h>
#include <cpu/amd/msr.h>
#include <cpu/x86/msr.h>
#include <device/pci_ops.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <types.h>
uint32_t get_pstate_0_reg(void)
{
return (pci_read_config32(SOC_PM_DEV, COR... | C |
# -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ upstream/apc/hubconf.py ]
# Synopsis [ the apc torch hubconf ]
# Author [ S3PRL ]
# Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ]
"""******************... | Python |
}
if end >= lens {
end = lens
}
var defaultResult DefaultResult
defaultResult.Result = make([]map[string]string, 0)
for _, docid := range docids[start:end] {
val, ok := indexer.GetDocument(docid.Docid)
if ok {
accid, ok := val["account_id"]
if !ok {
this.Logger.Error("[ERROR] acc... | Go |
ted#383838!important; } articleh3{ color:#999!important; } /*noborder*/ .aclb, ._53_-, ._52x6, ._52x1, ._2l5v, ._tn0, ._52ja, ._5lm6{ border-top:0px; border-bottom:0px; } ._59te.popoverOpen, ._59te.isActivem, ._59te{ background:#000; /*topbar*/ border-bottom:1pxsolid#444; border-right:1pxsolid#444; } /*#feed_jewel._59t... | Dart |
/**
* __ ____
* / /__ _ __ / __/ __
* / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_
* / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/
* /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/
* /_/ github.com/KitSprout
*
* @file ... | C |
,其中必有两项相等 | 2 | 2 | 学生答案中正确地构造了集合$S$,并指出集合中总共有154个元素,且这些元素的取值在$0, 1, 2, \cdots, 154$之间。根据鸽巢原理,学生正确地推断出必有两项相等,并且进一步指出这两项必定是$s_i$和$s_j + 22$,从而得出$a_j + a_{j+1} + \ldots + a_i = 22$。因此,学生答案完全符合评分规则的要求。 |
| 由于$S_i$严格递增,因此这相等的两项必定是某个$S_j$和$S_i + 22$($i < j$) | 3 | 3 | 学生答案中正确地指出了由于$S_i$严格递增,因此相等的两项必定是某个$S_j$和$S_i + 22$($i <... | Markdown |
Modifier")]
[Property("SPEC", "Tizen.NUI.Wheel.IsCtrlModifier M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void WheelIsCtrlModifier()
{
tlog.Debug(tag, $"WheelIsCtrlModifier START");
... | C# |
27
# asm 2: add >x16=24,<x16=24,<x03=29
add 24,24,29
# qhasm: x1f += x0a
# asm 1: add >x1f=int32#6,<x1f=int32#6,<x0a=int32#3
# asm 2: add >x1f=8,<x1f=8,<x0a=5
add 8,8,5
# qhasm: x1e += x0b
# asm 1: add >x1e=int32#29,<x1e=int32#28,<x0b=int32#21
# asm 2: add >x1e=31,<x1e=30,<x0b=23
add 31,30,23
# qhasm: r ... | Assembly |
ldr r0, [r4, #0x14]
mov r1, #0xf
bl ov102_021E940C
add r0, r4, #0
mov r1, #1
bl ov102_021E7AB8
pop {r4, pc}
_021E7C3E:
add r0, r4, #0
mov r1, #2
add r0, #0x4c
strh r1, [r0]
ldr r0, [r4, #0x14]
mov r1, #0xf
bl ov102_021E940C
add r0, r4, #0
mov r1, #2
bl ov102_021E7AB8
pop {r4, pc}
_021E7C58:
add r1, r4... | Assembly |
; the initial module table pointer
LDR a3,[a1,#ExecRoot_initial_dp]
STR a3,[a2,#SaveState_initial_dp]
[ (memmap)
; and the MEMMAP state
LDR a3,[a1,#ExecRoot_memmap]
STR a3,[a2,#SaveState_memmap]
] ; EOF (memmap)
; Place a non-zero value into the "SaveCPUState" return register
... | Assembly |
leTimeRangeQuery<T>;
}
import { Column, Entity, Generated, PrimaryGeneratedColumn, Unique } from "typeorm";
import { IProfile, PROFILE_ROLE } from "../../domain";
import { Transform } from 'class-transformer';
@Entity('profile')
@Unique(['email'])
export class ProfileEntity implements IProfile {
@PrimaryGeneratedC... | Typescript |
.getAddressId());
OmsOrder order =new OmsOrder();
createOrderObj(order,orderParam, currentMember, orderItemList, address);
order.setMemberId(orderParam.getMemberId());
// TODO: 2018/9/3 bill_*,delivery_*
//插入order表和order_item表
orderService.save(order);
orderPar... | Java |
Label.Margin.Left + viewsLabel.Margin.Right;
int i = labels.Count - 1;
while (i >= 1) {
x -= labels[i].Size.Width;
x -= labels[i - 1].Size.Width;
if (x < curLoc.X) break;
i -= 2;
}
ellipsis.Tag = brea | C# |
`PHP` 控制结构提供了一个非常清晰、简洁的书写方式,同时,还与 `PHP` 中的控制结构保持了相似的语法特性。
#### If 语句
您可以使用 `@if`,`@elseif`,`@else` 和 `@endif` 指令构造 `if` 语句。这些指令功能与它们所对应的 `PHP` 语句完全一致:
```blade
@if (count($records) === 1)
I have one record!
@elseif (count($records) > 1)
I have multiple records!
@else
I don't have any records!
@endif
```
... | Markdown |
/* ARM64 mul_2 -- Multiply a limb vector with a limb and add the result to
* a second limb vector.
*
* Copyright (C) 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi>
*
* This file is part of Libgcrypt.
*
* Libgcrypt is free software; you can redistribute it and/or modify
* it under the terms of... | Assembly |
# Author: Jinwei Lin
# Time: 06, Apirl, 2024
import bpy
import pathlib
import os
import argparse
def lessMeshes():
# Remove the default cude
# -------------------------------------------------------------------------------
bpy.ops.object.delete(use_global=False, confirm=False)
# Import the specif... | Python |
mulChunklists(a: IntArray, b: IntArray): IntArray {
val la = a.size
val lb = b.size
val out = IntArray(la + lb)
for (i in 0 until la) {
var carry = 0L
val ai = BIT_OPS_16.normalize(a[i].toLong())
for (j in 0 until lb) {
val idx = i + j... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.