content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
r
def test_make_block_no_pandas_array(block_maker):
# https://github.com/pandas-dev/pandas/pull/24866
arr = pd.arrays.NumpyExtensionArray(np.array([1, 2]))
# NumpyExtensionArray, no dtype
result = block_maker(arr, BlockPlacement(slice(len(arr))), ndim=arr.ndim)
assert result.dtype.kind in ["i", "... | Python |
.section __TEXT,__text,regular,pure_instructions
.globl _validate ## -- Begin function validate
.p2align 4, 0x90
_validate: ## @validate
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
... | Assembly |
SRC1)
DOUBLE SD2 = ASDOUBLE(SRC2)
DOUBLE S12 = (SRC0!=SRC1) ? SD1 : SD2
UINT64 MASK = (1ULL<<LANEID)
SDST = 0
if (ISNAN(SD0) || ABS(SD0) == INF)
{
VDST = SRC0
SDST = (SDST & ~MASK) | MASK
}
else if (ABS(S12) >= ABS(POW(2.0, 768+FREXP_EXP(SD0)-1) || ISNAN(S12))
{
VDST = SD0 * POW2(2.0, 128)
SDST = (SDST ... | Markdown |
ewBinding> internal constructor(
private val bindingClass: Class<VB>,
private val layoutInflater: () -> LayoutInflater,
private val parent: ViewGroup?,
private val attachToParent: Boolean
) {
/** The [ViewBinding] instance cache. */
private var binding: VB? = null
/**
* Bind the [View... | Kotlin |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Timers;
using TrueMiningDesktop.Core;
using TrueMiningDesktop.Server;
namespace TrueMiningDesktop.User
{
public static class Settings
{
... | C# |
Боевой посох",
[2528] = "Фальшион",
[2529] = "Цвайхандер",
[2530] = "Франциска",
[2531] = "Гигантский топор",
[2532] = "Утренняя звезда",
[2533] = "Боевая кувалда",
[2534] = "Рондел",
[2535] = "Посох бойца",
[2536] = "Каменный зуб трогга",
[2543] = "Штаны ополченца",
[2545] = "Гибкие плетеные поно... | Lua |
botClose: HTMLElement | null = document.getElementById("botClose");
botClose.onclick = () => {
botModal.style.opacity = "0";
botModal.style.visibility = "hidden";
};
};
// start new screen for game start
document.getElementById(bubbleID[1]).onclick = () => {
document.getElementById("bot... | Typescript |
), 기준도형 등을 노출합니다. 몸통 내부에서 수행되는 부분적인 작업을 시각화할 수 있는 모드이므로 특징을 추가하거나 편집할 때 권장되는 모드입니다. 특정 특징을 선택하고 **Visibility**를 `True`로 설정하거나 키보드의 **Space** 막대를 누릅니다.
-
`Tip`
은 **Tip** 속성에 정의된 몸통의 최종 형상만 노출합니다. [스케치](Sketch/ko.md), [특징](PartDesign_Feature/ko.md), 기준도형 등을 포함한 다른 모든 항목은 [트리 보기에](tree_vie... | Markdown |
tAddr)
{
/*
Description:
Will just reset the "thread deadlock barrier" for the current hook handler and provides
some important integrity checks.
The hook handle is just passed through, because the assembler code has no chance to
save it in any efficient manner at this point of execution...
*/
RUNTIME... | C |
HP303B is already busy
* -2 if the object initialization failed
* -1 on other fail
* NOTE: High precision and speed for both temperature and pressure
* can not be reached at the same time.
* Estimated time for temperature and pressure measurement
* is the sum of both values.
*... | C++ |
noo o\nĠqu itting\nmark ets\nBeh ind\nĠbas in\nĠdoc s\nan ie\nfl ash\nct l\nĠcivil ized\nĠFuk ushima\n"] ,"\nĠK S\nĠHonest ly\nar at\nĠconstruct s\nĠL ans\nĠD ire\nĠLI KE\nĠTrou ble\nĠwith holding\nĠOb livion\nĠsan ity\nany a\nCon st\nĠgro cer\nĠC elsius\nĠrecount ed\nĠW ife\nB order\nate red\nh appy\nĠspo iler\nĠlog i... | JavaScript |
<span class="math inline">\(\theta\)</span>. So the joint probability is</p>
\begin{align}
p(y_1, \dots, y_{129} \mid \theta) = \theta^{\sum_{i} y_i} (1 - \theta)^{129 -
\sum_i y_i}
\end{align}
<p>Now we need to specify our prior distribution</p>
<div id="uniform-prior" class="section level2">
<h2>Uniform prior</h2>
<... | HTML |
mach);
// 计算空气密度平方
float rhov2 = rho*speed_mps*speed_mps;
// 计算阻力
float drag_N = (cdp*rhov2) + (cdi/rhov2);
// 额外的阻力因子,用于损伤(必须与UpdateSpeed中的计算匹配)
drag_N *= (1 + damageLevel); // additional drag factor for damage (must match calc in UpdateSpeed)
// 计算推力余量
f... | C++ |
int fgetsForNetHandle( int NetHandle, char *strbuffer ) ; // fgets のネットワークハンドル版( -1:取得できず 0:取得できた )
extern int URLAnalys( const char *URL, char *HostBuf = NULL, char *PathBuf = NULL,
char *FileNameBuf = NULL, int *PortBuf = NULL ) ; // URLを解析する
extern int URLConvert( char *URL, int ParamConvert ... | C++ |
RXtRa2DkQQbrBu4w&oe=67E029FB&_nc_sid=bc0c2c 480w,https://scontent-sea1-1.cdninstagram.com/v/t51.2885-15/484827073_18069126439892836_3776157705611181271_n.jpg?stp=c65.0.587.587a_dst-jpg_e15_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi43MTh4NTg3LnNkci5mNzU3NjEuZGVmYXVsdF9pbWFnZSJ9&_nc_ht=sconte... | HTML |
ammaFunction().logValue(jumpIntensity_/beta_));
return std::exp(-x*eta_)*std::pow(x, -a) * std::pow(eta_, 1.0-a)
/ gammaValue;
}
Real ExponentialJump1dMesher::jumpSizeDistribution(Real x, Time t) const {
const Real xmin = std::min(x, 1.0e-100);
return GaussLoba... | C++ |
"año",
],
"ð ý": [
"Þórr",
"Ýmir",
"Óðinn",
"Æsir",
"Ragnarök",
"Miðgarðr",
"Ásgarðr",
"Helheim",
],
"þ æ": [
"Ægir",
"Þrúðr",
"Friðr",
"V... | Python |
row rt-r-ai-start rt-r-jc-start rt-r-gap-2"><div class="rt-Flex rt-r-display-flex rt-r-fd-row rt-r-ai-start rt-r-jc-start rt-r-gap-2"><style data-emotion="css 5vtc97">.css-5vtc97{background-color:#3faa7a;padding:1em;border-radius:15px;margin-right:1em;}</style><div class="rt-Box css-5vtc97"><style data-emotion="css 6gz... | HTML |
3245_word_w );
READ_HANDLER( K053245_r );
WRITE_HANDLER( K053245_w );
READ_HANDLER( K053244_r );
WRITE_HANDLER( K053244_w );
void K053244_bankselect(int bank); /* used by TMNT2 for ROM testing */
void K053245_sprites_draw(struct osd_bitmap *bitmap);
void K053245_mark_sprites_colors(void);
int K053247_vh_start(int gfx... | C |
# write report concerning the selection of a mask (if desired)
if self.map_write_report is True:
if self.map_mask is None:
if type(self.map_cube) is hys.SpectralLibrary:
report.add_information("No mask necessary for spectral library")
els... | Python |
).attrRaw('src');
final poster =
poster$ == null
? null
: OImage(src: poster$, headers: Headers({'Referer': baseUrl}));
return EigaEpisodes(
episodes: episodes,
image: image,
poster: poster,
schedule: nextScheduleDateTime,
);
}
@override
getSou... | Dart |
eparators! */
*len = (int32_t)(temp - buf->currentPos);
savePos = buf->currentPos;
buf->currentPos = temp;
return savePos;
}
}
}else{
/* we know that all input is read into the internal
* buffer so we can safely return point... | C++ |
; Generated with ikazuchi 1.0 by riidefi
; Object File: TicoDemoGetPower
; Segments:
; .text: 0x8028ec24 -> 0x8028f008
; .data: 0x805b47b0 -> 0x805b49b8 (805b493c -> 805b49b8 (size 0124/0x007c) is greedily claimed anonymous data)
; .sbss: 0x806b6090 -> 0x806b6098
; Symbols Defined
; 8028... | Assembly |
sting
- **Docker Best Practices**: Mga gabay sa container security at optimization
- **Kubernetes Deployment**: Mga pattern ng orchestration para sa production scaling
### Mga Resources sa Pag-aaral
- **SLM Performance Benchmarking**: Mga metodolohiya sa comparative analysis
- **Edge AI Deployment**: Mga pinakamahusay... | Markdown |
0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets.
const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0;
const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x;
const float max_x... | C++ |
}
@media (-moz-pref("neo-features-bottom-height", 13)) {
--Neo-Bottom-Height: 380px;
}
@media (-moz-pref("neo-features-bottom-height", 14)) {
--Neo-Bottom-Height: 400px;
}
@media (-moz-pref("neo-features-bottom-height", 15)) {
--Neo-Bottom-Height: 420px;
}
@media (-moz-pref("neo-features... | CSS |
想到的方法就是新建一个项目,然后把 util.jar;annotations.jar;util_rt.jar;util-8.jar 这四个包加入到项目的依赖,这样,在项目中新建一个 CrackIdea.java ,在里面修改代码,则会有提示。
一开始,我解决了前两个缺少的问题,第三个问题按照 “获取 JDialog 中所有的 JButton 按钮” 通过搜索大概写了一下。但发现并不能起到作用。这时正好发现帖子有人回复做出了 “成品”,他是和帖子一样修改 com/jetbrains/ls/responses/License.class 类的,因此他提供修改的是 product-client.jar 文件。但我把这个 jar 文件放到... | Markdown |
scription, nest: description);
}
// Insert a "category" type question using the description as the category name
if (description != null) {
builder.element(XmlConsts.question,
attributes: {XmlConsts.type: 'category'}, nest: () {
builder.element(XmlConsts.category, nest: ... | Dart |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Record.h"
struct record {
char flightNumber[MAX_FLIGHT_NUMBER + 1];
char departureAirport[MAX_AIRPORT_NAME + 1];
char arrivalAirport[MAX_AIRPORT_NAME + 1];
int departureDay; // 0 for Monday, ... , 6 for Sunday
int departureHo... | C |
from './FontCommon';
import { Graphic, GraphicOptions } from './Graphic';
import { Sprite } from './Sprite';
import { SpriteSheet } from './SpriteSheet';
export interface SpriteFontOptions {
/**
* Alphabet string in spritsheet order (default is row column order)
* example: 'abcdefghijklmnopqrstuvwxyz'
*/
... | Typescript |
this.loadingObservable$.asObservable();
untilcompletedLoading<T>($obs : Observable<T>) : Observable<T>{
return of(null)
.pipe(
tap(()=> this.loadingOn()),
concatMap(()=> $obs),
finalize(()=> this.loadingOff())
);
}
loading... | Typescript |
la-2018-10-23T19:16:00.000Z"></span></span></h2><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-timestampLabel'>(discussiontools-topicheader-latestcomment: <a href="#c-Stok-20... | HTML |
.map_err(|e| Error::CannotDeserializeUserSettings(e.to_string()))?;
let user = devand_core::User {
id: devand_core::UserId(self.id),
username: self.username,
email: self.email,
email_verified: self.email_verified,
visible_name: self.visible_name,
... | Rust |
nRF52840 PDK
- A PC running either Windows, Linux, or Mac OS-X
- 1x micro USB cable
- [Segger Embedded Studio](https://www.segger.com/products/development-tools/embedded-studio/)
- The latest version of the [J-Link Software and Documentation pack](https://www.segger.com/downloads/jlink#)
- [nRF5_SDK_v15.2.0](http://de... | Markdown |
入 Cube, 点击** Cube OpenGL ES 2.0 example**。

* 在弹出的窗口中,根据情况,选择 **Keep Project and Open **或 **Copy Project and Open**。

* 点击 **Configure Project** 进入工程。

* 点击如下图标尝试运行程序。

* 运行成功, 下面进行交叉编译。
 1991 Linus Torvalds
*/
/*
* When in kernel-mode, we cannot use printf, as fs is liable to
* point to 'interesting' things. Make a printf with fs-saving, and
* all is well.
*/
/*
* 当处于内核模式时,我们不能使用printf,因为寄存器fs指向其他不感兴趣的地方.自己编制一个printf并在使用前保存fs,一切就解决了.
*/
// 标准参数头文件.以宏的形式定... | C |
ly cobra will not render usage if the command is not runnable or has
// no subcommands, specify our own help template to override that.
command.SetHelpTemplate(`{{with (or .Long .Short)}}{{. | trimRightSpace}}
{{end}}{{.UsageString}}`)
originalUsageFunc := command.UsageFunc()
command.SetUsageFunc(func(cmd *cobra.... | Go |
# dump_link.py - dumps information about shell shortcuts
#
import glob
import os
import sys
import pythoncom
from win32com.shell import shell, shellcon
from win32com.storagecon import *
def DumpLink(fname):
shellLink = pythoncom.CoCreateInstance(
shell.CLSID_ShellLink,
None,
pythoncom.CLS... | Python |
und:url(../images/bg-btn-signup_gold.png) repeat-x scroll 0 -5px #FA2;}.home_page_new_home_page #profiletext{float:none;}.home_page_new_home_page #profilebox{background-color:#fff;border:none;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#666;font:15px/20px "Helvetica Neue",Arial,Sans-serif;m... | CSS |
wMilliseconds = (ushort)time.Millisecond;
}
/// <summary>
/// Convert to System.DateTime
/// </summary>
/// <returns></returns>
internal DateTime ToDateTime()
{
return new DateTime(wYear, wMonth, wDay, wHour, wMinute, wSecond, wMilliseconds);
... | C# |
(vector<float> &SmoothPoints,
const vector<int> &DiscretePoints) {
vector<int>::const_iterator ipt = DiscretePoints.begin();
vector<float>::iterator ismooth = SmoothPoints.begin();
if (SmoothPoints.size() != DiscretePoints.size()) {
cout << "ERROR: Input and output vector sizes do not match"... | C++ |
IFNULL(?16,'') !='',f_category_path like concat('%', ?16, '%'),1=1) "
+ " and if(IFNULL(?7,'') !='',f_category_path like concat('%', ?7, '%'),1=1)"
+ " and if(IFNULL(?4,'') !='',substring(substring_index(f_category_from,'_',1),3,10)>=?4,1=1) "
+ " and if(IFNULL(?5,'') !='',substring(... | Java |
után álló szakaszazonosítóval (például <code>"http://developer.yahoo.com/yui/#cheatsheets"</code>).</li>
</ul>
<p>Bármelyik megoldás ezek közül egy hivatkozást fog készíteni, amelyik valahová máshová mutat. Másrészről az <code>id</code> attribútum csak egy kapcsot hoz létre a lapon — erre tudnak aztán más h... | HTML |
bsr.b .scope
lea scopeData+scope_ch4(a5),a3
move.l s_draw1(a4),a0
; bsr .scope
; rts
.scope
bsr getScopeChannelData
bne.b .jolt
rts
.jolt
move.l d0,a1 * start
move.l d1,a6 * loopstart
moveq #0,d5
move d2,d5 * len
moveq #0,d4
move d3,d4 * replen
move ns_tempvol(a3),d1
mulu mainvolume(a5),d1
lsr #6... | Assembly |
{
display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
}
/* resizable */
.fc-event-vert .ui-resizable-s {
bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
width: 100% !important;
height: 8px !important;
overflow: hidden !important;
line-h... | CSS |
:thumb
push {r3,r4,lr}
add sp, #-0x4
ldr r1, [pc, #0x1c] @ 0x2248978, (=0xf0f)
mov r4, r0
str r1, [sp, #0x0]
ldr r1, [r4, #0x30]
mov r2, #0x1a
mov r3, #0x1
bl Function_2249714
mov r0, r4
mov r1, #0x22
mov r2, #0xa
bl Function_2247ae8
mov r0, #0x0
a... | Assembly |
kError = Tle5012Sensor.setCalibration(Tle5012Sensor.mode1);
//checkError = Tle5012Sensor.setCalibration(Tle5012Sensor.mode2);
//checkError = Tle5012Sensor.setCalibration(Tle5012Sensor.mode3);
// read all registers
checkError = Tle5012Sensor.readRegMap();
// printout register binary values and sensor identity
sho... | C++ |
bufptr = va_arg(ap, char*);
if (bufptr == NULL) {
bufptr = "(nil)";
}
field_width -= (int)strlen(bufptr);
if (!flush_left) {
while (field_width-- > 0) {
... | C |
1B:1b(){V.n7={"[7L 3g]":1,"[7L Lc]":1,"[7L 9j]":1,"[7L d8]":1,"[7L Lb]":1}},2A:1b(f){Z c=V.n7;if(1P f=="7L"&&f!==1d){Z b=f;if(f 2a 4d){b=[];1i(Z e=0,a=f.1g;e<a;e++){b[e]=V.2A(f[e])}}1f{if(!c[3U.1u.2c.4q(f)]){b={};1i(Z d in f){if(f.eN(d)){b[d]=V.2A(f[d])}}}}1c b}1c f},yE:1b(e,d,c,b){Z a=V.n7;if(d.eN(c)){if(1P e[c]=="7L"... | JavaScript |
)} />
<Grid container margin={3.35} spacing={{ xs: 2, md: 2 }} columns={{ xs: 4, sm: 8, md: 12 }}
>
<Grid item md={12}>
<img src={perfil2} alt="Person" class="card__image_player_update_create"></img>
</Grid>
<Grid item md={12} >
<Box
component="form"
sx... | JavaScript |
; }
</pre>
<p>and the following markup:</p>
<pre><date>平成<span>20</span>年4月<span>16</span>日に</date>
</pre>
<p>In Japanese, this effect is known as <i data-lt lang="ja">tate-chu-yoko</i>.
</p>
</div>
<p class="note" role="note">
Future levels of CSS Writing Modes will introduce valu... | HTML |
nice_foo, &MockFoo::Delete));
CaptureStdout();
nice_foo->DoThis();
EXPECT_EQ("", GetCapturedStdout());
}
// Tests that a nice mock generates informational logs for
// uninteresting calls.
TEST(NiceMockTest, InfoForUninterestingCall) {
NiceMock<MockFoo> nice_foo;
const std::string saved_flag = GMOCK_FLAG_GE... | C++ |
{ return a + b; }) is dynamic => captured!(a = b),
[String a, String b] when (captured = (x) { return a + b; }) is dynamic => captured!(a = b),
_ => null
};
test3(dynamic x) {
switch (x) {
case [int a, int b] when (captured = (x) { return a + b; }) is dynamic:
return captured!(a = b);
case [... | Dart |
return sum;
}
public static int Add(this int augend, int addend)
{
int sum = augend + addend;
return sum;
}
public static long Add(this int augend, long addend)
{
long sum = augend + addend;
return sum;
}
public static long Add(this long augend, short addend)
{
long sum = a... | C# |
--[[
AdiBags - Adirelle's bag addon.
Copyright 2010-2021 Adirelle (adirelle@gmail.com)
All rights reserved.
This file is part of AdiBags.
AdiBags is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | Lua |
45.6, 307.0, 838.0, 307.0, 838.0, 312.62964, 743.0, 383.0, 743.7273, 384.0, 764.5, 384.0, 849.55, 321.0, 857.0, 321.0, 857.0, 307.0, 853.9091, 307.0, 851.0, 303.0" coords2="851.0, 303.0, 845.6, 307.0, 838.0, 307.0, 838.0, 312.62964, 743.0, 383.0, 743.7273, 384.0, 764.5, 384.0, 849.55, 321.0, 857.0, 321.0, 857.0, 307.0,... | HTML |
MajorTensorOpMultiplicandCrosswise.html#ac0f9fe7e728edb0eff201fd1c356db4a">PartitionCount</a> = <span class="keyword">typename</span> <a class="code" href="structcutlass_1_1layout_1_1TensorOpMultiplicandCrosswise.html#a3ff5e9dcf1e98e074b40a2e06fa56df0">Base::PartitionCount</a>;</div><div class="line"><a name="l00872"><... | HTML |
g, SpiceDouble *stddev, SpiceInt *shortest,
SpiceInt *longest);
void wnunid_c(SpiceCell *a, SpiceCell *b, SpiceCell *c);
void wnvald_c(SpiceInt size, SpiceInt n, SpiceCell *window);
void xf2eul_c(ConstSpiceDouble xform[6][6], SpiceInt axisa, SpiceInt axisb, SpiceInt axisc, SpiceDouble eulang[6],
... | C |
["O"] = "Доставьте боеприпасы Хегнару Громострелу в Дун Мороге.",
["T"] = "Боеприпасы для Громострела",
},
[5544] = {
["D"] = "$R, у меня еда на исходе. Мне стыдно признаться, но угостить тебя нечем.$B$BНе поможешь старику? Единственные твари в этих краях, которых не поразила чума, это личинки-трупоеды. Они... | Lua |
le>` HTML element with the provided CSS content.
* The content is wrapped in a `<style>` tag and rendered as-is,
* without any additional processing or escaping, as long as the rendering target supports HTML.
*
* ```css
* .css
* body {
* background-color: green !important;
* }
* ```
*
* @param conten... | Kotlin |
new HashMap<>();
fields.put("title", "hello world");
for (int i = 0; i < 100; i++) {
addDocument(String.format("doc%d", i), fields);
}
SearchResult res = client.ftSearch(index, "hello world");
assertEquals(100, res.getTotalResults());
Assert.assertEquals("OK", client.ftDropIndexDD(index... | Java |
turn;
}
// The Freeze() call unmaps the shared memory. Re-map it again as read only.
// If this fails, due to something else being mapped into the same place
// between the Freeze() and Map() call, we can just fall back to keeping our
// own copy of the UA style sheets in the parent, and still try sending t... | C++ |
name": "Rocky road token & Cortex castle 100%"},
{"name": "Rocky road token & Tiny arena 100%"},
{"name": "Rocky road token & Sewer speedway 100%"},
{"name": "Rocky road token & Sewer speedway Platinum relic"},
{"name": "Rocky road token & Polar pass Gold relic"},
{"name": "Rocky road token & Papu's pyramid Token"},
{"... | JavaScript |
STOP,
SHOULDER,
BIKING,
SHARED,
SIDEWALK,
BORDER,
RESTRICTED,
PARKING,
CURB,
BIDIRECTIONAL,
MEDIAN,
SPECIAL_1,
SPECIAL_2,
SPECIAL_3,
ROAD_WORKS,
TRAM,
RAIL,
ENTRY,
EXIT,
OFF_RAMP,
ON_RAMP,
CONNECTING_RAMP,
BUS,
TAXI,
HO... | Kotlin |
2 227.3 448 221.7 448 216z"],"chess-knight":[384,512,[9822],"f441","M44 320.6l14.5 6.5c-17.01 20.24-26.44 45.91-26.44 72.35C32.06 399.7 32.12 432 32.12 432h48v-32c0-24.75 14-47.5 36.13-58.63l38.13-23.37c13.25-6.625 21.75-20.25 21.75-35.13v-58.75l-15.37 9C155.6 235.8 151.9 240.4 150.5 245.9L143 271c-2.25 7.625-8 13.88-1... | JavaScript |
ECESPRITEWIDTH,
clipWidth = PIECESPRITEWIDTH,
clipHeight = PIECESPRITEWIDTH;
ctx.drawImage(img, clipX, clipY, clipWidth, clipHeight,
xPos, yPos, cellWidth, cellWidth);
}
getCoord() {
return this._coord;
}
getDiagMoves(board: Board, forward: boolean... | Typescript |
gin?: string,
modifiedAt?: string,
token: string
sessionType: string
}
declare type SessionPreloadedState = false
declare type Session = SessionPreloadedState | ActiveSession
declare interface SessionState {
session: Session | SessionPreloadedState
}
/* Selectors */
declare interface GetSession {
getSessi... | Typescript |
0.5
}
/// Transforms a time given in `hh:mm::ss.s` in a fraction of SI day (i.e. day of 86400 seconds).
/// # Returns
/// * `day_fract` in `[0, 1[`.
/// # Example
/// ```rust
/// use moc_cli::{hms2day_fract};
/// assert_eq!(hms2day_fract(12, 0, 0.0), 0.5);
/// ```
pub fn hms2day_fract(hours: u8, minutes: u8, seconds:... | Rust |
t.theta;
PathPoint p1, p2, p3, p4;
p1.x = front_d;
p1.y = width / 2;
p2.x = front_d;
p2.y = -width / 2;
p3.x = -rear_d;
p3.y = -width / 2;
p4.x = -rear_d;
p4.y = width / 2;
... | C++ |
});
if (matches.length === 1) {
return matches[0];
}
const currentURL = window.location.href;
let matchedElements = aElements.filter((a) => {
if (!a.href) {
return false;
}
try {
const url = url_to_absolute(a.href);
return url === currentURL;
} cat... | JavaScript |
avoid the hardware check. How to do the final patch is a matter of taste. You can patch the initial flag set as described above and patch here, too. I prefer to patch the program at one position only, so I did not bother with the initial flag set, but changed the instructions here: CMP WORD PTR ES:[8132],00 to MOV BYTE... | HTML |
, keep the code unit of the zero digit available.
int get localeZeroCodeUnit => _localeZeroCodeUnit == null
? _localeZeroCodeUnit = localeZero.codeUnitAt(0)
: _localeZeroCodeUnit!;
String? _localeZero;
/// For performance, keep the zero digit available.
String get localeZero => _localeZero == null... | Dart |
0);background-color:rgba(0,0,0,0);font-family:inherit;font-size:inherit}.k-code{padding-block:var(--kendo-spacing-0, 0px);padding-inline:var(--kendo-spacing-1, 0.25rem)}.k-display-1{font-size:var(--kendo-display1-font-size, calc(var(--kendo-font-size, 0.875rem)*8));font-family:var(--kendo-display1-font-family, var(--ke... | CSS |
82</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1epilogue_1_1threadblock_1_1InterleavedEpilogue.html#ae1a55e7788efd641925788ac212855d6">WarpMmaOperator</a> = WarpMmaOperator_;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classcutl... | HTML |
s*** tab, disable both the ***Metal API Validation*** and ***GPU Frame Capture***
options. For optimal performance, you may also consider disabling the other simulation
and debugging options on this tab. For further information, see the
[Xcode Scheme Settings and Performance](https://developer.apple.com/librar... | Markdown |
>
<p><b>For iPhone:</b></p>
<p>Refer to <a href="https://support.okta.com/help/s/article/How-to-generate-a-HAR-capture-on-an-iOS-device?language=en_US">Okta </a>or <a href="https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.htm... | HTML |
FFFFFF; distance: 20;"></a-entity>
</a-entity>
</a-scene>
</body>
</html><!DOCTYPE html>
<html>
<head>
<title>A-Frame Examples</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
<script src="js/aframe-v1.3.0.js"></script>
<script src="js/aframe-environment-... | HTML |
须引起严重的注意。
</p>
<h3>
二、工作中存在的主要缺点错误
</h3>
<p>
省第八次公安会议以来,各地公安机关在各级党委直接领导下,在贯彻执行第六次全国公安会议决议中,对敌斗争和各项业务建设方面均有所进展,给了敌人一定打击,获得一些成绩。但仍然存在不少缺点和错误,主要是存在着严重的骄傲自满和轻敌麻痹思想,以致在对敌斗争上软弱无力,赶不上形势的发展,其主要表现是:
</p>
<p>
第一、骄傲自满首先是满足于已有成绩,对上级的决议指示,缺乏认真的研究和学习,对工作缺乏深入的钻研和具体指导,因而就不可能全面的掌握敌情,准确的执行政策。
</p>
<p>
我们一再强调,... | HTML |
wnloadTarget, .downloadProgress and .downloadDetails inside of
a vbox with class .downloadContainer. We set the font-size of the entire
container to 90% because:
1) This is the size that we want .downloadDetails to be
2) The container's width is set by localizers by &downloadDetails.width;,
which is ... | CSS |
iroColor = {1.0, 1.0, 1.0, 0.8}
function oshiroDoor.sprite(room, entity)
local rectangle = utils.rectangle(entity.x, entity.y, 32, 32)
local drawableRectangleSprites = drawableRectangle.fromRectangle("bordered", rectangle, fillColor, borderColor):getDrawableSprite()
local oshiroSprite = drawableSprite.from... | Lua |
using System;
using System.Collections.Generic;
using System.Linq;
using Mono.Cecil;
using OpenWrap.Commands;
namespace OpenWrap.PackageManagement.Exporters.Commands
{
public class CecilCommandDescriptor : ICommandDescriptor
{
public CecilCommandDescriptor(TypeDefinition typeDef, IDictionary<string, o... | C# |
tal tasks: ${tasks.totalCount}")
// Update task details
println("\nUpdating task details...")
val updateRequest = UpdateTaskRequest(
description = "Updated: Testing the Kotlin REST client implementation with Ktor",
priority = TaskPriority.MEDIUM,
tags = listO... | Kotlin |
namespace SudokuStudio.Views.Controls;
/// <summary>
/// Represents a dash array text box.
/// </summary>
public sealed partial class DashArrayTextBox : UserControl
{
/// <summary>
/// Initializes a <see cref="DashArrayTextBox"/> instance.
/// </summary>
public DashArrayTextBox() => InitializeComponent();
/// <... | C# |
from django.core import validators
from django.utils.deconstruct import deconstructible
from django.utils.translation import gettext_lazy
@deconstructible
class IndianMobileNumberValidator(validators.RegexValidator):
regex = r"^(?:\+91|91)?[789]\d{9}$"
message = gettext_lazy("Enter a valid Indian mobile numbe... | Python |
. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--deterministic --optimization_counter_threshold=1
// A phi can have Smi type but non-Smi bounds if it is dominated by a smi check
// which always deoptimizes. Test that bounds chec... | Dart |
i32 s[s_tmp+1], s[s_dtile_y], s[s_tmp+3]
s_sub_i32 s[s_tmp+1], s[s_tmp+1], s[s_tmp+2]
s_sub_i32 s[s_wei_os_diff_acc_y_rst_kx], s[s_tmp+1], s[s_tmp]
v_bfe_u32 v[v_wei_flag], v[v_wei_tmp_pack], 0, 1
s_mov_b32 s[s_move_slice_out_stride_k], 64
s_mul_i32 s[s_move_slice_wei_stride_k], 16, s[s_wei_stride_k... | Assembly |
Wird dieser Parameter nicht gesetzt, so verwendet
* <em>HBCI4Java</em> eine default-Liste von aktivierten Rewriter-Modulen (kann
* mit {@link #getParam(String)} ermittelt werden). Wird dieser Parameter
* gesetzt, so wird die default-Einstellung überschrieben. Es können mehrere zu
* durchlaufende Rewriter-Module an... | Java |
zmm0, zmm16
# Check whether full or partial store.
cmp rsi, 16
jl .Ltail
vmovups [r10], zmm5
vmovups [r13], zmm12
vmovups [rbx], zmm14
vmovups [rbp], zmm15
vmovups [r8], zmm16
add r10, 64
add r13, 64
add rbx, 64
add rbp, 64
add r8, 64
... | Assembly |
t> verticalLines = [];
int sampleLimitCount = 1000;
double spannedTime = 2000;
int lastResponse = 0;
bool sentZero = false;
bool notifiedEnd = false;
int maxIntensity = 0;
int? logTimeStart;
late Ticker _ticker;
@override
void dispose() {
_ticker.dispose();
super.dispose();
}
int last... | Dart |
ec4i(0xffffffff))
data.forEach {
val result = glm.mask(it.first)
glm.all(glm.equal(it.second, result)) shouldBe true
}
}
/*"bitfieldInterleave3" { TODO jvm fix https://github.com/g-truc/glm/commit/cad2c545f6123a77af0a583861ae6c91d5330e75
... | Kotlin |
#[inline]
pub fn rect(p0: Point, p1: Point) -> Self {
let top_left = Point {
x: p0.x.min(p1.x),
y: p0.y.min(p1.y),
};
let bottom_right = Point {
x: p0.x.max(p1.x),
y: p0.y.max(p1.y),
};
QueryShape::Rect {
top_... | Rust |
import tiktoken
from config import config as Config
class TokenCounter:
def __init__(self):
self.encodings = {
"deepseek": tiktoken.get_encoding("cl100k_base"), # DeepSeek использует cl100k_base как OpenAI
"moonshot": tiktoken.get_encoding("cl100k_base") # Moonshot тоже
}... | Python |
class="section level3">
<h3 id="new-features-1-1-34">NEW FEATURES<a class="anchor" aria-label="anchor" href="#new-features-1-1-34"></a></h3>
<ul><li>refit gains a newweights argument</li>
</ul></div>
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="1.1-33" id="changes-in-lme4-version-11-3... | HTML |
ER_"`
Upload TaskConfig `json:"upload" envPrefix:"UPLOAD_"`
Copy TaskConfig `json:"copy" envPrefix:"COPY_"`
Decompress TaskConfig `json:"decompress" envPrefix:"DECOMPRESS_"`
DecompressUpload TaskConfig `json:"decompress_upload" envPrefix:"DECOMPRESS_UPLOAD_"`
AllowRetryCanceled ... | Go |
gfx/b-back.png" width="71" height="44" alt=""></a><a href="javascript:window.print()"><img src="../gfx/b-print.png" width="75" height="44" alt=""></a><a style="cursor:pointer;" onclick="ToggleCPP()"><img src="../gfx/lang-c.png" width="253" height="44" alt="" id="basicCodeBlock0" border="0"></a><a style="cursor:pointer... | HTML |
from typing import Callable, Any, List
from .request import Request
from .response import Response
SERVER_HOST = "localhost"
SERVER_PORT = 8000
class Middleware:
def __init__(self, app: Any):
self.app = app
self.middleware_stack: List[Callable] = []
def add_middleware(self, middlew... | Python |
# Copyright 2013 Google, Inc. All Rights Reserved.
#
# Google Author(s): Matt Fontaine
from . import E_B_L_C_
class table_C_B_L_C_(E_B_L_C_.table_E_B_L_C_):
dependencies = ["CBDT"]
| Python |
1;
if b < 0x80 {
return (r, i);
}
}
panic!("Invalid varint");
} else {
decode_u64_slow(buf)
}
}
pub fn decode_u32(buf: &[u8]) -> (u32, usize) {
let (val, bytes_consumed) = decode_u64(buf);
assert!(val < u32::MAX as u64, "varint is not a u... | Rust |
import torch
import tqdm
from pytorch_grad_cam.base_cam import BaseCAM
class ScoreCAM(BaseCAM):
def __init__(
self,
model,
target_layers,
reshape_transform=None):
super(ScoreCAM, self).__init__(model,
target_layers,
... | Python |
.collect::<Vec<String>>();
categories = categories
.into_iter()
.filter(|c| vals.contains(c.get_name()))
.collect();
}
categories.sort();
for category in &categories {
print_category(category, size_enabled);
}
}
pub fn show_subcommand(mut hupas: Vec<H... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.