content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
#!/usr/bin/env python3
import json
from PIL import Image, ImageDraw, ImageFont
def hex_rgb(hex):
hex = hex.lstrip("#")
return tuple(int(hex[i : i + 2], 16) for i in (0, 2, 4))
def relative_luminance(rgb):
def channel_lum(c):
c = c / 255.0
return c / 12.92 if c <= 0.03928 else ((c + 0.05... | Python |
searchParam: "enable-actions",
matches: [
makeSearchMatch(`${alias} mozzarella mozilla`, {
engineName: `Aliased${alias.toUpperCase()}MozSearch`,
searchQuery: "mozzarella mozilla",
alias,
heuristic: true,
}),
],
});
// When a restriction token ... | JavaScript |
acl::string out;
const char *ptr, *end;
#if 1
const char *text =
"ջ <xuganghui> changed: \r\n"
"What |Removed |Added\r\n"
"-------------------------------------\r\n"
"Status|NEW |ASSIGNED\r\n"
"AssignedTo|xuganghui |zhengshuxin\r\n";
#else
const char *text = "ȱ 41... | C++ |
75em;
}
&.swal2-error {
border-color: $swal2-error;
.swal2-x-mark {
position: relative;
flex-grow: 1;
}
[class^='swal2-x-mark-line'] {
display: block;
position: absolute;
top: 2.3125em;
width: 2.9375em;
height: .3125em;
border-radius: .125em;
... | CSS |
erriAI/litellm/pull/12612)
---
## Management Endpoints / UI
#### Features
- **Keys**
- Regenerate Key State Management improvements - [PR #12729](https://github.com/BerriAI/litellm/pull/12729)
- **Models**
- Wildcard model filter support - [PR #12597](https://github.com/BerriAI/litellm/pull/12597)
- Fixe... | Markdown |
/// assert_eq!(expect, buf);
/// ```
///
pub fn parse_real_row(s: &str, buf: &mut Vec<f64>)
-> Result<usize, ReadError>
{
let mut tmp = String::new();
parse_real_row_buf(s, buf, &mut tmp)
}
/// Parse real list with using a scratch buffer
pub fn parse_real_row_buf(mut s: &str, buf: &mut Vec<f64>, tmp: &mut... | Rust |
ight. Lying on her side she opened her eyes to see digital numbers in the dark, 4:12 in pale green. Behind her Harry continued to move, settling in. She watched the numbers change to 4:13.",
book: "Get Shorty",
author: "Elmore Leonard",
},
],
"04:13": [
{
timeFragment: "4:13",
quote:... | Typescript |
$ swanky COMMAND
...
```
<!-- usagestop -->
<!-- commands -->
* [`swanky account balance [ALIAS]`](#swanky-account-balance-alias)
* [`swanky account create`](#swanky-account-create)
* [`swanky account default [ACCOUNTALIAS]`](#swanky-account-default-accountalias)
* [`swanky account faucet ALIAS`](#swanky-account-fau... | Markdown |
radioButton_5.setChecked(True)
afficherPoint=1 # affiche le point central du cercle
self.checkBox_1.setChecked(True)
colorer=1 # colorer suivant l'axe 1=Ok 0=Couleur courante uniquement Orthogonal !
self.checkBox_2.setChecked(True)
#_______________________________________________... | Markdown |
:= semver.NewVersion(clientVersionString)
if err != nil {
return false, err
}
return clientVersion.LessThan(latestReleaseBuild.Version), nil
}
var (
dateRegex = lazyregexp.New("_([0-9]{4}-[0-9]{2}-[0-9]{2})_")
timeNow = time.Now
)
// canUpdateDate returns true if clientVersionString contains a date
// more ... | Go |
and
* limitations under the License.
*/
//! Implementation of `record` function.
use crate as starlark;
use crate::{
collections::SmallMap,
environment::GlobalsBuilder,
values::{
record::{Field, RecordType},
Value,
},
};
use gazebo::prelude::*;
#[starlark_module]
pub fn global(build... | Rust |
{s: "2021-01-02 16:39:17.123456 +0000 UTC m=+0.000000001", w: ref.Truncate(time.Microsecond)},
{s: "2021-01-02 16:39:17Z", w: ref.Truncate(time.Second)},
{s: "2021-01-02 16:39:17+00:00", w: ref.Truncate(time.Second)},
{s: "2021-01-02T16:39:17.123456+00:00", w: ref.Truncate(time.Microsecond)},
{s: "2021-01-02 ... | Go |
slw r3, r3, r6 ! clear fraction in high word
! fall through
1: stw r3, 0(sp)
stw r4, 4(sp)
lfd f2, 0(sp) ! integer = high word, low word
fsub f1, f1, f2 ! fraction = value - integer
2: stfd f1, 8(sp) ! push fraction
stfd f2, 0(sp) ! push integer
blr
! f1 is a fraction without integer (or zero).
! Th... | Assembly |
import os
import sys
here = os.path.dirname(__file__)
ext_files = ["src/mmapbitarray.c",
"src/bloomfilter.c",
"src/md5.c",
"src/primetester.c",
"src/MurmurHash3.c",
]
kwargs = {}
try:
if '--no-cython' in sys.argv:
raise ImportError()
i... | Python |
.MapInitIconType (iconType, drawMode)
local map = Nx.Map:GetMap (1)
map:InitIconType (iconType, drawMode)
end
function Nx.MapAddIconPoint (iconType, mapName, x, y, texture, level)
local map = Nx.Map:GetMap (1)
local mapId = Nx.MapNameToId[mapName]
if mapId then
local wx, wy = map:GetWorldPos (mapId, x, y)
... | Lua |
import Brick11_unit1 as U1
print(U1.__doc__)
print(U1.f.__doc__)
a = 2
b = U1.f(a)
print(f"{a=} {b=}") | Python |
_point_wait_list"],
CommandBarrierWithWaitListKHR["sync_point"],
CommandBarrierWithWaitListKHR["mutable_handle"]
)
IgnoreMissing..cl_int(
"CommandSVMMemFillKHR",
cl_command_buffer_khr("command_buffer"),
cl_command_queue("command_queue"),
nullable..NullTerminated... | Kotlin |
import configparser
import pandas as pd
import math
def profitAndLossChanges():
config = configparser.ConfigParser()
config.read('config.ini', encoding='GB18030')
pred_data = pd.read_csv(config.get('config', 'filename'))
actual_data = pd.read_csv("6m.csv")
date = pred_data["Unnamed: 0"].values
... | Python |
_MZONE)
e2:SetCode(EFFECT_CANNOT_SSET)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(0,1)
e2:SetCondition(s.condition2)
e2:SetTarget(function(_,c) return c:IsLocation(LOCATION_HAND) end)
c:RegisterEffect(e2)
c:AddSideMaximumHandler(e2)
end
s.MaximumSide="Right"
function s.condition(e)
return not D... | Lua |
----------
Opb1fb:
str r5,[r7,#0x5c] ;@ Save Cycles
;@ EaCalc : Get '($33,pc,d3.w*2)' into r0:
ldr r0,[r7,#0x60] ;@ Get Memory base
ldrh r3,[r4] ;@ Get extension word
sub r0,r4,r0 ;@ r0=PC
add r4,r4,#2
mov r2,r3,lsr #10
tst r3,#0x0800 ;@ Is Rn Word or Long
and r2,r2,#0x3c ;@ r2=Index of Rn
ldreqsh r... | Assembly |
ng-dushiyanqing_1", null,
"第1018章 妻儿满堂", "dushifengshenbang-dushiyanqing_1017", null,
1017
)
chapters(
"shisiruguiweijunzi-pingceng", "第1章 死后立马就能变大佬", "shisiruguiweijunzi-pingceng_1", null,
"第164章 人在家中坐,义父天上来(求月票)", "shisiruguiweijunzi-pingceng_404", null,... | Kotlin |
{
return "Slot{originX=" + this.originX + ", originY=" + this.originY + ", width=" + this.width + ", height=" + this.height + ", texture=" + this.holder + ", subSlots=" + this.subSlots + '}';
}
}
}
package net.minecraft.client.renderer.entity;
import net.minecraft.client.model.ModelBase;
im... | Java |
"רגיל"]}},8029:e=>{e.exports={en:["ETH"],he_IL:["ETH"]}},34647:e=>{e.exports={en:["Electronic trading hours"],he_IL:["שעות מסחר אלקטרוניות"]}},36862:e=>{e.exports={en:["Extended trading hours"],he_IL:["שעות מסחר מורחבות"]}},7807:e=>{e.exports={en:["POST"],he_IL:["מאוחר"]}},46273:e=>{e.exports={en:["PRE"],he_IL:["טרום"]... | JavaScript |
}
pipelineRepositoryService.getPipelineInfo(projectId, pipelineId) ?: return
val resource =
pipelineRepositoryService.getPipelineResourceVersion(projectId, pipelineId, version) ?: return
val model = resource.model
val variables = mutableMapOf<String, String>()
v... | Kotlin |
.arm
Function_20b2fb4: @ 20b2fb4 :arm
stmfd sp!, {r3,lr}
cmp r0, #0x0
ldrne r3, [r0, #0x8]
cmpne r3, #0x0
addne lr, r0, r3
moveq lr, #0x0
cmp lr, #0x0
beq branch_20b3014
adds r12, lr, #0x4
beq branch_20b3000
ldrb r0, [lr, #0x5]
cmp r1, r0
bhs branch_20b3000
ldrh ... | Assembly |
>::build();
let socket = UdpManager::bind(pool.deref().deref().clone(), config.local_ip).unwrap();
let peer = socket.connect(UdpConnectionConfig::unbounded(config.remote_ip));
commands.insert_resource(socket);
for player_number in 0..2 {
if player_number == config.local_player_number {
... | Rust |
MTC0 k1, CP0_DESAVE
/* Check for SDBBP */
MFC0 k1, CP0_DEBUG
sll k1, k1, 30
bgez k1, ejtag_return
nop
SAVE_SOME
SAVE_AT
SAVE_TEMP
SAVE_STATIC
PTR_LA t9, do_ejtag_debug
jalr t9
move a0, sp
RESTORE_TEMP
RESTORE_STATIC
RESTORE_AT
RESTORE_SOME
RESTORE_SP
ejtag_return:
MFC0 k1, CP0_DESAVE
deret
.s... | Assembly |
StartOfEpochValidatorsInfoCalled: func(epoch uint32) ([]*state.ShardValidatorInfo, error) {
return nil, expectedErr
},
}
nf, _ := NewNodeFacade(arg)
res, err := nf.GetInternalStartOfEpochValidatorsInfo(0)
require.Nil(t, res)
require.Equal(t, expectedErr, err)
})
t.Run("should work", func(t *testing... | Go |
queueIndex"))
{
try
{
int queueIndex = int.Parse(n.GetValue("queueIndex"));
// try to find the command to cancel
this.CancelCmdGuid = computer.QueuedCommands.ElementAt(queueIndex).CmdGuid;
... | C# |
:lang(az) .m-sm-2,body:lang(dv) .m-sm-2,body:lang(he) .m-sm-2,body:lang(ku) .m-sm-2,body:lang(ur) .m-sm-2{margin:.5rem!important}body:lang(fa) .mt-sm-2,body:lang(fa) .my-sm-2,body:lang(ar) .mt-sm-2,body:lang(ar) .my-sm-2,body:lang(az) .mt-sm-2,body:lang(az) .my-sm-2,body:lang(dv) .mt-sm-2,body:lang(dv) .my-sm-2,body:la... | CSS |
import time
from RkSDK import RkSDK
from RkSDK import Rk初始化软件入参类
from RkSDK import Rk通讯加密方式枚举类
from RkSDK import Rk禁用还是删除枚举类
from RkSDK import Rk结果心跳失败类
global rksdk
rksdk = RkSDK()
rk初始化软件入参 = Rk初始化软件入参类()
def 接收心跳失败的函数(rk结果心跳失败: Rk结果心跳失败类):
print("错误编码:" + str(rk结果心跳失败.错误编码))
print("错误消息:" + rk结果心跳失败.错误消息)
... | Python |
using System;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using GitHub.Commands;
using GitHub.Services;
using GitHub.Services.Vssdk.Commands;
namespace GitHub.VisualStudio.Commands
{
/// <summary>
/// Opens the login dialog to add a new connection to Team Explorer.
/// </summary... | C# |
2.39 15.59,2.9L16,7H8M12,3H11V4H10V5H11V6H12V5H13V4H12V3Z"
Dog IconData = "M18,4C16.29,4 15.25,4.33 14.65,4.61C13.88,4.23 13,4 12,4C11,4 10.12,4.23 9.35,4.61C8.75,4.33 7.71,4 6,4C3,4 1,12 1,14C1,14.83 2.32,15.59 4.14,15.9C4.78,18.14 7.8,19.85 11.5,20V15.72C10.91,15.35 10,14.68 10,14C... | Go |
ponse => {
total = response.data?.data?.total || 0;
return response.data?.data?.results || [];
});
resultArr.push(...result);
}
return resultArr.map(currItem => {
const id = currItem.id;
const name = currItem.name;
const description = currItem.description;
... | Typescript |
{ setParams(Person(1, "Joe", "Bloggs", 111)).excluding(id) }
}
q.build<SqliteDialect>().runOn(ctx) shouldBe 1
ctx.people() shouldBe listOf(joe)
}
@Test
fun `insert with returning keys`() = runBlocking {
val q = capture {
insert<Person> { set(firstName to "Joe", lastName to "Bloggs", age to... | Kotlin |
impl fmt::Debug for ObjectIdentifier {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "ObjectIdentifier({})", self)
}
}
impl fmt::Display for ObjectIdentifier {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let len = self.arcs().count();
for (i, a... | Rust |
,r10,r11,r12,lr}
tst lr,#1
moveq pc,lr @ be binary compatible with V4, yet
.word 0xe12fff1e @ interoperable with Thumb ISA:-)
#endif
.size cryptogams_sha1_block_data_order,.-cryptogams_sha1_block_data_order
.align 5
.LK_00_19:.word 0x5a827999
.LK_20_39:.word 0x6ed9eba1
.LK_40_59:.word 0x8f1bbcdc
.LK_60_79:.word ... | Assembly |
的render方法
Widget buildCusMarkdown(String text) =>
CusMarkdownRenderer.instance.render(text);
import 'dart:async';
import 'dart:io';
import 'package:audio_waveforms/audio_waveforms.dart';
import 'package:flutter/material.dart';
import 'package:permission_handler/permission_handler.dart';
import '../../../constants... | Dart |
your email is used to identify yourself when making requests to the SEC API, which is required for accessing EDGAR data.
- **Customizing Analysis**
You can modify the tickers you want to analyze by editing the `ticker_list.txt` file. Each ticker should be placed on a new line. Only those tickers will be included ... | Markdown |
%w", err)
}
ctx := context.Background()
// Use low-level raw request helper
respBody, err := vapiClient.DoRawJSON(ctx, "PATCH", fmt.Sprintf("/assistants/%s", assistantID), payloadBytes)
if err != nil {
return fmt.Errorf("failed to update assistant: %w", err)
}
fmt.Println("✅ Assistant updated succe... | Go |
if value != "61 62 63 64 65 66 67 68" {
t.Fatalf("Format not correct for bytes: [%s]", value)
}
}
func TestValueContext_Format__Ascii(t *testing.T) {
unitCount := uint32(8)
rawValueOffset := []byte{0, 0, 0, 4}
valueOffset := uint32(4)
data := []byte{'a', 'b', 'c', 'd', 'e', 'f', 'g', 0}
addressableData := [... | Go |
2,
},
},
units = {
"content/fx/units/weapons/lasgun_metal_large_01",
},
},
[hit_types.penetration_exit] = {
extents = {
min = {
x = 0.2,
y = 0.2,
},
max = {
x = 0.2,
y = 0.2,
},
},
units = {
"content/fx/units/weapons/lasgun_metal_large_01",
},
}... | Lua |
র। আর আল্লাহ যদি ইচ্ছা করতেন, তাহলে তারা পরস্পর লড়াই করতো, কিন্তু আল্লাহ তাই করেন, যা তিনি ইচ্ছা করেন।"
},
{
"surah_number": 2,
"verse_number": 254,
"content":
"হে ঈমানদারগণ! আমি তোমাদেরকে যে রুযী দিয়েছি, সেদিন আসার পূর্বেই তোমরা তা থেকে ব্যয় কর, যাতে না আছে বেচা-কেনা, না আছে সুপারিশ কিংবা বন... | Dart |
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Ralph Campbell.
*
* %sccs.include.redist.c%
*
* @(#)fp.s 8.1 (Berkeley) 06/10/93
*/
/*
* Standard header stuff.
*/
#include <machine/regdef... | Assembly |
_SEH) && !defined(CATCH_CONFIG_WINDOWS_SEH) && !defined(CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH)
# define CATCH_CONFIG_WINDOWS_SEH
#endif
// This is set by default, because we assume that unix compilers are posix-signal-compatible by default.
#if defined(CATCH_INTERNAL_CONFIG_POSIX_SIGNALS) && !defined(CATCH_INTERNAL_CO... | C++ |
.
*/
public class FavoritesNotificationScheduler implements Favorites.Listener {
private Context context;
public FavoritesNotificationScheduler(Context context) {
this.context = context;
}
/**
* Creates a PendingIntent to be sent when the alarm for this talk goes off.
*/
private PendingIntent get... | Java |
//===--------- Definition of the MemProfiler class --------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C |
/*
The MIT License (MIT)
Copyright (c) 2015-2019 Douglas J. Bakkum, Shift Cryptosecurity
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
t... | C |
non é válido.. O valor debe estar entre %.1f e %.0f.",
"Unique identifier of the signed document" : "Identificador único do documento asinado",
"Name of the certificate issuer used for the signature." : "Nome do emisor do certificado utilizado para a sinatura.",
"Date when the signer sent the request to si... | JavaScript |
“我所有的努力,我所有的追索......必须有意义。”
“至少,这比成为一个昏聩的痴呆老人......要好得多。”
“超越者踏上她的旅程,我想......她不在意,自己的长路跟上了个......胆小的搭车客。”
“至少,我参与其中......”
“赫默,看啊——”
## 战斗表现
根据现有剧情描述,帕尔维斯是一位科学家和莱茵生命的主任,其主要活动范围在实验室和莱茵生命总部。文本中没有提及帕尔维斯具有任何战斗能力或参与过战斗的情节。他的影响主要体现在科研、人际关系和对莱茵内部事务的洞察与操纵上。
## 相关活动
- **[职场新人](../stories/story_silent_set_1.md)**:作为赫默的导师和上级,肯... | Markdown |
ng a lookup/index join with a large number
// of left rows, that are batched and reuse the same iterator, and which can
// have good locality of access. This results in the successive bounds being
// in the same file.
func BenchmarkMergingIterSeqSeekGEWithBounds(b *testing.B) {
const blockSize = 32 << 10
restartInte... | Go |
private void DrawHeader(Rect r)
{
String headertext = "Quat Compress";
EditorGUI.indentLevel = 0;
if (target.showEnableToggle) // target.axis != Axis.AlwaysOn)
{
bool enabled = EditorGUI.Toggle(new Rect(ir.xMin + PADDING, line, 32, LINEHEIGHT), GUIContent.none, target.Enabled);
if (target.Enabl... | C# |
ull]
[SuppressMessage("ReSharper", "StringLiteralTypo")]
private readonly Dictionary<string, string> _bonePathMapMmd = new Dictionary<string, string> {
[""] = "操作中心",
// We can't keep this; they will cause compatibility issues when we manually fix the master and center bones.
... | C# |
-- @staticfct ruled.notifications.add_rule_source
function module.add_rule_source(name, cb, ...)
return nrules:add_matching_function(name, cb, ...)
end
-- Allow to clear the rules for testing purpose only.
-- Because multiple modules might set their rules, it is a bad idea to let
-- them be purged under their fee... | Lua |
3163715853577792682171512256175572576556222994111693720356524.5634327"),
qd!(-140).cosh();
);
test_all_exact!(
cosh_zero:
Quad::ONE,
Quad::ZERO.cosh();
cosh_neg_zero:
Quad::ONE,
Quad::NEG_ZERO.cosh();
cosh_inf:
Quad:... | Rust |
llification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ChatModel(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
/// ```dart
/// ChatModel(...).copyWith(id: 12, name: "My name")
/// ````
Ch... | Dart |
on = System.Windows.Forms.FormStartPosition.CenterParent;
this._tableLayout.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void InitUI() {
_fontSizeList.Items.Add("6");
_fontSizeList.Items.Add("8");
_fontSizeList... | C# |
#!/usr/bin/env python3
# Copyright 2021, Collabora, Ltd.
# SPDX-License-Identifier: Apache-2.0
# import xml.etree.ElementTree as ET
from lxml import etree as ET
from pathlib import Path
from typing import List, Tuple
_REG_FILE = Path(__file__).resolve().parent.parent / "registry" / "xr.xml"
def get_codes(cmd: ET.... | Python |
ze = 0;
}
const char * ap_error( const Arg_parser * const ap ) { return ap->error; }
int ap_arguments( const Arg_parser * const ap ) { return ap->data_size; }
int ap_code( const Arg_parser * const ap, const int i )
{
if( i < 0 || i >= ap_arguments( ap ) ) return 0;
return ap->data[i].code;
}
const char ... | C |
ne _022029E0
ldr r0, _02202A7C ; =ov00_02218600
ldr r1, _02202A74 ; =ov00_022185F0
ldr r2, _02202A78 ; =ov00_022185C4
mov r3, #0x24
bl __msl_assertion_failed
_022029E0:
cmp r6, #1
cmpne r6, #0
beq _02202A00
ldr r0, _02202A80 ; =ov00_02218618
ldr r1, _02202A74 ; =ov00_022185F0
ldr r2, _02202A78 ; =ov00_022185... | Assembly |
"Hjuii5eGVttxjAqQrPLVN3atxBDXPc4hNpXF6cPhbwzvtis",
"J9nD3s7zssCX7bion1xctAF6xcVexcpy2uwy4jTm9JL8yuK",
"EGVQCe73TpFyAZx5uKfE1222XfkT3BSKozjgcqzLBnc5eYo",
"DTLcUu92NoQw4gg6VmNgXeYQiNywDhfYMQBPYg2Y1W6AkJF",
"Gth5jQA6v9EFbpqSPgXcsvpGSrbTdWwmBADnqa36ptjs5m5",
"FcxNWVy5RESDsErjwyZmPCW6Z8Y... | Dart |
String, dynamic> json) {
return TrainingImageConfig(
trainingRepositoryAccessMode: TrainingRepositoryAccessMode.fromString(
(json['TrainingRepositoryAccessMode'] as String)),
trainingRepositoryAuthConfig: json['TrainingRepositoryAuthConfig'] != null
? TrainingRepositoryAuthConfig.fro... | Dart |
contains(scopes, child)
and ((row_ + 1 == row and col_ > col) or row_ + 1 > row)
then
return child
end
end
end
function M.next_scope(node)
local bufnr = api.nvim_get_current_buf()
local _, _, scopes = M.get(bufnr)
if not node or not scopes then
return
... | Lua |
r paramYStart = paramYStart
var paramXEnd = paramXEnd
var paramYEnd = paramYEnd
val alpha = (color shr 24 and 0xFF) / 255.0f
val red = (color shr 16 and 0xFF) / 255.0f
val green = (color shr 8 and 0xFF) / 255.0f
val blue = (color and 0xFF) / 255.0f
var z = 0f
... | Kotlin |
default; // 矩形卡片头部内边距
$-card-rectangle-content-padding: var(--wot-card-rectangle-content-padding, 16px 0) !default; // 矩形卡片内容内边距
$-card-rectangle-footer-padding: var(--wot-card-rectangle-footer-padding, 12px 0) !default; // 矩形卡片底部内边距
$-card-content-color: var(--wot-card-content-color, rgba(0, 0, 0, 0.45)) !default; // ... | CSS |
private static Assembly? TryLoadAssemblyFrom(Workspace workspace, string? path, AnalyzerReference analyzerReference)
{
// Since we are not deploying these assemblies we need to ensure the files exist.
if (path is null || !File.Exists(path))
{
return null;
... | C# |
----------------
.global CheckEnd
CheckEnd:
// exit with True if not checking syntax
lbu a0,RAM_FLAGS_OFF(gp) // A0 <- get flags
andi a0,a0,FLAG_SYNTOFF // check syntax OFF flag
bnez a0,8f // syntax OFF, program is running, exit with True
// save return address
addi sp,sp,-4
sw ra,0(sp)
// get current char... | Assembly |
row: usize, n_cols: usize) -> Self {
assert!(Self::_dims_ok(n_per_row, n_cols));
let pc = <Ft as FieldFFT>::precomp_fft(n_cols).unwrap();
assert_eq!(n_cols, 1 << pc.get_log_len());
Self {
n_per_row,
n_cols,
pc,
_p: std::marker::PhantomData:... | Rust |
();
}
var result = new byte[tileEntryCount * tileByteDepth];
var tile = new byte[tileByteDepth];
for (var i = 0; i < tileEntryCount; i++)
{
int entry = readEntry(tileDataReader);
if (entry < 0)
continue;
... | C# |
.sect .text; .sect .rom; .sect .data;
.sect .data
.define _m_a_i_n
blablabla:
.space 100
.sect .text
_m_a_i_n:
! no operands
f2xm1
fabs
fchs
fclex
fcompp
fdecstp
fdisi
feni
fincstp
finit
fld1
fldl2e
fldl2t
fldlg2
fldln2
fldpi
fldz
fnop
fpatan
fprem
fptan
frndint
fscale
fsqrt
ftst
fxam
fxt... | Assembly |
_Mosaic_SetDisplayGrids = 0x4D959A89,
NvAPI_Mosaic_ValidateDisplayGrids = 0xCF43903D,
NvAPI_OGL_ExpertModeDefaultsGet = 0xAE921F12,
NvAPI_OGL_ExpertModeDefaultsSet = 0xB47A657E,
NvAPI_OGL_ExpertModeGet = 0x22ED9516,
NvAPI_OGL_ExpertModeSet = 0x3805EF7A,
NvAPI_SetCurrentMo... | C# |
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
from odoo.fields import Domain
class ApprovalProductLine(models.Model):
_inherit = 'approval.product.line'
def _default_warehouse_id(self):
company_id = self.env.context.get('default_company_id... | Python |
@{{BLOCK(glossary_factory_cg_flattened)
@=======================================================================
@
@ glossary_factory_cg_flattened, 2568x8@4,
@ Transparent color : FF,00,FF
@ + palette 16 entries, not compressed
@ + 321 tiles lz77 compressed
@ Total size: 32 + 2808 = 2840
@
@ Time-stamp: 2024-01-17, 1... | Assembly |
IRDestinationSpec defines the desired state of HealthcareMedtechServiceFHIRDestination
type HealthcareMedtechServiceFHIRDestinationSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider HealthcareMedtechServiceFHIRDestinationParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unle... | Go |
risk.
*/
package com.google.api.services.aiplatform.v1beta1.model;
/**
* Input for groundedness metric.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
* <a href="h... | Java |
d
-- Fill in the keyvalues if we have them
if ( VTable && VTable.KeyValues ) then
for k, v in pairs( VTable.KeyValues ) do
local kLower = string.lower( k )
if ( kLower == "vehiclescript" or
kLower == "limitview" or
kLower == "vehiclelocked" or
kLower == "cargovisible" or
kLower == ... | Lua |
ter(t *testing.T) {
route1 := RouteSpec{
Route: "route",
Type: "type",
Properties: map[string]string{
"foo": "bar",
},
Filters: []FilterSpec{
{
Direction: "direction",
Type: "type",
Parameters: map[string]string{
"foo2": "bar2",
},
},
},
}
route2 := RouteSpec{
Route:... | Go |
Progress
* -----Badge
* -----Shadows
* -----Grid
* -----Data table
* -----Dialog
* -----Snackbar
* -----Tooltip
* -----Chip
*
* Even though all variables have the `!default` directive, most of them
* should not be changed as they are dependent one another. This can cause
* visual distortions (like alignment... | CSS |
prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use documentMaskDescriptor instead')
const DocumentMask$json = {
'1': 'DocumentMask',
'2': [
... | Dart |
JAL, a0, target
.insn cr C2, 0x8, a0, a1
.insn ci C1, 0x0, a0, 4
.insn ciw C0, 0x0, a1, 1
.insn css C2, 0x6, a0, 1
.insn cl C0, 0x2, a0, 1(a1)
.insn cs C0, 0x6, a0, 1(a1)
.insn ca C1, 0x23, 0x3, a0, a1
.insn cb C1, 0x6, a1, target
.insn cj C1, 0x5, target
.insn r MADD, 0, 0, a0, a1, a2, a3
.insn ... | Assembly |
i-paginator{padding:.375rem .75rem}body .ui-treetable .ui-paginator.ui-paginator-top{border-width:0 0 1px 0;border-radius:0}body .ui-treetable .ui-paginator.ui-paginator-bottom{border-width:0 0 1px 0;border-radius:0}body .ui-treetable thead th{background:#1e1e1e;color:rgba(255,255,255,.87);padding:.75rem .75rem;border:... | CSS |
\u251C',
'boxvR': '\u255E',
'boxVr': '\u255F',
'boxVR': '\u2560',
'bprime': '\u2035',
'Breve': '\u02D8',
'breve': '\u02D8',
'brvbar': '\u00A6',
'Bscr': '\u212C',
'bscr': '\uD835\uDCB7',
'bsemi': '\u204F',
'bsim': '\u223D',
'bsime': '\u22CD',
'bsol': '\u005C',
'bsolb': '\u29C5',
'bsolhsub':... | Dart |
match rng.gen_range(0..3) {
// union
0 => {
let (u, v) = rng.sample(DistinctTwo(0..n));
let orig_u = u;
let orig_v = v;
uf.union(u, v);
let u = parent[... | Rust |
from pydantic import BaseModel
class AdapterConfig(BaseModel):
dropout: float
d_model: int
down_size: int
scalar: float
layernorm_option: str # none | in | out
class AttentionConfig(BaseModel):
num_heads: int
qkv_bias: bool
attn_drop: float
proj_drop: float
class BlockConfig(B... | Python |
11; // number of points along edge (to handle nonlinear edges)
let (ksi_min, ksi_del) = (-1.0, 2.0); // all Lin shapes go from -1 to +1
let space_ndim = edge_pad.xmax.len();
let mut x = Vector::new(space_ndim);
canvas.set_face_color("None").set_line_width(3.0);
if edge_color != "" {
canvas.s... | Rust |
cmp ip, #0xff
blt _0208F598
cmp r1, #0
beq _0208F5B4
b _0208F590
_0208F444:
eor lr, r0, r1
and lr, lr, #0x80000000
cmp ip, #0
beq _0208F4C4
_0208F454:
movs r1, r1, lsl #9
bne _0208F590
b _0208F5E0
_0208F460:
movs r2, r0, lsl #9
beq _0208F494
clz r3, r2
movs r2, r2, lsl r3
rsb r3, r3, #0
mov r2, r2, lsr... | Assembly |
GObj.xData(rGObj)
lwz rStatic, 0x0(rData) # rStatic = static read-only data inside of file
load rMPad, MPad.Any
lwz rPress, MPad.xOnPress(rMPad)
# saved registers are ready to use
mtcrf MPad.crf.mDPad, rPress
bt- MPad.bDUp, _DUp
bt- MPad.bDDown, _DDown
bt- MPad.bDLeft, _DLeft
_DRight:
test_... | Assembly |
ed this.genreIds,
required this.id,
required this.originalLanguage,
required this.originalTitle,
required this.overview,
required this.popularity,
required this.posterPath,
required this.releaseDate,
required this.title,
required this.video,
... | Dart |
cablemesh1924693_hvstd',
[-1886781861] = 'cablemesh1924694_hvstd',
[-980867375] = 'cablemesh1929772_hvstd',
[-3995611] = 'cablemesh2161146_hvstd',
[1681405852] = 'cablemesh2161147_hvstd',
[285860031] = 'cablemesh2161148_hvstd',
[272578892] = 'cablemesh2161150_hvstd',
[1985308043] = 'cablemesh2161151_hvstd',
[-1... | Lua |
ResponseWriter, r *http.Request) {
// Set the custom response header
w.Header().Set("genzai-api", "1.0")
// Only allow POST requests
if r.Method != http.MethodPost {
http.Error(w, "Invalid request method", http.StatusMethodNotAllowed)
return
}
// Parse the request body
var req ScanRequest
if err := json.N... | Go |
/*
* SHA-512 hash in x86-64 assembly
*
* Copyright (c) 2017 Project Nayuki. (MIT License)
* https://www.nayuki.io/page/fast-sha2-hashes-in-x86-assembly
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to de... | Assembly |
评分信息
*
* @param count 总计评分人数
* @param score 评分
*/
@Serializable
data class Rating(
val count: Int,
val score: Float
)
/**
* 属性标志信息
*
* @param allowBp
* @param allowBpRank
* @param allowDownload
* @param allowReview
* @param areaLimit
* @param banAreaShow
* @param canWatch
* @param copyright 版权标志... | Kotlin |
Box="0 0 1024 1024" id="local-icon-diancanshezhi"><path d="m502.016 789.333 37.056 64H96a32 32 0 0 1 0-64h406.016zm9.984-640a106.667 106.667 0 0 1 105.77 120.598 406.123 406.123 0 0 1 240.385 180.416 72.981 72.981 0 0 0-27.563-5.398H620.075c-26.091 0-50.198 13.867-63.254 36.416l-95.488 164.907a72.64 72.64 0 0 0 0 72.8... | JavaScript |
}
// e.g "Map_of_String_and_int_Function"
_add('of');
bool needsComma = false;
for (DartType argument in arguments) {
needsComma = _comma(needsComma);
_visit(argument);
}
}
@override
void visitRecordType(covariant RecordType type, _) {
if (_dagCheck(type)) return;
final ... | Dart |
"""
Factlist related tests
"""
# pylint: disable=invalid-name
import pytest
def test_factlist_is_ordereddict():
""" Fact list on FactList object is an OrderedDict """
from pyknow.factlist import FactList
from collections import OrderedDict
assert issubclass(FactList, OrderedDict)
def test_factlist_... | Python |
n, *mm_want, mm_got, minimock.Diff(*mm_want, mm_got))
}
mm_results := mmGetOrCreateGaugeCollector.GetOrCreateGaugeCollectorMock.defaultExpectation.results
if mm_results == nil {
mmGetOrCreateGaugeCollector.t.Fatal("No results are set for the GroupedStorageMock.GetOrCreateGaugeCollector")
}
return (*mm_res... | Go |
SetReg(insn.Op2,rX);
break;
// 19 - xxx $w, y
case 0x18:
SetMemVar(insn.Op1, insn.get_next_word());
SetReg(insn.Op2,rY);
break;
// 1d - xxx $w, x
case 0x1C:
SetMemVar(insn.Op1, insn.get_next_word());
SetReg(insn.Op2,rX... | C++ |
tHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var Behaviour = require("./behaviour").Behaviour;
var unicode = require("../unicode");
var lang = require("../lib/lang");
var TokenIterator = require("../token_iterator").TokenIterator;
var Range = require("../range").Range;
var Mode = function() ... | JavaScript |
/v2/$newsId.html";
webViewController!.loadRequest(Uri.parse(currentUrl));
}
void loadHtml() async {
try {
pageError.value = false;
pageLoadding.value = true;
var result = await Dio().get(
newsUrl,
options: Options(
responseType: ResponseType.plain,
),
... | Dart |
Gradleception - ${labels.joinToString(separator = " ")}"
val descriptionSuffix =
if (descriptionParts.isNotEmpty()) {
" (${descriptionParts.joinToString(separator = ", ")})"
} else {
""
}
description =
"Builds Gradle with th... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.