content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
} from '@angular/core';
import {AbstractControl, NG_VALIDATORS, ValidationErrors, Validator, ValidatorFn} from '@angular/forms';
export const existNameValidator = (names): ValidatorFn =>
(control: AbstractControl): { [key: string]: any } | null => {
const value = control.value?.label || control.value?.name || co... | Typescript |
DLIB_TEST_MSG(kf_error < 0.75, kf_error);
}
// ----------------------------------------------------------------------------------------
void test_rls_filter()
{
rls_filter rls(10, 0.99, 0.1);
DLIB_TEST(rls.get_window_size() == 10);
DLIB_TEST(rls.get_forget_factor() == 0.99);
... | C++ |
0f)
imgdata.lens.makernotes.MinAp4CurFocal =
libraw_powf64l(2.0f, (float)((table_buf[iLensData + 10] & 0x0f) + 10) / 4.0f);
if (iLensData != 12)
{
switch (table_buf[iLensData] & 0x06)
{
case 0:
imgdata.lens.makernotes.MinAp4MinFocal = 22.0f;
break;
case 2... | C++ |
) then
self.bind.heroInfo = true
else
self.bind.heroInfo = true
local rankData = talentRankTpl:getHeroRankTpls(self.heroConfigId)
local heroLevel = L_HeroStore:getHeroLevel(hero)
local lv = L_HeroManager:lvChange(heroLevel)
self.bind.currentLv = "Lv." .. lv .. "/" .. L_HeroManager:lvChange(ran... | Lua |
r11,r9, r10 @ (r3, r11) += s1*T[0]
RSB r9, r9, #0
SMULL r3, r2, r10,r2 @ (r3, r2) = s0*T[0]
SMLAL r3, r2, r9, r8 @ (r3, r2) += -s1*T[1]
MOV r9, r11,LSL #1 @ r9 = r11<<1 = Value for x2[2]
@ XNPROD31(s3, s2, T[0], T[1], &x2[1], &x2[3])
@ x2[1] = (s3*T[0] - s2*T[1])>>31 x2[3] = (s2*T[0] + s3*T[1])>>31
... | Assembly |
ageWidth, imageHeight) / 2f) {
initRectF(imageWidth, imageHeight)
} else {
val cropLength = cropLengthHalf * 2
RectF(
cropCorner.second / imageWidth,
cropCorner.first / imageHeight,
(cropCorner.second... | Kotlin |
#ifndef OBJ_TIMEPOST_H
#define OBJ_TIMEPOST_H
#include "Game.h"
// Object Class
struct ObjectTimePost {
RSDK_OBJECT
uint16 aniFrames;
uint16 sparkleFrames;
Hitbox hitbox;
Hitbox hitboxItemBox;
uint16 sfxFuture;
};
// Entity Class
struct EntityTimePost {
RSDK_ENTITY
StateMachine(state)... | C |
le.contains_snapshots() {
let tmpl = RepopulateSnapshotDerivedTmpl {
contract_schema: &contract_id.name,
table: &table.name,
columns: &columns,
};
tx.simple_query(&tmpl.render()?)?;
} else {
let tmpl = RepopulateChan... | Rust |
nt buffer
#w.prnt('', '%s: Not closing buffer: %s: it is in currently active' %(SCRIPT_NAME, name))
continue
if len(w.buffer_get_string(buffer, 'input')):
# Don't close buffers with text on input line
#w.prnt('', '%s: Not closing buffer: %s: it... | Python |
/*
* dnas.c -- Reverse engineering of iofilemgr_dnas.prx
* written by tpu.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pgd.h"
/*************************************************************/
u8 dnas_key1A90[16] = { 0xED, 0xE2, 0x5D, 0x2D, 0xBB, 0xF8, 0x12, 0xE5, 0x3C, 0... | C |
fr-box a.fr-floating-btn:hover svg{fill:#333333;}.fr-box .fr-visible a.fr-floating-btn{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);}.amis-scope iframe.fr-iframe{width:100%;border:none;position:relative;display:block;z-index:2;-webkit-box-sizing:border-box;-moz-box-siz... | CSS |
2FsYXRpb24HYnBtbi1pbw9nYXRld2F5LWNvbXBsZXgSZ2F0ZXdheS1ldmVudGJhc2VkDGdhdGV3YXktbm9uZQpnYXRld2F5LW9yE2VuZC1ldmVudC10ZXJtaW5hdGUQZW5kLWV2ZW50LXNpZ25hbA5lbmQtZXZlbnQtbm9uZRJlbmQtZXZlbnQtbXVsdGlwbGURZW5kLWV2ZW50LW1lc3NhZ2UOZW5kLWV2ZW50LWxpbmsgaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLW1lc3NhZ2UlaW50ZXJtZWRpYXRlLWV2ZW50LXRocm93LWNvb... | CSS |
÷ [0.3]
× 0061 × 006D × 0062 × 0069 × 0067 × 0075 × 00AB × 0020 × 007B × 0020 × 0308 × 0020 × 007D × 0020 ÷ 00BB × 0028 × 0065 × 0308 × 0029 ÷ # × [0.3] LATIN SMALL LETTER A (AL) × [28.0] LATIN SMALL LETTER M (AL) × [28.0] LATIN SMALL LETTER B (AL) × [28.0] LATIN SMALL LETTER I (AL) × [28.0] LATIN SMALL LETTER G (AL)... | Dart |
u\n"
"key: <" IPv6_KEY_BYTES_FMT ", %#x>, start: %" PRIu64 "\n",
__func__, __LINE__,
tbl, tbl->max_entries, tbl->use_entries,
p1, i, assoc,
IPv6_KEY_BYTES(p1[i].key.src_dst), p1[i].key.id, p1[i].start);
if (ip_frag_key_cmp(key, &p1[i].key) == 0)
return p1 + i;
else if (ip_frag_key_is_empty(... | C |
isFederated()) {
mo1 = ec.getMatrixLineagePair(input2);
mo2 = ec.getMatrixLineagePair(input1);
reversed = true;
}
// get new output dims
Long[] dims1 = getOutputDimension(mo1.getMO(), reversed ? input2 : input1, reversed ? _outDim2 : _outDim1,
mo1.getFedMapping().getFederatedRanges());
Long[] dims2... | Java |
1', '', 'Marée Rouge', '上野舞佳', '', '???', '???', '2', '3', '6', '7/12', '10', '17才', '20', '45', '30', 'AB', '30', '161cm', '30', '85kg', '30', '70/62/88', '30', '画画、打游戏', '30', '潜水', '30', '伤害生命', '30', '我是装甲光叔的妹抖,指挥官贵安。别看我这样,其实我也是有些小脾气的~上次夜袭了光叔,就顺便欺负了下jarry呢~', '30', '在综合体能测试中成绩尚可。', '良', '能够发挥自身优势,利用专属制式装备顺利完成作战指令。'... | Lua |
# utils for pose transformation
import numpy as np
import torch
def trans2hom(R, t):
# Get 4x4 transformation matrix from rotation matrix and translation vector
T = np.eye(4)
T[:3, :3] = R
T[:3, 3] = t
return T
def m2ypr(m):
# Get yaw, pitch, roll angles from 4x4 transformation matrix
#... | Python |
%edx, %edx
sub $16, %ebx
jbe L(StrncpyFillExit)
movdqu %xmm0, (%edi)
add $16, %edi
mov %edi, %esi
and $0xf, %esi
sub %esi, %edi
add %esi, %ebx
sub $64, %ebx
jb L(StrncpyFillLess64)
L(StrncpyFillLoopMovdqa):
movdqa %xmm0, (%edi)
movdqa %xmm0, 16(%edi)
movdqa %xmm0, 32(%edi)
movdqa %xmm0, 48(%edi)
add $... | Assembly |
tip This item costs 1 gold.
]]
)
ZygorGuidesViewer:RegisterGuide(
"Events Guides\\Hallow's End\\Hallow's End Quests",
{
condition_end = function()
return completedq(8373)
end,
description = '\nComplete the quests "Hallow\'s End Treats for Jesper!" and "The Power of Pine" for the Hallow\'s End even... | Lua |
rand.Intn(40)
if a > b {
return b, a
}
return a, b
}
for range 256 {
la, ra := randRange()
lb, rb := randRange()
cond := fmt.Sprintf("(a between %v and %v) or (b between %v and %v)", la, ra, lb, rb)
tk.MustQuery("select * from t use index(a) where " + cond).Sort().Check(
tk.MustQuery("select * fr... | Go |
t_time as f64 / 1000_f64;
service_duration.with_label_values(&["all", "all"]).observe(dur_sec);
service_duration.with_label_values(&[log.domain.as_str(), "127.0.0.1"]).observe(dur_sec);
});
}
}
}
}
#[derive(Serialize, Deserialize, Debug)]
... | Rust |
balCooldownUntil = now + globalCooldownMillis;
individualCooldownUntil.put(nickname, now + cooldownMillis);
}
public static long now() {
return Instant.now().getEpochSecond() * 1000;
}
}
package net.programmer.igoodie.twitchspawn.udl;
import com.google.common.io.Resources;
import net.prog... | Java |
ef ProduceTime(self):
return self._ProduceTime
@ProduceTime.setter
def ProduceTime(self, ProduceTime):
self._ProduceTime = ProduceTime
@property
def Offset(self):
return self._Offset
@Offset.setter
def Offset(self, Offset):
self._Offset = Offset
@property
... | Python |
# Ultralytics YOLO 🚀, AGPL-3.0 license
import torch
from ultralytics.engine.results import Results
from ultralytics.models.fastsam.utils import bbox_iou
from ultralytics.models.yolo.detect.predict import DetectionPredictor
from ultralytics.utils import DEFAULT_CFG, ops
class FastSAMPredictor(DetectionPredictor):
... | Python |
public Vector3 c { get { return tetrahedron[3]; }}
public ReachCone(Vector3 _o, Vector3 _a, Vector3 _b, Vector3 _c) {
this.tetrahedron = new Vector3[4];
this.tetrahedron[0] = _o; // Origin
this.tetrahedron[1] = _a; // Axis
this.tetrahedron[2] = _b; // Limit Point 1
this.tetrahedron[3] = _c;... | C# |
Stream, item: TokenStream) -> TokenStream { item }
""")
fun `test do not offer to remove parameter in derive proc macro`() = checkFixIsUnavailable("Remove parameter `item`", """
#[proc_macro_derive(Derive)]
pub fn macro_derive(/*warning*/item/*caret*//*warning**/: TokenStream) -> TokenStream {}... | Kotlin |
)."]
pub ch_map: [u8; 5usize],
}
#[test]
fn bindgen_test_layout_ble_gap_opt_ch_map_t() {
assert_eq!(
::core::mem::size_of::<ble_gap_opt_ch_map_t>(),
8usize,
concat!("Size of: ", stringify!(ble_gap_opt_ch_map_t))
);
assert_eq!(
::core::mem::align_of::<ble_gap_opt_ch_map_t>... | Rust |
000
* sessions at a time (in order to avoid creating excessively large
* commands)."
*
* Returns:
* true if any session ids were appended to @cmd.
*
*--------------------------------------------------------------------------
*/
bool
_mongoc_topology_end_sessions_cmd (mongoc_topology_t *topolog... | C |
e;</code></td>
</tr>
<tr>
<td class="font-mono">list-disc</td>
<td><code>list-style-type: disc;</code></td>
</tr>
<tr>
<td class="font-mono">list-decimal</td>
<td><code>list-style-type: decimal;</code></td>
</tr>
</tbody>
</table>
</Example>
## 示例
#... | Markdown |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | C |
r28
/* 8009F98C 0009C78C 7C 00 F8 00 */ cmpw r0, r31
/* 8009F990 0009C790 40 82 00 1C */ bne lbl_8009F9AC
/* 8009F994 0009C794 80 02 89 78 */ lwz r0, lbl_805DF078@sda21(r2)
/* 8009F998 0009C798 38 81 00 38 */ addi r4, r1, 0x38
/* 8009F99C 0009C79C 38 60 00 04 */ li r3, 4
/* 8009F9A0 0009C7A0 90 01 00 38 */ stw r0... | Assembly |
104 0v-7.172l2-2 10.586 10.586a2 2 0 102.828-2.828L22.828 24l10.586-10.586a2 2 0 10-2.828-2.828L18 23.172Z" clip-rule="evenodd"/></svg>';
static const String k_negative =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" preserveAspectRatio="xMidYMid mee... | Dart |
/////////////////////////////////////////////////////////////////////////////
// Name: wx/gtk1/dcscreen.h
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////... | C |
"""Common get functions for DHCPv6"""
# Python
import logging
# Unicon
from unicon.core.errors import SubCommandFailure
from genie.metaparser.util.exceptions import SchemaEmptyParserError
log = logging.getLogger(__name__)
def get_dhcpv6_server_stats(device):
"""Get the dhcpv6 server statistics on device
... | Python |
# Copyright (C) 2022-2025 Intel Corporation
# LIMITED EDGE SOFTWARE DISTRIBUTION LICENSE
import http
from geti_fastapi_tools.exceptions import GetiBaseException
class InferenceMediaNotFound(GetiBaseException):
"""
Exception raised when attempting to run inference, but the media (image or video frame) is not... | Python |
itle("simple color quad")
ofBackground(255, 255, 255, 255)
local platform = ofGetTargetPlatform()
if platform == OF_TARGET_LINUXARMV6L or platform == OF_TARGET_LINUXARMV7L or platform == OF_TARGET_ANDROID or platform == OF_TARGET_IOS or platform == OF_TARGET_EMSCRIPTEN then
shader:load(shaderDir .. "shadersES... | Lua |
BIT;
hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
hi2c1.Init.OwnAddress2 = 0;
hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
if (HAL_I2C_Init(&hi2c1) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN I2C1_Init 2 */
/* USER CODE EN... | C |
ral of constant one monomial on a triangle interior should give its area.
@test isapprox(Mesh.integral_face_rel_on_oshape_face(onemon, oshapenum(1), fefacenum(0), tmsh),
0.5*2*1.5, atol=1e-15, rtol=1e-15)
@test isapprox(Mesh.integral_face_rel_on_oshape_face(onemon, oshapenum(2), fefacenum(0), tmsh),
... | Rust |
psCommand.java
package work.alsace.buildercore.commands.warp
import net.md_5.bungee.api.chat.BaseComponent
import net.md_5.bungee.api.chat.ClickEvent
import net.md_5.bungee.api.chat.HoverEvent
import net.md_5.bungee.api.chat.TextComponent
import org.bukkit.ChatColor
import org.bukkit.command.Command
import org.bukkit.... | Kotlin |
c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.... | Dart |
skip_if: !skip_if,
left,
right,
}
}
},
}
}
pub fn comparison_binop_const_fold<'gc>(
comparison_binop: ComparisonBinOp,
left: Constant<'gc>,
right: Constant<'gc>,
) -> Option<Constant<'gc>> {
match comparison_binop {
... | Rust |
:io';
import 'package:test/test.dart';
/// The VM arguments we were given, most importantly package-root.
final vmArgs = Platform.executableArguments;
final dart = Platform.executable;
/// Test for a particular timezone. In order to verify that we are in fact
/// running in that time zone, verify that the DateTime o... | Dart |
04/te-load-test-analytics-6-2021-05-12-12-30-21-c81ba8a5-d040-4398-a173-ff4569cdd24a.parquet" }"""
}
)
}
expectThat(exporter.export(sqsEvent)).isA<DataUploadedToAAE>()
verify(exactly = 1) {
uploader.uploadFile(any(), any(), any())
}
}
@Te... | Kotlin |
viderOidcWebSsoConfigResponseTypeEnum%s" % resource
)
@classmethod
def from_proto(self, resource):
if not resource:
return resource
return workforce_pool_provider_pb2.IamWorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum.Name(
resource
)[
l... | Python |
glabel func_80ADA7F0
/* 01860 80ADA7F0 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
/* 01864 80ADA7F4 AFBF0014 */ sw $ra, 0x0014($sp)
/* 01868 80ADA7F8 00803025 */ or $a2, $a0, $zero ## $a2 = 00000000
/* 0186C 80ADA7FC AFA5001C */ sw $a1, 0x001C($sp) ... | Assembly |
(r4)
/* 8024BEB8 00247B18 90 E4 00 34 */ stw r7, 0x34(r4)
/* 8024BEBC 00247B1C 90 C4 00 38 */ stw r6, 0x38(r4)
/* 8024BEC0 00247B20 90 A4 00 3C */ stw r5, 0x3c(r4)
/* 8024BEC4 00247B24 90 64 00 40 */ stw r3, 0x40(r4)
/* 8024BEC8 00247B28 98 04 00 44 */ stb r0, 0x44(r4)
/* 8024BECC 00247B2C 4E 80 00 20 */ blr
.gl... | Assembly |
numerable<ProcessedEpisode> lpe = [.. doc.TvLibrary.RecentEpisodes(TVSettings.Instance.WTWRecentDays)];
DirFilesCache dfc = new();
//Write Contents to file
using System.IO.StreamWriter file = new(Location());
file.WriteLine(GenerateHeader());
foreach (ProcessedEpisode episode in... | C# |
using Avalonia;
using Avalonia.Controls.Documents;
using Avalonia.Data;
using FluentAvalonia.Core;
using FluentAvalonia.UI.Controls.IconElement;
namespace FluentAvalonia.UI.Controls;
internal static class IconHelpers
{
public static FontIcon CreateFontIconFromFontIconSource(FontIconSource fis)
{
var ... | C# |
struct uart_cris_port *up = (struct uart_cris_port *)port;
up->port.type = PORT_CRIS;
}
static const struct uart_ops etraxfs_uart_pops = {
.tx_empty = etraxfs_uart_tx_empty,
.set_mctrl = etraxfs_uart_set_mctrl,
.get_mctrl = etraxfs_uart_get_mctrl,
.stop_tx = etraxfs_uart_stop_tx,
.start_tx = etraxfs_uart_start_... | C |
_Arg2>
struct _Project1st : public binary_function<_Arg1, _Arg2, _Arg1> {
_Arg1 operator()(const _Arg1& __x, const _Arg2&) const { return __x; }
};
template <class _Arg1, class _Arg2>
struct _Project2nd : public binary_function<_Arg1, _Arg2, _Arg2> {
_Arg2 operator()(const _Arg1&, const _Arg2& __y) const { return ... | C |
ion3D conflict_det, Optional<Detection3D> recovery_det, double tstep,
double B, double T, double B2, double T2,
boolean trajdir, int max, TrafficState ownship, List<TrafficState> traffic, TrafficState repac,
int epsh, int epsv) {
l.clear();
int bsi = bands_search_index(conflict_det,recovery_det,tstep,B,T... | Java |
/*++
Copyright (c) 2013 Minoca Corp.
This file is licensed under the terms of the GNU General Public License
version 3. Alternative licensing terms are available. Contact
info@minocacorp.com for details. See the LICENSE file at the root of this
project for complete licensing information.
Module Name:... | C |
-.122-3.899-.228-4.992a52.852 52.852 0 00-4.437 2.3 52.854 52.854 0 00-4.21 2.693c.889.633 2.32 1.598 4.211 2.69a52.804 52.804 0 004.436 2.302c.106-1.093.228-2.825.228-4.993ZM17.585 4.8a1.332 1.332 0 011.846 1.065c.114.912.341 3.12.341 6.13 0 3.014-.228 5.222-.34 6.133a1.332 1.332 0 01-1.845 1.065c-.84-.356-2.848-1.255... | Dart |
ath":"m 856.86865,175.14014 0.13014,0.17 1.37995,2.956 0.041,0.144 0.18542,0.901 0.0464,0.738 -0.47425,0.13 1.06794,4.186 -0.68106,0.144 -6.85335,1.407 -0.9984,-6.445 0.98179,-0.19987 0.33019,0.42846 0.9818,-0.24641 -0.2516,-1.24708 1.58685,-0.0137 0.44655,-0.13005 0.14655,0.27002 0.79814,-0.17215 -0.28334,-0.38047 0.0... | JavaScript |
memcpy( static_cast<void *>( this ), &rhs, sizeof( DisplayPresentInfoKHR ) );
return *this;
}
DisplayPresentInfoKHR & setPNext( const void* pNext_ ) VULKAN_HPP_NOEXCEPT
{
pNext = pNext_;
return *this;
}
DisplayPresentInfoKHR & setSrcRect( VULKAN_HPP_NAMESPACE::Rect2D const & ... | C++ |
ithout deprecation": {
Data: `{
"id": 4711,
"name": "FreeBSD-11.0-RELEASE-amd64-dvd1",
"description": "FreeBSD 11.0 x64",
"type": "public",
"architecture": "x86"
}`,
},
"with deprecation": {
Data: `{
"id": 4711,
"name": "FreeBSD-11.0-RELEASE-amd64-dvd1",
"description": "Free... | Go |
) {
bool response = await editImage(
image,
info: info,
single: images.length == 1,
);
if (response == true) {
nbEdited++;
}
}
return nbEdited;
}
Future<bool> editImage(
ImageModel image, {
Map<String, dynamic> info = const {},
bool single = true,
}) async {
final Ma... | Dart |
p != null) {
int id = TinkerToolHandler.getInstance().getToolMaterial(tool, type);
AbstractMaterial mat = materialIDs.get(id);
if (mat instanceof CustomTinkerMaterial) {
CustomTinkerMaterial cm = (CustomTinkerMaterial)mat;
if (cm.enforceNoCheating && !cm.toolParts.contains(p)) ... | Java |
2% Lightning Damage to Attacks with this Weapon per 10 Intelligence"}}},stats={[1]="attack_minimum_added_lightning_damage_per_10_int",[2]="attack_maximum_added_lightning_damage_per_10_int"}},[3802]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="Adds %1% to %2% Physical Damage to Attacks ... | Lua |
Self {
h_box: gtk::Box::new(gtk::Orientation::Horizontal, 0),
entry: gtk::Entry::new(),
});
let label = gtk::Label::new(Some(label));
lte.h_box.pack_start(&label, false, false, 0);
lte.h_box.pack_start(<e.entry, true, true, 0);
lte
}
pub fn en... | Rust |
/*
* GoldBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/bzym2/GoldBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.player
import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.eve... | Kotlin |
LSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_... | JavaScript |
): Place {
const patterns = [
/Route::inertia\s*\([^,]+,\s*['"]([^'"]+)/,
/Inertia::render\s*\(\s*['"]([^'"]+)/,
/inertia\s*\(\s*['"]([^'"]+)/,
];
for (const pattern of patterns) {
let match = pattern.exec(this.line);
if ((Boolean)(match && match[1] === this.path)) {
place.path = this.path;
... | Typescript |
EB,0xF1,0xFA,0x05,0x12,0x1D
.byte 0x26,0x2C,0x30,0x33,0x34,0x34,0x30,0x28,0x27,0x29,0x2B,0x2C,0x2D,0x2C,0x2B,0x2D
.byte 0x2F,0x31,0x32,0x35,0x37,0x35,0x33,0x34,0x34,0x35,0x33,0x30,0x2F,0x2D,0x29,0x29
.byte 0x29,0x25,0x25,0x28,0x2B,0x2A,0x25,0x25,0x27,0x24,0x22,0x20,0x1D,0x1A,0x18,0x16
.byte 0x17,0x1A,0x1C,0x1F,0x2... | Assembly |
(argv[1]);
nargs = 1;
cout << "--outniftyreg: " << P.niftyregout << " output NiftyReg matrix." << endl;
}
else if (!strcmp(option, "OUTITK") ||
!strcmp(option, "OUTLPS") )
{
P.itkout = string(argv[1]);
nargs = 1;
cout << "--outitk: " << P.itkout << " output ITK txt matrix." << endl;... | C++ |
"""
Oxford Vocabulary Trainer - Main Entry Point
AI-powered vocabulary learning game using Oxford 5000 words
Author: Rafi Project
Version: 1.0.0
"""
import os
import sys
from pathlib import Path
# Add src directory to path
current_dir = Path(__file__).parent
src_dir = current_dir / 'src'
sys.path.insert(0, str(src_di... | Python |
-content h3.sd-title,
.entry-content #jp-relatedposts h3.jp-relatedposts-headline {
font-size: 4rem;
}
}
.entry-content div.sharedaddy h3.sd-title:before,
.entry-content h3.sd-title:before {
border: 0 none;
}
.entry-content #jp-relatedposts h3.jp-relatedposts-headline em:before {
border: 0 none;
}
/* Authors w... | CSS |
�വനും അവന്റെ റസൂലും ഞങ്ങള്ക്ക് തന്നുകൊള്ളും. തീര്ച്ചയായും ഞങ്ങള് അല്ലാഹുവിങ്കലേക്കാണ് ആഗ്രഹങ്ങള് തിരിക്കുന്നത്. എന്ന് അവര് പറയുകയും ചെയ്തിരുന്നെങ്കില് (എത്ര നന്നായിരുന്നേനെ!)"
},
{
"surah_number": 9,
"verse_number": 60,
"content":
"ദാനധര്മ്മങ്ങള് (നല്കേണ്ടത്) ദരിദ്രന്മാര്ക്കും, അഗത... | Dart |
thub.com/Fang-Haoshu/Halpe-FullBody/). For details please refer to the [meta info](/configs/_base_/datasets/halpe26.py).
- <img src="https://github.com/open-mmlab/mmpose/assets/13503330/f28ab3ba-833d-4ca7-8739-f97e6cafbab7" height="300px">
- Models are trained and evaluated on `Body8`.
| ... | Markdown |
),
primaryInstanceSettings:
json_.containsKey('primaryInstanceSettings')
? PrimaryInstanceSettings.fromJson(
json_['primaryInstanceSettings']
as core.Map<core.String, core.dynamic>,
)
: null,
vpcNetwork: ... | Dart |
/licenses/>.
*
\*---------------------------------------------------------------------------*/
#include <set>
#include "bitpit_CG.hpp"
#include "bitpit_containers.hpp"
#include "bitpit_operators.hpp"
#include "element_reference.hpp"
namespace bitpit {
/*!
\class ReferenceElementInfo
\ingroup patchelements... | C++ |
… + n/n)
其变成 n * (1/1 + 1/2 + 1/3 + … + 1/n)
级数(1/1+1/2+1/3+……+1/n)重要的是,它等于θ(Logn)(参考见[本](http://staff.ustc.edu.cn/~csli/graduate/algorithms/book6/chap03.htm))。所以上面代码的时间复杂度是θ(nLogn)。
作为旁注,无穷[调和级数](http://en.wikipedia.org/wiki/Harmonic_series_%28mathematics%29)的和是违反直觉的,因为级数发散。 ["><path d="M81.8794 81.9054l-8.89613 -15.4088c-1.35474,-2.34569 -4... | CSS |
-button-next,
.common-carousel .swiper-button-prev {
@apply !static h-9 w-9 rounded-lg bg-white text-dark border border-gray-3 m-0 ease-out duration-200 hover:bg-blue hover:text-white hover:border-blue;
}
.common-carousel .swiper-button-next svg,
.common-carousel .swiper-button-prev svg {
@apply w-auto h-auto;
}
... | CSS |
ate panel 3 (if it's populated)
if (this._pages[2].pageHandler.isPopulated() && !this._checkValidity(this._pages[2].pageHandler)) {
return;
}
//Everything passed
this.onFinish();
}.bind(this);
this._getUpdateCompoundCommand(updateCommandCallback);
},
updateWidget: function() {
var callback... | JavaScript |
= new_collateral;
T::OnUpdateLoan::happened(&(who.clone(), currency_id, debit_adjustment, p.debit));
p.debit = new_debit;
if p.collateral.is_zero() && p.debit.is_zero() {
// decrease account ref if zero position
system::Module::<T>::dec_ref(who);
// remove position storage if zero posi... | Rust |
hBlade) {
matrixStack.pushPose();
// 副手的刀渲染在右边
if (model.hasWaistPositioningModel(HumanoidArm.RIGHT)) {
model.translateToPositioningWaist(HumanoidArm.RIGHT, matrixStack);
} else {
matrixStack.translate(-0.25, 0.85, 0);
matri... | Java |
E8 003C6548 40 80 00 10 */ bge lbl_803CA8F8
/* 803CA8EC 003C654C 2C 03 00 00 */ cmpwi r3, 0
/* 803CA8F0 003C6550 41 82 00 14 */ beq lbl_803CA904
/* 803CA8F4 003C6554 48 00 00 C4 */ b lbl_803CA9B8
lbl_803CA8F8:
/* 803CA8F8 003C6558 2C 03 00 05 */ cmpwi r3, 5
/* 803CA8FC 003C655C 40 80 00 BC */ bge lbl_803CA9B8
/* ... | Assembly |
ntent
}
// Refresh 刷新标签页
func (dt *DownloadTab) Refresh() {
dt.loadVersions()
}
// startSelectedDownloads 开始当前选中的下载任务
func (dt *DownloadTab) startSelectedDownloads() {
// 只处理当前高亮选中的文件
if dt.currentSelection >= 0 && dt.currentSelection < len(dt.filteredAssets) {
if !dt.filteredAssets[dt.currentSelection].IsDownlo... | Go |
E
/*
* Convert an EL2 module addr from the kernel VA to the hyp VA
*/
#define pkvm_el2_mod_va(kern_va, token) \
({ \
unsigned long hyp_text_kern_va = \
(unsigned long)THIS_MODULE->arch.hyp.text.start; \
unsigned long offset; \
\
offset = (unsigned long)kern_va - hyp_text_kern_va; \
... | C |
0, x20, #-1
bne outer
ldr x21, [fp, #saveX21] // Restore non-volatile
ldr x20, [fp, #saveX20] // registers
leave
ret
endp asmMain | Assembly |
parseInputValueDef()
local start = self._lexer.token
local description = self:parseDescription()
local name = self:parseName()
self:expectToken(TokenKind.COLON)
local type_ = self:parseTypeReference()
local defaultValue
if self:expectOptionalToken(TokenKind.EQUALS) then
defaultValue = self:parseValueLiteral(tr... | Lua |
.display = "none";
}
};
/* Function for displaying a loading error in the HTML message element. */
IrAndGeo.errorLoading = function(error) {
alert(error);
IrAndGeo.error = true;
};
IrAndGeo.initIr = function() {
this.targetCollectionResource = new AR.TargetCollectionResource("assets/ShopAd.wtc", {
... | JavaScript |
namespace EasyTcp4Net.ServerTest
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World,this is Server");
EasyTcpServer easyTcpServer = new EasyTcpServer(7001, new EasyTcpServerOptions()
{
IsSsl = true,
... | C# |
;
if (m_params.m_mip_fast)
{
if (level > 1)
pSource_image = &mips[level - 1];
}
bool status = image_resample(*pSource_image, level_img, m_params.m_mip_srgb, m_params.m_mip_filter.c_str(), m_params.m_mip_scale, m_params.m_mip_wrapping, 0, has_alpha ? 4 : 3);
if (!status)
{
error_printf("... | C++ |
SharedPrefsStores(
memoryStore: memoryStore,
);
crypto = Crypto(
core: this,
keyChain: GenericStore<String>(
storage: storage,
context: StoreVersions.CONTEXT_KEYCHAIN,
version: StoreVersions.VERSION_KEYCHAIN,
fromJson: (dynamic value) => value as String,
... | Dart |
dist/worker.js:127:5)\n at onMessage (file:///home/runner/work/RSSHub/RSSHub/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js:39:18)"}' />
| Node.js 专栏 | 阮一峰每周分享 | 语雀使用手册 ... | Markdown |
bjectHelper((UnitOfWork)((XPObjectSpace)ObjectSpace).Session).UpdateQueryOptimizationStatistics();
public IPhoneNumber CreatePhoneNumber(IContact forContact) {
var phoneNumber = CreateObject<PhoneNumber>();
phoneNumber.Party = (Party)forContact;
return phoneNumber;
}... | C# |
ssageContent");
messageContent.innerHTML = message;
}
function showChatPanel(visible) {
const chat = getChatPanel();
chat.style.cssText = "display: " + (visible ? "block" : "none") + ";";
}
function loadChatPanel(url) {
... | Kotlin |
cross-reference",`/teams/${t}/connect/data-layers/${n}/settings#cross-references`),"on data layer",y4(!1,e,`/teams/${t}/connect/data-layers/${n}`)),"updated"],[iD.h.SITE_CONNECTED]:({dataLayerName:e,slug:t,dataLayerId:n,siteName:a})=>[y6("site",y4(!1,a,`/sites/${a}/overview`),"to data layer",y4(!1,e,`/teams/${t}/connec... | JavaScript |
}
}
local savedScale = GetResourceKvpFloat("ui_scale")
if savedScale and savedScale >= 0.5 and savedScale <= 2.0 then
uiScale = savedScale
end
print(("[InteractionDUI] Loaded scale: %.2f"):format(uiScale))
currentW, currentH = GetActiveScreenResolution()
scaled_width... | Lua |
[31692] = "娜塔莎的灰烬项链",
[31693] = "娜塔莎的奥术细丝",
[31694] = "娜塔莎的捆扎绳",
[31695] = "娜塔莎的颈圈",
[31696] = "娜塔莎的作战项链",
[31697] = "恐怖圣物",
[31698] = "沙塔斯的来信",
[31699] = "灌魔德拉诺水晶",
[31700] = "符文银杖",
[31701] = "破坏者之斧",
[31702] = "部落的挑战",
[31703] = "虚空猎手之刃",
[31705] = "被遗弃的篷车宝箱钥匙",
[31706] = "卡加斯之手的徽记",
[31707] = "秘教的命令",
[31708] = "阿塔... | Lua |
for i,v in pairs(gPlayers[v].Character:GetChildren()) do
if v:IsA('Accessory') then
v.Parent = SPEAKER.Character
end
end
end
end)
ADD_COMMAND('rhats','rhats [plr]',{'removehats'},
function(ARGS, SPEAKER)
local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER)
for i,v in pairs(PLAYERS) do
for i,v in pairs(gPlayer... | Lua |
3D[27.7(VMX Aborts)]
*/
uint32_t abort_indicator;
/**
* @brief VMCS data (implementation-specific format)
*
* These parts of the VMCS control VMX non-root operation and the VMX transitions.
* The format of these data is implementation-specific. To ensure proper behavior in VMX operation, software sh... | C++ |
382.9 255 319c15.5 63.9 61.7 118.5 118.8 154.7C338.7 493 298.3 504 255 504zm190.6-87.5C359 374.5 298 279.6 298 169.1V12.5c116.9 19.7 206 121.4 206 244.1 0 61.1-22 116.6-58.4 159.9z"],replyd:[448,512,[],"f3e6","M320 480H128C57.6 480 0 422.4 0 352V160C0 89.6 57.6 32 128 32h192c70.4 0 128 57.6 128 128v192c0 70.4-57.6 128... | JavaScript |
/* Copyright 2025 The OpenXLA Authors.
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, sof... | C |
bbox.y_range()
}
fn m_range(&self) -> [f64; 2] {
self.bbox.m_range()
}
}
/*
* PolylineZ
*/
/// Specialization of the `GenericPolyline` struct to represent a `PolylineZ` shape
/// ( collection of [PointZ](../point/struct.PointZ.html))
pub type PolylineZ = GenericPolyline<PointZ>;
impl PolylineZ... | Rust |
ode_error("invalid utf-8 octet");
}
++iter;
return part & 0x3F;
}
public:
typedef utf8_t char_type;
static const unsigned int max_encodelen = 4;
template<typename InputIterator>
static utf32_t decode(InputIterator &iter, InputIterator &end) {
utf32_t part, val = 0;
if(iter == end) {
th... | C++ |
#define ENABLE_TRACE
#include <proc.h>
#include <cpu.h>
#include <fdt.h>
#include <mem.h>
void arch_cpu_boot(struct cpu *cpu)
{
/* XXX */
}
void arch_device_init(void)
{
/* XXX */
}
int arch_start_smp_cpu(struct cpu *cpu, size_t smp_id)
{
/* XXX */
}
void arch_start_smp(void)
{
/* XXX */
}
void arch_print_use... | C |
out.println("过滤List流,只剩下那些大于0并且小于4的元素:\n=====begin=====");
lists.stream()
.filter(elem -> elem > 0)
.filter(elem -> elem < 4)
.sorted(Integer::compareTo)
.forEach(System.out::println);// 1 2 3
System.out.println("=====end=====");
/... | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.