content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ch(0.21 0.006 285.885);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.21 0.006 285.885);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.637 0.237 25.331);
--primary-foreground: oklch(0.971 0.013 17.38);
--secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0);
--mu... | CSS |
, o48, AO // load a6, a7
addi AO, AO, 64
lxvw4x vs8, o0, BO // load b0_r
lxvw4x vs9, o16, BO // load b0_i
lxvw4x vs10, o32, BO // load b1_r
lxvw4x vs11, o48, BO // load b1_i
addi BO, BO, 64
lxvw4x vs12, o0, BO // load b2_r
lxvw4x vs13, o16, BO // load b2_i
lxvw4x vs14, o32, BO // lo... | Assembly |
var radius = Math.random() / 2 + 0.5,
half_height = Math.random() + 0.5;
object = exampleUtils.createCylinder( radius, half_height, 1, rust_material );
} else if ( type < 0.57 ) {
var radius = Math.random() / 3 + 0.8,
half_height = Math.random() * 1.5 + 0.8;
object = exampleUtils.cre... | HTML |
, #0x18
b _020093B0
.align 2, 0
_02009388: .4byte 0x0203F800
_0200938C:
adds r3, r6, #0
adds r6, #0x40
subs r4, #1
mov r1, ip
cmp r1, #0
beq _020093AE
ldr r5, _020093BC @ =0x00000FFF
mov r2, ip
_0200939C:
ldrh r1, [r3]
adds r0, r5, #0
ands r0, r1
orrs r0, r7
strh r0, [r3]
adds r3, #2
subs r2, #1
cmp r... | Assembly |
verityLevel.HIGH
}
)
```
## 📚 API Reference
### Core Classes
#### ModerationFilter
Main class for content moderation.
```python
ModerationFilter(
api_key: Optional[str] = None,
model: str = "claude-3-haiku-20240307",
strategies: Optional[List[ModerationStrategy]] = None,
policy: Optional[Modera... | Markdown |
// clang -O3 -march=native -ffast-math avx/matmul_tiled_simd.c && ./a.out
// block y and x is needed to achieve good register hits, cannot just use one block size
// ~110 gflops
#define _GNU_SOURCE
#include <stdio.h>
#include <stdalign.h>
#include <math.h>
#include <stdint.h>
#include <immintrin.h> // For SIMD intrin... | C |
PF ldrgeb DUMMY, [PF_SRC, SRC_STRIDE, lsl #src_bpp_shift]!
vst1.8 {q14}, [DST_W :128]!
vmvn d6, d3
vshr.u8 d1, #2
vshr.u8 d3, #3
vshr.u8 d0, #3
vshrn.u16 d7, q2, #3
vshrn.u16 d25, q2, #8
vbic.i16 q2, #0xe0
... | Assembly |
forceDisableWeather([String streetName = ""])
=> checkBoolSetting("disable_weather", streetName: streetName);
// Returns whether to snow instead of rain
bool snowyWeather([String streetName = ""])
=> checkBoolSetting("snowy_weather", streetName: streetName);
// Returns whether to disable game window size expans... | Dart |
(),
input.as_encrypted_data_ref().to_owned()
)
}
<reponame>patrickelectric/rust-clippy
// compile-flags: --emit=link
// no-prefer-dynamic
#![crate_type = "proc-macro"]
#![feature(repr128, proc_macro_hygiene, proc_macro_quote, box_patterns)]
#![allow(clippy::useless_conversion)]
extern crate proc_macro;
ex... | Rust |
compass_panel/btn_order",
triggerType = {
1
},
fingerPos = {
rotateY = 0,
posY = -43.7,
rotateX = 0,
rotateZ = 0,
posX = 56.19
}
}
},
{
delay = 1.5,
code = {
"playStory"
},
stories = {
"GWORLD103C"
}
},
{
alpha = 0.3,
ui = {
path ... | Lua |
from qnt.ta.ndadapter import NdType, nd_to_1d_universal_adapter
from qnt.ta.change import change
import numpy as np
from qnt.log import log_info, log_err
def ad_ratio_np(prices: np.ndarray) -> np.ndarray:
"""
Advance/Decline Ratio (numpy)
:param prices: last dimension - time
:return:
"""
ch =... | Python |
。
*/
Data: Array<StatDataItem>
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
RequestId?: string
}
/**
* PullEvents返回参数结构体
*/
export interface PullEventsResponse {
/**
* 事件列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
EventSet?: Array<EventContent>
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestI... | Typescript |
grid_view/src/widgets/aligned_grid_view.dart';
import 'package:flutter_test/flutter_test.dart';
import '../../common.dart';
void main() {
final binding = TestWidgetsFlutterBinding.ensureInitialized();
testWidgets('Empty AlignedGridView', (WidgetTester tester) async {
await tester.pumpWidget(
Directiona... | Dart |
: int = 64
config_file: str | None = None
label_map_file: Path | str | None = None
def __post_init__(self):
if self.experiment_path is not None:
self.experiment_path = Path(self.experiment_path)
checkpoint = None
if self.experiment_path.is_file(): # Best model p... | Python |
nextkeymap,
{ ...valitermatch },
{ ...valitermissing },
acc
)
}
}
}
nextkeymap = keymap.s
if (nextkeymap) {
descend(nextkeymap, { ...itermatch }, { ...itermissing }, acc)
}
... | Typescript |
LECT message_id FROM last_seen_message", params![], |r| r.get::<_, i32>(0)) {
c.execute("INSERT INTO last_seen_message VALUES (?)", params![message_id]);
} else {
c.execute("UPDATE last_seen_message SET message_id = MAX(message_id, ?)", &[message_id]);
}
}
}
/// Returns whet... | Rust |
�害预警GIF" src="https://github.com/lilongweidev/GoodWeather/blob/master/download/warn.gif" width = "25%" height = "480" alt="灾害预警GIF"/>
<img title="更多天气预报GIF" src="https://github.com/lilongweidev/GoodWeather/blob/master/download/more_daily.gif" width = "25%" height = "480" alt="更多天气预报GIF"/>
<img title="更多空气质量GIF" src="ht... | Markdown |
;
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:path/path.dart' as p;
import '../io.dart';
import '../va... | Dart |
防。接种第一针疫苗后,狗狗需要在8-12周时接种第二针疫苗,同样是七联疫苗。</p><p>动物疫苗打几次有效的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于动物疫苗打一次管多长时间、动物疫苗打几次有效的信息别忘了在本站进行查找喔。</p> </div>
<div class="clearfix"></div>
<div class="col-md-12 mt-5">
<p>上一个:<a href="/news/article-104861.htm">s... | HTML |
fac, BRep_Tool::Tolerance(fac));
Standard_Real u, v;
ElSLib::Parameters(myPln->Pln(), CheckPnt, u, v);
gp_Pnt2d checkpnt2d(u, v);
if (Cl.Perform(checkpnt2d, Standard_True) == TopAbs_OUT)
{
BRepAlgoAPI_Cut c(BndFace, fac);
TopExp_Explorer exp(c.Shape(), TopAbs_WIRE);
Updat... | C++ |
. Nulla vestibulum. Integer lorem nunc," +
"ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in massa" +
"bibendum suscipit. Integer eros. Nullam suscipit mauris. In pellentesque." +
"Mauris ipsum est, pharetra semper, pharetra in, viverra quis, tellus. Etiam" +
"purus. Quisque egestas, tortor ac c... | JavaScript |
uceURI : AppiumServers.LocalServiceURIForIOS;
driver = new IOSDriver<IWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC);
driver.Manage().Timeouts().ImplicitlyWait(Env.IMPLICIT_TIMEOUT_SEC);
}
[TestFixtureTearDown]
public void afterAll(){
if (driver != null)
{
... | C# |
# -*- coding: utf-8 -*-
"""
最终验证测试:自动HWND更新功能完整测试
"""
import sys
import os
import time
# 添加项目路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from auto_approve.config_manager import load_config
from auto_approve.auto_hwnd_updater import AutoHWNDUpdater
from auto_approve.smart_process_f... | Python |
ecked out or not.</DL>
</DD>
</DL>
<HR>
<A NAME="matchPatterns(java.lang.String, java.lang.String)"><!-- --></A><H3>
matchPatterns</H3>
<PRE>
protected boolean <B>matchPatterns</B>(java.lang.String patterns,
java.lang.String pName)</PRE>
<DL>
<DD>Convenient method to see if a ... | HTML |
616 4.537 10.839 4.537 8.444 0 15.249-6.868 15.249-15.249 0-2.331-0.504-4.474-1.449-6.428l-24.639 17.14z"></path>
</symbol>
<!-- Keeper -->
<symbol id="vj_wicket-keeper" viewBox="0 0 32 32">
<path d="M7.066 21.238l7.249-1.278 0.581 3.295-7.249 1.278-0.581-3.295z"></p... | HTML |
SigaAnonimoActionSupport.html#setServletResponse(javax.servlet.http.HttpServletResponse)">setServletResponse</A>, <A HREF="../../../../../br/gov/jfrj/siga/libs/webwork/SigaAnonimoActionSupport.html#setSharedContextAttribute(java.lang.String, java.lang.Object)">setSharedContextAttribute</A></CODE></TD>
</TR>
</TABLE>
&n... | HTML |
,"scheme","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
q: {
name: "queryKey",
parser: /(?:^|&)([^&=]*)=?([^&]*)/g
},
parser: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)... | JavaScript |
*/
hide( )
/**
* 显示工具条
*
* @memberof ToolBar
*/
show( )
on(event: ToolBarEventNames, cb: Function)
}import { JsonConverter } from "../../../src/json2typescript/json-convert-decorators";
import { JsonCustomConvert } from "../../../src/json2typescript/json-custom-convert";
@JsonConve... | Typescript |
// REQUIRES: aarch64
// RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t.o
// RUN: ld.lld %t.o -o %t.so -shared
// RUN: llvm-readobj -r %t.so | FileCheck %s
.p2align 4
adr x8, .Lfoo // R_AARCH64_ADR_PREL_LO21
adrp x8, .Lfoo // R_AARCH64_ADR_PREL_PG_HI21
s... | Assembly |
.current_frame && this.current_frame.forces.length>0) {
let stress = this.current_frame.forces;
for(let i=0; i<this.beams.length; i++){
let netf = new Vec3([ Math.abs(stress[6*i]) , Math.abs(stress[6*i + 1]) , Math.abs(stress[6*i + 2])]);
force[2*i] = netf.length();
let netf2 = new V... | Typescript |
)
}
else if rc == 1 {
Ok(false)
}
else {
Err(Error::from(rc))
}
}
}
<reponame>chridou/nakadion
use nakadi_types::event_type::*;
use nakadi_types::RandomFlowId;
use nakadion::api::{ApiClient, MonitoringApi, SchemaRegistryApi};
#[cfg(feature = "reqwest"... | Rust |
.openecard.sc.iface.SequenceCounterOverflow
import org.openecard.utils.common.toUByteArray
import kotlin.math.sign
@OptIn(ExperimentalUnsignedTypes::class)
@Throws(SequenceCounterOverflow::class)
fun Long.toSequenceCounter(targetLength: Int = 16): UByteArray {
require(targetLength > 0) { "Non-positive target length f... | Kotlin |
licExpression, Severity.Warning, ObjectType.Field, m_fieldDef.Name, "Value");
throw new ReportProcessingException_InvalidOperationException();
}
m_isVisited = true;
m_value = m_reportRT.EvaluateFieldValueExpression(m_fieldDef);
m_isVisited = false;
m_isValueReady = true;
}
return ... | C# |
/*
* Copyright (c) 2025 Jiri Svoboda
* Copyright (c) 2010 Lenka Trochtova
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copy... | C |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
... | C++ |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_MATH_FUNCTIO... | C |
,55.87,6.68,92.11c0,0,13.72-16.41,25.39-31.53s2.46-78.74,2.46-78.74S121.38,262.11,101.32,254.47Z"
fill="#e21921"
></path>
<path
d="M66.47,168.29s-19.91-19-33.67-12.08-14.18,22.27-14.18,22.27-8,16.43-1.32,31.49,6.09,26.34,6.09,26.34,2.24,16.1,6.91,18.39,15.68,14,23.52,16.59S74.55,285.54,84,277.11s11-... | HTML |
dirArtifactCache.fetchAsync(null, ruleKeyZ, LazyPath.ofInstance(fileZ)))
.getType());
}
@Test
public void testCacheStoreMultipleKeys() throws IOException {
Path fileX = tmpDir.newFile("x");
fileHashLoader = new FakeFileHashCache(ImmutableMap.of(fileX, HashCode.fromInt(0)));
dirA... | Java |
}
}
return samples;
}
public void Wrap()
{
_useLoop = true;
if (SamplePosition == _loopStartSample)
{
return;
}
SamplePosition = _loopStartSample;
}
public voi... | C# |
)) {continue;}
p.print("extern void __declare_sockets_" + i + "();\n");
p.print("extern thread_info *__get_thread_info_" + i + "();\n");
p.print("extern void run_" + i + "();\n");
p.print("pthread_attr_t __pthread_attr_" + i + ";\n");
p.print("pthread_t __pthr... | Java |
s if an inode operation is permitted
* @dev_cgroup: the dev cgroup to be tested against
* @type: device type
* @major: device major number
* @minor: device minor number
* @access: combination of ACC_WRITE, ACC_READ and ACC_MKNOD
*
* returns 0 on success, -EPERM case the operation is not permitted
*/
static int ... | C |
rotation_count == 0:
cv2.line(original_image, top_left, top_right, green_color, 5)
cv2.line(original_image, top_right, bottom_right, red_color, 5)
cv2.line(original_image, bottom_left, bottom_right, blue_color, 5)
cv2.line(original_image, top_left, bottom_left, red_color, 5)
elif ro... | Python |
form-control" type="text" placeholder="关键字查找" autocomplete="off" title="关键字查找" name="q">
<button class="submit" type="submit"></button>
</div>
</form>
</div>
</div>
<script type="... | HTML |
Dir.absoluteFile, "tdlib/source/td/CMakeLists.txt")
tdlibVersionFile.bufferedReader().use { reader ->
val regex = Regex("^project\\(TDLib VERSION (\\d+\\.\\d+\\.\\d+) LANGUAGES CXX C\\)$")
while (true) {
val line = reader.readLine() ?: break
val result = regex.find(line)
if (resu... | Kotlin |
D0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOUU4MUM2RjM1REYxMUU2QURFRDlDNkZERjM3QTYxQSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxOUU4MUM3MDM1REYxMUU2QURFRDlDNkZERjM3QTYxQSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE5RTgxQzZEMzVERjExRTZBREVEOUM2RkRGMzdBNjFBIiBzdFJlZ... | CSS |
this.SuspendLayout();
//
// chart
//
this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Righ... | C# |
�� 곱을 진행하게 되었을 때, 문제를 O(n)의 시간 복잡도로 해결할 수 있음.
* 시간 복잡도: O(n^2)
* 공간 복잡도: O(n)
* */
fun productExceptSelf00(nums: IntArray): IntArray {
val result = mutableListOf<Int>()
for (i in nums.indices) {
var temp = 1
for (j in nums.indices) {
if (i == j) continue
temp *= nums[j]
... | Kotlin |
style.appendChild(text)
this.parent.appendChild(style)
document.body.appendChild(this.parent)
this.positionItems = {
'top-left': { parent: null, items: [] },
'top-center': { parent: null, items: [] },
'top-right': { parent: null, items: [] },
'bottom-left': { parent: null, items:... | Typescript |
"scaffolding.less";
@import "type.less";
@import "code.less";
@import "grid.less";
@import "tables.less";
@import "forms.less";
@import "buttons.less";
// Components
@import "component-animations.less";
@import "dropdowns.less";
@import "button-groups.less";
@import "input-groups.less";
@import "navs.less";
@import "... | CSS |
�板的次数有多少,随后定义一个研判规则,例如这个比例超过50%,那么驾驶人就有一定的嫌疑,进入单独的嫌疑车辆库;这个信息库往后来看,就是根据一些统计结果来判断驾驶人员的驾驶行为分析。
### 1.4.16 多业务维度积分研判分析
基于大数据平台的多业务维度车辆积分研判根据对车辆的出没时间属性、出没卡口地点属性、驾驶人员违反行为信息、牌照归属地信息等多种有关车辆属性进行综合考虑,引入一套关于车辆积分研判的方法,因此在对车辆信息进行有针对性地研判时带来一种全新的体验。同时为了满足研判和预警实时性的要求,大数据采用spark流计算的方式保证车辆积分能够实时处理并将结果分发相关人员。
# 道路交通信息服务——交通事件分类与编码
# ... | Markdown |
::create().expect("mrb init");
// get a mrb_value that can't be converted to a primitive type.
let value = interp.eval("Object.new").expect("eval");
let expected = Error {
from: Ruby::Object,
to: Rust::Float,
};
let result = unsafe { Float::try_from_mrb(&i... | Rust |
HECK: :[[@LINE]]:18: error: expected immediate in range 1 .. 32
ins $2, $3, -1, 31 # CHECK: :[[@LINE]]:15: error: expected 5-bit unsigned immediate
ins $2, $3, 32, 31 # CHECK: :[[@LINE]]:15: error: expected 5-bit unsigned immediate
ei $32 # CHECK: :[[@LINE]]:{{[0-9]+}}: error: invali... | Assembly |
[class*=tile] {
outline-color: #373737;
}
.tile-area-scheme-darkBrown {
background-color: #63362F;
}
.tile-area-scheme-darkBrown [class*=tile] {
outline-color: #86493f;
}
.tile-area-scheme-darkCrimson {
background-color: #640024;
}
.tile-area-scheme-darkCrimson [class*=tile] {
outline-color: #970036;
}
.tile-... | CSS |
-moz-box-align: start;
-webkit-box-align: start;
-ms-box-align: start;
box-align: start;
-moz-box-pack: start;
-webkit-box-pack: start;
-ms-box-pack: start;
box-pack: start;
}
.deck-container .slide.left .content > * {
display: -webkit-box;
display: -ms-box;
display: box;
... | CSS |
/**
******************************************************************************
* @file dpredriver.h
* @author MCD Application Team
* @brief This header file contains the functions prototypes for the
* DisplayPort Linear Redriver.
***********************************************************... | C |
thatS3dStatusBar.undoInfoList = newList;
}
thatS3dStatusBar.undoInfoList.push(p);
if(!isFromRedoList){
//如果不是从redo list来的,那么清除redo list
thatS3dStatusBar.clearRedoList();
thatS3dStatusBar.refreshStatusText({
status: thatS3dStatusBar.manager.viewer.status,
message: "执行 '" + s3dOperate... | JavaScript |
cessarily going to be even 4 bytes. On C compilers for MIPS itself,
* almost certainly, but is this really important to have?
*/
#if 0
typedef struct {
unsigned opcode: 6;
unsigned target: 26;
} MIPS_type_J;
#endif
/*
* Saying "int" all the time for variables of true/false meaning can be sort
* of misle... | C |
, 5000)
df_subtracted = self.read_sequences(df_subtracted)
df_subtracted.to_csv(os.path.join(self.data_path, 'protein_without_cofactor.tsv'), sep='\t', index=False)
cofactor_columns = ['SAM', 'NAD', 'NADP', 'FAD', 'GSH', 'CoA', 'THF', 'FMN', 'Menaquinone', 'Ubiquinone', 'Plastoquinone', 'Ferred... | Python |
{
name: "EONshiftRA",
auxType: auxInt64,
argLen: 2,
asm: arm64.AEON,
reg: regInfo{
inputs: []inputInfo{
{0, 402653183}, // R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 R19 R20 R21 R22 R23 R24 R25 R26 g R30
{1, 402653183}, // R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R1... | Go |
{"title":"flawesome","text":"# FLAWESOME\n\n Flawesome is a modern productivity tool that will help you organise your day-today work and thoughts.\n\n SITE: https://github.com/ashishBharadwaj/flawesome\n\n | [Applications](https://portable-linux-apps.github.io/apps.html) | [Home](https://portable-linux-apps.github.io)... | HTML |
d: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#b3000000', GradientType=0);
}
.td_module_mx8 .entry-thumb {
w... | CSS |
S8.T6.1.1.1.m1.1.1" xref="S8.T6.1.1.1.m1.1.1.cmml"><mn id="S8.T6.1.1.1.m1.1.1.2" xref="S8.T6.1.1.1.m1.1.1.2.cmml">1</mn><mo id="S8.T6.1.1.1.m1.1.1.1" lspace="0.222em" rspace="0.222em" xref="S8.T6.1.1.1.m1.1.1.1.cmml">×</mo><msup id="S8.T6.1.1.1.m1.1.1.3" xref="S8.T6.1.1.1.m1.1.1.3.cmml"><mn id="S8.T6.1.1.1.m1.1.1.3.2" ... | Markdown |
/*
* include/asm-v850/v850e_timer_d.h -- `Timer D' component often used
* with the V850E cpu core
*
* Copyright (C) 2001,02,03 NEC Electronics Corporation
* Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the... | C |
/*
* This file belongs to FreeMiNT. It's not in the original MiNT 1.12
* distribution. See the file CHANGES for a detailed log of changes.
*
*
* Copyright 2000 Frank Naumann <fnaumann@freemint.de>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | C |
merger(styling)({
className: defaultStyling as string,
}),
...args,
);
case 'object':
return (styling, ...args) =>
(customStyling as StylingValueFunction)(
merger(styling)({
style: defaultSt... | Typescript |
oins_async() {
block_on(async {
let mut tt: TextTransliterateOffThread = Default::default();
let result = tt.transliterate("€ £ $ ¥", "en_US.UTF-8");
if let Ok(result) = result {
assert_eq!("EUR GBP $ JPY", result);
} else {
unreach... | Rust |
ength; i < l; i++) {
var pair = pairs[i].split('=');
qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
}
return qry;
};
/***/ }),
/***/ "./node_modules/parseuri/index.js":
/*!****************************************!*\
!*** ./node_modules/parseuri/index.js ***!
\************************... | JavaScript |
name a token indicating the parameter to be modified. One of:<br><table><tr><td>{@link GL43#GL_FRAMEBUFFER_DEFAULT_WIDTH FRAMEBUFFER_DEFAULT_WIDTH}</td><td>{@link GL43#GL_FRAMEBUFFER_DEFAULT_HEIGHT FRAMEBUFFER_DEFAULT_HEIGHT}</td></tr><tr><td>{@link GL43#GL_FRAMEBUFFER_DEFAULT_LAYERS FRAMEBUFFER_DEFAULT_LAYERS}<... | Kotlin |
740_rtc_ops;
rtc->rtc->range_max = U32_MAX;
rate = clk_get_rate(clk);
jz4740_rtc_set_wakeup_params(rtc, np, rate);
/* Each 1 Hz pulse should happen after (rate) ticks */
jz4740_rtc_reg_write(rtc, JZ_REG_RTC_REGULATOR, rate - 1);
ret = devm_rtc_register_device(rtc->rtc);
if (ret)
return ret;
ret = devm_req... | C |
5h-5l-1 2.54a.77.77 0 0 1-.22.3.59.59 0 0 1-.4.14H9l4.55-11.47h1.89zm-3.53-4.31L14.89 9.5a11.62 11.62 0 0 1-.39-1.24q-.09.37-.19.69l-.19.56-1.58 4.19zm-6.3-1.58a13.43 13.43 0 0 1-2.91-1.41 11.46 11.46 0 0 0 2.81-5.37H12V4H7.31a4 4 0 0 0-.2-.56C6.87 2.79 6.6 2 6.6 2l-1.47.5s.4.89.6 1.5H0v1.33h2.15A11.23 11.23 0 0 0 5 10... | HTML |
, és a rosszindulatú vagy kapzsi tőzsdék kevésbé kockázathatják a Monero árfolyamának stabilitását.</p>';
@override
String get knowledge250Sbkeys250Sb1250Sbtitle => 'Miért fontos a saját kulcsok birtoklása?';
@override
String get knowledge250Sbkeys250Sb2250Sbtext => '<p>Amikor elkezdi kézben tartani a saját k... | Dart |
:1 \@P0 STS.128 [writeS + 4x<4*32>], load1A;\n",
j1c21 => "08:-:-:-:1 \@P1 IADD trackA0.CC, trackA0, cda4;\n",
j1c26 => "--:-:-:-:1 \@P1 IADD.X trackA1, trackA1, RZ;\n",
j1c28 => "04:4:3:-:1 \@P1 LDG.E.CI.$vsizeA load1A, [trackA];\n",
j1c52 => "10:5:-:-:1 \@P0 STS.128 [writeS... | CSS |
ngRange(10));
public static final EntityType<ItemEntity> ITEM = register("item", EntityType.Builder.<ItemEntity>of(ItemEntity::new, MobCategory.MISC).sized(0.25F, 0.25F).clientTrackingRange(6).updateInterval(20));
public static final EntityType<Display.ItemDisplay> ITEM_DISPLAY = register("item_display", EntityTy... | Java |
ion {
transition: all 0.3s;
}
@keyframes viewer-spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.viewer-loading::after {
animation: viewer-spinner 1s linear infinite;
border: 4px solid rgba(255, 255, 255, 0.1);
border-left-color: rgba(255, 255, 255, 0.5);... | CSS |
PathParams
// b) Sim. Ver arquivo users-path.ts
// Exercício 3
// a) Query
// b) Dito e feito.
// Exercício 4
// a) Nada altera, pois ambos POST e PUT estão >>ALTERANDO<< a variável users.
// b) Sim, porém o método POST é mais semântico. De um ponto de vista técnico, estamos alterando uma variável, portanto PUT deve... | Typescript |
if (!settings.container.hasListener) {
settings.container.hasListener = true
settings.container.addEventListener('click', (event) => {
if (!event.target) {
return
}
let maybeA = event.target
if (event.target.closest('a')) {
maybeA = event.target.closest('a')
}
if (!maybeA.cl... | JavaScript |
void __init omap_nokia770_init(void)
{
platform_add_devices(nokia770_devices, ARRAY_SIZE(nokia770_devices));
spi_register_board_info(nokia770_spi_board_info,
ARRAY_SIZE(nokia770_spi_board_info));
omap_gpio_init();
omap_serial_init();
omap_register_i2c_bus(1, 100, NULL, 0);
omap_dsp_init();
hwa742_dev_init()... | C |
&.align-center
-webkit-box-pack: center
-webkit-justify-content: center
-ms-flex-pack: center
justify-content: center
&.align-right
-webkit-box-pack: end
-webkit-justify-content: flex-end
-ms-flex-pack: end
justify-content: flex-end
[class^="col-"],
[class*=" col-"]
width: 100%... | CSS |
pred = model.predict(X_test)
# convert the predictions into label index
pred_classes = np.argmax(pred, axis=1)
# plot the actual results with actual and predicted labels
plt.figure(figsize=[10, 10])
# Convert y_test to integer values
y_test = y_test.astype(int)
for i in range(30):
... | Python |
x4e == cmeq v5.8h, v6.8h, #{{0x0|0}}
0x7d,0x9b,0xa0,0x0e == cmeq v29.2s, v27.2s, #{{0x0|0}}
0xe9,0x98,0xa0,0x4e == cmeq v9.4s, v7.4s, #{{0x0|0}}
0xe3,0x9b,0xe0,0x4e == cmeq v3.2d, v31.2d, #{{0x0|0}}
0xe0,0x89,0x20,0x2e == cmge v0.8b, v15.8b, #{{0x0|0}}
0xe1,0x8b,0x20,0x6e == cmge v1.16b, v31.16b, #{{0x0|0}}
0x0f,0x8a,0... | C# |
or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by client-gen. DO NOT EDI... | Go |
�,
* 我們可找到最接近 |n| 但不超過 |n| 的二之乘冪,稱之為 |m|(也就是 $m = 2^k$ 而且 $m \leq n < 2\times m$).
* 由於 $n$ 不是 |Zero|, $m$ 也不是 |Zero|. 也因此 |n - m < n|.
* 依據歸納假設 |(forall i < n . P i)|, 以及 |n - m < n|, |P (n-m)| 成立 --- |n - m| 可以寫成不相同的二的乘冪的和。
* 也因此 |n| 可寫成不相同的二的乘冪的和 --- 把 |n-m| 加上 $m$ 即可.
上述證明僅用口語描述,因為如果形式化地寫下這個證明,就等同於寫個將自然數轉... | Markdown |
ails {
expect(listOf(1, 2, 2, 4)).toHaveElementsAndAll {
toBeLessThanOrEqualTo(3)
}
}
}
@Test
fun toHaveElementsAndNoDuplicates() {
expect(listOf("A", "B")).toHaveElementsAndNoDuplicates()
fails {
expect(listOf("A", "B", "C", "A"... | Kotlin |
通过 `reset()` 方法,可以将现有的 `Matcher` 对象应用于一个新的字符序列:
```java
// strings/Resetting.java
import java.util.regex.*;
public class Resetting {
public static void main(String[] args) throws Exception {
Matcher m = Pattern.compile("[frb][aiu][gx]")
.matcher("fix the rug with bags");
... | Markdown |
await assertDiagnostics(
'''
extension _E on int {
static int? i;
}
''',
[lint(36, 1)],
);
}
test_staticField_public_onPublicExtension() async {
await assertNoDiagnostics('''
extension E on int {
static int? i;
}
''');
}
test_staticField_public_onUnnamedExtension() async {
awai... | Dart |
e] Type argument 'Fcov<Fcov<FutureOr<Object>>>' doesn't conform to the bound 'X Function()' of the type variable 'X' on 'CFcov'.
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS
Funu<CFcon<Object>> x343;
// ^
// [cfe] Type argument 'Object' doesn't c... | Dart |
GL11.glShadeModel(lastShadeModel)
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, lastTexEnvMode)
}
override fun createDeviceObjects(): Boolean = createFontsTexture()
/** Build texture atlas */
override fun createFontsTexture(): Boolean {
/* Load as RGBA 32-bit (75% of the mem... | Kotlin |
me.chartType === 'pie' || me.chartType === 'polarArea') {
path = [...pathBeginning, 'L', me.centerX, me.centerY, 'L', x1, y1].join(
' '
)
} else {
path = [...pathBeginning].join(' ')
}
return path
}
drawPolarElements(parent) {
const w = this.w
const scale = new Scales... | JavaScript |
ker.pm'), this.disabled || this.readonly),
])
},
genPickerBody () {
return this.$createElement('div', {
staticClass: 'v-time-picker-clock__container',
key: this.selecting,
}, [
!this.ampmInTitle && this.isAmPm && this.genClockAmPm(),
this.genClock(),
])
... | Typescript |
equestedPayments: RequestedMixedPayments(
standard: [Payment(1000, nathan.firstPuzzlehash)],
),
keychain: nathan.keychain,
);
expect(askOffer.isComplete, false);
final bidOfferRequestedAmounts = askOffer.offeredAmounts;
final payments =
bidOfferRequestedAmou... | Dart |
= POINTLIST._3_R09_SPAWN02,
trigger = TRIGGER._3_R09_SPAWNT02
}
}
gSpawnText = {
"3_R09_D8",
"3_R09_D9",
"3_R09_E1"
}
gStagePart = 0
gMaxKills = 3
gArea = 13
cx, cy, cz = -751.7783, 352.9332, 4.664
tx, ty, tz = -753.502, 348.234, 5.07941
bx... | Lua |
_riter( <a href="#parray">parray</a>* array, parrayfn callback )
</div>
</p>
<p>
<strong>Usage:</strong>
</p>
<p>
Iterates backwards over <em>array</em>.
</p>
<p>
Backwardly iterates over all items of <em>array</em> and calls the function
<em>callback</em> on every item.
</div>
<!-- NEED 14 -->
<div class='function'>
<... | HTML |
ul class="block structfield"><li><a href="#structfield.embeddings" title="embeddings">embeddings</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-GenerateEmbeddingsResponse" title="Clone">Clone</a></li><li><a href="#impl-... | HTML |
" data-dfn-type="dfn" data-export data-lt="quirky length" id="quirky-length">Quirky lengths</dfn> are denoted by <dfn class="css dfn-paneled" data-dfn-type="type" data-export id="quirky-length-value"><quirky-length></dfn>. A <a data-link-type="dfn" href="#quirky-length" id="ref-for-quirky-length">quirky length</a> i... | HTML |
re("y")==0){
point.x = std::stod(child12->GetText());
point.y = std::stod(child22->GetText());
}
}
}
return point;
}
LetterGraph::LetterGraph(const char* filename) : Graph< CMUPoint, double > (false)
{
GraphLoadGXL(filename,readLetterNodeLabel,readLetterEdgeLabel);
}
void LetterGraph... | C++ |
cast_rx,
));
let (handle_tx, handle_rx) = oneshot::channel();
let subscription = Subscription(handle_tx);
sub_tx.send(subscription).await.unwrap();
let action_request = IncomingMessage::ActionRequest {};
broadcast_tx.send(action_request).unwrap();
let event = handle_rx.await.unwrap();
... | Rust |
InputAudio...)
req.DecodedMicData = append(req.DecodedMicData, req.OpusDecode(chunk.InputAudio)...)
req.FilteredMicData = append(req.FilteredMicData, highPassFilter(req.OpusDecode(chunk.InputAudio))...)
dataReturn := req.DecodedMicData[req.PrevLen:]
req.LastAudioChunk = req.FilteredMicData[req.PrevLen:]
req.P... | Go |
SPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="JarLibResolveTask()"><!-- --></A><H3>
JarLibResolveTask</H3>
<PRE>
public <B>JarLibResolveTask</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="10... | HTML |
%d",
rawir.pulse ? "pulse" : "space",
rawir.duration);
ir_raw_event_store(ir->rc, &rawir);
width = 1;
prv_bit = bit;
}
}
rawir.pulse = prv_bit ? false : true;
rawir.duration = AU8522_UNIT * width;
dprintk(16, "Storing end %s with duration %d",
rawir.pulse ? "pulse" : "space",
rawir.duration... | C |
b> Oh and <b>you</b> know what I want!</p>
<p><b>Chandler:</b> Yes! You want babies! You have baby fever!</p>
<p><b>Monica:</b> I do not have baby fever!</p>
<p><b>Chandler:</b> Oh please, you are obsessed with babies and-and marriage and
everything that's related to babies and-and marriage! I've got an idea, why do... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.